Add wxDC::SetTransformMatrix() and related methods and implement them in wxMSW.
[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.2.
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.2'
579 PACKAGE_STRING='wxWidgets 2.9.2'
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 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 CFLAGS_VISIBILITY
700 CXXFLAGS_VISIBILITY
701 LIBICONV
702 GXX_VERSION
703 SDL_CONFIG
704 SDL_CFLAGS
705 SDL_LIBS
706 GTKPRINT_CFLAGS
707 GTKPRINT_LIBS
708 LIBGNOMEPRINTUI_CFLAGS
709 LIBGNOMEPRINTUI_LIBS
710 GNOMEVFS_CFLAGS
711 GNOMEVFS_LIBS
712 HILDON_CFLAGS
713 HILDON_LIBS
714 HILDON2_CFLAGS
715 HILDON2_LIBS
716 PYTHON
717 COND_PYTHON
718 CAIRO_CFLAGS
719 CAIRO_LIBS
720 GST_CFLAGS
721 GST_LIBS
722 ALL_WX_LIBS
723 BUILT_WX_LIBS
724 STD_BASE_LIBS
725 STD_GUI_LIBS
726 wxUSE_ZLIB
727 wxUSE_REGEX
728 wxUSE_EXPAT
729 wxUSE_LIBJPEG
730 wxUSE_LIBPNG
731 wxUSE_LIBTIFF
732 VENDOR
733 OFFICIAL_BUILD
734 WX_FLAVOUR
735 WX_LIB_FLAVOUR
736 WXUNIV
737 MONOLITHIC
738 USE_PLUGINS
739 CXXWARNINGS
740 EXTRALIBS
741 EXTRALIBS_XML
742 EXTRALIBS_HTML
743 EXTRALIBS_MEDIA
744 EXTRALIBS_GUI
745 EXTRALIBS_OPENGL
746 EXTRALIBS_SDL
747 EXTRALIBS_STC
748 WITH_PLUGIN_SDL
749 EXTRALIBS_GTKPRINT
750 EXTRALIBS_GNOMEPRINT
751 EXTRALIBS_GNOMEVFS
752 EXTRALIBS_HILDON
753 UNICODE
754 DEBUG_INFO
755 DEBUG_FLAG
756 TOOLKIT_LOWERCASE
757 TOOLKIT_VERSION
758 DYLIB_RPATH_INSTALL
759 DYLIB_RPATH_POSTLINK
760 SAMPLES_RPATH_FLAG
761 HEADER_PAD_OPTION
762 HOST_SUFFIX
763 CPPUNIT_CFLAGS
764 CPPUNIT_LIBS
765 RANLIB
766 INSTALL_PROGRAM
767 INSTALL_SCRIPT
768 INSTALL_DATA
769 LN_S
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 STRIP
774 NM
775 INSTALL_DIR
776 LDFLAGS_GUI
777 IF_GNU_MAKE
778 PLATFORM_UNIX
779 PLATFORM_WIN32
780 PLATFORM_MSDOS
781 PLATFORM_MAC
782 PLATFORM_MACOS
783 PLATFORM_MACOSX
784 PLATFORM_OS2
785 PLATFORM_BEOS
786 SO_SUFFIX
787 SO_SUFFIX_MODULE
788 DLLIMP_SUFFIX
789 LIBPREFIX
790 LIBEXT
791 DLLPREFIX
792 DLLPREFIX_MODULE
793 dlldir
794 AIX_CXX_LD
795 SHARED_LD_CC
796 SHARED_LD_CXX
797 SHARED_LD_MODULE_CC
798 SHARED_LD_MODULE_CXX
799 PIC_FLAG
800 WINDOWS_IMPLIB
801 USE_SOVERSION
802 USE_SOVERLINUX
803 USE_SOVERSOLARIS
804 USE_SOVERCYGWIN
805 USE_MACVERSION
806 USE_SOTWOSYMLINKS
807 SONAME_FLAG
808 DEPS_TRACKING
809 BK_DEPS
810 WINDRES
811 REZ
812 SETFILE
813 OBJCXXFLAGS
814 GCC_PCH
815 ICC_PCH
816 ICC_PCH_CREATE_SWITCH
817 ICC_PCH_USE_SWITCH
818 BK_MAKE_PCH
819 COND_BUILD_DEBUG
820 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
821 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
822 COND_BUILD_DEBUG_UNICODE_0
823 COND_BUILD_DEBUG_UNICODE_1
824 COND_BUILD_RELEASE
825 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
826 COND_BUILD_RELEASE_UNICODE_0
827 COND_BUILD_RELEASE_UNICODE_1
828 COND_BUILD_debug
829 COND_BUILD_debug_DEBUG_FLAG_default
830 COND_BUILD_debug_DEBUG_INFO_default
831 COND_BUILD_debug_UNICODE_0
832 COND_BUILD_debug_UNICODE_1
833 COND_BUILD_release
834 COND_BUILD_release_DEBUG_INFO_default
835 COND_BUILD_release_UNICODE_0
836 COND_BUILD_release_UNICODE_1
837 COND_DEBUG_FLAG_0
838 COND_DEBUG_FLAG_1
839 COND_DEBUG_INFO_0
840 COND_DEBUG_INFO_1
841 COND_DEPS_TRACKING_0
842 COND_DEPS_TRACKING_1
843 COND_GCC_PCH_1
844 COND_ICC_PCH_1
845 COND_MONOLITHIC_0
846 COND_MONOLITHIC_0_SHARED_0
847 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
852 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
853 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
855 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
856 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
857 COND_MONOLITHIC_0_SHARED_1
858 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
864 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
865 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
866 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
867 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
868 COND_MONOLITHIC_0_USE_AUI_1
869 COND_MONOLITHIC_0_USE_GUI_1
870 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
871 COND_MONOLITHIC_0_USE_HTML_1
872 COND_MONOLITHIC_0_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_PROPGRID_1
874 COND_MONOLITHIC_0_USE_QA_1
875 COND_MONOLITHIC_0_USE_RIBBON_1
876 COND_MONOLITHIC_0_USE_RICHTEXT_1
877 COND_MONOLITHIC_0_USE_STC_1
878 COND_MONOLITHIC_0_USE_XRC_1
879 COND_MONOLITHIC_1
880 COND_MONOLITHIC_1_SHARED_0
881 COND_MONOLITHIC_1_SHARED_1
882 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
883 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
884 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
885 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
886 COND_PLATFORM_MACOSX_1
887 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
888 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
889 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
890 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
891 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
895 COND_PLATFORM_MACOSX_1_USE_GUI_1
896 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
897 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
898 COND_PLATFORM_MACOS_1
899 COND_PLATFORM_MAC_0
900 COND_PLATFORM_MAC_1
901 COND_PLATFORM_MSDOS_0
902 COND_PLATFORM_MSDOS_1
903 COND_PLATFORM_OS2_1
904 COND_PLATFORM_UNIX_0
905 COND_PLATFORM_UNIX_1
906 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
907 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
908 COND_PLATFORM_UNIX_1_USE_GUI_1
909 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
910 COND_PLATFORM_WIN32_0
911 COND_PLATFORM_WIN32_1
912 COND_PLATFORM_WIN32_1_SHARED_0
913 COND_SHARED_0
914 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
915 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
916 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
917 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
918 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
919 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
920 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
921 COND_SHARED_0_USE_STC_1
922 COND_SHARED_0_wxUSE_EXPAT_builtin
923 COND_SHARED_0_wxUSE_REGEX_builtin
924 COND_SHARED_0_wxUSE_ZLIB_builtin
925 COND_SHARED_1
926 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
927 COND_TOOLKIT_
928 COND_TOOLKIT_COCOA
929 COND_TOOLKIT_COCOA_USE_GUI_1
930 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_DFB
932 COND_TOOLKIT_DFB_USE_GUI_1
933 COND_TOOLKIT_GTK
934 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
935 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
936 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_GTK_USE_GUI_1
941 COND_TOOLKIT_MAC
942 COND_TOOLKIT_MGL
943 COND_TOOLKIT_MGL_USE_GUI_1
944 COND_TOOLKIT_MOTIF
945 COND_TOOLKIT_MOTIF_USE_GUI_1
946 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_MSW
948 COND_TOOLKIT_MSW_USE_GUI_1
949 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW_WXUNIV_0
951 COND_TOOLKIT_OSX_CARBON
952 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
953 COND_TOOLKIT_OSX_COCOA
954 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
955 COND_TOOLKIT_OSX_IPHONE
956 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
957 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
958 COND_TOOLKIT_PM
959 COND_TOOLKIT_PM_USE_GUI_1
960 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_WINCE
962 COND_TOOLKIT_WINCE_USE_GUI_1
963 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE_WXUNIV_0
965 COND_TOOLKIT_X11
966 COND_TOOLKIT_X11_USE_GUI_1
967 COND_UNICODE_1
968 COND_USE_CAIRO_1
969 COND_USE_EXCEPTIONS_0
970 COND_USE_EXCEPTIONS_1
971 COND_USE_GUI_0
972 COND_USE_GUI_1
973 COND_USE_GUI_1_USE_OPENGL_1
974 COND_USE_GUI_1_WXUNIV_0
975 COND_USE_GUI_1_WXUNIV_1
976 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
977 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
978 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
979 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
980 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
981 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
982 COND_USE_OPENGL_1
983 COND_USE_PCH_1
984 COND_USE_PLUGINS_0
985 COND_USE_RTTI_0
986 COND_USE_RTTI_1
987 COND_USE_SOTWOSYMLINKS_1
988 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
989 COND_USE_SOVERLINUX_1
990 COND_USE_SOVERSION_0
991 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
992 COND_USE_SOVERSOLARIS_1
993 COND_USE_STC_1
994 COND_USE_THREADS_0
995 COND_USE_THREADS_1
996 COND_USE_XRC_1
997 COND_WINDOWS_IMPLIB_1
998 COND_WITH_PLUGIN_SDL_1
999 COND_WXUNIV_0
1000 COND_WXUNIV_1
1001 COND_WXUSE_EXPAT_BUILTIN
1002 COND_WXUSE_LIBJPEG_BUILTIN
1003 COND_WXUSE_LIBPNG_BUILTIN
1004 COND_WXUSE_LIBTIFF_BUILTIN
1005 COND_WXUSE_REGEX_BUILTIN
1006 COND_WXUSE_ZLIB_BUILTIN
1007 COND_wxUSE_EXPAT_builtin
1008 COND_wxUSE_LIBJPEG_builtin
1009 COND_wxUSE_LIBPNG_builtin
1010 COND_wxUSE_LIBTIFF_builtin
1011 COND_wxUSE_REGEX_builtin
1012 COND_wxUSE_ZLIB_builtin
1013 DEREZ
1014 SHARED
1015 WX_LIBRARY_BASENAME_NOGUI
1016 WX_LIBRARY_BASENAME_GUI
1017 USE_GUI
1018 AFMINSTALL
1019 WIN32INSTALL
1020 TOOLKIT
1021 TOOLKIT_DIR
1022 TOOLCHAIN_NAME
1023 TOOLCHAIN_FULLNAME
1024 cross_compiling
1025 WIDGET_SET
1026 WX_RELEASE
1027 WX_VERSION
1028 WX_SUBVERSION
1029 WX_CHARTYPE
1030 WXCONFIG_CPPFLAGS
1031 WXCONFIG_CFLAGS
1032 WXCONFIG_CXXFLAGS
1033 WXCONFIG_LIBS
1034 WXCONFIG_RPATH
1035 WXCONFIG_LDFLAGS
1036 WXCONFIG_LDFLAGS_GUI
1037 WXCONFIG_RESFLAGS
1038 GUIDIST
1039 DISTDIR
1040 SAMPLES_SUBDIRS
1041 LDFLAGS_GL
1042 OPENGL_LIBS
1043 DMALLOC_LIBS
1044 WX_VERSION_TAG
1045 RESCOMP
1046 RESFLAGS
1047 RESPROGRAMOBJ
1048 WX_RESOURCES_MACOSX_ASCII
1049 WX_RESOURCES_MACOSX_DATA
1050 LIBWXMACRES
1051 POSTLINK_COMMAND
1052 MACSETFILE
1053 GCC
1054 DLLTOOL
1055 CPPUNIT_CONFIG
1056 LIBOBJS
1057 LTLIBOBJS'
1058 ac_subst_files=''
1059       ac_precious_vars='build_alias
1060 host_alias
1061 target_alias
1062 CC
1063 CFLAGS
1064 LDFLAGS
1065 LIBS
1066 CPPFLAGS
1067 CPP
1068 CXX
1069 CXXFLAGS
1070 CCC
1071 CXXCPP
1072 PKG_CONFIG
1073 DIRECTFB_CFLAGS
1074 DIRECTFB_LIBS
1075 XMKMF
1076 PANGOX_CFLAGS
1077 PANGOX_LIBS
1078 PANGOFT2_CFLAGS
1079 PANGOFT2_LIBS
1080 PANGOXFT_CFLAGS
1081 PANGOXFT_LIBS
1082 GTKPRINT_CFLAGS
1083 GTKPRINT_LIBS
1084 LIBGNOMEPRINTUI_CFLAGS
1085 LIBGNOMEPRINTUI_LIBS
1086 GNOMEVFS_CFLAGS
1087 GNOMEVFS_LIBS
1088 HILDON_CFLAGS
1089 HILDON_LIBS
1090 HILDON2_CFLAGS
1091 HILDON2_LIBS
1092 CAIRO_CFLAGS
1093 CAIRO_LIBS
1094 GST_CFLAGS
1095 GST_LIBS'
1096 ac_subdirs_all='src/tiff
1097 src/expat'
1098
1099 # Initialize some variables set by options.
1100 ac_init_help=
1101 ac_init_version=false
1102 # The variables have the same names as the options, with
1103 # dashes changed to underlines.
1104 cache_file=/dev/null
1105 exec_prefix=NONE
1106 no_create=
1107 no_recursion=
1108 prefix=NONE
1109 program_prefix=NONE
1110 program_suffix=NONE
1111 program_transform_name=s,x,x,
1112 silent=
1113 site=
1114 srcdir=
1115 verbose=
1116 x_includes=NONE
1117 x_libraries=NONE
1118
1119 # Installation directory options.
1120 # These are left unexpanded so users can "make install exec_prefix=/foo"
1121 # and all the variables that are supposed to be based on exec_prefix
1122 # by default will actually change.
1123 # Use braces instead of parens because sh, perl, etc. also accept them.
1124 # (The list follows the same order as the GNU Coding Standards.)
1125 bindir='${exec_prefix}/bin'
1126 sbindir='${exec_prefix}/sbin'
1127 libexecdir='${exec_prefix}/libexec'
1128 datarootdir='${prefix}/share'
1129 datadir='${datarootdir}'
1130 sysconfdir='${prefix}/etc'
1131 sharedstatedir='${prefix}/com'
1132 localstatedir='${prefix}/var'
1133 includedir='${prefix}/include'
1134 oldincludedir='/usr/include'
1135 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1136 infodir='${datarootdir}/info'
1137 htmldir='${docdir}'
1138 dvidir='${docdir}'
1139 pdfdir='${docdir}'
1140 psdir='${docdir}'
1141 libdir='${exec_prefix}/lib'
1142 localedir='${datarootdir}/locale'
1143 mandir='${datarootdir}/man'
1144
1145 ac_prev=
1146 ac_dashdash=
1147 for ac_option
1148 do
1149   # If the previous option needs an argument, assign it.
1150   if test -n "$ac_prev"; then
1151     eval $ac_prev=\$ac_option
1152     ac_prev=
1153     continue
1154   fi
1155
1156   case $ac_option in
1157   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1158   *)    ac_optarg=yes ;;
1159   esac
1160
1161   # Accept the important Cygnus configure options, so we can diagnose typos.
1162
1163   case $ac_dashdash$ac_option in
1164   --)
1165     ac_dashdash=yes ;;
1166
1167   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1168     ac_prev=bindir ;;
1169   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1170     bindir=$ac_optarg ;;
1171
1172   -build | --build | --buil | --bui | --bu)
1173     ac_prev=build_alias ;;
1174   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1175     build_alias=$ac_optarg ;;
1176
1177   -cache-file | --cache-file | --cache-fil | --cache-fi \
1178   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1179     ac_prev=cache_file ;;
1180   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1181   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1182     cache_file=$ac_optarg ;;
1183
1184   --config-cache | -C)
1185     cache_file=config.cache ;;
1186
1187   -datadir | --datadir | --datadi | --datad)
1188     ac_prev=datadir ;;
1189   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1190     datadir=$ac_optarg ;;
1191
1192   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1193   | --dataroo | --dataro | --datar)
1194     ac_prev=datarootdir ;;
1195   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1196   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1197     datarootdir=$ac_optarg ;;
1198
1199   -disable-* | --disable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=no ;;
1207
1208   -docdir | --docdir | --docdi | --doc | --do)
1209     ac_prev=docdir ;;
1210   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1211     docdir=$ac_optarg ;;
1212
1213   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1214     ac_prev=dvidir ;;
1215   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1216     dvidir=$ac_optarg ;;
1217
1218   -enable-* | --enable-*)
1219     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1225     eval enable_$ac_feature=\$ac_optarg ;;
1226
1227   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229   | --exec | --exe | --ex)
1230     ac_prev=exec_prefix ;;
1231   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233   | --exec=* | --exe=* | --ex=*)
1234     exec_prefix=$ac_optarg ;;
1235
1236   -gas | --gas | --ga | --g)
1237     # Obsolete; use --with-gas.
1238     with_gas=yes ;;
1239
1240   -help | --help | --hel | --he | -h)
1241     ac_init_help=long ;;
1242   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243     ac_init_help=recursive ;;
1244   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245     ac_init_help=short ;;
1246
1247   -host | --host | --hos | --ho)
1248     ac_prev=host_alias ;;
1249   -host=* | --host=* | --hos=* | --ho=*)
1250     host_alias=$ac_optarg ;;
1251
1252   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253     ac_prev=htmldir ;;
1254   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255   | --ht=*)
1256     htmldir=$ac_optarg ;;
1257
1258   -includedir | --includedir | --includedi | --included | --include \
1259   | --includ | --inclu | --incl | --inc)
1260     ac_prev=includedir ;;
1261   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262   | --includ=* | --inclu=* | --incl=* | --inc=*)
1263     includedir=$ac_optarg ;;
1264
1265   -infodir | --infodir | --infodi | --infod | --info | --inf)
1266     ac_prev=infodir ;;
1267   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268     infodir=$ac_optarg ;;
1269
1270   -libdir | --libdir | --libdi | --libd)
1271     ac_prev=libdir ;;
1272   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273     libdir=$ac_optarg ;;
1274
1275   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276   | --libexe | --libex | --libe)
1277     ac_prev=libexecdir ;;
1278   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279   | --libexe=* | --libex=* | --libe=*)
1280     libexecdir=$ac_optarg ;;
1281
1282   -localedir | --localedir | --localedi | --localed | --locale)
1283     ac_prev=localedir ;;
1284   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285     localedir=$ac_optarg ;;
1286
1287   -localstatedir | --localstatedir | --localstatedi | --localstated \
1288   | --localstate | --localstat | --localsta | --localst | --locals)
1289     ac_prev=localstatedir ;;
1290   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292     localstatedir=$ac_optarg ;;
1293
1294   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295     ac_prev=mandir ;;
1296   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297     mandir=$ac_optarg ;;
1298
1299   -nfp | --nfp | --nf)
1300     # Obsolete; use --without-fp.
1301     with_fp=no ;;
1302
1303   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304   | --no-cr | --no-c | -n)
1305     no_create=yes ;;
1306
1307   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309     no_recursion=yes ;;
1310
1311   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313   | --oldin | --oldi | --old | --ol | --o)
1314     ac_prev=oldincludedir ;;
1315   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318     oldincludedir=$ac_optarg ;;
1319
1320   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321     ac_prev=prefix ;;
1322   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323     prefix=$ac_optarg ;;
1324
1325   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326   | --program-pre | --program-pr | --program-p)
1327     ac_prev=program_prefix ;;
1328   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330     program_prefix=$ac_optarg ;;
1331
1332   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333   | --program-suf | --program-su | --program-s)
1334     ac_prev=program_suffix ;;
1335   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337     program_suffix=$ac_optarg ;;
1338
1339   -program-transform-name | --program-transform-name \
1340   | --program-transform-nam | --program-transform-na \
1341   | --program-transform-n | --program-transform- \
1342   | --program-transform | --program-transfor \
1343   | --program-transfo | --program-transf \
1344   | --program-trans | --program-tran \
1345   | --progr-tra | --program-tr | --program-t)
1346     ac_prev=program_transform_name ;;
1347   -program-transform-name=* | --program-transform-name=* \
1348   | --program-transform-nam=* | --program-transform-na=* \
1349   | --program-transform-n=* | --program-transform-=* \
1350   | --program-transform=* | --program-transfor=* \
1351   | --program-transfo=* | --program-transf=* \
1352   | --program-trans=* | --program-tran=* \
1353   | --progr-tra=* | --program-tr=* | --program-t=*)
1354     program_transform_name=$ac_optarg ;;
1355
1356   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357     ac_prev=pdfdir ;;
1358   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359     pdfdir=$ac_optarg ;;
1360
1361   -psdir | --psdir | --psdi | --psd | --ps)
1362     ac_prev=psdir ;;
1363   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364     psdir=$ac_optarg ;;
1365
1366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367   | -silent | --silent | --silen | --sile | --sil)
1368     silent=yes ;;
1369
1370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371     ac_prev=sbindir ;;
1372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373   | --sbi=* | --sb=*)
1374     sbindir=$ac_optarg ;;
1375
1376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378   | --sharedst | --shareds | --shared | --share | --shar \
1379   | --sha | --sh)
1380     ac_prev=sharedstatedir ;;
1381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384   | --sha=* | --sh=*)
1385     sharedstatedir=$ac_optarg ;;
1386
1387   -site | --site | --sit)
1388     ac_prev=site ;;
1389   -site=* | --site=* | --sit=*)
1390     site=$ac_optarg ;;
1391
1392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393     ac_prev=srcdir ;;
1394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395     srcdir=$ac_optarg ;;
1396
1397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398   | --syscon | --sysco | --sysc | --sys | --sy)
1399     ac_prev=sysconfdir ;;
1400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402     sysconfdir=$ac_optarg ;;
1403
1404   -target | --target | --targe | --targ | --tar | --ta | --t)
1405     ac_prev=target_alias ;;
1406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407     target_alias=$ac_optarg ;;
1408
1409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410     verbose=yes ;;
1411
1412   -version | --version | --versio | --versi | --vers | -V)
1413     ac_init_version=: ;;
1414
1415   -with-* | --with-*)
1416     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       { echo "$as_me: error: invalid package name: $ac_package" >&2
1420    { (exit 1); exit 1; }; }
1421     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1422     eval with_$ac_package=\$ac_optarg ;;
1423
1424   -without-* | --without-*)
1425     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid package name: $ac_package" >&2
1429    { (exit 1); exit 1; }; }
1430     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1431     eval with_$ac_package=no ;;
1432
1433   --x)
1434     # Obsolete; use --with-x.
1435     with_x=yes ;;
1436
1437   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438   | --x-incl | --x-inc | --x-in | --x-i)
1439     ac_prev=x_includes ;;
1440   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442     x_includes=$ac_optarg ;;
1443
1444   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446     ac_prev=x_libraries ;;
1447   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449     x_libraries=$ac_optarg ;;
1450
1451   -*) { echo "$as_me: error: unrecognized option: $ac_option
1452 Try \`$0 --help' for more information." >&2
1453    { (exit 1); exit 1; }; }
1454     ;;
1455
1456   *=*)
1457     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458     # Reject names that are not valid shell variable names.
1459     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1460       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1461    { (exit 1); exit 1; }; }
1462     eval $ac_envvar=\$ac_optarg
1463     export $ac_envvar ;;
1464
1465   *)
1466     # FIXME: should be removed in autoconf 3.0.
1467     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1471     ;;
1472
1473   esac
1474 done
1475
1476 if test -n "$ac_prev"; then
1477   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478   { echo "$as_me: error: missing argument to $ac_option" >&2
1479    { (exit 1); exit 1; }; }
1480 fi
1481
1482 # Be sure to have absolute directory names.
1483 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484                 datadir sysconfdir sharedstatedir localstatedir includedir \
1485                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1486                 libdir localedir mandir
1487 do
1488   eval ac_val=\$$ac_var
1489   case $ac_val in
1490     [\\/$]* | ?:[\\/]* )  continue;;
1491     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1492   esac
1493   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1494    { (exit 1); exit 1; }; }
1495 done
1496
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1503
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506   if test "x$build_alias" = x; then
1507     cross_compiling=maybe
1508     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1509     If a cross compiler is detected then cross compile mode will be used." >&2
1510   elif test "x$build_alias" != "x$host_alias"; then
1511     cross_compiling=yes
1512   fi
1513 fi
1514
1515 ac_tool_prefix=
1516 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1517
1518 test "$silent" = yes && exec 6>/dev/null
1519
1520
1521 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1522 ac_ls_di=`ls -di .` &&
1523 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1524   { echo "$as_me: error: Working directory cannot be determined" >&2
1525    { (exit 1); exit 1; }; }
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527   { echo "$as_me: error: pwd does not report name of working directory" >&2
1528    { (exit 1); exit 1; }; }
1529
1530
1531 # Find the source files, if location was not specified.
1532 if test -z "$srcdir"; then
1533   ac_srcdir_defaulted=yes
1534   # Try the directory containing this script, then the parent directory.
1535   ac_confdir=`$as_dirname -- "$0" ||
1536 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1537          X"$0" : 'X\(//\)[^/]' \| \
1538          X"$0" : 'X\(//\)$' \| \
1539          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1540 echo X"$0" |
1541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542             s//\1/
1543             q
1544           }
1545           /^X\(\/\/\)[^/].*/{
1546             s//\1/
1547             q
1548           }
1549           /^X\(\/\/\)$/{
1550             s//\1/
1551             q
1552           }
1553           /^X\(\/\).*/{
1554             s//\1/
1555             q
1556           }
1557           s/.*/./; q'`
1558   srcdir=$ac_confdir
1559   if test ! -r "$srcdir/$ac_unique_file"; then
1560     srcdir=..
1561   fi
1562 else
1563   ac_srcdir_defaulted=no
1564 fi
1565 if test ! -r "$srcdir/$ac_unique_file"; then
1566   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1567   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1568    { (exit 1); exit 1; }; }
1569 fi
1570 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1571 ac_abs_confdir=`(
1572         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1573    { (exit 1); exit 1; }; }
1574         pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577   srcdir=.
1578 fi
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587   eval ac_env_${ac_var}_value=\$${ac_var}
1588   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1591
1592 #
1593 # Report the --help message.
1594 #
1595 if test "$ac_init_help" = "long"; then
1596   # Omit some internal or obsolete options to make the list less imposing.
1597   # This message is too long to be a string in the A/UX 3.1 sh.
1598   cat <<_ACEOF
1599 \`configure' configures wxWidgets 2.9.2 to adapt to many kinds of systems.
1600
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1602
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE.  See below for descriptions of some of the useful variables.
1605
1606 Defaults for the options are specified in brackets.
1607
1608 Configuration:
1609   -h, --help              display this help and exit
1610       --help=short        display options specific to this package
1611       --help=recursive    display the short help of all the included packages
1612   -V, --version           display version information and exit
1613   -q, --quiet, --silent   do not print \`checking...' messages
1614       --cache-file=FILE   cache test results in FILE [disabled]
1615   -C, --config-cache      alias for \`--cache-file=config.cache'
1616   -n, --no-create         do not create output files
1617       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1618
1619 Installation directories:
1620   --prefix=PREFIX         install architecture-independent files in PREFIX
1621                           [$ac_default_prefix]
1622   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1623                           [PREFIX]
1624
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1629
1630 For better control, use the options below.
1631
1632 Fine tuning of the installation directories:
1633   --bindir=DIR           user executables [EPREFIX/bin]
1634   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1635   --libexecdir=DIR       program executables [EPREFIX/libexec]
1636   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1637   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1638   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1639   --libdir=DIR           object code libraries [EPREFIX/lib]
1640   --includedir=DIR       C header files [PREFIX/include]
1641   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1642   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1643   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1644   --infodir=DIR          info documentation [DATAROOTDIR/info]
1645   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1646   --mandir=DIR           man documentation [DATAROOTDIR/man]
1647   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1648   --htmldir=DIR          html documentation [DOCDIR]
1649   --dvidir=DIR           dvi documentation [DOCDIR]
1650   --pdfdir=DIR           pdf documentation [DOCDIR]
1651   --psdir=DIR            ps documentation [DOCDIR]
1652 _ACEOF
1653
1654   cat <<\_ACEOF
1655
1656 X features:
1657   --x-includes=DIR    X include files are in DIR
1658   --x-libraries=DIR   X library files are in DIR
1659
1660 System types:
1661   --build=BUILD     configure for building on BUILD [guessed]
1662   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1663 _ACEOF
1664 fi
1665
1666 if test -n "$ac_init_help"; then
1667   case $ac_init_help in
1668      short | recursive ) echo "Configuration of wxWidgets 2.9.2:";;
1669    esac
1670   cat <<\_ACEOF
1671
1672 Optional Features:
1673   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1674   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1675   --disable-gui           don't build GUI parts of the library
1676   --enable-monolithic     build wxWidgets as single library
1677   --enable-plugins        build parts of wxWidgets as loadable components
1678   --enable-official_build official build of wxWidgets (win32 DLL only)
1679   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1680   --disable-all-features  disable all optional features to build minimal library
1681   --enable-universal      use wxWidgets GUI controls instead of native ones
1682   --enable-nanox          use NanoX
1683   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1684   --enable-gpe            use GNOME PDA Environment features if possible
1685   --enable-debug          build library for debugging
1686   --disable-debug_flag    disable all debugging support
1687   --enable-debug_info     generate debug information
1688   --enable-debug_gdb      create code with extra GDB debugging information
1689   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1690   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1691   --disable-shared        create static library instead of shared
1692   --enable-stl            use standard C++ classes for everything
1693   --enable-std_containers use standard C++ container classes
1694   --enable-std_iostreams  use standard C++ stream classes
1695   --enable-std_string     use standard C++ string classes
1696  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1697   --disable-unicode       compile without Unicode support
1698   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1699   --enable-utf8           use UTF-8 representation for strings (Unix only)
1700   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1701   --enable-extended_rtti  use extended RTTI (XTI)
1702   --enable-omf            use OMF object format
1703   --disable-optimise      compile without optimisations
1704   --enable-profile        create code with profiling information
1705   --enable-no_rtti        create code without RTTI information
1706   --enable-no_exceptions  create code without C++ exceptions handling
1707   --enable-permissive     compile code disregarding strict ANSI
1708   --enable-no_deps        create code without dependency information
1709   --disable-vararg_macros don't use vararg macros, even if they are supported
1710   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1711   --enable-macosx_arch=ARCH  build for just the specified architecture
1712   --enable-compat26       enable wxWidgets 2.6 compatibility
1713   --disable-compat28      disable wxWidgets 2.8 compatibility
1714   --disable-rpath         disable use of rpath for uninstalled builds
1715   --enable-objc_uniquifying enable Objective-C class name uniquifying
1716   --disable-visibility    disable use of ELF symbols visibility even if supported
1717   --disable-tls           disable use of compiler TLS support
1718   --enable-intl           use internationalization system
1719   --enable-xlocale        use x-locale support (requires wxLocale)
1720   --enable-config         use wxConfig (and derived) classes
1721   --enable-protocols      use wxProtocol and derived classes
1722   --enable-ftp            use wxFTP (requires wxProtocol
1723   --enable-http           use wxHTTP (requires wxProtocol
1724   --enable-fileproto      use wxFileProto class (requires wxProtocol
1725   --enable-sockets        use socket/network classes
1726   --enable-ipv6           enable IPv6 support in wxSocket
1727   --enable-ole            use OLE classes (Win32 only)
1728   --enable-dataobj        use data object classes
1729   --enable-ipc            use interprocess communication (wxSocket etc.)
1730   --enable-baseevtloop    use event loop in console programs too
1731   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1732   --enable-selectloop     use wxSelectDispatcher class
1733   --enable-any            use wxAny class
1734   --enable-apple_ieee     use the Apple IEEE codec
1735   --enable-arcstream      use wxArchive streams
1736   --enable-base64         use base64 encoding/decoding functions
1737   --enable-backtrace      use wxStackWalker class for getting backtraces
1738   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1739   --enable-cmdline        use wxCmdLineParser class
1740   --enable-datetime       use wxDateTime class
1741   --enable-debugreport    use wxDebugReport class
1742   --enable-dialupman      use dialup network classes
1743   --enable-dynlib         use wxLibrary class for DLL loading
1744   --enable-dynamicloader  use (new) wxDynamicLibrary class
1745   --enable-exceptions     build exception-safe library
1746   --enable-ffile          use wxFFile class
1747   --enable-file           use wxFile class
1748   --enable-filehistory    use wxFileHistory class
1749   --enable-filesystem     use virtual file systems classes
1750   --enable-fontenum       use wxFontEnumerator class
1751   --enable-fontmap        use font encodings conversion classes
1752   --enable-fs_archive     use virtual archive filesystems
1753   --enable-fs_inet        use virtual HTTP/FTP filesystems
1754   --enable-fs_zip         now replaced by fs_archive
1755   --enable-fswatcher      use wxFileSystemWatcher class
1756   --enable-geometry       use geometry class
1757   --enable-log            use logging system
1758   --enable-longlong       use wxLongLong class
1759   --enable-mimetype       use wxMimeTypesManager
1760   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1761   --enable-snglinst       use wxSingleInstanceChecker class
1762   --enable-sound          use wxSound class
1763   --enable-stdpaths       use wxStandardPaths class
1764   --enable-stopwatch      use wxStopWatch class
1765   --enable-streams        use wxStream etc classes
1766   --enable-sysoptions     use wxSystemOptions
1767   --enable-tarstream      use wxTar streams
1768   --enable-textbuf        use wxTextBuffer class
1769   --enable-textfile       use wxTextFile class
1770   --enable-timer          use wxTimer class
1771   --enable-variant        use wxVariant class
1772   --enable-zipstream      use wxZip streams
1773   --enable-url            use wxURL class
1774   --enable-protocol       use wxProtocol class
1775   --enable-protocol-http  HTTP support in wxProtocol
1776   --enable-protocol-ftp   FTP support in wxProtocol
1777   --enable-protocol-file  FILE support in wxProtocol
1778   --enable-threads        use threads
1779   --enable-iniconf        use wxIniConfig (Win32 only)
1780   --enable-regkey         use wxRegKey class (Win32 only)
1781   --enable-docview        use document view architecture
1782   --enable-help           use help subsystem
1783   --enable-mshtmlhelp     use MS HTML Help (win32)
1784   --enable-html           use wxHTML sub-library
1785   --enable-htmlhelp       use wxHTML-based help
1786   --enable-xrc            use XRC resources sub-library
1787   --enable-aui            use AUI docking library
1788   --enable-propgrid       use wxPropertyGrid library
1789   --enable-ribbon         use wxRibbon library
1790   --enable-stc            use wxStyledTextCtrl library
1791   --enable-constraints    use layout-constraints system
1792   --enable-loggui         use standard GUI logger
1793   --enable-logwin         use wxLogWindow
1794   --enable-logdialog      use wxLogDialog
1795   --enable-mdi            use multiple document interface architecture
1796   --enable-mdidoc         use docview architecture with MDI
1797   --enable-mediactrl      use wxMediaCtrl class
1798   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1799   --enable-webkit         use wxWebKitCtrl (Mac)
1800   --enable-richtext       use wxRichTextCtrl
1801   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1802   --enable-printarch      use printing architecture
1803   --enable-svg            use wxSVGFileDC device context
1804   --enable-graphics_ctx   use graphics context 2D drawing API
1805   --enable-clipboard      use wxClipboard class
1806   --enable-dnd            use Drag'n'Drop classes
1807   --enable-metafile       use win32 metafiles
1808   --disable-controls      disable compilation of all standard controls
1809   --enable-markup         support wxControl::SetLabelMarkup
1810   --enable-accel          use accelerators
1811   --enable-animatectrl    use wxAnimationCtrl class
1812   --enable-artstd         use standard XPM icons in wxArtProvider
1813   --enable-arttango       use Tango icons in wxArtProvider
1814   --enable-bmpbutton      use wxBitmapButton class
1815   --enable-bmpcombobox    use wxBitmapComboBox class
1816   --enable-button         use wxButton class
1817   --enable-calendar       use wxCalendarCtrl class
1818   --enable-caret          use wxCaret class
1819   --enable-checkbox       use wxCheckBox class
1820   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1821   --enable-choice         use wxChoice class
1822   --enable-choicebook     use wxChoicebook class
1823   --enable-collpane       use wxCollapsiblePane class
1824   --enable-colourpicker   use wxColourPickerCtrl class
1825   --enable-combobox       use wxComboBox class
1826   --enable-comboctrl      use wxComboCtrl class
1827   --enable-commandlinkbutton      use wxCommmandLinkButton class
1828   --enable-dataviewctrl   use wxDataViewCtrl class
1829   --enable-datepick       use wxDatePickerCtrl class
1830   --enable-detect_sm      use code to detect X11 session manager
1831   --enable-dirpicker      use wxDirPickerCtrl class
1832   --enable-display        use wxDisplay class
1833   --enable-editablebox    use wxEditableListBox class
1834   --enable-filectrl       use wxFileCtrl class
1835   --enable-filepicker     use wxFilePickerCtrl class
1836   --enable-fontpicker     use wxFontPickerCtrl class
1837   --enable-gauge          use wxGauge class
1838   --enable-grid           use wxGrid class
1839   --enable-headerctrl     use wxHeaderCtrl class
1840   --enable-hyperlink      use wxHyperlinkCtrl class
1841   --enable-imaglist       use wxImageList class
1842   --enable-infobar        use wxInfoBar class
1843   --enable-listbook       use wxListbook class
1844   --enable-listbox        use wxListBox class
1845   --enable-listctrl       use wxListCtrl class
1846   --enable-notebook       use wxNotebook class
1847   --enable-notifmsg       use wxNotificationMessage class
1848   --enable-odcombobox     use wxOwnerDrawnComboBox class
1849   --enable-popupwin       use wxPopUpWindow class
1850   --enable-radiobox       use wxRadioBox class
1851   --enable-radiobtn       use wxRadioButton class
1852   --enable-richmsgdlg     use wxRichMessageDialog class
1853   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1854   --enable-sash           use wxSashWindow class
1855   --enable-scrollbar      use wxScrollBar class and scrollable windows
1856   --enable-searchctrl     use wxSearchCtrl class
1857   --enable-slider         use wxSlider class
1858   --enable-spinbtn        use wxSpinButton class
1859   --enable-spinctrl       use wxSpinCtrl class
1860   --enable-splitter       use wxSplitterWindow class
1861   --enable-statbmp        use wxStaticBitmap class
1862   --enable-statbox        use wxStaticBox class
1863   --enable-statline       use wxStaticLine class
1864   --enable-stattext       use wxStaticText class
1865   --enable-statusbar      use wxStatusBar class
1866   --enable-taskbaricon    use wxTaskBarIcon class
1867   --enable-tbarnative     use native wxToolBar class
1868   --enable-textctrl       use wxTextCtrl class
1869   --enable-tipwindow      use wxTipWindow class
1870   --enable-togglebtn      use wxToggleButton class
1871   --enable-toolbar        use wxToolBar class
1872   --enable-toolbook       use wxToolbook class
1873   --enable-treebook       use wxTreebook class
1874   --enable-treectrl       use wxTreeCtrl class
1875   --enable-commondlg      use all common dialogs
1876   --enable-aboutdlg       use wxAboutBox
1877   --enable-choicedlg      use wxChoiceDialog
1878   --enable-coldlg         use wxColourDialog
1879   --enable-filedlg        use wxFileDialog
1880   --enable-finddlg        use wxFindReplaceDialog
1881   --enable-fontdlg        use wxFontDialog
1882   --enable-dirdlg         use wxDirDialog
1883   --enable-msgdlg         use wxMessageDialog
1884   --enable-numberdlg      use wxNumberEntryDialog
1885   --enable-splash         use wxSplashScreen
1886   --enable-textdlg        use wxTextDialog
1887   --enable-tipdlg         use startup tips
1888   --enable-progressdlg    use wxProgressDialog
1889   --enable-wizarddlg      use wxWizard
1890   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1891   --enable-miniframe      use wxMiniFrame class
1892   --enable-tooltips       use wxToolTip class
1893   --enable-splines        use spline drawing code
1894   --enable-mousewheel     use mousewheel
1895   --enable-validators     use wxValidator and derived classes
1896   --enable-busyinfo       use wxBusyInfo
1897   --enable-joystick       use wxJoystick
1898   --enable-metafiles      use wxMetaFile (Win32 only)
1899   --enable-dragimage      use wxDragImage
1900   --enable-accessibility  enable accessibility support
1901   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1902   --enable-dctransform    use wxDC::SetTransformMatrix and related
1903   --enable-palette        use wxPalette class
1904   --enable-image          use wxImage class
1905   --enable-gif            use gif images (GIF file format)
1906   --enable-pcx            use pcx images (PCX file format)
1907   --enable-tga            use tga images (TGA file format)
1908   --enable-iff            use iff images (IFF file format)
1909   --enable-pnm            use pnm images (PNM file format)
1910   --enable-xpm            use xpm images (XPM file format)
1911   --enable-ico_cur        use Windows ICO and CUR formats
1912   --enable-dccache        cache temporary wxDC objects (Win32 only)
1913   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1914   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1915   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1916   --enable-wxdib          use wxDIB class (Win32 only)
1917   --enable-autoidman      use automatic ids management
1918   --disable-largefile     omit support for large files
1919   --disable-gtktest       do not try to compile and run a test GTK+ program
1920   --disable-gtktest       Do not try to compile and run a test GTK program
1921   --disable-sdltest       Do not try to compile and run a test SDL program
1922   --enable-omf            use OMF object format (OS/2)
1923   --disable-dependency-tracking
1924                           don't use dependency tracking even if the compiler
1925                           can
1926   --disable-precomp-headers
1927                           don't use precompiled headers even if compiler can
1928
1929 Optional Packages:
1930   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1931   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1932   --without-subdirs       don't generate makefiles for samples/demos/...
1933   --with-flavour=NAME     specify a name to identify this build
1934   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1935   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1936   --with-motif            use Motif/Lesstif
1937   --with-osx_carbon       use Mac OS X (Carbon)
1938   --with-osx_cocoa        use Mac OS X (Cocoa)
1939   --with-osx_iphone       use iPhone OS X port
1940   --with-osx              use Mac OS X (default port, currently Carbon)
1941   --with-carbon           same as --with-osx_carbon
1942   --with-cocoa            same as --with-osx_cocoa
1943   --with-iphone           same as --with-osx_iphone
1944   --with-mac              same as --with-osx
1945   --with-old_cocoa        use old, deprecated, Cocoa port
1946   --with-wine             use Wine
1947   --with-msw              use MS-Windows
1948   --with-pm               use OS/2 Presentation Manager
1949   --with-mgl              use SciTech MGL
1950   --with-directfb         use DirectFB
1951   --with-microwin         use MicroWindows
1952   --with-x11              use X11
1953   --with-libpng           use libpng (PNG image format)
1954   --with-libjpeg          use libjpeg (JPEG file format)
1955   --with-libtiff          use libtiff (TIFF file format)
1956   --with-libxpm           use libxpm (XPM file format)
1957   --with-libiconv         use libiconv (character conversion)
1958   --with-libmspack        use libmspack (CHM help files loading)
1959   --without-gtkprint      don't use GTK printing support
1960   --without-gnomeprint    don't use GNOME printing libraries
1961   --with-gnomevfs         use GNOME VFS for associating MIME types
1962   --with-hildon           use Hildon framework for Nokia 770/800/810
1963   --with-opengl           use OpenGL (or Mesa)
1964   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1965   --with-sdl              use SDL for audio on Unix
1966   --with-regex            enable support for wxRegEx class
1967   --with-zlib             use zlib for LZW compression
1968   --with-expat            enable XML support using expat parser
1969   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1970   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1971   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1972   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1973   --with-x                use the X Window System
1974   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1975   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1976   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1977   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1978   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1979
1980 Some influential environment variables:
1981   CC          C compiler command
1982   CFLAGS      C compiler flags
1983   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1984               nonstandard directory <lib dir>
1985   LIBS        libraries to pass to the linker, e.g. -l<library>
1986   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1987               you have headers in a nonstandard directory <include dir>
1988   CPP         C preprocessor
1989   CXX         C++ compiler command
1990   CXXFLAGS    C++ compiler flags
1991   CXXCPP      C++ preprocessor
1992   PKG_CONFIG  path to pkg-config utility
1993   DIRECTFB_CFLAGS
1994               C compiler flags for DIRECTFB, overriding pkg-config
1995   DIRECTFB_LIBS
1996               linker flags for DIRECTFB, overriding pkg-config
1997   XMKMF       Path to xmkmf, Makefile generator for X Window System
1998   PANGOX_CFLAGS
1999               C compiler flags for PANGOX, overriding pkg-config
2000   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2001   PANGOFT2_CFLAGS
2002               C compiler flags for PANGOFT2, overriding pkg-config
2003   PANGOFT2_LIBS
2004               linker flags for PANGOFT2, overriding pkg-config
2005   PANGOXFT_CFLAGS
2006               C compiler flags for PANGOXFT, overriding pkg-config
2007   PANGOXFT_LIBS
2008               linker flags for PANGOXFT, overriding pkg-config
2009   GTKPRINT_CFLAGS
2010               C compiler flags for GTKPRINT, overriding pkg-config
2011   GTKPRINT_LIBS
2012               linker flags for GTKPRINT, overriding pkg-config
2013   LIBGNOMEPRINTUI_CFLAGS
2014               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2015   LIBGNOMEPRINTUI_LIBS
2016               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2017   GNOMEVFS_CFLAGS
2018               C compiler flags for GNOMEVFS, overriding pkg-config
2019   GNOMEVFS_LIBS
2020               linker flags for GNOMEVFS, overriding pkg-config
2021   HILDON_CFLAGS
2022               C compiler flags for HILDON, overriding pkg-config
2023   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2024   HILDON2_CFLAGS
2025               C compiler flags for HILDON2, overriding pkg-config
2026   HILDON2_LIBS
2027               linker flags for HILDON2, overriding pkg-config
2028   CAIRO_CFLAGS
2029               C compiler flags for CAIRO, overriding pkg-config
2030   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2031   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2032   GST_LIBS    linker flags for GST, overriding pkg-config
2033
2034 Use these variables to override the choices made by `configure' or to help
2035 it to find libraries and programs with nonstandard names/locations.
2036
2037 Report bugs to <wx-dev@lists.wxwidgets.org>.
2038 _ACEOF
2039 ac_status=$?
2040 fi
2041
2042 if test "$ac_init_help" = "recursive"; then
2043   # If there are subdirs, report their specific --help.
2044   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2045     test -d "$ac_dir" || continue
2046     ac_builddir=.
2047
2048 case "$ac_dir" in
2049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050 *)
2051   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2052   # A ".." for each directory in $ac_dir_suffix.
2053   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2054   case $ac_top_builddir_sub in
2055   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2056   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2057   esac ;;
2058 esac
2059 ac_abs_top_builddir=$ac_pwd
2060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2061 # for backward compatibility:
2062 ac_top_builddir=$ac_top_build_prefix
2063
2064 case $srcdir in
2065   .)  # We are building in place.
2066     ac_srcdir=.
2067     ac_top_srcdir=$ac_top_builddir_sub
2068     ac_abs_top_srcdir=$ac_pwd ;;
2069   [\\/]* | ?:[\\/]* )  # Absolute name.
2070     ac_srcdir=$srcdir$ac_dir_suffix;
2071     ac_top_srcdir=$srcdir
2072     ac_abs_top_srcdir=$srcdir ;;
2073   *) # Relative name.
2074     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2075     ac_top_srcdir=$ac_top_build_prefix$srcdir
2076     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2077 esac
2078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2079
2080     cd "$ac_dir" || { ac_status=$?; continue; }
2081     # Check for guested configure.
2082     if test -f "$ac_srcdir/configure.gnu"; then
2083       echo &&
2084       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2085     elif test -f "$ac_srcdir/configure"; then
2086       echo &&
2087       $SHELL "$ac_srcdir/configure" --help=recursive
2088     else
2089       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2090     fi || ac_status=$?
2091     cd "$ac_pwd" || { ac_status=$?; break; }
2092   done
2093 fi
2094
2095 test -n "$ac_init_help" && exit $ac_status
2096 if $ac_init_version; then
2097   cat <<\_ACEOF
2098 wxWidgets configure 2.9.2
2099 generated by GNU Autoconf 2.61
2100
2101 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2102 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2103 This configure script is free software; the Free Software Foundation
2104 gives unlimited permission to copy, distribute and modify it.
2105 _ACEOF
2106   exit
2107 fi
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
2112 It was created by wxWidgets $as_me 2.9.2, which was
2113 generated by GNU Autoconf 2.61.  Invocation command line was
2114
2115   $ $0 $@
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2133
2134 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2135 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2138 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2139 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2140 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   echo "PATH: $as_dir"
2150 done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176   for ac_arg
2177   do
2178     case $ac_arg in
2179     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181     | -silent | --silent | --silen | --sile | --sil)
2182       continue ;;
2183     *\'*)
2184       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185     esac
2186     case $ac_pass in
2187     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2188     2)
2189       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2190       if test $ac_must_keep_next = true; then
2191         ac_must_keep_next=false # Got value, back to normal.
2192       else
2193         case $ac_arg in
2194           *=* | --config-cache | -C | -disable-* | --disable-* \
2195           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197           | -with-* | --with-* | -without-* | --without-* | --x)
2198             case "$ac_configure_args0 " in
2199               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200             esac
2201             ;;
2202           -* ) ac_must_keep_next=true ;;
2203         esac
2204       fi
2205       ac_configure_args="$ac_configure_args '$ac_arg'"
2206       ;;
2207     esac
2208   done
2209 done
2210 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2211 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log.  We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219   # Save into config.log some information that might help in debugging.
2220   {
2221     echo
2222
2223     cat <<\_ASBOX
2224 ## ---------------- ##
2225 ## Cache variables. ##
2226 ## ---------------- ##
2227 _ASBOX
2228     echo
2229     # The following way of writing the cache mishandles newlines in values,
2230 (
2231   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232     eval ac_val=\$$ac_var
2233     case $ac_val in #(
2234     *${as_nl}*)
2235       case $ac_var in #(
2236       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2237 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2238       esac
2239       case $ac_var in #(
2240       _ | IFS | as_nl) ;; #(
2241       *) $as_unset $ac_var ;;
2242       esac ;;
2243     esac
2244   done
2245   (set) 2>&1 |
2246     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247     *${as_nl}ac_space=\ *)
2248       sed -n \
2249         "s/'\''/'\''\\\\'\'''\''/g;
2250           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251       ;; #(
2252     *)
2253       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2254       ;;
2255     esac |
2256     sort
2257 )
2258     echo
2259
2260     cat <<\_ASBOX
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2264 _ASBOX
2265     echo
2266     for ac_var in $ac_subst_vars
2267     do
2268       eval ac_val=\$$ac_var
2269       case $ac_val in
2270       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271       esac
2272       echo "$ac_var='\''$ac_val'\''"
2273     done | sort
2274     echo
2275
2276     if test -n "$ac_subst_files"; then
2277       cat <<\_ASBOX
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2281 _ASBOX
2282       echo
2283       for ac_var in $ac_subst_files
2284       do
2285         eval ac_val=\$$ac_var
2286         case $ac_val in
2287         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288         esac
2289         echo "$ac_var='\''$ac_val'\''"
2290       done | sort
2291       echo
2292     fi
2293
2294     if test -s confdefs.h; then
2295       cat <<\_ASBOX
2296 ## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##
2299 _ASBOX
2300       echo
2301       cat confdefs.h
2302       echo
2303     fi
2304     test "$ac_signal" != 0 &&
2305       echo "$as_me: caught signal $ac_signal"
2306     echo "$as_me: exit $exit_status"
2307   } >&5
2308   rm -f core *.core core.conftest.* &&
2309     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310     exit $exit_status
2311 ' 0
2312 for ac_signal in 1 2 13 15; do
2313   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2314 done
2315 ac_signal=0
2316
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2319
2320 # Predefined preprocessor variables.
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_NAME "$PACKAGE_NAME"
2324 _ACEOF
2325
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329 _ACEOF
2330
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2335
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_STRING "$PACKAGE_STRING"
2339 _ACEOF
2340
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346
2347 # Let the site file select an alternate cache file if it wants to.
2348 # Prefer explicitly selected file to automatically selected ones.
2349 if test -n "$CONFIG_SITE"; then
2350   set x "$CONFIG_SITE"
2351 elif test "x$prefix" != xNONE; then
2352   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2353 else
2354   set x "$ac_default_prefix/share/config.site" \
2355         "$ac_default_prefix/etc/config.site"
2356 fi
2357 shift
2358 for ac_site_file
2359 do
2360   if test -r "$ac_site_file"; then
2361     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2362 echo "$as_me: loading site script $ac_site_file" >&6;}
2363     sed 's/^/| /' "$ac_site_file" >&5
2364     . "$ac_site_file"
2365   fi
2366 done
2367
2368 if test -r "$cache_file"; then
2369   # Some versions of bash will fail to source /dev/null (special
2370   # files actually), so we avoid doing that.
2371   if test -f "$cache_file"; then
2372     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2373 echo "$as_me: loading cache $cache_file" >&6;}
2374     case $cache_file in
2375       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376       *)                      . "./$cache_file";;
2377     esac
2378   fi
2379 else
2380   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2381 echo "$as_me: creating cache $cache_file" >&6;}
2382   >$cache_file
2383 fi
2384
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390   eval ac_new_set=\$ac_env_${ac_var}_set
2391   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392   eval ac_new_val=\$ac_env_${ac_var}_value
2393   case $ac_old_set,$ac_new_set in
2394     set,)
2395       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397       ac_cache_corrupted=: ;;
2398     ,set)
2399       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2400 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,);;
2403     *)
2404       if test "x$ac_old_val" != "x$ac_new_val"; then
2405         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2406 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2408 echo "$as_me:   former value:  $ac_old_val" >&2;}
2409         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2410 echo "$as_me:   current value: $ac_new_val" >&2;}
2411         ac_cache_corrupted=:
2412       fi;;
2413   esac
2414   # Pass precious variables to config.status.
2415   if test "$ac_new_set" = set; then
2416     case $ac_new_val in
2417     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418     *) ac_arg=$ac_var=$ac_new_val ;;
2419     esac
2420     case " $ac_configure_args " in
2421       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2422       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2423     esac
2424   fi
2425 done
2426 if $ac_cache_corrupted; then
2427   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2428 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2430 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2431    { (exit 1); exit 1; }; }
2432 fi
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464
2465
2466
2467
2468 ac_aux_dir=
2469 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2470   if test -f "$ac_dir/install-sh"; then
2471     ac_aux_dir=$ac_dir
2472     ac_install_sh="$ac_aux_dir/install-sh -c"
2473     break
2474   elif test -f "$ac_dir/install.sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install.sh -c"
2477     break
2478   elif test -f "$ac_dir/shtool"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/shtool install -c"
2481     break
2482   fi
2483 done
2484 if test -z "$ac_aux_dir"; then
2485   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2486 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2487    { (exit 1); exit 1; }; }
2488 fi
2489
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2497
2498
2499 # Make sure we can run config.sub.
2500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2501   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2503    { (exit 1); exit 1; }; }
2504
2505 { echo "$as_me:$LINENO: checking build system type" >&5
2506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2507 if test "${ac_cv_build+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2516    { (exit 1); exit 1; }; }
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2520    { (exit 1); exit 1; }; }
2521
2522 fi
2523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2524 echo "${ECHO_T}$ac_cv_build" >&6; }
2525 case $ac_cv_build in
2526 *-*-*) ;;
2527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2528 echo "$as_me: error: invalid value of canonical build" >&2;}
2529    { (exit 1); exit 1; }; };;
2530 esac
2531 build=$ac_cv_build
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_build
2534 shift
2535 build_cpu=$1
2536 build_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 build_os=$*
2541 IFS=$ac_save_IFS
2542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2543
2544
2545 { echo "$as_me:$LINENO: checking host system type" >&5
2546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2547 if test "${ac_cv_host+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   if test "x$host_alias" = x; then
2551   ac_cv_host=$ac_cv_build
2552 else
2553   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2554     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2556    { (exit 1); exit 1; }; }
2557 fi
2558
2559 fi
2560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2561 echo "${ECHO_T}$ac_cv_host" >&6; }
2562 case $ac_cv_host in
2563 *-*-*) ;;
2564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2565 echo "$as_me: error: invalid value of canonical host" >&2;}
2566    { (exit 1); exit 1; }; };;
2567 esac
2568 host=$ac_cv_host
2569 ac_save_IFS=$IFS; IFS='-'
2570 set x $ac_cv_host
2571 shift
2572 host_cpu=$1
2573 host_vendor=$2
2574 shift; shift
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2577 host_os=$*
2578 IFS=$ac_save_IFS
2579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2580
2581
2582
2583 if test "$cross_compiling" != "no"; then
2584     HOST_PREFIX="${host_alias}-"
2585     HOST_SUFFIX="-$host_alias"
2586 else
2587     HOST_PREFIX=
2588     HOST_SUFFIX=
2589 fi
2590
2591
2592 wx_major_version_number=2
2593 wx_minor_version_number=9
2594 wx_release_number=2
2595 wx_subrelease_number=0
2596
2597 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2598 WX_VERSION=$WX_RELEASE.$wx_release_number
2599 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2600
2601 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2602
2603
2604 wx_top_builddir="`pwd`"
2605
2606
2607
2608
2609 USE_UNIX=1
2610 USE_OS2=0
2611 USE_WIN32=0
2612 USE_DOS=0
2613 USE_BEOS=0
2614 USE_MAC=0
2615
2616 USE_AIX=
2617 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2618 USE_GNU=                            USE_HPUX=
2619 USE_LINUX=
2620 USE_NETBSD=
2621 USE_OPENBSD=
2622 USE_OSF=                            USE_SGI=
2623 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2624 USE_ULTRIX=
2625 USE_UNIXWARE=
2626
2627 USE_ALPHA=
2628
2629 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2630
2631 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2632
2633 DEFAULT_wxUSE_OLD_COCOA=0
2634 DEFAULT_wxUSE_GTK=0
2635 DEFAULT_wxUSE_OSX_CARBON=0
2636 DEFAULT_wxUSE_OSX_COCOA=0
2637 DEFAULT_wxUSE_OSX_IPHONE=0
2638 DEFAULT_wxUSE_MGL=0
2639 DEFAULT_wxUSE_MICROWIN=0
2640 DEFAULT_wxUSE_MOTIF=0
2641 DEFAULT_wxUSE_MSW=0
2642 DEFAULT_wxUSE_PM=0
2643 DEFAULT_wxUSE_X11=0
2644 DEFAULT_wxUSE_DFB=0
2645
2646 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2647 DEFAULT_DEFAULT_wxUSE_GTK=0
2648 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2649 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2650 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2651 DEFAULT_DEFAULT_wxUSE_MGL=0
2652 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2653 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2654 DEFAULT_DEFAULT_wxUSE_MSW=0
2655 DEFAULT_DEFAULT_wxUSE_PM=0
2656 DEFAULT_DEFAULT_wxUSE_X11=0
2657 DEFAULT_DEFAULT_wxUSE_DFB=0
2658
2659 PROGRAM_EXT=
2660 SAMPLES_RPATH_FLAG=
2661 DYLIB_RPATH_INSTALL=
2662 DYLIB_RPATH_POSTLINK=
2663
2664 DEFAULT_STD_FLAG=yes
2665
2666 case "${host}" in
2667   *-hp-hpux* )
2668     USE_HPUX=1
2669     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2670     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __HPUX__ 1
2673 _ACEOF
2674
2675
2676             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2677   ;;
2678   *-*-linux* )
2679     USE_LINUX=1
2680     cat >>confdefs.h <<\_ACEOF
2681 #define __LINUX__ 1
2682 _ACEOF
2683
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   *-*-gnu* | *-*-k*bsd*-gnu )
2695     USE_GNU=1
2696     TMP=`uname -m`
2697     if test "x$TMP" = "xalpha"; then
2698       USE_ALPHA=1
2699       cat >>confdefs.h <<\_ACEOF
2700 #define __ALPHA__ 1
2701 _ACEOF
2702
2703     fi
2704     DEFAULT_DEFAULT_wxUSE_GTK=1
2705   ;;
2706   *-*-irix5* | *-*-irix6* )
2707     USE_SGI=1
2708     USE_SVR4=1
2709     cat >>confdefs.h <<\_ACEOF
2710 #define __SGI__ 1
2711 _ACEOF
2712
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __SVR4__ 1
2715 _ACEOF
2716
2717     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2718   ;;
2719   *-*-qnx*)
2720     USE_QNX=1
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __QNX__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_X11=1
2726   ;;
2727   *-*-solaris2* )
2728     USE_SUN=1
2729     USE_SOLARIS=1
2730     USE_SVR4=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __SUN__ 1
2733 _ACEOF
2734
2735     cat >>confdefs.h <<\_ACEOF
2736 #define __SOLARIS__ 1
2737 _ACEOF
2738
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __SVR4__ 1
2741 _ACEOF
2742
2743     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2744     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2745   ;;
2746   *-*-sunos4* )
2747     USE_SUN=1
2748     USE_SUNOS=1
2749     USE_BSD=1
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __SUN__ 1
2752 _ACEOF
2753
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __SUNOS__ 1
2756 _ACEOF
2757
2758     cat >>confdefs.h <<\_ACEOF
2759 #define __BSD__ 1
2760 _ACEOF
2761
2762     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2763   ;;
2764   *-*-freebsd*)
2765     USE_BSD=1
2766     USE_FREEBSD=1
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __FREEBSD__ 1
2769 _ACEOF
2770
2771     cat >>confdefs.h <<\_ACEOF
2772 #define __BSD__ 1
2773 _ACEOF
2774
2775     DEFAULT_DEFAULT_wxUSE_GTK=1
2776   ;;
2777   *-*-openbsd*|*-*-mirbsd*)
2778     USE_BSD=1
2779     USE_OPENBSD=1
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __OPENBSD__ 1
2782 _ACEOF
2783
2784     cat >>confdefs.h <<\_ACEOF
2785 #define __BSD__ 1
2786 _ACEOF
2787
2788     DEFAULT_DEFAULT_wxUSE_GTK=1
2789   ;;
2790   *-*-netbsd*)
2791     USE_BSD=1
2792     USE_NETBSD=1
2793     cat >>confdefs.h <<\_ACEOF
2794 #define __NETBSD__ 1
2795 _ACEOF
2796
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __BSD__ 1
2799 _ACEOF
2800
2801     DEFAULT_DEFAULT_wxUSE_GTK=1
2802     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2803
2804             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2805   ;;
2806   *-*-osf* )
2807     USE_ALPHA=1
2808     USE_OSF=1
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __ALPHA__ 1
2811 _ACEOF
2812
2813     cat >>confdefs.h <<\_ACEOF
2814 #define __OSF__ 1
2815 _ACEOF
2816
2817     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2818     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2819   ;;
2820   *-*-dgux5* )
2821     USE_ALPHA=1
2822     USE_SVR4=1
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __ALPHA__ 1
2825 _ACEOF
2826
2827     cat >>confdefs.h <<\_ACEOF
2828 #define __SVR4__ 1
2829 _ACEOF
2830
2831     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2832   ;;
2833   *-*-sysv5* )
2834     USE_SYSV=1
2835     USE_SVR4=1
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __SYSV__ 1
2838 _ACEOF
2839
2840     cat >>confdefs.h <<\_ACEOF
2841 #define __SVR4__ 1
2842 _ACEOF
2843
2844     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2845   ;;
2846   *-*-aix* )
2847     USE_AIX=1
2848     USE_SYSV=1
2849     USE_SVR4=1
2850     cat >>confdefs.h <<\_ACEOF
2851 #define __AIX__ 1
2852 _ACEOF
2853
2854     cat >>confdefs.h <<\_ACEOF
2855 #define __SYSV__ 1
2856 _ACEOF
2857
2858     cat >>confdefs.h <<\_ACEOF
2859 #define __SVR4__ 1
2860 _ACEOF
2861
2862     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2863   ;;
2864
2865   *-*-*UnixWare*)
2866     USE_SYSV=1
2867     USE_SVR4=1
2868     USE_UNIXWARE=1
2869     cat >>confdefs.h <<\_ACEOF
2870 #define __UNIXWARE__ 1
2871 _ACEOF
2872
2873   ;;
2874
2875   *-*-cygwin* | *-*-mingw32* )
2876                 PROGRAM_EXT=".exe"
2877     DEFAULT_DEFAULT_wxUSE_MSW=1
2878   ;;
2879
2880   *-pc-msdosdjgpp )
2881     USE_UNIX=0
2882     USE_DOS=1
2883     cat >>confdefs.h <<\_ACEOF
2884 #define __DOS__ 1
2885 _ACEOF
2886
2887     PROGRAM_EXT=".exe"
2888     DEFAULT_DEFAULT_wxUSE_MGL=1
2889   ;;
2890
2891   *-pc-os2_emx | *-pc-os2-emx )
2892     cat >>confdefs.h <<\_ACEOF
2893 #define __EMX__ 1
2894 _ACEOF
2895
2896     USE_OS2=1
2897     cat >>confdefs.h <<\_ACEOF
2898 #define __OS2__ 1
2899 _ACEOF
2900
2901     PROGRAM_EXT=".exe"
2902     DEFAULT_DEFAULT_wxUSE_PM=1
2903         CXX=gcc
2904     LDFLAGS="$LDFLAGS -Zcrtdll"
2905                         ac_executable_extensions=".exe"
2906     export ac_executable_extensions
2907             ac_save_IFS="$IFS"
2908     IFS='\\'
2909     ac_TEMP_PATH=
2910     for ac_dir in $PATH; do
2911       IFS=$ac_save_IFS
2912       if test -z "$ac_TEMP_PATH"; then
2913         ac_TEMP_PATH="$ac_dir"
2914       else
2915         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2916       fi
2917     done
2918     export PATH="$ac_TEMP_PATH"
2919     unset ac_TEMP_PATH
2920     DEFAULT_STD_FLAG=no
2921   ;;
2922
2923   arm-apple-darwin*)
2924         USE_BSD=1
2925     USE_DARWIN=1
2926     cat >>confdefs.h <<\_ACEOF
2927 #define __BSD__ 1
2928 _ACEOF
2929
2930     cat >>confdefs.h <<\_ACEOF
2931 #define __DARWIN__ 1
2932 _ACEOF
2933
2934     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2935   ;;
2936
2937   *-*-darwin* )
2938         USE_BSD=1
2939     USE_DARWIN=1
2940     cat >>confdefs.h <<\_ACEOF
2941 #define __BSD__ 1
2942 _ACEOF
2943
2944     cat >>confdefs.h <<\_ACEOF
2945 #define __DARWIN__ 1
2946 _ACEOF
2947
2948     cat >>confdefs.h <<\_ACEOF
2949 #define TARGET_CARBON 1
2950 _ACEOF
2951
2952     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2953   ;;
2954
2955   *-*-beos* )
2956         USE_BEOS=1
2957     cat >>confdefs.h <<\_ACEOF
2958 #define __BEOS__ 1
2959 _ACEOF
2960
2961   ;;
2962
2963   *)
2964     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2965 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2966     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2967 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2968
2969     DEFAULT_DEFAULT_wxUSE_X11=1
2970     DEFAULT_wxUSE_SHARED=no
2971 esac
2972
2973
2974
2975 DEFAULT_wxUSE_ALL_FEATURES=yes
2976
2977 DEFAULT_wxUSE_STD_CONTAINERS=$DEFAULT_STD_FLAG
2978 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2979 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2980
2981 DEFAULT_wxUSE_DMALLOC=no
2982 DEFAULT_wxUSE_LIBGNOMEVFS=no
2983 DEFAULT_wxUSE_LIBHILDON=no
2984 DEFAULT_wxUSE_LIBHILDON2=no
2985 DEFAULT_wxUSE_LIBMSPACK=no
2986 DEFAULT_wxUSE_LIBSDL=no
2987
2988 DEFAULT_wxUSE_ACCESSIBILITY=no
2989 DEFAULT_wxUSE_IPV6=no
2990 DEFAULT_wxUSE_GSTREAMER8=no
2991
2992 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
2993 DEFAULT_wxUSE_UNICODE_UTF8=auto
2994 DEFAULT_wxUSE_OPENGL=auto
2995 DEFAULT_wxUSE_MEDIACTRL=auto
2996 DEFAULT_wxUSE_COMPILER_TLS=auto
2997
2998 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2999
3000 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3001 DEFAULT_wxUSE_MAC_ARCH=no
3002
3003 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3004
3005 DEFAULT_wxUSE_GTK2=yes
3006
3007 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3008
3009
3010
3011
3012
3013           enablestring=disable
3014           defaultval=
3015           if test -z "$defaultval"; then
3016               if test x"$enablestring" = xdisable; then
3017                   defaultval=yes
3018               else
3019                   defaultval=no
3020               fi
3021           fi
3022
3023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3024 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3025           # Check whether --enable-gui was given.
3026 if test "${enable_gui+set}" = set; then
3027   enableval=$enable_gui;
3028                           if test "$enableval" = yes; then
3029                             wx_cv_use_gui='wxUSE_GUI=yes'
3030                           else
3031                             wx_cv_use_gui='wxUSE_GUI=no'
3032                           fi
3033
3034 else
3035
3036                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3037
3038 fi
3039
3040
3041           eval "$wx_cv_use_gui"
3042
3043           if test x"$enablestring" = xdisable; then
3044             if test $wxUSE_GUI = no; then
3045               result=yes
3046             else
3047               result=no
3048             fi
3049           else
3050             result=$wxUSE_GUI
3051           fi
3052
3053           { echo "$as_me:$LINENO: result: $result" >&5
3054 echo "${ECHO_T}$result" >&6; }
3055
3056
3057           enablestring=
3058           defaultval=
3059           if test -z "$defaultval"; then
3060               if test x"$enablestring" = xdisable; then
3061                   defaultval=yes
3062               else
3063                   defaultval=no
3064               fi
3065           fi
3066
3067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3068 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3069           # Check whether --enable-monolithic was given.
3070 if test "${enable_monolithic+set}" = set; then
3071   enableval=$enable_monolithic;
3072                           if test "$enableval" = yes; then
3073                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3074                           else
3075                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3076                           fi
3077
3078 else
3079
3080                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3081
3082 fi
3083
3084
3085           eval "$wx_cv_use_monolithic"
3086
3087           if test x"$enablestring" = xdisable; then
3088             if test $wxUSE_MONOLITHIC = no; then
3089               result=yes
3090             else
3091               result=no
3092             fi
3093           else
3094             result=$wxUSE_MONOLITHIC
3095           fi
3096
3097           { echo "$as_me:$LINENO: result: $result" >&5
3098 echo "${ECHO_T}$result" >&6; }
3099
3100
3101           enablestring=
3102           defaultval=
3103           if test -z "$defaultval"; then
3104               if test x"$enablestring" = xdisable; then
3105                   defaultval=yes
3106               else
3107                   defaultval=no
3108               fi
3109           fi
3110
3111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3112 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3113           # Check whether --enable-plugins was given.
3114 if test "${enable_plugins+set}" = set; then
3115   enableval=$enable_plugins;
3116                           if test "$enableval" = yes; then
3117                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3118                           else
3119                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3120                           fi
3121
3122 else
3123
3124                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3125
3126 fi
3127
3128
3129           eval "$wx_cv_use_plugins"
3130
3131           if test x"$enablestring" = xdisable; then
3132             if test $wxUSE_PLUGINS = no; then
3133               result=yes
3134             else
3135               result=no
3136             fi
3137           else
3138             result=$wxUSE_PLUGINS
3139           fi
3140
3141           { echo "$as_me:$LINENO: result: $result" >&5
3142 echo "${ECHO_T}$result" >&6; }
3143
3144
3145           withstring=without
3146           defaultval=$wxUSE_ALL_FEATURES
3147           if test -z "$defaultval"; then
3148               if test x"$withstring" = xwithout; then
3149                   defaultval=yes
3150               else
3151                   defaultval=no
3152               fi
3153           fi
3154           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3155 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3156
3157 # Check whether --with-subdirs was given.
3158 if test "${with_subdirs+set}" = set; then
3159   withval=$with_subdirs;
3160                         if test "$withval" = yes; then
3161                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3162                         else
3163                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3164                         fi
3165
3166 else
3167
3168                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3169
3170 fi
3171
3172
3173           eval "$wx_cv_use_subdirs"
3174
3175           if test x"$withstring" = xwithout; then
3176             if test $wxWITH_SUBDIRS = yes; then
3177               result=no
3178             else
3179               result=yes
3180             fi
3181           else
3182             result=$wxWITH_SUBDIRS
3183           fi
3184
3185           { echo "$as_me:$LINENO: result: $result" >&5
3186 echo "${ECHO_T}$result" >&6; }
3187
3188
3189 # Check whether --with-flavour was given.
3190 if test "${with_flavour+set}" = set; then
3191   withval=$with_flavour; WX_FLAVOUR="$withval"
3192 fi
3193
3194
3195           enablestring=
3196           defaultval=
3197           if test -z "$defaultval"; then
3198               if test x"$enablestring" = xdisable; then
3199                   defaultval=yes
3200               else
3201                   defaultval=no
3202               fi
3203           fi
3204
3205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3206 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3207           # Check whether --enable-official_build was given.
3208 if test "${enable_official_build+set}" = set; then
3209   enableval=$enable_official_build;
3210                           if test "$enableval" = yes; then
3211                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3212                           else
3213                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3214                           fi
3215
3216 else
3217
3218                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3219
3220 fi
3221
3222
3223           eval "$wx_cv_use_official_build"
3224
3225           if test x"$enablestring" = xdisable; then
3226             if test $wxUSE_OFFICIAL_BUILD = no; then
3227               result=yes
3228             else
3229               result=no
3230             fi
3231           else
3232             result=$wxUSE_OFFICIAL_BUILD
3233           fi
3234
3235           { echo "$as_me:$LINENO: result: $result" >&5
3236 echo "${ECHO_T}$result" >&6; }
3237
3238 # Check whether --enable-vendor was given.
3239 if test "${enable_vendor+set}" = set; then
3240   enableval=$enable_vendor; VENDOR="$enableval"
3241 fi
3242
3243 if test "x$VENDOR" = "x"; then
3244     VENDOR="custom"
3245 fi
3246
3247
3248           enablestring=disable
3249           defaultval=
3250           if test -z "$defaultval"; then
3251               if test x"$enablestring" = xdisable; then
3252                   defaultval=yes
3253               else
3254                   defaultval=no
3255               fi
3256           fi
3257
3258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3259 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3260           # Check whether --enable-all-features was given.
3261 if test "${enable_all_features+set}" = set; then
3262   enableval=$enable_all_features;
3263                           if test "$enableval" = yes; then
3264                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3265                           else
3266                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3267                           fi
3268
3269 else
3270
3271                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3272
3273 fi
3274
3275
3276           eval "$wx_cv_use_all_features"
3277
3278           if test x"$enablestring" = xdisable; then
3279             if test $wxUSE_ALL_FEATURES = no; then
3280               result=yes
3281             else
3282               result=no
3283             fi
3284           else
3285             result=$wxUSE_ALL_FEATURES
3286           fi
3287
3288           { echo "$as_me:$LINENO: result: $result" >&5
3289 echo "${ECHO_T}$result" >&6; }
3290
3291
3292 if test "$wxUSE_ALL_FEATURES" = "no"; then
3293                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3294     DEFAULT_wxUSE_MEDIACTRL=no
3295 fi
3296
3297
3298 if test "$wxUSE_GUI" = "yes"; then
3299
3300
3301           enablestring=
3302           defaultval=
3303           if test -z "$defaultval"; then
3304               if test x"$enablestring" = xdisable; then
3305                   defaultval=yes
3306               else
3307                   defaultval=no
3308               fi
3309           fi
3310
3311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3312 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3313           # Check whether --enable-universal was given.
3314 if test "${enable_universal+set}" = set; then
3315   enableval=$enable_universal;
3316                           if test "$enableval" = yes; then
3317                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3318                           else
3319                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3320                           fi
3321
3322 else
3323
3324                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3325
3326 fi
3327
3328
3329           eval "$wx_cv_use_universal"
3330
3331           if test x"$enablestring" = xdisable; then
3332             if test $wxUSE_UNIVERSAL = no; then
3333               result=yes
3334             else
3335               result=no
3336             fi
3337           else
3338             result=$wxUSE_UNIVERSAL
3339           fi
3340
3341           { echo "$as_me:$LINENO: result: $result" >&5
3342 echo "${ECHO_T}$result" >&6; }
3343
3344 if test "$wxUSE_UNIVERSAL" = "yes"; then
3345
3346 # Check whether --with-themes was given.
3347 if test "${with_themes+set}" = set; then
3348   withval=$with_themes; wxUNIV_THEMES="$withval"
3349 fi
3350
3351 fi
3352
3353
3354 # Check whether --with-gtk was given.
3355 if test "${with_gtk+set}" = set; then
3356   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360 # Check whether --with-motif was given.
3361 if test "${with_motif+set}" = set; then
3362   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3363 fi
3364
3365
3366 # Check whether --with-osx_carbon was given.
3367 if test "${with_osx_carbon+set}" = set; then
3368   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-osx_cocoa was given.
3373 if test "${with_osx_cocoa+set}" = set; then
3374   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-osx_iphone was given.
3379 if test "${with_osx_iphone+set}" = set; then
3380   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-osx was given.
3385 if test "${with_osx+set}" = set; then
3386   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-carbon was given.
3391 if test "${with_carbon+set}" = set; then
3392   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3393 fi
3394
3395
3396 # Check whether --with-cocoa was given.
3397 if test "${with_cocoa+set}" = set; then
3398   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402 # Check whether --with-iphone was given.
3403 if test "${with_iphone+set}" = set; then
3404   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3405 fi
3406
3407
3408 # Check whether --with-mac was given.
3409 if test "${with_mac+set}" = set; then
3410   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3411 fi
3412
3413
3414 # Check whether --with-old_cocoa was given.
3415 if test "${with_old_cocoa+set}" = set; then
3416   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3417 fi
3418
3419
3420 # Check whether --with-wine was given.
3421 if test "${with_wine+set}" = set; then
3422   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3423 fi
3424
3425
3426 # Check whether --with-msw was given.
3427 if test "${with_msw+set}" = set; then
3428   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3429 fi
3430
3431
3432 # Check whether --with-pm was given.
3433 if test "${with_pm+set}" = set; then
3434   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3435 fi
3436
3437
3438 # Check whether --with-mgl was given.
3439 if test "${with_mgl+set}" = set; then
3440   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3441 fi
3442
3443
3444 # Check whether --with-directfb was given.
3445 if test "${with_directfb+set}" = set; then
3446   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3447 fi
3448
3449
3450 # Check whether --with-microwin was given.
3451 if test "${with_microwin+set}" = set; then
3452   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3453 fi
3454
3455
3456 # Check whether --with-x11 was given.
3457 if test "${with_x11+set}" = set; then
3458   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3459 fi
3460
3461
3462           enablestring=
3463           defaultval=
3464           if test -z "$defaultval"; then
3465               if test x"$enablestring" = xdisable; then
3466                   defaultval=yes
3467               else
3468                   defaultval=no
3469               fi
3470           fi
3471
3472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3473 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3474           # Check whether --enable-nanox was given.
3475 if test "${enable_nanox+set}" = set; then
3476   enableval=$enable_nanox;
3477                           if test "$enableval" = yes; then
3478                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3479                           else
3480                             wx_cv_use_nanox='wxUSE_NANOX=no'
3481                           fi
3482
3483 else
3484
3485                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3486
3487 fi
3488
3489
3490           eval "$wx_cv_use_nanox"
3491
3492           if test x"$enablestring" = xdisable; then
3493             if test $wxUSE_NANOX = no; then
3494               result=yes
3495             else
3496               result=no
3497             fi
3498           else
3499             result=$wxUSE_NANOX
3500           fi
3501
3502           { echo "$as_me:$LINENO: result: $result" >&5
3503 echo "${ECHO_T}$result" >&6; }
3504
3505
3506 # Check whether --enable-gtk2 was given.
3507 if test "${enable_gtk2+set}" = set; then
3508   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3509 fi
3510
3511
3512           enablestring=
3513           defaultval=
3514           if test -z "$defaultval"; then
3515               if test x"$enablestring" = xdisable; then
3516                   defaultval=yes
3517               else
3518                   defaultval=no
3519               fi
3520           fi
3521
3522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3523 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3524           # Check whether --enable-gpe was given.
3525 if test "${enable_gpe+set}" = set; then
3526   enableval=$enable_gpe;
3527                           if test "$enableval" = yes; then
3528                             wx_cv_use_gpe='wxUSE_GPE=yes'
3529                           else
3530                             wx_cv_use_gpe='wxUSE_GPE=no'
3531                           fi
3532
3533 else
3534
3535                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3536
3537 fi
3538
3539
3540           eval "$wx_cv_use_gpe"
3541
3542           if test x"$enablestring" = xdisable; then
3543             if test $wxUSE_GPE = no; then
3544               result=yes
3545             else
3546               result=no
3547             fi
3548           else
3549             result=$wxUSE_GPE
3550           fi
3551
3552           { echo "$as_me:$LINENO: result: $result" >&5
3553 echo "${ECHO_T}$result" >&6; }
3554
3555
3556
3557 { echo "$as_me:$LINENO: checking for toolkit" >&5
3558 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3559
3560
3561
3562 # In Wine, we need to default to MSW, not GTK or MOTIF
3563 if test "$wxUSE_WINE" = "yes"; then
3564     DEFAULT_DEFAULT_wxUSE_GTK=0
3565     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3566     DEFAULT_DEFAULT_wxUSE_MSW=1
3567     wxUSE_SHARED=no
3568     CC=${CC:-winegcc}
3569     CXX=${CXX:-wineg++}
3570 fi
3571
3572
3573 if test "$wxUSE_GUI" = "yes"; then
3574
3575     if test "$USE_BEOS" = 1; then
3576         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3577 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3578    { (exit 1); exit 1; }; }
3579     fi
3580
3581     if test "$TOOLKIT_GIVEN" = 1; then
3582             for toolkit in $ALL_TOOLKITS; do
3583         var=wxUSE_$toolkit
3584         eval "value=\$${var}"
3585         if test "x$value" = "xno"; then
3586           eval "$var=0"
3587         elif test "x$value" != "x"; then
3588           eval "$var=1"
3589         fi
3590
3591         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3592           eval "wx${toolkit}_VERSION=$value"
3593         fi
3594       done
3595     else
3596             for toolkit in $ALL_TOOLKITS; do
3597         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3598         eval "wxUSE_$toolkit=\$${var}"
3599       done
3600     fi
3601
3602             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3603                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3604                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3605
3606         case "${host}" in
3607       *-pc-os2_emx | *-pc-os2-emx )
3608         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3609     esac
3610
3611     case "$NUM_TOOLKITS" in
3612       1)
3613       ;;
3614       0)
3615         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3616 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3617    { (exit 1); exit 1; }; }
3618       ;;
3619       *)
3620         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3621 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3622    { (exit 1); exit 1; }; }
3623     esac
3624
3625     # to be removed when --disable-gtk2 isn't needed
3626     if test "x$wxUSE_GTK2" = "xyes"; then
3627         wxGTK_VERSION=2
3628         wxUSE_GTK1=0
3629     elif test "x$wxUSE_GTK2" = "xno"; then
3630         wxGTK_VERSION=1
3631         wxUSE_GTK1=1
3632     fi
3633
3634     for toolkit in $ALL_TOOLKITS; do
3635         var=wxUSE_$toolkit
3636         eval "value=\$${var}"
3637         if test "$value" = 1; then
3638           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3639           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3640 echo "${ECHO_T}$toolkit_echo" >&6; }
3641         fi
3642     done
3643 else
3644     if test "x$host_alias" != "x"; then
3645         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3646 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3647     else
3648         { echo "$as_me:$LINENO: result: base only" >&5
3649 echo "${ECHO_T}base only" >&6; }
3650     fi
3651 fi
3652
3653 wxUSE_MAC=0
3654 if test "$wxUSE_OSX_CARBON" = 1 \
3655        -o "$wxUSE_OSX_COCOA" = 1 \
3656        -o "$wxUSE_OSX_IPHONE" = 1; then
3657     wxUSE_MAC=1
3658 fi
3659
3660
3661
3662           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3663 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3664
3665 # Check whether --with-libpng was given.
3666 if test "${with_libpng+set}" = set; then
3667   withval=$with_libpng;
3668                         if test "$withval" = yes; then
3669                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3670                         elif test "$withval" = no; then
3671                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3672                         elif test "$withval" = sys; then
3673                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3674                         elif test "$withval" = builtin; then
3675                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3676                         else
3677                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3678 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3679    { (exit 1); exit 1; }; }
3680                         fi
3681
3682 else
3683
3684                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3685
3686 fi
3687
3688
3689           eval "$wx_cv_use_libpng"
3690
3691           if test "$wxUSE_LIBPNG" = yes; then
3692             { echo "$as_me:$LINENO: result: yes" >&5
3693 echo "${ECHO_T}yes" >&6; }
3694           elif test "$wxUSE_LIBPNG" = no; then
3695             { echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6; }
3697           elif test "$wxUSE_LIBPNG" = sys; then
3698             { echo "$as_me:$LINENO: result: system version" >&5
3699 echo "${ECHO_T}system version" >&6; }
3700           elif test "$wxUSE_LIBPNG" = builtin; then
3701             { echo "$as_me:$LINENO: result: builtin version" >&5
3702 echo "${ECHO_T}builtin version" >&6; }
3703           else
3704             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3705 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3706    { (exit 1); exit 1; }; }
3707           fi
3708
3709
3710           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3711 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3712
3713 # Check whether --with-libjpeg was given.
3714 if test "${with_libjpeg+set}" = set; then
3715   withval=$with_libjpeg;
3716                         if test "$withval" = yes; then
3717                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3718                         elif test "$withval" = no; then
3719                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3720                         elif test "$withval" = sys; then
3721                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3722                         elif test "$withval" = builtin; then
3723                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3724                         else
3725                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3726 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3727    { (exit 1); exit 1; }; }
3728                         fi
3729
3730 else
3731
3732                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3733
3734 fi
3735
3736
3737           eval "$wx_cv_use_libjpeg"
3738
3739           if test "$wxUSE_LIBJPEG" = yes; then
3740             { echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6; }
3742           elif test "$wxUSE_LIBJPEG" = no; then
3743             { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3745           elif test "$wxUSE_LIBJPEG" = sys; then
3746             { echo "$as_me:$LINENO: result: system version" >&5
3747 echo "${ECHO_T}system version" >&6; }
3748           elif test "$wxUSE_LIBJPEG" = builtin; then
3749             { echo "$as_me:$LINENO: result: builtin version" >&5
3750 echo "${ECHO_T}builtin version" >&6; }
3751           else
3752             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3753 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3754    { (exit 1); exit 1; }; }
3755           fi
3756
3757
3758           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3759 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3760
3761 # Check whether --with-libtiff was given.
3762 if test "${with_libtiff+set}" = set; then
3763   withval=$with_libtiff;
3764                         if test "$withval" = yes; then
3765                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3766                         elif test "$withval" = no; then
3767                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3768                         elif test "$withval" = sys; then
3769                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3770                         elif test "$withval" = builtin; then
3771                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3772                         else
3773                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3774 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3775    { (exit 1); exit 1; }; }
3776                         fi
3777
3778 else
3779
3780                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3781
3782 fi
3783
3784
3785           eval "$wx_cv_use_libtiff"
3786
3787           if test "$wxUSE_LIBTIFF" = yes; then
3788             { echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6; }
3790           elif test "$wxUSE_LIBTIFF" = no; then
3791             { echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6; }
3793           elif test "$wxUSE_LIBTIFF" = sys; then
3794             { echo "$as_me:$LINENO: result: system version" >&5
3795 echo "${ECHO_T}system version" >&6; }
3796           elif test "$wxUSE_LIBTIFF" = builtin; then
3797             { echo "$as_me:$LINENO: result: builtin version" >&5
3798 echo "${ECHO_T}builtin version" >&6; }
3799           else
3800             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3801 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3802    { (exit 1); exit 1; }; }
3803           fi
3804
3805
3806           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3807 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3808
3809 # Check whether --with-libxpm was given.
3810 if test "${with_libxpm+set}" = set; then
3811   withval=$with_libxpm;
3812                         if test "$withval" = yes; then
3813                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3814                         elif test "$withval" = no; then
3815                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3816                         elif test "$withval" = sys; then
3817                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3818                         elif test "$withval" = builtin; then
3819                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3820                         else
3821                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3822 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3823    { (exit 1); exit 1; }; }
3824                         fi
3825
3826 else
3827
3828                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3829
3830 fi
3831
3832
3833           eval "$wx_cv_use_libxpm"
3834
3835           if test "$wxUSE_LIBXPM" = yes; then
3836             { echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6; }
3838           elif test "$wxUSE_LIBXPM" = no; then
3839             { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3841           elif test "$wxUSE_LIBXPM" = sys; then
3842             { echo "$as_me:$LINENO: result: system version" >&5
3843 echo "${ECHO_T}system version" >&6; }
3844           elif test "$wxUSE_LIBXPM" = builtin; then
3845             { echo "$as_me:$LINENO: result: builtin version" >&5
3846 echo "${ECHO_T}builtin version" >&6; }
3847           else
3848             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3849 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3850    { (exit 1); exit 1; }; }
3851           fi
3852
3853
3854           withstring=
3855           defaultval=$wxUSE_ALL_FEATURES
3856           if test -z "$defaultval"; then
3857               if test x"$withstring" = xwithout; then
3858                   defaultval=yes
3859               else
3860                   defaultval=no
3861               fi
3862           fi
3863           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3864 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3865
3866 # Check whether --with-libiconv was given.
3867 if test "${with_libiconv+set}" = set; then
3868   withval=$with_libiconv;
3869                         if test "$withval" = yes; then
3870                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3871                         else
3872                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3873                         fi
3874
3875 else
3876
3877                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3878
3879 fi
3880
3881
3882           eval "$wx_cv_use_libiconv"
3883
3884           if test x"$withstring" = xwithout; then
3885             if test $wxUSE_LIBICONV = yes; then
3886               result=no
3887             else
3888               result=yes
3889             fi
3890           else
3891             result=$wxUSE_LIBICONV
3892           fi
3893
3894           { echo "$as_me:$LINENO: result: $result" >&5
3895 echo "${ECHO_T}$result" >&6; }
3896
3897
3898           withstring=
3899           defaultval=$wxUSE_ALL_FEATURES
3900           if test -z "$defaultval"; then
3901               if test x"$withstring" = xwithout; then
3902                   defaultval=yes
3903               else
3904                   defaultval=no
3905               fi
3906           fi
3907           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3908 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3909
3910 # Check whether --with-libmspack was given.
3911 if test "${with_libmspack+set}" = set; then
3912   withval=$with_libmspack;
3913                         if test "$withval" = yes; then
3914                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3915                         else
3916                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3917                         fi
3918
3919 else
3920
3921                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3922
3923 fi
3924
3925
3926           eval "$wx_cv_use_libmspack"
3927
3928           if test x"$withstring" = xwithout; then
3929             if test $wxUSE_LIBMSPACK = yes; then
3930               result=no
3931             else
3932               result=yes
3933             fi
3934           else
3935             result=$wxUSE_LIBMSPACK
3936           fi
3937
3938           { echo "$as_me:$LINENO: result: $result" >&5
3939 echo "${ECHO_T}$result" >&6; }
3940
3941
3942           withstring=without
3943           defaultval=$wxUSE_ALL_FEATURES
3944           if test -z "$defaultval"; then
3945               if test x"$withstring" = xwithout; then
3946                   defaultval=yes
3947               else
3948                   defaultval=no
3949               fi
3950           fi
3951           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3952 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3953
3954 # Check whether --with-gtkprint was given.
3955 if test "${with_gtkprint+set}" = set; then
3956   withval=$with_gtkprint;
3957                         if test "$withval" = yes; then
3958                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3959                         else
3960                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3961                         fi
3962
3963 else
3964
3965                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3966
3967 fi
3968
3969
3970           eval "$wx_cv_use_gtkprint"
3971
3972           if test x"$withstring" = xwithout; then
3973             if test $wxUSE_GTKPRINT = yes; then
3974               result=no
3975             else
3976               result=yes
3977             fi
3978           else
3979             result=$wxUSE_GTKPRINT
3980           fi
3981
3982           { echo "$as_me:$LINENO: result: $result" >&5
3983 echo "${ECHO_T}$result" >&6; }
3984
3985
3986           withstring=without
3987           defaultval=$wxUSE_ALL_FEATURES
3988           if test -z "$defaultval"; then
3989               if test x"$withstring" = xwithout; then
3990                   defaultval=yes
3991               else
3992                   defaultval=no
3993               fi
3994           fi
3995           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3996 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3997
3998 # Check whether --with-gnomeprint was given.
3999 if test "${with_gnomeprint+set}" = set; then
4000   withval=$with_gnomeprint;
4001                         if test "$withval" = yes; then
4002                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4003                         else
4004                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4005                         fi
4006
4007 else
4008
4009                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4010
4011 fi
4012
4013
4014           eval "$wx_cv_use_gnomeprint"
4015
4016           if test x"$withstring" = xwithout; then
4017             if test $wxUSE_LIBGNOMEPRINT = yes; then
4018               result=no
4019             else
4020               result=yes
4021             fi
4022           else
4023             result=$wxUSE_LIBGNOMEPRINT
4024           fi
4025
4026           { echo "$as_me:$LINENO: result: $result" >&5
4027 echo "${ECHO_T}$result" >&6; }
4028
4029
4030           withstring=
4031           defaultval=$wxUSE_ALL_FEATURES
4032           if test -z "$defaultval"; then
4033               if test x"$withstring" = xwithout; then
4034                   defaultval=yes
4035               else
4036                   defaultval=no
4037               fi
4038           fi
4039           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4040 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4041
4042 # Check whether --with-gnomevfs was given.
4043 if test "${with_gnomevfs+set}" = set; then
4044   withval=$with_gnomevfs;
4045                         if test "$withval" = yes; then
4046                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4047                         else
4048                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4049                         fi
4050
4051 else
4052
4053                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4054
4055 fi
4056
4057
4058           eval "$wx_cv_use_gnomevfs"
4059
4060           if test x"$withstring" = xwithout; then
4061             if test $wxUSE_LIBGNOMEVFS = yes; then
4062               result=no
4063             else
4064               result=yes
4065             fi
4066           else
4067             result=$wxUSE_LIBGNOMEVFS
4068           fi
4069
4070           { echo "$as_me:$LINENO: result: $result" >&5
4071 echo "${ECHO_T}$result" >&6; }
4072
4073
4074           withstring=
4075           defaultval=$wxUSE_ALL_FEATURES
4076           if test -z "$defaultval"; then
4077               if test x"$withstring" = xwithout; then
4078                   defaultval=yes
4079               else
4080                   defaultval=no
4081               fi
4082           fi
4083           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4084 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4085
4086 # Check whether --with-hildon was given.
4087 if test "${with_hildon+set}" = set; then
4088   withval=$with_hildon;
4089                         if test "$withval" = yes; then
4090                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4091                         else
4092                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4093                         fi
4094
4095 else
4096
4097                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4098
4099 fi
4100
4101
4102           eval "$wx_cv_use_hildon"
4103
4104           if test x"$withstring" = xwithout; then
4105             if test $wxUSE_LIBHILDON = yes; then
4106               result=no
4107             else
4108               result=yes
4109             fi
4110           else
4111             result=$wxUSE_LIBHILDON
4112           fi
4113
4114           { echo "$as_me:$LINENO: result: $result" >&5
4115 echo "${ECHO_T}$result" >&6; }
4116
4117
4118           withstring=
4119           defaultval=$wxUSE_ALL_FEATURES
4120           if test -z "$defaultval"; then
4121               if test x"$withstring" = xwithout; then
4122                   defaultval=yes
4123               else
4124                   defaultval=no
4125               fi
4126           fi
4127           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4128 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4129
4130 # Check whether --with-opengl was given.
4131 if test "${with_opengl+set}" = set; then
4132   withval=$with_opengl;
4133                         if test "$withval" = yes; then
4134                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4135                         else
4136                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4137                         fi
4138
4139 else
4140
4141                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4142
4143 fi
4144
4145
4146           eval "$wx_cv_use_opengl"
4147
4148           if test x"$withstring" = xwithout; then
4149             if test $wxUSE_OPENGL = yes; then
4150               result=no
4151             else
4152               result=yes
4153             fi
4154           else
4155             result=$wxUSE_OPENGL
4156           fi
4157
4158           { echo "$as_me:$LINENO: result: $result" >&5
4159 echo "${ECHO_T}$result" >&6; }
4160
4161
4162 fi
4163
4164
4165           withstring=
4166           defaultval=$wxUSE_ALL_FEATURES
4167           if test -z "$defaultval"; then
4168               if test x"$withstring" = xwithout; then
4169                   defaultval=yes
4170               else
4171                   defaultval=no
4172               fi
4173           fi
4174           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4175 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4176
4177 # Check whether --with-dmalloc was given.
4178 if test "${with_dmalloc+set}" = set; then
4179   withval=$with_dmalloc;
4180                         if test "$withval" = yes; then
4181                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4182                         else
4183                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4184                         fi
4185
4186 else
4187
4188                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4189
4190 fi
4191
4192
4193           eval "$wx_cv_use_dmalloc"
4194
4195           if test x"$withstring" = xwithout; then
4196             if test $wxUSE_DMALLOC = yes; then
4197               result=no
4198             else
4199               result=yes
4200             fi
4201           else
4202             result=$wxUSE_DMALLOC
4203           fi
4204
4205           { echo "$as_me:$LINENO: result: $result" >&5
4206 echo "${ECHO_T}$result" >&6; }
4207
4208
4209           withstring=
4210           defaultval=$wxUSE_ALL_FEATURES
4211           if test -z "$defaultval"; then
4212               if test x"$withstring" = xwithout; then
4213                   defaultval=yes
4214               else
4215                   defaultval=no
4216               fi
4217           fi
4218           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4219 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4220
4221 # Check whether --with-sdl was given.
4222 if test "${with_sdl+set}" = set; then
4223   withval=$with_sdl;
4224                         if test "$withval" = yes; then
4225                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4226                         else
4227                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4228                         fi
4229
4230 else
4231
4232                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4233
4234 fi
4235
4236
4237           eval "$wx_cv_use_sdl"
4238
4239           if test x"$withstring" = xwithout; then
4240             if test $wxUSE_LIBSDL = yes; then
4241               result=no
4242             else
4243               result=yes
4244             fi
4245           else
4246             result=$wxUSE_LIBSDL
4247           fi
4248
4249           { echo "$as_me:$LINENO: result: $result" >&5
4250 echo "${ECHO_T}$result" >&6; }
4251
4252
4253           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4254 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4255
4256 # Check whether --with-regex was given.
4257 if test "${with_regex+set}" = set; then
4258   withval=$with_regex;
4259                         if test "$withval" = yes; then
4260                           wx_cv_use_regex='wxUSE_REGEX=yes'
4261                         elif test "$withval" = no; then
4262                           wx_cv_use_regex='wxUSE_REGEX=no'
4263                         elif test "$withval" = sys; then
4264                           wx_cv_use_regex='wxUSE_REGEX=sys'
4265                         elif test "$withval" = builtin; then
4266                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4267                         else
4268                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4269 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4270    { (exit 1); exit 1; }; }
4271                         fi
4272
4273 else
4274
4275                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4276
4277 fi
4278
4279
4280           eval "$wx_cv_use_regex"
4281
4282           if test "$wxUSE_REGEX" = yes; then
4283             { echo "$as_me:$LINENO: result: yes" >&5
4284 echo "${ECHO_T}yes" >&6; }
4285           elif test "$wxUSE_REGEX" = no; then
4286             { echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6; }
4288           elif test "$wxUSE_REGEX" = sys; then
4289             { echo "$as_me:$LINENO: result: system version" >&5
4290 echo "${ECHO_T}system version" >&6; }
4291           elif test "$wxUSE_REGEX" = builtin; then
4292             { echo "$as_me:$LINENO: result: builtin version" >&5
4293 echo "${ECHO_T}builtin version" >&6; }
4294           else
4295             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4296 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4297    { (exit 1); exit 1; }; }
4298           fi
4299
4300
4301           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4302 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4303
4304 # Check whether --with-zlib was given.
4305 if test "${with_zlib+set}" = set; then
4306   withval=$with_zlib;
4307                         if test "$withval" = yes; then
4308                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4309                         elif test "$withval" = no; then
4310                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4311                         elif test "$withval" = sys; then
4312                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4313                         elif test "$withval" = builtin; then
4314                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4315                         else
4316                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4317 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4318    { (exit 1); exit 1; }; }
4319                         fi
4320
4321 else
4322
4323                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4324
4325 fi
4326
4327
4328           eval "$wx_cv_use_zlib"
4329
4330           if test "$wxUSE_ZLIB" = yes; then
4331             { echo "$as_me:$LINENO: result: yes" >&5
4332 echo "${ECHO_T}yes" >&6; }
4333           elif test "$wxUSE_ZLIB" = no; then
4334             { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4336           elif test "$wxUSE_ZLIB" = sys; then
4337             { echo "$as_me:$LINENO: result: system version" >&5
4338 echo "${ECHO_T}system version" >&6; }
4339           elif test "$wxUSE_ZLIB" = builtin; then
4340             { echo "$as_me:$LINENO: result: builtin version" >&5
4341 echo "${ECHO_T}builtin version" >&6; }
4342           else
4343             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4344 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4345    { (exit 1); exit 1; }; }
4346           fi
4347
4348
4349           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4350 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4351
4352 # Check whether --with-expat was given.
4353 if test "${with_expat+set}" = set; then
4354   withval=$with_expat;
4355                         if test "$withval" = yes; then
4356                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4357                         elif test "$withval" = no; then
4358                           wx_cv_use_expat='wxUSE_EXPAT=no'
4359                         elif test "$withval" = sys; then
4360                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4361                         elif test "$withval" = builtin; then
4362                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4363                         else
4364                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4365 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4366    { (exit 1); exit 1; }; }
4367                         fi
4368
4369 else
4370
4371                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4372
4373 fi
4374
4375
4376           eval "$wx_cv_use_expat"
4377
4378           if test "$wxUSE_EXPAT" = yes; then
4379             { echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6; }
4381           elif test "$wxUSE_EXPAT" = no; then
4382             { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384           elif test "$wxUSE_EXPAT" = sys; then
4385             { echo "$as_me:$LINENO: result: system version" >&5
4386 echo "${ECHO_T}system version" >&6; }
4387           elif test "$wxUSE_EXPAT" = builtin; then
4388             { echo "$as_me:$LINENO: result: builtin version" >&5
4389 echo "${ECHO_T}builtin version" >&6; }
4390           else
4391             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4392 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4393    { (exit 1); exit 1; }; }
4394           fi
4395
4396
4397 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4398 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4399
4400 # Check whether --with-macosx-sdk was given.
4401 if test "${with_macosx_sdk+set}" = set; then
4402   withval=$with_macosx_sdk;
4403         wxUSE_MACOSX_SDK=$withval
4404         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4405
4406 fi
4407
4408 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4409 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4410
4411 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4412 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4413
4414 # Check whether --with-macosx-version-min was given.
4415 if test "${with_macosx_version_min+set}" = set; then
4416   withval=$with_macosx_version_min;
4417         wxUSE_MACOSX_VERSION_MIN=$withval
4418         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4419
4420 fi
4421
4422 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4423 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4424
4425
4426 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4427 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4428 # Check whether --enable-debug was given.
4429 if test "${enable_debug+set}" = set; then
4430   enableval=$enable_debug;
4431         if test "$enableval" = yes; then
4432             wxUSE_DEBUG=yes
4433         elif test "$enableval" = no; then
4434             wxUSE_DEBUG=no
4435         elif test "$enableval" = max; then
4436             wxUSE_DEBUG=yes
4437             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4438         else
4439             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4440 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4441    { (exit 1); exit 1; }; }
4442         fi
4443
4444 else
4445   wxUSE_DEBUG=default
4446
4447 fi
4448
4449
4450 case "$wxUSE_DEBUG" in
4451     yes)
4452                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4453         DEFAULT_wxUSE_DEBUG_INFO=yes
4454
4455                         DEFAULT_wxUSE_OPTIMISE=no
4456         ;;
4457
4458     no)
4459                         DEFAULT_wxUSE_DEBUG_FLAG=no
4460         DEFAULT_wxUSE_DEBUG_INFO=no
4461         ;;
4462
4463     default)
4464                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4465         DEFAULT_wxUSE_DEBUG_INFO=no
4466         ;;
4467 esac
4468
4469
4470           enablestring=disable
4471           defaultval=
4472           if test -z "$defaultval"; then
4473               if test x"$enablestring" = xdisable; then
4474                   defaultval=yes
4475               else
4476                   defaultval=no
4477               fi
4478           fi
4479
4480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4481 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4482           # Check whether --enable-debug_flag was given.
4483 if test "${enable_debug_flag+set}" = set; then
4484   enableval=$enable_debug_flag;
4485                           if test "$enableval" = yes; then
4486                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4487                           else
4488                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4489                           fi
4490
4491 else
4492
4493                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4494
4495 fi
4496
4497
4498           eval "$wx_cv_use_debug_flag"
4499
4500           if test x"$enablestring" = xdisable; then
4501             if test $wxUSE_DEBUG_FLAG = no; then
4502               result=yes
4503             else
4504               result=no
4505             fi
4506           else
4507             result=$wxUSE_DEBUG_FLAG
4508           fi
4509
4510           { echo "$as_me:$LINENO: result: $result" >&5
4511 echo "${ECHO_T}$result" >&6; }
4512
4513
4514           enablestring=
4515           defaultval=
4516           if test -z "$defaultval"; then
4517               if test x"$enablestring" = xdisable; then
4518                   defaultval=yes
4519               else
4520                   defaultval=no
4521               fi
4522           fi
4523
4524           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4525 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4526           # Check whether --enable-debug_info was given.
4527 if test "${enable_debug_info+set}" = set; then
4528   enableval=$enable_debug_info;
4529                           if test "$enableval" = yes; then
4530                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4531                           else
4532                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4533                           fi
4534
4535 else
4536
4537                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4538
4539 fi
4540
4541
4542           eval "$wx_cv_use_debug_info"
4543
4544           if test x"$enablestring" = xdisable; then
4545             if test $wxUSE_DEBUG_INFO = no; then
4546               result=yes
4547             else
4548               result=no
4549             fi
4550           else
4551             result=$wxUSE_DEBUG_INFO
4552           fi
4553
4554           { echo "$as_me:$LINENO: result: $result" >&5
4555 echo "${ECHO_T}$result" >&6; }
4556
4557
4558
4559
4560           enablestring=
4561           defaultval=
4562           if test -z "$defaultval"; then
4563               if test x"$enablestring" = xdisable; then
4564                   defaultval=yes
4565               else
4566                   defaultval=no
4567               fi
4568           fi
4569
4570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4571 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4572           # Check whether --enable-debug_gdb was given.
4573 if test "${enable_debug_gdb+set}" = set; then
4574   enableval=$enable_debug_gdb;
4575                           if test "$enableval" = yes; then
4576                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4577                           else
4578                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4579                           fi
4580
4581 else
4582
4583                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4584
4585 fi
4586
4587
4588           eval "$wx_cv_use_debug_gdb"
4589
4590           if test x"$enablestring" = xdisable; then
4591             if test $wxUSE_DEBUG_GDB = no; then
4592               result=yes
4593             else
4594               result=no
4595             fi
4596           else
4597             result=$wxUSE_DEBUG_GDB
4598           fi
4599
4600           { echo "$as_me:$LINENO: result: $result" >&5
4601 echo "${ECHO_T}$result" >&6; }
4602
4603
4604           enablestring=
4605           defaultval=
4606           if test -z "$defaultval"; then
4607               if test x"$enablestring" = xdisable; then
4608                   defaultval=yes
4609               else
4610                   defaultval=no
4611               fi
4612           fi
4613
4614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4615 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4616           # Check whether --enable-debug_cntxt was given.
4617 if test "${enable_debug_cntxt+set}" = set; then
4618   enableval=$enable_debug_cntxt;
4619                           if test "$enableval" = yes; then
4620                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4621                           else
4622                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4623                           fi
4624
4625 else
4626
4627                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4628
4629 fi
4630
4631
4632           eval "$wx_cv_use_debug_cntxt"
4633
4634           if test x"$enablestring" = xdisable; then
4635             if test $wxUSE_DEBUG_CONTEXT = no; then
4636               result=yes
4637             else
4638               result=no
4639             fi
4640           else
4641             result=$wxUSE_DEBUG_CONTEXT
4642           fi
4643
4644           { echo "$as_me:$LINENO: result: $result" >&5
4645 echo "${ECHO_T}$result" >&6; }
4646
4647
4648           enablestring=
4649           defaultval=
4650           if test -z "$defaultval"; then
4651               if test x"$enablestring" = xdisable; then
4652                   defaultval=yes
4653               else
4654                   defaultval=no
4655               fi
4656           fi
4657
4658           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4659 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4660           # Check whether --enable-mem_tracing was given.
4661 if test "${enable_mem_tracing+set}" = set; then
4662   enableval=$enable_mem_tracing;
4663                           if test "$enableval" = yes; then
4664                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4665                           else
4666                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4667                           fi
4668
4669 else
4670
4671                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4672
4673 fi
4674
4675
4676           eval "$wx_cv_use_mem_tracing"
4677
4678           if test x"$enablestring" = xdisable; then
4679             if test $wxUSE_MEM_TRACING = no; then
4680               result=yes
4681             else
4682               result=no
4683             fi
4684           else
4685             result=$wxUSE_MEM_TRACING
4686           fi
4687
4688           { echo "$as_me:$LINENO: result: $result" >&5
4689 echo "${ECHO_T}$result" >&6; }
4690
4691
4692
4693
4694           enablestring=disable
4695           defaultval=
4696           if test -z "$defaultval"; then
4697               if test x"$enablestring" = xdisable; then
4698                   defaultval=yes
4699               else
4700                   defaultval=no
4701               fi
4702           fi
4703
4704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4705 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4706           # Check whether --enable-shared was given.
4707 if test "${enable_shared+set}" = set; then
4708   enableval=$enable_shared;
4709                           if test "$enableval" = yes; then
4710                             wx_cv_use_shared='wxUSE_SHARED=yes'
4711                           else
4712                             wx_cv_use_shared='wxUSE_SHARED=no'
4713                           fi
4714
4715 else
4716
4717                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4718
4719 fi
4720
4721
4722           eval "$wx_cv_use_shared"
4723
4724           if test x"$enablestring" = xdisable; then
4725             if test $wxUSE_SHARED = no; then
4726               result=yes
4727             else
4728               result=no
4729             fi
4730           else
4731             result=$wxUSE_SHARED
4732           fi
4733
4734           { echo "$as_me:$LINENO: result: $result" >&5
4735 echo "${ECHO_T}$result" >&6; }
4736
4737
4738           enablestring=
4739           defaultval=
4740           if test -z "$defaultval"; then
4741               if test x"$enablestring" = xdisable; then
4742                   defaultval=yes
4743               else
4744                   defaultval=no
4745               fi
4746           fi
4747
4748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4749 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4750           # Check whether --enable-stl was given.
4751 if test "${enable_stl+set}" = set; then
4752   enableval=$enable_stl;
4753                           if test "$enableval" = yes; then
4754                             wx_cv_use_stl='wxUSE_STL=yes'
4755                           else
4756                             wx_cv_use_stl='wxUSE_STL=no'
4757                           fi
4758
4759 else
4760
4761                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4762
4763 fi
4764
4765
4766           eval "$wx_cv_use_stl"
4767
4768           if test x"$enablestring" = xdisable; then
4769             if test $wxUSE_STL = no; then
4770               result=yes
4771             else
4772               result=no
4773             fi
4774           else
4775             result=$wxUSE_STL
4776           fi
4777
4778           { echo "$as_me:$LINENO: result: $result" >&5
4779 echo "${ECHO_T}$result" >&6; }
4780
4781
4782           enablestring=
4783           defaultval=
4784           if test -z "$defaultval"; then
4785               if test x"$enablestring" = xdisable; then
4786                   defaultval=yes
4787               else
4788                   defaultval=no
4789               fi
4790           fi
4791
4792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4793 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4794           # Check whether --enable-std_containers was given.
4795 if test "${enable_std_containers+set}" = set; then
4796   enableval=$enable_std_containers;
4797                           if test "$enableval" = yes; then
4798                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4799                           else
4800                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4801                           fi
4802
4803 else
4804
4805                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4806
4807 fi
4808
4809
4810           eval "$wx_cv_use_std_containers"
4811
4812           if test x"$enablestring" = xdisable; then
4813             if test $wxUSE_STD_CONTAINERS = no; then
4814               result=yes
4815             else
4816               result=no
4817             fi
4818           else
4819             result=$wxUSE_STD_CONTAINERS
4820           fi
4821
4822           { echo "$as_me:$LINENO: result: $result" >&5
4823 echo "${ECHO_T}$result" >&6; }
4824
4825
4826           enablestring=
4827           defaultval=
4828           if test -z "$defaultval"; then
4829               if test x"$enablestring" = xdisable; then
4830                   defaultval=yes
4831               else
4832                   defaultval=no
4833               fi
4834           fi
4835
4836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4837 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4838           # Check whether --enable-std_iostreams was given.
4839 if test "${enable_std_iostreams+set}" = set; then
4840   enableval=$enable_std_iostreams;
4841                           if test "$enableval" = yes; then
4842                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4843                           else
4844                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4845                           fi
4846
4847 else
4848
4849                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4850
4851 fi
4852
4853
4854           eval "$wx_cv_use_std_iostreams"
4855
4856           if test x"$enablestring" = xdisable; then
4857             if test $wxUSE_STD_IOSTREAM = no; then
4858               result=yes
4859             else
4860               result=no
4861             fi
4862           else
4863             result=$wxUSE_STD_IOSTREAM
4864           fi
4865
4866           { echo "$as_me:$LINENO: result: $result" >&5
4867 echo "${ECHO_T}$result" >&6; }
4868
4869
4870           enablestring=
4871           defaultval=
4872           if test -z "$defaultval"; then
4873               if test x"$enablestring" = xdisable; then
4874                   defaultval=yes
4875               else
4876                   defaultval=no
4877               fi
4878           fi
4879
4880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4881 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4882           # Check whether --enable-std_string was given.
4883 if test "${enable_std_string+set}" = set; then
4884   enableval=$enable_std_string;
4885                           if test "$enableval" = yes; then
4886                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4887                           else
4888                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4889                           fi
4890
4891 else
4892
4893                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4894
4895 fi
4896
4897
4898           eval "$wx_cv_use_std_string"
4899
4900           if test x"$enablestring" = xdisable; then
4901             if test $wxUSE_STD_STRING = no; then
4902               result=yes
4903             else
4904               result=no
4905             fi
4906           else
4907             result=$wxUSE_STD_STRING
4908           fi
4909
4910           { echo "$as_me:$LINENO: result: $result" >&5
4911 echo "${ECHO_T}$result" >&6; }
4912
4913
4914           enablestring=
4915           defaultval=
4916           if test -z "$defaultval"; then
4917               if test x"$enablestring" = xdisable; then
4918                   defaultval=yes
4919               else
4920                   defaultval=no
4921               fi
4922           fi
4923
4924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4925 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4926           # Check whether --enable-std_string_conv_in_wxstring was given.
4927 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4928   enableval=$enable_std_string_conv_in_wxstring;
4929                           if test "$enableval" = yes; then
4930                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4931                           else
4932                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4933                           fi
4934
4935 else
4936
4937                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4938
4939 fi
4940
4941
4942           eval "$wx_cv_use_std_string_conv_in_wxstring"
4943
4944           if test x"$enablestring" = xdisable; then
4945             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4946               result=yes
4947             else
4948               result=no
4949             fi
4950           else
4951             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4952           fi
4953
4954           { echo "$as_me:$LINENO: result: $result" >&5
4955 echo "${ECHO_T}$result" >&6; }
4956
4957
4958           enablestring=disable
4959           defaultval=
4960           if test -z "$defaultval"; then
4961               if test x"$enablestring" = xdisable; then
4962                   defaultval=yes
4963               else
4964                   defaultval=no
4965               fi
4966           fi
4967
4968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4969 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4970           # Check whether --enable-unicode was given.
4971 if test "${enable_unicode+set}" = set; then
4972   enableval=$enable_unicode;
4973                           if test "$enableval" = yes; then
4974                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4975                           else
4976                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4977                           fi
4978
4979 else
4980
4981                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4982
4983 fi
4984
4985
4986           eval "$wx_cv_use_unicode"
4987
4988           if test x"$enablestring" = xdisable; then
4989             if test $wxUSE_UNICODE = no; then
4990               result=yes
4991             else
4992               result=no
4993             fi
4994           else
4995             result=$wxUSE_UNICODE
4996           fi
4997
4998           { echo "$as_me:$LINENO: result: $result" >&5
4999 echo "${ECHO_T}$result" >&6; }
5000
5001
5002           enablestring=
5003           defaultval=
5004           if test -z "$defaultval"; then
5005               if test x"$enablestring" = xdisable; then
5006                   defaultval=yes
5007               else
5008                   defaultval=no
5009               fi
5010           fi
5011
5012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5013 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5014           # Check whether --enable-mslu was given.
5015 if test "${enable_mslu+set}" = set; then
5016   enableval=$enable_mslu;
5017                           if test "$enableval" = yes; then
5018                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5019                           else
5020                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5021                           fi
5022
5023 else
5024
5025                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5026
5027 fi
5028
5029
5030           eval "$wx_cv_use_mslu"
5031
5032           if test x"$enablestring" = xdisable; then
5033             if test $wxUSE_UNICODE_MSLU = no; then
5034               result=yes
5035             else
5036               result=no
5037             fi
5038           else
5039             result=$wxUSE_UNICODE_MSLU
5040           fi
5041
5042           { echo "$as_me:$LINENO: result: $result" >&5
5043 echo "${ECHO_T}$result" >&6; }
5044
5045
5046           enablestring=
5047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5048 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5049           # Check whether --enable-utf8 was given.
5050 if test "${enable_utf8+set}" = set; then
5051   enableval=$enable_utf8;
5052                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5053
5054 else
5055
5056                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5057
5058 fi
5059
5060
5061           eval "$wx_cv_use_utf8"
5062
5063           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5064 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5065
5066
5067           enablestring=
5068           defaultval=
5069           if test -z "$defaultval"; then
5070               if test x"$enablestring" = xdisable; then
5071                   defaultval=yes
5072               else
5073                   defaultval=no
5074               fi
5075           fi
5076
5077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5078 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5079           # Check whether --enable-utf8only was given.
5080 if test "${enable_utf8only+set}" = set; then
5081   enableval=$enable_utf8only;
5082                           if test "$enableval" = yes; then
5083                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5084                           else
5085                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5086                           fi
5087
5088 else
5089
5090                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5091
5092 fi
5093
5094
5095           eval "$wx_cv_use_utf8only"
5096
5097           if test x"$enablestring" = xdisable; then
5098             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5099               result=yes
5100             else
5101               result=no
5102             fi
5103           else
5104             result=$wxUSE_UNICODE_UTF8_LOCALE
5105           fi
5106
5107           { echo "$as_me:$LINENO: result: $result" >&5
5108 echo "${ECHO_T}$result" >&6; }
5109
5110
5111           enablestring=
5112           defaultval=
5113           if test -z "$defaultval"; then
5114               if test x"$enablestring" = xdisable; then
5115                   defaultval=yes
5116               else
5117                   defaultval=no
5118               fi
5119           fi
5120
5121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5122 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5123           # Check whether --enable-extended_rtti was given.
5124 if test "${enable_extended_rtti+set}" = set; then
5125   enableval=$enable_extended_rtti;
5126                           if test "$enableval" = yes; then
5127                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5128                           else
5129                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5130                           fi
5131
5132 else
5133
5134                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5135
5136 fi
5137
5138
5139           eval "$wx_cv_use_extended_rtti"
5140
5141           if test x"$enablestring" = xdisable; then
5142             if test $wxUSE_EXTENDED_RTTI = no; then
5143               result=yes
5144             else
5145               result=no
5146             fi
5147           else
5148             result=$wxUSE_EXTENDED_RTTI
5149           fi
5150
5151           { echo "$as_me:$LINENO: result: $result" >&5
5152 echo "${ECHO_T}$result" >&6; }
5153
5154 if test "$USE_OS2" = 1; then
5155     DEFAULT_wxUSE_OMF=no
5156
5157           enablestring=
5158           defaultval=
5159           if test -z "$defaultval"; then
5160               if test x"$enablestring" = xdisable; then
5161                   defaultval=yes
5162               else
5163                   defaultval=no
5164               fi
5165           fi
5166
5167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5168 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5169           # Check whether --enable-omf was given.
5170 if test "${enable_omf+set}" = set; then
5171   enableval=$enable_omf;
5172                           if test "$enableval" = yes; then
5173                             wx_cv_use_omf='wxUSE_OMF=yes'
5174                           else
5175                             wx_cv_use_omf='wxUSE_OMF=no'
5176                           fi
5177
5178 else
5179
5180                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5181
5182 fi
5183
5184
5185           eval "$wx_cv_use_omf"
5186
5187           if test x"$enablestring" = xdisable; then
5188             if test $wxUSE_OMF = no; then
5189               result=yes
5190             else
5191               result=no
5192             fi
5193           else
5194             result=$wxUSE_OMF
5195           fi
5196
5197           { echo "$as_me:$LINENO: result: $result" >&5
5198 echo "${ECHO_T}$result" >&6; }
5199
5200 fi
5201
5202
5203           enablestring=disable
5204           defaultval=
5205           if test -z "$defaultval"; then
5206               if test x"$enablestring" = xdisable; then
5207                   defaultval=yes
5208               else
5209                   defaultval=no
5210               fi
5211           fi
5212
5213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5214 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5215           # Check whether --enable-optimise was given.
5216 if test "${enable_optimise+set}" = set; then
5217   enableval=$enable_optimise;
5218                           if test "$enableval" = yes; then
5219                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5220                           else
5221                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5222                           fi
5223
5224 else
5225
5226                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5227
5228 fi
5229
5230
5231           eval "$wx_cv_use_optimise"
5232
5233           if test x"$enablestring" = xdisable; then
5234             if test $wxUSE_OPTIMISE = no; then
5235               result=yes
5236             else
5237               result=no
5238             fi
5239           else
5240             result=$wxUSE_OPTIMISE
5241           fi
5242
5243           { echo "$as_me:$LINENO: result: $result" >&5
5244 echo "${ECHO_T}$result" >&6; }
5245
5246
5247
5248           enablestring=
5249           defaultval=
5250           if test -z "$defaultval"; then
5251               if test x"$enablestring" = xdisable; then
5252                   defaultval=yes
5253               else
5254                   defaultval=no
5255               fi
5256           fi
5257
5258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5259 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5260           # Check whether --enable-profile was given.
5261 if test "${enable_profile+set}" = set; then
5262   enableval=$enable_profile;
5263                           if test "$enableval" = yes; then
5264                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5265                           else
5266                             wx_cv_use_profile='wxUSE_PROFILE=no'
5267                           fi
5268
5269 else
5270
5271                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5272
5273 fi
5274
5275
5276           eval "$wx_cv_use_profile"
5277
5278           if test x"$enablestring" = xdisable; then
5279             if test $wxUSE_PROFILE = no; then
5280               result=yes
5281             else
5282               result=no
5283             fi
5284           else
5285             result=$wxUSE_PROFILE
5286           fi
5287
5288           { echo "$as_me:$LINENO: result: $result" >&5
5289 echo "${ECHO_T}$result" >&6; }
5290
5291
5292           enablestring=
5293           defaultval=
5294           if test -z "$defaultval"; then
5295               if test x"$enablestring" = xdisable; then
5296                   defaultval=yes
5297               else
5298                   defaultval=no
5299               fi
5300           fi
5301
5302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5303 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5304           # Check whether --enable-no_rtti was given.
5305 if test "${enable_no_rtti+set}" = set; then
5306   enableval=$enable_no_rtti;
5307                           if test "$enableval" = yes; then
5308                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5309                           else
5310                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5311                           fi
5312
5313 else
5314
5315                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5316
5317 fi
5318
5319
5320           eval "$wx_cv_use_no_rtti"
5321
5322           if test x"$enablestring" = xdisable; then
5323             if test $wxUSE_NO_RTTI = no; then
5324               result=yes
5325             else
5326               result=no
5327             fi
5328           else
5329             result=$wxUSE_NO_RTTI
5330           fi
5331
5332           { echo "$as_me:$LINENO: result: $result" >&5
5333 echo "${ECHO_T}$result" >&6; }
5334
5335
5336           enablestring=
5337           defaultval=
5338           if test -z "$defaultval"; then
5339               if test x"$enablestring" = xdisable; then
5340                   defaultval=yes
5341               else
5342                   defaultval=no
5343               fi
5344           fi
5345
5346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5347 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5348           # Check whether --enable-no_exceptions was given.
5349 if test "${enable_no_exceptions+set}" = set; then
5350   enableval=$enable_no_exceptions;
5351                           if test "$enableval" = yes; then
5352                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5353                           else
5354                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5355                           fi
5356
5357 else
5358
5359                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5360
5361 fi
5362
5363
5364           eval "$wx_cv_use_no_exceptions"
5365
5366           if test x"$enablestring" = xdisable; then
5367             if test $wxUSE_NO_EXCEPTIONS = no; then
5368               result=yes
5369             else
5370               result=no
5371             fi
5372           else
5373             result=$wxUSE_NO_EXCEPTIONS
5374           fi
5375
5376           { echo "$as_me:$LINENO: result: $result" >&5
5377 echo "${ECHO_T}$result" >&6; }
5378
5379
5380           enablestring=
5381           defaultval=
5382           if test -z "$defaultval"; then
5383               if test x"$enablestring" = xdisable; then
5384                   defaultval=yes
5385               else
5386                   defaultval=no
5387               fi
5388           fi
5389
5390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5391 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5392           # Check whether --enable-permissive was given.
5393 if test "${enable_permissive+set}" = set; then
5394   enableval=$enable_permissive;
5395                           if test "$enableval" = yes; then
5396                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5397                           else
5398                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5399                           fi
5400
5401 else
5402
5403                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5404
5405 fi
5406
5407
5408           eval "$wx_cv_use_permissive"
5409
5410           if test x"$enablestring" = xdisable; then
5411             if test $wxUSE_PERMISSIVE = no; then
5412               result=yes
5413             else
5414               result=no
5415             fi
5416           else
5417             result=$wxUSE_PERMISSIVE
5418           fi
5419
5420           { echo "$as_me:$LINENO: result: $result" >&5
5421 echo "${ECHO_T}$result" >&6; }
5422
5423
5424           enablestring=
5425           defaultval=
5426           if test -z "$defaultval"; then
5427               if test x"$enablestring" = xdisable; then
5428                   defaultval=yes
5429               else
5430                   defaultval=no
5431               fi
5432           fi
5433
5434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5435 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5436           # Check whether --enable-no_deps was given.
5437 if test "${enable_no_deps+set}" = set; then
5438   enableval=$enable_no_deps;
5439                           if test "$enableval" = yes; then
5440                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5441                           else
5442                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5443                           fi
5444
5445 else
5446
5447                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5448
5449 fi
5450
5451
5452           eval "$wx_cv_use_no_deps"
5453
5454           if test x"$enablestring" = xdisable; then
5455             if test $wxUSE_NO_DEPS = no; then
5456               result=yes
5457             else
5458               result=no
5459             fi
5460           else
5461             result=$wxUSE_NO_DEPS
5462           fi
5463
5464           { echo "$as_me:$LINENO: result: $result" >&5
5465 echo "${ECHO_T}$result" >&6; }
5466
5467
5468           enablestring=disable
5469           defaultval=
5470           if test -z "$defaultval"; then
5471               if test x"$enablestring" = xdisable; then
5472                   defaultval=yes
5473               else
5474                   defaultval=no
5475               fi
5476           fi
5477
5478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5479 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5480           # Check whether --enable-vararg_macros was given.
5481 if test "${enable_vararg_macros+set}" = set; then
5482   enableval=$enable_vararg_macros;
5483                           if test "$enableval" = yes; then
5484                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5485                           else
5486                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5487                           fi
5488
5489 else
5490
5491                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5492
5493 fi
5494
5495
5496           eval "$wx_cv_use_vararg_macros"
5497
5498           if test x"$enablestring" = xdisable; then
5499             if test $wxUSE_VARARG_MACROS = no; then
5500               result=yes
5501             else
5502               result=no
5503             fi
5504           else
5505             result=$wxUSE_VARARG_MACROS
5506           fi
5507
5508           { echo "$as_me:$LINENO: result: $result" >&5
5509 echo "${ECHO_T}$result" >&6; }
5510
5511
5512
5513           enablestring=
5514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5515 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5516           # Check whether --enable-universal_binary was given.
5517 if test "${enable_universal_binary+set}" = set; then
5518   enableval=$enable_universal_binary;
5519                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5520
5521 else
5522
5523                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5524
5525 fi
5526
5527
5528           eval "$wx_cv_use_universal_binary"
5529
5530           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5531 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5532
5533
5534           enablestring=
5535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5536 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5537           # Check whether --enable-macosx_arch was given.
5538 if test "${enable_macosx_arch+set}" = set; then
5539   enableval=$enable_macosx_arch;
5540                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5541
5542 else
5543
5544                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5545
5546 fi
5547
5548
5549           eval "$wx_cv_use_macosx_arch"
5550
5551           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5552 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5553
5554
5555
5556           enablestring=
5557           defaultval=
5558           if test -z "$defaultval"; then
5559               if test x"$enablestring" = xdisable; then
5560                   defaultval=yes
5561               else
5562                   defaultval=no
5563               fi
5564           fi
5565
5566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5567 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5568           # Check whether --enable-compat26 was given.
5569 if test "${enable_compat26+set}" = set; then
5570   enableval=$enable_compat26;
5571                           if test "$enableval" = yes; then
5572                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5573                           else
5574                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5575                           fi
5576
5577 else
5578
5579                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5580
5581 fi
5582
5583
5584           eval "$wx_cv_use_compat26"
5585
5586           if test x"$enablestring" = xdisable; then
5587             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5588               result=yes
5589             else
5590               result=no
5591             fi
5592           else
5593             result=$WXWIN_COMPATIBILITY_2_6
5594           fi
5595
5596           { echo "$as_me:$LINENO: result: $result" >&5
5597 echo "${ECHO_T}$result" >&6; }
5598
5599
5600           enablestring=disable
5601           defaultval=
5602           if test -z "$defaultval"; then
5603               if test x"$enablestring" = xdisable; then
5604                   defaultval=yes
5605               else
5606                   defaultval=no
5607               fi
5608           fi
5609
5610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5611 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5612           # Check whether --enable-compat28 was given.
5613 if test "${enable_compat28+set}" = set; then
5614   enableval=$enable_compat28;
5615                           if test "$enableval" = yes; then
5616                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5617                           else
5618                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5619                           fi
5620
5621 else
5622
5623                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5624
5625 fi
5626
5627
5628           eval "$wx_cv_use_compat28"
5629
5630           if test x"$enablestring" = xdisable; then
5631             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5632               result=yes
5633             else
5634               result=no
5635             fi
5636           else
5637             result=$WXWIN_COMPATIBILITY_2_8
5638           fi
5639
5640           { echo "$as_me:$LINENO: result: $result" >&5
5641 echo "${ECHO_T}$result" >&6; }
5642
5643
5644
5645           enablestring=disable
5646           defaultval=
5647           if test -z "$defaultval"; then
5648               if test x"$enablestring" = xdisable; then
5649                   defaultval=yes
5650               else
5651                   defaultval=no
5652               fi
5653           fi
5654
5655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5656 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5657           # Check whether --enable-rpath was given.
5658 if test "${enable_rpath+set}" = set; then
5659   enableval=$enable_rpath;
5660                           if test "$enableval" = yes; then
5661                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5662                           else
5663                             wx_cv_use_rpath='wxUSE_RPATH=no'
5664                           fi
5665
5666 else
5667
5668                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5669
5670 fi
5671
5672
5673           eval "$wx_cv_use_rpath"
5674
5675           if test x"$enablestring" = xdisable; then
5676             if test $wxUSE_RPATH = no; then
5677               result=yes
5678             else
5679               result=no
5680             fi
5681           else
5682             result=$wxUSE_RPATH
5683           fi
5684
5685           { echo "$as_me:$LINENO: result: $result" >&5
5686 echo "${ECHO_T}$result" >&6; }
5687
5688
5689
5690           enablestring=
5691           defaultval=
5692           if test -z "$defaultval"; then
5693               if test x"$enablestring" = xdisable; then
5694                   defaultval=yes
5695               else
5696                   defaultval=no
5697               fi
5698           fi
5699
5700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5701 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5702           # Check whether --enable-objc_uniquifying was given.
5703 if test "${enable_objc_uniquifying+set}" = set; then
5704   enableval=$enable_objc_uniquifying;
5705                           if test "$enableval" = yes; then
5706                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5707                           else
5708                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5709                           fi
5710
5711 else
5712
5713                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5714
5715 fi
5716
5717
5718           eval "$wx_cv_use_objc_uniquifying"
5719
5720           if test x"$enablestring" = xdisable; then
5721             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5722               result=yes
5723             else
5724               result=no
5725             fi
5726           else
5727             result=$wxUSE_OBJC_UNIQUIFYING
5728           fi
5729
5730           { echo "$as_me:$LINENO: result: $result" >&5
5731 echo "${ECHO_T}$result" >&6; }
5732
5733
5734
5735           enablestring=disable
5736           defaultval=
5737           if test -z "$defaultval"; then
5738               if test x"$enablestring" = xdisable; then
5739                   defaultval=yes
5740               else
5741                   defaultval=no
5742               fi
5743           fi
5744
5745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5746 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5747           # Check whether --enable-visibility was given.
5748 if test "${enable_visibility+set}" = set; then
5749   enableval=$enable_visibility;
5750                           if test "$enableval" = yes; then
5751                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5752                           else
5753                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5754                           fi
5755
5756 else
5757
5758                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5759
5760 fi
5761
5762
5763           eval "$wx_cv_use_visibility"
5764
5765           if test x"$enablestring" = xdisable; then
5766             if test $wxUSE_VISIBILITY = no; then
5767               result=yes
5768             else
5769               result=no
5770             fi
5771           else
5772             result=$wxUSE_VISIBILITY
5773           fi
5774
5775           { echo "$as_me:$LINENO: result: $result" >&5
5776 echo "${ECHO_T}$result" >&6; }
5777
5778
5779           enablestring=disable
5780           defaultval=
5781           if test -z "$defaultval"; then
5782               if test x"$enablestring" = xdisable; then
5783                   defaultval=yes
5784               else
5785                   defaultval=no
5786               fi
5787           fi
5788
5789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5790 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5791           # Check whether --enable-tls was given.
5792 if test "${enable_tls+set}" = set; then
5793   enableval=$enable_tls;
5794                           if test "$enableval" = yes; then
5795                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5796                           else
5797                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5798                           fi
5799
5800 else
5801
5802                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5803
5804 fi
5805
5806
5807           eval "$wx_cv_use_tls"
5808
5809           if test x"$enablestring" = xdisable; then
5810             if test $wxUSE_COMPILER_TLS = no; then
5811               result=yes
5812             else
5813               result=no
5814             fi
5815           else
5816             result=$wxUSE_COMPILER_TLS
5817           fi
5818
5819           { echo "$as_me:$LINENO: result: $result" >&5
5820 echo "${ECHO_T}$result" >&6; }
5821
5822
5823
5824
5825           enablestring=
5826           defaultval=$wxUSE_ALL_FEATURES
5827           if test -z "$defaultval"; then
5828               if test x"$enablestring" = xdisable; then
5829                   defaultval=yes
5830               else
5831                   defaultval=no
5832               fi
5833           fi
5834
5835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5836 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5837           # Check whether --enable-intl was given.
5838 if test "${enable_intl+set}" = set; then
5839   enableval=$enable_intl;
5840                           if test "$enableval" = yes; then
5841                             wx_cv_use_intl='wxUSE_INTL=yes'
5842                           else
5843                             wx_cv_use_intl='wxUSE_INTL=no'
5844                           fi
5845
5846 else
5847
5848                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5849
5850 fi
5851
5852
5853           eval "$wx_cv_use_intl"
5854
5855           if test x"$enablestring" = xdisable; then
5856             if test $wxUSE_INTL = no; then
5857               result=yes
5858             else
5859               result=no
5860             fi
5861           else
5862             result=$wxUSE_INTL
5863           fi
5864
5865           { echo "$as_me:$LINENO: result: $result" >&5
5866 echo "${ECHO_T}$result" >&6; }
5867
5868
5869           enablestring=
5870           defaultval=$wxUSE_ALL_FEATURES
5871           if test -z "$defaultval"; then
5872               if test x"$enablestring" = xdisable; then
5873                   defaultval=yes
5874               else
5875                   defaultval=no
5876               fi
5877           fi
5878
5879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5880 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5881           # Check whether --enable-xlocale was given.
5882 if test "${enable_xlocale+set}" = set; then
5883   enableval=$enable_xlocale;
5884                           if test "$enableval" = yes; then
5885                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5886                           else
5887                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5888                           fi
5889
5890 else
5891
5892                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5893
5894 fi
5895
5896
5897           eval "$wx_cv_use_xlocale"
5898
5899           if test x"$enablestring" = xdisable; then
5900             if test $wxUSE_XLOCALE = no; then
5901               result=yes
5902             else
5903               result=no
5904             fi
5905           else
5906             result=$wxUSE_XLOCALE
5907           fi
5908
5909           { echo "$as_me:$LINENO: result: $result" >&5
5910 echo "${ECHO_T}$result" >&6; }
5911
5912
5913           enablestring=
5914           defaultval=$wxUSE_ALL_FEATURES
5915           if test -z "$defaultval"; then
5916               if test x"$enablestring" = xdisable; then
5917                   defaultval=yes
5918               else
5919                   defaultval=no
5920               fi
5921           fi
5922
5923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5924 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5925           # Check whether --enable-config was given.
5926 if test "${enable_config+set}" = set; then
5927   enableval=$enable_config;
5928                           if test "$enableval" = yes; then
5929                             wx_cv_use_config='wxUSE_CONFIG=yes'
5930                           else
5931                             wx_cv_use_config='wxUSE_CONFIG=no'
5932                           fi
5933
5934 else
5935
5936                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5937
5938 fi
5939
5940
5941           eval "$wx_cv_use_config"
5942
5943           if test x"$enablestring" = xdisable; then
5944             if test $wxUSE_CONFIG = no; then
5945               result=yes
5946             else
5947               result=no
5948             fi
5949           else
5950             result=$wxUSE_CONFIG
5951           fi
5952
5953           { echo "$as_me:$LINENO: result: $result" >&5
5954 echo "${ECHO_T}$result" >&6; }
5955
5956
5957
5958           enablestring=
5959           defaultval=$wxUSE_ALL_FEATURES
5960           if test -z "$defaultval"; then
5961               if test x"$enablestring" = xdisable; then
5962                   defaultval=yes
5963               else
5964                   defaultval=no
5965               fi
5966           fi
5967
5968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5969 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5970           # Check whether --enable-protocols was given.
5971 if test "${enable_protocols+set}" = set; then
5972   enableval=$enable_protocols;
5973                           if test "$enableval" = yes; then
5974                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5975                           else
5976                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5977                           fi
5978
5979 else
5980
5981                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5982
5983 fi
5984
5985
5986           eval "$wx_cv_use_protocols"
5987
5988           if test x"$enablestring" = xdisable; then
5989             if test $wxUSE_PROTOCOL = no; then
5990               result=yes
5991             else
5992               result=no
5993             fi
5994           else
5995             result=$wxUSE_PROTOCOL
5996           fi
5997
5998           { echo "$as_me:$LINENO: result: $result" >&5
5999 echo "${ECHO_T}$result" >&6; }
6000
6001
6002           enablestring=
6003           defaultval=$wxUSE_ALL_FEATURES
6004           if test -z "$defaultval"; then
6005               if test x"$enablestring" = xdisable; then
6006                   defaultval=yes
6007               else
6008                   defaultval=no
6009               fi
6010           fi
6011
6012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6013 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6014           # Check whether --enable-ftp was given.
6015 if test "${enable_ftp+set}" = set; then
6016   enableval=$enable_ftp;
6017                           if test "$enableval" = yes; then
6018                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6019                           else
6020                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6021                           fi
6022
6023 else
6024
6025                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6026
6027 fi
6028
6029
6030           eval "$wx_cv_use_ftp"
6031
6032           if test x"$enablestring" = xdisable; then
6033             if test $wxUSE_PROTOCOL_FTP = no; then
6034               result=yes
6035             else
6036               result=no
6037             fi
6038           else
6039             result=$wxUSE_PROTOCOL_FTP
6040           fi
6041
6042           { echo "$as_me:$LINENO: result: $result" >&5
6043 echo "${ECHO_T}$result" >&6; }
6044
6045
6046           enablestring=
6047           defaultval=$wxUSE_ALL_FEATURES
6048           if test -z "$defaultval"; then
6049               if test x"$enablestring" = xdisable; then
6050                   defaultval=yes
6051               else
6052                   defaultval=no
6053               fi
6054           fi
6055
6056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6057 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6058           # Check whether --enable-http was given.
6059 if test "${enable_http+set}" = set; then
6060   enableval=$enable_http;
6061                           if test "$enableval" = yes; then
6062                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6063                           else
6064                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6065                           fi
6066
6067 else
6068
6069                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6070
6071 fi
6072
6073
6074           eval "$wx_cv_use_http"
6075
6076           if test x"$enablestring" = xdisable; then
6077             if test $wxUSE_PROTOCOL_HTTP = no; then
6078               result=yes
6079             else
6080               result=no
6081             fi
6082           else
6083             result=$wxUSE_PROTOCOL_HTTP
6084           fi
6085
6086           { echo "$as_me:$LINENO: result: $result" >&5
6087 echo "${ECHO_T}$result" >&6; }
6088
6089
6090           enablestring=
6091           defaultval=$wxUSE_ALL_FEATURES
6092           if test -z "$defaultval"; then
6093               if test x"$enablestring" = xdisable; then
6094                   defaultval=yes
6095               else
6096                   defaultval=no
6097               fi
6098           fi
6099
6100           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6101 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6102           # Check whether --enable-fileproto was given.
6103 if test "${enable_fileproto+set}" = set; then
6104   enableval=$enable_fileproto;
6105                           if test "$enableval" = yes; then
6106                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6107                           else
6108                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6109                           fi
6110
6111 else
6112
6113                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6114
6115 fi
6116
6117
6118           eval "$wx_cv_use_fileproto"
6119
6120           if test x"$enablestring" = xdisable; then
6121             if test $wxUSE_PROTOCOL_FILE = no; then
6122               result=yes
6123             else
6124               result=no
6125             fi
6126           else
6127             result=$wxUSE_PROTOCOL_FILE
6128           fi
6129
6130           { echo "$as_me:$LINENO: result: $result" >&5
6131 echo "${ECHO_T}$result" >&6; }
6132
6133
6134           enablestring=
6135           defaultval=$wxUSE_ALL_FEATURES
6136           if test -z "$defaultval"; then
6137               if test x"$enablestring" = xdisable; then
6138                   defaultval=yes
6139               else
6140                   defaultval=no
6141               fi
6142           fi
6143
6144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6145 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6146           # Check whether --enable-sockets was given.
6147 if test "${enable_sockets+set}" = set; then
6148   enableval=$enable_sockets;
6149                           if test "$enableval" = yes; then
6150                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6151                           else
6152                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6153                           fi
6154
6155 else
6156
6157                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6158
6159 fi
6160
6161
6162           eval "$wx_cv_use_sockets"
6163
6164           if test x"$enablestring" = xdisable; then
6165             if test $wxUSE_SOCKETS = no; then
6166               result=yes
6167             else
6168               result=no
6169             fi
6170           else
6171             result=$wxUSE_SOCKETS
6172           fi
6173
6174           { echo "$as_me:$LINENO: result: $result" >&5
6175 echo "${ECHO_T}$result" >&6; }
6176
6177
6178           enablestring=
6179           defaultval=$wxUSE_ALL_FEATURES
6180           if test -z "$defaultval"; then
6181               if test x"$enablestring" = xdisable; then
6182                   defaultval=yes
6183               else
6184                   defaultval=no
6185               fi
6186           fi
6187
6188           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6189 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6190           # Check whether --enable-ipv6 was given.
6191 if test "${enable_ipv6+set}" = set; then
6192   enableval=$enable_ipv6;
6193                           if test "$enableval" = yes; then
6194                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6195                           else
6196                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6197                           fi
6198
6199 else
6200
6201                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6202
6203 fi
6204
6205
6206           eval "$wx_cv_use_ipv6"
6207
6208           if test x"$enablestring" = xdisable; then
6209             if test $wxUSE_IPV6 = no; then
6210               result=yes
6211             else
6212               result=no
6213             fi
6214           else
6215             result=$wxUSE_IPV6
6216           fi
6217
6218           { echo "$as_me:$LINENO: result: $result" >&5
6219 echo "${ECHO_T}$result" >&6; }
6220
6221
6222           enablestring=
6223           defaultval=$wxUSE_ALL_FEATURES
6224           if test -z "$defaultval"; then
6225               if test x"$enablestring" = xdisable; then
6226                   defaultval=yes
6227               else
6228                   defaultval=no
6229               fi
6230           fi
6231
6232           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6233 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6234           # Check whether --enable-ole was given.
6235 if test "${enable_ole+set}" = set; then
6236   enableval=$enable_ole;
6237                           if test "$enableval" = yes; then
6238                             wx_cv_use_ole='wxUSE_OLE=yes'
6239                           else
6240                             wx_cv_use_ole='wxUSE_OLE=no'
6241                           fi
6242
6243 else
6244
6245                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6246
6247 fi
6248
6249
6250           eval "$wx_cv_use_ole"
6251
6252           if test x"$enablestring" = xdisable; then
6253             if test $wxUSE_OLE = no; then
6254               result=yes
6255             else
6256               result=no
6257             fi
6258           else
6259             result=$wxUSE_OLE
6260           fi
6261
6262           { echo "$as_me:$LINENO: result: $result" >&5
6263 echo "${ECHO_T}$result" >&6; }
6264
6265
6266           enablestring=
6267           defaultval=$wxUSE_ALL_FEATURES
6268           if test -z "$defaultval"; then
6269               if test x"$enablestring" = xdisable; then
6270                   defaultval=yes
6271               else
6272                   defaultval=no
6273               fi
6274           fi
6275
6276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6277 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6278           # Check whether --enable-dataobj was given.
6279 if test "${enable_dataobj+set}" = set; then
6280   enableval=$enable_dataobj;
6281                           if test "$enableval" = yes; then
6282                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6283                           else
6284                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6285                           fi
6286
6287 else
6288
6289                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6290
6291 fi
6292
6293
6294           eval "$wx_cv_use_dataobj"
6295
6296           if test x"$enablestring" = xdisable; then
6297             if test $wxUSE_DATAOBJ = no; then
6298               result=yes
6299             else
6300               result=no
6301             fi
6302           else
6303             result=$wxUSE_DATAOBJ
6304           fi
6305
6306           { echo "$as_me:$LINENO: result: $result" >&5
6307 echo "${ECHO_T}$result" >&6; }
6308
6309
6310
6311           enablestring=
6312           defaultval=$wxUSE_ALL_FEATURES
6313           if test -z "$defaultval"; then
6314               if test x"$enablestring" = xdisable; then
6315                   defaultval=yes
6316               else
6317                   defaultval=no
6318               fi
6319           fi
6320
6321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6322 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6323           # Check whether --enable-ipc was given.
6324 if test "${enable_ipc+set}" = set; then
6325   enableval=$enable_ipc;
6326                           if test "$enableval" = yes; then
6327                             wx_cv_use_ipc='wxUSE_IPC=yes'
6328                           else
6329                             wx_cv_use_ipc='wxUSE_IPC=no'
6330                           fi
6331
6332 else
6333
6334                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6335
6336 fi
6337
6338
6339           eval "$wx_cv_use_ipc"
6340
6341           if test x"$enablestring" = xdisable; then
6342             if test $wxUSE_IPC = no; then
6343               result=yes
6344             else
6345               result=no
6346             fi
6347           else
6348             result=$wxUSE_IPC
6349           fi
6350
6351           { echo "$as_me:$LINENO: result: $result" >&5
6352 echo "${ECHO_T}$result" >&6; }
6353
6354
6355
6356           enablestring=
6357           defaultval=$wxUSE_ALL_FEATURES
6358           if test -z "$defaultval"; then
6359               if test x"$enablestring" = xdisable; then
6360                   defaultval=yes
6361               else
6362                   defaultval=no
6363               fi
6364           fi
6365
6366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6367 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6368           # Check whether --enable-baseevtloop was given.
6369 if test "${enable_baseevtloop+set}" = set; then
6370   enableval=$enable_baseevtloop;
6371                           if test "$enableval" = yes; then
6372                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6373                           else
6374                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6375                           fi
6376
6377 else
6378
6379                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6380
6381 fi
6382
6383
6384           eval "$wx_cv_use_baseevtloop"
6385
6386           if test x"$enablestring" = xdisable; then
6387             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6388               result=yes
6389             else
6390               result=no
6391             fi
6392           else
6393             result=$wxUSE_CONSOLE_EVENTLOOP
6394           fi
6395
6396           { echo "$as_me:$LINENO: result: $result" >&5
6397 echo "${ECHO_T}$result" >&6; }
6398
6399
6400           enablestring=
6401           defaultval=$wxUSE_ALL_FEATURES
6402           if test -z "$defaultval"; then
6403               if test x"$enablestring" = xdisable; then
6404                   defaultval=yes
6405               else
6406                   defaultval=no
6407               fi
6408           fi
6409
6410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6411 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6412           # Check whether --enable-epollloop was given.
6413 if test "${enable_epollloop+set}" = set; then
6414   enableval=$enable_epollloop;
6415                           if test "$enableval" = yes; then
6416                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6417                           else
6418                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6419                           fi
6420
6421 else
6422
6423                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6424
6425 fi
6426
6427
6428           eval "$wx_cv_use_epollloop"
6429
6430           if test x"$enablestring" = xdisable; then
6431             if test $wxUSE_EPOLL_DISPATCHER = no; then
6432               result=yes
6433             else
6434               result=no
6435             fi
6436           else
6437             result=$wxUSE_EPOLL_DISPATCHER
6438           fi
6439
6440           { echo "$as_me:$LINENO: result: $result" >&5
6441 echo "${ECHO_T}$result" >&6; }
6442
6443
6444           enablestring=
6445           defaultval=$wxUSE_ALL_FEATURES
6446           if test -z "$defaultval"; then
6447               if test x"$enablestring" = xdisable; then
6448                   defaultval=yes
6449               else
6450                   defaultval=no
6451               fi
6452           fi
6453
6454           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6455 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6456           # Check whether --enable-selectloop was given.
6457 if test "${enable_selectloop+set}" = set; then
6458   enableval=$enable_selectloop;
6459                           if test "$enableval" = yes; then
6460                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6461                           else
6462                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6463                           fi
6464
6465 else
6466
6467                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6468
6469 fi
6470
6471
6472           eval "$wx_cv_use_selectloop"
6473
6474           if test x"$enablestring" = xdisable; then
6475             if test $wxUSE_SELECT_DISPATCHER = no; then
6476               result=yes
6477             else
6478               result=no
6479             fi
6480           else
6481             result=$wxUSE_SELECT_DISPATCHER
6482           fi
6483
6484           { echo "$as_me:$LINENO: result: $result" >&5
6485 echo "${ECHO_T}$result" >&6; }
6486
6487
6488
6489           enablestring=
6490           defaultval=$wxUSE_ALL_FEATURES
6491           if test -z "$defaultval"; then
6492               if test x"$enablestring" = xdisable; then
6493                   defaultval=yes
6494               else
6495                   defaultval=no
6496               fi
6497           fi
6498
6499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6500 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6501           # Check whether --enable-any was given.
6502 if test "${enable_any+set}" = set; then
6503   enableval=$enable_any;
6504                           if test "$enableval" = yes; then
6505                             wx_cv_use_any='wxUSE_ANY=yes'
6506                           else
6507                             wx_cv_use_any='wxUSE_ANY=no'
6508                           fi
6509
6510 else
6511
6512                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6513
6514 fi
6515
6516
6517           eval "$wx_cv_use_any"
6518
6519           if test x"$enablestring" = xdisable; then
6520             if test $wxUSE_ANY = no; then
6521               result=yes
6522             else
6523               result=no
6524             fi
6525           else
6526             result=$wxUSE_ANY
6527           fi
6528
6529           { echo "$as_me:$LINENO: result: $result" >&5
6530 echo "${ECHO_T}$result" >&6; }
6531
6532
6533           enablestring=
6534           defaultval=$wxUSE_ALL_FEATURES
6535           if test -z "$defaultval"; then
6536               if test x"$enablestring" = xdisable; then
6537                   defaultval=yes
6538               else
6539                   defaultval=no
6540               fi
6541           fi
6542
6543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6544 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6545           # Check whether --enable-apple_ieee was given.
6546 if test "${enable_apple_ieee+set}" = set; then
6547   enableval=$enable_apple_ieee;
6548                           if test "$enableval" = yes; then
6549                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6550                           else
6551                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6552                           fi
6553
6554 else
6555
6556                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6557
6558 fi
6559
6560
6561           eval "$wx_cv_use_apple_ieee"
6562
6563           if test x"$enablestring" = xdisable; then
6564             if test $wxUSE_APPLE_IEEE = no; then
6565               result=yes
6566             else
6567               result=no
6568             fi
6569           else
6570             result=$wxUSE_APPLE_IEEE
6571           fi
6572
6573           { echo "$as_me:$LINENO: result: $result" >&5
6574 echo "${ECHO_T}$result" >&6; }
6575
6576
6577           enablestring=
6578           defaultval=$wxUSE_ALL_FEATURES
6579           if test -z "$defaultval"; then
6580               if test x"$enablestring" = xdisable; then
6581                   defaultval=yes
6582               else
6583                   defaultval=no
6584               fi
6585           fi
6586
6587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6588 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6589           # Check whether --enable-arcstream was given.
6590 if test "${enable_arcstream+set}" = set; then
6591   enableval=$enable_arcstream;
6592                           if test "$enableval" = yes; then
6593                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6594                           else
6595                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6596                           fi
6597
6598 else
6599
6600                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6601
6602 fi
6603
6604
6605           eval "$wx_cv_use_arcstream"
6606
6607           if test x"$enablestring" = xdisable; then
6608             if test $wxUSE_ARCHIVE_STREAMS = no; then
6609               result=yes
6610             else
6611               result=no
6612             fi
6613           else
6614             result=$wxUSE_ARCHIVE_STREAMS
6615           fi
6616
6617           { echo "$as_me:$LINENO: result: $result" >&5
6618 echo "${ECHO_T}$result" >&6; }
6619
6620
6621           enablestring=
6622           defaultval=$wxUSE_ALL_FEATURES
6623           if test -z "$defaultval"; then
6624               if test x"$enablestring" = xdisable; then
6625                   defaultval=yes
6626               else
6627                   defaultval=no
6628               fi
6629           fi
6630
6631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6632 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6633           # Check whether --enable-base64 was given.
6634 if test "${enable_base64+set}" = set; then
6635   enableval=$enable_base64;
6636                           if test "$enableval" = yes; then
6637                             wx_cv_use_base64='wxUSE_BASE64=yes'
6638                           else
6639                             wx_cv_use_base64='wxUSE_BASE64=no'
6640                           fi
6641
6642 else
6643
6644                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6645
6646 fi
6647
6648
6649           eval "$wx_cv_use_base64"
6650
6651           if test x"$enablestring" = xdisable; then
6652             if test $wxUSE_BASE64 = no; then
6653               result=yes
6654             else
6655               result=no
6656             fi
6657           else
6658             result=$wxUSE_BASE64
6659           fi
6660
6661           { echo "$as_me:$LINENO: result: $result" >&5
6662 echo "${ECHO_T}$result" >&6; }
6663
6664
6665           enablestring=
6666           defaultval=$wxUSE_ALL_FEATURES
6667           if test -z "$defaultval"; then
6668               if test x"$enablestring" = xdisable; then
6669                   defaultval=yes
6670               else
6671                   defaultval=no
6672               fi
6673           fi
6674
6675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6676 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6677           # Check whether --enable-backtrace was given.
6678 if test "${enable_backtrace+set}" = set; then
6679   enableval=$enable_backtrace;
6680                           if test "$enableval" = yes; then
6681                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6682                           else
6683                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6684                           fi
6685
6686 else
6687
6688                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6689
6690 fi
6691
6692
6693           eval "$wx_cv_use_backtrace"
6694
6695           if test x"$enablestring" = xdisable; then
6696             if test $wxUSE_STACKWALKER = no; then
6697               result=yes
6698             else
6699               result=no
6700             fi
6701           else
6702             result=$wxUSE_STACKWALKER
6703           fi
6704
6705           { echo "$as_me:$LINENO: result: $result" >&5
6706 echo "${ECHO_T}$result" >&6; }
6707
6708
6709           enablestring=
6710           defaultval=$wxUSE_ALL_FEATURES
6711           if test -z "$defaultval"; then
6712               if test x"$enablestring" = xdisable; then
6713                   defaultval=yes
6714               else
6715                   defaultval=no
6716               fi
6717           fi
6718
6719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6720 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6721           # Check whether --enable-catch_segvs was given.
6722 if test "${enable_catch_segvs+set}" = set; then
6723   enableval=$enable_catch_segvs;
6724                           if test "$enableval" = yes; then
6725                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6726                           else
6727                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6728                           fi
6729
6730 else
6731
6732                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6733
6734 fi
6735
6736
6737           eval "$wx_cv_use_catch_segvs"
6738
6739           if test x"$enablestring" = xdisable; then
6740             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6741               result=yes
6742             else
6743               result=no
6744             fi
6745           else
6746             result=$wxUSE_ON_FATAL_EXCEPTION
6747           fi
6748
6749           { echo "$as_me:$LINENO: result: $result" >&5
6750 echo "${ECHO_T}$result" >&6; }
6751
6752
6753           enablestring=
6754           defaultval=$wxUSE_ALL_FEATURES
6755           if test -z "$defaultval"; then
6756               if test x"$enablestring" = xdisable; then
6757                   defaultval=yes
6758               else
6759                   defaultval=no
6760               fi
6761           fi
6762
6763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6764 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6765           # Check whether --enable-cmdline was given.
6766 if test "${enable_cmdline+set}" = set; then
6767   enableval=$enable_cmdline;
6768                           if test "$enableval" = yes; then
6769                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6770                           else
6771                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6772                           fi
6773
6774 else
6775
6776                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6777
6778 fi
6779
6780
6781           eval "$wx_cv_use_cmdline"
6782
6783           if test x"$enablestring" = xdisable; then
6784             if test $wxUSE_CMDLINE_PARSER = no; then
6785               result=yes
6786             else
6787               result=no
6788             fi
6789           else
6790             result=$wxUSE_CMDLINE_PARSER
6791           fi
6792
6793           { echo "$as_me:$LINENO: result: $result" >&5
6794 echo "${ECHO_T}$result" >&6; }
6795
6796
6797           enablestring=
6798           defaultval=$wxUSE_ALL_FEATURES
6799           if test -z "$defaultval"; then
6800               if test x"$enablestring" = xdisable; then
6801                   defaultval=yes
6802               else
6803                   defaultval=no
6804               fi
6805           fi
6806
6807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6808 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6809           # Check whether --enable-datetime was given.
6810 if test "${enable_datetime+set}" = set; then
6811   enableval=$enable_datetime;
6812                           if test "$enableval" = yes; then
6813                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6814                           else
6815                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6816                           fi
6817
6818 else
6819
6820                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6821
6822 fi
6823
6824
6825           eval "$wx_cv_use_datetime"
6826
6827           if test x"$enablestring" = xdisable; then
6828             if test $wxUSE_DATETIME = no; then
6829               result=yes
6830             else
6831               result=no
6832             fi
6833           else
6834             result=$wxUSE_DATETIME
6835           fi
6836
6837           { echo "$as_me:$LINENO: result: $result" >&5
6838 echo "${ECHO_T}$result" >&6; }
6839
6840
6841           enablestring=
6842           defaultval=$wxUSE_ALL_FEATURES
6843           if test -z "$defaultval"; then
6844               if test x"$enablestring" = xdisable; then
6845                   defaultval=yes
6846               else
6847                   defaultval=no
6848               fi
6849           fi
6850
6851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6852 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6853           # Check whether --enable-debugreport was given.
6854 if test "${enable_debugreport+set}" = set; then
6855   enableval=$enable_debugreport;
6856                           if test "$enableval" = yes; then
6857                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6858                           else
6859                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6860                           fi
6861
6862 else
6863
6864                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6865
6866 fi
6867
6868
6869           eval "$wx_cv_use_debugreport"
6870
6871           if test x"$enablestring" = xdisable; then
6872             if test $wxUSE_DEBUGREPORT = no; then
6873               result=yes
6874             else
6875               result=no
6876             fi
6877           else
6878             result=$wxUSE_DEBUGREPORT
6879           fi
6880
6881           { echo "$as_me:$LINENO: result: $result" >&5
6882 echo "${ECHO_T}$result" >&6; }
6883
6884
6885           enablestring=
6886           defaultval=$wxUSE_ALL_FEATURES
6887           if test -z "$defaultval"; then
6888               if test x"$enablestring" = xdisable; then
6889                   defaultval=yes
6890               else
6891                   defaultval=no
6892               fi
6893           fi
6894
6895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6896 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6897           # Check whether --enable-dialupman was given.
6898 if test "${enable_dialupman+set}" = set; then
6899   enableval=$enable_dialupman;
6900                           if test "$enableval" = yes; then
6901                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6902                           else
6903                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6904                           fi
6905
6906 else
6907
6908                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6909
6910 fi
6911
6912
6913           eval "$wx_cv_use_dialupman"
6914
6915           if test x"$enablestring" = xdisable; then
6916             if test $wxUSE_DIALUP_MANAGER = no; then
6917               result=yes
6918             else
6919               result=no
6920             fi
6921           else
6922             result=$wxUSE_DIALUP_MANAGER
6923           fi
6924
6925           { echo "$as_me:$LINENO: result: $result" >&5
6926 echo "${ECHO_T}$result" >&6; }
6927
6928
6929           enablestring=
6930           defaultval=$wxUSE_ALL_FEATURES
6931           if test -z "$defaultval"; then
6932               if test x"$enablestring" = xdisable; then
6933                   defaultval=yes
6934               else
6935                   defaultval=no
6936               fi
6937           fi
6938
6939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6940 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6941           # Check whether --enable-dynlib was given.
6942 if test "${enable_dynlib+set}" = set; then
6943   enableval=$enable_dynlib;
6944                           if test "$enableval" = yes; then
6945                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6946                           else
6947                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6948                           fi
6949
6950 else
6951
6952                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6953
6954 fi
6955
6956
6957           eval "$wx_cv_use_dynlib"
6958
6959           if test x"$enablestring" = xdisable; then
6960             if test $wxUSE_DYNLIB_CLASS = no; then
6961               result=yes
6962             else
6963               result=no
6964             fi
6965           else
6966             result=$wxUSE_DYNLIB_CLASS
6967           fi
6968
6969           { echo "$as_me:$LINENO: result: $result" >&5
6970 echo "${ECHO_T}$result" >&6; }
6971
6972
6973           enablestring=
6974           defaultval=$wxUSE_ALL_FEATURES
6975           if test -z "$defaultval"; then
6976               if test x"$enablestring" = xdisable; then
6977                   defaultval=yes
6978               else
6979                   defaultval=no
6980               fi
6981           fi
6982
6983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6984 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6985           # Check whether --enable-dynamicloader was given.
6986 if test "${enable_dynamicloader+set}" = set; then
6987   enableval=$enable_dynamicloader;
6988                           if test "$enableval" = yes; then
6989                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6990                           else
6991                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6992                           fi
6993
6994 else
6995
6996                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6997
6998 fi
6999
7000
7001           eval "$wx_cv_use_dynamicloader"
7002
7003           if test x"$enablestring" = xdisable; then
7004             if test $wxUSE_DYNAMIC_LOADER = no; then
7005               result=yes
7006             else
7007               result=no
7008             fi
7009           else
7010             result=$wxUSE_DYNAMIC_LOADER
7011           fi
7012
7013           { echo "$as_me:$LINENO: result: $result" >&5
7014 echo "${ECHO_T}$result" >&6; }
7015
7016
7017           enablestring=
7018           defaultval=$wxUSE_ALL_FEATURES
7019           if test -z "$defaultval"; then
7020               if test x"$enablestring" = xdisable; then
7021                   defaultval=yes
7022               else
7023                   defaultval=no
7024               fi
7025           fi
7026
7027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7028 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7029           # Check whether --enable-exceptions was given.
7030 if test "${enable_exceptions+set}" = set; then
7031   enableval=$enable_exceptions;
7032                           if test "$enableval" = yes; then
7033                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7034                           else
7035                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7036                           fi
7037
7038 else
7039
7040                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7041
7042 fi
7043
7044
7045           eval "$wx_cv_use_exceptions"
7046
7047           if test x"$enablestring" = xdisable; then
7048             if test $wxUSE_EXCEPTIONS = no; then
7049               result=yes
7050             else
7051               result=no
7052             fi
7053           else
7054             result=$wxUSE_EXCEPTIONS
7055           fi
7056
7057           { echo "$as_me:$LINENO: result: $result" >&5
7058 echo "${ECHO_T}$result" >&6; }
7059
7060
7061           enablestring=
7062           defaultval=$wxUSE_ALL_FEATURES
7063           if test -z "$defaultval"; then
7064               if test x"$enablestring" = xdisable; then
7065                   defaultval=yes
7066               else
7067                   defaultval=no
7068               fi
7069           fi
7070
7071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7072 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7073           # Check whether --enable-ffile was given.
7074 if test "${enable_ffile+set}" = set; then
7075   enableval=$enable_ffile;
7076                           if test "$enableval" = yes; then
7077                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7078                           else
7079                             wx_cv_use_ffile='wxUSE_FFILE=no'
7080                           fi
7081
7082 else
7083
7084                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7085
7086 fi
7087
7088
7089           eval "$wx_cv_use_ffile"
7090
7091           if test x"$enablestring" = xdisable; then
7092             if test $wxUSE_FFILE = no; then
7093               result=yes
7094             else
7095               result=no
7096             fi
7097           else
7098             result=$wxUSE_FFILE
7099           fi
7100
7101           { echo "$as_me:$LINENO: result: $result" >&5
7102 echo "${ECHO_T}$result" >&6; }
7103
7104
7105           enablestring=
7106           defaultval=$wxUSE_ALL_FEATURES
7107           if test -z "$defaultval"; then
7108               if test x"$enablestring" = xdisable; then
7109                   defaultval=yes
7110               else
7111                   defaultval=no
7112               fi
7113           fi
7114
7115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7116 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7117           # Check whether --enable-file was given.
7118 if test "${enable_file+set}" = set; then
7119   enableval=$enable_file;
7120                           if test "$enableval" = yes; then
7121                             wx_cv_use_file='wxUSE_FILE=yes'
7122                           else
7123                             wx_cv_use_file='wxUSE_FILE=no'
7124                           fi
7125
7126 else
7127
7128                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7129
7130 fi
7131
7132
7133           eval "$wx_cv_use_file"
7134
7135           if test x"$enablestring" = xdisable; then
7136             if test $wxUSE_FILE = no; then
7137               result=yes
7138             else
7139               result=no
7140             fi
7141           else
7142             result=$wxUSE_FILE
7143           fi
7144
7145           { echo "$as_me:$LINENO: result: $result" >&5
7146 echo "${ECHO_T}$result" >&6; }
7147
7148
7149           enablestring=
7150           defaultval=$wxUSE_ALL_FEATURES
7151           if test -z "$defaultval"; then
7152               if test x"$enablestring" = xdisable; then
7153                   defaultval=yes
7154               else
7155                   defaultval=no
7156               fi
7157           fi
7158
7159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7160 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7161           # Check whether --enable-filehistory was given.
7162 if test "${enable_filehistory+set}" = set; then
7163   enableval=$enable_filehistory;
7164                           if test "$enableval" = yes; then
7165                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7166                           else
7167                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7168                           fi
7169
7170 else
7171
7172                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7173
7174 fi
7175
7176
7177           eval "$wx_cv_use_filehistory"
7178
7179           if test x"$enablestring" = xdisable; then
7180             if test $wxUSE_FILE_HISTORY = no; then
7181               result=yes
7182             else
7183               result=no
7184             fi
7185           else
7186             result=$wxUSE_FILE_HISTORY
7187           fi
7188
7189           { echo "$as_me:$LINENO: result: $result" >&5
7190 echo "${ECHO_T}$result" >&6; }
7191
7192
7193           enablestring=
7194           defaultval=$wxUSE_ALL_FEATURES
7195           if test -z "$defaultval"; then
7196               if test x"$enablestring" = xdisable; then
7197                   defaultval=yes
7198               else
7199                   defaultval=no
7200               fi
7201           fi
7202
7203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7204 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7205           # Check whether --enable-filesystem was given.
7206 if test "${enable_filesystem+set}" = set; then
7207   enableval=$enable_filesystem;
7208                           if test "$enableval" = yes; then
7209                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7210                           else
7211                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7212                           fi
7213
7214 else
7215
7216                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7217
7218 fi
7219
7220
7221           eval "$wx_cv_use_filesystem"
7222
7223           if test x"$enablestring" = xdisable; then
7224             if test $wxUSE_FILESYSTEM = no; then
7225               result=yes
7226             else
7227               result=no
7228             fi
7229           else
7230             result=$wxUSE_FILESYSTEM
7231           fi
7232
7233           { echo "$as_me:$LINENO: result: $result" >&5
7234 echo "${ECHO_T}$result" >&6; }
7235
7236
7237           enablestring=
7238           defaultval=$wxUSE_ALL_FEATURES
7239           if test -z "$defaultval"; then
7240               if test x"$enablestring" = xdisable; then
7241                   defaultval=yes
7242               else
7243                   defaultval=no
7244               fi
7245           fi
7246
7247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7248 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7249           # Check whether --enable-fontenum was given.
7250 if test "${enable_fontenum+set}" = set; then
7251   enableval=$enable_fontenum;
7252                           if test "$enableval" = yes; then
7253                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7254                           else
7255                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7256                           fi
7257
7258 else
7259
7260                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7261
7262 fi
7263
7264
7265           eval "$wx_cv_use_fontenum"
7266
7267           if test x"$enablestring" = xdisable; then
7268             if test $wxUSE_FONTENUM = no; then
7269               result=yes
7270             else
7271               result=no
7272             fi
7273           else
7274             result=$wxUSE_FONTENUM
7275           fi
7276
7277           { echo "$as_me:$LINENO: result: $result" >&5
7278 echo "${ECHO_T}$result" >&6; }
7279
7280
7281           enablestring=
7282           defaultval=$wxUSE_ALL_FEATURES
7283           if test -z "$defaultval"; then
7284               if test x"$enablestring" = xdisable; then
7285                   defaultval=yes
7286               else
7287                   defaultval=no
7288               fi
7289           fi
7290
7291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7292 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7293           # Check whether --enable-fontmap was given.
7294 if test "${enable_fontmap+set}" = set; then
7295   enableval=$enable_fontmap;
7296                           if test "$enableval" = yes; then
7297                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7298                           else
7299                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7300                           fi
7301
7302 else
7303
7304                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7305
7306 fi
7307
7308
7309           eval "$wx_cv_use_fontmap"
7310
7311           if test x"$enablestring" = xdisable; then
7312             if test $wxUSE_FONTMAP = no; then
7313               result=yes
7314             else
7315               result=no
7316             fi
7317           else
7318             result=$wxUSE_FONTMAP
7319           fi
7320
7321           { echo "$as_me:$LINENO: result: $result" >&5
7322 echo "${ECHO_T}$result" >&6; }
7323
7324
7325           enablestring=
7326           defaultval=$wxUSE_ALL_FEATURES
7327           if test -z "$defaultval"; then
7328               if test x"$enablestring" = xdisable; then
7329                   defaultval=yes
7330               else
7331                   defaultval=no
7332               fi
7333           fi
7334
7335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7336 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7337           # Check whether --enable-fs_archive was given.
7338 if test "${enable_fs_archive+set}" = set; then
7339   enableval=$enable_fs_archive;
7340                           if test "$enableval" = yes; then
7341                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7342                           else
7343                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7344                           fi
7345
7346 else
7347
7348                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7349
7350 fi
7351
7352
7353           eval "$wx_cv_use_fs_archive"
7354
7355           if test x"$enablestring" = xdisable; then
7356             if test $wxUSE_FS_ARCHIVE = no; then
7357               result=yes
7358             else
7359               result=no
7360             fi
7361           else
7362             result=$wxUSE_FS_ARCHIVE
7363           fi
7364
7365           { echo "$as_me:$LINENO: result: $result" >&5
7366 echo "${ECHO_T}$result" >&6; }
7367
7368
7369           enablestring=
7370           defaultval=$wxUSE_ALL_FEATURES
7371           if test -z "$defaultval"; then
7372               if test x"$enablestring" = xdisable; then
7373                   defaultval=yes
7374               else
7375                   defaultval=no
7376               fi
7377           fi
7378
7379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7380 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7381           # Check whether --enable-fs_inet was given.
7382 if test "${enable_fs_inet+set}" = set; then
7383   enableval=$enable_fs_inet;
7384                           if test "$enableval" = yes; then
7385                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7386                           else
7387                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7388                           fi
7389
7390 else
7391
7392                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7393
7394 fi
7395
7396
7397           eval "$wx_cv_use_fs_inet"
7398
7399           if test x"$enablestring" = xdisable; then
7400             if test $wxUSE_FS_INET = no; then
7401               result=yes
7402             else
7403               result=no
7404             fi
7405           else
7406             result=$wxUSE_FS_INET
7407           fi
7408
7409           { echo "$as_me:$LINENO: result: $result" >&5
7410 echo "${ECHO_T}$result" >&6; }
7411
7412
7413           enablestring=
7414           defaultval=$wxUSE_ALL_FEATURES
7415           if test -z "$defaultval"; then
7416               if test x"$enablestring" = xdisable; then
7417                   defaultval=yes
7418               else
7419                   defaultval=no
7420               fi
7421           fi
7422
7423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7424 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7425           # Check whether --enable-fs_zip was given.
7426 if test "${enable_fs_zip+set}" = set; then
7427   enableval=$enable_fs_zip;
7428                           if test "$enableval" = yes; then
7429                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7430                           else
7431                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7432                           fi
7433
7434 else
7435
7436                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7437
7438 fi
7439
7440
7441           eval "$wx_cv_use_fs_zip"
7442
7443           if test x"$enablestring" = xdisable; then
7444             if test $wxUSE_FS_ZIP = no; then
7445               result=yes
7446             else
7447               result=no
7448             fi
7449           else
7450             result=$wxUSE_FS_ZIP
7451           fi
7452
7453           { echo "$as_me:$LINENO: result: $result" >&5
7454 echo "${ECHO_T}$result" >&6; }
7455
7456
7457           enablestring=
7458           defaultval=$wxUSE_ALL_FEATURES
7459           if test -z "$defaultval"; then
7460               if test x"$enablestring" = xdisable; then
7461                   defaultval=yes
7462               else
7463                   defaultval=no
7464               fi
7465           fi
7466
7467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7468 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7469           # Check whether --enable-fswatcher was given.
7470 if test "${enable_fswatcher+set}" = set; then
7471   enableval=$enable_fswatcher;
7472                           if test "$enableval" = yes; then
7473                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7474                           else
7475                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7476                           fi
7477
7478 else
7479
7480                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7481
7482 fi
7483
7484
7485           eval "$wx_cv_use_fswatcher"
7486
7487           if test x"$enablestring" = xdisable; then
7488             if test $wxUSE_FSWATCHER = no; then
7489               result=yes
7490             else
7491               result=no
7492             fi
7493           else
7494             result=$wxUSE_FSWATCHER
7495           fi
7496
7497           { echo "$as_me:$LINENO: result: $result" >&5
7498 echo "${ECHO_T}$result" >&6; }
7499
7500
7501           enablestring=
7502           defaultval=$wxUSE_ALL_FEATURES
7503           if test -z "$defaultval"; then
7504               if test x"$enablestring" = xdisable; then
7505                   defaultval=yes
7506               else
7507                   defaultval=no
7508               fi
7509           fi
7510
7511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7512 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7513           # Check whether --enable-geometry was given.
7514 if test "${enable_geometry+set}" = set; then
7515   enableval=$enable_geometry;
7516                           if test "$enableval" = yes; then
7517                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7518                           else
7519                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7520                           fi
7521
7522 else
7523
7524                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7525
7526 fi
7527
7528
7529           eval "$wx_cv_use_geometry"
7530
7531           if test x"$enablestring" = xdisable; then
7532             if test $wxUSE_GEOMETRY = no; then
7533               result=yes
7534             else
7535               result=no
7536             fi
7537           else
7538             result=$wxUSE_GEOMETRY
7539           fi
7540
7541           { echo "$as_me:$LINENO: result: $result" >&5
7542 echo "${ECHO_T}$result" >&6; }
7543
7544
7545           enablestring=
7546           defaultval=$wxUSE_ALL_FEATURES
7547           if test -z "$defaultval"; then
7548               if test x"$enablestring" = xdisable; then
7549                   defaultval=yes
7550               else
7551                   defaultval=no
7552               fi
7553           fi
7554
7555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7556 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7557           # Check whether --enable-log was given.
7558 if test "${enable_log+set}" = set; then
7559   enableval=$enable_log;
7560                           if test "$enableval" = yes; then
7561                             wx_cv_use_log='wxUSE_LOG=yes'
7562                           else
7563                             wx_cv_use_log='wxUSE_LOG=no'
7564                           fi
7565
7566 else
7567
7568                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7569
7570 fi
7571
7572
7573           eval "$wx_cv_use_log"
7574
7575           if test x"$enablestring" = xdisable; then
7576             if test $wxUSE_LOG = no; then
7577               result=yes
7578             else
7579               result=no
7580             fi
7581           else
7582             result=$wxUSE_LOG
7583           fi
7584
7585           { echo "$as_me:$LINENO: result: $result" >&5
7586 echo "${ECHO_T}$result" >&6; }
7587
7588
7589           enablestring=
7590           defaultval=$wxUSE_ALL_FEATURES
7591           if test -z "$defaultval"; then
7592               if test x"$enablestring" = xdisable; then
7593                   defaultval=yes
7594               else
7595                   defaultval=no
7596               fi
7597           fi
7598
7599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7600 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7601           # Check whether --enable-longlong was given.
7602 if test "${enable_longlong+set}" = set; then
7603   enableval=$enable_longlong;
7604                           if test "$enableval" = yes; then
7605                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7606                           else
7607                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7608                           fi
7609
7610 else
7611
7612                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7613
7614 fi
7615
7616
7617           eval "$wx_cv_use_longlong"
7618
7619           if test x"$enablestring" = xdisable; then
7620             if test $wxUSE_LONGLONG = no; then
7621               result=yes
7622             else
7623               result=no
7624             fi
7625           else
7626             result=$wxUSE_LONGLONG
7627           fi
7628
7629           { echo "$as_me:$LINENO: result: $result" >&5
7630 echo "${ECHO_T}$result" >&6; }
7631
7632
7633           enablestring=
7634           defaultval=$wxUSE_ALL_FEATURES
7635           if test -z "$defaultval"; then
7636               if test x"$enablestring" = xdisable; then
7637                   defaultval=yes
7638               else
7639                   defaultval=no
7640               fi
7641           fi
7642
7643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7644 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7645           # Check whether --enable-mimetype was given.
7646 if test "${enable_mimetype+set}" = set; then
7647   enableval=$enable_mimetype;
7648                           if test "$enableval" = yes; then
7649                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7650                           else
7651                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7652                           fi
7653
7654 else
7655
7656                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7657
7658 fi
7659
7660
7661           eval "$wx_cv_use_mimetype"
7662
7663           if test x"$enablestring" = xdisable; then
7664             if test $wxUSE_MIMETYPE = no; then
7665               result=yes
7666             else
7667               result=no
7668             fi
7669           else
7670             result=$wxUSE_MIMETYPE
7671           fi
7672
7673           { echo "$as_me:$LINENO: result: $result" >&5
7674 echo "${ECHO_T}$result" >&6; }
7675
7676
7677           enablestring=
7678           defaultval=$wxUSE_ALL_FEATURES
7679           if test -z "$defaultval"; then
7680               if test x"$enablestring" = xdisable; then
7681                   defaultval=yes
7682               else
7683                   defaultval=no
7684               fi
7685           fi
7686
7687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7688 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7689           # Check whether --enable-printfposparam was given.
7690 if test "${enable_printfposparam+set}" = set; then
7691   enableval=$enable_printfposparam;
7692                           if test "$enableval" = yes; then
7693                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7694                           else
7695                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7696                           fi
7697
7698 else
7699
7700                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7701
7702 fi
7703
7704
7705           eval "$wx_cv_use_printfposparam"
7706
7707           if test x"$enablestring" = xdisable; then
7708             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7709               result=yes
7710             else
7711               result=no
7712             fi
7713           else
7714             result=$wxUSE_PRINTF_POS_PARAMS
7715           fi
7716
7717           { echo "$as_me:$LINENO: result: $result" >&5
7718 echo "${ECHO_T}$result" >&6; }
7719
7720
7721           enablestring=
7722           defaultval=$wxUSE_ALL_FEATURES
7723           if test -z "$defaultval"; then
7724               if test x"$enablestring" = xdisable; then
7725                   defaultval=yes
7726               else
7727                   defaultval=no
7728               fi
7729           fi
7730
7731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7732 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7733           # Check whether --enable-snglinst was given.
7734 if test "${enable_snglinst+set}" = set; then
7735   enableval=$enable_snglinst;
7736                           if test "$enableval" = yes; then
7737                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7738                           else
7739                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7740                           fi
7741
7742 else
7743
7744                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7745
7746 fi
7747
7748
7749           eval "$wx_cv_use_snglinst"
7750
7751           if test x"$enablestring" = xdisable; then
7752             if test $wxUSE_SNGLINST_CHECKER = no; then
7753               result=yes
7754             else
7755               result=no
7756             fi
7757           else
7758             result=$wxUSE_SNGLINST_CHECKER
7759           fi
7760
7761           { echo "$as_me:$LINENO: result: $result" >&5
7762 echo "${ECHO_T}$result" >&6; }
7763
7764
7765           enablestring=
7766           defaultval=$wxUSE_ALL_FEATURES
7767           if test -z "$defaultval"; then
7768               if test x"$enablestring" = xdisable; then
7769                   defaultval=yes
7770               else
7771                   defaultval=no
7772               fi
7773           fi
7774
7775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7776 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7777           # Check whether --enable-sound was given.
7778 if test "${enable_sound+set}" = set; then
7779   enableval=$enable_sound;
7780                           if test "$enableval" = yes; then
7781                             wx_cv_use_sound='wxUSE_SOUND=yes'
7782                           else
7783                             wx_cv_use_sound='wxUSE_SOUND=no'
7784                           fi
7785
7786 else
7787
7788                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7789
7790 fi
7791
7792
7793           eval "$wx_cv_use_sound"
7794
7795           if test x"$enablestring" = xdisable; then
7796             if test $wxUSE_SOUND = no; then
7797               result=yes
7798             else
7799               result=no
7800             fi
7801           else
7802             result=$wxUSE_SOUND
7803           fi
7804
7805           { echo "$as_me:$LINENO: result: $result" >&5
7806 echo "${ECHO_T}$result" >&6; }
7807
7808
7809           enablestring=
7810           defaultval=$wxUSE_ALL_FEATURES
7811           if test -z "$defaultval"; then
7812               if test x"$enablestring" = xdisable; then
7813                   defaultval=yes
7814               else
7815                   defaultval=no
7816               fi
7817           fi
7818
7819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7820 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7821           # Check whether --enable-stdpaths was given.
7822 if test "${enable_stdpaths+set}" = set; then
7823   enableval=$enable_stdpaths;
7824                           if test "$enableval" = yes; then
7825                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7826                           else
7827                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7828                           fi
7829
7830 else
7831
7832                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7833
7834 fi
7835
7836
7837           eval "$wx_cv_use_stdpaths"
7838
7839           if test x"$enablestring" = xdisable; then
7840             if test $wxUSE_STDPATHS = no; then
7841               result=yes
7842             else
7843               result=no
7844             fi
7845           else
7846             result=$wxUSE_STDPATHS
7847           fi
7848
7849           { echo "$as_me:$LINENO: result: $result" >&5
7850 echo "${ECHO_T}$result" >&6; }
7851
7852
7853           enablestring=
7854           defaultval=$wxUSE_ALL_FEATURES
7855           if test -z "$defaultval"; then
7856               if test x"$enablestring" = xdisable; then
7857                   defaultval=yes
7858               else
7859                   defaultval=no
7860               fi
7861           fi
7862
7863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7864 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7865           # Check whether --enable-stopwatch was given.
7866 if test "${enable_stopwatch+set}" = set; then
7867   enableval=$enable_stopwatch;
7868                           if test "$enableval" = yes; then
7869                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7870                           else
7871                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7872                           fi
7873
7874 else
7875
7876                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7877
7878 fi
7879
7880
7881           eval "$wx_cv_use_stopwatch"
7882
7883           if test x"$enablestring" = xdisable; then
7884             if test $wxUSE_STOPWATCH = no; then
7885               result=yes
7886             else
7887               result=no
7888             fi
7889           else
7890             result=$wxUSE_STOPWATCH
7891           fi
7892
7893           { echo "$as_me:$LINENO: result: $result" >&5
7894 echo "${ECHO_T}$result" >&6; }
7895
7896
7897           enablestring=
7898           defaultval=$wxUSE_ALL_FEATURES
7899           if test -z "$defaultval"; then
7900               if test x"$enablestring" = xdisable; then
7901                   defaultval=yes
7902               else
7903                   defaultval=no
7904               fi
7905           fi
7906
7907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7908 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7909           # Check whether --enable-streams was given.
7910 if test "${enable_streams+set}" = set; then
7911   enableval=$enable_streams;
7912                           if test "$enableval" = yes; then
7913                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7914                           else
7915                             wx_cv_use_streams='wxUSE_STREAMS=no'
7916                           fi
7917
7918 else
7919
7920                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7921
7922 fi
7923
7924
7925           eval "$wx_cv_use_streams"
7926
7927           if test x"$enablestring" = xdisable; then
7928             if test $wxUSE_STREAMS = no; then
7929               result=yes
7930             else
7931               result=no
7932             fi
7933           else
7934             result=$wxUSE_STREAMS
7935           fi
7936
7937           { echo "$as_me:$LINENO: result: $result" >&5
7938 echo "${ECHO_T}$result" >&6; }
7939
7940
7941           enablestring=
7942           defaultval=$wxUSE_ALL_FEATURES
7943           if test -z "$defaultval"; then
7944               if test x"$enablestring" = xdisable; then
7945                   defaultval=yes
7946               else
7947                   defaultval=no
7948               fi
7949           fi
7950
7951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7952 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7953           # Check whether --enable-sysoptions was given.
7954 if test "${enable_sysoptions+set}" = set; then
7955   enableval=$enable_sysoptions;
7956                           if test "$enableval" = yes; then
7957                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7958                           else
7959                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7960                           fi
7961
7962 else
7963
7964                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7965
7966 fi
7967
7968
7969           eval "$wx_cv_use_sysoptions"
7970
7971           if test x"$enablestring" = xdisable; then
7972             if test $wxUSE_SYSTEM_OPTIONS = no; then
7973               result=yes
7974             else
7975               result=no
7976             fi
7977           else
7978             result=$wxUSE_SYSTEM_OPTIONS
7979           fi
7980
7981           { echo "$as_me:$LINENO: result: $result" >&5
7982 echo "${ECHO_T}$result" >&6; }
7983
7984
7985           enablestring=
7986           defaultval=$wxUSE_ALL_FEATURES
7987           if test -z "$defaultval"; then
7988               if test x"$enablestring" = xdisable; then
7989                   defaultval=yes
7990               else
7991                   defaultval=no
7992               fi
7993           fi
7994
7995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7996 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7997           # Check whether --enable-tarstream was given.
7998 if test "${enable_tarstream+set}" = set; then
7999   enableval=$enable_tarstream;
8000                           if test "$enableval" = yes; then
8001                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8002                           else
8003                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8004                           fi
8005
8006 else
8007
8008                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8009
8010 fi
8011
8012
8013           eval "$wx_cv_use_tarstream"
8014
8015           if test x"$enablestring" = xdisable; then
8016             if test $wxUSE_TARSTREAM = no; then
8017               result=yes
8018             else
8019               result=no
8020             fi
8021           else
8022             result=$wxUSE_TARSTREAM
8023           fi
8024
8025           { echo "$as_me:$LINENO: result: $result" >&5
8026 echo "${ECHO_T}$result" >&6; }
8027
8028
8029           enablestring=
8030           defaultval=$wxUSE_ALL_FEATURES
8031           if test -z "$defaultval"; then
8032               if test x"$enablestring" = xdisable; then
8033                   defaultval=yes
8034               else
8035                   defaultval=no
8036               fi
8037           fi
8038
8039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8040 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8041           # Check whether --enable-textbuf was given.
8042 if test "${enable_textbuf+set}" = set; then
8043   enableval=$enable_textbuf;
8044                           if test "$enableval" = yes; then
8045                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8046                           else
8047                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8048                           fi
8049
8050 else
8051
8052                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8053
8054 fi
8055
8056
8057           eval "$wx_cv_use_textbuf"
8058
8059           if test x"$enablestring" = xdisable; then
8060             if test $wxUSE_TEXTBUFFER = no; then
8061               result=yes
8062             else
8063               result=no
8064             fi
8065           else
8066             result=$wxUSE_TEXTBUFFER
8067           fi
8068
8069           { echo "$as_me:$LINENO: result: $result" >&5
8070 echo "${ECHO_T}$result" >&6; }
8071
8072
8073           enablestring=
8074           defaultval=$wxUSE_ALL_FEATURES
8075           if test -z "$defaultval"; then
8076               if test x"$enablestring" = xdisable; then
8077                   defaultval=yes
8078               else
8079                   defaultval=no
8080               fi
8081           fi
8082
8083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8084 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8085           # Check whether --enable-textfile was given.
8086 if test "${enable_textfile+set}" = set; then
8087   enableval=$enable_textfile;
8088                           if test "$enableval" = yes; then
8089                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8090                           else
8091                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8092                           fi
8093
8094 else
8095
8096                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8097
8098 fi
8099
8100
8101           eval "$wx_cv_use_textfile"
8102
8103           if test x"$enablestring" = xdisable; then
8104             if test $wxUSE_TEXTFILE = no; then
8105               result=yes
8106             else
8107               result=no
8108             fi
8109           else
8110             result=$wxUSE_TEXTFILE
8111           fi
8112
8113           { echo "$as_me:$LINENO: result: $result" >&5
8114 echo "${ECHO_T}$result" >&6; }
8115
8116
8117           enablestring=
8118           defaultval=$wxUSE_ALL_FEATURES
8119           if test -z "$defaultval"; then
8120               if test x"$enablestring" = xdisable; then
8121                   defaultval=yes
8122               else
8123                   defaultval=no
8124               fi
8125           fi
8126
8127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8128 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8129           # Check whether --enable-timer was given.
8130 if test "${enable_timer+set}" = set; then
8131   enableval=$enable_timer;
8132                           if test "$enableval" = yes; then
8133                             wx_cv_use_timer='wxUSE_TIMER=yes'
8134                           else
8135                             wx_cv_use_timer='wxUSE_TIMER=no'
8136                           fi
8137
8138 else
8139
8140                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8141
8142 fi
8143
8144
8145           eval "$wx_cv_use_timer"
8146
8147           if test x"$enablestring" = xdisable; then
8148             if test $wxUSE_TIMER = no; then
8149               result=yes
8150             else
8151               result=no
8152             fi
8153           else
8154             result=$wxUSE_TIMER
8155           fi
8156
8157           { echo "$as_me:$LINENO: result: $result" >&5
8158 echo "${ECHO_T}$result" >&6; }
8159
8160
8161           enablestring=
8162           defaultval=$wxUSE_ALL_FEATURES
8163           if test -z "$defaultval"; then
8164               if test x"$enablestring" = xdisable; then
8165                   defaultval=yes
8166               else
8167                   defaultval=no
8168               fi
8169           fi
8170
8171           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8172 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8173           # Check whether --enable-variant was given.
8174 if test "${enable_variant+set}" = set; then
8175   enableval=$enable_variant;
8176                           if test "$enableval" = yes; then
8177                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8178                           else
8179                             wx_cv_use_variant='wxUSE_VARIANT=no'
8180                           fi
8181
8182 else
8183
8184                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8185
8186 fi
8187
8188
8189           eval "$wx_cv_use_variant"
8190
8191           if test x"$enablestring" = xdisable; then
8192             if test $wxUSE_VARIANT = no; then
8193               result=yes
8194             else
8195               result=no
8196             fi
8197           else
8198             result=$wxUSE_VARIANT
8199           fi
8200
8201           { echo "$as_me:$LINENO: result: $result" >&5
8202 echo "${ECHO_T}$result" >&6; }
8203
8204
8205           enablestring=
8206           defaultval=$wxUSE_ALL_FEATURES
8207           if test -z "$defaultval"; then
8208               if test x"$enablestring" = xdisable; then
8209                   defaultval=yes
8210               else
8211                   defaultval=no
8212               fi
8213           fi
8214
8215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8216 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8217           # Check whether --enable-zipstream was given.
8218 if test "${enable_zipstream+set}" = set; then
8219   enableval=$enable_zipstream;
8220                           if test "$enableval" = yes; then
8221                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8222                           else
8223                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8224                           fi
8225
8226 else
8227
8228                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8229
8230 fi
8231
8232
8233           eval "$wx_cv_use_zipstream"
8234
8235           if test x"$enablestring" = xdisable; then
8236             if test $wxUSE_ZIPSTREAM = no; then
8237               result=yes
8238             else
8239               result=no
8240             fi
8241           else
8242             result=$wxUSE_ZIPSTREAM
8243           fi
8244
8245           { echo "$as_me:$LINENO: result: $result" >&5
8246 echo "${ECHO_T}$result" >&6; }
8247
8248
8249
8250           enablestring=
8251           defaultval=$wxUSE_ALL_FEATURES
8252           if test -z "$defaultval"; then
8253               if test x"$enablestring" = xdisable; then
8254                   defaultval=yes
8255               else
8256                   defaultval=no
8257               fi
8258           fi
8259
8260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8261 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8262           # Check whether --enable-url was given.
8263 if test "${enable_url+set}" = set; then
8264   enableval=$enable_url;
8265                           if test "$enableval" = yes; then
8266                             wx_cv_use_url='wxUSE_URL=yes'
8267                           else
8268                             wx_cv_use_url='wxUSE_URL=no'
8269                           fi
8270
8271 else
8272
8273                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8274
8275 fi
8276
8277
8278           eval "$wx_cv_use_url"
8279
8280           if test x"$enablestring" = xdisable; then
8281             if test $wxUSE_URL = no; then
8282               result=yes
8283             else
8284               result=no
8285             fi
8286           else
8287             result=$wxUSE_URL
8288           fi
8289
8290           { echo "$as_me:$LINENO: result: $result" >&5
8291 echo "${ECHO_T}$result" >&6; }
8292
8293
8294           enablestring=
8295           defaultval=$wxUSE_ALL_FEATURES
8296           if test -z "$defaultval"; then
8297               if test x"$enablestring" = xdisable; then
8298                   defaultval=yes
8299               else
8300                   defaultval=no
8301               fi
8302           fi
8303
8304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8305 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8306           # Check whether --enable-protocol was given.
8307 if test "${enable_protocol+set}" = set; then
8308   enableval=$enable_protocol;
8309                           if test "$enableval" = yes; then
8310                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8311                           else
8312                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8313                           fi
8314
8315 else
8316
8317                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8318
8319 fi
8320
8321
8322           eval "$wx_cv_use_protocol"
8323
8324           if test x"$enablestring" = xdisable; then
8325             if test $wxUSE_PROTOCOL = no; then
8326               result=yes
8327             else
8328               result=no
8329             fi
8330           else
8331             result=$wxUSE_PROTOCOL
8332           fi
8333
8334           { echo "$as_me:$LINENO: result: $result" >&5
8335 echo "${ECHO_T}$result" >&6; }
8336
8337
8338           enablestring=
8339           defaultval=$wxUSE_ALL_FEATURES
8340           if test -z "$defaultval"; then
8341               if test x"$enablestring" = xdisable; then
8342                   defaultval=yes
8343               else
8344                   defaultval=no
8345               fi
8346           fi
8347
8348           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8349 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8350           # Check whether --enable-protocol_http was given.
8351 if test "${enable_protocol_http+set}" = set; then
8352   enableval=$enable_protocol_http;
8353                           if test "$enableval" = yes; then
8354                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8355                           else
8356                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8357                           fi
8358
8359 else
8360
8361                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8362
8363 fi
8364
8365
8366           eval "$wx_cv_use_protocol_http"
8367
8368           if test x"$enablestring" = xdisable; then
8369             if test $wxUSE_PROTOCOL_HTTP = no; then
8370               result=yes
8371             else
8372               result=no
8373             fi
8374           else
8375             result=$wxUSE_PROTOCOL_HTTP
8376           fi
8377
8378           { echo "$as_me:$LINENO: result: $result" >&5
8379 echo "${ECHO_T}$result" >&6; }
8380
8381
8382           enablestring=
8383           defaultval=$wxUSE_ALL_FEATURES
8384           if test -z "$defaultval"; then
8385               if test x"$enablestring" = xdisable; then
8386                   defaultval=yes
8387               else
8388                   defaultval=no
8389               fi
8390           fi
8391
8392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8393 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8394           # Check whether --enable-protocol_ftp was given.
8395 if test "${enable_protocol_ftp+set}" = set; then
8396   enableval=$enable_protocol_ftp;
8397                           if test "$enableval" = yes; then
8398                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8399                           else
8400                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8401                           fi
8402
8403 else
8404
8405                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8406
8407 fi
8408
8409
8410           eval "$wx_cv_use_protocol_ftp"
8411
8412           if test x"$enablestring" = xdisable; then
8413             if test $wxUSE_PROTOCOL_FTP = no; then
8414               result=yes
8415             else
8416               result=no
8417             fi
8418           else
8419             result=$wxUSE_PROTOCOL_FTP
8420           fi
8421
8422           { echo "$as_me:$LINENO: result: $result" >&5
8423 echo "${ECHO_T}$result" >&6; }
8424
8425
8426           enablestring=
8427           defaultval=$wxUSE_ALL_FEATURES
8428           if test -z "$defaultval"; then
8429               if test x"$enablestring" = xdisable; then
8430                   defaultval=yes
8431               else
8432                   defaultval=no
8433               fi
8434           fi
8435
8436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8437 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8438           # Check whether --enable-protocol_file was given.
8439 if test "${enable_protocol_file+set}" = set; then
8440   enableval=$enable_protocol_file;
8441                           if test "$enableval" = yes; then
8442                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8443                           else
8444                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8445                           fi
8446
8447 else
8448
8449                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8450
8451 fi
8452
8453
8454           eval "$wx_cv_use_protocol_file"
8455
8456           if test x"$enablestring" = xdisable; then
8457             if test $wxUSE_PROTOCOL_FILE = no; then
8458               result=yes
8459             else
8460               result=no
8461             fi
8462           else
8463             result=$wxUSE_PROTOCOL_FILE
8464           fi
8465
8466           { echo "$as_me:$LINENO: result: $result" >&5
8467 echo "${ECHO_T}$result" >&6; }
8468
8469
8470
8471           enablestring=
8472           defaultval=$wxUSE_ALL_FEATURES
8473           if test -z "$defaultval"; then
8474               if test x"$enablestring" = xdisable; then
8475                   defaultval=yes
8476               else
8477                   defaultval=no
8478               fi
8479           fi
8480
8481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8482 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8483           # Check whether --enable-threads was given.
8484 if test "${enable_threads+set}" = set; then
8485   enableval=$enable_threads;
8486                           if test "$enableval" = yes; then
8487                             wx_cv_use_threads='wxUSE_THREADS=yes'
8488                           else
8489                             wx_cv_use_threads='wxUSE_THREADS=no'
8490                           fi
8491
8492 else
8493
8494                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8495
8496 fi
8497
8498
8499           eval "$wx_cv_use_threads"
8500
8501           if test x"$enablestring" = xdisable; then
8502             if test $wxUSE_THREADS = no; then
8503               result=yes
8504             else
8505               result=no
8506             fi
8507           else
8508             result=$wxUSE_THREADS
8509           fi
8510
8511           { echo "$as_me:$LINENO: result: $result" >&5
8512 echo "${ECHO_T}$result" >&6; }
8513
8514
8515
8516           enablestring=
8517           defaultval=
8518           if test -z "$defaultval"; then
8519               if test x"$enablestring" = xdisable; then
8520                   defaultval=yes
8521               else
8522                   defaultval=no
8523               fi
8524           fi
8525
8526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8527 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8528           # Check whether --enable-iniconf was given.
8529 if test "${enable_iniconf+set}" = set; then
8530   enableval=$enable_iniconf;
8531                           if test "$enableval" = yes; then
8532                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8533                           else
8534                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8535                           fi
8536
8537 else
8538
8539                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8540
8541 fi
8542
8543
8544           eval "$wx_cv_use_iniconf"
8545
8546           if test x"$enablestring" = xdisable; then
8547             if test $wxUSE_INICONF = no; then
8548               result=yes
8549             else
8550               result=no
8551             fi
8552           else
8553             result=$wxUSE_INICONF
8554           fi
8555
8556           { echo "$as_me:$LINENO: result: $result" >&5
8557 echo "${ECHO_T}$result" >&6; }
8558
8559
8560           enablestring=
8561           defaultval=$wxUSE_ALL_FEATURES
8562           if test -z "$defaultval"; then
8563               if test x"$enablestring" = xdisable; then
8564                   defaultval=yes
8565               else
8566                   defaultval=no
8567               fi
8568           fi
8569
8570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8571 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8572           # Check whether --enable-regkey was given.
8573 if test "${enable_regkey+set}" = set; then
8574   enableval=$enable_regkey;
8575                           if test "$enableval" = yes; then
8576                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8577                           else
8578                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8579                           fi
8580
8581 else
8582
8583                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8584
8585 fi
8586
8587
8588           eval "$wx_cv_use_regkey"
8589
8590           if test x"$enablestring" = xdisable; then
8591             if test $wxUSE_REGKEY = no; then
8592               result=yes
8593             else
8594               result=no
8595             fi
8596           else
8597             result=$wxUSE_REGKEY
8598           fi
8599
8600           { echo "$as_me:$LINENO: result: $result" >&5
8601 echo "${ECHO_T}$result" >&6; }
8602
8603
8604 if test "$wxUSE_GUI" = "yes"; then
8605
8606
8607
8608           enablestring=
8609           defaultval=$wxUSE_ALL_FEATURES
8610           if test -z "$defaultval"; then
8611               if test x"$enablestring" = xdisable; then
8612                   defaultval=yes
8613               else
8614                   defaultval=no
8615               fi
8616           fi
8617
8618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8619 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8620           # Check whether --enable-docview was given.
8621 if test "${enable_docview+set}" = set; then
8622   enableval=$enable_docview;
8623                           if test "$enableval" = yes; then
8624                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8625                           else
8626                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8627                           fi
8628
8629 else
8630
8631                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8632
8633 fi
8634
8635
8636           eval "$wx_cv_use_docview"
8637
8638           if test x"$enablestring" = xdisable; then
8639             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8640               result=yes
8641             else
8642               result=no
8643             fi
8644           else
8645             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8646           fi
8647
8648           { echo "$as_me:$LINENO: result: $result" >&5
8649 echo "${ECHO_T}$result" >&6; }
8650
8651
8652           enablestring=
8653           defaultval=$wxUSE_ALL_FEATURES
8654           if test -z "$defaultval"; then
8655               if test x"$enablestring" = xdisable; then
8656                   defaultval=yes
8657               else
8658                   defaultval=no
8659               fi
8660           fi
8661
8662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8663 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8664           # Check whether --enable-help was given.
8665 if test "${enable_help+set}" = set; then
8666   enableval=$enable_help;
8667                           if test "$enableval" = yes; then
8668                             wx_cv_use_help='wxUSE_HELP=yes'
8669                           else
8670                             wx_cv_use_help='wxUSE_HELP=no'
8671                           fi
8672
8673 else
8674
8675                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8676
8677 fi
8678
8679
8680           eval "$wx_cv_use_help"
8681
8682           if test x"$enablestring" = xdisable; then
8683             if test $wxUSE_HELP = no; then
8684               result=yes
8685             else
8686               result=no
8687             fi
8688           else
8689             result=$wxUSE_HELP
8690           fi
8691
8692           { echo "$as_me:$LINENO: result: $result" >&5
8693 echo "${ECHO_T}$result" >&6; }
8694
8695
8696           enablestring=
8697           defaultval=$wxUSE_ALL_FEATURES
8698           if test -z "$defaultval"; then
8699               if test x"$enablestring" = xdisable; then
8700                   defaultval=yes
8701               else
8702                   defaultval=no
8703               fi
8704           fi
8705
8706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8707 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8708           # Check whether --enable-mshtmlhelp was given.
8709 if test "${enable_mshtmlhelp+set}" = set; then
8710   enableval=$enable_mshtmlhelp;
8711                           if test "$enableval" = yes; then
8712                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8713                           else
8714                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8715                           fi
8716
8717 else
8718
8719                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8720
8721 fi
8722
8723
8724           eval "$wx_cv_use_mshtmlhelp"
8725
8726           if test x"$enablestring" = xdisable; then
8727             if test $wxUSE_MS_HTML_HELP = no; then
8728               result=yes
8729             else
8730               result=no
8731             fi
8732           else
8733             result=$wxUSE_MS_HTML_HELP
8734           fi
8735
8736           { echo "$as_me:$LINENO: result: $result" >&5
8737 echo "${ECHO_T}$result" >&6; }
8738
8739
8740           enablestring=
8741           defaultval=$wxUSE_ALL_FEATURES
8742           if test -z "$defaultval"; then
8743               if test x"$enablestring" = xdisable; then
8744                   defaultval=yes
8745               else
8746                   defaultval=no
8747               fi
8748           fi
8749
8750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8751 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8752           # Check whether --enable-html was given.
8753 if test "${enable_html+set}" = set; then
8754   enableval=$enable_html;
8755                           if test "$enableval" = yes; then
8756                             wx_cv_use_html='wxUSE_HTML=yes'
8757                           else
8758                             wx_cv_use_html='wxUSE_HTML=no'
8759                           fi
8760
8761 else
8762
8763                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8764
8765 fi
8766
8767
8768           eval "$wx_cv_use_html"
8769
8770           if test x"$enablestring" = xdisable; then
8771             if test $wxUSE_HTML = no; then
8772               result=yes
8773             else
8774               result=no
8775             fi
8776           else
8777             result=$wxUSE_HTML
8778           fi
8779
8780           { echo "$as_me:$LINENO: result: $result" >&5
8781 echo "${ECHO_T}$result" >&6; }
8782
8783
8784           enablestring=
8785           defaultval=$wxUSE_ALL_FEATURES
8786           if test -z "$defaultval"; then
8787               if test x"$enablestring" = xdisable; then
8788                   defaultval=yes
8789               else
8790                   defaultval=no
8791               fi
8792           fi
8793
8794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8795 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8796           # Check whether --enable-htmlhelp was given.
8797 if test "${enable_htmlhelp+set}" = set; then
8798   enableval=$enable_htmlhelp;
8799                           if test "$enableval" = yes; then
8800                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8801                           else
8802                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8803                           fi
8804
8805 else
8806
8807                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8808
8809 fi
8810
8811
8812           eval "$wx_cv_use_htmlhelp"
8813
8814           if test x"$enablestring" = xdisable; then
8815             if test $wxUSE_WXHTML_HELP = no; then
8816               result=yes
8817             else
8818               result=no
8819             fi
8820           else
8821             result=$wxUSE_WXHTML_HELP
8822           fi
8823
8824           { echo "$as_me:$LINENO: result: $result" >&5
8825 echo "${ECHO_T}$result" >&6; }
8826
8827
8828           enablestring=
8829           defaultval=$wxUSE_ALL_FEATURES
8830           if test -z "$defaultval"; then
8831               if test x"$enablestring" = xdisable; then
8832                   defaultval=yes
8833               else
8834                   defaultval=no
8835               fi
8836           fi
8837
8838           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8839 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8840           # Check whether --enable-xrc was given.
8841 if test "${enable_xrc+set}" = set; then
8842   enableval=$enable_xrc;
8843                           if test "$enableval" = yes; then
8844                             wx_cv_use_xrc='wxUSE_XRC=yes'
8845                           else
8846                             wx_cv_use_xrc='wxUSE_XRC=no'
8847                           fi
8848
8849 else
8850
8851                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8852
8853 fi
8854
8855
8856           eval "$wx_cv_use_xrc"
8857
8858           if test x"$enablestring" = xdisable; then
8859             if test $wxUSE_XRC = no; then
8860               result=yes
8861             else
8862               result=no
8863             fi
8864           else
8865             result=$wxUSE_XRC
8866           fi
8867
8868           { echo "$as_me:$LINENO: result: $result" >&5
8869 echo "${ECHO_T}$result" >&6; }
8870
8871
8872           enablestring=
8873           defaultval=$wxUSE_ALL_FEATURES
8874           if test -z "$defaultval"; then
8875               if test x"$enablestring" = xdisable; then
8876                   defaultval=yes
8877               else
8878                   defaultval=no
8879               fi
8880           fi
8881
8882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8883 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8884           # Check whether --enable-aui was given.
8885 if test "${enable_aui+set}" = set; then
8886   enableval=$enable_aui;
8887                           if test "$enableval" = yes; then
8888                             wx_cv_use_aui='wxUSE_AUI=yes'
8889                           else
8890                             wx_cv_use_aui='wxUSE_AUI=no'
8891                           fi
8892
8893 else
8894
8895                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8896
8897 fi
8898
8899
8900           eval "$wx_cv_use_aui"
8901
8902           if test x"$enablestring" = xdisable; then
8903             if test $wxUSE_AUI = no; then
8904               result=yes
8905             else
8906               result=no
8907             fi
8908           else
8909             result=$wxUSE_AUI
8910           fi
8911
8912           { echo "$as_me:$LINENO: result: $result" >&5
8913 echo "${ECHO_T}$result" >&6; }
8914
8915
8916           enablestring=
8917           defaultval=$wxUSE_ALL_FEATURES
8918           if test -z "$defaultval"; then
8919               if test x"$enablestring" = xdisable; then
8920                   defaultval=yes
8921               else
8922                   defaultval=no
8923               fi
8924           fi
8925
8926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8927 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8928           # Check whether --enable-propgrid was given.
8929 if test "${enable_propgrid+set}" = set; then
8930   enableval=$enable_propgrid;
8931                           if test "$enableval" = yes; then
8932                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8933                           else
8934                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8935                           fi
8936
8937 else
8938
8939                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8940
8941 fi
8942
8943
8944           eval "$wx_cv_use_propgrid"
8945
8946           if test x"$enablestring" = xdisable; then
8947             if test $wxUSE_PROPGRID = no; then
8948               result=yes
8949             else
8950               result=no
8951             fi
8952           else
8953             result=$wxUSE_PROPGRID
8954           fi
8955
8956           { echo "$as_me:$LINENO: result: $result" >&5
8957 echo "${ECHO_T}$result" >&6; }
8958
8959
8960           enablestring=
8961           defaultval=$wxUSE_ALL_FEATURES
8962           if test -z "$defaultval"; then
8963               if test x"$enablestring" = xdisable; then
8964                   defaultval=yes
8965               else
8966                   defaultval=no
8967               fi
8968           fi
8969
8970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8971 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8972           # Check whether --enable-ribbon was given.
8973 if test "${enable_ribbon+set}" = set; then
8974   enableval=$enable_ribbon;
8975                           if test "$enableval" = yes; then
8976                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8977                           else
8978                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8979                           fi
8980
8981 else
8982
8983                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8984
8985 fi
8986
8987
8988           eval "$wx_cv_use_ribbon"
8989
8990           if test x"$enablestring" = xdisable; then
8991             if test $wxUSE_RIBBON = no; then
8992               result=yes
8993             else
8994               result=no
8995             fi
8996           else
8997             result=$wxUSE_RIBBON
8998           fi
8999
9000           { echo "$as_me:$LINENO: result: $result" >&5
9001 echo "${ECHO_T}$result" >&6; }
9002
9003
9004           enablestring=
9005           defaultval=$wxUSE_ALL_FEATURES
9006           if test -z "$defaultval"; then
9007               if test x"$enablestring" = xdisable; then
9008                   defaultval=yes
9009               else
9010                   defaultval=no
9011               fi
9012           fi
9013
9014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9015 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9016           # Check whether --enable-stc was given.
9017 if test "${enable_stc+set}" = set; then
9018   enableval=$enable_stc;
9019                           if test "$enableval" = yes; then
9020                             wx_cv_use_stc='wxUSE_STC=yes'
9021                           else
9022                             wx_cv_use_stc='wxUSE_STC=no'
9023                           fi
9024
9025 else
9026
9027                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9028
9029 fi
9030
9031
9032           eval "$wx_cv_use_stc"
9033
9034           if test x"$enablestring" = xdisable; then
9035             if test $wxUSE_STC = no; then
9036               result=yes
9037             else
9038               result=no
9039             fi
9040           else
9041             result=$wxUSE_STC
9042           fi
9043
9044           { echo "$as_me:$LINENO: result: $result" >&5
9045 echo "${ECHO_T}$result" >&6; }
9046
9047
9048           enablestring=
9049           defaultval=$wxUSE_ALL_FEATURES
9050           if test -z "$defaultval"; then
9051               if test x"$enablestring" = xdisable; then
9052                   defaultval=yes
9053               else
9054                   defaultval=no
9055               fi
9056           fi
9057
9058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9060           # Check whether --enable-constraints was given.
9061 if test "${enable_constraints+set}" = set; then
9062   enableval=$enable_constraints;
9063                           if test "$enableval" = yes; then
9064                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9065                           else
9066                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9067                           fi
9068
9069 else
9070
9071                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9072
9073 fi
9074
9075
9076           eval "$wx_cv_use_constraints"
9077
9078           if test x"$enablestring" = xdisable; then
9079             if test $wxUSE_CONSTRAINTS = no; then
9080               result=yes
9081             else
9082               result=no
9083             fi
9084           else
9085             result=$wxUSE_CONSTRAINTS
9086           fi
9087
9088           { echo "$as_me:$LINENO: result: $result" >&5
9089 echo "${ECHO_T}$result" >&6; }
9090
9091
9092           enablestring=
9093           defaultval=$wxUSE_ALL_FEATURES
9094           if test -z "$defaultval"; then
9095               if test x"$enablestring" = xdisable; then
9096                   defaultval=yes
9097               else
9098                   defaultval=no
9099               fi
9100           fi
9101
9102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9103 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9104           # Check whether --enable-loggui was given.
9105 if test "${enable_loggui+set}" = set; then
9106   enableval=$enable_loggui;
9107                           if test "$enableval" = yes; then
9108                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9109                           else
9110                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9111                           fi
9112
9113 else
9114
9115                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9116
9117 fi
9118
9119
9120           eval "$wx_cv_use_loggui"
9121
9122           if test x"$enablestring" = xdisable; then
9123             if test $wxUSE_LOGGUI = no; then
9124               result=yes
9125             else
9126               result=no
9127             fi
9128           else
9129             result=$wxUSE_LOGGUI
9130           fi
9131
9132           { echo "$as_me:$LINENO: result: $result" >&5
9133 echo "${ECHO_T}$result" >&6; }
9134
9135
9136           enablestring=
9137           defaultval=$wxUSE_ALL_FEATURES
9138           if test -z "$defaultval"; then
9139               if test x"$enablestring" = xdisable; then
9140                   defaultval=yes
9141               else
9142                   defaultval=no
9143               fi
9144           fi
9145
9146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9147 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9148           # Check whether --enable-logwin was given.
9149 if test "${enable_logwin+set}" = set; then
9150   enableval=$enable_logwin;
9151                           if test "$enableval" = yes; then
9152                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9153                           else
9154                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9155                           fi
9156
9157 else
9158
9159                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9160
9161 fi
9162
9163
9164           eval "$wx_cv_use_logwin"
9165
9166           if test x"$enablestring" = xdisable; then
9167             if test $wxUSE_LOGWINDOW = no; then
9168               result=yes
9169             else
9170               result=no
9171             fi
9172           else
9173             result=$wxUSE_LOGWINDOW
9174           fi
9175
9176           { echo "$as_me:$LINENO: result: $result" >&5
9177 echo "${ECHO_T}$result" >&6; }
9178
9179
9180           enablestring=
9181           defaultval=$wxUSE_ALL_FEATURES
9182           if test -z "$defaultval"; then
9183               if test x"$enablestring" = xdisable; then
9184                   defaultval=yes
9185               else
9186                   defaultval=no
9187               fi
9188           fi
9189
9190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9191 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9192           # Check whether --enable-logdialog was given.
9193 if test "${enable_logdialog+set}" = set; then
9194   enableval=$enable_logdialog;
9195                           if test "$enableval" = yes; then
9196                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9197                           else
9198                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9199                           fi
9200
9201 else
9202
9203                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9204
9205 fi
9206
9207
9208           eval "$wx_cv_use_logdialog"
9209
9210           if test x"$enablestring" = xdisable; then
9211             if test $wxUSE_LOGDIALOG = no; then
9212               result=yes
9213             else
9214               result=no
9215             fi
9216           else
9217             result=$wxUSE_LOGDIALOG
9218           fi
9219
9220           { echo "$as_me:$LINENO: result: $result" >&5
9221 echo "${ECHO_T}$result" >&6; }
9222
9223
9224           enablestring=
9225           defaultval=$wxUSE_ALL_FEATURES
9226           if test -z "$defaultval"; then
9227               if test x"$enablestring" = xdisable; then
9228                   defaultval=yes
9229               else
9230                   defaultval=no
9231               fi
9232           fi
9233
9234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9235 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9236           # Check whether --enable-mdi was given.
9237 if test "${enable_mdi+set}" = set; then
9238   enableval=$enable_mdi;
9239                           if test "$enableval" = yes; then
9240                             wx_cv_use_mdi='wxUSE_MDI=yes'
9241                           else
9242                             wx_cv_use_mdi='wxUSE_MDI=no'
9243                           fi
9244
9245 else
9246
9247                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9248
9249 fi
9250
9251
9252           eval "$wx_cv_use_mdi"
9253
9254           if test x"$enablestring" = xdisable; then
9255             if test $wxUSE_MDI = no; then
9256               result=yes
9257             else
9258               result=no
9259             fi
9260           else
9261             result=$wxUSE_MDI
9262           fi
9263
9264           { echo "$as_me:$LINENO: result: $result" >&5
9265 echo "${ECHO_T}$result" >&6; }
9266
9267
9268           enablestring=
9269           defaultval=$wxUSE_ALL_FEATURES
9270           if test -z "$defaultval"; then
9271               if test x"$enablestring" = xdisable; then
9272                   defaultval=yes
9273               else
9274                   defaultval=no
9275               fi
9276           fi
9277
9278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9279 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9280           # Check whether --enable-mdidoc was given.
9281 if test "${enable_mdidoc+set}" = set; then
9282   enableval=$enable_mdidoc;
9283                           if test "$enableval" = yes; then
9284                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9285                           else
9286                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9287                           fi
9288
9289 else
9290
9291                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9292
9293 fi
9294
9295
9296           eval "$wx_cv_use_mdidoc"
9297
9298           if test x"$enablestring" = xdisable; then
9299             if test $wxUSE_MDI_ARCHITECTURE = no; then
9300               result=yes
9301             else
9302               result=no
9303             fi
9304           else
9305             result=$wxUSE_MDI_ARCHITECTURE
9306           fi
9307
9308           { echo "$as_me:$LINENO: result: $result" >&5
9309 echo "${ECHO_T}$result" >&6; }
9310
9311
9312           enablestring=
9313           defaultval=$wxUSE_ALL_FEATURES
9314           if test -z "$defaultval"; then
9315               if test x"$enablestring" = xdisable; then
9316                   defaultval=yes
9317               else
9318                   defaultval=no
9319               fi
9320           fi
9321
9322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9323 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9324           # Check whether --enable-mediactrl was given.
9325 if test "${enable_mediactrl+set}" = set; then
9326   enableval=$enable_mediactrl;
9327                           if test "$enableval" = yes; then
9328                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9329                           else
9330                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9331                           fi
9332
9333 else
9334
9335                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9336
9337 fi
9338
9339
9340           eval "$wx_cv_use_mediactrl"
9341
9342           if test x"$enablestring" = xdisable; then
9343             if test $wxUSE_MEDIACTRL = no; then
9344               result=yes
9345             else
9346               result=no
9347             fi
9348           else
9349             result=$wxUSE_MEDIACTRL
9350           fi
9351
9352           { echo "$as_me:$LINENO: result: $result" >&5
9353 echo "${ECHO_T}$result" >&6; }
9354
9355
9356           enablestring=
9357           defaultval=$wxUSE_ALL_FEATURES
9358           if test -z "$defaultval"; then
9359               if test x"$enablestring" = xdisable; then
9360                   defaultval=yes
9361               else
9362                   defaultval=no
9363               fi
9364           fi
9365
9366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9367 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9368           # Check whether --enable-gstreamer8 was given.
9369 if test "${enable_gstreamer8+set}" = set; then
9370   enableval=$enable_gstreamer8;
9371                           if test "$enableval" = yes; then
9372                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9373                           else
9374                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9375                           fi
9376
9377 else
9378
9379                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9380
9381 fi
9382
9383
9384           eval "$wx_cv_use_gstreamer8"
9385
9386           if test x"$enablestring" = xdisable; then
9387             if test $wxUSE_GSTREAMER8 = no; then
9388               result=yes
9389             else
9390               result=no
9391             fi
9392           else
9393             result=$wxUSE_GSTREAMER8
9394           fi
9395
9396           { echo "$as_me:$LINENO: result: $result" >&5
9397 echo "${ECHO_T}$result" >&6; }
9398
9399
9400           enablestring=
9401           defaultval=$wxUSE_ALL_FEATURES
9402           if test -z "$defaultval"; then
9403               if test x"$enablestring" = xdisable; then
9404                   defaultval=yes
9405               else
9406                   defaultval=no
9407               fi
9408           fi
9409
9410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9411 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9412           # Check whether --enable-webkit was given.
9413 if test "${enable_webkit+set}" = set; then
9414   enableval=$enable_webkit;
9415                           if test "$enableval" = yes; then
9416                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9417                           else
9418                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9419                           fi
9420
9421 else
9422
9423                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9424
9425 fi
9426
9427
9428           eval "$wx_cv_use_webkit"
9429
9430           if test x"$enablestring" = xdisable; then
9431             if test $wxUSE_WEBKIT = no; then
9432               result=yes
9433             else
9434               result=no
9435             fi
9436           else
9437             result=$wxUSE_WEBKIT
9438           fi
9439
9440           { echo "$as_me:$LINENO: result: $result" >&5
9441 echo "${ECHO_T}$result" >&6; }
9442
9443
9444           enablestring=
9445           defaultval=$wxUSE_ALL_FEATURES
9446           if test -z "$defaultval"; then
9447               if test x"$enablestring" = xdisable; then
9448                   defaultval=yes
9449               else
9450                   defaultval=no
9451               fi
9452           fi
9453
9454           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9455 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9456           # Check whether --enable-richtext was given.
9457 if test "${enable_richtext+set}" = set; then
9458   enableval=$enable_richtext;
9459                           if test "$enableval" = yes; then
9460                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9461                           else
9462                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9463                           fi
9464
9465 else
9466
9467                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9468
9469 fi
9470
9471
9472           eval "$wx_cv_use_richtext"
9473
9474           if test x"$enablestring" = xdisable; then
9475             if test $wxUSE_RICHTEXT = no; then
9476               result=yes
9477             else
9478               result=no
9479             fi
9480           else
9481             result=$wxUSE_RICHTEXT
9482           fi
9483
9484           { echo "$as_me:$LINENO: result: $result" >&5
9485 echo "${ECHO_T}$result" >&6; }
9486
9487
9488           enablestring=
9489           defaultval=$wxUSE_ALL_FEATURES
9490           if test -z "$defaultval"; then
9491               if test x"$enablestring" = xdisable; then
9492                   defaultval=yes
9493               else
9494                   defaultval=no
9495               fi
9496           fi
9497
9498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9499 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9500           # Check whether --enable-postscript was given.
9501 if test "${enable_postscript+set}" = set; then
9502   enableval=$enable_postscript;
9503                           if test "$enableval" = yes; then
9504                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9505                           else
9506                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9507                           fi
9508
9509 else
9510
9511                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9512
9513 fi
9514
9515
9516           eval "$wx_cv_use_postscript"
9517
9518           if test x"$enablestring" = xdisable; then
9519             if test $wxUSE_POSTSCRIPT = no; then
9520               result=yes
9521             else
9522               result=no
9523             fi
9524           else
9525             result=$wxUSE_POSTSCRIPT
9526           fi
9527
9528           { echo "$as_me:$LINENO: result: $result" >&5
9529 echo "${ECHO_T}$result" >&6; }
9530
9531
9532           enablestring=
9533           defaultval=$wxUSE_ALL_FEATURES
9534           if test -z "$defaultval"; then
9535               if test x"$enablestring" = xdisable; then
9536                   defaultval=yes
9537               else
9538                   defaultval=no
9539               fi
9540           fi
9541
9542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9543 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9544           # Check whether --enable-printarch was given.
9545 if test "${enable_printarch+set}" = set; then
9546   enableval=$enable_printarch;
9547                           if test "$enableval" = yes; then
9548                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9549                           else
9550                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9551                           fi
9552
9553 else
9554
9555                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9556
9557 fi
9558
9559
9560           eval "$wx_cv_use_printarch"
9561
9562           if test x"$enablestring" = xdisable; then
9563             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9564               result=yes
9565             else
9566               result=no
9567             fi
9568           else
9569             result=$wxUSE_PRINTING_ARCHITECTURE
9570           fi
9571
9572           { echo "$as_me:$LINENO: result: $result" >&5
9573 echo "${ECHO_T}$result" >&6; }
9574
9575
9576           enablestring=
9577           defaultval=$wxUSE_ALL_FEATURES
9578           if test -z "$defaultval"; then
9579               if test x"$enablestring" = xdisable; then
9580                   defaultval=yes
9581               else
9582                   defaultval=no
9583               fi
9584           fi
9585
9586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9587 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9588           # Check whether --enable-svg was given.
9589 if test "${enable_svg+set}" = set; then
9590   enableval=$enable_svg;
9591                           if test "$enableval" = yes; then
9592                             wx_cv_use_svg='wxUSE_SVG=yes'
9593                           else
9594                             wx_cv_use_svg='wxUSE_SVG=no'
9595                           fi
9596
9597 else
9598
9599                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9600
9601 fi
9602
9603
9604           eval "$wx_cv_use_svg"
9605
9606           if test x"$enablestring" = xdisable; then
9607             if test $wxUSE_SVG = no; then
9608               result=yes
9609             else
9610               result=no
9611             fi
9612           else
9613             result=$wxUSE_SVG
9614           fi
9615
9616           { echo "$as_me:$LINENO: result: $result" >&5
9617 echo "${ECHO_T}$result" >&6; }
9618
9619
9620 if test "$wxUSE_MAC" != 1; then
9621
9622           enablestring=
9623           defaultval=$wxUSE_ALL_FEATURES
9624           if test -z "$defaultval"; then
9625               if test x"$enablestring" = xdisable; then
9626                   defaultval=yes
9627               else
9628                   defaultval=no
9629               fi
9630           fi
9631
9632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9633 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9634           # Check whether --enable-graphics_ctx was given.
9635 if test "${enable_graphics_ctx+set}" = set; then
9636   enableval=$enable_graphics_ctx;
9637                           if test "$enableval" = yes; then
9638                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9639                           else
9640                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9641                           fi
9642
9643 else
9644
9645                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9646
9647 fi
9648
9649
9650           eval "$wx_cv_use_graphics_ctx"
9651
9652           if test x"$enablestring" = xdisable; then
9653             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9654               result=yes
9655             else
9656               result=no
9657             fi
9658           else
9659             result=$wxUSE_GRAPHICS_CONTEXT
9660           fi
9661
9662           { echo "$as_me:$LINENO: result: $result" >&5
9663 echo "${ECHO_T}$result" >&6; }
9664
9665 fi
9666
9667
9668
9669           enablestring=
9670           defaultval=$wxUSE_ALL_FEATURES
9671           if test -z "$defaultval"; then
9672               if test x"$enablestring" = xdisable; then
9673                   defaultval=yes
9674               else
9675                   defaultval=no
9676               fi
9677           fi
9678
9679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9680 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9681           # Check whether --enable-clipboard was given.
9682 if test "${enable_clipboard+set}" = set; then
9683   enableval=$enable_clipboard;
9684                           if test "$enableval" = yes; then
9685                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9686                           else
9687                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9688                           fi
9689
9690 else
9691
9692                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9693
9694 fi
9695
9696
9697           eval "$wx_cv_use_clipboard"
9698
9699           if test x"$enablestring" = xdisable; then
9700             if test $wxUSE_CLIPBOARD = no; then
9701               result=yes
9702             else
9703               result=no
9704             fi
9705           else
9706             result=$wxUSE_CLIPBOARD
9707           fi
9708
9709           { echo "$as_me:$LINENO: result: $result" >&5
9710 echo "${ECHO_T}$result" >&6; }
9711
9712
9713           enablestring=
9714           defaultval=$wxUSE_ALL_FEATURES
9715           if test -z "$defaultval"; then
9716               if test x"$enablestring" = xdisable; then
9717                   defaultval=yes
9718               else
9719                   defaultval=no
9720               fi
9721           fi
9722
9723           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9724 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9725           # Check whether --enable-dnd was given.
9726 if test "${enable_dnd+set}" = set; then
9727   enableval=$enable_dnd;
9728                           if test "$enableval" = yes; then
9729                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9730                           else
9731                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9732                           fi
9733
9734 else
9735
9736                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9737
9738 fi
9739
9740
9741           eval "$wx_cv_use_dnd"
9742
9743           if test x"$enablestring" = xdisable; then
9744             if test $wxUSE_DRAG_AND_DROP = no; then
9745               result=yes
9746             else
9747               result=no
9748             fi
9749           else
9750             result=$wxUSE_DRAG_AND_DROP
9751           fi
9752
9753           { echo "$as_me:$LINENO: result: $result" >&5
9754 echo "${ECHO_T}$result" >&6; }
9755
9756
9757           enablestring=
9758           defaultval=$wxUSE_ALL_FEATURES
9759           if test -z "$defaultval"; then
9760               if test x"$enablestring" = xdisable; then
9761                   defaultval=yes
9762               else
9763                   defaultval=no
9764               fi
9765           fi
9766
9767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9768 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9769           # Check whether --enable-metafile was given.
9770 if test "${enable_metafile+set}" = set; then
9771   enableval=$enable_metafile;
9772                           if test "$enableval" = yes; then
9773                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9774                           else
9775                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9776                           fi
9777
9778 else
9779
9780                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9781
9782 fi
9783
9784
9785           eval "$wx_cv_use_metafile"
9786
9787           if test x"$enablestring" = xdisable; then
9788             if test $wxUSE_METAFILE = no; then
9789               result=yes
9790             else
9791               result=no
9792             fi
9793           else
9794             result=$wxUSE_METAFILE
9795           fi
9796
9797           { echo "$as_me:$LINENO: result: $result" >&5
9798 echo "${ECHO_T}$result" >&6; }
9799
9800
9801
9802 DEFAULT_wxUSE_CONTROLS=none
9803
9804           enablestring=disable
9805           defaultval=
9806           if test -z "$defaultval"; then
9807               if test x"$enablestring" = xdisable; then
9808                   defaultval=yes
9809               else
9810                   defaultval=no
9811               fi
9812           fi
9813
9814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9815 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9816           # Check whether --enable-controls was given.
9817 if test "${enable_controls+set}" = set; then
9818   enableval=$enable_controls;
9819                           if test "$enableval" = yes; then
9820                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9821                           else
9822                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9823                           fi
9824
9825 else
9826
9827                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9828
9829 fi
9830
9831
9832           eval "$wx_cv_use_controls"
9833
9834           if test x"$enablestring" = xdisable; then
9835             if test $wxUSE_CONTROLS = no; then
9836               result=yes
9837             else
9838               result=no
9839             fi
9840           else
9841             result=$wxUSE_CONTROLS
9842           fi
9843
9844           { echo "$as_me:$LINENO: result: $result" >&5
9845 echo "${ECHO_T}$result" >&6; }
9846
9847
9848 if test "$wxUSE_CONTROLS" = "no"; then
9849     DEFAULT_wxUSE_ACCEL=no
9850     DEFAULT_wxUSE_ANIMATIONCTRL=no
9851     DEFAULT_wxUSE_BMPBUTTON=no
9852     DEFAULT_wxUSE_BUTTON=no
9853     DEFAULT_wxUSE_CALCTRL=no
9854     DEFAULT_wxUSE_CARET=no
9855     DEFAULT_wxUSE_CHECKBOX=no
9856     DEFAULT_wxUSE_CHECKLISTBOX=no
9857     DEFAULT_wxUSE_CHOICE=no
9858     DEFAULT_wxUSE_CHOICEBOOK=no
9859     DEFAULT_wxUSE_COLLPANE=no
9860     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9861     DEFAULT_wxUSE_COMBOBOX=no
9862     DEFAULT_wxUSE_COMBOBOX=no
9863     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9864     DEFAULT_wxUSE_DATAVIEWCTRL=no
9865     DEFAULT_wxUSE_DATEPICKCTRL=no
9866     DEFAULT_wxUSE_DETECT_SM=no
9867     DEFAULT_wxUSE_DIRPICKERCTRL=no
9868     DEFAULT_wxUSE_DISPLAY=no
9869     DEFAULT_wxUSE_FILECTRL=no
9870     DEFAULT_wxUSE_FILEPICKERCTRL=no
9871     DEFAULT_wxUSE_FONTPICKERCTRL=no
9872     DEFAULT_wxUSE_GAUGE=no
9873     DEFAULT_wxUSE_GRID=no
9874     DEFAULT_wxUSE_HEADERCTRL=no
9875     DEFAULT_wxUSE_HYPERLINKCTRL=no
9876     DEFAULT_wxUSE_IMAGLIST=no
9877     DEFAULT_wxUSE_LISTBOOK=no
9878     DEFAULT_wxUSE_LISTBOX=no
9879     DEFAULT_wxUSE_LISTCTRL=no
9880     DEFAULT_wxUSE_MARKUP=no
9881     DEFAULT_wxUSE_NOTEBOOK=no
9882     DEFAULT_wxUSE_POPUPWIN=no
9883     DEFAULT_wxUSE_RADIOBOX=no
9884     DEFAULT_wxUSE_RADIOBTN=no
9885     DEFAULT_wxUSE_RICHMSGDLG=no
9886     DEFAULT_wxUSE_REARRANGECTRL=no
9887     DEFAULT_wxUSE_SASH=no
9888     DEFAULT_wxUSE_SCROLLBAR=no
9889     DEFAULT_wxUSE_SEARCHCTRL=no
9890     DEFAULT_wxUSE_SLIDER=no
9891     DEFAULT_wxUSE_SPINBTN=no
9892     DEFAULT_wxUSE_SPINCTRL=no
9893     DEFAULT_wxUSE_SPLITTER=no
9894     DEFAULT_wxUSE_STATBMP=no
9895     DEFAULT_wxUSE_STATBOX=no
9896     DEFAULT_wxUSE_STATLINE=no
9897     DEFAULT_wxUSE_STATUSBAR=no
9898     DEFAULT_wxUSE_TIPWINDOW=no
9899     DEFAULT_wxUSE_TOGGLEBTN=no
9900     DEFAULT_wxUSE_TOOLBAR=no
9901     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9902     DEFAULT_wxUSE_TOOLBOOK=no
9903     DEFAULT_wxUSE_TOOLTIPS=no
9904     DEFAULT_wxUSE_TREEBOOK=no
9905     DEFAULT_wxUSE_TREECTRL=no
9906 fi
9907
9908
9909           enablestring=
9910           defaultval=$wxUSE_ALL_FEATURES
9911           if test -z "$defaultval"; then
9912               if test x"$enablestring" = xdisable; then
9913                   defaultval=yes
9914               else
9915                   defaultval=no
9916               fi
9917           fi
9918
9919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9920 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9921           # Check whether --enable-markup was given.
9922 if test "${enable_markup+set}" = set; then
9923   enableval=$enable_markup;
9924                           if test "$enableval" = yes; then
9925                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9926                           else
9927                             wx_cv_use_markup='wxUSE_MARKUP=no'
9928                           fi
9929
9930 else
9931
9932                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9933
9934 fi
9935
9936
9937           eval "$wx_cv_use_markup"
9938
9939           if test x"$enablestring" = xdisable; then
9940             if test $wxUSE_MARKUP = no; then
9941               result=yes
9942             else
9943               result=no
9944             fi
9945           else
9946             result=$wxUSE_MARKUP
9947           fi
9948
9949           { echo "$as_me:$LINENO: result: $result" >&5
9950 echo "${ECHO_T}$result" >&6; }
9951
9952
9953
9954           enablestring=
9955           defaultval=$wxUSE_ALL_FEATURES
9956           if test -z "$defaultval"; then
9957               if test x"$enablestring" = xdisable; then
9958                   defaultval=yes
9959               else
9960                   defaultval=no
9961               fi
9962           fi
9963
9964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9965 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9966           # Check whether --enable-accel was given.
9967 if test "${enable_accel+set}" = set; then
9968   enableval=$enable_accel;
9969                           if test "$enableval" = yes; then
9970                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9971                           else
9972                             wx_cv_use_accel='wxUSE_ACCEL=no'
9973                           fi
9974
9975 else
9976
9977                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9978
9979 fi
9980
9981
9982           eval "$wx_cv_use_accel"
9983
9984           if test x"$enablestring" = xdisable; then
9985             if test $wxUSE_ACCEL = no; then
9986               result=yes
9987             else
9988               result=no
9989             fi
9990           else
9991             result=$wxUSE_ACCEL
9992           fi
9993
9994           { echo "$as_me:$LINENO: result: $result" >&5
9995 echo "${ECHO_T}$result" >&6; }
9996
9997
9998           enablestring=
9999           defaultval=$wxUSE_ALL_FEATURES
10000           if test -z "$defaultval"; then
10001               if test x"$enablestring" = xdisable; then
10002                   defaultval=yes
10003               else
10004                   defaultval=no
10005               fi
10006           fi
10007
10008           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10009 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10010           # Check whether --enable-animatectrl was given.
10011 if test "${enable_animatectrl+set}" = set; then
10012   enableval=$enable_animatectrl;
10013                           if test "$enableval" = yes; then
10014                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10015                           else
10016                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10017                           fi
10018
10019 else
10020
10021                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10022
10023 fi
10024
10025
10026           eval "$wx_cv_use_animatectrl"
10027
10028           if test x"$enablestring" = xdisable; then
10029             if test $wxUSE_ANIMATIONCTRL = no; then
10030               result=yes
10031             else
10032               result=no
10033             fi
10034           else
10035             result=$wxUSE_ANIMATIONCTRL
10036           fi
10037
10038           { echo "$as_me:$LINENO: result: $result" >&5
10039 echo "${ECHO_T}$result" >&6; }
10040
10041
10042           enablestring=
10043           defaultval=$wxUSE_ALL_FEATURES
10044           if test -z "$defaultval"; then
10045               if test x"$enablestring" = xdisable; then
10046                   defaultval=yes
10047               else
10048                   defaultval=no
10049               fi
10050           fi
10051
10052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10053 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10054           # Check whether --enable-artstd was given.
10055 if test "${enable_artstd+set}" = set; then
10056   enableval=$enable_artstd;
10057                           if test "$enableval" = yes; then
10058                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10059                           else
10060                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10061                           fi
10062
10063 else
10064
10065                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10066
10067 fi
10068
10069
10070           eval "$wx_cv_use_artstd"
10071
10072           if test x"$enablestring" = xdisable; then
10073             if test $wxUSE_ARTPROVIDER_STD = no; then
10074               result=yes
10075             else
10076               result=no
10077             fi
10078           else
10079             result=$wxUSE_ARTPROVIDER_STD
10080           fi
10081
10082           { echo "$as_me:$LINENO: result: $result" >&5
10083 echo "${ECHO_T}$result" >&6; }
10084
10085
10086           enablestring=
10087           defaultval=$wxUSE_ALL_FEATURES
10088           if test -z "$defaultval"; then
10089               if test x"$enablestring" = xdisable; then
10090                   defaultval=yes
10091               else
10092                   defaultval=no
10093               fi
10094           fi
10095
10096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10097 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10098           # Check whether --enable-arttango was given.
10099 if test "${enable_arttango+set}" = set; then
10100   enableval=$enable_arttango;
10101                           if test "$enableval" = yes; then
10102                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10103                           else
10104                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10105                           fi
10106
10107 else
10108
10109                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10110
10111 fi
10112
10113
10114           eval "$wx_cv_use_arttango"
10115
10116           if test x"$enablestring" = xdisable; then
10117             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10118               result=yes
10119             else
10120               result=no
10121             fi
10122           else
10123             result=$wxUSE_ARTPROVIDER_TANGO
10124           fi
10125
10126           { echo "$as_me:$LINENO: result: $result" >&5
10127 echo "${ECHO_T}$result" >&6; }
10128
10129
10130           enablestring=
10131           defaultval=$wxUSE_ALL_FEATURES
10132           if test -z "$defaultval"; then
10133               if test x"$enablestring" = xdisable; then
10134                   defaultval=yes
10135               else
10136                   defaultval=no
10137               fi
10138           fi
10139
10140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10141 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10142           # Check whether --enable-bmpbutton was given.
10143 if test "${enable_bmpbutton+set}" = set; then
10144   enableval=$enable_bmpbutton;
10145                           if test "$enableval" = yes; then
10146                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10147                           else
10148                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10149                           fi
10150
10151 else
10152
10153                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10154
10155 fi
10156
10157
10158           eval "$wx_cv_use_bmpbutton"
10159
10160           if test x"$enablestring" = xdisable; then
10161             if test $wxUSE_BMPBUTTON = no; then
10162               result=yes
10163             else
10164               result=no
10165             fi
10166           else
10167             result=$wxUSE_BMPBUTTON
10168           fi
10169
10170           { echo "$as_me:$LINENO: result: $result" >&5
10171 echo "${ECHO_T}$result" >&6; }
10172
10173
10174           enablestring=
10175           defaultval=$wxUSE_ALL_FEATURES
10176           if test -z "$defaultval"; then
10177               if test x"$enablestring" = xdisable; then
10178                   defaultval=yes
10179               else
10180                   defaultval=no
10181               fi
10182           fi
10183
10184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10185 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10186           # Check whether --enable-bmpcombobox was given.
10187 if test "${enable_bmpcombobox+set}" = set; then
10188   enableval=$enable_bmpcombobox;
10189                           if test "$enableval" = yes; then
10190                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10191                           else
10192                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10193                           fi
10194
10195 else
10196
10197                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10198
10199 fi
10200
10201
10202           eval "$wx_cv_use_bmpcombobox"
10203
10204           if test x"$enablestring" = xdisable; then
10205             if test $wxUSE_BITMAPCOMBOBOX = no; then
10206               result=yes
10207             else
10208               result=no
10209             fi
10210           else
10211             result=$wxUSE_BITMAPCOMBOBOX
10212           fi
10213
10214           { echo "$as_me:$LINENO: result: $result" >&5
10215 echo "${ECHO_T}$result" >&6; }
10216
10217
10218           enablestring=
10219           defaultval=$wxUSE_ALL_FEATURES
10220           if test -z "$defaultval"; then
10221               if test x"$enablestring" = xdisable; then
10222                   defaultval=yes
10223               else
10224                   defaultval=no
10225               fi
10226           fi
10227
10228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10229 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10230           # Check whether --enable-button was given.
10231 if test "${enable_button+set}" = set; then
10232   enableval=$enable_button;
10233                           if test "$enableval" = yes; then
10234                             wx_cv_use_button='wxUSE_BUTTON=yes'
10235                           else
10236                             wx_cv_use_button='wxUSE_BUTTON=no'
10237                           fi
10238
10239 else
10240
10241                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10242
10243 fi
10244
10245
10246           eval "$wx_cv_use_button"
10247
10248           if test x"$enablestring" = xdisable; then
10249             if test $wxUSE_BUTTON = no; then
10250               result=yes
10251             else
10252               result=no
10253             fi
10254           else
10255             result=$wxUSE_BUTTON
10256           fi
10257
10258           { echo "$as_me:$LINENO: result: $result" >&5
10259 echo "${ECHO_T}$result" >&6; }
10260
10261
10262           enablestring=
10263           defaultval=$wxUSE_ALL_FEATURES
10264           if test -z "$defaultval"; then
10265               if test x"$enablestring" = xdisable; then
10266                   defaultval=yes
10267               else
10268                   defaultval=no
10269               fi
10270           fi
10271
10272           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10273 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10274           # Check whether --enable-calendar was given.
10275 if test "${enable_calendar+set}" = set; then
10276   enableval=$enable_calendar;
10277                           if test "$enableval" = yes; then
10278                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10279                           else
10280                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10281                           fi
10282
10283 else
10284
10285                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10286
10287 fi
10288
10289
10290           eval "$wx_cv_use_calendar"
10291
10292           if test x"$enablestring" = xdisable; then
10293             if test $wxUSE_CALCTRL = no; then
10294               result=yes
10295             else
10296               result=no
10297             fi
10298           else
10299             result=$wxUSE_CALCTRL
10300           fi
10301
10302           { echo "$as_me:$LINENO: result: $result" >&5
10303 echo "${ECHO_T}$result" >&6; }
10304
10305
10306           enablestring=
10307           defaultval=$wxUSE_ALL_FEATURES
10308           if test -z "$defaultval"; then
10309               if test x"$enablestring" = xdisable; then
10310                   defaultval=yes
10311               else
10312                   defaultval=no
10313               fi
10314           fi
10315
10316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10317 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10318           # Check whether --enable-caret was given.
10319 if test "${enable_caret+set}" = set; then
10320   enableval=$enable_caret;
10321                           if test "$enableval" = yes; then
10322                             wx_cv_use_caret='wxUSE_CARET=yes'
10323                           else
10324                             wx_cv_use_caret='wxUSE_CARET=no'
10325                           fi
10326
10327 else
10328
10329                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10330
10331 fi
10332
10333
10334           eval "$wx_cv_use_caret"
10335
10336           if test x"$enablestring" = xdisable; then
10337             if test $wxUSE_CARET = no; then
10338               result=yes
10339             else
10340               result=no
10341             fi
10342           else
10343             result=$wxUSE_CARET
10344           fi
10345
10346           { echo "$as_me:$LINENO: result: $result" >&5
10347 echo "${ECHO_T}$result" >&6; }
10348
10349
10350           enablestring=
10351           defaultval=$wxUSE_ALL_FEATURES
10352           if test -z "$defaultval"; then
10353               if test x"$enablestring" = xdisable; then
10354                   defaultval=yes
10355               else
10356                   defaultval=no
10357               fi
10358           fi
10359
10360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10361 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10362           # Check whether --enable-checkbox was given.
10363 if test "${enable_checkbox+set}" = set; then
10364   enableval=$enable_checkbox;
10365                           if test "$enableval" = yes; then
10366                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10367                           else
10368                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10369                           fi
10370
10371 else
10372
10373                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10374
10375 fi
10376
10377
10378           eval "$wx_cv_use_checkbox"
10379
10380           if test x"$enablestring" = xdisable; then
10381             if test $wxUSE_CHECKBOX = no; then
10382               result=yes
10383             else
10384               result=no
10385             fi
10386           else
10387             result=$wxUSE_CHECKBOX
10388           fi
10389
10390           { echo "$as_me:$LINENO: result: $result" >&5
10391 echo "${ECHO_T}$result" >&6; }
10392
10393
10394           enablestring=
10395           defaultval=$wxUSE_ALL_FEATURES
10396           if test -z "$defaultval"; then
10397               if test x"$enablestring" = xdisable; then
10398                   defaultval=yes
10399               else
10400                   defaultval=no
10401               fi
10402           fi
10403
10404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10405 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10406           # Check whether --enable-checklst was given.
10407 if test "${enable_checklst+set}" = set; then
10408   enableval=$enable_checklst;
10409                           if test "$enableval" = yes; then
10410                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10411                           else
10412                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10413                           fi
10414
10415 else
10416
10417                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10418
10419 fi
10420
10421
10422           eval "$wx_cv_use_checklst"
10423
10424           if test x"$enablestring" = xdisable; then
10425             if test $wxUSE_CHECKLST = no; then
10426               result=yes
10427             else
10428               result=no
10429             fi
10430           else
10431             result=$wxUSE_CHECKLST
10432           fi
10433
10434           { echo "$as_me:$LINENO: result: $result" >&5
10435 echo "${ECHO_T}$result" >&6; }
10436
10437
10438           enablestring=
10439           defaultval=$wxUSE_ALL_FEATURES
10440           if test -z "$defaultval"; then
10441               if test x"$enablestring" = xdisable; then
10442                   defaultval=yes
10443               else
10444                   defaultval=no
10445               fi
10446           fi
10447
10448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10449 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10450           # Check whether --enable-choice was given.
10451 if test "${enable_choice+set}" = set; then
10452   enableval=$enable_choice;
10453                           if test "$enableval" = yes; then
10454                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10455                           else
10456                             wx_cv_use_choice='wxUSE_CHOICE=no'
10457                           fi
10458
10459 else
10460
10461                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10462
10463 fi
10464
10465
10466           eval "$wx_cv_use_choice"
10467
10468           if test x"$enablestring" = xdisable; then
10469             if test $wxUSE_CHOICE = no; then
10470               result=yes
10471             else
10472               result=no
10473             fi
10474           else
10475             result=$wxUSE_CHOICE
10476           fi
10477
10478           { echo "$as_me:$LINENO: result: $result" >&5
10479 echo "${ECHO_T}$result" >&6; }
10480
10481
10482           enablestring=
10483           defaultval=$wxUSE_ALL_FEATURES
10484           if test -z "$defaultval"; then
10485               if test x"$enablestring" = xdisable; then
10486                   defaultval=yes
10487               else
10488                   defaultval=no
10489               fi
10490           fi
10491
10492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10493 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10494           # Check whether --enable-choicebook was given.
10495 if test "${enable_choicebook+set}" = set; then
10496   enableval=$enable_choicebook;
10497                           if test "$enableval" = yes; then
10498                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10499                           else
10500                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10501                           fi
10502
10503 else
10504
10505                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10506
10507 fi
10508
10509
10510           eval "$wx_cv_use_choicebook"
10511
10512           if test x"$enablestring" = xdisable; then
10513             if test $wxUSE_CHOICEBOOK = no; then
10514               result=yes
10515             else
10516               result=no
10517             fi
10518           else
10519             result=$wxUSE_CHOICEBOOK
10520           fi
10521
10522           { echo "$as_me:$LINENO: result: $result" >&5
10523 echo "${ECHO_T}$result" >&6; }
10524
10525
10526           enablestring=
10527           defaultval=$wxUSE_ALL_FEATURES
10528           if test -z "$defaultval"; then
10529               if test x"$enablestring" = xdisable; then
10530                   defaultval=yes
10531               else
10532                   defaultval=no
10533               fi
10534           fi
10535
10536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10537 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10538           # Check whether --enable-collpane was given.
10539 if test "${enable_collpane+set}" = set; then
10540   enableval=$enable_collpane;
10541                           if test "$enableval" = yes; then
10542                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10543                           else
10544                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10545                           fi
10546
10547 else
10548
10549                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10550
10551 fi
10552
10553
10554           eval "$wx_cv_use_collpane"
10555
10556           if test x"$enablestring" = xdisable; then
10557             if test $wxUSE_COLLPANE = no; then
10558               result=yes
10559             else
10560               result=no
10561             fi
10562           else
10563             result=$wxUSE_COLLPANE
10564           fi
10565
10566           { echo "$as_me:$LINENO: result: $result" >&5
10567 echo "${ECHO_T}$result" >&6; }
10568
10569
10570           enablestring=
10571           defaultval=$wxUSE_ALL_FEATURES
10572           if test -z "$defaultval"; then
10573               if test x"$enablestring" = xdisable; then
10574                   defaultval=yes
10575               else
10576                   defaultval=no
10577               fi
10578           fi
10579
10580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10581 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10582           # Check whether --enable-colourpicker was given.
10583 if test "${enable_colourpicker+set}" = set; then
10584   enableval=$enable_colourpicker;
10585                           if test "$enableval" = yes; then
10586                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10587                           else
10588                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10589                           fi
10590
10591 else
10592
10593                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10594
10595 fi
10596
10597
10598           eval "$wx_cv_use_colourpicker"
10599
10600           if test x"$enablestring" = xdisable; then
10601             if test $wxUSE_COLOURPICKERCTRL = no; then
10602               result=yes
10603             else
10604               result=no
10605             fi
10606           else
10607             result=$wxUSE_COLOURPICKERCTRL
10608           fi
10609
10610           { echo "$as_me:$LINENO: result: $result" >&5
10611 echo "${ECHO_T}$result" >&6; }
10612
10613
10614           enablestring=
10615           defaultval=$wxUSE_ALL_FEATURES
10616           if test -z "$defaultval"; then
10617               if test x"$enablestring" = xdisable; then
10618                   defaultval=yes
10619               else
10620                   defaultval=no
10621               fi
10622           fi
10623
10624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10625 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10626           # Check whether --enable-combobox was given.
10627 if test "${enable_combobox+set}" = set; then
10628   enableval=$enable_combobox;
10629                           if test "$enableval" = yes; then
10630                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10631                           else
10632                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10633                           fi
10634
10635 else
10636
10637                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10638
10639 fi
10640
10641
10642           eval "$wx_cv_use_combobox"
10643
10644           if test x"$enablestring" = xdisable; then
10645             if test $wxUSE_COMBOBOX = no; then
10646               result=yes
10647             else
10648               result=no
10649             fi
10650           else
10651             result=$wxUSE_COMBOBOX
10652           fi
10653
10654           { echo "$as_me:$LINENO: result: $result" >&5
10655 echo "${ECHO_T}$result" >&6; }
10656
10657
10658           enablestring=
10659           defaultval=$wxUSE_ALL_FEATURES
10660           if test -z "$defaultval"; then
10661               if test x"$enablestring" = xdisable; then
10662                   defaultval=yes
10663               else
10664                   defaultval=no
10665               fi
10666           fi
10667
10668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10669 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10670           # Check whether --enable-comboctrl was given.
10671 if test "${enable_comboctrl+set}" = set; then
10672   enableval=$enable_comboctrl;
10673                           if test "$enableval" = yes; then
10674                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10675                           else
10676                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10677                           fi
10678
10679 else
10680
10681                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10682
10683 fi
10684
10685
10686           eval "$wx_cv_use_comboctrl"
10687
10688           if test x"$enablestring" = xdisable; then
10689             if test $wxUSE_COMBOCTRL = no; then
10690               result=yes
10691             else
10692               result=no
10693             fi
10694           else
10695             result=$wxUSE_COMBOCTRL
10696           fi
10697
10698           { echo "$as_me:$LINENO: result: $result" >&5
10699 echo "${ECHO_T}$result" >&6; }
10700
10701
10702           enablestring=
10703           defaultval=$wxUSE_ALL_FEATURES
10704           if test -z "$defaultval"; then
10705               if test x"$enablestring" = xdisable; then
10706                   defaultval=yes
10707               else
10708                   defaultval=no
10709               fi
10710           fi
10711
10712           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10713 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10714           # Check whether --enable-commandlinkbutton was given.
10715 if test "${enable_commandlinkbutton+set}" = set; then
10716   enableval=$enable_commandlinkbutton;
10717                           if test "$enableval" = yes; then
10718                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10719                           else
10720                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10721                           fi
10722
10723 else
10724
10725                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10726
10727 fi
10728
10729
10730           eval "$wx_cv_use_commandlinkbutton"
10731
10732           if test x"$enablestring" = xdisable; then
10733             if test $wxUSE_COMMANDLINKBUTTON = no; then
10734               result=yes
10735             else
10736               result=no
10737             fi
10738           else
10739             result=$wxUSE_COMMANDLINKBUTTON
10740           fi
10741
10742           { echo "$as_me:$LINENO: result: $result" >&5
10743 echo "${ECHO_T}$result" >&6; }
10744
10745
10746           enablestring=
10747           defaultval=$wxUSE_ALL_FEATURES
10748           if test -z "$defaultval"; then
10749               if test x"$enablestring" = xdisable; then
10750                   defaultval=yes
10751               else
10752                   defaultval=no
10753               fi
10754           fi
10755
10756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10757 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10758           # Check whether --enable-dataviewctrl was given.
10759 if test "${enable_dataviewctrl+set}" = set; then
10760   enableval=$enable_dataviewctrl;
10761                           if test "$enableval" = yes; then
10762                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10763                           else
10764                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10765                           fi
10766
10767 else
10768
10769                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10770
10771 fi
10772
10773
10774           eval "$wx_cv_use_dataviewctrl"
10775
10776           if test x"$enablestring" = xdisable; then
10777             if test $wxUSE_DATAVIEWCTRL = no; then
10778               result=yes
10779             else
10780               result=no
10781             fi
10782           else
10783             result=$wxUSE_DATAVIEWCTRL
10784           fi
10785
10786           { echo "$as_me:$LINENO: result: $result" >&5
10787 echo "${ECHO_T}$result" >&6; }
10788
10789
10790           enablestring=
10791           defaultval=$wxUSE_ALL_FEATURES
10792           if test -z "$defaultval"; then
10793               if test x"$enablestring" = xdisable; then
10794                   defaultval=yes
10795               else
10796                   defaultval=no
10797               fi
10798           fi
10799
10800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10801 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10802           # Check whether --enable-datepick was given.
10803 if test "${enable_datepick+set}" = set; then
10804   enableval=$enable_datepick;
10805                           if test "$enableval" = yes; then
10806                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10807                           else
10808                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10809                           fi
10810
10811 else
10812
10813                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10814
10815 fi
10816
10817
10818           eval "$wx_cv_use_datepick"
10819
10820           if test x"$enablestring" = xdisable; then
10821             if test $wxUSE_DATEPICKCTRL = no; then
10822               result=yes
10823             else
10824               result=no
10825             fi
10826           else
10827             result=$wxUSE_DATEPICKCTRL
10828           fi
10829
10830           { echo "$as_me:$LINENO: result: $result" >&5
10831 echo "${ECHO_T}$result" >&6; }
10832
10833
10834           enablestring=
10835           defaultval=$wxUSE_ALL_FEATURES
10836           if test -z "$defaultval"; then
10837               if test x"$enablestring" = xdisable; then
10838                   defaultval=yes
10839               else
10840                   defaultval=no
10841               fi
10842           fi
10843
10844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10845 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10846           # Check whether --enable-detect_sm was given.
10847 if test "${enable_detect_sm+set}" = set; then
10848   enableval=$enable_detect_sm;
10849                           if test "$enableval" = yes; then
10850                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10851                           else
10852                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10853                           fi
10854
10855 else
10856
10857                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10858
10859 fi
10860
10861
10862           eval "$wx_cv_use_detect_sm"
10863
10864           if test x"$enablestring" = xdisable; then
10865             if test $wxUSE_DETECT_SM = no; then
10866               result=yes
10867             else
10868               result=no
10869             fi
10870           else
10871             result=$wxUSE_DETECT_SM
10872           fi
10873
10874           { echo "$as_me:$LINENO: result: $result" >&5
10875 echo "${ECHO_T}$result" >&6; }
10876
10877
10878           enablestring=
10879           defaultval=$wxUSE_ALL_FEATURES
10880           if test -z "$defaultval"; then
10881               if test x"$enablestring" = xdisable; then
10882                   defaultval=yes
10883               else
10884                   defaultval=no
10885               fi
10886           fi
10887
10888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10889 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10890           # Check whether --enable-dirpicker was given.
10891 if test "${enable_dirpicker+set}" = set; then
10892   enableval=$enable_dirpicker;
10893                           if test "$enableval" = yes; then
10894                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10895                           else
10896                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10897                           fi
10898
10899 else
10900
10901                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10902
10903 fi
10904
10905
10906           eval "$wx_cv_use_dirpicker"
10907
10908           if test x"$enablestring" = xdisable; then
10909             if test $wxUSE_DIRPICKERCTRL = no; then
10910               result=yes
10911             else
10912               result=no
10913             fi
10914           else
10915             result=$wxUSE_DIRPICKERCTRL
10916           fi
10917
10918           { echo "$as_me:$LINENO: result: $result" >&5
10919 echo "${ECHO_T}$result" >&6; }
10920
10921
10922           enablestring=
10923           defaultval=$wxUSE_ALL_FEATURES
10924           if test -z "$defaultval"; then
10925               if test x"$enablestring" = xdisable; then
10926                   defaultval=yes
10927               else
10928                   defaultval=no
10929               fi
10930           fi
10931
10932           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10933 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10934           # Check whether --enable-display was given.
10935 if test "${enable_display+set}" = set; then
10936   enableval=$enable_display;
10937                           if test "$enableval" = yes; then
10938                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10939                           else
10940                             wx_cv_use_display='wxUSE_DISPLAY=no'
10941                           fi
10942
10943 else
10944
10945                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10946
10947 fi
10948
10949
10950           eval "$wx_cv_use_display"
10951
10952           if test x"$enablestring" = xdisable; then
10953             if test $wxUSE_DISPLAY = no; then
10954               result=yes
10955             else
10956               result=no
10957             fi
10958           else
10959             result=$wxUSE_DISPLAY
10960           fi
10961
10962           { echo "$as_me:$LINENO: result: $result" >&5
10963 echo "${ECHO_T}$result" >&6; }
10964
10965
10966           enablestring=
10967           defaultval=$wxUSE_ALL_FEATURES
10968           if test -z "$defaultval"; then
10969               if test x"$enablestring" = xdisable; then
10970                   defaultval=yes
10971               else
10972                   defaultval=no
10973               fi
10974           fi
10975
10976           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10977 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10978           # Check whether --enable-editablebox was given.
10979 if test "${enable_editablebox+set}" = set; then
10980   enableval=$enable_editablebox;
10981                           if test "$enableval" = yes; then
10982                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10983                           else
10984                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10985                           fi
10986
10987 else
10988
10989                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10990
10991 fi
10992
10993
10994           eval "$wx_cv_use_editablebox"
10995
10996           if test x"$enablestring" = xdisable; then
10997             if test $wxUSE_EDITABLELISTBOX = no; then
10998               result=yes
10999             else
11000               result=no
11001             fi
11002           else
11003             result=$wxUSE_EDITABLELISTBOX
11004           fi
11005
11006           { echo "$as_me:$LINENO: result: $result" >&5
11007 echo "${ECHO_T}$result" >&6; }
11008
11009
11010           enablestring=
11011           defaultval=$wxUSE_ALL_FEATURES
11012           if test -z "$defaultval"; then
11013               if test x"$enablestring" = xdisable; then
11014                   defaultval=yes
11015               else
11016                   defaultval=no
11017               fi
11018           fi
11019
11020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11021 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11022           # Check whether --enable-filectrl was given.
11023 if test "${enable_filectrl+set}" = set; then
11024   enableval=$enable_filectrl;
11025                           if test "$enableval" = yes; then
11026                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11027                           else
11028                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11029                           fi
11030
11031 else
11032
11033                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11034
11035 fi
11036
11037
11038           eval "$wx_cv_use_filectrl"
11039
11040           if test x"$enablestring" = xdisable; then
11041             if test $wxUSE_FILECTRL = no; then
11042               result=yes
11043             else
11044               result=no
11045             fi
11046           else
11047             result=$wxUSE_FILECTRL
11048           fi
11049
11050           { echo "$as_me:$LINENO: result: $result" >&5
11051 echo "${ECHO_T}$result" >&6; }
11052
11053
11054           enablestring=
11055           defaultval=$wxUSE_ALL_FEATURES
11056           if test -z "$defaultval"; then
11057               if test x"$enablestring" = xdisable; then
11058                   defaultval=yes
11059               else
11060                   defaultval=no
11061               fi
11062           fi
11063
11064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11065 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11066           # Check whether --enable-filepicker was given.
11067 if test "${enable_filepicker+set}" = set; then
11068   enableval=$enable_filepicker;
11069                           if test "$enableval" = yes; then
11070                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11071                           else
11072                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11073                           fi
11074
11075 else
11076
11077                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11078
11079 fi
11080
11081
11082           eval "$wx_cv_use_filepicker"
11083
11084           if test x"$enablestring" = xdisable; then
11085             if test $wxUSE_FILEPICKERCTRL = no; then
11086               result=yes
11087             else
11088               result=no
11089             fi
11090           else
11091             result=$wxUSE_FILEPICKERCTRL
11092           fi
11093
11094           { echo "$as_me:$LINENO: result: $result" >&5
11095 echo "${ECHO_T}$result" >&6; }
11096
11097
11098           enablestring=
11099           defaultval=$wxUSE_ALL_FEATURES
11100           if test -z "$defaultval"; then
11101               if test x"$enablestring" = xdisable; then
11102                   defaultval=yes
11103               else
11104                   defaultval=no
11105               fi
11106           fi
11107
11108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11109 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11110           # Check whether --enable-fontpicker was given.
11111 if test "${enable_fontpicker+set}" = set; then
11112   enableval=$enable_fontpicker;
11113                           if test "$enableval" = yes; then
11114                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11115                           else
11116                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11117                           fi
11118
11119 else
11120
11121                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11122
11123 fi
11124
11125
11126           eval "$wx_cv_use_fontpicker"
11127
11128           if test x"$enablestring" = xdisable; then
11129             if test $wxUSE_FONTPICKERCTRL = no; then
11130               result=yes
11131             else
11132               result=no
11133             fi
11134           else
11135             result=$wxUSE_FONTPICKERCTRL
11136           fi
11137
11138           { echo "$as_me:$LINENO: result: $result" >&5
11139 echo "${ECHO_T}$result" >&6; }
11140
11141
11142           enablestring=
11143           defaultval=$wxUSE_ALL_FEATURES
11144           if test -z "$defaultval"; then
11145               if test x"$enablestring" = xdisable; then
11146                   defaultval=yes
11147               else
11148                   defaultval=no
11149               fi
11150           fi
11151
11152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11153 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11154           # Check whether --enable-gauge was given.
11155 if test "${enable_gauge+set}" = set; then
11156   enableval=$enable_gauge;
11157                           if test "$enableval" = yes; then
11158                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11159                           else
11160                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11161                           fi
11162
11163 else
11164
11165                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11166
11167 fi
11168
11169
11170           eval "$wx_cv_use_gauge"
11171
11172           if test x"$enablestring" = xdisable; then
11173             if test $wxUSE_GAUGE = no; then
11174               result=yes
11175             else
11176               result=no
11177             fi
11178           else
11179             result=$wxUSE_GAUGE
11180           fi
11181
11182           { echo "$as_me:$LINENO: result: $result" >&5
11183 echo "${ECHO_T}$result" >&6; }
11184
11185
11186           enablestring=
11187           defaultval=$wxUSE_ALL_FEATURES
11188           if test -z "$defaultval"; then
11189               if test x"$enablestring" = xdisable; then
11190                   defaultval=yes
11191               else
11192                   defaultval=no
11193               fi
11194           fi
11195
11196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11197 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11198           # Check whether --enable-grid was given.
11199 if test "${enable_grid+set}" = set; then
11200   enableval=$enable_grid;
11201                           if test "$enableval" = yes; then
11202                             wx_cv_use_grid='wxUSE_GRID=yes'
11203                           else
11204                             wx_cv_use_grid='wxUSE_GRID=no'
11205                           fi
11206
11207 else
11208
11209                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11210
11211 fi
11212
11213
11214           eval "$wx_cv_use_grid"
11215
11216           if test x"$enablestring" = xdisable; then
11217             if test $wxUSE_GRID = no; then
11218               result=yes
11219             else
11220               result=no
11221             fi
11222           else
11223             result=$wxUSE_GRID
11224           fi
11225
11226           { echo "$as_me:$LINENO: result: $result" >&5
11227 echo "${ECHO_T}$result" >&6; }
11228
11229
11230           enablestring=
11231           defaultval=$wxUSE_ALL_FEATURES
11232           if test -z "$defaultval"; then
11233               if test x"$enablestring" = xdisable; then
11234                   defaultval=yes
11235               else
11236                   defaultval=no
11237               fi
11238           fi
11239
11240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11241 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11242           # Check whether --enable-headerctrl was given.
11243 if test "${enable_headerctrl+set}" = set; then
11244   enableval=$enable_headerctrl;
11245                           if test "$enableval" = yes; then
11246                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11247                           else
11248                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11249                           fi
11250
11251 else
11252
11253                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11254
11255 fi
11256
11257
11258           eval "$wx_cv_use_headerctrl"
11259
11260           if test x"$enablestring" = xdisable; then
11261             if test $wxUSE_HEADERCTRL = no; then
11262               result=yes
11263             else
11264               result=no
11265             fi
11266           else
11267             result=$wxUSE_HEADERCTRL
11268           fi
11269
11270           { echo "$as_me:$LINENO: result: $result" >&5
11271 echo "${ECHO_T}$result" >&6; }
11272
11273
11274           enablestring=
11275           defaultval=$wxUSE_ALL_FEATURES
11276           if test -z "$defaultval"; then
11277               if test x"$enablestring" = xdisable; then
11278                   defaultval=yes
11279               else
11280                   defaultval=no
11281               fi
11282           fi
11283
11284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11285 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11286           # Check whether --enable-hyperlink was given.
11287 if test "${enable_hyperlink+set}" = set; then
11288   enableval=$enable_hyperlink;
11289                           if test "$enableval" = yes; then
11290                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11291                           else
11292                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11293                           fi
11294
11295 else
11296
11297                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11298
11299 fi
11300
11301
11302           eval "$wx_cv_use_hyperlink"
11303
11304           if test x"$enablestring" = xdisable; then
11305             if test $wxUSE_HYPERLINKCTRL = no; then
11306               result=yes
11307             else
11308               result=no
11309             fi
11310           else
11311             result=$wxUSE_HYPERLINKCTRL
11312           fi
11313
11314           { echo "$as_me:$LINENO: result: $result" >&5
11315 echo "${ECHO_T}$result" >&6; }
11316
11317
11318           enablestring=
11319           defaultval=$wxUSE_ALL_FEATURES
11320           if test -z "$defaultval"; then
11321               if test x"$enablestring" = xdisable; then
11322                   defaultval=yes
11323               else
11324                   defaultval=no
11325               fi
11326           fi
11327
11328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11329 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11330           # Check whether --enable-imaglist was given.
11331 if test "${enable_imaglist+set}" = set; then
11332   enableval=$enable_imaglist;
11333                           if test "$enableval" = yes; then
11334                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11335                           else
11336                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11337                           fi
11338
11339 else
11340
11341                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11342
11343 fi
11344
11345
11346           eval "$wx_cv_use_imaglist"
11347
11348           if test x"$enablestring" = xdisable; then
11349             if test $wxUSE_IMAGLIST = no; then
11350               result=yes
11351             else
11352               result=no
11353             fi
11354           else
11355             result=$wxUSE_IMAGLIST
11356           fi
11357
11358           { echo "$as_me:$LINENO: result: $result" >&5
11359 echo "${ECHO_T}$result" >&6; }
11360
11361
11362           enablestring=
11363           defaultval=$wxUSE_ALL_FEATURES
11364           if test -z "$defaultval"; then
11365               if test x"$enablestring" = xdisable; then
11366                   defaultval=yes
11367               else
11368                   defaultval=no
11369               fi
11370           fi
11371
11372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11373 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11374           # Check whether --enable-infobar was given.
11375 if test "${enable_infobar+set}" = set; then
11376   enableval=$enable_infobar;
11377                           if test "$enableval" = yes; then
11378                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11379                           else
11380                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11381                           fi
11382
11383 else
11384
11385                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11386
11387 fi
11388
11389
11390           eval "$wx_cv_use_infobar"
11391
11392           if test x"$enablestring" = xdisable; then
11393             if test $wxUSE_INFOBAR = no; then
11394               result=yes
11395             else
11396               result=no
11397             fi
11398           else
11399             result=$wxUSE_INFOBAR
11400           fi
11401
11402           { echo "$as_me:$LINENO: result: $result" >&5
11403 echo "${ECHO_T}$result" >&6; }
11404
11405
11406           enablestring=
11407           defaultval=$wxUSE_ALL_FEATURES
11408           if test -z "$defaultval"; then
11409               if test x"$enablestring" = xdisable; then
11410                   defaultval=yes
11411               else
11412                   defaultval=no
11413               fi
11414           fi
11415
11416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11417 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11418           # Check whether --enable-listbook was given.
11419 if test "${enable_listbook+set}" = set; then
11420   enableval=$enable_listbook;
11421                           if test "$enableval" = yes; then
11422                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11423                           else
11424                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11425                           fi
11426
11427 else
11428
11429                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11430
11431 fi
11432
11433
11434           eval "$wx_cv_use_listbook"
11435
11436           if test x"$enablestring" = xdisable; then
11437             if test $wxUSE_LISTBOOK = no; then
11438               result=yes
11439             else
11440               result=no
11441             fi
11442           else
11443             result=$wxUSE_LISTBOOK
11444           fi
11445
11446           { echo "$as_me:$LINENO: result: $result" >&5
11447 echo "${ECHO_T}$result" >&6; }
11448
11449
11450           enablestring=
11451           defaultval=$wxUSE_ALL_FEATURES
11452           if test -z "$defaultval"; then
11453               if test x"$enablestring" = xdisable; then
11454                   defaultval=yes
11455               else
11456                   defaultval=no
11457               fi
11458           fi
11459
11460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11461 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11462           # Check whether --enable-listbox was given.
11463 if test "${enable_listbox+set}" = set; then
11464   enableval=$enable_listbox;
11465                           if test "$enableval" = yes; then
11466                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11467                           else
11468                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11469                           fi
11470
11471 else
11472
11473                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11474
11475 fi
11476
11477
11478           eval "$wx_cv_use_listbox"
11479
11480           if test x"$enablestring" = xdisable; then
11481             if test $wxUSE_LISTBOX = no; then
11482               result=yes
11483             else
11484               result=no
11485             fi
11486           else
11487             result=$wxUSE_LISTBOX
11488           fi
11489
11490           { echo "$as_me:$LINENO: result: $result" >&5
11491 echo "${ECHO_T}$result" >&6; }
11492
11493
11494           enablestring=
11495           defaultval=$wxUSE_ALL_FEATURES
11496           if test -z "$defaultval"; then
11497               if test x"$enablestring" = xdisable; then
11498                   defaultval=yes
11499               else
11500                   defaultval=no
11501               fi
11502           fi
11503
11504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11505 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11506           # Check whether --enable-listctrl was given.
11507 if test "${enable_listctrl+set}" = set; then
11508   enableval=$enable_listctrl;
11509                           if test "$enableval" = yes; then
11510                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11511                           else
11512                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11513                           fi
11514
11515 else
11516
11517                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11518
11519 fi
11520
11521
11522           eval "$wx_cv_use_listctrl"
11523
11524           if test x"$enablestring" = xdisable; then
11525             if test $wxUSE_LISTCTRL = no; then
11526               result=yes
11527             else
11528               result=no
11529             fi
11530           else
11531             result=$wxUSE_LISTCTRL
11532           fi
11533
11534           { echo "$as_me:$LINENO: result: $result" >&5
11535 echo "${ECHO_T}$result" >&6; }
11536
11537
11538           enablestring=
11539           defaultval=$wxUSE_ALL_FEATURES
11540           if test -z "$defaultval"; then
11541               if test x"$enablestring" = xdisable; then
11542                   defaultval=yes
11543               else
11544                   defaultval=no
11545               fi
11546           fi
11547
11548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11549 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11550           # Check whether --enable-notebook was given.
11551 if test "${enable_notebook+set}" = set; then
11552   enableval=$enable_notebook;
11553                           if test "$enableval" = yes; then
11554                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11555                           else
11556                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11557                           fi
11558
11559 else
11560
11561                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11562
11563 fi
11564
11565
11566           eval "$wx_cv_use_notebook"
11567
11568           if test x"$enablestring" = xdisable; then
11569             if test $wxUSE_NOTEBOOK = no; then
11570               result=yes
11571             else
11572               result=no
11573             fi
11574           else
11575             result=$wxUSE_NOTEBOOK
11576           fi
11577
11578           { echo "$as_me:$LINENO: result: $result" >&5
11579 echo "${ECHO_T}$result" >&6; }
11580
11581
11582           enablestring=
11583           defaultval=$wxUSE_ALL_FEATURES
11584           if test -z "$defaultval"; then
11585               if test x"$enablestring" = xdisable; then
11586                   defaultval=yes
11587               else
11588                   defaultval=no
11589               fi
11590           fi
11591
11592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11593 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11594           # Check whether --enable-notifmsg was given.
11595 if test "${enable_notifmsg+set}" = set; then
11596   enableval=$enable_notifmsg;
11597                           if test "$enableval" = yes; then
11598                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11599                           else
11600                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11601                           fi
11602
11603 else
11604
11605                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11606
11607 fi
11608
11609
11610           eval "$wx_cv_use_notifmsg"
11611
11612           if test x"$enablestring" = xdisable; then
11613             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11614               result=yes
11615             else
11616               result=no
11617             fi
11618           else
11619             result=$wxUSE_NOTIFICATION_MESSAGE
11620           fi
11621
11622           { echo "$as_me:$LINENO: result: $result" >&5
11623 echo "${ECHO_T}$result" >&6; }
11624
11625
11626           enablestring=
11627           defaultval=$wxUSE_ALL_FEATURES
11628           if test -z "$defaultval"; then
11629               if test x"$enablestring" = xdisable; then
11630                   defaultval=yes
11631               else
11632                   defaultval=no
11633               fi
11634           fi
11635
11636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11637 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11638           # Check whether --enable-odcombobox was given.
11639 if test "${enable_odcombobox+set}" = set; then
11640   enableval=$enable_odcombobox;
11641                           if test "$enableval" = yes; then
11642                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11643                           else
11644                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11645                           fi
11646
11647 else
11648
11649                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11650
11651 fi
11652
11653
11654           eval "$wx_cv_use_odcombobox"
11655
11656           if test x"$enablestring" = xdisable; then
11657             if test $wxUSE_ODCOMBOBOX = no; then
11658               result=yes
11659             else
11660               result=no
11661             fi
11662           else
11663             result=$wxUSE_ODCOMBOBOX
11664           fi
11665
11666           { echo "$as_me:$LINENO: result: $result" >&5
11667 echo "${ECHO_T}$result" >&6; }
11668
11669
11670           enablestring=
11671           defaultval=$wxUSE_ALL_FEATURES
11672           if test -z "$defaultval"; then
11673               if test x"$enablestring" = xdisable; then
11674                   defaultval=yes
11675               else
11676                   defaultval=no
11677               fi
11678           fi
11679
11680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11681 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11682           # Check whether --enable-popupwin was given.
11683 if test "${enable_popupwin+set}" = set; then
11684   enableval=$enable_popupwin;
11685                           if test "$enableval" = yes; then
11686                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11687                           else
11688                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11689                           fi
11690
11691 else
11692
11693                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11694
11695 fi
11696
11697
11698           eval "$wx_cv_use_popupwin"
11699
11700           if test x"$enablestring" = xdisable; then
11701             if test $wxUSE_POPUPWIN = no; then
11702               result=yes
11703             else
11704               result=no
11705             fi
11706           else
11707             result=$wxUSE_POPUPWIN
11708           fi
11709
11710           { echo "$as_me:$LINENO: result: $result" >&5
11711 echo "${ECHO_T}$result" >&6; }
11712
11713
11714           enablestring=
11715           defaultval=$wxUSE_ALL_FEATURES
11716           if test -z "$defaultval"; then
11717               if test x"$enablestring" = xdisable; then
11718                   defaultval=yes
11719               else
11720                   defaultval=no
11721               fi
11722           fi
11723
11724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11725 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11726           # Check whether --enable-radiobox was given.
11727 if test "${enable_radiobox+set}" = set; then
11728   enableval=$enable_radiobox;
11729                           if test "$enableval" = yes; then
11730                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11731                           else
11732                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11733                           fi
11734
11735 else
11736
11737                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11738
11739 fi
11740
11741
11742           eval "$wx_cv_use_radiobox"
11743
11744           if test x"$enablestring" = xdisable; then
11745             if test $wxUSE_RADIOBOX = no; then
11746               result=yes
11747             else
11748               result=no
11749             fi
11750           else
11751             result=$wxUSE_RADIOBOX
11752           fi
11753
11754           { echo "$as_me:$LINENO: result: $result" >&5
11755 echo "${ECHO_T}$result" >&6; }
11756
11757
11758           enablestring=
11759           defaultval=$wxUSE_ALL_FEATURES
11760           if test -z "$defaultval"; then
11761               if test x"$enablestring" = xdisable; then
11762                   defaultval=yes
11763               else
11764                   defaultval=no
11765               fi
11766           fi
11767
11768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11769 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11770           # Check whether --enable-radiobtn was given.
11771 if test "${enable_radiobtn+set}" = set; then
11772   enableval=$enable_radiobtn;
11773                           if test "$enableval" = yes; then
11774                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11775                           else
11776                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11777                           fi
11778
11779 else
11780
11781                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11782
11783 fi
11784
11785
11786           eval "$wx_cv_use_radiobtn"
11787
11788           if test x"$enablestring" = xdisable; then
11789             if test $wxUSE_RADIOBTN = no; then
11790               result=yes
11791             else
11792               result=no
11793             fi
11794           else
11795             result=$wxUSE_RADIOBTN
11796           fi
11797
11798           { echo "$as_me:$LINENO: result: $result" >&5
11799 echo "${ECHO_T}$result" >&6; }
11800
11801
11802           enablestring=
11803           defaultval=$wxUSE_ALL_FEATURES
11804           if test -z "$defaultval"; then
11805               if test x"$enablestring" = xdisable; then
11806                   defaultval=yes
11807               else
11808                   defaultval=no
11809               fi
11810           fi
11811
11812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11813 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11814           # Check whether --enable-richmsgdlg was given.
11815 if test "${enable_richmsgdlg+set}" = set; then
11816   enableval=$enable_richmsgdlg;
11817                           if test "$enableval" = yes; then
11818                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11819                           else
11820                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11821                           fi
11822
11823 else
11824
11825                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11826
11827 fi
11828
11829
11830           eval "$wx_cv_use_richmsgdlg"
11831
11832           if test x"$enablestring" = xdisable; then
11833             if test $wxUSE_RICHMSGDLG = no; then
11834               result=yes
11835             else
11836               result=no
11837             fi
11838           else
11839             result=$wxUSE_RICHMSGDLG
11840           fi
11841
11842           { echo "$as_me:$LINENO: result: $result" >&5
11843 echo "${ECHO_T}$result" >&6; }
11844
11845
11846           enablestring=
11847           defaultval=$wxUSE_ALL_FEATURES
11848           if test -z "$defaultval"; then
11849               if test x"$enablestring" = xdisable; then
11850                   defaultval=yes
11851               else
11852                   defaultval=no
11853               fi
11854           fi
11855
11856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11857 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11858           # Check whether --enable-rearrangectrl was given.
11859 if test "${enable_rearrangectrl+set}" = set; then
11860   enableval=$enable_rearrangectrl;
11861                           if test "$enableval" = yes; then
11862                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11863                           else
11864                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11865                           fi
11866
11867 else
11868
11869                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11870
11871 fi
11872
11873
11874           eval "$wx_cv_use_rearrangectrl"
11875
11876           if test x"$enablestring" = xdisable; then
11877             if test $wxUSE_REARRANGECTRL = no; then
11878               result=yes
11879             else
11880               result=no
11881             fi
11882           else
11883             result=$wxUSE_REARRANGECTRL
11884           fi
11885
11886           { echo "$as_me:$LINENO: result: $result" >&5
11887 echo "${ECHO_T}$result" >&6; }
11888
11889
11890           enablestring=
11891           defaultval=$wxUSE_ALL_FEATURES
11892           if test -z "$defaultval"; then
11893               if test x"$enablestring" = xdisable; then
11894                   defaultval=yes
11895               else
11896                   defaultval=no
11897               fi
11898           fi
11899
11900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11901 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11902           # Check whether --enable-sash was given.
11903 if test "${enable_sash+set}" = set; then
11904   enableval=$enable_sash;
11905                           if test "$enableval" = yes; then
11906                             wx_cv_use_sash='wxUSE_SASH=yes'
11907                           else
11908                             wx_cv_use_sash='wxUSE_SASH=no'
11909                           fi
11910
11911 else
11912
11913                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11914
11915 fi
11916
11917
11918           eval "$wx_cv_use_sash"
11919
11920           if test x"$enablestring" = xdisable; then
11921             if test $wxUSE_SASH = no; then
11922               result=yes
11923             else
11924               result=no
11925             fi
11926           else
11927             result=$wxUSE_SASH
11928           fi
11929
11930           { echo "$as_me:$LINENO: result: $result" >&5
11931 echo "${ECHO_T}$result" >&6; }
11932
11933
11934           enablestring=
11935           defaultval=$wxUSE_ALL_FEATURES
11936           if test -z "$defaultval"; then
11937               if test x"$enablestring" = xdisable; then
11938                   defaultval=yes
11939               else
11940                   defaultval=no
11941               fi
11942           fi
11943
11944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11945 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11946           # Check whether --enable-scrollbar was given.
11947 if test "${enable_scrollbar+set}" = set; then
11948   enableval=$enable_scrollbar;
11949                           if test "$enableval" = yes; then
11950                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11951                           else
11952                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11953                           fi
11954
11955 else
11956
11957                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11958
11959 fi
11960
11961
11962           eval "$wx_cv_use_scrollbar"
11963
11964           if test x"$enablestring" = xdisable; then
11965             if test $wxUSE_SCROLLBAR = no; then
11966               result=yes
11967             else
11968               result=no
11969             fi
11970           else
11971             result=$wxUSE_SCROLLBAR
11972           fi
11973
11974           { echo "$as_me:$LINENO: result: $result" >&5
11975 echo "${ECHO_T}$result" >&6; }
11976
11977
11978           enablestring=
11979           defaultval=$wxUSE_ALL_FEATURES
11980           if test -z "$defaultval"; then
11981               if test x"$enablestring" = xdisable; then
11982                   defaultval=yes
11983               else
11984                   defaultval=no
11985               fi
11986           fi
11987
11988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11989 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11990           # Check whether --enable-searchctrl was given.
11991 if test "${enable_searchctrl+set}" = set; then
11992   enableval=$enable_searchctrl;
11993                           if test "$enableval" = yes; then
11994                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11995                           else
11996                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11997                           fi
11998
11999 else
12000
12001                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12002
12003 fi
12004
12005
12006           eval "$wx_cv_use_searchctrl"
12007
12008           if test x"$enablestring" = xdisable; then
12009             if test $wxUSE_SEARCHCTRL = no; then
12010               result=yes
12011             else
12012               result=no
12013             fi
12014           else
12015             result=$wxUSE_SEARCHCTRL
12016           fi
12017
12018           { echo "$as_me:$LINENO: result: $result" >&5
12019 echo "${ECHO_T}$result" >&6; }
12020
12021
12022           enablestring=
12023           defaultval=$wxUSE_ALL_FEATURES
12024           if test -z "$defaultval"; then
12025               if test x"$enablestring" = xdisable; then
12026                   defaultval=yes
12027               else
12028                   defaultval=no
12029               fi
12030           fi
12031
12032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12033 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12034           # Check whether --enable-slider was given.
12035 if test "${enable_slider+set}" = set; then
12036   enableval=$enable_slider;
12037                           if test "$enableval" = yes; then
12038                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12039                           else
12040                             wx_cv_use_slider='wxUSE_SLIDER=no'
12041                           fi
12042
12043 else
12044
12045                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12046
12047 fi
12048
12049
12050           eval "$wx_cv_use_slider"
12051
12052           if test x"$enablestring" = xdisable; then
12053             if test $wxUSE_SLIDER = no; then
12054               result=yes
12055             else
12056               result=no
12057             fi
12058           else
12059             result=$wxUSE_SLIDER
12060           fi
12061
12062           { echo "$as_me:$LINENO: result: $result" >&5
12063 echo "${ECHO_T}$result" >&6; }
12064
12065
12066           enablestring=
12067           defaultval=$wxUSE_ALL_FEATURES
12068           if test -z "$defaultval"; then
12069               if test x"$enablestring" = xdisable; then
12070                   defaultval=yes
12071               else
12072                   defaultval=no
12073               fi
12074           fi
12075
12076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12077 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12078           # Check whether --enable-spinbtn was given.
12079 if test "${enable_spinbtn+set}" = set; then
12080   enableval=$enable_spinbtn;
12081                           if test "$enableval" = yes; then
12082                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12083                           else
12084                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12085                           fi
12086
12087 else
12088
12089                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12090
12091 fi
12092
12093
12094           eval "$wx_cv_use_spinbtn"
12095
12096           if test x"$enablestring" = xdisable; then
12097             if test $wxUSE_SPINBTN = no; then
12098               result=yes
12099             else
12100               result=no
12101             fi
12102           else
12103             result=$wxUSE_SPINBTN
12104           fi
12105
12106           { echo "$as_me:$LINENO: result: $result" >&5
12107 echo "${ECHO_T}$result" >&6; }
12108
12109
12110           enablestring=
12111           defaultval=$wxUSE_ALL_FEATURES
12112           if test -z "$defaultval"; then
12113               if test x"$enablestring" = xdisable; then
12114                   defaultval=yes
12115               else
12116                   defaultval=no
12117               fi
12118           fi
12119
12120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12121 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12122           # Check whether --enable-spinctrl was given.
12123 if test "${enable_spinctrl+set}" = set; then
12124   enableval=$enable_spinctrl;
12125                           if test "$enableval" = yes; then
12126                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12127                           else
12128                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12129                           fi
12130
12131 else
12132
12133                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12134
12135 fi
12136
12137
12138           eval "$wx_cv_use_spinctrl"
12139
12140           if test x"$enablestring" = xdisable; then
12141             if test $wxUSE_SPINCTRL = no; then
12142               result=yes
12143             else
12144               result=no
12145             fi
12146           else
12147             result=$wxUSE_SPINCTRL
12148           fi
12149
12150           { echo "$as_me:$LINENO: result: $result" >&5
12151 echo "${ECHO_T}$result" >&6; }
12152
12153
12154           enablestring=
12155           defaultval=$wxUSE_ALL_FEATURES
12156           if test -z "$defaultval"; then
12157               if test x"$enablestring" = xdisable; then
12158                   defaultval=yes
12159               else
12160                   defaultval=no
12161               fi
12162           fi
12163
12164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12165 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12166           # Check whether --enable-splitter was given.
12167 if test "${enable_splitter+set}" = set; then
12168   enableval=$enable_splitter;
12169                           if test "$enableval" = yes; then
12170                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12171                           else
12172                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12173                           fi
12174
12175 else
12176
12177                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12178
12179 fi
12180
12181
12182           eval "$wx_cv_use_splitter"
12183
12184           if test x"$enablestring" = xdisable; then
12185             if test $wxUSE_SPLITTER = no; then
12186               result=yes
12187             else
12188               result=no
12189             fi
12190           else
12191             result=$wxUSE_SPLITTER
12192           fi
12193
12194           { echo "$as_me:$LINENO: result: $result" >&5
12195 echo "${ECHO_T}$result" >&6; }
12196
12197
12198           enablestring=
12199           defaultval=$wxUSE_ALL_FEATURES
12200           if test -z "$defaultval"; then
12201               if test x"$enablestring" = xdisable; then
12202                   defaultval=yes
12203               else
12204                   defaultval=no
12205               fi
12206           fi
12207
12208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12209 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12210           # Check whether --enable-statbmp was given.
12211 if test "${enable_statbmp+set}" = set; then
12212   enableval=$enable_statbmp;
12213                           if test "$enableval" = yes; then
12214                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12215                           else
12216                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12217                           fi
12218
12219 else
12220
12221                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12222
12223 fi
12224
12225
12226           eval "$wx_cv_use_statbmp"
12227
12228           if test x"$enablestring" = xdisable; then
12229             if test $wxUSE_STATBMP = no; then
12230               result=yes
12231             else
12232               result=no
12233             fi
12234           else
12235             result=$wxUSE_STATBMP
12236           fi
12237
12238           { echo "$as_me:$LINENO: result: $result" >&5
12239 echo "${ECHO_T}$result" >&6; }
12240
12241
12242           enablestring=
12243           defaultval=$wxUSE_ALL_FEATURES
12244           if test -z "$defaultval"; then
12245               if test x"$enablestring" = xdisable; then
12246                   defaultval=yes
12247               else
12248                   defaultval=no
12249               fi
12250           fi
12251
12252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12253 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12254           # Check whether --enable-statbox was given.
12255 if test "${enable_statbox+set}" = set; then
12256   enableval=$enable_statbox;
12257                           if test "$enableval" = yes; then
12258                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12259                           else
12260                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12261                           fi
12262
12263 else
12264
12265                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12266
12267 fi
12268
12269
12270           eval "$wx_cv_use_statbox"
12271
12272           if test x"$enablestring" = xdisable; then
12273             if test $wxUSE_STATBOX = no; then
12274               result=yes
12275             else
12276               result=no
12277             fi
12278           else
12279             result=$wxUSE_STATBOX
12280           fi
12281
12282           { echo "$as_me:$LINENO: result: $result" >&5
12283 echo "${ECHO_T}$result" >&6; }
12284
12285
12286           enablestring=
12287           defaultval=$wxUSE_ALL_FEATURES
12288           if test -z "$defaultval"; then
12289               if test x"$enablestring" = xdisable; then
12290                   defaultval=yes
12291               else
12292                   defaultval=no
12293               fi
12294           fi
12295
12296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12297 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12298           # Check whether --enable-statline was given.
12299 if test "${enable_statline+set}" = set; then
12300   enableval=$enable_statline;
12301                           if test "$enableval" = yes; then
12302                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12303                           else
12304                             wx_cv_use_statline='wxUSE_STATLINE=no'
12305                           fi
12306
12307 else
12308
12309                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12310
12311 fi
12312
12313
12314           eval "$wx_cv_use_statline"
12315
12316           if test x"$enablestring" = xdisable; then
12317             if test $wxUSE_STATLINE = no; then
12318               result=yes
12319             else
12320               result=no
12321             fi
12322           else
12323             result=$wxUSE_STATLINE
12324           fi
12325
12326           { echo "$as_me:$LINENO: result: $result" >&5
12327 echo "${ECHO_T}$result" >&6; }
12328
12329
12330           enablestring=
12331           defaultval=$wxUSE_ALL_FEATURES
12332           if test -z "$defaultval"; then
12333               if test x"$enablestring" = xdisable; then
12334                   defaultval=yes
12335               else
12336                   defaultval=no
12337               fi
12338           fi
12339
12340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12341 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12342           # Check whether --enable-stattext was given.
12343 if test "${enable_stattext+set}" = set; then
12344   enableval=$enable_stattext;
12345                           if test "$enableval" = yes; then
12346                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12347                           else
12348                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12349                           fi
12350
12351 else
12352
12353                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12354
12355 fi
12356
12357
12358           eval "$wx_cv_use_stattext"
12359
12360           if test x"$enablestring" = xdisable; then
12361             if test $wxUSE_STATTEXT = no; then
12362               result=yes
12363             else
12364               result=no
12365             fi
12366           else
12367             result=$wxUSE_STATTEXT
12368           fi
12369
12370           { echo "$as_me:$LINENO: result: $result" >&5
12371 echo "${ECHO_T}$result" >&6; }
12372
12373
12374           enablestring=
12375           defaultval=$wxUSE_ALL_FEATURES
12376           if test -z "$defaultval"; then
12377               if test x"$enablestring" = xdisable; then
12378                   defaultval=yes
12379               else
12380                   defaultval=no
12381               fi
12382           fi
12383
12384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12385 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12386           # Check whether --enable-statusbar was given.
12387 if test "${enable_statusbar+set}" = set; then
12388   enableval=$enable_statusbar;
12389                           if test "$enableval" = yes; then
12390                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12391                           else
12392                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12393                           fi
12394
12395 else
12396
12397                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12398
12399 fi
12400
12401
12402           eval "$wx_cv_use_statusbar"
12403
12404           if test x"$enablestring" = xdisable; then
12405             if test $wxUSE_STATUSBAR = no; then
12406               result=yes
12407             else
12408               result=no
12409             fi
12410           else
12411             result=$wxUSE_STATUSBAR
12412           fi
12413
12414           { echo "$as_me:$LINENO: result: $result" >&5
12415 echo "${ECHO_T}$result" >&6; }
12416
12417
12418           enablestring=
12419           defaultval=$wxUSE_ALL_FEATURES
12420           if test -z "$defaultval"; then
12421               if test x"$enablestring" = xdisable; then
12422                   defaultval=yes
12423               else
12424                   defaultval=no
12425               fi
12426           fi
12427
12428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12429 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12430           # Check whether --enable-taskbaricon was given.
12431 if test "${enable_taskbaricon+set}" = set; then
12432   enableval=$enable_taskbaricon;
12433                           if test "$enableval" = yes; then
12434                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12435                           else
12436                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12437                           fi
12438
12439 else
12440
12441                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12442
12443 fi
12444
12445
12446           eval "$wx_cv_use_taskbaricon"
12447
12448           if test x"$enablestring" = xdisable; then
12449             if test $wxUSE_TASKBARICON = no; then
12450               result=yes
12451             else
12452               result=no
12453             fi
12454           else
12455             result=$wxUSE_TASKBARICON
12456           fi
12457
12458           { echo "$as_me:$LINENO: result: $result" >&5
12459 echo "${ECHO_T}$result" >&6; }
12460
12461
12462           enablestring=
12463           defaultval=$wxUSE_ALL_FEATURES
12464           if test -z "$defaultval"; then
12465               if test x"$enablestring" = xdisable; then
12466                   defaultval=yes
12467               else
12468                   defaultval=no
12469               fi
12470           fi
12471
12472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12473 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12474           # Check whether --enable-tbarnative was given.
12475 if test "${enable_tbarnative+set}" = set; then
12476   enableval=$enable_tbarnative;
12477                           if test "$enableval" = yes; then
12478                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12479                           else
12480                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12481                           fi
12482
12483 else
12484
12485                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12486
12487 fi
12488
12489
12490           eval "$wx_cv_use_tbarnative"
12491
12492           if test x"$enablestring" = xdisable; then
12493             if test $wxUSE_TOOLBAR_NATIVE = no; then
12494               result=yes
12495             else
12496               result=no
12497             fi
12498           else
12499             result=$wxUSE_TOOLBAR_NATIVE
12500           fi
12501
12502           { echo "$as_me:$LINENO: result: $result" >&5
12503 echo "${ECHO_T}$result" >&6; }
12504
12505
12506           enablestring=
12507           defaultval=$wxUSE_ALL_FEATURES
12508           if test -z "$defaultval"; then
12509               if test x"$enablestring" = xdisable; then
12510                   defaultval=yes
12511               else
12512                   defaultval=no
12513               fi
12514           fi
12515
12516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12517 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12518           # Check whether --enable-textctrl was given.
12519 if test "${enable_textctrl+set}" = set; then
12520   enableval=$enable_textctrl;
12521                           if test "$enableval" = yes; then
12522                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12523                           else
12524                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12525                           fi
12526
12527 else
12528
12529                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12530
12531 fi
12532
12533
12534           eval "$wx_cv_use_textctrl"
12535
12536           if test x"$enablestring" = xdisable; then
12537             if test $wxUSE_TEXTCTRL = no; then
12538               result=yes
12539             else
12540               result=no
12541             fi
12542           else
12543             result=$wxUSE_TEXTCTRL
12544           fi
12545
12546           { echo "$as_me:$LINENO: result: $result" >&5
12547 echo "${ECHO_T}$result" >&6; }
12548
12549
12550           enablestring=
12551           defaultval=$wxUSE_ALL_FEATURES
12552           if test -z "$defaultval"; then
12553               if test x"$enablestring" = xdisable; then
12554                   defaultval=yes
12555               else
12556                   defaultval=no
12557               fi
12558           fi
12559
12560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12561 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12562           # Check whether --enable-tipwindow was given.
12563 if test "${enable_tipwindow+set}" = set; then
12564   enableval=$enable_tipwindow;
12565                           if test "$enableval" = yes; then
12566                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12567                           else
12568                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12569                           fi
12570
12571 else
12572
12573                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12574
12575 fi
12576
12577
12578           eval "$wx_cv_use_tipwindow"
12579
12580           if test x"$enablestring" = xdisable; then
12581             if test $wxUSE_TIPWINDOW = no; then
12582               result=yes
12583             else
12584               result=no
12585             fi
12586           else
12587             result=$wxUSE_TIPWINDOW
12588           fi
12589
12590           { echo "$as_me:$LINENO: result: $result" >&5
12591 echo "${ECHO_T}$result" >&6; }
12592
12593
12594           enablestring=
12595           defaultval=$wxUSE_ALL_FEATURES
12596           if test -z "$defaultval"; then
12597               if test x"$enablestring" = xdisable; then
12598                   defaultval=yes
12599               else
12600                   defaultval=no
12601               fi
12602           fi
12603
12604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12605 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12606           # Check whether --enable-togglebtn was given.
12607 if test "${enable_togglebtn+set}" = set; then
12608   enableval=$enable_togglebtn;
12609                           if test "$enableval" = yes; then
12610                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12611                           else
12612                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12613                           fi
12614
12615 else
12616
12617                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12618
12619 fi
12620
12621
12622           eval "$wx_cv_use_togglebtn"
12623
12624           if test x"$enablestring" = xdisable; then
12625             if test $wxUSE_TOGGLEBTN = no; then
12626               result=yes
12627             else
12628               result=no
12629             fi
12630           else
12631             result=$wxUSE_TOGGLEBTN
12632           fi
12633
12634           { echo "$as_me:$LINENO: result: $result" >&5
12635 echo "${ECHO_T}$result" >&6; }
12636
12637
12638           enablestring=
12639           defaultval=$wxUSE_ALL_FEATURES
12640           if test -z "$defaultval"; then
12641               if test x"$enablestring" = xdisable; then
12642                   defaultval=yes
12643               else
12644                   defaultval=no
12645               fi
12646           fi
12647
12648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12649 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12650           # Check whether --enable-toolbar was given.
12651 if test "${enable_toolbar+set}" = set; then
12652   enableval=$enable_toolbar;
12653                           if test "$enableval" = yes; then
12654                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12655                           else
12656                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12657                           fi
12658
12659 else
12660
12661                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12662
12663 fi
12664
12665
12666           eval "$wx_cv_use_toolbar"
12667
12668           if test x"$enablestring" = xdisable; then
12669             if test $wxUSE_TOOLBAR = no; then
12670               result=yes
12671             else
12672               result=no
12673             fi
12674           else
12675             result=$wxUSE_TOOLBAR
12676           fi
12677
12678           { echo "$as_me:$LINENO: result: $result" >&5
12679 echo "${ECHO_T}$result" >&6; }
12680
12681
12682           enablestring=
12683           defaultval=$wxUSE_ALL_FEATURES
12684           if test -z "$defaultval"; then
12685               if test x"$enablestring" = xdisable; then
12686                   defaultval=yes
12687               else
12688                   defaultval=no
12689               fi
12690           fi
12691
12692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12693 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12694           # Check whether --enable-toolbook was given.
12695 if test "${enable_toolbook+set}" = set; then
12696   enableval=$enable_toolbook;
12697                           if test "$enableval" = yes; then
12698                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12699                           else
12700                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12701                           fi
12702
12703 else
12704
12705                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12706
12707 fi
12708
12709
12710           eval "$wx_cv_use_toolbook"
12711
12712           if test x"$enablestring" = xdisable; then
12713             if test $wxUSE_TOOLBOOK = no; then
12714               result=yes
12715             else
12716               result=no
12717             fi
12718           else
12719             result=$wxUSE_TOOLBOOK
12720           fi
12721
12722           { echo "$as_me:$LINENO: result: $result" >&5
12723 echo "${ECHO_T}$result" >&6; }
12724
12725
12726           enablestring=
12727           defaultval=$wxUSE_ALL_FEATURES
12728           if test -z "$defaultval"; then
12729               if test x"$enablestring" = xdisable; then
12730                   defaultval=yes
12731               else
12732                   defaultval=no
12733               fi
12734           fi
12735
12736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12737 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12738           # Check whether --enable-treebook was given.
12739 if test "${enable_treebook+set}" = set; then
12740   enableval=$enable_treebook;
12741                           if test "$enableval" = yes; then
12742                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12743                           else
12744                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12745                           fi
12746
12747 else
12748
12749                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12750
12751 fi
12752
12753
12754           eval "$wx_cv_use_treebook"
12755
12756           if test x"$enablestring" = xdisable; then
12757             if test $wxUSE_TREEBOOK = no; then
12758               result=yes
12759             else
12760               result=no
12761             fi
12762           else
12763             result=$wxUSE_TREEBOOK
12764           fi
12765
12766           { echo "$as_me:$LINENO: result: $result" >&5
12767 echo "${ECHO_T}$result" >&6; }
12768
12769
12770           enablestring=
12771           defaultval=$wxUSE_ALL_FEATURES
12772           if test -z "$defaultval"; then
12773               if test x"$enablestring" = xdisable; then
12774                   defaultval=yes
12775               else
12776                   defaultval=no
12777               fi
12778           fi
12779
12780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12781 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12782           # Check whether --enable-treectrl was given.
12783 if test "${enable_treectrl+set}" = set; then
12784   enableval=$enable_treectrl;
12785                           if test "$enableval" = yes; then
12786                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12787                           else
12788                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12789                           fi
12790
12791 else
12792
12793                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12794
12795 fi
12796
12797
12798           eval "$wx_cv_use_treectrl"
12799
12800           if test x"$enablestring" = xdisable; then
12801             if test $wxUSE_TREECTRL = no; then
12802               result=yes
12803             else
12804               result=no
12805             fi
12806           else
12807             result=$wxUSE_TREECTRL
12808           fi
12809
12810           { echo "$as_me:$LINENO: result: $result" >&5
12811 echo "${ECHO_T}$result" >&6; }
12812
12813
12814
12815
12816           enablestring=
12817           defaultval=$wxUSE_ALL_FEATURES
12818           if test -z "$defaultval"; then
12819               if test x"$enablestring" = xdisable; then
12820                   defaultval=yes
12821               else
12822                   defaultval=no
12823               fi
12824           fi
12825
12826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12827 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12828           # Check whether --enable-commondlg was given.
12829 if test "${enable_commondlg+set}" = set; then
12830   enableval=$enable_commondlg;
12831                           if test "$enableval" = yes; then
12832                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12833                           else
12834                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12835                           fi
12836
12837 else
12838
12839                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12840
12841 fi
12842
12843
12844           eval "$wx_cv_use_commondlg"
12845
12846           if test x"$enablestring" = xdisable; then
12847             if test $wxUSE_COMMONDLGS = no; then
12848               result=yes
12849             else
12850               result=no
12851             fi
12852           else
12853             result=$wxUSE_COMMONDLGS
12854           fi
12855
12856           { echo "$as_me:$LINENO: result: $result" >&5
12857 echo "${ECHO_T}$result" >&6; }
12858
12859
12860           enablestring=
12861           defaultval=$wxUSE_ALL_FEATURES
12862           if test -z "$defaultval"; then
12863               if test x"$enablestring" = xdisable; then
12864                   defaultval=yes
12865               else
12866                   defaultval=no
12867               fi
12868           fi
12869
12870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12871 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12872           # Check whether --enable-aboutdlg was given.
12873 if test "${enable_aboutdlg+set}" = set; then
12874   enableval=$enable_aboutdlg;
12875                           if test "$enableval" = yes; then
12876                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12877                           else
12878                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12879                           fi
12880
12881 else
12882
12883                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12884
12885 fi
12886
12887
12888           eval "$wx_cv_use_aboutdlg"
12889
12890           if test x"$enablestring" = xdisable; then
12891             if test $wxUSE_ABOUTDLG = no; then
12892               result=yes
12893             else
12894               result=no
12895             fi
12896           else
12897             result=$wxUSE_ABOUTDLG
12898           fi
12899
12900           { echo "$as_me:$LINENO: result: $result" >&5
12901 echo "${ECHO_T}$result" >&6; }
12902
12903
12904           enablestring=
12905           defaultval=$wxUSE_ALL_FEATURES
12906           if test -z "$defaultval"; then
12907               if test x"$enablestring" = xdisable; then
12908                   defaultval=yes
12909               else
12910                   defaultval=no
12911               fi
12912           fi
12913
12914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12915 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12916           # Check whether --enable-choicedlg was given.
12917 if test "${enable_choicedlg+set}" = set; then
12918   enableval=$enable_choicedlg;
12919                           if test "$enableval" = yes; then
12920                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12921                           else
12922                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12923                           fi
12924
12925 else
12926
12927                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12928
12929 fi
12930
12931
12932           eval "$wx_cv_use_choicedlg"
12933
12934           if test x"$enablestring" = xdisable; then
12935             if test $wxUSE_CHOICEDLG = no; then
12936               result=yes
12937             else
12938               result=no
12939             fi
12940           else
12941             result=$wxUSE_CHOICEDLG
12942           fi
12943
12944           { echo "$as_me:$LINENO: result: $result" >&5
12945 echo "${ECHO_T}$result" >&6; }
12946
12947
12948           enablestring=
12949           defaultval=$wxUSE_ALL_FEATURES
12950           if test -z "$defaultval"; then
12951               if test x"$enablestring" = xdisable; then
12952                   defaultval=yes
12953               else
12954                   defaultval=no
12955               fi
12956           fi
12957
12958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12959 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12960           # Check whether --enable-coldlg was given.
12961 if test "${enable_coldlg+set}" = set; then
12962   enableval=$enable_coldlg;
12963                           if test "$enableval" = yes; then
12964                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12965                           else
12966                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12967                           fi
12968
12969 else
12970
12971                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12972
12973 fi
12974
12975
12976           eval "$wx_cv_use_coldlg"
12977
12978           if test x"$enablestring" = xdisable; then
12979             if test $wxUSE_COLOURDLG = no; then
12980               result=yes
12981             else
12982               result=no
12983             fi
12984           else
12985             result=$wxUSE_COLOURDLG
12986           fi
12987
12988           { echo "$as_me:$LINENO: result: $result" >&5
12989 echo "${ECHO_T}$result" >&6; }
12990
12991
12992           enablestring=
12993           defaultval=$wxUSE_ALL_FEATURES
12994           if test -z "$defaultval"; then
12995               if test x"$enablestring" = xdisable; then
12996                   defaultval=yes
12997               else
12998                   defaultval=no
12999               fi
13000           fi
13001
13002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13003 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13004           # Check whether --enable-filedlg was given.
13005 if test "${enable_filedlg+set}" = set; then
13006   enableval=$enable_filedlg;
13007                           if test "$enableval" = yes; then
13008                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13009                           else
13010                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13011                           fi
13012
13013 else
13014
13015                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13016
13017 fi
13018
13019
13020           eval "$wx_cv_use_filedlg"
13021
13022           if test x"$enablestring" = xdisable; then
13023             if test $wxUSE_FILEDLG = no; then
13024               result=yes
13025             else
13026               result=no
13027             fi
13028           else
13029             result=$wxUSE_FILEDLG
13030           fi
13031
13032           { echo "$as_me:$LINENO: result: $result" >&5
13033 echo "${ECHO_T}$result" >&6; }
13034
13035
13036           enablestring=
13037           defaultval=$wxUSE_ALL_FEATURES
13038           if test -z "$defaultval"; then
13039               if test x"$enablestring" = xdisable; then
13040                   defaultval=yes
13041               else
13042                   defaultval=no
13043               fi
13044           fi
13045
13046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13047 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13048           # Check whether --enable-finddlg was given.
13049 if test "${enable_finddlg+set}" = set; then
13050   enableval=$enable_finddlg;
13051                           if test "$enableval" = yes; then
13052                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13053                           else
13054                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13055                           fi
13056
13057 else
13058
13059                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13060
13061 fi
13062
13063
13064           eval "$wx_cv_use_finddlg"
13065
13066           if test x"$enablestring" = xdisable; then
13067             if test $wxUSE_FINDREPLDLG = no; then
13068               result=yes
13069             else
13070               result=no
13071             fi
13072           else
13073             result=$wxUSE_FINDREPLDLG
13074           fi
13075
13076           { echo "$as_me:$LINENO: result: $result" >&5
13077 echo "${ECHO_T}$result" >&6; }
13078
13079
13080           enablestring=
13081           defaultval=$wxUSE_ALL_FEATURES
13082           if test -z "$defaultval"; then
13083               if test x"$enablestring" = xdisable; then
13084                   defaultval=yes
13085               else
13086                   defaultval=no
13087               fi
13088           fi
13089
13090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13091 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13092           # Check whether --enable-fontdlg was given.
13093 if test "${enable_fontdlg+set}" = set; then
13094   enableval=$enable_fontdlg;
13095                           if test "$enableval" = yes; then
13096                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13097                           else
13098                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13099                           fi
13100
13101 else
13102
13103                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13104
13105 fi
13106
13107
13108           eval "$wx_cv_use_fontdlg"
13109
13110           if test x"$enablestring" = xdisable; then
13111             if test $wxUSE_FONTDLG = no; then
13112               result=yes
13113             else
13114               result=no
13115             fi
13116           else
13117             result=$wxUSE_FONTDLG
13118           fi
13119
13120           { echo "$as_me:$LINENO: result: $result" >&5
13121 echo "${ECHO_T}$result" >&6; }
13122
13123
13124           enablestring=
13125           defaultval=$wxUSE_ALL_FEATURES
13126           if test -z "$defaultval"; then
13127               if test x"$enablestring" = xdisable; then
13128                   defaultval=yes
13129               else
13130                   defaultval=no
13131               fi
13132           fi
13133
13134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13135 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13136           # Check whether --enable-dirdlg was given.
13137 if test "${enable_dirdlg+set}" = set; then
13138   enableval=$enable_dirdlg;
13139                           if test "$enableval" = yes; then
13140                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13141                           else
13142                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13143                           fi
13144
13145 else
13146
13147                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13148
13149 fi
13150
13151
13152           eval "$wx_cv_use_dirdlg"
13153
13154           if test x"$enablestring" = xdisable; then
13155             if test $wxUSE_DIRDLG = no; then
13156               result=yes
13157             else
13158               result=no
13159             fi
13160           else
13161             result=$wxUSE_DIRDLG
13162           fi
13163
13164           { echo "$as_me:$LINENO: result: $result" >&5
13165 echo "${ECHO_T}$result" >&6; }
13166
13167
13168           enablestring=
13169           defaultval=$wxUSE_ALL_FEATURES
13170           if test -z "$defaultval"; then
13171               if test x"$enablestring" = xdisable; then
13172                   defaultval=yes
13173               else
13174                   defaultval=no
13175               fi
13176           fi
13177
13178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13179 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13180           # Check whether --enable-msgdlg was given.
13181 if test "${enable_msgdlg+set}" = set; then
13182   enableval=$enable_msgdlg;
13183                           if test "$enableval" = yes; then
13184                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13185                           else
13186                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13187                           fi
13188
13189 else
13190
13191                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13192
13193 fi
13194
13195
13196           eval "$wx_cv_use_msgdlg"
13197
13198           if test x"$enablestring" = xdisable; then
13199             if test $wxUSE_MSGDLG = no; then
13200               result=yes
13201             else
13202               result=no
13203             fi
13204           else
13205             result=$wxUSE_MSGDLG
13206           fi
13207
13208           { echo "$as_me:$LINENO: result: $result" >&5
13209 echo "${ECHO_T}$result" >&6; }
13210
13211
13212           enablestring=
13213           defaultval=$wxUSE_ALL_FEATURES
13214           if test -z "$defaultval"; then
13215               if test x"$enablestring" = xdisable; then
13216                   defaultval=yes
13217               else
13218                   defaultval=no
13219               fi
13220           fi
13221
13222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13223 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13224           # Check whether --enable-numberdlg was given.
13225 if test "${enable_numberdlg+set}" = set; then
13226   enableval=$enable_numberdlg;
13227                           if test "$enableval" = yes; then
13228                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13229                           else
13230                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13231                           fi
13232
13233 else
13234
13235                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13236
13237 fi
13238
13239
13240           eval "$wx_cv_use_numberdlg"
13241
13242           if test x"$enablestring" = xdisable; then
13243             if test $wxUSE_NUMBERDLG = no; then
13244               result=yes
13245             else
13246               result=no
13247             fi
13248           else
13249             result=$wxUSE_NUMBERDLG
13250           fi
13251
13252           { echo "$as_me:$LINENO: result: $result" >&5
13253 echo "${ECHO_T}$result" >&6; }
13254
13255
13256           enablestring=
13257           defaultval=$wxUSE_ALL_FEATURES
13258           if test -z "$defaultval"; then
13259               if test x"$enablestring" = xdisable; then
13260                   defaultval=yes
13261               else
13262                   defaultval=no
13263               fi
13264           fi
13265
13266           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13267 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13268           # Check whether --enable-splash was given.
13269 if test "${enable_splash+set}" = set; then
13270   enableval=$enable_splash;
13271                           if test "$enableval" = yes; then
13272                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13273                           else
13274                             wx_cv_use_splash='wxUSE_SPLASH=no'
13275                           fi
13276
13277 else
13278
13279                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13280
13281 fi
13282
13283
13284           eval "$wx_cv_use_splash"
13285
13286           if test x"$enablestring" = xdisable; then
13287             if test $wxUSE_SPLASH = no; then
13288               result=yes
13289             else
13290               result=no
13291             fi
13292           else
13293             result=$wxUSE_SPLASH
13294           fi
13295
13296           { echo "$as_me:$LINENO: result: $result" >&5
13297 echo "${ECHO_T}$result" >&6; }
13298
13299
13300           enablestring=
13301           defaultval=$wxUSE_ALL_FEATURES
13302           if test -z "$defaultval"; then
13303               if test x"$enablestring" = xdisable; then
13304                   defaultval=yes
13305               else
13306                   defaultval=no
13307               fi
13308           fi
13309
13310           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13311 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13312           # Check whether --enable-textdlg was given.
13313 if test "${enable_textdlg+set}" = set; then
13314   enableval=$enable_textdlg;
13315                           if test "$enableval" = yes; then
13316                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13317                           else
13318                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13319                           fi
13320
13321 else
13322
13323                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13324
13325 fi
13326
13327
13328           eval "$wx_cv_use_textdlg"
13329
13330           if test x"$enablestring" = xdisable; then
13331             if test $wxUSE_TEXTDLG = no; then
13332               result=yes
13333             else
13334               result=no
13335             fi
13336           else
13337             result=$wxUSE_TEXTDLG
13338           fi
13339
13340           { echo "$as_me:$LINENO: result: $result" >&5
13341 echo "${ECHO_T}$result" >&6; }
13342
13343
13344           enablestring=
13345           defaultval=$wxUSE_ALL_FEATURES
13346           if test -z "$defaultval"; then
13347               if test x"$enablestring" = xdisable; then
13348                   defaultval=yes
13349               else
13350                   defaultval=no
13351               fi
13352           fi
13353
13354           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13355 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13356           # Check whether --enable-tipdlg was given.
13357 if test "${enable_tipdlg+set}" = set; then
13358   enableval=$enable_tipdlg;
13359                           if test "$enableval" = yes; then
13360                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13361                           else
13362                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13363                           fi
13364
13365 else
13366
13367                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13368
13369 fi
13370
13371
13372           eval "$wx_cv_use_tipdlg"
13373
13374           if test x"$enablestring" = xdisable; then
13375             if test $wxUSE_STARTUP_TIPS = no; then
13376               result=yes
13377             else
13378               result=no
13379             fi
13380           else
13381             result=$wxUSE_STARTUP_TIPS
13382           fi
13383
13384           { echo "$as_me:$LINENO: result: $result" >&5
13385 echo "${ECHO_T}$result" >&6; }
13386
13387
13388           enablestring=
13389           defaultval=$wxUSE_ALL_FEATURES
13390           if test -z "$defaultval"; then
13391               if test x"$enablestring" = xdisable; then
13392                   defaultval=yes
13393               else
13394                   defaultval=no
13395               fi
13396           fi
13397
13398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13399 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13400           # Check whether --enable-progressdlg was given.
13401 if test "${enable_progressdlg+set}" = set; then
13402   enableval=$enable_progressdlg;
13403                           if test "$enableval" = yes; then
13404                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13405                           else
13406                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13407                           fi
13408
13409 else
13410
13411                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13412
13413 fi
13414
13415
13416           eval "$wx_cv_use_progressdlg"
13417
13418           if test x"$enablestring" = xdisable; then
13419             if test $wxUSE_PROGRESSDLG = no; then
13420               result=yes
13421             else
13422               result=no
13423             fi
13424           else
13425             result=$wxUSE_PROGRESSDLG
13426           fi
13427
13428           { echo "$as_me:$LINENO: result: $result" >&5
13429 echo "${ECHO_T}$result" >&6; }
13430
13431
13432           enablestring=
13433           defaultval=$wxUSE_ALL_FEATURES
13434           if test -z "$defaultval"; then
13435               if test x"$enablestring" = xdisable; then
13436                   defaultval=yes
13437               else
13438                   defaultval=no
13439               fi
13440           fi
13441
13442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13443 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13444           # Check whether --enable-wizarddlg was given.
13445 if test "${enable_wizarddlg+set}" = set; then
13446   enableval=$enable_wizarddlg;
13447                           if test "$enableval" = yes; then
13448                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13449                           else
13450                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13451                           fi
13452
13453 else
13454
13455                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13456
13457 fi
13458
13459
13460           eval "$wx_cv_use_wizarddlg"
13461
13462           if test x"$enablestring" = xdisable; then
13463             if test $wxUSE_WIZARDDLG = no; then
13464               result=yes
13465             else
13466               result=no
13467             fi
13468           else
13469             result=$wxUSE_WIZARDDLG
13470           fi
13471
13472           { echo "$as_me:$LINENO: result: $result" >&5
13473 echo "${ECHO_T}$result" >&6; }
13474
13475
13476
13477
13478           enablestring=
13479           defaultval=$wxUSE_ALL_FEATURES
13480           if test -z "$defaultval"; then
13481               if test x"$enablestring" = xdisable; then
13482                   defaultval=yes
13483               else
13484                   defaultval=no
13485               fi
13486           fi
13487
13488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13489 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13490           # Check whether --enable-menus was given.
13491 if test "${enable_menus+set}" = set; then
13492   enableval=$enable_menus;
13493                           if test "$enableval" = yes; then
13494                             wx_cv_use_menus='wxUSE_MENUS=yes'
13495                           else
13496                             wx_cv_use_menus='wxUSE_MENUS=no'
13497                           fi
13498
13499 else
13500
13501                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13502
13503 fi
13504
13505
13506           eval "$wx_cv_use_menus"
13507
13508           if test x"$enablestring" = xdisable; then
13509             if test $wxUSE_MENUS = no; then
13510               result=yes
13511             else
13512               result=no
13513             fi
13514           else
13515             result=$wxUSE_MENUS
13516           fi
13517
13518           { echo "$as_me:$LINENO: result: $result" >&5
13519 echo "${ECHO_T}$result" >&6; }
13520
13521
13522           enablestring=
13523           defaultval=$wxUSE_ALL_FEATURES
13524           if test -z "$defaultval"; then
13525               if test x"$enablestring" = xdisable; then
13526                   defaultval=yes
13527               else
13528                   defaultval=no
13529               fi
13530           fi
13531
13532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13533 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13534           # Check whether --enable-miniframe was given.
13535 if test "${enable_miniframe+set}" = set; then
13536   enableval=$enable_miniframe;
13537                           if test "$enableval" = yes; then
13538                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13539                           else
13540                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13541                           fi
13542
13543 else
13544
13545                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13546
13547 fi
13548
13549
13550           eval "$wx_cv_use_miniframe"
13551
13552           if test x"$enablestring" = xdisable; then
13553             if test $wxUSE_MINIFRAME = no; then
13554               result=yes
13555             else
13556               result=no
13557             fi
13558           else
13559             result=$wxUSE_MINIFRAME
13560           fi
13561
13562           { echo "$as_me:$LINENO: result: $result" >&5
13563 echo "${ECHO_T}$result" >&6; }
13564
13565
13566           enablestring=
13567           defaultval=$wxUSE_ALL_FEATURES
13568           if test -z "$defaultval"; then
13569               if test x"$enablestring" = xdisable; then
13570                   defaultval=yes
13571               else
13572                   defaultval=no
13573               fi
13574           fi
13575
13576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13577 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13578           # Check whether --enable-tooltips was given.
13579 if test "${enable_tooltips+set}" = set; then
13580   enableval=$enable_tooltips;
13581                           if test "$enableval" = yes; then
13582                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13583                           else
13584                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13585                           fi
13586
13587 else
13588
13589                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13590
13591 fi
13592
13593
13594           eval "$wx_cv_use_tooltips"
13595
13596           if test x"$enablestring" = xdisable; then
13597             if test $wxUSE_TOOLTIPS = no; then
13598               result=yes
13599             else
13600               result=no
13601             fi
13602           else
13603             result=$wxUSE_TOOLTIPS
13604           fi
13605
13606           { echo "$as_me:$LINENO: result: $result" >&5
13607 echo "${ECHO_T}$result" >&6; }
13608
13609
13610           enablestring=
13611           defaultval=$wxUSE_ALL_FEATURES
13612           if test -z "$defaultval"; then
13613               if test x"$enablestring" = xdisable; then
13614                   defaultval=yes
13615               else
13616                   defaultval=no
13617               fi
13618           fi
13619
13620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13621 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13622           # Check whether --enable-splines was given.
13623 if test "${enable_splines+set}" = set; then
13624   enableval=$enable_splines;
13625                           if test "$enableval" = yes; then
13626                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13627                           else
13628                             wx_cv_use_splines='wxUSE_SPLINES=no'
13629                           fi
13630
13631 else
13632
13633                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13634
13635 fi
13636
13637
13638           eval "$wx_cv_use_splines"
13639
13640           if test x"$enablestring" = xdisable; then
13641             if test $wxUSE_SPLINES = no; then
13642               result=yes
13643             else
13644               result=no
13645             fi
13646           else
13647             result=$wxUSE_SPLINES
13648           fi
13649
13650           { echo "$as_me:$LINENO: result: $result" >&5
13651 echo "${ECHO_T}$result" >&6; }
13652
13653
13654           enablestring=
13655           defaultval=$wxUSE_ALL_FEATURES
13656           if test -z "$defaultval"; then
13657               if test x"$enablestring" = xdisable; then
13658                   defaultval=yes
13659               else
13660                   defaultval=no
13661               fi
13662           fi
13663
13664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13665 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13666           # Check whether --enable-mousewheel was given.
13667 if test "${enable_mousewheel+set}" = set; then
13668   enableval=$enable_mousewheel;
13669                           if test "$enableval" = yes; then
13670                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13671                           else
13672                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13673                           fi
13674
13675 else
13676
13677                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13678
13679 fi
13680
13681
13682           eval "$wx_cv_use_mousewheel"
13683
13684           if test x"$enablestring" = xdisable; then
13685             if test $wxUSE_MOUSEWHEEL = no; then
13686               result=yes
13687             else
13688               result=no
13689             fi
13690           else
13691             result=$wxUSE_MOUSEWHEEL
13692           fi
13693
13694           { echo "$as_me:$LINENO: result: $result" >&5
13695 echo "${ECHO_T}$result" >&6; }
13696
13697
13698           enablestring=
13699           defaultval=$wxUSE_ALL_FEATURES
13700           if test -z "$defaultval"; then
13701               if test x"$enablestring" = xdisable; then
13702                   defaultval=yes
13703               else
13704                   defaultval=no
13705               fi
13706           fi
13707
13708           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13709 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13710           # Check whether --enable-validators was given.
13711 if test "${enable_validators+set}" = set; then
13712   enableval=$enable_validators;
13713                           if test "$enableval" = yes; then
13714                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13715                           else
13716                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13717                           fi
13718
13719 else
13720
13721                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13722
13723 fi
13724
13725
13726           eval "$wx_cv_use_validators"
13727
13728           if test x"$enablestring" = xdisable; then
13729             if test $wxUSE_VALIDATORS = no; then
13730               result=yes
13731             else
13732               result=no
13733             fi
13734           else
13735             result=$wxUSE_VALIDATORS
13736           fi
13737
13738           { echo "$as_me:$LINENO: result: $result" >&5
13739 echo "${ECHO_T}$result" >&6; }
13740
13741
13742           enablestring=
13743           defaultval=$wxUSE_ALL_FEATURES
13744           if test -z "$defaultval"; then
13745               if test x"$enablestring" = xdisable; then
13746                   defaultval=yes
13747               else
13748                   defaultval=no
13749               fi
13750           fi
13751
13752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13753 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13754           # Check whether --enable-busyinfo was given.
13755 if test "${enable_busyinfo+set}" = set; then
13756   enableval=$enable_busyinfo;
13757                           if test "$enableval" = yes; then
13758                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13759                           else
13760                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13761                           fi
13762
13763 else
13764
13765                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13766
13767 fi
13768
13769
13770           eval "$wx_cv_use_busyinfo"
13771
13772           if test x"$enablestring" = xdisable; then
13773             if test $wxUSE_BUSYINFO = no; then
13774               result=yes
13775             else
13776               result=no
13777             fi
13778           else
13779             result=$wxUSE_BUSYINFO
13780           fi
13781
13782           { echo "$as_me:$LINENO: result: $result" >&5
13783 echo "${ECHO_T}$result" >&6; }
13784
13785
13786           enablestring=
13787           defaultval=$wxUSE_ALL_FEATURES
13788           if test -z "$defaultval"; then
13789               if test x"$enablestring" = xdisable; then
13790                   defaultval=yes
13791               else
13792                   defaultval=no
13793               fi
13794           fi
13795
13796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13797 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13798           # Check whether --enable-joystick was given.
13799 if test "${enable_joystick+set}" = set; then
13800   enableval=$enable_joystick;
13801                           if test "$enableval" = yes; then
13802                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13803                           else
13804                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13805                           fi
13806
13807 else
13808
13809                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13810
13811 fi
13812
13813
13814           eval "$wx_cv_use_joystick"
13815
13816           if test x"$enablestring" = xdisable; then
13817             if test $wxUSE_JOYSTICK = no; then
13818               result=yes
13819             else
13820               result=no
13821             fi
13822           else
13823             result=$wxUSE_JOYSTICK
13824           fi
13825
13826           { echo "$as_me:$LINENO: result: $result" >&5
13827 echo "${ECHO_T}$result" >&6; }
13828
13829
13830           enablestring=
13831           defaultval=$wxUSE_ALL_FEATURES
13832           if test -z "$defaultval"; then
13833               if test x"$enablestring" = xdisable; then
13834                   defaultval=yes
13835               else
13836                   defaultval=no
13837               fi
13838           fi
13839
13840           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13841 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13842           # Check whether --enable-metafile was given.
13843 if test "${enable_metafile+set}" = set; then
13844   enableval=$enable_metafile;
13845                           if test "$enableval" = yes; then
13846                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13847                           else
13848                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13849                           fi
13850
13851 else
13852
13853                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13854
13855 fi
13856
13857
13858           eval "$wx_cv_use_metafile"
13859
13860           if test x"$enablestring" = xdisable; then
13861             if test $wxUSE_METAFILE = no; then
13862               result=yes
13863             else
13864               result=no
13865             fi
13866           else
13867             result=$wxUSE_METAFILE
13868           fi
13869
13870           { echo "$as_me:$LINENO: result: $result" >&5
13871 echo "${ECHO_T}$result" >&6; }
13872
13873
13874           enablestring=
13875           defaultval=$wxUSE_ALL_FEATURES
13876           if test -z "$defaultval"; then
13877               if test x"$enablestring" = xdisable; then
13878                   defaultval=yes
13879               else
13880                   defaultval=no
13881               fi
13882           fi
13883
13884           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13885 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13886           # Check whether --enable-dragimage was given.
13887 if test "${enable_dragimage+set}" = set; then
13888   enableval=$enable_dragimage;
13889                           if test "$enableval" = yes; then
13890                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13891                           else
13892                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13893                           fi
13894
13895 else
13896
13897                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13898
13899 fi
13900
13901
13902           eval "$wx_cv_use_dragimage"
13903
13904           if test x"$enablestring" = xdisable; then
13905             if test $wxUSE_DRAGIMAGE = no; then
13906               result=yes
13907             else
13908               result=no
13909             fi
13910           else
13911             result=$wxUSE_DRAGIMAGE
13912           fi
13913
13914           { echo "$as_me:$LINENO: result: $result" >&5
13915 echo "${ECHO_T}$result" >&6; }
13916
13917
13918           enablestring=
13919           defaultval=$wxUSE_ALL_FEATURES
13920           if test -z "$defaultval"; then
13921               if test x"$enablestring" = xdisable; then
13922                   defaultval=yes
13923               else
13924                   defaultval=no
13925               fi
13926           fi
13927
13928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13929 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13930           # Check whether --enable-accessibility was given.
13931 if test "${enable_accessibility+set}" = set; then
13932   enableval=$enable_accessibility;
13933                           if test "$enableval" = yes; then
13934                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13935                           else
13936                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13937                           fi
13938
13939 else
13940
13941                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13942
13943 fi
13944
13945
13946           eval "$wx_cv_use_accessibility"
13947
13948           if test x"$enablestring" = xdisable; then
13949             if test $wxUSE_ACCESSIBILITY = no; then
13950               result=yes
13951             else
13952               result=no
13953             fi
13954           else
13955             result=$wxUSE_ACCESSIBILITY
13956           fi
13957
13958           { echo "$as_me:$LINENO: result: $result" >&5
13959 echo "${ECHO_T}$result" >&6; }
13960
13961
13962           enablestring=
13963           defaultval=$wxUSE_ALL_FEATURES
13964           if test -z "$defaultval"; then
13965               if test x"$enablestring" = xdisable; then
13966                   defaultval=yes
13967               else
13968                   defaultval=no
13969               fi
13970           fi
13971
13972           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
13973 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
13974           # Check whether --enable-uiactionsim was given.
13975 if test "${enable_uiactionsim+set}" = set; then
13976   enableval=$enable_uiactionsim;
13977                           if test "$enableval" = yes; then
13978                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
13979                           else
13980                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
13981                           fi
13982
13983 else
13984
13985                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
13986
13987 fi
13988
13989
13990           eval "$wx_cv_use_uiactionsim"
13991
13992           if test x"$enablestring" = xdisable; then
13993             if test $wxUSE_UIACTIONSIMULATOR = no; then
13994               result=yes
13995             else
13996               result=no
13997             fi
13998           else
13999             result=$wxUSE_UIACTIONSIMULATOR
14000           fi
14001
14002           { echo "$as_me:$LINENO: result: $result" >&5
14003 echo "${ECHO_T}$result" >&6; }
14004
14005
14006           enablestring=
14007           defaultval=$wxUSE_ALL_FEATURES
14008           if test -z "$defaultval"; then
14009               if test x"$enablestring" = xdisable; then
14010                   defaultval=yes
14011               else
14012                   defaultval=no
14013               fi
14014           fi
14015
14016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14017 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14018           # Check whether --enable-dctransform was given.
14019 if test "${enable_dctransform+set}" = set; then
14020   enableval=$enable_dctransform;
14021                           if test "$enableval" = yes; then
14022                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14023                           else
14024                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14025                           fi
14026
14027 else
14028
14029                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14030
14031 fi
14032
14033
14034           eval "$wx_cv_use_dctransform"
14035
14036           if test x"$enablestring" = xdisable; then
14037             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14038               result=yes
14039             else
14040               result=no
14041             fi
14042           else
14043             result=$wxUSE_DC_TRANSFORM_MATRIX
14044           fi
14045
14046           { echo "$as_me:$LINENO: result: $result" >&5
14047 echo "${ECHO_T}$result" >&6; }
14048
14049
14050
14051
14052           enablestring=
14053           defaultval=$wxUSE_ALL_FEATURES
14054           if test -z "$defaultval"; then
14055               if test x"$enablestring" = xdisable; then
14056                   defaultval=yes
14057               else
14058                   defaultval=no
14059               fi
14060           fi
14061
14062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14063 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14064           # Check whether --enable-palette was given.
14065 if test "${enable_palette+set}" = set; then
14066   enableval=$enable_palette;
14067                           if test "$enableval" = yes; then
14068                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14069                           else
14070                             wx_cv_use_palette='wxUSE_PALETTE=no'
14071                           fi
14072
14073 else
14074
14075                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14076
14077 fi
14078
14079
14080           eval "$wx_cv_use_palette"
14081
14082           if test x"$enablestring" = xdisable; then
14083             if test $wxUSE_PALETTE = no; then
14084               result=yes
14085             else
14086               result=no
14087             fi
14088           else
14089             result=$wxUSE_PALETTE
14090           fi
14091
14092           { echo "$as_me:$LINENO: result: $result" >&5
14093 echo "${ECHO_T}$result" >&6; }
14094
14095
14096           enablestring=
14097           defaultval=$wxUSE_ALL_FEATURES
14098           if test -z "$defaultval"; then
14099               if test x"$enablestring" = xdisable; then
14100                   defaultval=yes
14101               else
14102                   defaultval=no
14103               fi
14104           fi
14105
14106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14107 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14108           # Check whether --enable-image was given.
14109 if test "${enable_image+set}" = set; then
14110   enableval=$enable_image;
14111                           if test "$enableval" = yes; then
14112                             wx_cv_use_image='wxUSE_IMAGE=yes'
14113                           else
14114                             wx_cv_use_image='wxUSE_IMAGE=no'
14115                           fi
14116
14117 else
14118
14119                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14120
14121 fi
14122
14123
14124           eval "$wx_cv_use_image"
14125
14126           if test x"$enablestring" = xdisable; then
14127             if test $wxUSE_IMAGE = no; then
14128               result=yes
14129             else
14130               result=no
14131             fi
14132           else
14133             result=$wxUSE_IMAGE
14134           fi
14135
14136           { echo "$as_me:$LINENO: result: $result" >&5
14137 echo "${ECHO_T}$result" >&6; }
14138
14139
14140           enablestring=
14141           defaultval=$wxUSE_ALL_FEATURES
14142           if test -z "$defaultval"; then
14143               if test x"$enablestring" = xdisable; then
14144                   defaultval=yes
14145               else
14146                   defaultval=no
14147               fi
14148           fi
14149
14150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14151 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14152           # Check whether --enable-gif was given.
14153 if test "${enable_gif+set}" = set; then
14154   enableval=$enable_gif;
14155                           if test "$enableval" = yes; then
14156                             wx_cv_use_gif='wxUSE_GIF=yes'
14157                           else
14158                             wx_cv_use_gif='wxUSE_GIF=no'
14159                           fi
14160
14161 else
14162
14163                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14164
14165 fi
14166
14167
14168           eval "$wx_cv_use_gif"
14169
14170           if test x"$enablestring" = xdisable; then
14171             if test $wxUSE_GIF = no; then
14172               result=yes
14173             else
14174               result=no
14175             fi
14176           else
14177             result=$wxUSE_GIF
14178           fi
14179
14180           { echo "$as_me:$LINENO: result: $result" >&5
14181 echo "${ECHO_T}$result" >&6; }
14182
14183
14184           enablestring=
14185           defaultval=$wxUSE_ALL_FEATURES
14186           if test -z "$defaultval"; then
14187               if test x"$enablestring" = xdisable; then
14188                   defaultval=yes
14189               else
14190                   defaultval=no
14191               fi
14192           fi
14193
14194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14195 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14196           # Check whether --enable-pcx was given.
14197 if test "${enable_pcx+set}" = set; then
14198   enableval=$enable_pcx;
14199                           if test "$enableval" = yes; then
14200                             wx_cv_use_pcx='wxUSE_PCX=yes'
14201                           else
14202                             wx_cv_use_pcx='wxUSE_PCX=no'
14203                           fi
14204
14205 else
14206
14207                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14208
14209 fi
14210
14211
14212           eval "$wx_cv_use_pcx"
14213
14214           if test x"$enablestring" = xdisable; then
14215             if test $wxUSE_PCX = no; then
14216               result=yes
14217             else
14218               result=no
14219             fi
14220           else
14221             result=$wxUSE_PCX
14222           fi
14223
14224           { echo "$as_me:$LINENO: result: $result" >&5
14225 echo "${ECHO_T}$result" >&6; }
14226
14227
14228           enablestring=
14229           defaultval=$wxUSE_ALL_FEATURES
14230           if test -z "$defaultval"; then
14231               if test x"$enablestring" = xdisable; then
14232                   defaultval=yes
14233               else
14234                   defaultval=no
14235               fi
14236           fi
14237
14238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14239 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14240           # Check whether --enable-tga was given.
14241 if test "${enable_tga+set}" = set; then
14242   enableval=$enable_tga;
14243                           if test "$enableval" = yes; then
14244                             wx_cv_use_tga='wxUSE_TGA=yes'
14245                           else
14246                             wx_cv_use_tga='wxUSE_TGA=no'
14247                           fi
14248
14249 else
14250
14251                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14252
14253 fi
14254
14255
14256           eval "$wx_cv_use_tga"
14257
14258           if test x"$enablestring" = xdisable; then
14259             if test $wxUSE_TGA = no; then
14260               result=yes
14261             else
14262               result=no
14263             fi
14264           else
14265             result=$wxUSE_TGA
14266           fi
14267
14268           { echo "$as_me:$LINENO: result: $result" >&5
14269 echo "${ECHO_T}$result" >&6; }
14270
14271
14272           enablestring=
14273           defaultval=$wxUSE_ALL_FEATURES
14274           if test -z "$defaultval"; then
14275               if test x"$enablestring" = xdisable; then
14276                   defaultval=yes
14277               else
14278                   defaultval=no
14279               fi
14280           fi
14281
14282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14283 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14284           # Check whether --enable-iff was given.
14285 if test "${enable_iff+set}" = set; then
14286   enableval=$enable_iff;
14287                           if test "$enableval" = yes; then
14288                             wx_cv_use_iff='wxUSE_IFF=yes'
14289                           else
14290                             wx_cv_use_iff='wxUSE_IFF=no'
14291                           fi
14292
14293 else
14294
14295                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14296
14297 fi
14298
14299
14300           eval "$wx_cv_use_iff"
14301
14302           if test x"$enablestring" = xdisable; then
14303             if test $wxUSE_IFF = no; then
14304               result=yes
14305             else
14306               result=no
14307             fi
14308           else
14309             result=$wxUSE_IFF
14310           fi
14311
14312           { echo "$as_me:$LINENO: result: $result" >&5
14313 echo "${ECHO_T}$result" >&6; }
14314
14315
14316           enablestring=
14317           defaultval=$wxUSE_ALL_FEATURES
14318           if test -z "$defaultval"; then
14319               if test x"$enablestring" = xdisable; then
14320                   defaultval=yes
14321               else
14322                   defaultval=no
14323               fi
14324           fi
14325
14326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14327 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14328           # Check whether --enable-pnm was given.
14329 if test "${enable_pnm+set}" = set; then
14330   enableval=$enable_pnm;
14331                           if test "$enableval" = yes; then
14332                             wx_cv_use_pnm='wxUSE_PNM=yes'
14333                           else
14334                             wx_cv_use_pnm='wxUSE_PNM=no'
14335                           fi
14336
14337 else
14338
14339                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14340
14341 fi
14342
14343
14344           eval "$wx_cv_use_pnm"
14345
14346           if test x"$enablestring" = xdisable; then
14347             if test $wxUSE_PNM = no; then
14348               result=yes
14349             else
14350               result=no
14351             fi
14352           else
14353             result=$wxUSE_PNM
14354           fi
14355
14356           { echo "$as_me:$LINENO: result: $result" >&5
14357 echo "${ECHO_T}$result" >&6; }
14358
14359
14360           enablestring=
14361           defaultval=$wxUSE_ALL_FEATURES
14362           if test -z "$defaultval"; then
14363               if test x"$enablestring" = xdisable; then
14364                   defaultval=yes
14365               else
14366                   defaultval=no
14367               fi
14368           fi
14369
14370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14371 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14372           # Check whether --enable-xpm was given.
14373 if test "${enable_xpm+set}" = set; then
14374   enableval=$enable_xpm;
14375                           if test "$enableval" = yes; then
14376                             wx_cv_use_xpm='wxUSE_XPM=yes'
14377                           else
14378                             wx_cv_use_xpm='wxUSE_XPM=no'
14379                           fi
14380
14381 else
14382
14383                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14384
14385 fi
14386
14387
14388           eval "$wx_cv_use_xpm"
14389
14390           if test x"$enablestring" = xdisable; then
14391             if test $wxUSE_XPM = no; then
14392               result=yes
14393             else
14394               result=no
14395             fi
14396           else
14397             result=$wxUSE_XPM
14398           fi
14399
14400           { echo "$as_me:$LINENO: result: $result" >&5
14401 echo "${ECHO_T}$result" >&6; }
14402
14403
14404           enablestring=
14405           defaultval=$wxUSE_ALL_FEATURES
14406           if test -z "$defaultval"; then
14407               if test x"$enablestring" = xdisable; then
14408                   defaultval=yes
14409               else
14410                   defaultval=no
14411               fi
14412           fi
14413
14414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14415 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14416           # Check whether --enable-ico_cur was given.
14417 if test "${enable_ico_cur+set}" = set; then
14418   enableval=$enable_ico_cur;
14419                           if test "$enableval" = yes; then
14420                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14421                           else
14422                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14423                           fi
14424
14425 else
14426
14427                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14428
14429 fi
14430
14431
14432           eval "$wx_cv_use_ico_cur"
14433
14434           if test x"$enablestring" = xdisable; then
14435             if test $wxUSE_ICO_CUR = no; then
14436               result=yes
14437             else
14438               result=no
14439             fi
14440           else
14441             result=$wxUSE_ICO_CUR
14442           fi
14443
14444           { echo "$as_me:$LINENO: result: $result" >&5
14445 echo "${ECHO_T}$result" >&6; }
14446
14447
14448
14449
14450           enablestring=
14451           defaultval=$wxUSE_ALL_FEATURES
14452           if test -z "$defaultval"; then
14453               if test x"$enablestring" = xdisable; then
14454                   defaultval=yes
14455               else
14456                   defaultval=no
14457               fi
14458           fi
14459
14460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14461 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14462           # Check whether --enable-dccache was given.
14463 if test "${enable_dccache+set}" = set; then
14464   enableval=$enable_dccache;
14465                           if test "$enableval" = yes; then
14466                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14467                           else
14468                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14469                           fi
14470
14471 else
14472
14473                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14474
14475 fi
14476
14477
14478           eval "$wx_cv_use_dccache"
14479
14480           if test x"$enablestring" = xdisable; then
14481             if test $wxUSE_DC_CACHEING = no; then
14482               result=yes
14483             else
14484               result=no
14485             fi
14486           else
14487             result=$wxUSE_DC_CACHEING
14488           fi
14489
14490           { echo "$as_me:$LINENO: result: $result" >&5
14491 echo "${ECHO_T}$result" >&6; }
14492
14493
14494           enablestring=
14495           defaultval=$wxUSE_ALL_FEATURES
14496           if test -z "$defaultval"; then
14497               if test x"$enablestring" = xdisable; then
14498                   defaultval=yes
14499               else
14500                   defaultval=no
14501               fi
14502           fi
14503
14504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14505 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14506           # Check whether --enable-ps-in-msw was given.
14507 if test "${enable_ps_in_msw+set}" = set; then
14508   enableval=$enable_ps_in_msw;
14509                           if test "$enableval" = yes; then
14510                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14511                           else
14512                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14513                           fi
14514
14515 else
14516
14517                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14518
14519 fi
14520
14521
14522           eval "$wx_cv_use_ps_in_msw"
14523
14524           if test x"$enablestring" = xdisable; then
14525             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14526               result=yes
14527             else
14528               result=no
14529             fi
14530           else
14531             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14532           fi
14533
14534           { echo "$as_me:$LINENO: result: $result" >&5
14535 echo "${ECHO_T}$result" >&6; }
14536
14537
14538           enablestring=
14539           defaultval=$wxUSE_ALL_FEATURES
14540           if test -z "$defaultval"; then
14541               if test x"$enablestring" = xdisable; then
14542                   defaultval=yes
14543               else
14544                   defaultval=no
14545               fi
14546           fi
14547
14548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14549 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14550           # Check whether --enable-ownerdrawn was given.
14551 if test "${enable_ownerdrawn+set}" = set; then
14552   enableval=$enable_ownerdrawn;
14553                           if test "$enableval" = yes; then
14554                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14555                           else
14556                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14557                           fi
14558
14559 else
14560
14561                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14562
14563 fi
14564
14565
14566           eval "$wx_cv_use_ownerdrawn"
14567
14568           if test x"$enablestring" = xdisable; then
14569             if test $wxUSE_OWNER_DRAWN = no; then
14570               result=yes
14571             else
14572               result=no
14573             fi
14574           else
14575             result=$wxUSE_OWNER_DRAWN
14576           fi
14577
14578           { echo "$as_me:$LINENO: result: $result" >&5
14579 echo "${ECHO_T}$result" >&6; }
14580
14581
14582           enablestring=
14583           defaultval=$wxUSE_ALL_FEATURES
14584           if test -z "$defaultval"; then
14585               if test x"$enablestring" = xdisable; then
14586                   defaultval=yes
14587               else
14588                   defaultval=no
14589               fi
14590           fi
14591
14592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14593 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14594           # Check whether --enable-uxtheme was given.
14595 if test "${enable_uxtheme+set}" = set; then
14596   enableval=$enable_uxtheme;
14597                           if test "$enableval" = yes; then
14598                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14599                           else
14600                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14601                           fi
14602
14603 else
14604
14605                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14606
14607 fi
14608
14609
14610           eval "$wx_cv_use_uxtheme"
14611
14612           if test x"$enablestring" = xdisable; then
14613             if test $wxUSE_UXTHEME = no; then
14614               result=yes
14615             else
14616               result=no
14617             fi
14618           else
14619             result=$wxUSE_UXTHEME
14620           fi
14621
14622           { echo "$as_me:$LINENO: result: $result" >&5
14623 echo "${ECHO_T}$result" >&6; }
14624
14625
14626           enablestring=
14627           defaultval=$wxUSE_ALL_FEATURES
14628           if test -z "$defaultval"; then
14629               if test x"$enablestring" = xdisable; then
14630                   defaultval=yes
14631               else
14632                   defaultval=no
14633               fi
14634           fi
14635
14636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14637 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14638           # Check whether --enable-wxdib was given.
14639 if test "${enable_wxdib+set}" = set; then
14640   enableval=$enable_wxdib;
14641                           if test "$enableval" = yes; then
14642                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14643                           else
14644                             wx_cv_use_wxdib='wxUSE_DIB=no'
14645                           fi
14646
14647 else
14648
14649                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14650
14651 fi
14652
14653
14654           eval "$wx_cv_use_wxdib"
14655
14656           if test x"$enablestring" = xdisable; then
14657             if test $wxUSE_DIB = no; then
14658               result=yes
14659             else
14660               result=no
14661             fi
14662           else
14663             result=$wxUSE_DIB
14664           fi
14665
14666           { echo "$as_me:$LINENO: result: $result" >&5
14667 echo "${ECHO_T}$result" >&6; }
14668
14669
14670 if test "$wxUSE_MSW" != 1; then
14671     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14672 fi
14673
14674
14675           enablestring=
14676           defaultval=$wxUSE_ALL_FEATURES
14677           if test -z "$defaultval"; then
14678               if test x"$enablestring" = xdisable; then
14679                   defaultval=yes
14680               else
14681                   defaultval=no
14682               fi
14683           fi
14684
14685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14686 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14687           # Check whether --enable-autoidman was given.
14688 if test "${enable_autoidman+set}" = set; then
14689   enableval=$enable_autoidman;
14690                           if test "$enableval" = yes; then
14691                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14692                           else
14693                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14694                           fi
14695
14696 else
14697
14698                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14699
14700 fi
14701
14702
14703           eval "$wx_cv_use_autoidman"
14704
14705           if test x"$enablestring" = xdisable; then
14706             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14707               result=yes
14708             else
14709               result=no
14710             fi
14711           else
14712             result=$wxUSE_AUTOID_MANAGEMENT
14713           fi
14714
14715           { echo "$as_me:$LINENO: result: $result" >&5
14716 echo "${ECHO_T}$result" >&6; }
14717
14718
14719 fi
14720
14721
14722 cat >confcache <<\_ACEOF
14723 # This file is a shell script that caches the results of configure
14724 # tests run on this system so they can be shared between configure
14725 # scripts and configure runs, see configure's option --config-cache.
14726 # It is not useful on other systems.  If it contains results you don't
14727 # want to keep, you may remove or edit it.
14728 #
14729 # config.status only pays attention to the cache file if you give it
14730 # the --recheck option to rerun configure.
14731 #
14732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14734 # following values.
14735
14736 _ACEOF
14737
14738 # The following way of writing the cache mishandles newlines in values,
14739 # but we know of no workaround that is simple, portable, and efficient.
14740 # So, we kill variables containing newlines.
14741 # Ultrix sh set writes to stderr and can't be redirected directly,
14742 # and sets the high bit in the cache file unless we assign to the vars.
14743 (
14744   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14745     eval ac_val=\$$ac_var
14746     case $ac_val in #(
14747     *${as_nl}*)
14748       case $ac_var in #(
14749       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14750 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14751       esac
14752       case $ac_var in #(
14753       _ | IFS | as_nl) ;; #(
14754       *) $as_unset $ac_var ;;
14755       esac ;;
14756     esac
14757   done
14758
14759   (set) 2>&1 |
14760     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14761     *${as_nl}ac_space=\ *)
14762       # `set' does not quote correctly, so add quotes (double-quote
14763       # substitution turns \\\\ into \\, and sed turns \\ into \).
14764       sed -n \
14765         "s/'/'\\\\''/g;
14766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14767       ;; #(
14768     *)
14769       # `set' quotes correctly as required by POSIX, so do not add quotes.
14770       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14771       ;;
14772     esac |
14773     sort
14774 ) |
14775   sed '
14776      /^ac_cv_env_/b end
14777      t clear
14778      :clear
14779      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14780      t end
14781      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14782      :end' >>confcache
14783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14784   if test -w "$cache_file"; then
14785     test "x$cache_file" != "x/dev/null" &&
14786       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14787 echo "$as_me: updating cache $cache_file" >&6;}
14788     cat confcache >$cache_file
14789   else
14790     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14791 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14792   fi
14793 fi
14794 rm -f confcache
14795
14796 CFLAGS=${CFLAGS:=}
14797 ac_ext=c
14798 ac_cpp='$CPP $CPPFLAGS'
14799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14802 if test -n "$ac_tool_prefix"; then
14803   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14807 if test "${ac_cv_prog_CC+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810   if test -n "$CC"; then
14811   ac_cv_prog_CC="$CC" # Let the user override the test.
14812 else
14813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14814 for as_dir in $PATH
14815 do
14816   IFS=$as_save_IFS
14817   test -z "$as_dir" && as_dir=.
14818   for ac_exec_ext in '' $ac_executable_extensions; do
14819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14820     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14822     break 2
14823   fi
14824 done
14825 done
14826 IFS=$as_save_IFS
14827
14828 fi
14829 fi
14830 CC=$ac_cv_prog_CC
14831 if test -n "$CC"; then
14832   { echo "$as_me:$LINENO: result: $CC" >&5
14833 echo "${ECHO_T}$CC" >&6; }
14834 else
14835   { echo "$as_me:$LINENO: result: no" >&5
14836 echo "${ECHO_T}no" >&6; }
14837 fi
14838
14839
14840 fi
14841 if test -z "$ac_cv_prog_CC"; then
14842   ac_ct_CC=$CC
14843   # Extract the first word of "gcc", so it can be a program name with args.
14844 set dummy gcc; ac_word=$2
14845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   if test -n "$ac_ct_CC"; then
14851   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14852 else
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 for as_dir in $PATH
14855 do
14856   IFS=$as_save_IFS
14857   test -z "$as_dir" && as_dir=.
14858   for ac_exec_ext in '' $ac_executable_extensions; do
14859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14860     ac_cv_prog_ac_ct_CC="gcc"
14861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14862     break 2
14863   fi
14864 done
14865 done
14866 IFS=$as_save_IFS
14867
14868 fi
14869 fi
14870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14871 if test -n "$ac_ct_CC"; then
14872   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14873 echo "${ECHO_T}$ac_ct_CC" >&6; }
14874 else
14875   { echo "$as_me:$LINENO: result: no" >&5
14876 echo "${ECHO_T}no" >&6; }
14877 fi
14878
14879   if test "x$ac_ct_CC" = x; then
14880     CC=""
14881   else
14882     case $cross_compiling:$ac_tool_warned in
14883 yes:)
14884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14885 whose name does not start with the host triplet.  If you think this
14886 configuration is useful to you, please write to autoconf@gnu.org." >&5
14887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14888 whose name does not start with the host triplet.  If you think this
14889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14890 ac_tool_warned=yes ;;
14891 esac
14892     CC=$ac_ct_CC
14893   fi
14894 else
14895   CC="$ac_cv_prog_CC"
14896 fi
14897
14898 if test -z "$CC"; then
14899           if test -n "$ac_tool_prefix"; then
14900     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14901 set dummy ${ac_tool_prefix}cc; ac_word=$2
14902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14904 if test "${ac_cv_prog_CC+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   if test -n "$CC"; then
14908   ac_cv_prog_CC="$CC" # Let the user override the test.
14909 else
14910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911 for as_dir in $PATH
14912 do
14913   IFS=$as_save_IFS
14914   test -z "$as_dir" && as_dir=.
14915   for ac_exec_ext in '' $ac_executable_extensions; do
14916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14917     ac_cv_prog_CC="${ac_tool_prefix}cc"
14918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14919     break 2
14920   fi
14921 done
14922 done
14923 IFS=$as_save_IFS
14924
14925 fi
14926 fi
14927 CC=$ac_cv_prog_CC
14928 if test -n "$CC"; then
14929   { echo "$as_me:$LINENO: result: $CC" >&5
14930 echo "${ECHO_T}$CC" >&6; }
14931 else
14932   { echo "$as_me:$LINENO: result: no" >&5
14933 echo "${ECHO_T}no" >&6; }
14934 fi
14935
14936
14937   fi
14938 fi
14939 if test -z "$CC"; then
14940   # Extract the first word of "cc", so it can be a program name with args.
14941 set dummy cc; ac_word=$2
14942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14944 if test "${ac_cv_prog_CC+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   if test -n "$CC"; then
14948   ac_cv_prog_CC="$CC" # Let the user override the test.
14949 else
14950   ac_prog_rejected=no
14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952 for as_dir in $PATH
14953 do
14954   IFS=$as_save_IFS
14955   test -z "$as_dir" && as_dir=.
14956   for ac_exec_ext in '' $ac_executable_extensions; do
14957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14958     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14959        ac_prog_rejected=yes
14960        continue
14961      fi
14962     ac_cv_prog_CC="cc"
14963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14964     break 2
14965   fi
14966 done
14967 done
14968 IFS=$as_save_IFS
14969
14970 if test $ac_prog_rejected = yes; then
14971   # We found a bogon in the path, so make sure we never use it.
14972   set dummy $ac_cv_prog_CC
14973   shift
14974   if test $# != 0; then
14975     # We chose a different compiler from the bogus one.
14976     # However, it has the same basename, so the bogon will be chosen
14977     # first if we set CC to just the basename; use the full file name.
14978     shift
14979     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14980   fi
14981 fi
14982 fi
14983 fi
14984 CC=$ac_cv_prog_CC
14985 if test -n "$CC"; then
14986   { echo "$as_me:$LINENO: result: $CC" >&5
14987 echo "${ECHO_T}$CC" >&6; }
14988 else
14989   { echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6; }
14991 fi
14992
14993
14994 fi
14995 if test -z "$CC"; then
14996   if test -n "$ac_tool_prefix"; then
14997   for ac_prog in cl.exe
14998   do
14999     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15003 if test "${ac_cv_prog_CC+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   if test -n "$CC"; then
15007   ac_cv_prog_CC="$CC" # Let the user override the test.
15008 else
15009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15010 for as_dir in $PATH
15011 do
15012   IFS=$as_save_IFS
15013   test -z "$as_dir" && as_dir=.
15014   for ac_exec_ext in '' $ac_executable_extensions; do
15015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15016     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15018     break 2
15019   fi
15020 done
15021 done
15022 IFS=$as_save_IFS
15023
15024 fi
15025 fi
15026 CC=$ac_cv_prog_CC
15027 if test -n "$CC"; then
15028   { echo "$as_me:$LINENO: result: $CC" >&5
15029 echo "${ECHO_T}$CC" >&6; }
15030 else
15031   { echo "$as_me:$LINENO: result: no" >&5
15032 echo "${ECHO_T}no" >&6; }
15033 fi
15034
15035
15036     test -n "$CC" && break
15037   done
15038 fi
15039 if test -z "$CC"; then
15040   ac_ct_CC=$CC
15041   for ac_prog in cl.exe
15042 do
15043   # Extract the first word of "$ac_prog", so it can be a program name with args.
15044 set dummy $ac_prog; ac_word=$2
15045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   if test -n "$ac_ct_CC"; then
15051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15052 else
15053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15054 for as_dir in $PATH
15055 do
15056   IFS=$as_save_IFS
15057   test -z "$as_dir" && as_dir=.
15058   for ac_exec_ext in '' $ac_executable_extensions; do
15059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15060     ac_cv_prog_ac_ct_CC="$ac_prog"
15061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15062     break 2
15063   fi
15064 done
15065 done
15066 IFS=$as_save_IFS
15067
15068 fi
15069 fi
15070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15071 if test -n "$ac_ct_CC"; then
15072   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15073 echo "${ECHO_T}$ac_ct_CC" >&6; }
15074 else
15075   { echo "$as_me:$LINENO: result: no" >&5
15076 echo "${ECHO_T}no" >&6; }
15077 fi
15078
15079
15080   test -n "$ac_ct_CC" && break
15081 done
15082
15083   if test "x$ac_ct_CC" = x; then
15084     CC=""
15085   else
15086     case $cross_compiling:$ac_tool_warned in
15087 yes:)
15088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15089 whose name does not start with the host triplet.  If you think this
15090 configuration is useful to you, please write to autoconf@gnu.org." >&5
15091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15092 whose name does not start with the host triplet.  If you think this
15093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15094 ac_tool_warned=yes ;;
15095 esac
15096     CC=$ac_ct_CC
15097   fi
15098 fi
15099
15100 fi
15101
15102
15103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15104 See \`config.log' for more details." >&5
15105 echo "$as_me: error: no acceptable C compiler found in \$PATH
15106 See \`config.log' for more details." >&2;}
15107    { (exit 1); exit 1; }; }
15108
15109 # Provide some information about the compiler.
15110 echo "$as_me:$LINENO: checking for C compiler version" >&5
15111 ac_compiler=`set X $ac_compile; echo $2`
15112 { (ac_try="$ac_compiler --version >&5"
15113 case "(($ac_try" in
15114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115   *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118   (eval "$ac_compiler --version >&5") 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }
15122 { (ac_try="$ac_compiler -v >&5"
15123 case "(($ac_try" in
15124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125   *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128   (eval "$ac_compiler -v >&5") 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); }
15132 { (ac_try="$ac_compiler -V >&5"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_compiler -V >&5") 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }
15142
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149
15150 int
15151 main ()
15152 {
15153
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 ac_clean_files_save=$ac_clean_files
15159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15160 # Try to create an executable without -o first, disregard a.out.
15161 # It will help us diagnose broken compilers, and finding out an intuition
15162 # of exeext.
15163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15166 #
15167 # List of possible output files, starting from the most likely.
15168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15169 # only as a last resort.  b.out is created by i960 compilers.
15170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15171 #
15172 # The IRIX 6 linker writes into existing files which may not be
15173 # executable, retaining their permissions.  Remove them first so a
15174 # subsequent execution test works.
15175 ac_rmfiles=
15176 for ac_file in $ac_files
15177 do
15178   case $ac_file in
15179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15181   esac
15182 done
15183 rm -f $ac_rmfiles
15184
15185 if { (ac_try="$ac_link_default"
15186 case "(($ac_try" in
15187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188   *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191   (eval "$ac_link_default") 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; then
15195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15198 # so that the user can short-circuit this test for compilers unknown to
15199 # Autoconf.
15200 for ac_file in $ac_files ''
15201 do
15202   test -f "$ac_file" || continue
15203   case $ac_file in
15204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15205         ;;
15206     [ab].out )
15207         # We found the default executable, but exeext='' is most
15208         # certainly right.
15209         break;;
15210     *.* )
15211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15212         then :; else
15213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15214         fi
15215         # We set ac_cv_exeext here because the later test for it is not
15216         # safe: cross compilers may not add the suffix if given an `-o'
15217         # argument, so we may need to know it at that point already.
15218         # Even if this section looks crufty: it has the advantage of
15219         # actually working.
15220         break;;
15221     * )
15222         break;;
15223   esac
15224 done
15225 test "$ac_cv_exeext" = no && ac_cv_exeext=
15226
15227 else
15228   ac_file=''
15229 fi
15230
15231 { echo "$as_me:$LINENO: result: $ac_file" >&5
15232 echo "${ECHO_T}$ac_file" >&6; }
15233 if test -z "$ac_file"; then
15234   echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15238 See \`config.log' for more details." >&5
15239 echo "$as_me: error: C compiler cannot create executables
15240 See \`config.log' for more details." >&2;}
15241    { (exit 77); exit 77; }; }
15242 fi
15243
15244 ac_exeext=$ac_cv_exeext
15245
15246 # Check that the compiler produces executables we can run.  If not, either
15247 # the compiler is broken, or we cross compile.
15248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15251 # If not cross compiling, check that we can run a simple program.
15252 if test "$cross_compiling" != yes; then
15253   if { ac_try='./$ac_file'
15254   { (case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_try") 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263     cross_compiling=no
15264   else
15265     if test "$cross_compiling" = maybe; then
15266         cross_compiling=yes
15267     else
15268         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15269 If you meant to cross compile, use \`--host'.
15270 See \`config.log' for more details." >&5
15271 echo "$as_me: error: cannot run C compiled programs.
15272 If you meant to cross compile, use \`--host'.
15273 See \`config.log' for more details." >&2;}
15274    { (exit 1); exit 1; }; }
15275     fi
15276   fi
15277 fi
15278 { echo "$as_me:$LINENO: result: yes" >&5
15279 echo "${ECHO_T}yes" >&6; }
15280
15281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15282 ac_clean_files=$ac_clean_files_save
15283 # Check that the compiler produces executables we can run.  If not, either
15284 # the compiler is broken, or we cross compile.
15285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15288 echo "${ECHO_T}$cross_compiling" >&6; }
15289
15290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15292 if { (ac_try="$ac_link"
15293 case "(($ac_try" in
15294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295   *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298   (eval "$ac_link") 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; then
15302   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15303 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15304 # work properly (i.e., refer to `conftest.exe'), while it won't with
15305 # `rm'.
15306 for ac_file in conftest.exe conftest conftest.*; do
15307   test -f "$ac_file" || continue
15308   case $ac_file in
15309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15310     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15311           break;;
15312     * ) break;;
15313   esac
15314 done
15315 else
15316   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15317 See \`config.log' for more details." >&5
15318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15319 See \`config.log' for more details." >&2;}
15320    { (exit 1); exit 1; }; }
15321 fi
15322
15323 rm -f conftest$ac_cv_exeext
15324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15325 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15326
15327 rm -f conftest.$ac_ext
15328 EXEEXT=$ac_cv_exeext
15329 ac_exeext=$EXEEXT
15330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15332 if test "${ac_cv_objext+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341
15342 int
15343 main ()
15344 {
15345
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.o conftest.obj
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_compile") 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; then
15361   for ac_file in conftest.o conftest.obj conftest.*; do
15362   test -f "$ac_file" || continue;
15363   case $ac_file in
15364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15365     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15366        break;;
15367   esac
15368 done
15369 else
15370   echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15374 See \`config.log' for more details." >&5
15375 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15376 See \`config.log' for more details." >&2;}
15377    { (exit 1); exit 1; }; }
15378 fi
15379
15380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15381 fi
15382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15383 echo "${ECHO_T}$ac_cv_objext" >&6; }
15384 OBJEXT=$ac_cv_objext
15385 ac_objext=$OBJEXT
15386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15388 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391   cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h.  */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h.  */
15397
15398 int
15399 main ()
15400 {
15401 #ifndef __GNUC__
15402        choke me
15403 #endif
15404
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_compile") 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } && {
15423          test -z "$ac_c_werror_flag" ||
15424          test ! -s conftest.err
15425        } && test -s conftest.$ac_objext; then
15426   ac_compiler_gnu=yes
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431         ac_compiler_gnu=no
15432 fi
15433
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15436
15437 fi
15438 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15439 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15440 GCC=`test $ac_compiler_gnu = yes && echo yes`
15441 ac_test_CFLAGS=${CFLAGS+set}
15442 ac_save_CFLAGS=$CFLAGS
15443 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15444 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15445 if test "${ac_cv_prog_cc_g+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   ac_save_c_werror_flag=$ac_c_werror_flag
15449    ac_c_werror_flag=yes
15450    ac_cv_prog_cc_g=no
15451    CFLAGS="-g"
15452    cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h.  */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h.  */
15458
15459 int
15460 main ()
15461 {
15462
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (ac_try="$ac_compile"
15469 case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_compile") 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } && {
15481          test -z "$ac_c_werror_flag" ||
15482          test ! -s conftest.err
15483        } && test -s conftest.$ac_objext; then
15484   ac_cv_prog_cc_g=yes
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15488
15489         CFLAGS=""
15490       cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h.  */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h.  */
15496
15497 int
15498 main ()
15499 {
15500
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (ac_try="$ac_compile"
15507 case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_compile") 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } && {
15519          test -z "$ac_c_werror_flag" ||
15520          test ! -s conftest.err
15521        } && test -s conftest.$ac_objext; then
15522   :
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527         ac_c_werror_flag=$ac_save_c_werror_flag
15528          CFLAGS="-g"
15529          cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535
15536 int
15537 main ()
15538 {
15539
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_compile") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } && {
15558          test -z "$ac_c_werror_flag" ||
15559          test ! -s conftest.err
15560        } && test -s conftest.$ac_objext; then
15561   ac_cv_prog_cc_g=yes
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 fi
15571
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 fi
15574
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576    ac_c_werror_flag=$ac_save_c_werror_flag
15577 fi
15578 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15580 if test "$ac_test_CFLAGS" = set; then
15581   CFLAGS=$ac_save_CFLAGS
15582 elif test $ac_cv_prog_cc_g = yes; then
15583   if test "$GCC" = yes; then
15584     CFLAGS="-g -O2"
15585   else
15586     CFLAGS="-g"
15587   fi
15588 else
15589   if test "$GCC" = yes; then
15590     CFLAGS="-O2"
15591   else
15592     CFLAGS=
15593   fi
15594 fi
15595 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15596 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15597 if test "${ac_cv_prog_cc_c89+set}" = set; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   ac_cv_prog_cc_c89=no
15601 ac_save_CC=$CC
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h.  */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h.  */
15608 #include <stdarg.h>
15609 #include <stdio.h>
15610 #include <sys/types.h>
15611 #include <sys/stat.h>
15612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15613 struct buf { int x; };
15614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15615 static char *e (p, i)
15616      char **p;
15617      int i;
15618 {
15619   return p[i];
15620 }
15621 static char *f (char * (*g) (char **, int), char **p, ...)
15622 {
15623   char *s;
15624   va_list v;
15625   va_start (v,p);
15626   s = g (p, va_arg (v,int));
15627   va_end (v);
15628   return s;
15629 }
15630
15631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15632    function prototypes and stuff, but not '\xHH' hex character constants.
15633    These don't provoke an error unfortunately, instead are silently treated
15634    as 'x'.  The following induces an error, until -std is added to get
15635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15636    array size at least.  It's necessary to write '\x00'==0 to get something
15637    that's true only with -std.  */
15638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15639
15640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15641    inside strings and character constants.  */
15642 #define FOO(x) 'x'
15643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15644
15645 int test (int i, double x);
15646 struct s1 {int (*f) (int a);};
15647 struct s2 {int (*f) (double a);};
15648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15649 int argc;
15650 char **argv;
15651 int
15652 main ()
15653 {
15654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15660         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15661 do
15662   CC="$ac_save_CC $ac_arg"
15663   rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_compile") 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } && {
15677          test -z "$ac_c_werror_flag" ||
15678          test ! -s conftest.err
15679        } && test -s conftest.$ac_objext; then
15680   ac_cv_prog_cc_c89=$ac_arg
15681 else
15682   echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685
15686 fi
15687
15688 rm -f core conftest.err conftest.$ac_objext
15689   test "x$ac_cv_prog_cc_c89" != "xno" && break
15690 done
15691 rm -f conftest.$ac_ext
15692 CC=$ac_save_CC
15693
15694 fi
15695 # AC_CACHE_VAL
15696 case "x$ac_cv_prog_cc_c89" in
15697   x)
15698     { echo "$as_me:$LINENO: result: none needed" >&5
15699 echo "${ECHO_T}none needed" >&6; } ;;
15700   xno)
15701     { echo "$as_me:$LINENO: result: unsupported" >&5
15702 echo "${ECHO_T}unsupported" >&6; } ;;
15703   *)
15704     CC="$CC $ac_cv_prog_cc_c89"
15705     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15706 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15707 esac
15708
15709
15710 ac_ext=c
15711 ac_cpp='$CPP $CPPFLAGS'
15712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15715
15716
15717
15718
15719
15720
15721
15722
15723     ac_ext=c
15724 ac_cpp='$CPP $CPPFLAGS'
15725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15728
15729     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15730 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15731 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15732   echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734   cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740
15741 int
15742 main ()
15743 {
15744
15745              #ifndef __INTEL_COMPILER
15746                 choke me
15747              #endif
15748
15749   ;
15750   return 0;
15751 }
15752 _ACEOF
15753 rm -f conftest.$ac_objext
15754 if { (ac_try="$ac_compile"
15755 case "(($ac_try" in
15756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757   *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760   (eval "$ac_compile") 2>conftest.er1
15761   ac_status=$?
15762   grep -v '^ *+' conftest.er1 >conftest.err
15763   rm -f conftest.er1
15764   cat conftest.err >&5
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); } && {
15767          test -z "$ac_c_werror_flag" ||
15768          test ! -s conftest.err
15769        } && test -s conftest.$ac_objext; then
15770   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15771 else
15772   echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775         bakefile_cv_c_compiler___INTEL_COMPILER=no
15776
15777 fi
15778
15779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15780
15781
15782 fi
15783 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15784 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15785     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15786         :; INTELCC=yes
15787     else
15788         :;
15789     fi
15790     ac_ext=c
15791 ac_cpp='$CPP $CPPFLAGS'
15792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15795
15796
15797
15798
15799         if test "$INTELCC" = "yes"; then
15800
15801
15802     ac_ext=c
15803 ac_cpp='$CPP $CPPFLAGS'
15804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15807
15808     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15809 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15810 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15811   echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813   cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h.  */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h.  */
15819
15820 int
15821 main ()
15822 {
15823
15824              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15825                 choke me
15826              #endif
15827
15828   ;
15829   return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836   *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839   (eval "$ac_compile") 2>conftest.er1
15840   ac_status=$?
15841   grep -v '^ *+' conftest.er1 >conftest.err
15842   rm -f conftest.er1
15843   cat conftest.err >&5
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } && {
15846          test -z "$ac_c_werror_flag" ||
15847          test ! -s conftest.err
15848        } && test -s conftest.$ac_objext; then
15849   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15855
15856 fi
15857
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859
15860
15861 fi
15862 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15863 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15864     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15865         :; INTELCC8=yes
15866     else
15867         :;
15868     fi
15869     ac_ext=c
15870 ac_cpp='$CPP $CPPFLAGS'
15871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15874
15875
15876
15877
15878
15879     ac_ext=c
15880 ac_cpp='$CPP $CPPFLAGS'
15881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15884
15885     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15886 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15887 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890   cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896
15897 int
15898 main ()
15899 {
15900
15901              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15902                 choke me
15903              #endif
15904
15905   ;
15906   return 0;
15907 }
15908 _ACEOF
15909 rm -f conftest.$ac_objext
15910 if { (ac_try="$ac_compile"
15911 case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_compile") 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } && {
15923          test -z "$ac_c_werror_flag" ||
15924          test ! -s conftest.err
15925        } && test -s conftest.$ac_objext; then
15926   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15932
15933 fi
15934
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936
15937
15938 fi
15939 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15940 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15941     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15942         :; INTELCC10=yes
15943     else
15944         :;
15945     fi
15946     ac_ext=c
15947 ac_cpp='$CPP $CPPFLAGS'
15948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15951
15952
15953
15954     fi
15955
15956         if test "x$GCC" != "xyes"; then
15957         if test "xCC" = "xC"; then
15958             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15959 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15960 if test "${bakefile_cv_c_exto+set}" = set; then
15961   echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963   cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h.  */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h.  */
15969
15970 int
15971 main ()
15972 {
15973
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest.$ac_ext.o
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980   (eval $ac_compile) 2>&5
15981   ac_status=$?
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); }; then
15984   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15985     case $ac_file in
15986         conftest.$ac_ext.o)
15987             bakefile_cv_c_exto="-ext o"
15988             ;;
15989         *)
15990             ;;
15991     esac
15992 done
15993 else
15994   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15995 See \`config.log' for more details." >&5
15996 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15997 See \`config.log' for more details." >&2;}
15998    { (exit 1); exit 1; }; }
15999
16000 fi
16001
16002 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16003
16004 fi
16005 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16006 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16007 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16008     if test "c" = "c"; then
16009         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16010     fi
16011     if test "c" = "cxx"; then
16012         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16013     fi
16014 fi
16015
16016             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16017                 unset ac_cv_prog_cc_g
16018                 ac_test_CFLAGS=${CFLAGS+set}
16019 ac_save_CFLAGS=$CFLAGS
16020 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16022 if test "${ac_cv_prog_cc_g+set}" = set; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   ac_save_c_werror_flag=$ac_c_werror_flag
16026    ac_c_werror_flag=yes
16027    ac_cv_prog_cc_g=no
16028    CFLAGS="-g"
16029    cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035
16036 int
16037 main ()
16038 {
16039
16040   ;
16041   return 0;
16042 }
16043 _ACEOF
16044 rm -f conftest.$ac_objext
16045 if { (ac_try="$ac_compile"
16046 case "(($ac_try" in
16047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048   *) ac_try_echo=$ac_try;;
16049 esac
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051   (eval "$ac_compile") 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } && {
16058          test -z "$ac_c_werror_flag" ||
16059          test ! -s conftest.err
16060        } && test -s conftest.$ac_objext; then
16061   ac_cv_prog_cc_g=yes
16062 else
16063   echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066         CFLAGS=""
16067       cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h.  */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h.  */
16073
16074 int
16075 main ()
16076 {
16077
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_compile") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } && {
16096          test -z "$ac_c_werror_flag" ||
16097          test ! -s conftest.err
16098        } && test -s conftest.$ac_objext; then
16099   :
16100 else
16101   echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104         ac_c_werror_flag=$ac_save_c_werror_flag
16105          CFLAGS="-g"
16106          cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112
16113 int
16114 main ()
16115 {
16116
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext
16122 if { (ac_try="$ac_compile"
16123 case "(($ac_try" in
16124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125   *) ac_try_echo=$ac_try;;
16126 esac
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128   (eval "$ac_compile") 2>conftest.er1
16129   ac_status=$?
16130   grep -v '^ *+' conftest.er1 >conftest.err
16131   rm -f conftest.er1
16132   cat conftest.err >&5
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); } && {
16135          test -z "$ac_c_werror_flag" ||
16136          test ! -s conftest.err
16137        } && test -s conftest.$ac_objext; then
16138   ac_cv_prog_cc_g=yes
16139 else
16140   echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16142
16143
16144 fi
16145
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 fi
16151
16152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153    ac_c_werror_flag=$ac_save_c_werror_flag
16154 fi
16155 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16156 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16157 if test "$ac_test_CFLAGS" = set; then
16158   CFLAGS=$ac_save_CFLAGS
16159 elif test $ac_cv_prog_cc_g = yes; then
16160   if test "$GCC" = yes; then
16161     CFLAGS="-g -O2"
16162   else
16163     CFLAGS="-g"
16164   fi
16165 else
16166   if test "$GCC" = yes; then
16167     CFLAGS="-O2"
16168   else
16169     CFLAGS=
16170   fi
16171 fi
16172             fi
16173         fi
16174
16175                         case `uname -s` in
16176             AIX*)
16177
16178
16179     ac_ext=c
16180 ac_cpp='$CPP $CPPFLAGS'
16181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16184
16185     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16186 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16187 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16188   echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16190   cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h.  */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h.  */
16196
16197 int
16198 main ()
16199 {
16200
16201              #ifndef __xlC__
16202                 choke me
16203              #endif
16204
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_compile") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && {
16223          test -z "$ac_c_werror_flag" ||
16224          test ! -s conftest.err
16225        } && test -s conftest.$ac_objext; then
16226   bakefile_cv_c_compiler___xlC__=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231         bakefile_cv_c_compiler___xlC__=no
16232
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236
16237
16238 fi
16239 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16240 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16241     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16242         :; XLCC=yes
16243     else
16244         :;
16245     fi
16246     ac_ext=c
16247 ac_cpp='$CPP $CPPFLAGS'
16248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16251
16252
16253
16254                 ;;
16255
16256             Darwin)
16257
16258
16259     ac_ext=c
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264
16265     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16266 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16267 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16268   echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270   cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276
16277 int
16278 main ()
16279 {
16280
16281              #ifndef __MWERKS__
16282                 choke me
16283              #endif
16284
16285   ;
16286   return 0;
16287 }
16288 _ACEOF
16289 rm -f conftest.$ac_objext
16290 if { (ac_try="$ac_compile"
16291 case "(($ac_try" in
16292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293   *) ac_try_echo=$ac_try;;
16294 esac
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296   (eval "$ac_compile") 2>conftest.er1
16297   ac_status=$?
16298   grep -v '^ *+' conftest.er1 >conftest.err
16299   rm -f conftest.er1
16300   cat conftest.err >&5
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } && {
16303          test -z "$ac_c_werror_flag" ||
16304          test ! -s conftest.err
16305        } && test -s conftest.$ac_objext; then
16306   bakefile_cv_c_compiler___MWERKS__=yes
16307 else
16308   echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311         bakefile_cv_c_compiler___MWERKS__=no
16312
16313 fi
16314
16315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316
16317
16318 fi
16319 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16320 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16321     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16322         :; MWCC=yes
16323     else
16324         :;
16325     fi
16326     ac_ext=c
16327 ac_cpp='$CPP $CPPFLAGS'
16328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16331
16332
16333
16334                 if test "$MWCC" != "yes"; then
16335
16336
16337     ac_ext=c
16338 ac_cpp='$CPP $CPPFLAGS'
16339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16342
16343     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16344 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16345 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16346   echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348   cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h.  */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h.  */
16354
16355 int
16356 main ()
16357 {
16358
16359              #ifndef __xlC__
16360                 choke me
16361              #endif
16362
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374   (eval "$ac_compile") 2>conftest.er1
16375   ac_status=$?
16376   grep -v '^ *+' conftest.er1 >conftest.err
16377   rm -f conftest.er1
16378   cat conftest.err >&5
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); } && {
16381          test -z "$ac_c_werror_flag" ||
16382          test ! -s conftest.err
16383        } && test -s conftest.$ac_objext; then
16384   bakefile_cv_c_compiler___xlC__=yes
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389         bakefile_cv_c_compiler___xlC__=no
16390
16391 fi
16392
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394
16395
16396 fi
16397 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16398 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16399     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16400         :; XLCC=yes
16401     else
16402         :;
16403     fi
16404     ac_ext=c
16405 ac_cpp='$CPP $CPPFLAGS'
16406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16409
16410
16411
16412                 fi
16413                 ;;
16414
16415             IRIX*)
16416
16417
16418     ac_ext=c
16419 ac_cpp='$CPP $CPPFLAGS'
16420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16423
16424     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16425 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16426 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h.  */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h.  */
16435
16436 int
16437 main ()
16438 {
16439
16440              #ifndef _SGI_COMPILER_VERSION
16441                 choke me
16442              #endif
16443
16444   ;
16445   return 0;
16446 }
16447 _ACEOF
16448 rm -f conftest.$ac_objext
16449 if { (ac_try="$ac_compile"
16450 case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_compile") 2>conftest.er1
16456   ac_status=$?
16457   grep -v '^ *+' conftest.er1 >conftest.err
16458   rm -f conftest.er1
16459   cat conftest.err >&5
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } && {
16462          test -z "$ac_c_werror_flag" ||
16463          test ! -s conftest.err
16464        } && test -s conftest.$ac_objext; then
16465   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16471
16472 fi
16473
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475
16476
16477 fi
16478 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16479 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16480     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16481         :; SGICC=yes
16482     else
16483         :;
16484     fi
16485     ac_ext=c
16486 ac_cpp='$CPP $CPPFLAGS'
16487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16490
16491
16492
16493                 ;;
16494
16495             Linux*)
16496                                                 if test "$INTELCC" != "yes"; then
16497
16498
16499     ac_ext=c
16500 ac_cpp='$CPP $CPPFLAGS'
16501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16504
16505     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16506 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16507 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516
16517 int
16518 main ()
16519 {
16520
16521              #ifndef __SUNPRO_C
16522                 choke me
16523              #endif
16524
16525   ;
16526   return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext
16530 if { (ac_try="$ac_compile"
16531 case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_compile") 2>conftest.er1
16537   ac_status=$?
16538   grep -v '^ *+' conftest.er1 >conftest.err
16539   rm -f conftest.er1
16540   cat conftest.err >&5
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); } && {
16543          test -z "$ac_c_werror_flag" ||
16544          test ! -s conftest.err
16545        } && test -s conftest.$ac_objext; then
16546   bakefile_cv_c_compiler___SUNPRO_C=yes
16547 else
16548   echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551         bakefile_cv_c_compiler___SUNPRO_C=no
16552
16553 fi
16554
16555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16556
16557
16558 fi
16559 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16560 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16561     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16562         :; SUNCC=yes
16563     else
16564         :;
16565     fi
16566     ac_ext=c
16567 ac_cpp='$CPP $CPPFLAGS'
16568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16571
16572
16573
16574                 fi
16575                 ;;
16576
16577             HP-UX*)
16578
16579
16580     ac_ext=c
16581 ac_cpp='$CPP $CPPFLAGS'
16582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16585
16586     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16587 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16588 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h.  */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h.  */
16597
16598 int
16599 main ()
16600 {
16601
16602              #ifndef __HP_cc
16603                 choke me
16604              #endif
16605
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (ac_try="$ac_compile"
16612 case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_compile") 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } && {
16624          test -z "$ac_c_werror_flag" ||
16625          test ! -s conftest.err
16626        } && test -s conftest.$ac_objext; then
16627   bakefile_cv_c_compiler___HP_cc=yes
16628 else
16629   echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632         bakefile_cv_c_compiler___HP_cc=no
16633
16634 fi
16635
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637
16638
16639 fi
16640 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16641 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16642     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16643         :; HPCC=yes
16644     else
16645         :;
16646     fi
16647     ac_ext=c
16648 ac_cpp='$CPP $CPPFLAGS'
16649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16652
16653
16654
16655                 ;;
16656
16657             OSF1)
16658
16659
16660     ac_ext=c
16661 ac_cpp='$CPP $CPPFLAGS'
16662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16665
16666     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16667 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16668 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671   cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677
16678 int
16679 main ()
16680 {
16681
16682              #ifndef __DECC
16683                 choke me
16684              #endif
16685
16686   ;
16687   return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } && {
16704          test -z "$ac_c_werror_flag" ||
16705          test ! -s conftest.err
16706        } && test -s conftest.$ac_objext; then
16707   bakefile_cv_c_compiler___DECC=yes
16708 else
16709   echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712         bakefile_cv_c_compiler___DECC=no
16713
16714 fi
16715
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717
16718
16719 fi
16720 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16721 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16722     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16723         :; COMPAQCC=yes
16724     else
16725         :;
16726     fi
16727     ac_ext=c
16728 ac_cpp='$CPP $CPPFLAGS'
16729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16732
16733
16734
16735                 ;;
16736
16737             SunOS)
16738
16739
16740     ac_ext=c
16741 ac_cpp='$CPP $CPPFLAGS'
16742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16745
16746     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16747 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16748 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16749   echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751   cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757
16758 int
16759 main ()
16760 {
16761
16762              #ifndef __SUNPRO_C
16763                 choke me
16764              #endif
16765
16766   ;
16767   return 0;
16768 }
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (ac_try="$ac_compile"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_compile") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } && {
16784          test -z "$ac_c_werror_flag" ||
16785          test ! -s conftest.err
16786        } && test -s conftest.$ac_objext; then
16787   bakefile_cv_c_compiler___SUNPRO_C=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792         bakefile_cv_c_compiler___SUNPRO_C=no
16793
16794 fi
16795
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797
16798
16799 fi
16800 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16801 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16802     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16803         :; SUNCC=yes
16804     else
16805         :;
16806     fi
16807     ac_ext=c
16808 ac_cpp='$CPP $CPPFLAGS'
16809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16812
16813
16814
16815                 ;;
16816         esac
16817     fi
16818
16819
16820
16821 ac_ext=c
16822 ac_cpp='$CPP $CPPFLAGS'
16823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16826 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16827 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16828 # On Suns, sometimes $CPP names a directory.
16829 if test -n "$CPP" && test -d "$CPP"; then
16830   CPP=
16831 fi
16832 if test -z "$CPP"; then
16833   if test "${ac_cv_prog_CPP+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836       # Double quotes because CPP needs to be expanded
16837     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16838     do
16839       ac_preproc_ok=false
16840 for ac_c_preproc_warn_flag in '' yes
16841 do
16842   # Use a header file that comes with gcc, so configuring glibc
16843   # with a fresh cross-compiler works.
16844   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16845   # <limits.h> exists even on freestanding compilers.
16846   # On the NeXT, cc -E runs the code through the compiler's parser,
16847   # not just through cpp. "Syntax error" is here to catch this case.
16848   cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h.  */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h.  */
16854 #ifdef __STDC__
16855 # include <limits.h>
16856 #else
16857 # include <assert.h>
16858 #endif
16859                      Syntax error
16860 _ACEOF
16861 if { (ac_try="$ac_cpp conftest.$ac_ext"
16862 case "(($ac_try" in
16863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864   *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } >/dev/null && {
16874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16875          test ! -s conftest.err
16876        }; then
16877   :
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882   # Broken: fails on valid input.
16883 continue
16884 fi
16885
16886 rm -f conftest.err conftest.$ac_ext
16887
16888   # OK, works on sane cases.  Now check whether nonexistent headers
16889   # can be detected and how.
16890   cat >conftest.$ac_ext <<_ACEOF
16891 /* confdefs.h.  */
16892 _ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h.  */
16896 #include <ac_nonexistent.h>
16897 _ACEOF
16898 if { (ac_try="$ac_cpp conftest.$ac_ext"
16899 case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16905   ac_status=$?
16906   grep -v '^ *+' conftest.er1 >conftest.err
16907   rm -f conftest.er1
16908   cat conftest.err >&5
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } >/dev/null && {
16911          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16912          test ! -s conftest.err
16913        }; then
16914   # Broken: success on invalid input.
16915 continue
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920   # Passes both tests.
16921 ac_preproc_ok=:
16922 break
16923 fi
16924
16925 rm -f conftest.err conftest.$ac_ext
16926
16927 done
16928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16929 rm -f conftest.err conftest.$ac_ext
16930 if $ac_preproc_ok; then
16931   break
16932 fi
16933
16934     done
16935     ac_cv_prog_CPP=$CPP
16936
16937 fi
16938   CPP=$ac_cv_prog_CPP
16939 else
16940   ac_cv_prog_CPP=$CPP
16941 fi
16942 { echo "$as_me:$LINENO: result: $CPP" >&5
16943 echo "${ECHO_T}$CPP" >&6; }
16944 ac_preproc_ok=false
16945 for ac_c_preproc_warn_flag in '' yes
16946 do
16947   # Use a header file that comes with gcc, so configuring glibc
16948   # with a fresh cross-compiler works.
16949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950   # <limits.h> exists even on freestanding compilers.
16951   # On the NeXT, cc -E runs the code through the compiler's parser,
16952   # not just through cpp. "Syntax error" is here to catch this case.
16953   cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959 #ifdef __STDC__
16960 # include <limits.h>
16961 #else
16962 # include <assert.h>
16963 #endif
16964                      Syntax error
16965 _ACEOF
16966 if { (ac_try="$ac_cpp conftest.$ac_ext"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } >/dev/null && {
16979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16980          test ! -s conftest.err
16981        }; then
16982   :
16983 else
16984   echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987   # Broken: fails on valid input.
16988 continue
16989 fi
16990
16991 rm -f conftest.err conftest.$ac_ext
16992
16993   # OK, works on sane cases.  Now check whether nonexistent headers
16994   # can be detected and how.
16995   cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001 #include <ac_nonexistent.h>
17002 _ACEOF
17003 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } >/dev/null && {
17016          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17017          test ! -s conftest.err
17018        }; then
17019   # Broken: success on invalid input.
17020 continue
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025   # Passes both tests.
17026 ac_preproc_ok=:
17027 break
17028 fi
17029
17030 rm -f conftest.err conftest.$ac_ext
17031
17032 done
17033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17034 rm -f conftest.err conftest.$ac_ext
17035 if $ac_preproc_ok; then
17036   :
17037 else
17038   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17039 See \`config.log' for more details." >&5
17040 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17041 See \`config.log' for more details." >&2;}
17042    { (exit 1); exit 1; }; }
17043 fi
17044
17045 ac_ext=c
17046 ac_cpp='$CPP $CPPFLAGS'
17047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17050
17051
17052 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17053 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17054 if test "${ac_cv_path_GREP+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   # Extract the first word of "grep ggrep" to use in msg output
17058 if test -z "$GREP"; then
17059 set dummy grep ggrep; ac_prog_name=$2
17060 if test "${ac_cv_path_GREP+set}" = set; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   ac_path_GREP_found=false
17064 # Loop through the user's path and test for each of PROGNAME-LIST
17065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17067 do
17068   IFS=$as_save_IFS
17069   test -z "$as_dir" && as_dir=.
17070   for ac_prog in grep ggrep; do
17071   for ac_exec_ext in '' $ac_executable_extensions; do
17072     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17073     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17074     # Check for GNU ac_path_GREP and select it if it is found.
17075   # Check for GNU $ac_path_GREP
17076 case `"$ac_path_GREP" --version 2>&1` in
17077 *GNU*)
17078   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17079 *)
17080   ac_count=0
17081   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17082   while :
17083   do
17084     cat "conftest.in" "conftest.in" >"conftest.tmp"
17085     mv "conftest.tmp" "conftest.in"
17086     cp "conftest.in" "conftest.nl"
17087     echo 'GREP' >> "conftest.nl"
17088     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17089     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17090     ac_count=`expr $ac_count + 1`
17091     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17092       # Best one so far, save it but keep looking for a better one
17093       ac_cv_path_GREP="$ac_path_GREP"
17094       ac_path_GREP_max=$ac_count
17095     fi
17096     # 10*(2^10) chars as input seems more than enough
17097     test $ac_count -gt 10 && break
17098   done
17099   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17100 esac
17101
17102
17103     $ac_path_GREP_found && break 3
17104   done
17105 done
17106
17107 done
17108 IFS=$as_save_IFS
17109
17110
17111 fi
17112
17113 GREP="$ac_cv_path_GREP"
17114 if test -z "$GREP"; then
17115   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17116 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17117    { (exit 1); exit 1; }; }
17118 fi
17119
17120 else
17121   ac_cv_path_GREP=$GREP
17122 fi
17123
17124
17125 fi
17126 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17127 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17128  GREP="$ac_cv_path_GREP"
17129
17130
17131 { echo "$as_me:$LINENO: checking for egrep" >&5
17132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17133 if test "${ac_cv_path_EGREP+set}" = set; then
17134   echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17137    then ac_cv_path_EGREP="$GREP -E"
17138    else
17139      # Extract the first word of "egrep" to use in msg output
17140 if test -z "$EGREP"; then
17141 set dummy egrep; ac_prog_name=$2
17142 if test "${ac_cv_path_EGREP+set}" = set; then
17143   echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145   ac_path_EGREP_found=false
17146 # Loop through the user's path and test for each of PROGNAME-LIST
17147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17149 do
17150   IFS=$as_save_IFS
17151   test -z "$as_dir" && as_dir=.
17152   for ac_prog in egrep; do
17153   for ac_exec_ext in '' $ac_executable_extensions; do
17154     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17155     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17156     # Check for GNU ac_path_EGREP and select it if it is found.
17157   # Check for GNU $ac_path_EGREP
17158 case `"$ac_path_EGREP" --version 2>&1` in
17159 *GNU*)
17160   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17161 *)
17162   ac_count=0
17163   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17164   while :
17165   do
17166     cat "conftest.in" "conftest.in" >"conftest.tmp"
17167     mv "conftest.tmp" "conftest.in"
17168     cp "conftest.in" "conftest.nl"
17169     echo 'EGREP' >> "conftest.nl"
17170     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17171     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17172     ac_count=`expr $ac_count + 1`
17173     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17174       # Best one so far, save it but keep looking for a better one
17175       ac_cv_path_EGREP="$ac_path_EGREP"
17176       ac_path_EGREP_max=$ac_count
17177     fi
17178     # 10*(2^10) chars as input seems more than enough
17179     test $ac_count -gt 10 && break
17180   done
17181   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17182 esac
17183
17184
17185     $ac_path_EGREP_found && break 3
17186   done
17187 done
17188
17189 done
17190 IFS=$as_save_IFS
17191
17192
17193 fi
17194
17195 EGREP="$ac_cv_path_EGREP"
17196 if test -z "$EGREP"; then
17197   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17198 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17199    { (exit 1); exit 1; }; }
17200 fi
17201
17202 else
17203   ac_cv_path_EGREP=$EGREP
17204 fi
17205
17206
17207    fi
17208 fi
17209 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17210 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17211  EGREP="$ac_cv_path_EGREP"
17212
17213
17214 if test $ac_cv_c_compiler_gnu = yes; then
17215     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17216 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17217 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17218   echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220     ac_pattern="Autoconf.*'x'"
17221   cat >conftest.$ac_ext <<_ACEOF
17222 /* confdefs.h.  */
17223 _ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h.  */
17227 #include <sgtty.h>
17228 Autoconf TIOCGETP
17229 _ACEOF
17230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17231   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17232   ac_cv_prog_gcc_traditional=yes
17233 else
17234   ac_cv_prog_gcc_traditional=no
17235 fi
17236 rm -f conftest*
17237
17238
17239   if test $ac_cv_prog_gcc_traditional = no; then
17240     cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246 #include <termio.h>
17247 Autoconf TCGETA
17248 _ACEOF
17249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17250   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17251   ac_cv_prog_gcc_traditional=yes
17252 fi
17253 rm -f conftest*
17254
17255   fi
17256 fi
17257 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17258 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17259   if test $ac_cv_prog_gcc_traditional = yes; then
17260     CC="$CC -traditional"
17261   fi
17262 fi
17263
17264
17265 CXXFLAGS=${CXXFLAGS:=}
17266 ac_ext=cpp
17267 ac_cpp='$CXXCPP $CPPFLAGS'
17268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17271 if test -z "$CXX"; then
17272   if test -n "$CCC"; then
17273     CXX=$CCC
17274   else
17275     if test -n "$ac_tool_prefix"; then
17276   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17277   do
17278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17282 if test "${ac_cv_prog_CXX+set}" = set; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285   if test -n "$CXX"; then
17286   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17287 else
17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17289 for as_dir in $PATH
17290 do
17291   IFS=$as_save_IFS
17292   test -z "$as_dir" && as_dir=.
17293   for ac_exec_ext in '' $ac_executable_extensions; do
17294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17295     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17297     break 2
17298   fi
17299 done
17300 done
17301 IFS=$as_save_IFS
17302
17303 fi
17304 fi
17305 CXX=$ac_cv_prog_CXX
17306 if test -n "$CXX"; then
17307   { echo "$as_me:$LINENO: result: $CXX" >&5
17308 echo "${ECHO_T}$CXX" >&6; }
17309 else
17310   { echo "$as_me:$LINENO: result: no" >&5
17311 echo "${ECHO_T}no" >&6; }
17312 fi
17313
17314
17315     test -n "$CXX" && break
17316   done
17317 fi
17318 if test -z "$CXX"; then
17319   ac_ct_CXX=$CXX
17320   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17321 do
17322   # Extract the first word of "$ac_prog", so it can be a program name with args.
17323 set dummy $ac_prog; ac_word=$2
17324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329   if test -n "$ac_ct_CXX"; then
17330   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17331 else
17332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17333 for as_dir in $PATH
17334 do
17335   IFS=$as_save_IFS
17336   test -z "$as_dir" && as_dir=.
17337   for ac_exec_ext in '' $ac_executable_extensions; do
17338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17339     ac_cv_prog_ac_ct_CXX="$ac_prog"
17340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17341     break 2
17342   fi
17343 done
17344 done
17345 IFS=$as_save_IFS
17346
17347 fi
17348 fi
17349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17350 if test -n "$ac_ct_CXX"; then
17351   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17353 else
17354   { echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6; }
17356 fi
17357
17358
17359   test -n "$ac_ct_CXX" && break
17360 done
17361
17362   if test "x$ac_ct_CXX" = x; then
17363     CXX="g++"
17364   else
17365     case $cross_compiling:$ac_tool_warned in
17366 yes:)
17367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17368 whose name does not start with the host triplet.  If you think this
17369 configuration is useful to you, please write to autoconf@gnu.org." >&5
17370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17371 whose name does not start with the host triplet.  If you think this
17372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17373 ac_tool_warned=yes ;;
17374 esac
17375     CXX=$ac_ct_CXX
17376   fi
17377 fi
17378
17379   fi
17380 fi
17381 # Provide some information about the compiler.
17382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17383 ac_compiler=`set X $ac_compile; echo $2`
17384 { (ac_try="$ac_compiler --version >&5"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_compiler --version >&5") 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); }
17394 { (ac_try="$ac_compiler -v >&5"
17395 case "(($ac_try" in
17396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397   *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400   (eval "$ac_compiler -v >&5") 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }
17404 { (ac_try="$ac_compiler -V >&5"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_compiler -V >&5") 2>&5
17411   ac_status=$?
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); }
17414
17415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426
17427 int
17428 main ()
17429 {
17430 #ifndef __GNUC__
17431        choke me
17432 #endif
17433
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 rm -f conftest.$ac_objext
17439 if { (ac_try="$ac_compile"
17440 case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_compile") 2>conftest.er1
17446   ac_status=$?
17447   grep -v '^ *+' conftest.er1 >conftest.err
17448   rm -f conftest.er1
17449   cat conftest.err >&5
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); } && {
17452          test -z "$ac_cxx_werror_flag" ||
17453          test ! -s conftest.err
17454        } && test -s conftest.$ac_objext; then
17455   ac_compiler_gnu=yes
17456 else
17457   echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460         ac_compiler_gnu=no
17461 fi
17462
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17465
17466 fi
17467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17468 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17469 GXX=`test $ac_compiler_gnu = yes && echo yes`
17470 ac_test_CXXFLAGS=${CXXFLAGS+set}
17471 ac_save_CXXFLAGS=$CXXFLAGS
17472 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17473 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17474 if test "${ac_cv_prog_cxx_g+set}" = set; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17478    ac_cxx_werror_flag=yes
17479    ac_cv_prog_cxx_g=no
17480    CXXFLAGS="-g"
17481    cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487
17488 int
17489 main ()
17490 {
17491
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_compile") 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } && {
17510          test -z "$ac_cxx_werror_flag" ||
17511          test ! -s conftest.err
17512        } && test -s conftest.$ac_objext; then
17513   ac_cv_prog_cxx_g=yes
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518         CXXFLAGS=""
17519       cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525
17526 int
17527 main ()
17528 {
17529
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext
17535 if { (ac_try="$ac_compile"
17536 case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_compile") 2>conftest.er1
17542   ac_status=$?
17543   grep -v '^ *+' conftest.er1 >conftest.err
17544   rm -f conftest.er1
17545   cat conftest.err >&5
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); } && {
17548          test -z "$ac_cxx_werror_flag" ||
17549          test ! -s conftest.err
17550        } && test -s conftest.$ac_objext; then
17551   :
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17557          CXXFLAGS="-g"
17558          cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564
17565 int
17566 main ()
17567 {
17568
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext
17574 if { (ac_try="$ac_compile"
17575 case "(($ac_try" in
17576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577   *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580   (eval "$ac_compile") 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } && {
17587          test -z "$ac_cxx_werror_flag" ||
17588          test ! -s conftest.err
17589        } && test -s conftest.$ac_objext; then
17590   ac_cv_prog_cxx_g=yes
17591 else
17592   echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17594
17595
17596 fi
17597
17598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 fi
17603
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17606 fi
17607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17609 if test "$ac_test_CXXFLAGS" = set; then
17610   CXXFLAGS=$ac_save_CXXFLAGS
17611 elif test $ac_cv_prog_cxx_g = yes; then
17612   if test "$GXX" = yes; then
17613     CXXFLAGS="-g -O2"
17614   else
17615     CXXFLAGS="-g"
17616   fi
17617 else
17618   if test "$GXX" = yes; then
17619     CXXFLAGS="-O2"
17620   else
17621     CXXFLAGS=
17622   fi
17623 fi
17624 ac_ext=c
17625 ac_cpp='$CPP $CPPFLAGS'
17626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17629
17630
17631
17632
17633
17634
17635
17636
17637     ac_ext=cpp
17638 ac_cpp='$CXXCPP $CPPFLAGS'
17639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17642
17643     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17644 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17645 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17646   echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648   cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654
17655 int
17656 main ()
17657 {
17658
17659              #ifndef __INTEL_COMPILER
17660                 choke me
17661              #endif
17662
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_compile") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_cxx_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest.$ac_objext; then
17684   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17690
17691 fi
17692
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694
17695
17696 fi
17697 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17698 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17699     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17700         :; INTELCXX=yes
17701     else
17702         :;
17703     fi
17704     ac_ext=c
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
17710
17711
17712
17713         if test "$INTELCXX" = "yes"; then
17714
17715
17716     ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17723 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17724 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733
17734 int
17735 main ()
17736 {
17737
17738              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17739                 choke me
17740              #endif
17741
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (ac_try="$ac_compile"
17748 case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_compile") 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } && {
17760          test -z "$ac_cxx_werror_flag" ||
17761          test ! -s conftest.err
17762        } && test -s conftest.$ac_objext; then
17763   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17764 else
17765   echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17769
17770 fi
17771
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773
17774
17775 fi
17776 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17777 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17778     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17779         :; INTELCXX8=yes
17780     else
17781         :;
17782     fi
17783     ac_ext=c
17784 ac_cpp='$CPP $CPPFLAGS'
17785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17788
17789
17790
17791
17792
17793     ac_ext=cpp
17794 ac_cpp='$CXXCPP $CPPFLAGS'
17795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17798
17799     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17800 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17801 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17802   echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804   cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810
17811 int
17812 main ()
17813 {
17814
17815              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17816                 choke me
17817              #endif
17818
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_compile") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } && {
17837          test -z "$ac_cxx_werror_flag" ||
17838          test ! -s conftest.err
17839        } && test -s conftest.$ac_objext; then
17840   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17841 else
17842   echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17846
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850
17851
17852 fi
17853 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17854 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17855     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17856         :; INTELCXX10=yes
17857     else
17858         :;
17859     fi
17860     ac_ext=c
17861 ac_cpp='$CPP $CPPFLAGS'
17862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17865
17866
17867
17868     fi
17869
17870         if test "x$GCXX" != "xyes"; then
17871         if test "xCXX" = "xC"; then
17872             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17873 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17874 if test "${bakefile_cv_c_exto+set}" = set; then
17875   echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877   cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883
17884 int
17885 main ()
17886 {
17887
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest.$ac_ext.o
17893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17894   (eval $ac_compile) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; then
17898   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17899     case $ac_file in
17900         conftest.$ac_ext.o)
17901             bakefile_cv_c_exto="-ext o"
17902             ;;
17903         *)
17904             ;;
17905     esac
17906 done
17907 else
17908   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17909 See \`config.log' for more details." >&5
17910 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17911 See \`config.log' for more details." >&2;}
17912    { (exit 1); exit 1; }; }
17913
17914 fi
17915
17916 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17917
17918 fi
17919 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17920 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17921 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17922     if test "c" = "c"; then
17923         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17924     fi
17925     if test "c" = "cxx"; then
17926         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17927     fi
17928 fi
17929
17930             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17931                 unset ac_cv_prog_cc_g
17932                 ac_test_CFLAGS=${CFLAGS+set}
17933 ac_save_CFLAGS=$CFLAGS
17934 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17935 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17936 if test "${ac_cv_prog_cc_g+set}" = set; then
17937   echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939   ac_save_c_werror_flag=$ac_c_werror_flag
17940    ac_c_werror_flag=yes
17941    ac_cv_prog_cc_g=no
17942    CFLAGS="-g"
17943    cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h.  */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h.  */
17949
17950 int
17951 main ()
17952 {
17953
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest.$ac_objext
17959 if { (ac_try="$ac_compile"
17960 case "(($ac_try" in
17961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962   *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965   (eval "$ac_compile") 2>conftest.er1
17966   ac_status=$?
17967   grep -v '^ *+' conftest.er1 >conftest.err
17968   rm -f conftest.er1
17969   cat conftest.err >&5
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); } && {
17972          test -z "$ac_c_werror_flag" ||
17973          test ! -s conftest.err
17974        } && test -s conftest.$ac_objext; then
17975   ac_cv_prog_cc_g=yes
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980         CFLAGS=""
17981       cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h.  */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h.  */
17987
17988 int
17989 main ()
17990 {
17991
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_compile") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } && {
18010          test -z "$ac_c_werror_flag" ||
18011          test ! -s conftest.err
18012        } && test -s conftest.$ac_objext; then
18013   :
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018         ac_c_werror_flag=$ac_save_c_werror_flag
18019          CFLAGS="-g"
18020          cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h.  */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h.  */
18026
18027 int
18028 main ()
18029 {
18030
18031   ;
18032   return 0;
18033 }
18034 _ACEOF
18035 rm -f conftest.$ac_objext
18036 if { (ac_try="$ac_compile"
18037 case "(($ac_try" in
18038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039   *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042   (eval "$ac_compile") 2>conftest.er1
18043   ac_status=$?
18044   grep -v '^ *+' conftest.er1 >conftest.err
18045   rm -f conftest.er1
18046   cat conftest.err >&5
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } && {
18049          test -z "$ac_c_werror_flag" ||
18050          test ! -s conftest.err
18051        } && test -s conftest.$ac_objext; then
18052   ac_cv_prog_cc_g=yes
18053 else
18054   echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057
18058 fi
18059
18060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 fi
18065
18066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067    ac_c_werror_flag=$ac_save_c_werror_flag
18068 fi
18069 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18070 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18071 if test "$ac_test_CFLAGS" = set; then
18072   CFLAGS=$ac_save_CFLAGS
18073 elif test $ac_cv_prog_cc_g = yes; then
18074   if test "$GCC" = yes; then
18075     CFLAGS="-g -O2"
18076   else
18077     CFLAGS="-g"
18078   fi
18079 else
18080   if test "$GCC" = yes; then
18081     CFLAGS="-O2"
18082   else
18083     CFLAGS=
18084   fi
18085 fi
18086             fi
18087         fi
18088
18089                         case `uname -s` in
18090             AIX*)
18091
18092
18093     ac_ext=cpp
18094 ac_cpp='$CXXCPP $CPPFLAGS'
18095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18098
18099     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18100 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18101 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h.  */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h.  */
18110
18111 int
18112 main ()
18113 {
18114
18115              #ifndef __xlC__
18116                 choke me
18117              #endif
18118
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (ac_try="$ac_compile"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_compile") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } && {
18137          test -z "$ac_cxx_werror_flag" ||
18138          test ! -s conftest.err
18139        } && test -s conftest.$ac_objext; then
18140   bakefile_cv_cxx_compiler___xlC__=yes
18141 else
18142   echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145         bakefile_cv_cxx_compiler___xlC__=no
18146
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150
18151
18152 fi
18153 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18154 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18155     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18156         :; XLCXX=yes
18157     else
18158         :;
18159     fi
18160     ac_ext=c
18161 ac_cpp='$CPP $CPPFLAGS'
18162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18165
18166
18167
18168                 ;;
18169
18170             Darwin)
18171
18172
18173     ac_ext=cpp
18174 ac_cpp='$CXXCPP $CPPFLAGS'
18175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18178
18179     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18180 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18181 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184   cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h.  */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h.  */
18190
18191 int
18192 main ()
18193 {
18194
18195              #ifndef __MWERKS__
18196                 choke me
18197              #endif
18198
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (ac_try="$ac_compile"
18205 case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210   (eval "$ac_compile") 2>conftest.er1
18211   ac_status=$?
18212   grep -v '^ *+' conftest.er1 >conftest.err
18213   rm -f conftest.er1
18214   cat conftest.err >&5
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } && {
18217          test -z "$ac_cxx_werror_flag" ||
18218          test ! -s conftest.err
18219        } && test -s conftest.$ac_objext; then
18220   bakefile_cv_cxx_compiler___MWERKS__=yes
18221 else
18222   echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225         bakefile_cv_cxx_compiler___MWERKS__=no
18226
18227 fi
18228
18229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18230
18231
18232 fi
18233 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18234 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18235     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18236         :; MWCXX=yes
18237     else
18238         :;
18239     fi
18240     ac_ext=c
18241 ac_cpp='$CPP $CPPFLAGS'
18242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245
18246
18247
18248                 if test "$MWCXX" != "yes"; then
18249
18250
18251     ac_ext=cpp
18252 ac_cpp='$CXXCPP $CPPFLAGS'
18253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18256
18257     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18258 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18259 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262   cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268
18269 int
18270 main ()
18271 {
18272
18273              #ifndef __xlC__
18274                 choke me
18275              #endif
18276
18277   ;
18278   return 0;
18279 }
18280 _ACEOF
18281 rm -f conftest.$ac_objext
18282 if { (ac_try="$ac_compile"
18283 case "(($ac_try" in
18284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285   *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288   (eval "$ac_compile") 2>conftest.er1
18289   ac_status=$?
18290   grep -v '^ *+' conftest.er1 >conftest.err
18291   rm -f conftest.er1
18292   cat conftest.err >&5
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); } && {
18295          test -z "$ac_cxx_werror_flag" ||
18296          test ! -s conftest.err
18297        } && test -s conftest.$ac_objext; then
18298   bakefile_cv_cxx_compiler___xlC__=yes
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303         bakefile_cv_cxx_compiler___xlC__=no
18304
18305 fi
18306
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308
18309
18310 fi
18311 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18312 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18313     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18314         :; XLCXX=yes
18315     else
18316         :;
18317     fi
18318     ac_ext=c
18319 ac_cpp='$CPP $CPPFLAGS'
18320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18323
18324
18325
18326                 fi
18327                 ;;
18328
18329             IRIX*)
18330
18331
18332     ac_ext=cpp
18333 ac_cpp='$CXXCPP $CPPFLAGS'
18334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18337
18338     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18339 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18340 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349
18350 int
18351 main ()
18352 {
18353
18354              #ifndef _SGI_COMPILER_VERSION
18355                 choke me
18356              #endif
18357
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest.$ac_objext
18363 if { (ac_try="$ac_compile"
18364 case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369   (eval "$ac_compile") 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } && {
18376          test -z "$ac_cxx_werror_flag" ||
18377          test ! -s conftest.err
18378        } && test -s conftest.$ac_objext; then
18379   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18380 else
18381   echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18385
18386 fi
18387
18388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18389
18390
18391 fi
18392 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18393 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18394     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18395         :; SGICXX=yes
18396     else
18397         :;
18398     fi
18399     ac_ext=c
18400 ac_cpp='$CPP $CPPFLAGS'
18401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404
18405
18406
18407                 ;;
18408
18409             Linux*)
18410                                                 if test "$INTELCXX" != "yes"; then
18411
18412
18413     ac_ext=cpp
18414 ac_cpp='$CXXCPP $CPPFLAGS'
18415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18418
18419     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18420 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18421 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18422   echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424   cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430
18431 int
18432 main ()
18433 {
18434
18435              #ifndef __SUNPRO_CC
18436                 choke me
18437              #endif
18438
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 rm -f conftest.$ac_objext
18444 if { (ac_try="$ac_compile"
18445 case "(($ac_try" in
18446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447   *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450   (eval "$ac_compile") 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } && {
18457          test -z "$ac_cxx_werror_flag" ||
18458          test ! -s conftest.err
18459        } && test -s conftest.$ac_objext; then
18460   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18461 else
18462   echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18466
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470
18471
18472 fi
18473 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18474 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18475     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18476         :; SUNCXX=yes
18477     else
18478         :;
18479     fi
18480     ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485
18486
18487
18488                 fi
18489                 ;;
18490
18491             HP-UX*)
18492
18493
18494     ac_ext=cpp
18495 ac_cpp='$CXXCPP $CPPFLAGS'
18496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18499
18500     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18501 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18502 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18503   echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505   cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h.  */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h.  */
18511
18512 int
18513 main ()
18514 {
18515
18516              #ifndef __HP_aCC
18517                 choke me
18518              #endif
18519
18520   ;
18521   return 0;
18522 }
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528   *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531   (eval "$ac_compile") 2>conftest.er1
18532   ac_status=$?
18533   grep -v '^ *+' conftest.er1 >conftest.err
18534   rm -f conftest.er1
18535   cat conftest.err >&5
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); } && {
18538          test -z "$ac_cxx_werror_flag" ||
18539          test ! -s conftest.err
18540        } && test -s conftest.$ac_objext; then
18541   bakefile_cv_cxx_compiler___HP_aCC=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546         bakefile_cv_cxx_compiler___HP_aCC=no
18547
18548 fi
18549
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551
18552
18553 fi
18554 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18555 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18556     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18557         :; HPCXX=yes
18558     else
18559         :;
18560     fi
18561     ac_ext=c
18562 ac_cpp='$CPP $CPPFLAGS'
18563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18566
18567
18568
18569                 ;;
18570
18571             OSF1)
18572
18573
18574     ac_ext=cpp
18575 ac_cpp='$CXXCPP $CPPFLAGS'
18576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18579
18580     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18581 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18582 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 int
18593 main ()
18594 {
18595
18596              #ifndef __DECCXX
18597                 choke me
18598              #endif
18599
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 rm -f conftest.$ac_objext
18605 if { (ac_try="$ac_compile"
18606 case "(($ac_try" in
18607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608   *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611   (eval "$ac_compile") 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } && {
18618          test -z "$ac_cxx_werror_flag" ||
18619          test ! -s conftest.err
18620        } && test -s conftest.$ac_objext; then
18621   bakefile_cv_cxx_compiler___DECCXX=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626         bakefile_cv_cxx_compiler___DECCXX=no
18627
18628 fi
18629
18630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631
18632
18633 fi
18634 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18635 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18636     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18637         :; COMPAQCXX=yes
18638     else
18639         :;
18640     fi
18641     ac_ext=c
18642 ac_cpp='$CPP $CPPFLAGS'
18643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18646
18647
18648
18649                 ;;
18650
18651             SunOS)
18652
18653
18654     ac_ext=cpp
18655 ac_cpp='$CXXCPP $CPPFLAGS'
18656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659
18660     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18661 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18662 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18663   echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665   cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h.  */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h.  */
18671
18672 int
18673 main ()
18674 {
18675
18676              #ifndef __SUNPRO_CC
18677                 choke me
18678              #endif
18679
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext
18685 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
18699          test ! -s conftest.err
18700        } && test -s conftest.$ac_objext; then
18701   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18702 else
18703   echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18707
18708 fi
18709
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711
18712
18713 fi
18714 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18715 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18716     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18717         :; SUNCXX=yes
18718     else
18719         :;
18720     fi
18721     ac_ext=c
18722 ac_cpp='$CPP $CPPFLAGS'
18723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18726
18727
18728
18729                 ;;
18730         esac
18731     fi
18732
18733
18734
18735 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18736     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18737 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18738    { (exit 1); exit 1; }; }
18739 fi
18740
18741 if test "x$SUNCXX" != xyes; then
18742     if test -n "$ac_tool_prefix"; then
18743   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18744 set dummy ${ac_tool_prefix}ar; ac_word=$2
18745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18747 if test "${ac_cv_prog_AR+set}" = set; then
18748   echo $ECHO_N "(cached) $ECHO_C" >&6
18749 else
18750   if test -n "$AR"; then
18751   ac_cv_prog_AR="$AR" # Let the user override the test.
18752 else
18753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754 for as_dir in $PATH
18755 do
18756   IFS=$as_save_IFS
18757   test -z "$as_dir" && as_dir=.
18758   for ac_exec_ext in '' $ac_executable_extensions; do
18759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18760     ac_cv_prog_AR="${ac_tool_prefix}ar"
18761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18762     break 2
18763   fi
18764 done
18765 done
18766 IFS=$as_save_IFS
18767
18768 fi
18769 fi
18770 AR=$ac_cv_prog_AR
18771 if test -n "$AR"; then
18772   { echo "$as_me:$LINENO: result: $AR" >&5
18773 echo "${ECHO_T}$AR" >&6; }
18774 else
18775   { echo "$as_me:$LINENO: result: no" >&5
18776 echo "${ECHO_T}no" >&6; }
18777 fi
18778
18779
18780 fi
18781 if test -z "$ac_cv_prog_AR"; then
18782   ac_ct_AR=$AR
18783   # Extract the first word of "ar", so it can be a program name with args.
18784 set dummy ar; ac_word=$2
18785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18787 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790   if test -n "$ac_ct_AR"; then
18791   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18792 else
18793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794 for as_dir in $PATH
18795 do
18796   IFS=$as_save_IFS
18797   test -z "$as_dir" && as_dir=.
18798   for ac_exec_ext in '' $ac_executable_extensions; do
18799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18800     ac_cv_prog_ac_ct_AR="ar"
18801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18802     break 2
18803   fi
18804 done
18805 done
18806 IFS=$as_save_IFS
18807
18808 fi
18809 fi
18810 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18811 if test -n "$ac_ct_AR"; then
18812   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18813 echo "${ECHO_T}$ac_ct_AR" >&6; }
18814 else
18815   { echo "$as_me:$LINENO: result: no" >&5
18816 echo "${ECHO_T}no" >&6; }
18817 fi
18818
18819   if test "x$ac_ct_AR" = x; then
18820     AR=""
18821   else
18822     case $cross_compiling:$ac_tool_warned in
18823 yes:)
18824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18825 whose name does not start with the host triplet.  If you think this
18826 configuration is useful to you, please write to autoconf@gnu.org." >&5
18827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18828 whose name does not start with the host triplet.  If you think this
18829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18830 ac_tool_warned=yes ;;
18831 esac
18832     AR=$ac_ct_AR
18833   fi
18834 else
18835   AR="$ac_cv_prog_AR"
18836 fi
18837
18838     if test "x$AR" = "x" ; then
18839         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18840 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18841    { (exit 1); exit 1; }; }
18842     fi
18843 fi
18844
18845
18846 if test "$wxUSE_MAC" = 1; then
18847
18848 retest_macosx_linking=no
18849
18850 OSX_ARCH_OPTS=""
18851 if test "x$wxUSE_MAC_ARCH" != xno; then
18852     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
18853 fi
18854
18855     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18856                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18857             # Implicitly turn on the new --with-macosx-sdk using the default
18858             # SDK which provides the behaviour this option has always had.
18859             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18860                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18861 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18862                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18863 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18864                 wxUSE_MACOSX_SDK=yes
18865             fi
18866         else
18867             # Complain to user if he specified an argument to --enable-universal_binary
18868             # and also 1) specified --with-macosx-sdk using the default (yes) or
18869             # 2) specified --with-macosx-sdk using a path or 3) specified
18870             # --without-macosx-sdk (no).
18871             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18872                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18873 See \`config.log' for more details." >&5
18874 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18875 See \`config.log' for more details." >&2;}
18876    { (exit 1); exit 1; }; }
18877             else
18878                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18879                 # special-case the empty string because the below test simply
18880                 # converts "no" to the empty string anyway.
18881                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18882                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18883 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18884             fi
18885         fi
18886                 OSX_ARCH_OPTS="-arch ppc -arch i386"
18887         if test "$wxUSE_OSX_COCOA" = 1; then
18888             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
18889         fi
18890         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
18891 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
18892         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
18893 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
18894
18895                                                                                                                 retest_macosx_linking=yes
18896
18897                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18898 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18899         bk_use_pch=no
18900     fi
18901
18902 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
18903 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
18904 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
18905 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
18906 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
18907
18908 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18909     wxUSE_MACOSX_SDK=
18910 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18911     # TODO: Search for most recent SDK and use it.
18912     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18913 fi
18914
18915
18916 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18917     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18918 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18919     if ! test -d "$wxUSE_MACOSX_SDK"; then
18920         { { echo "$as_me:$LINENO: error: not found
18921 See \`config.log' for more details." >&5
18922 echo "$as_me: error: not found
18923 See \`config.log' for more details." >&2;}
18924    { (exit 1); exit 1; }; }
18925     else
18926         { echo "$as_me:$LINENO: result: exists" >&5
18927 echo "${ECHO_T}exists" >&6; }
18928     fi
18929     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18930     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18931     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18932     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18933     retest_macosx_linking=yes
18934             fi
18935
18936 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18937     wxUSE_MACOSX_VERSION_MIN=
18938 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18939     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18940         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18941 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18942
18943         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/'`
18944
18945         # If that failed, try again with the new key
18946         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18947
18948             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/'`
18949
18950         fi
18951
18952         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18953             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18954             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18955 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18956         else
18957             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18958 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18959             wxUSE_MACOSX_VERSION_MIN=
18960         fi
18961     else
18962         wxUSE_MACOSX_VERSION_MIN=
18963     fi
18964 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18965     for ac_prog in sw_vers
18966 do
18967   # Extract the first word of "$ac_prog", so it can be a program name with args.
18968 set dummy $ac_prog; ac_word=$2
18969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18971 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
18972   echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974   if test -n "$OSX_SW_VERS"; then
18975   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
18976 else
18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $PATH
18979 do
18980   IFS=$as_save_IFS
18981   test -z "$as_dir" && as_dir=.
18982   for ac_exec_ext in '' $ac_executable_extensions; do
18983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18984     ac_cv_prog_OSX_SW_VERS="$ac_prog"
18985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986     break 2
18987   fi
18988 done
18989 done
18990 IFS=$as_save_IFS
18991
18992 fi
18993 fi
18994 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
18995 if test -n "$OSX_SW_VERS"; then
18996   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
18997 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
18998 else
18999   { echo "$as_me:$LINENO: result: no" >&5
19000 echo "${ECHO_T}no" >&6; }
19001 fi
19002
19003
19004   test -n "$OSX_SW_VERS" && break
19005 done
19006
19007     if test "$OSX_SW_VERS" != ""; then
19008         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19009     else
19010                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19011 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19012         OSX_VERSION="10.4"
19013     fi
19014
19015     case "$OSX_VERSION" in
19016         10.4* )
19017             wxUSE_MACOSX_VERSION_MIN=10.4
19018             ;;
19019
19020         * )
19021             if test "$wxUSE_OSX_CARBON" = 1; then
19022                 # otherwise configure stops on leopard for universal_binary
19023                 wxUSE_MACOSX_VERSION_MIN=10.4
19024             else
19025                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19026                 wxUSE_MACOSX_VERSION_MIN=10.5
19027             fi
19028             ;;
19029     esac
19030 fi
19031
19032 NEEDS_GCC40="no"
19033 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19034     NEEDS_GCC40="yes"
19035 fi
19036
19037 if test "$wxUSE_OSX_CARBON" = 1; then
19038     NEEDS_GCC40="yes"
19039 fi
19040
19041 if test "x$NEEDS_GCC40" == "xyes"; then
19042     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19043     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19044     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19045     if test "x$CC" = "xgcc"; then
19046         CCVERSION=`$CC --version | grep 4.[2-9].`
19047         if test "x$CCVERSION" != "x"; then
19048             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19049             CC="/usr/bin/gcc-4.0"
19050         fi
19051     fi
19052
19053     if test "x$CXX" = "xg++"; then
19054         CCVERSION=`$CXX --version | grep 4.[2-9].`
19055         if test "x$CCVERSION" != "x"; then
19056             CXX="/usr/bin/g++-4.0"
19057         fi
19058     fi
19059 fi
19060
19061 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19062     if test "$wxUSE_OSX_IPHONE" = 1; then
19063         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19064     else
19065         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19066     fi
19067     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19068     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19069     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19070     retest_macosx_linking=yes
19071 fi
19072
19073 if test "x$retest_macosx_linking" = "xyes"; then
19074     ac_ext=c
19075 ac_cpp='$CPP $CPPFLAGS'
19076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19079
19080     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19081 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19082     cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089 int
19090 main ()
19091 {
19092
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest.$ac_objext conftest$ac_exeext
19098 if { (ac_try="$ac_link"
19099 case "(($ac_try" in
19100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101   *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104   (eval "$ac_link") 2>conftest.er1
19105   ac_status=$?
19106   grep -v '^ *+' conftest.er1 >conftest.err
19107   rm -f conftest.er1
19108   cat conftest.err >&5
19109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); } && {
19111          test -z "$ac_c_werror_flag" ||
19112          test ! -s conftest.err
19113        } && test -s conftest$ac_exeext &&
19114        $as_test_x conftest$ac_exeext; then
19115   { echo "$as_me:$LINENO: result: yes" >&5
19116 echo "${ECHO_T}yes" >&6; }
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19122 See \`config.log' for more details." >&5
19123 echo "$as_me: error: no.  Try a different SDK
19124 See \`config.log' for more details." >&2;}
19125    { (exit 1); exit 1; }; }; exit 1
19126 fi
19127
19128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19129       conftest$ac_exeext conftest.$ac_ext
19130     ac_ext=c
19131 ac_cpp='$CPP $CPPFLAGS'
19132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19135
19136
19137     ac_ext=cpp
19138 ac_cpp='$CXXCPP $CPPFLAGS'
19139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19142
19143     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19144 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19145     cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151
19152 int
19153 main ()
19154 {
19155
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164   *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167   (eval "$ac_link") 2>conftest.er1
19168   ac_status=$?
19169   grep -v '^ *+' conftest.er1 >conftest.err
19170   rm -f conftest.er1
19171   cat conftest.err >&5
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } && {
19174          test -z "$ac_cxx_werror_flag" ||
19175          test ! -s conftest.err
19176        } && test -s conftest$ac_exeext &&
19177        $as_test_x conftest$ac_exeext; then
19178   { echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6; }
19180 else
19181   echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19185 See \`config.log' for more details." >&5
19186 echo "$as_me: error: no.  Try a different SDK
19187 See \`config.log' for more details." >&2;}
19188    { (exit 1); exit 1; }; }; exit 1
19189 fi
19190
19191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19192       conftest$ac_exeext conftest.$ac_ext
19193     ac_ext=c
19194 ac_cpp='$CPP $CPPFLAGS'
19195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19198
19199 fi
19200
19201 fi
19202 case "${host}" in
19203
19204                 *-*-darwin* )
19205         INSTALL_PROGRAM="cp -fp"
19206         INSTALL_DATA="cp -fp"
19207         ;;
19208     *)
19209         ;;
19210 esac
19211
19212
19213 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19214     CXXFLAGS="-qunique $CXXFLAGS"
19215 fi
19216
19217 case "${host}" in
19218   powerpc-*-darwin* )
19219     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19220 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19221     cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227
19228 int
19229 main ()
19230 {
19231 #ifndef __POWERPC__
19232         choke me for lack of PowerPC
19233 #endif
19234
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_compile") 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } && {
19253          test -z "$ac_c_werror_flag" ||
19254          test ! -s conftest.err
19255        } && test -s conftest.$ac_objext; then
19256   { echo "$as_me:$LINENO: result: yes" >&5
19257 echo "${ECHO_T}yes" >&6; }
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262         { echo "$as_me:$LINENO: result: no" >&5
19263 echo "${ECHO_T}no" >&6; }
19264         cat >>confdefs.h <<\_ACEOF
19265 #define __POWERPC__ 1
19266 _ACEOF
19267
19268
19269 fi
19270
19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272   ;;
19273 esac
19274
19275 case "${host}" in
19276   *-*-darwin* )
19277     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19278 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19279     cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 #include <CoreFoundation/CFBase.h>
19286
19287 int
19288 main ()
19289 {
19290
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 rm -f conftest.$ac_objext
19296 if { (ac_try="$ac_compile"
19297 case "(($ac_try" in
19298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299   *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302   (eval "$ac_compile") 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } && {
19309          test -z "$ac_c_werror_flag" ||
19310          test ! -s conftest.err
19311        } && test -s conftest.$ac_objext; then
19312   { echo "$as_me:$LINENO: result: yes" >&5
19313 echo "${ECHO_T}yes" >&6; }
19314 else
19315   echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19317
19318         { echo "$as_me:$LINENO: result: no" >&5
19319 echo "${ECHO_T}no" >&6; }
19320         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19321 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19322         cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328 #define __CF_USE_FRAMEWORK_INCLUDES__
19329 #include <CoreFoundation/CFBase.h>
19330
19331 int
19332 main ()
19333 {
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_compile") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest.$ac_objext; then
19356   { echo "$as_me:$LINENO: result: yes" >&5
19357 echo "${ECHO_T}yes" >&6; }
19358                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19364 See \`config.log' for more details." >&5
19365 echo "$as_me: error: no.  CoreFoundation not available.
19366 See \`config.log' for more details." >&2;}
19367    { (exit 1); exit 1; }; }
19368
19369 fi
19370
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372
19373
19374 fi
19375
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377   ;;
19378 esac
19379
19380 wants_win32=0
19381 doesnt_want_win32=0
19382 case "${host}" in
19383   *-*-cygwin*)
19384       if test "$wxUSE_MSW" = 1 ; then
19385         wants_win32=1
19386       else
19387                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19388 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19389 if test "${wx_cv_nocygwin+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392
19393                 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h.  */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h.  */
19399
19400 int
19401 main ()
19402 {
19403
19404                         #ifdef __MINGW32__
19405                             choke me
19406                         #endif
19407
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 rm -f conftest.$ac_objext
19413 if { (ac_try="$ac_compile"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_compile") 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } && {
19426          test -z "$ac_c_werror_flag" ||
19427          test ! -s conftest.err
19428        } && test -s conftest.$ac_objext; then
19429   wx_cv_nocygwin=no
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434         wx_cv_nocygwin=yes
19435
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439
19440
19441 fi
19442 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19443 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19444
19445         if test "$wx_cv_nocygwin" = "yes"; then
19446             wants_win32=1
19447         else
19448             doesnt_want_win32=1
19449         fi
19450       fi
19451       if test "$wants_win32" = 1 ; then
19452         BAKEFILE_FORCE_PLATFORM=win32
19453       fi
19454   ;;
19455   *-*-mingw*)
19456       wants_win32=1
19457   ;;
19458 esac
19459
19460 if test "$wxUSE_WINE" = "yes"; then
19461     wants_win32=1
19462     LDFLAGS_GUI="-mwindows"
19463 fi
19464
19465 if test "$wants_win32" = 1 ; then
19466     USE_UNIX=0
19467     USE_WIN32=1
19468     cat >>confdefs.h <<\_ACEOF
19469 #define __WIN32__ 1
19470 _ACEOF
19471
19472     cat >>confdefs.h <<\_ACEOF
19473 #define __WIN95__ 1
19474 _ACEOF
19475
19476     cat >>confdefs.h <<\_ACEOF
19477 #define __WINDOWS__ 1
19478 _ACEOF
19479
19480     cat >>confdefs.h <<\_ACEOF
19481 #define __GNUWIN32__ 1
19482 _ACEOF
19483
19484     cat >>confdefs.h <<\_ACEOF
19485 #define STRICT 1
19486 _ACEOF
19487
19488 fi
19489 if test "$doesnt_want_win32" = 1 ; then
19490     USE_UNIX=1
19491     USE_WIN32=0
19492 fi
19493
19494 if test "$USE_UNIX" = 1 ; then
19495     wxUSE_UNIX=yes
19496     cat >>confdefs.h <<\_ACEOF
19497 #define __UNIX__ 1
19498 _ACEOF
19499
19500 fi
19501
19502 case "${host}" in
19503   *-pc-os2_emx | *-pc-os2-emx )
19504                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19505                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19506 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19507 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lcExt  $LIBS"
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518
19519 /* Override any GCC internal prototype to avoid an error.
19520    Use char because int might match the return type of a GCC
19521    builtin and then its argument prototype would still apply.  */
19522 #ifdef __cplusplus
19523 extern "C"
19524 #endif
19525 char drand48 ();
19526 int
19527 main ()
19528 {
19529 return drand48 ();
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541   (eval "$ac_link") 2>conftest.er1
19542   ac_status=$?
19543   grep -v '^ *+' conftest.er1 >conftest.err
19544   rm -f conftest.er1
19545   cat conftest.err >&5
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); } && {
19548          test -z "$ac_c_werror_flag" ||
19549          test ! -s conftest.err
19550        } && test -s conftest$ac_exeext &&
19551        $as_test_x conftest$ac_exeext; then
19552   ac_cv_lib_cExt_drand48=yes
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557         ac_cv_lib_cExt_drand48=no
19558 fi
19559
19560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19561       conftest$ac_exeext conftest.$ac_ext
19562 LIBS=$ac_check_lib_save_LIBS
19563 fi
19564 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19565 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19566 if test $ac_cv_lib_cExt_drand48 = yes; then
19567   LIBS="$LIBS -lcExt"
19568 fi
19569
19570       else
19571                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19572       fi
19573                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19574 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19575 if test "${wx_cv_gccversion+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578
19579           if test "$cross_compiling" = yes; then
19580                 wx_cv_gccversion="EMX2"
19581
19582 else
19583   cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589
19590                   #include <stdio.h>
19591
19592                   int main()
19593                   {
19594                       FILE *f=fopen("conftestval", "w");
19595                       if (!f) exit(1);
19596                       fprintf(f,
19597                   #if (__GNUC__ < 3)
19598                               "EMX2"
19599                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19600                               "EMX3"
19601                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19602                               "Innotek5"
19603                   #else
19604                               "Innotek6"
19605                   #endif
19606                       );
19607                       exit(0);
19608                   }
19609
19610 _ACEOF
19611 rm -f conftest$ac_exeext
19612 if { (ac_try="$ac_link"
19613 case "(($ac_try" in
19614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615   *) ac_try_echo=$ac_try;;
19616 esac
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618   (eval "$ac_link") 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19622   { (case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_try") 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631   wx_cv_gccversion=`cat conftestval`
19632 else
19633   echo "$as_me: program exited with status $ac_status" >&5
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 ( exit $ac_status )
19638 wx_cv_gccversion="EMX2"
19639 fi
19640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19641 fi
19642
19643
19644
19645 fi
19646 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19647 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19648       if test "$wx_cv_gccversion" = "EMX2"; then
19649           LIBS="$LIBS -lstdcpp"
19650           LDFLAGS="$LDFLAGS -Zsysv-signals"
19651       else
19652           if test "$wx_cv_gccversion" = "EMX3"; then
19653               LIBS="$LIBS -lstdcxx -lgcc"
19654               LDFLAGS="$LDFLAGS -Zsysv-signals"
19655           else
19656               LIBS="$LIBS -lstdc++"
19657           fi
19658       fi
19659       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19660         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19661 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19662         wxUSE_OMF=yes
19663         enable_omf=yes
19664       fi
19665         ;;
19666   *)
19667
19668       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19669 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19670 if test "${ac_cv_string_strcasecmp+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673
19674           cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680
19681               #include <string.h>
19682
19683 int
19684 main ()
19685 {
19686
19687                   strcasecmp("foo", "bar");
19688
19689   ;
19690   return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest.$ac_objext conftest$ac_exeext
19694 if { (ac_try="$ac_link"
19695 case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_link") 2>conftest.er1
19701   ac_status=$?
19702   grep -v '^ *+' conftest.er1 >conftest.err
19703   rm -f conftest.er1
19704   cat conftest.err >&5
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); } && {
19707          test -z "$ac_c_werror_flag" ||
19708          test ! -s conftest.err
19709        } && test -s conftest$ac_exeext &&
19710        $as_test_x conftest$ac_exeext; then
19711   ac_cv_string_strcasecmp=yes
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716         ac_cv_string_strcasecmp=no
19717
19718 fi
19719
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721       conftest$ac_exeext conftest.$ac_ext
19722
19723 fi
19724 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19725 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19726
19727       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19728           cat >>confdefs.h <<\_ACEOF
19729 #define HAVE_STRCASECMP_IN_STRING_H 1
19730 _ACEOF
19731
19732       else
19733           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19734 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19735 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19736   echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738
19739               cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h.  */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h.  */
19745
19746                   #include <strings.h>
19747
19748 int
19749 main ()
19750 {
19751
19752                       strcasecmp("foo", "bar");
19753
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_link") 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } && {
19772          test -z "$ac_c_werror_flag" ||
19773          test ! -s conftest.err
19774        } && test -s conftest$ac_exeext &&
19775        $as_test_x conftest$ac_exeext; then
19776   ac_cv_strings_strcasecmp=yes
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781         ac_cv_strings_strcasecmp=no
19782
19783 fi
19784
19785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19786       conftest$ac_exeext conftest.$ac_ext
19787
19788 fi
19789 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19790 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19791
19792           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19793               cat >>confdefs.h <<\_ACEOF
19794 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19795 _ACEOF
19796
19797           else
19798               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19799 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19800    { (exit 1); exit 1; }; }
19801           fi
19802       fi
19803
19804         ;;
19805 esac
19806
19807
19808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19810 if test "${ac_cv_header_stdc+set}" = set; then
19811   echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813   cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h.  */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h.  */
19819 #include <stdlib.h>
19820 #include <stdarg.h>
19821 #include <string.h>
19822 #include <float.h>
19823
19824 int
19825 main ()
19826 {
19827
19828   ;
19829   return 0;
19830 }
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836   *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839   (eval "$ac_compile") 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } && {
19846          test -z "$ac_c_werror_flag" ||
19847          test ! -s conftest.err
19848        } && test -s conftest.$ac_objext; then
19849   ac_cv_header_stdc=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854         ac_cv_header_stdc=no
19855 fi
19856
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858
19859 if test $ac_cv_header_stdc = yes; then
19860   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19861   cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h.  */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h.  */
19867 #include <string.h>
19868
19869 _ACEOF
19870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19871   $EGREP "memchr" >/dev/null 2>&1; then
19872   :
19873 else
19874   ac_cv_header_stdc=no
19875 fi
19876 rm -f conftest*
19877
19878 fi
19879
19880 if test $ac_cv_header_stdc = yes; then
19881   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19882   cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h.  */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h.  */
19888 #include <stdlib.h>
19889
19890 _ACEOF
19891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19892   $EGREP "free" >/dev/null 2>&1; then
19893   :
19894 else
19895   ac_cv_header_stdc=no
19896 fi
19897 rm -f conftest*
19898
19899 fi
19900
19901 if test $ac_cv_header_stdc = yes; then
19902   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19903   if test "$cross_compiling" = yes; then
19904   :
19905 else
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 #include <ctype.h>
19913 #include <stdlib.h>
19914 #if ((' ' & 0x0FF) == 0x020)
19915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19917 #else
19918 # define ISLOWER(c) \
19919                    (('a' <= (c) && (c) <= 'i') \
19920                      || ('j' <= (c) && (c) <= 'r') \
19921                      || ('s' <= (c) && (c) <= 'z'))
19922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19923 #endif
19924
19925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19926 int
19927 main ()
19928 {
19929   int i;
19930   for (i = 0; i < 256; i++)
19931     if (XOR (islower (i), ISLOWER (i))
19932         || toupper (i) != TOUPPER (i))
19933       return 2;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941   *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944   (eval "$ac_link") 2>&5
19945   ac_status=$?
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19948   { (case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_try") 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; }; then
19957   :
19958 else
19959   echo "$as_me: program exited with status $ac_status" >&5
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963 ( exit $ac_status )
19964 ac_cv_header_stdc=no
19965 fi
19966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19967 fi
19968
19969
19970 fi
19971 fi
19972 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19973 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19974 if test $ac_cv_header_stdc = yes; then
19975
19976 cat >>confdefs.h <<\_ACEOF
19977 #define STDC_HEADERS 1
19978 _ACEOF
19979
19980 fi
19981
19982 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19993                   inttypes.h stdint.h unistd.h
19994 do
19995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19999   echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001   cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007 $ac_includes_default
20008
20009 #include <$ac_header>
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_compile") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } && {
20025          test -z "$ac_c_werror_flag" ||
20026          test ! -s conftest.err
20027        } && test -s conftest.$ac_objext; then
20028   eval "$as_ac_Header=yes"
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         eval "$as_ac_Header=no"
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 fi
20038 ac_res=`eval echo '${'$as_ac_Header'}'`
20039                { echo "$as_me:$LINENO: result: $ac_res" >&5
20040 echo "${ECHO_T}$ac_res" >&6; }
20041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20042   cat >>confdefs.h <<_ACEOF
20043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20044 _ACEOF
20045
20046 fi
20047
20048 done
20049
20050
20051
20052
20053 for ac_header in langinfo.h wchar.h
20054 do
20055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 $ac_includes_default
20068
20069 #include <$ac_header>
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_compile") 2>conftest.er1
20079   ac_status=$?
20080   grep -v '^ *+' conftest.er1 >conftest.err
20081   rm -f conftest.er1
20082   cat conftest.err >&5
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); } && {
20085          test -z "$ac_c_werror_flag" ||
20086          test ! -s conftest.err
20087        } && test -s conftest.$ac_objext; then
20088   eval "$as_ac_Header=yes"
20089 else
20090   echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093         eval "$as_ac_Header=no"
20094 fi
20095
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 fi
20098 ac_res=`eval echo '${'$as_ac_Header'}'`
20099                { echo "$as_me:$LINENO: result: $ac_res" >&5
20100 echo "${ECHO_T}$ac_res" >&6; }
20101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20102   cat >>confdefs.h <<_ACEOF
20103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20104 _ACEOF
20105
20106 fi
20107
20108 done
20109
20110
20111 if test "$ac_cv_header_wchar_h" != "yes"; then
20112
20113 for ac_header in wcstr.h
20114 do
20115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20119   echo $ECHO_N "(cached) $ECHO_C" >&6
20120 else
20121   cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 $ac_includes_default
20128
20129 #include <$ac_header>
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_compile") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && {
20145          test -z "$ac_c_werror_flag" ||
20146          test ! -s conftest.err
20147        } && test -s conftest.$ac_objext; then
20148   eval "$as_ac_Header=yes"
20149 else
20150   echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153         eval "$as_ac_Header=no"
20154 fi
20155
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 fi
20158 ac_res=`eval echo '${'$as_ac_Header'}'`
20159                { echo "$as_me:$LINENO: result: $ac_res" >&5
20160 echo "${ECHO_T}$ac_res" >&6; }
20161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20162   cat >>confdefs.h <<_ACEOF
20163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20164 _ACEOF
20165
20166 fi
20167
20168 done
20169
20170 fi
20171
20172 case "${host}" in
20173   *-pc-os2_emx | *-pc-os2-emx )
20174                   if test $ac_cv_header_langinfo_h = "yes" \
20175                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20176                      -o "$wx_cv_gccversion" = "EMX3" \
20177                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20178           LIBS="$LIBS -lintl"
20179       fi
20180   ;;
20181 esac
20182
20183 if test "$USE_UNIX" = 1 ; then
20184
20185 for ac_header in sys/select.h
20186 do
20187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20191   echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193   cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 $ac_includes_default
20200
20201 #include <$ac_header>
20202 _ACEOF
20203 rm -f conftest.$ac_objext
20204 if { (ac_try="$ac_compile"
20205 case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210   (eval "$ac_compile") 2>conftest.er1
20211   ac_status=$?
20212   grep -v '^ *+' conftest.er1 >conftest.err
20213   rm -f conftest.er1
20214   cat conftest.err >&5
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } && {
20217          test -z "$ac_c_werror_flag" ||
20218          test ! -s conftest.err
20219        } && test -s conftest.$ac_objext; then
20220   eval "$as_ac_Header=yes"
20221 else
20222   echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225         eval "$as_ac_Header=no"
20226 fi
20227
20228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 fi
20230 ac_res=`eval echo '${'$as_ac_Header'}'`
20231                { echo "$as_me:$LINENO: result: $ac_res" >&5
20232 echo "${ECHO_T}$ac_res" >&6; }
20233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20234   cat >>confdefs.h <<_ACEOF
20235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20236 _ACEOF
20237
20238 fi
20239
20240 done
20241
20242 fi
20243
20244
20245 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20247 if test "${ac_cv_c_const+set}" = set; then
20248   echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250   cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256
20257 int
20258 main ()
20259 {
20260 /* FIXME: Include the comments suggested by Paul. */
20261 #ifndef __cplusplus
20262   /* Ultrix mips cc rejects this.  */
20263   typedef int charset[2];
20264   const charset cs;
20265   /* SunOS 4.1.1 cc rejects this.  */
20266   char const *const *pcpcc;
20267   char **ppc;
20268   /* NEC SVR4.0.2 mips cc rejects this.  */
20269   struct point {int x, y;};
20270   static struct point const zero = {0,0};
20271   /* AIX XL C 1.02.0.0 rejects this.
20272      It does not let you subtract one const X* pointer from another in
20273      an arm of an if-expression whose if-part is not a constant
20274      expression */
20275   const char *g = "string";
20276   pcpcc = &g + (g ? g-g : 0);
20277   /* HPUX 7.0 cc rejects these. */
20278   ++pcpcc;
20279   ppc = (char**) pcpcc;
20280   pcpcc = (char const *const *) ppc;
20281   { /* SCO 3.2v4 cc rejects this.  */
20282     char *t;
20283     char const *s = 0 ? (char *) 0 : (char const *) 0;
20284
20285     *t++ = 0;
20286     if (s) return 0;
20287   }
20288   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20289     int x[] = {25, 17};
20290     const int *foo = &x[0];
20291     ++foo;
20292   }
20293   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20294     typedef const int *iptr;
20295     iptr p = 0;
20296     ++p;
20297   }
20298   { /* AIX XL C 1.02.0.0 rejects this saying
20299        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20300     struct s { int j; const int *ap[3]; };
20301     struct s *b; b->j = 5;
20302   }
20303   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20304     const int foo = 10;
20305     if (!foo) return 0;
20306   }
20307   return !cs[0] && !zero.x;
20308 #endif
20309
20310   ;
20311   return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (ac_try="$ac_compile"
20316 case "(($ac_try" in
20317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318   *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321   (eval "$ac_compile") 2>conftest.er1
20322   ac_status=$?
20323   grep -v '^ *+' conftest.er1 >conftest.err
20324   rm -f conftest.er1
20325   cat conftest.err >&5
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); } && {
20328          test -z "$ac_c_werror_flag" ||
20329          test ! -s conftest.err
20330        } && test -s conftest.$ac_objext; then
20331   ac_cv_c_const=yes
20332 else
20333   echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336         ac_cv_c_const=no
20337 fi
20338
20339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340 fi
20341 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20342 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20343 if test $ac_cv_c_const = no; then
20344
20345 cat >>confdefs.h <<\_ACEOF
20346 #define const
20347 _ACEOF
20348
20349 fi
20350
20351 { echo "$as_me:$LINENO: checking for inline" >&5
20352 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20353 if test "${ac_cv_c_inline+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   ac_cv_c_inline=no
20357 for ac_kw in inline __inline__ __inline; do
20358   cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 #ifndef __cplusplus
20365 typedef int foo_t;
20366 static $ac_kw foo_t static_foo () {return 0; }
20367 $ac_kw foo_t foo () {return 0; }
20368 #endif
20369
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } && {
20385          test -z "$ac_c_werror_flag" ||
20386          test ! -s conftest.err
20387        } && test -s conftest.$ac_objext; then
20388   ac_cv_c_inline=$ac_kw
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393
20394 fi
20395
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397   test "$ac_cv_c_inline" != no && break
20398 done
20399
20400 fi
20401 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20402 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20403
20404
20405 case $ac_cv_c_inline in
20406   inline | yes) ;;
20407   *)
20408     case $ac_cv_c_inline in
20409       no) ac_val=;;
20410       *) ac_val=$ac_cv_c_inline;;
20411     esac
20412     cat >>confdefs.h <<_ACEOF
20413 #ifndef __cplusplus
20414 #define inline $ac_val
20415 #endif
20416 _ACEOF
20417     ;;
20418 esac
20419
20420
20421 { echo "$as_me:$LINENO: checking for short" >&5
20422 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20423 if test "${ac_cv_type_short+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432 $ac_includes_default
20433 typedef short ac__type_new_;
20434 int
20435 main ()
20436 {
20437 if ((ac__type_new_ *) 0)
20438   return 0;
20439 if (sizeof (ac__type_new_))
20440   return 0;
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_compile") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } && {
20459          test -z "$ac_c_werror_flag" ||
20460          test ! -s conftest.err
20461        } && test -s conftest.$ac_objext; then
20462   ac_cv_type_short=yes
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467         ac_cv_type_short=no
20468 fi
20469
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471 fi
20472 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20473 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20474
20475 # The cast to long int works around a bug in the HP C Compiler
20476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20478 # This bug is HP SR number 8606223364.
20479 { echo "$as_me:$LINENO: checking size of short" >&5
20480 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20481 if test "${ac_cv_sizeof_short+set}" = set; then
20482   echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484   if test "$cross_compiling" = yes; then
20485   # Depending upon the size, compute the lo and hi bounds.
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492 $ac_includes_default
20493    typedef short ac__type_sizeof_;
20494 int
20495 main ()
20496 {
20497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20498 test_array [0] = 0
20499
20500   ;
20501   return 0;
20502 }
20503 _ACEOF
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508   *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511   (eval "$ac_compile") 2>conftest.er1
20512   ac_status=$?
20513   grep -v '^ *+' conftest.er1 >conftest.err
20514   rm -f conftest.er1
20515   cat conftest.err >&5
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); } && {
20518          test -z "$ac_c_werror_flag" ||
20519          test ! -s conftest.err
20520        } && test -s conftest.$ac_objext; then
20521   ac_lo=0 ac_mid=0
20522   while :; do
20523     cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529 $ac_includes_default
20530    typedef short ac__type_sizeof_;
20531 int
20532 main ()
20533 {
20534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20535 test_array [0] = 0
20536
20537   ;
20538   return 0;
20539 }
20540 _ACEOF
20541 rm -f conftest.$ac_objext
20542 if { (ac_try="$ac_compile"
20543 case "(($ac_try" in
20544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545   *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548   (eval "$ac_compile") 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } && {
20555          test -z "$ac_c_werror_flag" ||
20556          test ! -s conftest.err
20557        } && test -s conftest.$ac_objext; then
20558   ac_hi=$ac_mid; break
20559 else
20560   echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563         ac_lo=`expr $ac_mid + 1`
20564                         if test $ac_lo -le $ac_mid; then
20565                           ac_lo= ac_hi=
20566                           break
20567                         fi
20568                         ac_mid=`expr 2 '*' $ac_mid + 1`
20569 fi
20570
20571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572   done
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577         cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583 $ac_includes_default
20584    typedef short ac__type_sizeof_;
20585 int
20586 main ()
20587 {
20588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20589 test_array [0] = 0
20590
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext
20596 if { (ac_try="$ac_compile"
20597 case "(($ac_try" in
20598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599   *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602   (eval "$ac_compile") 2>conftest.er1
20603   ac_status=$?
20604   grep -v '^ *+' conftest.er1 >conftest.err
20605   rm -f conftest.er1
20606   cat conftest.err >&5
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } && {
20609          test -z "$ac_c_werror_flag" ||
20610          test ! -s conftest.err
20611        } && test -s conftest.$ac_objext; then
20612   ac_hi=-1 ac_mid=-1
20613   while :; do
20614     cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 $ac_includes_default
20621    typedef short ac__type_sizeof_;
20622 int
20623 main ()
20624 {
20625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20626 test_array [0] = 0
20627
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_compile") 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } && {
20646          test -z "$ac_c_werror_flag" ||
20647          test ! -s conftest.err
20648        } && test -s conftest.$ac_objext; then
20649   ac_lo=$ac_mid; break
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654         ac_hi=`expr '(' $ac_mid ')' - 1`
20655                         if test $ac_mid -le $ac_hi; then
20656                           ac_lo= ac_hi=
20657                           break
20658                         fi
20659                         ac_mid=`expr 2 '*' $ac_mid`
20660 fi
20661
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663   done
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         ac_lo= ac_hi=
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 fi
20673
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675 # Binary search between lo and hi bounds.
20676 while test "x$ac_lo" != "x$ac_hi"; do
20677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 $ac_includes_default
20685    typedef short ac__type_sizeof_;
20686 int
20687 main ()
20688 {
20689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20690 test_array [0] = 0
20691
20692   ;
20693   return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && {
20710          test -z "$ac_c_werror_flag" ||
20711          test ! -s conftest.err
20712        } && test -s conftest.$ac_objext; then
20713   ac_hi=$ac_mid
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718         ac_lo=`expr '(' $ac_mid ')' + 1`
20719 fi
20720
20721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20722 done
20723 case $ac_lo in
20724 ?*) ac_cv_sizeof_short=$ac_lo;;
20725 '') if test "$ac_cv_type_short" = yes; then
20726      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20727 See \`config.log' for more details." >&5
20728 echo "$as_me: error: cannot compute sizeof (short)
20729 See \`config.log' for more details." >&2;}
20730    { (exit 77); exit 77; }; }
20731    else
20732      ac_cv_sizeof_short=0
20733    fi ;;
20734 esac
20735 else
20736   cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 $ac_includes_default
20743    typedef short ac__type_sizeof_;
20744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20746 #include <stdio.h>
20747 #include <stdlib.h>
20748 int
20749 main ()
20750 {
20751
20752   FILE *f = fopen ("conftest.val", "w");
20753   if (! f)
20754     return 1;
20755   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20756     {
20757       long int i = longval ();
20758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20759         return 1;
20760       fprintf (f, "%ld\n", i);
20761     }
20762   else
20763     {
20764       unsigned long int i = ulongval ();
20765       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20766         return 1;
20767       fprintf (f, "%lu\n", i);
20768     }
20769   return ferror (f) || fclose (f) != 0;
20770
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_link") 2>&5
20783   ac_status=$?
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20786   { (case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791   (eval "$ac_try") 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; }; then
20795   ac_cv_sizeof_short=`cat conftest.val`
20796 else
20797   echo "$as_me: program exited with status $ac_status" >&5
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 ( exit $ac_status )
20802 if test "$ac_cv_type_short" = yes; then
20803      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20804 See \`config.log' for more details." >&5
20805 echo "$as_me: error: cannot compute sizeof (short)
20806 See \`config.log' for more details." >&2;}
20807    { (exit 77); exit 77; }; }
20808    else
20809      ac_cv_sizeof_short=0
20810    fi
20811 fi
20812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20813 fi
20814 rm -f conftest.val
20815 fi
20816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20817 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20818
20819
20820
20821 cat >>confdefs.h <<_ACEOF
20822 #define SIZEOF_SHORT $ac_cv_sizeof_short
20823 _ACEOF
20824
20825
20826 { echo "$as_me:$LINENO: checking for void *" >&5
20827 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20828 if test "${ac_cv_type_void_p+set}" = set; then
20829   echo $ECHO_N "(cached) $ECHO_C" >&6
20830 else
20831   cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 $ac_includes_default
20838 typedef void * ac__type_new_;
20839 int
20840 main ()
20841 {
20842 if ((ac__type_new_ *) 0)
20843   return 0;
20844 if (sizeof (ac__type_new_))
20845   return 0;
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest.$ac_objext; then
20867   ac_cv_type_void_p=yes
20868 else
20869   echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872         ac_cv_type_void_p=no
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 fi
20877 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20878 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20879
20880 # The cast to long int works around a bug in the HP C Compiler
20881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20883 # This bug is HP SR number 8606223364.
20884 { echo "$as_me:$LINENO: checking size of void *" >&5
20885 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20886 if test "${ac_cv_sizeof_void_p+set}" = set; then
20887   echo $ECHO_N "(cached) $ECHO_C" >&6
20888 else
20889   if test "$cross_compiling" = yes; then
20890   # Depending upon the size, compute the lo and hi bounds.
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h.  */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h.  */
20897 $ac_includes_default
20898    typedef void * ac__type_sizeof_;
20899 int
20900 main ()
20901 {
20902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20903 test_array [0] = 0
20904
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913   *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916   (eval "$ac_compile") 2>conftest.er1
20917   ac_status=$?
20918   grep -v '^ *+' conftest.er1 >conftest.err
20919   rm -f conftest.er1
20920   cat conftest.err >&5
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); } && {
20923          test -z "$ac_c_werror_flag" ||
20924          test ! -s conftest.err
20925        } && test -s conftest.$ac_objext; then
20926   ac_lo=0 ac_mid=0
20927   while :; do
20928     cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 $ac_includes_default
20935    typedef void * ac__type_sizeof_;
20936 int
20937 main ()
20938 {
20939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20940 test_array [0] = 0
20941
20942   ;
20943   return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext
20947 if { (ac_try="$ac_compile"
20948 case "(($ac_try" in
20949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950   *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953   (eval "$ac_compile") 2>conftest.er1
20954   ac_status=$?
20955   grep -v '^ *+' conftest.er1 >conftest.err
20956   rm -f conftest.er1
20957   cat conftest.err >&5
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); } && {
20960          test -z "$ac_c_werror_flag" ||
20961          test ! -s conftest.err
20962        } && test -s conftest.$ac_objext; then
20963   ac_hi=$ac_mid; break
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968         ac_lo=`expr $ac_mid + 1`
20969                         if test $ac_lo -le $ac_mid; then
20970                           ac_lo= ac_hi=
20971                           break
20972                         fi
20973                         ac_mid=`expr 2 '*' $ac_mid + 1`
20974 fi
20975
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977   done
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982         cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h.  */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h.  */
20988 $ac_includes_default
20989    typedef void * ac__type_sizeof_;
20990 int
20991 main ()
20992 {
20993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20994 test_array [0] = 0
20995
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004   *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007   (eval "$ac_compile") 2>conftest.er1
21008   ac_status=$?
21009   grep -v '^ *+' conftest.er1 >conftest.err
21010   rm -f conftest.er1
21011   cat conftest.err >&5
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); } && {
21014          test -z "$ac_c_werror_flag" ||
21015          test ! -s conftest.err
21016        } && test -s conftest.$ac_objext; then
21017   ac_hi=-1 ac_mid=-1
21018   while :; do
21019     cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 $ac_includes_default
21026    typedef void * ac__type_sizeof_;
21027 int
21028 main ()
21029 {
21030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21031 test_array [0] = 0
21032
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest.$ac_objext
21038 if { (ac_try="$ac_compile"
21039 case "(($ac_try" in
21040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041   *) ac_try_echo=$ac_try;;
21042 esac
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044   (eval "$ac_compile") 2>conftest.er1
21045   ac_status=$?
21046   grep -v '^ *+' conftest.er1 >conftest.err
21047   rm -f conftest.er1
21048   cat conftest.err >&5
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } && {
21051          test -z "$ac_c_werror_flag" ||
21052          test ! -s conftest.err
21053        } && test -s conftest.$ac_objext; then
21054   ac_lo=$ac_mid; break
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059         ac_hi=`expr '(' $ac_mid ')' - 1`
21060                         if test $ac_mid -le $ac_hi; then
21061                           ac_lo= ac_hi=
21062                           break
21063                         fi
21064                         ac_mid=`expr 2 '*' $ac_mid`
21065 fi
21066
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068   done
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073         ac_lo= ac_hi=
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 fi
21078
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 # Binary search between lo and hi bounds.
21081 while test "x$ac_lo" != "x$ac_hi"; do
21082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 $ac_includes_default
21090    typedef void * ac__type_sizeof_;
21091 int
21092 main ()
21093 {
21094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21095 test_array [0] = 0
21096
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_compile") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_c_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest.$ac_objext; then
21118   ac_hi=$ac_mid
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123         ac_lo=`expr '(' $ac_mid ')' + 1`
21124 fi
21125
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 done
21128 case $ac_lo in
21129 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21130 '') if test "$ac_cv_type_void_p" = yes; then
21131      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21132 See \`config.log' for more details." >&5
21133 echo "$as_me: error: cannot compute sizeof (void *)
21134 See \`config.log' for more details." >&2;}
21135    { (exit 77); exit 77; }; }
21136    else
21137      ac_cv_sizeof_void_p=0
21138    fi ;;
21139 esac
21140 else
21141   cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 $ac_includes_default
21148    typedef void * ac__type_sizeof_;
21149 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21150 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21151 #include <stdio.h>
21152 #include <stdlib.h>
21153 int
21154 main ()
21155 {
21156
21157   FILE *f = fopen ("conftest.val", "w");
21158   if (! f)
21159     return 1;
21160   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21161     {
21162       long int i = longval ();
21163       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21164         return 1;
21165       fprintf (f, "%ld\n", i);
21166     }
21167   else
21168     {
21169       unsigned long int i = ulongval ();
21170       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21171         return 1;
21172       fprintf (f, "%lu\n", i);
21173     }
21174   return ferror (f) || fclose (f) != 0;
21175
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 rm -f conftest$ac_exeext
21181 if { (ac_try="$ac_link"
21182 case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_link") 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21191   { (case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_try") 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); }; }; then
21200   ac_cv_sizeof_void_p=`cat conftest.val`
21201 else
21202   echo "$as_me: program exited with status $ac_status" >&5
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21205
21206 ( exit $ac_status )
21207 if test "$ac_cv_type_void_p" = yes; then
21208      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21209 See \`config.log' for more details." >&5
21210 echo "$as_me: error: cannot compute sizeof (void *)
21211 See \`config.log' for more details." >&2;}
21212    { (exit 77); exit 77; }; }
21213    else
21214      ac_cv_sizeof_void_p=0
21215    fi
21216 fi
21217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21218 fi
21219 rm -f conftest.val
21220 fi
21221 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21222 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21223
21224
21225
21226 cat >>confdefs.h <<_ACEOF
21227 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21228 _ACEOF
21229
21230
21231 { echo "$as_me:$LINENO: checking for int" >&5
21232 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21233 if test "${ac_cv_type_int+set}" = set; then
21234   echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236   cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242 $ac_includes_default
21243 typedef int ac__type_new_;
21244 int
21245 main ()
21246 {
21247 if ((ac__type_new_ *) 0)
21248   return 0;
21249 if (sizeof (ac__type_new_))
21250   return 0;
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_compile") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } && {
21269          test -z "$ac_c_werror_flag" ||
21270          test ! -s conftest.err
21271        } && test -s conftest.$ac_objext; then
21272   ac_cv_type_int=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277         ac_cv_type_int=no
21278 fi
21279
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 fi
21282 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21283 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21284
21285 # The cast to long int works around a bug in the HP C Compiler
21286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21288 # This bug is HP SR number 8606223364.
21289 { echo "$as_me:$LINENO: checking size of int" >&5
21290 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21291 if test "${ac_cv_sizeof_int+set}" = set; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294   if test "$cross_compiling" = yes; then
21295   # Depending upon the size, compute the lo and hi bounds.
21296 cat >conftest.$ac_ext <<_ACEOF
21297 /* confdefs.h.  */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h.  */
21302 $ac_includes_default
21303    typedef int ac__type_sizeof_;
21304 int
21305 main ()
21306 {
21307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21308 test_array [0] = 0
21309
21310   ;
21311   return 0;
21312 }
21313 _ACEOF
21314 rm -f conftest.$ac_objext
21315 if { (ac_try="$ac_compile"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_compile") 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } && {
21328          test -z "$ac_c_werror_flag" ||
21329          test ! -s conftest.err
21330        } && test -s conftest.$ac_objext; then
21331   ac_lo=0 ac_mid=0
21332   while :; do
21333     cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 $ac_includes_default
21340    typedef int ac__type_sizeof_;
21341 int
21342 main ()
21343 {
21344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21345 test_array [0] = 0
21346
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 rm -f conftest.$ac_objext
21352 if { (ac_try="$ac_compile"
21353 case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_compile") 2>conftest.er1
21359   ac_status=$?
21360   grep -v '^ *+' conftest.er1 >conftest.err
21361   rm -f conftest.er1
21362   cat conftest.err >&5
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } && {
21365          test -z "$ac_c_werror_flag" ||
21366          test ! -s conftest.err
21367        } && test -s conftest.$ac_objext; then
21368   ac_hi=$ac_mid; break
21369 else
21370   echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373         ac_lo=`expr $ac_mid + 1`
21374                         if test $ac_lo -le $ac_mid; then
21375                           ac_lo= ac_hi=
21376                           break
21377                         fi
21378                         ac_mid=`expr 2 '*' $ac_mid + 1`
21379 fi
21380
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21382   done
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387         cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 $ac_includes_default
21394    typedef int ac__type_sizeof_;
21395 int
21396 main ()
21397 {
21398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21399 test_array [0] = 0
21400
21401   ;
21402   return 0;
21403 }
21404 _ACEOF
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
21407 case "(($ac_try" in
21408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409   *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412   (eval "$ac_compile") 2>conftest.er1
21413   ac_status=$?
21414   grep -v '^ *+' conftest.er1 >conftest.err
21415   rm -f conftest.er1
21416   cat conftest.err >&5
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); } && {
21419          test -z "$ac_c_werror_flag" ||
21420          test ! -s conftest.err
21421        } && test -s conftest.$ac_objext; then
21422   ac_hi=-1 ac_mid=-1
21423   while :; do
21424     cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430 $ac_includes_default
21431    typedef int ac__type_sizeof_;
21432 int
21433 main ()
21434 {
21435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21436 test_array [0] = 0
21437
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_compile") 2>conftest.er1
21450   ac_status=$?
21451   grep -v '^ *+' conftest.er1 >conftest.err
21452   rm -f conftest.er1
21453   cat conftest.err >&5
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } && {
21456          test -z "$ac_c_werror_flag" ||
21457          test ! -s conftest.err
21458        } && test -s conftest.$ac_objext; then
21459   ac_lo=$ac_mid; break
21460 else
21461   echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21463
21464         ac_hi=`expr '(' $ac_mid ')' - 1`
21465                         if test $ac_mid -le $ac_hi; then
21466                           ac_lo= ac_hi=
21467                           break
21468                         fi
21469                         ac_mid=`expr 2 '*' $ac_mid`
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473   done
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478         ac_lo= ac_hi=
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 # Binary search between lo and hi bounds.
21486 while test "x$ac_lo" != "x$ac_hi"; do
21487   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21488   cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h.  */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h.  */
21494 $ac_includes_default
21495    typedef int ac__type_sizeof_;
21496 int
21497 main ()
21498 {
21499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21500 test_array [0] = 0
21501
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_compile") 2>conftest.er1
21514   ac_status=$?
21515   grep -v '^ *+' conftest.er1 >conftest.err
21516   rm -f conftest.er1
21517   cat conftest.err >&5
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } && {
21520          test -z "$ac_c_werror_flag" ||
21521          test ! -s conftest.err
21522        } && test -s conftest.$ac_objext; then
21523   ac_hi=$ac_mid
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528         ac_lo=`expr '(' $ac_mid ')' + 1`
21529 fi
21530
21531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532 done
21533 case $ac_lo in
21534 ?*) ac_cv_sizeof_int=$ac_lo;;
21535 '') if test "$ac_cv_type_int" = yes; then
21536      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21537 See \`config.log' for more details." >&5
21538 echo "$as_me: error: cannot compute sizeof (int)
21539 See \`config.log' for more details." >&2;}
21540    { (exit 77); exit 77; }; }
21541    else
21542      ac_cv_sizeof_int=0
21543    fi ;;
21544 esac
21545 else
21546   cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 $ac_includes_default
21553    typedef int ac__type_sizeof_;
21554 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21555 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21556 #include <stdio.h>
21557 #include <stdlib.h>
21558 int
21559 main ()
21560 {
21561
21562   FILE *f = fopen ("conftest.val", "w");
21563   if (! f)
21564     return 1;
21565   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21566     {
21567       long int i = longval ();
21568       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21569         return 1;
21570       fprintf (f, "%ld\n", i);
21571     }
21572   else
21573     {
21574       unsigned long int i = ulongval ();
21575       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21576         return 1;
21577       fprintf (f, "%lu\n", i);
21578     }
21579   return ferror (f) || fclose (f) != 0;
21580
21581   ;
21582   return 0;
21583 }
21584 _ACEOF
21585 rm -f conftest$ac_exeext
21586 if { (ac_try="$ac_link"
21587 case "(($ac_try" in
21588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589   *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592   (eval "$ac_link") 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21596   { (case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601   (eval "$ac_try") 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); }; }; then
21605   ac_cv_sizeof_int=`cat conftest.val`
21606 else
21607   echo "$as_me: program exited with status $ac_status" >&5
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611 ( exit $ac_status )
21612 if test "$ac_cv_type_int" = yes; then
21613      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21614 See \`config.log' for more details." >&5
21615 echo "$as_me: error: cannot compute sizeof (int)
21616 See \`config.log' for more details." >&2;}
21617    { (exit 77); exit 77; }; }
21618    else
21619      ac_cv_sizeof_int=0
21620    fi
21621 fi
21622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21623 fi
21624 rm -f conftest.val
21625 fi
21626 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21627 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21628
21629
21630
21631 cat >>confdefs.h <<_ACEOF
21632 #define SIZEOF_INT $ac_cv_sizeof_int
21633 _ACEOF
21634
21635
21636 { echo "$as_me:$LINENO: checking for long" >&5
21637 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21638 if test "${ac_cv_type_long+set}" = set; then
21639   echo $ECHO_N "(cached) $ECHO_C" >&6
21640 else
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 $ac_includes_default
21648 typedef long ac__type_new_;
21649 int
21650 main ()
21651 {
21652 if ((ac__type_new_ *) 0)
21653   return 0;
21654 if (sizeof (ac__type_new_))
21655   return 0;
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_compile") 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } && {
21674          test -z "$ac_c_werror_flag" ||
21675          test ! -s conftest.err
21676        } && test -s conftest.$ac_objext; then
21677   ac_cv_type_long=yes
21678 else
21679   echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682         ac_cv_type_long=no
21683 fi
21684
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 fi
21687 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21688 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21689
21690 # The cast to long int works around a bug in the HP C Compiler
21691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21693 # This bug is HP SR number 8606223364.
21694 { echo "$as_me:$LINENO: checking size of long" >&5
21695 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21696 if test "${ac_cv_sizeof_long+set}" = set; then
21697   echo $ECHO_N "(cached) $ECHO_C" >&6
21698 else
21699   if test "$cross_compiling" = yes; then
21700   # Depending upon the size, compute the lo and hi bounds.
21701 cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h.  */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h.  */
21707 $ac_includes_default
21708    typedef long ac__type_sizeof_;
21709 int
21710 main ()
21711 {
21712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21713 test_array [0] = 0
21714
21715   ;
21716   return 0;
21717 }
21718 _ACEOF
21719 rm -f conftest.$ac_objext
21720 if { (ac_try="$ac_compile"
21721 case "(($ac_try" in
21722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723   *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726   (eval "$ac_compile") 2>conftest.er1
21727   ac_status=$?
21728   grep -v '^ *+' conftest.er1 >conftest.err
21729   rm -f conftest.er1
21730   cat conftest.err >&5
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); } && {
21733          test -z "$ac_c_werror_flag" ||
21734          test ! -s conftest.err
21735        } && test -s conftest.$ac_objext; then
21736   ac_lo=0 ac_mid=0
21737   while :; do
21738     cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744 $ac_includes_default
21745    typedef long ac__type_sizeof_;
21746 int
21747 main ()
21748 {
21749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21750 test_array [0] = 0
21751
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_compile") 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } && {
21770          test -z "$ac_c_werror_flag" ||
21771          test ! -s conftest.err
21772        } && test -s conftest.$ac_objext; then
21773   ac_hi=$ac_mid; break
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         ac_lo=`expr $ac_mid + 1`
21779                         if test $ac_lo -le $ac_mid; then
21780                           ac_lo= ac_hi=
21781                           break
21782                         fi
21783                         ac_mid=`expr 2 '*' $ac_mid + 1`
21784 fi
21785
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787   done
21788 else
21789   echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792         cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 $ac_includes_default
21799    typedef long ac__type_sizeof_;
21800 int
21801 main ()
21802 {
21803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21804 test_array [0] = 0
21805
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (ac_try="$ac_compile"
21812 case "(($ac_try" in
21813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814   *) ac_try_echo=$ac_try;;
21815 esac
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817   (eval "$ac_compile") 2>conftest.er1
21818   ac_status=$?
21819   grep -v '^ *+' conftest.er1 >conftest.err
21820   rm -f conftest.er1
21821   cat conftest.err >&5
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); } && {
21824          test -z "$ac_c_werror_flag" ||
21825          test ! -s conftest.err
21826        } && test -s conftest.$ac_objext; then
21827   ac_hi=-1 ac_mid=-1
21828   while :; do
21829     cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835 $ac_includes_default
21836    typedef long ac__type_sizeof_;
21837 int
21838 main ()
21839 {
21840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21841 test_array [0] = 0
21842
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851   *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854   (eval "$ac_compile") 2>conftest.er1
21855   ac_status=$?
21856   grep -v '^ *+' conftest.er1 >conftest.err
21857   rm -f conftest.er1
21858   cat conftest.err >&5
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); } && {
21861          test -z "$ac_c_werror_flag" ||
21862          test ! -s conftest.err
21863        } && test -s conftest.$ac_objext; then
21864   ac_lo=$ac_mid; break
21865 else
21866   echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869         ac_hi=`expr '(' $ac_mid ')' - 1`
21870                         if test $ac_mid -le $ac_hi; then
21871                           ac_lo= ac_hi=
21872                           break
21873                         fi
21874                         ac_mid=`expr 2 '*' $ac_mid`
21875 fi
21876
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878   done
21879 else
21880   echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883         ac_lo= ac_hi=
21884 fi
21885
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 # Binary search between lo and hi bounds.
21891 while test "x$ac_lo" != "x$ac_hi"; do
21892   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21893   cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899 $ac_includes_default
21900    typedef long ac__type_sizeof_;
21901 int
21902 main ()
21903 {
21904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21905 test_array [0] = 0
21906
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 rm -f conftest.$ac_objext
21912 if { (ac_try="$ac_compile"
21913 case "(($ac_try" in
21914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915   *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918   (eval "$ac_compile") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } && {
21925          test -z "$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        } && test -s conftest.$ac_objext; then
21928   ac_hi=$ac_mid
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933         ac_lo=`expr '(' $ac_mid ')' + 1`
21934 fi
21935
21936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21937 done
21938 case $ac_lo in
21939 ?*) ac_cv_sizeof_long=$ac_lo;;
21940 '') if test "$ac_cv_type_long" = yes; then
21941      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21942 See \`config.log' for more details." >&5
21943 echo "$as_me: error: cannot compute sizeof (long)
21944 See \`config.log' for more details." >&2;}
21945    { (exit 77); exit 77; }; }
21946    else
21947      ac_cv_sizeof_long=0
21948    fi ;;
21949 esac
21950 else
21951   cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h.  */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h.  */
21957 $ac_includes_default
21958    typedef long ac__type_sizeof_;
21959 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21960 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21961 #include <stdio.h>
21962 #include <stdlib.h>
21963 int
21964 main ()
21965 {
21966
21967   FILE *f = fopen ("conftest.val", "w");
21968   if (! f)
21969     return 1;
21970   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21971     {
21972       long int i = longval ();
21973       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21974         return 1;
21975       fprintf (f, "%ld\n", i);
21976     }
21977   else
21978     {
21979       unsigned long int i = ulongval ();
21980       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21981         return 1;
21982       fprintf (f, "%lu\n", i);
21983     }
21984   return ferror (f) || fclose (f) != 0;
21985
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest$ac_exeext
21991 if { (ac_try="$ac_link"
21992 case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_link") 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22001   { (case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_try") 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; }; then
22010   ac_cv_sizeof_long=`cat conftest.val`
22011 else
22012   echo "$as_me: program exited with status $ac_status" >&5
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 ( exit $ac_status )
22017 if test "$ac_cv_type_long" = yes; then
22018      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22019 See \`config.log' for more details." >&5
22020 echo "$as_me: error: cannot compute sizeof (long)
22021 See \`config.log' for more details." >&2;}
22022    { (exit 77); exit 77; }; }
22023    else
22024      ac_cv_sizeof_long=0
22025    fi
22026 fi
22027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 rm -f conftest.val
22030 fi
22031 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22032 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22033
22034
22035
22036 cat >>confdefs.h <<_ACEOF
22037 #define SIZEOF_LONG $ac_cv_sizeof_long
22038 _ACEOF
22039
22040
22041 { echo "$as_me:$LINENO: checking for size_t" >&5
22042 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22043 if test "${ac_cv_type_size_t+set}" = set; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046   cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h.  */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h.  */
22052 $ac_includes_default
22053 typedef size_t ac__type_new_;
22054 int
22055 main ()
22056 {
22057 if ((ac__type_new_ *) 0)
22058   return 0;
22059 if (sizeof (ac__type_new_))
22060   return 0;
22061   ;
22062   return 0;
22063 }
22064 _ACEOF
22065 rm -f conftest.$ac_objext
22066 if { (ac_try="$ac_compile"
22067 case "(($ac_try" in
22068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069   *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072   (eval "$ac_compile") 2>conftest.er1
22073   ac_status=$?
22074   grep -v '^ *+' conftest.er1 >conftest.err
22075   rm -f conftest.er1
22076   cat conftest.err >&5
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } && {
22079          test -z "$ac_c_werror_flag" ||
22080          test ! -s conftest.err
22081        } && test -s conftest.$ac_objext; then
22082   ac_cv_type_size_t=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087         ac_cv_type_size_t=no
22088 fi
22089
22090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091 fi
22092 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22093 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22094
22095 # The cast to long int works around a bug in the HP C Compiler
22096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22098 # This bug is HP SR number 8606223364.
22099 { echo "$as_me:$LINENO: checking size of size_t" >&5
22100 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22101 if test "${ac_cv_sizeof_size_t+set}" = set; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104   if test "$cross_compiling" = yes; then
22105   # Depending upon the size, compute the lo and hi bounds.
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 $ac_includes_default
22113    typedef size_t ac__type_sizeof_;
22114 int
22115 main ()
22116 {
22117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22118 test_array [0] = 0
22119
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128   *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131   (eval "$ac_compile") 2>conftest.er1
22132   ac_status=$?
22133   grep -v '^ *+' conftest.er1 >conftest.err
22134   rm -f conftest.er1
22135   cat conftest.err >&5
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); } && {
22138          test -z "$ac_c_werror_flag" ||
22139          test ! -s conftest.err
22140        } && test -s conftest.$ac_objext; then
22141   ac_lo=0 ac_mid=0
22142   while :; do
22143     cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 $ac_includes_default
22150    typedef size_t ac__type_sizeof_;
22151 int
22152 main ()
22153 {
22154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22155 test_array [0] = 0
22156
22157   ;
22158   return 0;
22159 }
22160 _ACEOF
22161 rm -f conftest.$ac_objext
22162 if { (ac_try="$ac_compile"
22163 case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168   (eval "$ac_compile") 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } && {
22175          test -z "$ac_c_werror_flag" ||
22176          test ! -s conftest.err
22177        } && test -s conftest.$ac_objext; then
22178   ac_hi=$ac_mid; break
22179 else
22180   echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183         ac_lo=`expr $ac_mid + 1`
22184                         if test $ac_lo -le $ac_mid; then
22185                           ac_lo= ac_hi=
22186                           break
22187                         fi
22188                         ac_mid=`expr 2 '*' $ac_mid + 1`
22189 fi
22190
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192   done
22193 else
22194   echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22196
22197         cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 $ac_includes_default
22204    typedef size_t ac__type_sizeof_;
22205 int
22206 main ()
22207 {
22208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22209 test_array [0] = 0
22210
22211   ;
22212   return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222   (eval "$ac_compile") 2>conftest.er1
22223   ac_status=$?
22224   grep -v '^ *+' conftest.er1 >conftest.err
22225   rm -f conftest.er1
22226   cat conftest.err >&5
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); } && {
22229          test -z "$ac_c_werror_flag" ||
22230          test ! -s conftest.err
22231        } && test -s conftest.$ac_objext; then
22232   ac_hi=-1 ac_mid=-1
22233   while :; do
22234     cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h.  */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h.  */
22240 $ac_includes_default
22241    typedef size_t ac__type_sizeof_;
22242 int
22243 main ()
22244 {
22245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22246 test_array [0] = 0
22247
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (ac_try="$ac_compile"
22254 case "(($ac_try" in
22255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256   *) ac_try_echo=$ac_try;;
22257 esac
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259   (eval "$ac_compile") 2>conftest.er1
22260   ac_status=$?
22261   grep -v '^ *+' conftest.er1 >conftest.err
22262   rm -f conftest.er1
22263   cat conftest.err >&5
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } && {
22266          test -z "$ac_c_werror_flag" ||
22267          test ! -s conftest.err
22268        } && test -s conftest.$ac_objext; then
22269   ac_lo=$ac_mid; break
22270 else
22271   echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274         ac_hi=`expr '(' $ac_mid ')' - 1`
22275                         if test $ac_mid -le $ac_hi; then
22276                           ac_lo= ac_hi=
22277                           break
22278                         fi
22279                         ac_mid=`expr 2 '*' $ac_mid`
22280 fi
22281
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283   done
22284 else
22285   echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288         ac_lo= ac_hi=
22289 fi
22290
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 # Binary search between lo and hi bounds.
22296 while test "x$ac_lo" != "x$ac_hi"; do
22297   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22298   cat >conftest.$ac_ext <<_ACEOF
22299 /* confdefs.h.  */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h.  */
22304 $ac_includes_default
22305    typedef size_t ac__type_sizeof_;
22306 int
22307 main ()
22308 {
22309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22310 test_array [0] = 0
22311
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 rm -f conftest.$ac_objext
22317 if { (ac_try="$ac_compile"
22318 case "(($ac_try" in
22319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320   *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323   (eval "$ac_compile") 2>conftest.er1
22324   ac_status=$?
22325   grep -v '^ *+' conftest.er1 >conftest.err
22326   rm -f conftest.er1
22327   cat conftest.err >&5
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); } && {
22330          test -z "$ac_c_werror_flag" ||
22331          test ! -s conftest.err
22332        } && test -s conftest.$ac_objext; then
22333   ac_hi=$ac_mid
22334 else
22335   echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338         ac_lo=`expr '(' $ac_mid ')' + 1`
22339 fi
22340
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 done
22343 case $ac_lo in
22344 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22345 '') if test "$ac_cv_type_size_t" = yes; then
22346      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22347 See \`config.log' for more details." >&5
22348 echo "$as_me: error: cannot compute sizeof (size_t)
22349 See \`config.log' for more details." >&2;}
22350    { (exit 77); exit 77; }; }
22351    else
22352      ac_cv_sizeof_size_t=0
22353    fi ;;
22354 esac
22355 else
22356   cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 $ac_includes_default
22363    typedef size_t ac__type_sizeof_;
22364 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22365 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22366 #include <stdio.h>
22367 #include <stdlib.h>
22368 int
22369 main ()
22370 {
22371
22372   FILE *f = fopen ("conftest.val", "w");
22373   if (! f)
22374     return 1;
22375   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22376     {
22377       long int i = longval ();
22378       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22379         return 1;
22380       fprintf (f, "%ld\n", i);
22381     }
22382   else
22383     {
22384       unsigned long int i = ulongval ();
22385       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22386         return 1;
22387       fprintf (f, "%lu\n", i);
22388     }
22389   return ferror (f) || fclose (f) != 0;
22390
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399   *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402   (eval "$ac_link") 2>&5
22403   ac_status=$?
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22406   { (case "(($ac_try" in
22407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408   *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411   (eval "$ac_try") 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; }; then
22415   ac_cv_sizeof_size_t=`cat conftest.val`
22416 else
22417   echo "$as_me: program exited with status $ac_status" >&5
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421 ( exit $ac_status )
22422 if test "$ac_cv_type_size_t" = yes; then
22423      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22424 See \`config.log' for more details." >&5
22425 echo "$as_me: error: cannot compute sizeof (size_t)
22426 See \`config.log' for more details." >&2;}
22427    { (exit 77); exit 77; }; }
22428    else
22429      ac_cv_sizeof_size_t=0
22430    fi
22431 fi
22432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22433 fi
22434 rm -f conftest.val
22435 fi
22436 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22437 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22438
22439
22440
22441 cat >>confdefs.h <<_ACEOF
22442 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22443 _ACEOF
22444
22445
22446
22447 case "${host}" in
22448     arm-*-linux* )
22449         { echo "$as_me:$LINENO: checking for long long" >&5
22450 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22451 if test "${ac_cv_type_long_long+set}" = set; then
22452   echo $ECHO_N "(cached) $ECHO_C" >&6
22453 else
22454   cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h.  */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h.  */
22460 $ac_includes_default
22461 typedef long long ac__type_new_;
22462 int
22463 main ()
22464 {
22465 if ((ac__type_new_ *) 0)
22466   return 0;
22467 if (sizeof (ac__type_new_))
22468   return 0;
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477   *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480   (eval "$ac_compile") 2>conftest.er1
22481   ac_status=$?
22482   grep -v '^ *+' conftest.er1 >conftest.err
22483   rm -f conftest.er1
22484   cat conftest.err >&5
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } && {
22487          test -z "$ac_c_werror_flag" ||
22488          test ! -s conftest.err
22489        } && test -s conftest.$ac_objext; then
22490   ac_cv_type_long_long=yes
22491 else
22492   echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495         ac_cv_type_long_long=no
22496 fi
22497
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 fi
22500 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22501 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22502
22503 # The cast to long int works around a bug in the HP C Compiler
22504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22506 # This bug is HP SR number 8606223364.
22507 { echo "$as_me:$LINENO: checking size of long long" >&5
22508 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22509 if test "${ac_cv_sizeof_long_long+set}" = set; then
22510   echo $ECHO_N "(cached) $ECHO_C" >&6
22511 else
22512   if test "$cross_compiling" = yes; then
22513   # Depending upon the size, compute the lo and hi bounds.
22514 cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h.  */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h.  */
22520 $ac_includes_default
22521    typedef long long ac__type_sizeof_;
22522 int
22523 main ()
22524 {
22525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22526 test_array [0] = 0
22527
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_compile") 2>conftest.er1
22540   ac_status=$?
22541   grep -v '^ *+' conftest.er1 >conftest.err
22542   rm -f conftest.er1
22543   cat conftest.err >&5
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } && {
22546          test -z "$ac_c_werror_flag" ||
22547          test ! -s conftest.err
22548        } && test -s conftest.$ac_objext; then
22549   ac_lo=0 ac_mid=0
22550   while :; do
22551     cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h.  */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h.  */
22557 $ac_includes_default
22558    typedef long long ac__type_sizeof_;
22559 int
22560 main ()
22561 {
22562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22563 test_array [0] = 0
22564
22565   ;
22566   return 0;
22567 }
22568 _ACEOF
22569 rm -f conftest.$ac_objext
22570 if { (ac_try="$ac_compile"
22571 case "(($ac_try" in
22572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573   *) ac_try_echo=$ac_try;;
22574 esac
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576   (eval "$ac_compile") 2>conftest.er1
22577   ac_status=$?
22578   grep -v '^ *+' conftest.er1 >conftest.err
22579   rm -f conftest.er1
22580   cat conftest.err >&5
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); } && {
22583          test -z "$ac_c_werror_flag" ||
22584          test ! -s conftest.err
22585        } && test -s conftest.$ac_objext; then
22586   ac_hi=$ac_mid; break
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591         ac_lo=`expr $ac_mid + 1`
22592                         if test $ac_lo -le $ac_mid; then
22593                           ac_lo= ac_hi=
22594                           break
22595                         fi
22596                         ac_mid=`expr 2 '*' $ac_mid + 1`
22597 fi
22598
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600   done
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605         cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 $ac_includes_default
22612    typedef long long ac__type_sizeof_;
22613 int
22614 main ()
22615 {
22616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22617 test_array [0] = 0
22618
22619   ;
22620   return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627   *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630   (eval "$ac_compile") 2>conftest.er1
22631   ac_status=$?
22632   grep -v '^ *+' conftest.er1 >conftest.err
22633   rm -f conftest.er1
22634   cat conftest.err >&5
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); } && {
22637          test -z "$ac_c_werror_flag" ||
22638          test ! -s conftest.err
22639        } && test -s conftest.$ac_objext; then
22640   ac_hi=-1 ac_mid=-1
22641   while :; do
22642     cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 $ac_includes_default
22649    typedef long long ac__type_sizeof_;
22650 int
22651 main ()
22652 {
22653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22654 test_array [0] = 0
22655
22656   ;
22657   return 0;
22658 }
22659 _ACEOF
22660 rm -f conftest.$ac_objext
22661 if { (ac_try="$ac_compile"
22662 case "(($ac_try" in
22663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664   *) ac_try_echo=$ac_try;;
22665 esac
22666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667   (eval "$ac_compile") 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } && {
22674          test -z "$ac_c_werror_flag" ||
22675          test ! -s conftest.err
22676        } && test -s conftest.$ac_objext; then
22677   ac_lo=$ac_mid; break
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682         ac_hi=`expr '(' $ac_mid ')' - 1`
22683                         if test $ac_mid -le $ac_hi; then
22684                           ac_lo= ac_hi=
22685                           break
22686                         fi
22687                         ac_mid=`expr 2 '*' $ac_mid`
22688 fi
22689
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691   done
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696         ac_lo= ac_hi=
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 fi
22701
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 # Binary search between lo and hi bounds.
22704 while test "x$ac_lo" != "x$ac_hi"; do
22705   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22706   cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712 $ac_includes_default
22713    typedef long long ac__type_sizeof_;
22714 int
22715 main ()
22716 {
22717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22718 test_array [0] = 0
22719
22720   ;
22721   return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728   *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731   (eval "$ac_compile") 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && {
22738          test -z "$ac_c_werror_flag" ||
22739          test ! -s conftest.err
22740        } && test -s conftest.$ac_objext; then
22741   ac_hi=$ac_mid
22742 else
22743   echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22745
22746         ac_lo=`expr '(' $ac_mid ')' + 1`
22747 fi
22748
22749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22750 done
22751 case $ac_lo in
22752 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22753 '') if test "$ac_cv_type_long_long" = yes; then
22754      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22755 See \`config.log' for more details." >&5
22756 echo "$as_me: error: cannot compute sizeof (long long)
22757 See \`config.log' for more details." >&2;}
22758    { (exit 77); exit 77; }; }
22759    else
22760      ac_cv_sizeof_long_long=0
22761    fi ;;
22762 esac
22763 else
22764   cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770 $ac_includes_default
22771    typedef long long ac__type_sizeof_;
22772 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22773 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22774 #include <stdio.h>
22775 #include <stdlib.h>
22776 int
22777 main ()
22778 {
22779
22780   FILE *f = fopen ("conftest.val", "w");
22781   if (! f)
22782     return 1;
22783   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22784     {
22785       long int i = longval ();
22786       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22787         return 1;
22788       fprintf (f, "%ld\n", i);
22789     }
22790   else
22791     {
22792       unsigned long int i = ulongval ();
22793       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22794         return 1;
22795       fprintf (f, "%lu\n", i);
22796     }
22797   return ferror (f) || fclose (f) != 0;
22798
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest$ac_exeext
22804 if { (ac_try="$ac_link"
22805 case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810   (eval "$ac_link") 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22814   { (case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_try") 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; }; then
22823   ac_cv_sizeof_long_long=`cat conftest.val`
22824 else
22825   echo "$as_me: program exited with status $ac_status" >&5
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 ( exit $ac_status )
22830 if test "$ac_cv_type_long_long" = yes; then
22831      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22832 See \`config.log' for more details." >&5
22833 echo "$as_me: error: cannot compute sizeof (long long)
22834 See \`config.log' for more details." >&2;}
22835    { (exit 77); exit 77; }; }
22836    else
22837      ac_cv_sizeof_long_long=0
22838    fi
22839 fi
22840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22841 fi
22842 rm -f conftest.val
22843 fi
22844 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22845 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22846
22847
22848
22849 cat >>confdefs.h <<_ACEOF
22850 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22851 _ACEOF
22852
22853
22854     ;;
22855     *-hp-hpux* )
22856         { echo "$as_me:$LINENO: checking for long long" >&5
22857 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22858 if test "${ac_cv_type_long_long+set}" = set; then
22859   echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861   cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867 $ac_includes_default
22868 typedef long long ac__type_new_;
22869 int
22870 main ()
22871 {
22872 if ((ac__type_new_ *) 0)
22873   return 0;
22874 if (sizeof (ac__type_new_))
22875   return 0;
22876   ;
22877   return 0;
22878 }
22879 _ACEOF
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884   *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887   (eval "$ac_compile") 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && {
22894          test -z "$ac_c_werror_flag" ||
22895          test ! -s conftest.err
22896        } && test -s conftest.$ac_objext; then
22897   ac_cv_type_long_long=yes
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902         ac_cv_type_long_long=no
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 fi
22907 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22908 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22909
22910 # The cast to long int works around a bug in the HP C Compiler
22911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22913 # This bug is HP SR number 8606223364.
22914 { echo "$as_me:$LINENO: checking size of long long" >&5
22915 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22916 if test "${ac_cv_sizeof_long_long+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919   if test "$cross_compiling" = yes; then
22920   # Depending upon the size, compute the lo and hi bounds.
22921 cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 $ac_includes_default
22928    typedef long long ac__type_sizeof_;
22929 int
22930 main ()
22931 {
22932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22933 test_array [0] = 0
22934
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946   (eval "$ac_compile") 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } && {
22953          test -z "$ac_c_werror_flag" ||
22954          test ! -s conftest.err
22955        } && test -s conftest.$ac_objext; then
22956   ac_lo=0 ac_mid=0
22957   while :; do
22958     cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964 $ac_includes_default
22965    typedef long long ac__type_sizeof_;
22966 int
22967 main ()
22968 {
22969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22970 test_array [0] = 0
22971
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_compile") 2>conftest.er1
22984   ac_status=$?
22985   grep -v '^ *+' conftest.er1 >conftest.err
22986   rm -f conftest.er1
22987   cat conftest.err >&5
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } && {
22990          test -z "$ac_c_werror_flag" ||
22991          test ! -s conftest.err
22992        } && test -s conftest.$ac_objext; then
22993   ac_hi=$ac_mid; break
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         ac_lo=`expr $ac_mid + 1`
22999                         if test $ac_lo -le $ac_mid; then
23000                           ac_lo= ac_hi=
23001                           break
23002                         fi
23003                         ac_mid=`expr 2 '*' $ac_mid + 1`
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007   done
23008 else
23009   echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012         cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018 $ac_includes_default
23019    typedef long long ac__type_sizeof_;
23020 int
23021 main ()
23022 {
23023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23024 test_array [0] = 0
23025
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034   *) ac_try_echo=$ac_try;;
23035 esac
23036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23037   (eval "$ac_compile") 2>conftest.er1
23038   ac_status=$?
23039   grep -v '^ *+' conftest.er1 >conftest.err
23040   rm -f conftest.er1
23041   cat conftest.err >&5
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); } && {
23044          test -z "$ac_c_werror_flag" ||
23045          test ! -s conftest.err
23046        } && test -s conftest.$ac_objext; then
23047   ac_hi=-1 ac_mid=-1
23048   while :; do
23049     cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055 $ac_includes_default
23056    typedef long long ac__type_sizeof_;
23057 int
23058 main ()
23059 {
23060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23061 test_array [0] = 0
23062
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071   *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074   (eval "$ac_compile") 2>conftest.er1
23075   ac_status=$?
23076   grep -v '^ *+' conftest.er1 >conftest.err
23077   rm -f conftest.er1
23078   cat conftest.err >&5
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); } && {
23081          test -z "$ac_c_werror_flag" ||
23082          test ! -s conftest.err
23083        } && test -s conftest.$ac_objext; then
23084   ac_lo=$ac_mid; break
23085 else
23086   echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089         ac_hi=`expr '(' $ac_mid ')' - 1`
23090                         if test $ac_mid -le $ac_hi; then
23091                           ac_lo= ac_hi=
23092                           break
23093                         fi
23094                         ac_mid=`expr 2 '*' $ac_mid`
23095 fi
23096
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098   done
23099 else
23100   echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23102
23103         ac_lo= ac_hi=
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107 fi
23108
23109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23110 # Binary search between lo and hi bounds.
23111 while test "x$ac_lo" != "x$ac_hi"; do
23112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23113   cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119 $ac_includes_default
23120    typedef long long ac__type_sizeof_;
23121 int
23122 main ()
23123 {
23124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23125 test_array [0] = 0
23126
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135   *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138   (eval "$ac_compile") 2>conftest.er1
23139   ac_status=$?
23140   grep -v '^ *+' conftest.er1 >conftest.err
23141   rm -f conftest.er1
23142   cat conftest.err >&5
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); } && {
23145          test -z "$ac_c_werror_flag" ||
23146          test ! -s conftest.err
23147        } && test -s conftest.$ac_objext; then
23148   ac_hi=$ac_mid
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153         ac_lo=`expr '(' $ac_mid ')' + 1`
23154 fi
23155
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 done
23158 case $ac_lo in
23159 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23160 '') if test "$ac_cv_type_long_long" = yes; then
23161      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23162 See \`config.log' for more details." >&5
23163 echo "$as_me: error: cannot compute sizeof (long long)
23164 See \`config.log' for more details." >&2;}
23165    { (exit 77); exit 77; }; }
23166    else
23167      ac_cv_sizeof_long_long=0
23168    fi ;;
23169 esac
23170 else
23171   cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h.  */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h.  */
23177 $ac_includes_default
23178    typedef long long ac__type_sizeof_;
23179 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23180 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23181 #include <stdio.h>
23182 #include <stdlib.h>
23183 int
23184 main ()
23185 {
23186
23187   FILE *f = fopen ("conftest.val", "w");
23188   if (! f)
23189     return 1;
23190   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23191     {
23192       long int i = longval ();
23193       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23194         return 1;
23195       fprintf (f, "%ld\n", i);
23196     }
23197   else
23198     {
23199       unsigned long int i = ulongval ();
23200       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23201         return 1;
23202       fprintf (f, "%lu\n", i);
23203     }
23204   return ferror (f) || fclose (f) != 0;
23205
23206   ;
23207   return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest$ac_exeext
23211 if { (ac_try="$ac_link"
23212 case "(($ac_try" in
23213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214   *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217   (eval "$ac_link") 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23221   { (case "(($ac_try" in
23222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223   *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226   (eval "$ac_try") 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; }; then
23230   ac_cv_sizeof_long_long=`cat conftest.val`
23231 else
23232   echo "$as_me: program exited with status $ac_status" >&5
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236 ( exit $ac_status )
23237 if test "$ac_cv_type_long_long" = yes; then
23238      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23239 See \`config.log' for more details." >&5
23240 echo "$as_me: error: cannot compute sizeof (long long)
23241 See \`config.log' for more details." >&2;}
23242    { (exit 77); exit 77; }; }
23243    else
23244      ac_cv_sizeof_long_long=0
23245    fi
23246 fi
23247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23248 fi
23249 rm -f conftest.val
23250 fi
23251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23252 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23253
23254
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23258 _ACEOF
23259
23260
23261         if test "$ac_cv_sizeof_long_long" != 0; then
23262                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23263         fi
23264     ;;
23265     * )
23266         { echo "$as_me:$LINENO: checking for long long" >&5
23267 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23268 if test "${ac_cv_type_long_long+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271   cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h.  */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h.  */
23277 $ac_includes_default
23278 typedef long long ac__type_new_;
23279 int
23280 main ()
23281 {
23282 if ((ac__type_new_ *) 0)
23283   return 0;
23284 if (sizeof (ac__type_new_))
23285   return 0;
23286   ;
23287   return 0;
23288 }
23289 _ACEOF
23290 rm -f conftest.$ac_objext
23291 if { (ac_try="$ac_compile"
23292 case "(($ac_try" in
23293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294   *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297   (eval "$ac_compile") 2>conftest.er1
23298   ac_status=$?
23299   grep -v '^ *+' conftest.er1 >conftest.err
23300   rm -f conftest.er1
23301   cat conftest.err >&5
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); } && {
23304          test -z "$ac_c_werror_flag" ||
23305          test ! -s conftest.err
23306        } && test -s conftest.$ac_objext; then
23307   ac_cv_type_long_long=yes
23308 else
23309   echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23311
23312         ac_cv_type_long_long=no
23313 fi
23314
23315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23316 fi
23317 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23318 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23319
23320 # The cast to long int works around a bug in the HP C Compiler
23321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23323 # This bug is HP SR number 8606223364.
23324 { echo "$as_me:$LINENO: checking size of long long" >&5
23325 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23326 if test "${ac_cv_sizeof_long_long+set}" = set; then
23327   echo $ECHO_N "(cached) $ECHO_C" >&6
23328 else
23329   if test "$cross_compiling" = yes; then
23330   # Depending upon the size, compute the lo and hi bounds.
23331 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 $ac_includes_default
23338    typedef long long ac__type_sizeof_;
23339 int
23340 main ()
23341 {
23342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23343 test_array [0] = 0
23344
23345   ;
23346   return 0;
23347 }
23348 _ACEOF
23349 rm -f conftest.$ac_objext
23350 if { (ac_try="$ac_compile"
23351 case "(($ac_try" in
23352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353   *) ac_try_echo=$ac_try;;
23354 esac
23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356   (eval "$ac_compile") 2>conftest.er1
23357   ac_status=$?
23358   grep -v '^ *+' conftest.er1 >conftest.err
23359   rm -f conftest.er1
23360   cat conftest.err >&5
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } && {
23363          test -z "$ac_c_werror_flag" ||
23364          test ! -s conftest.err
23365        } && test -s conftest.$ac_objext; then
23366   ac_lo=0 ac_mid=0
23367   while :; do
23368     cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374 $ac_includes_default
23375    typedef long long ac__type_sizeof_;
23376 int
23377 main ()
23378 {
23379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23380 test_array [0] = 0
23381
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_compile") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && {
23400          test -z "$ac_c_werror_flag" ||
23401          test ! -s conftest.err
23402        } && test -s conftest.$ac_objext; then
23403   ac_hi=$ac_mid; break
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ac_lo=`expr $ac_mid + 1`
23409                         if test $ac_lo -le $ac_mid; then
23410                           ac_lo= ac_hi=
23411                           break
23412                         fi
23413                         ac_mid=`expr 2 '*' $ac_mid + 1`
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417   done
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422         cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428 $ac_includes_default
23429    typedef long long ac__type_sizeof_;
23430 int
23431 main ()
23432 {
23433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23434 test_array [0] = 0
23435
23436   ;
23437   return 0;
23438 }
23439 _ACEOF
23440 rm -f conftest.$ac_objext
23441 if { (ac_try="$ac_compile"
23442 case "(($ac_try" in
23443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444   *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447   (eval "$ac_compile") 2>conftest.er1
23448   ac_status=$?
23449   grep -v '^ *+' conftest.er1 >conftest.err
23450   rm -f conftest.er1
23451   cat conftest.err >&5
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); } && {
23454          test -z "$ac_c_werror_flag" ||
23455          test ! -s conftest.err
23456        } && test -s conftest.$ac_objext; then
23457   ac_hi=-1 ac_mid=-1
23458   while :; do
23459     cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465 $ac_includes_default
23466    typedef long long ac__type_sizeof_;
23467 int
23468 main ()
23469 {
23470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23471 test_array [0] = 0
23472
23473   ;
23474   return 0;
23475 }
23476 _ACEOF
23477 rm -f conftest.$ac_objext
23478 if { (ac_try="$ac_compile"
23479 case "(($ac_try" in
23480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481   *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484   (eval "$ac_compile") 2>conftest.er1
23485   ac_status=$?
23486   grep -v '^ *+' conftest.er1 >conftest.err
23487   rm -f conftest.er1
23488   cat conftest.err >&5
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); } && {
23491          test -z "$ac_c_werror_flag" ||
23492          test ! -s conftest.err
23493        } && test -s conftest.$ac_objext; then
23494   ac_lo=$ac_mid; break
23495 else
23496   echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23498
23499         ac_hi=`expr '(' $ac_mid ')' - 1`
23500                         if test $ac_mid -le $ac_hi; then
23501                           ac_lo= ac_hi=
23502                           break
23503                         fi
23504                         ac_mid=`expr 2 '*' $ac_mid`
23505 fi
23506
23507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508   done
23509 else
23510   echo "$as_me: failed program was:" >&5
23511 sed 's/^/| /' conftest.$ac_ext >&5
23512
23513         ac_lo= ac_hi=
23514 fi
23515
23516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517 fi
23518
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520 # Binary search between lo and hi bounds.
23521 while test "x$ac_lo" != "x$ac_hi"; do
23522   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23523   cat >conftest.$ac_ext <<_ACEOF
23524 /* confdefs.h.  */
23525 _ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h.  */
23529 $ac_includes_default
23530    typedef long long ac__type_sizeof_;
23531 int
23532 main ()
23533 {
23534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23535 test_array [0] = 0
23536
23537   ;
23538   return 0;
23539 }
23540 _ACEOF
23541 rm -f conftest.$ac_objext
23542 if { (ac_try="$ac_compile"
23543 case "(($ac_try" in
23544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545   *) ac_try_echo=$ac_try;;
23546 esac
23547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548   (eval "$ac_compile") 2>conftest.er1
23549   ac_status=$?
23550   grep -v '^ *+' conftest.er1 >conftest.err
23551   rm -f conftest.er1
23552   cat conftest.err >&5
23553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); } && {
23555          test -z "$ac_c_werror_flag" ||
23556          test ! -s conftest.err
23557        } && test -s conftest.$ac_objext; then
23558   ac_hi=$ac_mid
23559 else
23560   echo "$as_me: failed program was:" >&5
23561 sed 's/^/| /' conftest.$ac_ext >&5
23562
23563         ac_lo=`expr '(' $ac_mid ')' + 1`
23564 fi
23565
23566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 done
23568 case $ac_lo in
23569 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23570 '') if test "$ac_cv_type_long_long" = yes; then
23571      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23572 See \`config.log' for more details." >&5
23573 echo "$as_me: error: cannot compute sizeof (long long)
23574 See \`config.log' for more details." >&2;}
23575    { (exit 77); exit 77; }; }
23576    else
23577      ac_cv_sizeof_long_long=0
23578    fi ;;
23579 esac
23580 else
23581   cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h.  */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h.  */
23587 $ac_includes_default
23588    typedef long long ac__type_sizeof_;
23589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23591 #include <stdio.h>
23592 #include <stdlib.h>
23593 int
23594 main ()
23595 {
23596
23597   FILE *f = fopen ("conftest.val", "w");
23598   if (! f)
23599     return 1;
23600   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23601     {
23602       long int i = longval ();
23603       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23604         return 1;
23605       fprintf (f, "%ld\n", i);
23606     }
23607   else
23608     {
23609       unsigned long int i = ulongval ();
23610       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23611         return 1;
23612       fprintf (f, "%lu\n", i);
23613     }
23614   return ferror (f) || fclose (f) != 0;
23615
23616   ;
23617   return 0;
23618 }
23619 _ACEOF
23620 rm -f conftest$ac_exeext
23621 if { (ac_try="$ac_link"
23622 case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627   (eval "$ac_link") 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23631   { (case "(($ac_try" in
23632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633   *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636   (eval "$ac_try") 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; }; then
23640   ac_cv_sizeof_long_long=`cat conftest.val`
23641 else
23642   echo "$as_me: program exited with status $ac_status" >&5
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 ( exit $ac_status )
23647 if test "$ac_cv_type_long_long" = yes; then
23648      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23649 See \`config.log' for more details." >&5
23650 echo "$as_me: error: cannot compute sizeof (long long)
23651 See \`config.log' for more details." >&2;}
23652    { (exit 77); exit 77; }; }
23653    else
23654      ac_cv_sizeof_long_long=0
23655    fi
23656 fi
23657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23658 fi
23659 rm -f conftest.val
23660 fi
23661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23662 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23663
23664
23665
23666 cat >>confdefs.h <<_ACEOF
23667 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23668 _ACEOF
23669
23670
23671 esac
23672
23673 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23674 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23675 if test "${ac_cv_type_wchar_t+set}" = set; then
23676   echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678   cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684
23685         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23686         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23687         #  error "fake wchar_t"
23688         #endif
23689         #ifdef HAVE_WCHAR_H
23690         #  ifdef __CYGWIN__
23691         #    include <stddef.h>
23692         #  endif
23693         #  include <wchar.h>
23694         #endif
23695         #ifdef HAVE_STDLIB_H
23696         #  include <stdlib.h>
23697         #endif
23698         #include <stdio.h>
23699
23700
23701
23702 typedef wchar_t ac__type_new_;
23703 int
23704 main ()
23705 {
23706 if ((ac__type_new_ *) 0)
23707   return 0;
23708 if (sizeof (ac__type_new_))
23709   return 0;
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718   *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721   (eval "$ac_compile") 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } && {
23728          test -z "$ac_c_werror_flag" ||
23729          test ! -s conftest.err
23730        } && test -s conftest.$ac_objext; then
23731   ac_cv_type_wchar_t=yes
23732 else
23733   echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736         ac_cv_type_wchar_t=no
23737 fi
23738
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 fi
23741 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23742 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23743
23744 # The cast to long int works around a bug in the HP C Compiler
23745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23747 # This bug is HP SR number 8606223364.
23748 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23749 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23750 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23751   echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753   if test "$cross_compiling" = yes; then
23754   # Depending upon the size, compute the lo and hi bounds.
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h.  */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h.  */
23761
23762         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23763         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23764         #  error "fake wchar_t"
23765         #endif
23766         #ifdef HAVE_WCHAR_H
23767         #  ifdef __CYGWIN__
23768         #    include <stddef.h>
23769         #  endif
23770         #  include <wchar.h>
23771         #endif
23772         #ifdef HAVE_STDLIB_H
23773         #  include <stdlib.h>
23774         #endif
23775         #include <stdio.h>
23776
23777
23778
23779    typedef wchar_t ac__type_sizeof_;
23780 int
23781 main ()
23782 {
23783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23784 test_array [0] = 0
23785
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794   *) ac_try_echo=$ac_try;;
23795 esac
23796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23797   (eval "$ac_compile") 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } && {
23804          test -z "$ac_c_werror_flag" ||
23805          test ! -s conftest.err
23806        } && test -s conftest.$ac_objext; then
23807   ac_lo=0 ac_mid=0
23808   while :; do
23809     cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815
23816         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23817         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23818         #  error "fake wchar_t"
23819         #endif
23820         #ifdef HAVE_WCHAR_H
23821         #  ifdef __CYGWIN__
23822         #    include <stddef.h>
23823         #  endif
23824         #  include <wchar.h>
23825         #endif
23826         #ifdef HAVE_STDLIB_H
23827         #  include <stdlib.h>
23828         #endif
23829         #include <stdio.h>
23830
23831
23832
23833    typedef wchar_t ac__type_sizeof_;
23834 int
23835 main ()
23836 {
23837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23838 test_array [0] = 0
23839
23840   ;
23841   return 0;
23842 }
23843 _ACEOF
23844 rm -f conftest.$ac_objext
23845 if { (ac_try="$ac_compile"
23846 case "(($ac_try" in
23847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848   *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851   (eval "$ac_compile") 2>conftest.er1
23852   ac_status=$?
23853   grep -v '^ *+' conftest.er1 >conftest.err
23854   rm -f conftest.er1
23855   cat conftest.err >&5
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); } && {
23858          test -z "$ac_c_werror_flag" ||
23859          test ! -s conftest.err
23860        } && test -s conftest.$ac_objext; then
23861   ac_hi=$ac_mid; break
23862 else
23863   echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866         ac_lo=`expr $ac_mid + 1`
23867                         if test $ac_lo -le $ac_mid; then
23868                           ac_lo= ac_hi=
23869                           break
23870                         fi
23871                         ac_mid=`expr 2 '*' $ac_mid + 1`
23872 fi
23873
23874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875   done
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880         cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h.  */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h.  */
23886
23887         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23888         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23889         #  error "fake wchar_t"
23890         #endif
23891         #ifdef HAVE_WCHAR_H
23892         #  ifdef __CYGWIN__
23893         #    include <stddef.h>
23894         #  endif
23895         #  include <wchar.h>
23896         #endif
23897         #ifdef HAVE_STDLIB_H
23898         #  include <stdlib.h>
23899         #endif
23900         #include <stdio.h>
23901
23902
23903
23904    typedef wchar_t ac__type_sizeof_;
23905 int
23906 main ()
23907 {
23908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23909 test_array [0] = 0
23910
23911   ;
23912   return 0;
23913 }
23914 _ACEOF
23915 rm -f conftest.$ac_objext
23916 if { (ac_try="$ac_compile"
23917 case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922   (eval "$ac_compile") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } && {
23929          test -z "$ac_c_werror_flag" ||
23930          test ! -s conftest.err
23931        } && test -s conftest.$ac_objext; then
23932   ac_hi=-1 ac_mid=-1
23933   while :; do
23934     cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940
23941         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23942         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23943         #  error "fake wchar_t"
23944         #endif
23945         #ifdef HAVE_WCHAR_H
23946         #  ifdef __CYGWIN__
23947         #    include <stddef.h>
23948         #  endif
23949         #  include <wchar.h>
23950         #endif
23951         #ifdef HAVE_STDLIB_H
23952         #  include <stdlib.h>
23953         #endif
23954         #include <stdio.h>
23955
23956
23957
23958    typedef wchar_t ac__type_sizeof_;
23959 int
23960 main ()
23961 {
23962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23963 test_array [0] = 0
23964
23965   ;
23966   return 0;
23967 }
23968 _ACEOF
23969 rm -f conftest.$ac_objext
23970 if { (ac_try="$ac_compile"
23971 case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976   (eval "$ac_compile") 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } && {
23983          test -z "$ac_c_werror_flag" ||
23984          test ! -s conftest.err
23985        } && test -s conftest.$ac_objext; then
23986   ac_lo=$ac_mid; break
23987 else
23988   echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23990
23991         ac_hi=`expr '(' $ac_mid ')' - 1`
23992                         if test $ac_mid -le $ac_hi; then
23993                           ac_lo= ac_hi=
23994                           break
23995                         fi
23996                         ac_mid=`expr 2 '*' $ac_mid`
23997 fi
23998
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000   done
24001 else
24002   echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005         ac_lo= ac_hi=
24006 fi
24007
24008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 fi
24010
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 # Binary search between lo and hi bounds.
24013 while test "x$ac_lo" != "x$ac_hi"; do
24014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24015   cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021
24022         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24023         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24024         #  error "fake wchar_t"
24025         #endif
24026         #ifdef HAVE_WCHAR_H
24027         #  ifdef __CYGWIN__
24028         #    include <stddef.h>
24029         #  endif
24030         #  include <wchar.h>
24031         #endif
24032         #ifdef HAVE_STDLIB_H
24033         #  include <stdlib.h>
24034         #endif
24035         #include <stdio.h>
24036
24037
24038
24039    typedef wchar_t ac__type_sizeof_;
24040 int
24041 main ()
24042 {
24043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24044 test_array [0] = 0
24045
24046   ;
24047   return 0;
24048 }
24049 _ACEOF
24050 rm -f conftest.$ac_objext
24051 if { (ac_try="$ac_compile"
24052 case "(($ac_try" in
24053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054   *) ac_try_echo=$ac_try;;
24055 esac
24056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24057   (eval "$ac_compile") 2>conftest.er1
24058   ac_status=$?
24059   grep -v '^ *+' conftest.er1 >conftest.err
24060   rm -f conftest.er1
24061   cat conftest.err >&5
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); } && {
24064          test -z "$ac_c_werror_flag" ||
24065          test ! -s conftest.err
24066        } && test -s conftest.$ac_objext; then
24067   ac_hi=$ac_mid
24068 else
24069   echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24071
24072         ac_lo=`expr '(' $ac_mid ')' + 1`
24073 fi
24074
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24076 done
24077 case $ac_lo in
24078 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24079 '') if test "$ac_cv_type_wchar_t" = yes; then
24080      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24081 See \`config.log' for more details." >&5
24082 echo "$as_me: error: cannot compute sizeof (wchar_t)
24083 See \`config.log' for more details." >&2;}
24084    { (exit 77); exit 77; }; }
24085    else
24086      ac_cv_sizeof_wchar_t=0
24087    fi ;;
24088 esac
24089 else
24090   cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096
24097         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24098         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24099         #  error "fake wchar_t"
24100         #endif
24101         #ifdef HAVE_WCHAR_H
24102         #  ifdef __CYGWIN__
24103         #    include <stddef.h>
24104         #  endif
24105         #  include <wchar.h>
24106         #endif
24107         #ifdef HAVE_STDLIB_H
24108         #  include <stdlib.h>
24109         #endif
24110         #include <stdio.h>
24111
24112
24113
24114    typedef wchar_t ac__type_sizeof_;
24115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24117 #include <stdio.h>
24118 #include <stdlib.h>
24119 int
24120 main ()
24121 {
24122
24123   FILE *f = fopen ("conftest.val", "w");
24124   if (! f)
24125     return 1;
24126   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24127     {
24128       long int i = longval ();
24129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24130         return 1;
24131       fprintf (f, "%ld\n", i);
24132     }
24133   else
24134     {
24135       unsigned long int i = ulongval ();
24136       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24137         return 1;
24138       fprintf (f, "%lu\n", i);
24139     }
24140   return ferror (f) || fclose (f) != 0;
24141
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146 rm -f conftest$ac_exeext
24147 if { (ac_try="$ac_link"
24148 case "(($ac_try" in
24149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150   *) ac_try_echo=$ac_try;;
24151 esac
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153   (eval "$ac_link") 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24157   { (case "(($ac_try" in
24158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159   *) ac_try_echo=$ac_try;;
24160 esac
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162   (eval "$ac_try") 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; }; then
24166   ac_cv_sizeof_wchar_t=`cat conftest.val`
24167 else
24168   echo "$as_me: program exited with status $ac_status" >&5
24169 echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172 ( exit $ac_status )
24173 if test "$ac_cv_type_wchar_t" = yes; then
24174      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24175 See \`config.log' for more details." >&5
24176 echo "$as_me: error: cannot compute sizeof (wchar_t)
24177 See \`config.log' for more details." >&2;}
24178    { (exit 77); exit 77; }; }
24179    else
24180      ac_cv_sizeof_wchar_t=0
24181    fi
24182 fi
24183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24184 fi
24185 rm -f conftest.val
24186 fi
24187 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24188 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24189
24190
24191
24192 cat >>confdefs.h <<_ACEOF
24193 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24194 _ACEOF
24195
24196
24197 if test "$ac_cv_sizeof_wchar_t" = 0; then
24198     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24199 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24200    { (exit 1); exit 1; }; }
24201 fi
24202 cat >>confdefs.h <<\_ACEOF
24203 #define wxUSE_WCHAR_T 1
24204 _ACEOF
24205
24206
24207 { echo "$as_me:$LINENO: checking for va_copy" >&5
24208 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24209 if test "${wx_cv_func_va_copy+set}" = set; then
24210   echo $ECHO_N "(cached) $ECHO_C" >&6
24211 else
24212
24213         ac_ext=cpp
24214 ac_cpp='$CXXCPP $CPPFLAGS'
24215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24218
24219         cat >conftest.$ac_ext <<_ACEOF
24220
24221             #include <stdarg.h>
24222             void foo(char *f, ...)
24223             {
24224                 va_list ap1, ap2;
24225                 va_start(ap1, f);
24226                 va_copy(ap2, ap1);
24227                 va_end(ap2);
24228                 va_end(ap1);
24229             }
24230             int main()
24231             {
24232                 foo("hi", 17);
24233                 return 0;
24234             }
24235 _ACEOF
24236 rm -f conftest.$ac_objext conftest$ac_exeext
24237 if { (ac_try="$ac_link"
24238 case "(($ac_try" in
24239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240   *) ac_try_echo=$ac_try;;
24241 esac
24242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24243   (eval "$ac_link") 2>conftest.er1
24244   ac_status=$?
24245   grep -v '^ *+' conftest.er1 >conftest.err
24246   rm -f conftest.er1
24247   cat conftest.err >&5
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); } && {
24250          test -z "$ac_cxx_werror_flag" ||
24251          test ! -s conftest.err
24252        } && test -s conftest$ac_exeext &&
24253        $as_test_x conftest$ac_exeext; then
24254   wx_cv_func_va_copy=yes
24255 else
24256   echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.$ac_ext >&5
24258
24259         wx_cv_func_va_copy=no
24260
24261 fi
24262
24263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24264       conftest$ac_exeext conftest.$ac_ext
24265         ac_ext=c
24266 ac_cpp='$CPP $CPPFLAGS'
24267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24270
24271
24272
24273 fi
24274 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24275 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24276
24277 if test $wx_cv_func_va_copy = "yes"; then
24278     cat >>confdefs.h <<\_ACEOF
24279 #define HAVE_VA_COPY 1
24280 _ACEOF
24281
24282 else
24283         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24284 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24285 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288
24289             if test "$cross_compiling" = yes; then
24290                   wx_cv_type_va_list_lvalue=yes
24291
24292 else
24293   cat >conftest.$ac_ext <<_ACEOF
24294
24295                 #include <stdarg.h>
24296                 int foo(char *f, ...)
24297                 {
24298                     va_list ap1, ap2;
24299                     va_start(ap1, f);
24300                     ap2 = ap1;
24301                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24302                         return 1;
24303                     va_end(ap2);
24304                     va_end(ap1);
24305                     return 0;
24306                 }
24307                 int main()
24308                 {
24309                     return foo("hi", 17);
24310                 }
24311 _ACEOF
24312 rm -f conftest$ac_exeext
24313 if { (ac_try="$ac_link"
24314 case "(($ac_try" in
24315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316   *) ac_try_echo=$ac_try;;
24317 esac
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319   (eval "$ac_link") 2>&5
24320   ac_status=$?
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24323   { (case "(($ac_try" in
24324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325   *) ac_try_echo=$ac_try;;
24326 esac
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328   (eval "$ac_try") 2>&5
24329   ac_status=$?
24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331   (exit $ac_status); }; }; then
24332   wx_cv_type_va_list_lvalue=yes
24333 else
24334   echo "$as_me: program exited with status $ac_status" >&5
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24337
24338 ( exit $ac_status )
24339 wx_cv_type_va_list_lvalue=no
24340 fi
24341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24342 fi
24343
24344
24345
24346
24347 fi
24348 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24349 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24350
24351     if test $wx_cv_type_va_list_lvalue != "yes"; then
24352                         cat >>confdefs.h <<\_ACEOF
24353 #define VA_LIST_IS_ARRAY 1
24354 _ACEOF
24355
24356     fi
24357 fi
24358
24359 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24360
24361 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24362 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24363 if test "${wx_cv_have_variadic_macros+set}" = set; then
24364   echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366
24367                         ac_ext=cpp
24368 ac_cpp='$CXXCPP $CPPFLAGS'
24369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24372
24373         cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h.  */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h.  */
24379
24380                     #include <stdio.h>
24381                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24382
24383 int
24384 main ()
24385 {
24386
24387                     test("%s %d %p", "test", 1, 0);
24388
24389
24390   ;
24391   return 0;
24392 }
24393 _ACEOF
24394 rm -f conftest.$ac_objext
24395 if { (ac_try="$ac_compile"
24396 case "(($ac_try" in
24397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398   *) ac_try_echo=$ac_try;;
24399 esac
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401   (eval "$ac_compile") 2>conftest.er1
24402   ac_status=$?
24403   grep -v '^ *+' conftest.er1 >conftest.err
24404   rm -f conftest.er1
24405   cat conftest.err >&5
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); } && {
24408          test -z "$ac_cxx_werror_flag" ||
24409          test ! -s conftest.err
24410        } && test -s conftest.$ac_objext; then
24411   wx_cv_have_variadic_macros=yes
24412 else
24413   echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24415
24416         wx_cv_have_variadic_macros=no
24417
24418 fi
24419
24420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24421         ac_ext=c
24422 ac_cpp='$CPP $CPPFLAGS'
24423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24426
24427
24428
24429 fi
24430 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24431 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24432
24433 if test $wx_cv_have_variadic_macros = "yes"; then
24434     cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_VARIADIC_MACROS 1
24436 _ACEOF
24437
24438 fi
24439
24440 fi
24441
24442 LARGEFILE_CPPFLAGS=
24443 # Check whether --enable-largefile was given.
24444 if test "${enable_largefile+set}" = set; then
24445   enableval=$enable_largefile;
24446 fi
24447
24448 if test "$enable_largefile" != no; then
24449             wx_largefile=no
24450
24451     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24452 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24453 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24454   echo $ECHO_N "(cached) $ECHO_C" >&6
24455 else
24456
24457           cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h.  */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h.  */
24463 #define _FILE_OFFSET_BITS 64
24464                           #include <sys/types.h>
24465 int
24466 main ()
24467 {
24468 typedef struct {
24469     unsigned int field: sizeof(off_t) == 8;
24470 } wxlf;
24471
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483   (eval "$ac_compile") 2>conftest.er1
24484   ac_status=$?
24485   grep -v '^ *+' conftest.er1 >conftest.err
24486   rm -f conftest.er1
24487   cat conftest.err >&5
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } && {
24490          test -z "$ac_c_werror_flag" ||
24491          test ! -s conftest.err
24492        } && test -s conftest.$ac_objext; then
24493   ac_cv_sys_file_offset_bits=64
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         ac_cv_sys_file_offset_bits=no
24499 fi
24500
24501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24502
24503
24504 fi
24505 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24506 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24507
24508     if test "$ac_cv_sys_file_offset_bits" != no; then
24509         wx_largefile=yes
24510         cat >>confdefs.h <<_ACEOF
24511 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24512 _ACEOF
24513
24514     fi
24515
24516     if test "x$wx_largefile" != "xyes"; then
24517
24518     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24519 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24520 if test "${ac_cv_sys_large_files+set}" = set; then
24521   echo $ECHO_N "(cached) $ECHO_C" >&6
24522 else
24523
24524           cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 #define _LARGE_FILES 1
24531                           #include <sys/types.h>
24532 int
24533 main ()
24534 {
24535 typedef struct {
24536     unsigned int field: sizeof(off_t) == 8;
24537 } wxlf;
24538
24539   ;
24540   return 0;
24541 }
24542 _ACEOF
24543 rm -f conftest.$ac_objext
24544 if { (ac_try="$ac_compile"
24545 case "(($ac_try" in
24546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547   *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550   (eval "$ac_compile") 2>conftest.er1
24551   ac_status=$?
24552   grep -v '^ *+' conftest.er1 >conftest.err
24553   rm -f conftest.er1
24554   cat conftest.err >&5
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); } && {
24557          test -z "$ac_c_werror_flag" ||
24558          test ! -s conftest.err
24559        } && test -s conftest.$ac_objext; then
24560   ac_cv_sys_large_files=1
24561 else
24562   echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24564
24565         ac_cv_sys_large_files=no
24566 fi
24567
24568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24569
24570
24571 fi
24572 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24573 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24574
24575     if test "$ac_cv_sys_large_files" != no; then
24576         wx_largefile=yes
24577         cat >>confdefs.h <<_ACEOF
24578 #define _LARGE_FILES $ac_cv_sys_large_files
24579 _ACEOF
24580
24581     fi
24582
24583     fi
24584
24585     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24586 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24587     if test "x$wx_largefile" = "xyes"; then
24588         cat >>confdefs.h <<\_ACEOF
24589 #define HAVE_LARGEFILE_SUPPORT 1
24590 _ACEOF
24591
24592     fi
24593     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24594 echo "${ECHO_T}$wx_largefile" >&6; }
24595 fi
24596
24597 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24598     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24599 elif test "$ac_cv_sys_large_files" = 1; then
24600     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24601 fi
24602
24603 if test -n "$LARGEFILE_CPPFLAGS"; then
24604     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24605
24606                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24607         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24608 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24609 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24610   echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612
24613                 ac_ext=cpp
24614 ac_cpp='$CXXCPP $CPPFLAGS'
24615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24618
24619                 cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625
24626 int
24627 main ()
24628 {
24629
24630                         #ifndef __STDC_EXT__
24631                             choke me
24632                         #endif
24633
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_compile") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_cxx_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest.$ac_objext; then
24655   wx_cv_STDC_EXT_required=no
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         wx_cv_STDC_EXT_required=yes
24661
24662 fi
24663
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665                 ac_ext=c
24666 ac_cpp='$CPP $CPPFLAGS'
24667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24670
24671
24672
24673 fi
24674 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24675 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24676         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24677             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24678         fi
24679     fi
24680 fi
24681
24682 ac_ext=cpp
24683 ac_cpp='$CXXCPP $CPPFLAGS'
24684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24687
24688 old_CPPFLAGS="$CPPFLAGS"
24689 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24690 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24691 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24692 if test "${ac_cv_sys_largefile_source+set}" = set; then
24693   echo $ECHO_N "(cached) $ECHO_C" >&6
24694 else
24695   while :; do
24696   cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h.  */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h.  */
24702 #include <sys/types.h> /* for off_t */
24703      #include <stdio.h>
24704 int
24705 main ()
24706 {
24707 int (*fp) (FILE *, off_t, int) = fseeko;
24708      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24709   ;
24710   return 0;
24711 }
24712 _ACEOF
24713 rm -f conftest.$ac_objext conftest$ac_exeext
24714 if { (ac_try="$ac_link"
24715 case "(($ac_try" in
24716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717   *) ac_try_echo=$ac_try;;
24718 esac
24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720   (eval "$ac_link") 2>conftest.er1
24721   ac_status=$?
24722   grep -v '^ *+' conftest.er1 >conftest.err
24723   rm -f conftest.er1
24724   cat conftest.err >&5
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); } && {
24727          test -z "$ac_cxx_werror_flag" ||
24728          test ! -s conftest.err
24729        } && test -s conftest$ac_exeext &&
24730        $as_test_x conftest$ac_exeext; then
24731   ac_cv_sys_largefile_source=no; break
24732 else
24733   echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736
24737 fi
24738
24739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24740       conftest$ac_exeext conftest.$ac_ext
24741   cat >conftest.$ac_ext <<_ACEOF
24742 /* confdefs.h.  */
24743 _ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h.  */
24747 #define _LARGEFILE_SOURCE 1
24748 #include <sys/types.h> /* for off_t */
24749      #include <stdio.h>
24750 int
24751 main ()
24752 {
24753 int (*fp) (FILE *, off_t, int) = fseeko;
24754      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24755   ;
24756   return 0;
24757 }
24758 _ACEOF
24759 rm -f conftest.$ac_objext conftest$ac_exeext
24760 if { (ac_try="$ac_link"
24761 case "(($ac_try" in
24762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763   *) ac_try_echo=$ac_try;;
24764 esac
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766   (eval "$ac_link") 2>conftest.er1
24767   ac_status=$?
24768   grep -v '^ *+' conftest.er1 >conftest.err
24769   rm -f conftest.er1
24770   cat conftest.err >&5
24771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); } && {
24773          test -z "$ac_cxx_werror_flag" ||
24774          test ! -s conftest.err
24775        } && test -s conftest$ac_exeext &&
24776        $as_test_x conftest$ac_exeext; then
24777   ac_cv_sys_largefile_source=1; break
24778 else
24779   echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24781
24782
24783 fi
24784
24785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24786       conftest$ac_exeext conftest.$ac_ext
24787   ac_cv_sys_largefile_source=unknown
24788   break
24789 done
24790 fi
24791 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24792 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24793 case $ac_cv_sys_largefile_source in #(
24794   no | unknown) ;;
24795   *)
24796 cat >>confdefs.h <<_ACEOF
24797 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24798 _ACEOF
24799 ;;
24800 esac
24801 rm -f conftest*
24802
24803 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24804 # in glibc 2.1.3, but that breaks too many other things.
24805 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24806 if test $ac_cv_sys_largefile_source != unknown; then
24807
24808 cat >>confdefs.h <<\_ACEOF
24809 #define HAVE_FSEEKO 1
24810 _ACEOF
24811
24812 fi
24813
24814 CPPFLAGS="$old_CPPFLAGS"
24815 ac_ext=c
24816 ac_cpp='$CPP $CPPFLAGS'
24817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24820
24821 if test "$ac_cv_sys_largefile_source" != no; then
24822     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24823 fi
24824
24825 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24826 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24827 if test "${ac_cv_c_bigendian+set}" = set; then
24828   echo $ECHO_N "(cached) $ECHO_C" >&6
24829 else
24830   ac_cv_c_bigendian=unknown
24831 # See if sys/param.h defines the BYTE_ORDER macro.
24832 cat >conftest.$ac_ext <<_ACEOF
24833 /* confdefs.h.  */
24834 _ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h.  */
24838 #include <sys/types.h>
24839 #include <sys/param.h>
24840 int
24841 main ()
24842 {
24843
24844 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24845  bogus endian macros
24846 #endif
24847   ;
24848   return 0;
24849 }
24850 _ACEOF
24851 rm -f conftest.$ac_objext
24852 if { (ac_try="$ac_compile"
24853 case "(($ac_try" in
24854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855   *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858   (eval "$ac_compile") 2>conftest.er1
24859   ac_status=$?
24860   grep -v '^ *+' conftest.er1 >conftest.err
24861   rm -f conftest.er1
24862   cat conftest.err >&5
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); } && {
24865          test -z "$ac_c_werror_flag" ||
24866          test ! -s conftest.err
24867        } && test -s conftest.$ac_objext; then
24868   # It does; now see whether it defined to BIG_ENDIAN or not.
24869 cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h.  */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h.  */
24875 #include <sys/types.h>
24876 #include <sys/param.h>
24877 int
24878 main ()
24879 {
24880
24881 #if BYTE_ORDER != BIG_ENDIAN
24882  not big endian
24883 #endif
24884   ;
24885   return 0;
24886 }
24887 _ACEOF
24888 rm -f conftest.$ac_objext
24889 if { (ac_try="$ac_compile"
24890 case "(($ac_try" in
24891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892   *) ac_try_echo=$ac_try;;
24893 esac
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895   (eval "$ac_compile") 2>conftest.er1
24896   ac_status=$?
24897   grep -v '^ *+' conftest.er1 >conftest.err
24898   rm -f conftest.er1
24899   cat conftest.err >&5
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } && {
24902          test -z "$ac_c_werror_flag" ||
24903          test ! -s conftest.err
24904        } && test -s conftest.$ac_objext; then
24905   ac_cv_c_bigendian=yes
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910         ac_cv_c_bigendian=no
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914 else
24915   echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918
24919 fi
24920
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 if test $ac_cv_c_bigendian = unknown; then
24923 if test "$cross_compiling" = yes; then
24924   ac_cv_c_bigendian=unknown
24925 else
24926   cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932 main () {
24933   /* Are we little or big endian?  From Harbison&Steele.  */
24934   union
24935   {
24936     long l;
24937     char c[sizeof (long)];
24938   } u;
24939   u.l = 1;
24940   exit (u.c[sizeof (long) - 1] == 1);
24941 }
24942 _ACEOF
24943 rm -f conftest$ac_exeext
24944 if { (ac_try="$ac_link"
24945 case "(($ac_try" in
24946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947   *) ac_try_echo=$ac_try;;
24948 esac
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950   (eval "$ac_link") 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24954   { (case "(($ac_try" in
24955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956   *) ac_try_echo=$ac_try;;
24957 esac
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959   (eval "$ac_try") 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; }; then
24963   ac_cv_c_bigendian=no
24964 else
24965   echo "$as_me: program exited with status $ac_status" >&5
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24968
24969 ( exit $ac_status )
24970 ac_cv_c_bigendian=yes
24971 fi
24972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24973 fi
24974
24975
24976 fi
24977 fi
24978 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24979 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24980 if test $ac_cv_c_bigendian = unknown; then
24981   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
24982 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
24983 fi
24984 if test $ac_cv_c_bigendian = yes; then
24985   cat >>confdefs.h <<\_ACEOF
24986 #define WORDS_BIGENDIAN 1
24987 _ACEOF
24988
24989 fi
24990
24991
24992
24993
24994     ac_ext=cpp
24995 ac_cpp='$CXXCPP $CPPFLAGS'
24996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24999
25000
25001
25002 for ac_header in iostream
25003 do
25004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25008   echo $ECHO_N "(cached) $ECHO_C" >&6
25009 else
25010   cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h.  */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h.  */
25016
25017
25018 #include <$ac_header>
25019 _ACEOF
25020 rm -f conftest.$ac_objext
25021 if { (ac_try="$ac_compile"
25022 case "(($ac_try" in
25023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024   *) ac_try_echo=$ac_try;;
25025 esac
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027   (eval "$ac_compile") 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } && {
25034          test -z "$ac_cxx_werror_flag" ||
25035          test ! -s conftest.err
25036        } && test -s conftest.$ac_objext; then
25037   eval "$as_ac_Header=yes"
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042         eval "$as_ac_Header=no"
25043 fi
25044
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046 fi
25047 ac_res=`eval echo '${'$as_ac_Header'}'`
25048                { echo "$as_me:$LINENO: result: $ac_res" >&5
25049 echo "${ECHO_T}$ac_res" >&6; }
25050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25051   cat >>confdefs.h <<_ACEOF
25052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25053 _ACEOF
25054
25055 fi
25056
25057 done
25058
25059
25060     if test "$ac_cv_header_iostream" = "yes" ; then
25061       :
25062     else
25063       cat >>confdefs.h <<\_ACEOF
25064 #define wxUSE_IOSTREAMH 1
25065 _ACEOF
25066
25067     fi
25068
25069     ac_ext=c
25070 ac_cpp='$CPP $CPPFLAGS'
25071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25074
25075
25076
25077
25078   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25079 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25080 if test "${wx_cv_explicit+set}" = set; then
25081   echo $ECHO_N "(cached) $ECHO_C" >&6
25082 else
25083
25084
25085     ac_ext=cpp
25086 ac_cpp='$CXXCPP $CPPFLAGS'
25087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25090
25091
25092             cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h.  */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h.  */
25098
25099         class Foo { public: explicit Foo(int) {} };
25100
25101 int
25102 main ()
25103 {
25104
25105         return 0;
25106
25107   ;
25108   return 0;
25109 }
25110 _ACEOF
25111 rm -f conftest.$ac_objext
25112 if { (ac_try="$ac_compile"
25113 case "(($ac_try" in
25114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115   *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118   (eval "$ac_compile") 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } && {
25125          test -z "$ac_cxx_werror_flag" ||
25126          test ! -s conftest.err
25127        } && test -s conftest.$ac_objext; then
25128
25129         cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h.  */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h.  */
25135
25136                 class Foo { public: explicit Foo(int) {} };
25137                 static void TakeFoo(const Foo& foo) { }
25138
25139 int
25140 main ()
25141 {
25142
25143                 TakeFoo(17);
25144                 return 0;
25145
25146   ;
25147   return 0;
25148 }
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154   *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157   (eval "$ac_compile") 2>conftest.er1
25158   ac_status=$?
25159   grep -v '^ *+' conftest.er1 >conftest.err
25160   rm -f conftest.er1
25161   cat conftest.err >&5
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } && {
25164          test -z "$ac_cxx_werror_flag" ||
25165          test ! -s conftest.err
25166        } && test -s conftest.$ac_objext; then
25167   wx_cv_explicit=no
25168 else
25169   echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172         wx_cv_explicit=yes
25173
25174 fi
25175
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182         wx_cv_explicit=no
25183
25184 fi
25185
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187
25188     ac_ext=c
25189 ac_cpp='$CPP $CPPFLAGS'
25190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25193
25194
25195 fi
25196 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25197 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25198
25199   if test "$wx_cv_explicit" = "yes"; then
25200     cat >>confdefs.h <<\_ACEOF
25201 #define HAVE_EXPLICIT 1
25202 _ACEOF
25203
25204   fi
25205
25206
25207 if test "x$SUNCXX" = xyes; then
25208     CXXFLAGS="-features=tmplife $CXXFLAGS"
25209 fi
25210
25211 if test "x$SUNCC" = xyes; then
25212     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25213 fi
25214
25215 if test "x$SGICC" = "xyes"; then
25216     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25217 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25218 if test "${wx_cv_prog_sgicc744+set}" = set; then
25219   echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221
25222             cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h.  */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h.  */
25228
25229 int
25230 main ()
25231 {
25232
25233                     #if _SGI_COMPILER_VERSION >= 744
25234                     chock me: mipsPro is 7.4.4 or later
25235                     #endif
25236
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 rm -f conftest.$ac_objext
25242 if { (ac_try="$ac_compile"
25243 case "(($ac_try" in
25244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245   *) ac_try_echo=$ac_try;;
25246 esac
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248   (eval "$ac_compile") 2>conftest.er1
25249   ac_status=$?
25250   grep -v '^ *+' conftest.er1 >conftest.err
25251   rm -f conftest.er1
25252   cat conftest.err >&5
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } && {
25255          test -z "$ac_c_werror_flag" ||
25256          test ! -s conftest.err
25257        } && test -s conftest.$ac_objext; then
25258   wx_cv_prog_sgicc744=no
25259 else
25260   echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.$ac_ext >&5
25262
25263         wx_cv_prog_sgicc744=yes
25264
25265 fi
25266
25267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25268
25269
25270 fi
25271 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25272 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25273
25274     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25275         CFLAGS="-woff 3970 $CFLAGS"
25276     fi
25277 fi
25278 if test "x$SGICXX" = "xyes"; then
25279     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25280 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25281 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25282   echo $ECHO_N "(cached) $ECHO_C" >&6
25283 else
25284
25285             ac_ext=cpp
25286 ac_cpp='$CXXCPP $CPPFLAGS'
25287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25290
25291             cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h.  */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h.  */
25297
25298 int
25299 main ()
25300 {
25301
25302                     #if _SGI_COMPILER_VERSION >= 744
25303                     chock me: mipsPro is 7.4.4 or later
25304                     #endif
25305
25306   ;
25307   return 0;
25308 }
25309 _ACEOF
25310 rm -f conftest.$ac_objext
25311 if { (ac_try="$ac_compile"
25312 case "(($ac_try" in
25313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314   *) ac_try_echo=$ac_try;;
25315 esac
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317   (eval "$ac_compile") 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } && {
25324          test -z "$ac_cxx_werror_flag" ||
25325          test ! -s conftest.err
25326        } && test -s conftest.$ac_objext; then
25327   wx_cv_prog_sgicxx744=no
25328 else
25329   echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25331
25332         wx_cv_prog_sgicxx744=yes
25333
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337             ac_ext=c
25338 ac_cpp='$CPP $CPPFLAGS'
25339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25342
25343
25344
25345 fi
25346 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25347 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25348
25349     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25350         CXXFLAGS="-woff 3970 $CXXFLAGS"
25351     fi
25352 fi
25353
25354 if test "x$HPCC" = "xyes"; then
25355                     CFLAGS="+W 2011,2450 $CFLAGS"
25356 fi
25357 if test "x$HPCXX" = "xyes"; then
25358                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25359 fi
25360
25361 if test "x$COMPAQCXX" = "xyes"; then
25362                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25363 fi
25364
25365 ac_ext=cpp
25366 ac_cpp='$CXXCPP $CPPFLAGS'
25367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25370
25371
25372 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25373     if test "$wxUSE_UNICODE" = "yes"; then
25374         std_string="std::wstring"
25375         char_type="wchar_t"
25376     else
25377         std_string="std::string"
25378         char_type="char"
25379     fi
25380
25381         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25382 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25383 if test "${wx_cv_class_stdstring+set}" = set; then
25384   echo $ECHO_N "(cached) $ECHO_C" >&6
25385 else
25386
25387             cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h.  */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h.  */
25393 #include <string>
25394 int
25395 main ()
25396 {
25397 $std_string foo;
25398   ;
25399   return 0;
25400 }
25401 _ACEOF
25402 rm -f conftest.$ac_objext
25403 if { (ac_try="$ac_compile"
25404 case "(($ac_try" in
25405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406   *) ac_try_echo=$ac_try;;
25407 esac
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409   (eval "$ac_compile") 2>conftest.er1
25410   ac_status=$?
25411   grep -v '^ *+' conftest.er1 >conftest.err
25412   rm -f conftest.er1
25413   cat conftest.err >&5
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } && {
25416          test -z "$ac_cxx_werror_flag" ||
25417          test ! -s conftest.err
25418        } && test -s conftest.$ac_objext; then
25419   wx_cv_class_stdstring=yes
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424         wx_cv_class_stdstring=no
25425
25426 fi
25427
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429
25430
25431 fi
25432 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25433 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25434
25435     if test "$wx_cv_class_stdstring" = yes; then
25436         if test "$wxUSE_UNICODE" = "yes"; then
25437             cat >>confdefs.h <<\_ACEOF
25438 #define HAVE_STD_WSTRING 1
25439 _ACEOF
25440
25441         fi
25442                     else
25443         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25444 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25445 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25446   echo $ECHO_N "(cached) $ECHO_C" >&6
25447 else
25448
25449                 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h.  */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h.  */
25455
25456                     #ifdef HAVE_WCHAR_H
25457                     #  ifdef __CYGWIN__
25458                     #    include <stddef.h>
25459                     #  endif
25460                     #  include <wchar.h>
25461                     #endif
25462                     #ifdef HAVE_STDLIB_H
25463                     #  include <stdlib.h>
25464                     #endif
25465                     #include <stdio.h>
25466                     #include <string>
25467
25468 int
25469 main ()
25470 {
25471 std::basic_string<$char_type> foo;
25472                      const $char_type* dummy = foo.c_str();
25473   ;
25474   return 0;
25475 }
25476 _ACEOF
25477 rm -f conftest.$ac_objext
25478 if { (ac_try="$ac_compile"
25479 case "(($ac_try" in
25480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481   *) ac_try_echo=$ac_try;;
25482 esac
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484   (eval "$ac_compile") 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && {
25491          test -z "$ac_cxx_werror_flag" ||
25492          test ! -s conftest.err
25493        } && test -s conftest.$ac_objext; then
25494   wx_cv_class_stdbasicstring=yes
25495 else
25496   echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25498
25499         wx_cv_class_stdbasicstring=no
25500
25501 fi
25502
25503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504
25505
25506 fi
25507 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25508 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25509
25510         if test "$wx_cv_class_stdbasicstring" != yes; then
25511             if test "$wxUSE_STL" = "yes"; then
25512                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25513 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25514    { (exit 1); exit 1; }; }
25515             elif test "$wxUSE_STD_STRING" = "yes"; then
25516                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25517 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25518    { (exit 1); exit 1; }; }
25519             else
25520                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25521 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25522                 wxUSE_STD_STRING=no
25523             fi
25524         fi
25525     fi
25526 fi
25527
25528 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25529     { echo "$as_me:$LINENO: checking for std::istream" >&5
25530 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25531 if test "${ac_cv_type_std__istream+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 #include <iostream>
25541
25542 typedef std::istream ac__type_new_;
25543 int
25544 main ()
25545 {
25546 if ((ac__type_new_ *) 0)
25547   return 0;
25548 if (sizeof (ac__type_new_))
25549   return 0;
25550   ;
25551   return 0;
25552 }
25553 _ACEOF
25554 rm -f conftest.$ac_objext
25555 if { (ac_try="$ac_compile"
25556 case "(($ac_try" in
25557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558   *) ac_try_echo=$ac_try;;
25559 esac
25560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25561   (eval "$ac_compile") 2>conftest.er1
25562   ac_status=$?
25563   grep -v '^ *+' conftest.er1 >conftest.err
25564   rm -f conftest.er1
25565   cat conftest.err >&5
25566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567   (exit $ac_status); } && {
25568          test -z "$ac_cxx_werror_flag" ||
25569          test ! -s conftest.err
25570        } && test -s conftest.$ac_objext; then
25571   ac_cv_type_std__istream=yes
25572 else
25573   echo "$as_me: failed program was:" >&5
25574 sed 's/^/| /' conftest.$ac_ext >&5
25575
25576         ac_cv_type_std__istream=no
25577 fi
25578
25579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25580 fi
25581 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25582 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25583 if test $ac_cv_type_std__istream = yes; then
25584
25585 cat >>confdefs.h <<_ACEOF
25586 #define HAVE_STD__ISTREAM 1
25587 _ACEOF
25588
25589
25590 else
25591   wxUSE_STD_IOSTREAM=no
25592 fi
25593 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25594 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25595 if test "${ac_cv_type_std__ostream+set}" = set; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 else
25598   cat >conftest.$ac_ext <<_ACEOF
25599 /* confdefs.h.  */
25600 _ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h.  */
25604 #include <iostream>
25605
25606 typedef std::ostream ac__type_new_;
25607 int
25608 main ()
25609 {
25610 if ((ac__type_new_ *) 0)
25611   return 0;
25612 if (sizeof (ac__type_new_))
25613   return 0;
25614   ;
25615   return 0;
25616 }
25617 _ACEOF
25618 rm -f conftest.$ac_objext
25619 if { (ac_try="$ac_compile"
25620 case "(($ac_try" in
25621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622   *) ac_try_echo=$ac_try;;
25623 esac
25624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625   (eval "$ac_compile") 2>conftest.er1
25626   ac_status=$?
25627   grep -v '^ *+' conftest.er1 >conftest.err
25628   rm -f conftest.er1
25629   cat conftest.err >&5
25630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631   (exit $ac_status); } && {
25632          test -z "$ac_cxx_werror_flag" ||
25633          test ! -s conftest.err
25634        } && test -s conftest.$ac_objext; then
25635   ac_cv_type_std__ostream=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640         ac_cv_type_std__ostream=no
25641 fi
25642
25643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25644 fi
25645 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25646 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25647 if test $ac_cv_type_std__ostream = yes; then
25648
25649 cat >>confdefs.h <<_ACEOF
25650 #define HAVE_STD__OSTREAM 1
25651 _ACEOF
25652
25653
25654 else
25655   wxUSE_STD_IOSTREAM=no
25656 fi
25657
25658
25659     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25660         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25661             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25662 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25663    { (exit 1); exit 1; }; }
25664         else
25665             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25666 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25667         fi
25668     fi
25669 fi
25670
25671 if test "$wxUSE_STL" = "yes"; then
25672         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25673 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25674 if test "${wx_cv_lib_stl+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 <string>
25684             #include <functional>
25685             #include <algorithm>
25686             #include <vector>
25687             #include <list>
25688 int
25689 main ()
25690 {
25691 std::vector<int> moo;
25692              std::list<int> foo;
25693              std::vector<int>::iterator it =
25694                  std::find_if(moo.begin(), moo.end(),
25695                               std::bind2nd(std::less<int>(), 3));
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 rm -f conftest.$ac_objext
25701 if { (ac_try="$ac_compile"
25702 case "(($ac_try" in
25703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704   *) ac_try_echo=$ac_try;;
25705 esac
25706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25707   (eval "$ac_compile") 2>conftest.er1
25708   ac_status=$?
25709   grep -v '^ *+' conftest.er1 >conftest.err
25710   rm -f conftest.er1
25711   cat conftest.err >&5
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } && {
25714          test -z "$ac_cxx_werror_flag" ||
25715          test ! -s conftest.err
25716        } && test -s conftest.$ac_objext; then
25717   wx_cv_lib_stl=yes
25718 else
25719   echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25721
25722         wx_cv_lib_stl=no
25723
25724 fi
25725
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727
25728 fi
25729 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25730 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25731
25732     if test "$wx_cv_lib_stl" != yes; then
25733          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25734 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25735    { (exit 1); exit 1; }; }
25736     fi
25737
25738         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25739 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25740 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743   cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749 #include <string>
25750 int
25751 main ()
25752 {
25753 std::string foo, bar;
25754             foo.compare(bar);
25755             foo.compare(1, 1, bar);
25756             foo.compare(1, 1, bar, 1, 1);
25757             foo.compare("");
25758             foo.compare(1, 1, "");
25759             foo.compare(1, 1, "", 2);
25760   ;
25761   return 0;
25762 }
25763 _ACEOF
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768   *) ac_try_echo=$ac_try;;
25769 esac
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771   (eval "$ac_compile") 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } && {
25778          test -z "$ac_cxx_werror_flag" ||
25779          test ! -s conftest.err
25780        } && test -s conftest.$ac_objext; then
25781   wx_cv_func_stdstring_compare=yes
25782 else
25783   echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786         wx_cv_func_stdstring_compare=no
25787
25788 fi
25789
25790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25791
25792 fi
25793 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25794 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25795
25796     if test "$wx_cv_func_stdstring_compare" = yes; then
25797         cat >>confdefs.h <<\_ACEOF
25798 #define HAVE_STD_STRING_COMPARE 1
25799 _ACEOF
25800
25801     fi
25802
25803     if test "$wx_cv_class_gnuhashmapset" = yes; then
25804          cat >>confdefs.h <<\_ACEOF
25805 #define HAVE_EXT_HASH_MAP 1
25806 _ACEOF
25807
25808          cat >>confdefs.h <<\_ACEOF
25809 #define HAVE_GNU_CXX_HASH_MAP 1
25810 _ACEOF
25811
25812     fi
25813
25814     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25815 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25816 if test "${ac_cv_header_unordered_map+set}" = set; then
25817   echo $ECHO_N "(cached) $ECHO_C" >&6
25818 else
25819   cat >conftest.$ac_ext <<_ACEOF
25820 /* confdefs.h.  */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h.  */
25825
25826
25827
25828 #include <unordered_map>
25829 _ACEOF
25830 rm -f conftest.$ac_objext
25831 if { (ac_try="$ac_compile"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837   (eval "$ac_compile") 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } && {
25844          test -z "$ac_cxx_werror_flag" ||
25845          test ! -s conftest.err
25846        } && test -s conftest.$ac_objext; then
25847   ac_cv_header_unordered_map=yes
25848 else
25849   echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25851
25852         ac_cv_header_unordered_map=no
25853 fi
25854
25855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 fi
25857 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25858 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25859 if test $ac_cv_header_unordered_map = yes; then
25860   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25861 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25862 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25863   echo $ECHO_N "(cached) $ECHO_C" >&6
25864 else
25865   cat >conftest.$ac_ext <<_ACEOF
25866 /* confdefs.h.  */
25867 _ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h.  */
25871 #include <unordered_map>
25872                 #include <unordered_set>
25873 int
25874 main ()
25875 {
25876 std::unordered_map<double*, char*> test1;
25877                  std::unordered_set<char*> test2;
25878   ;
25879   return 0;
25880 }
25881 _ACEOF
25882 rm -f conftest.$ac_objext
25883 if { (ac_try="$ac_compile"
25884 case "(($ac_try" in
25885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886   *) ac_try_echo=$ac_try;;
25887 esac
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889   (eval "$ac_compile") 2>conftest.er1
25890   ac_status=$?
25891   grep -v '^ *+' conftest.er1 >conftest.err
25892   rm -f conftest.er1
25893   cat conftest.err >&5
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); } && {
25896          test -z "$ac_cxx_werror_flag" ||
25897          test ! -s conftest.err
25898        } && test -s conftest.$ac_objext; then
25899   wx_cv_class_stdunorderedmapset=yes
25900 else
25901   echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904         wx_cv_class_stdunorderedmapset=no
25905 fi
25906
25907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25908
25909
25910 fi
25911 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25912 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
25913 fi
25914
25915
25916
25917     if test "$wx_cv_class_stdunorderedmapset" = yes; then
25918          cat >>confdefs.h <<\_ACEOF
25919 #define HAVE_STD_UNORDERED_MAP 1
25920 _ACEOF
25921
25922          cat >>confdefs.h <<\_ACEOF
25923 #define HAVE_STD_UNORDERED_SET 1
25924 _ACEOF
25925
25926     else
25927         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25928 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
25929 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932   cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938
25939
25940
25941 #include <tr1/unordered_map>
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_compile") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_cxx_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest.$ac_objext; then
25960   ac_cv_header_tr1_unordered_map=yes
25961 else
25962   echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965         ac_cv_header_tr1_unordered_map=no
25966 fi
25967
25968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969 fi
25970 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25971 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25972 if test $ac_cv_header_tr1_unordered_map = yes; then
25973   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25974 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25975 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978   cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984 #include <tr1/unordered_map>
25985                     #include <tr1/unordered_set>
25986 int
25987 main ()
25988 {
25989 std::tr1::unordered_map<double*, char*> test1;
25990                      std::tr1::unordered_set<char*> test2;
25991             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25992             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25993             #endif
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext
25999 if { (ac_try="$ac_compile"
26000 case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_compile") 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } && {
26012          test -z "$ac_cxx_werror_flag" ||
26013          test ! -s conftest.err
26014        } && test -s conftest.$ac_objext; then
26015   wx_cv_class_tr1unorderedmapset=yes
26016 else
26017   echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26019
26020         wx_cv_class_tr1unorderedmapset=no
26021 fi
26022
26023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26024
26025
26026 fi
26027 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26028 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26029 fi
26030
26031
26032
26033         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26034             cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_TR1_UNORDERED_MAP 1
26036 _ACEOF
26037
26038             cat >>confdefs.h <<\_ACEOF
26039 #define HAVE_TR1_UNORDERED_SET 1
26040 _ACEOF
26041
26042         else
26043                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26044 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26045 if test "${ac_cv_header_hash_map+set}" = set; then
26046   echo $ECHO_N "(cached) $ECHO_C" >&6
26047 else
26048   cat >conftest.$ac_ext <<_ACEOF
26049 /* confdefs.h.  */
26050 _ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h.  */
26054
26055
26056
26057 #include <hash_map>
26058 _ACEOF
26059 rm -f conftest.$ac_objext
26060 if { (ac_try="$ac_compile"
26061 case "(($ac_try" in
26062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063   *) ac_try_echo=$ac_try;;
26064 esac
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066   (eval "$ac_compile") 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } && {
26073          test -z "$ac_cxx_werror_flag" ||
26074          test ! -s conftest.err
26075        } && test -s conftest.$ac_objext; then
26076   ac_cv_header_hash_map=yes
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081         ac_cv_header_hash_map=no
26082 fi
26083
26084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26085 fi
26086 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26087 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26088 if test $ac_cv_header_hash_map = yes; then
26089   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26090 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26091 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26092   echo $ECHO_N "(cached) $ECHO_C" >&6
26093 else
26094   cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 #include <hash_map>
26101                         #include <hash_set>
26102 int
26103 main ()
26104 {
26105 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26106                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26107   ;
26108   return 0;
26109 }
26110 _ACEOF
26111 rm -f conftest.$ac_objext
26112 if { (ac_try="$ac_compile"
26113 case "(($ac_try" in
26114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115   *) ac_try_echo=$ac_try;;
26116 esac
26117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26118   (eval "$ac_compile") 2>conftest.er1
26119   ac_status=$?
26120   grep -v '^ *+' conftest.er1 >conftest.err
26121   rm -f conftest.er1
26122   cat conftest.err >&5
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); } && {
26125          test -z "$ac_cxx_werror_flag" ||
26126          test ! -s conftest.err
26127        } && test -s conftest.$ac_objext; then
26128   wx_cv_class_stdhashmapset=yes
26129 else
26130   echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26132
26133         wx_cv_class_stdhashmapset=no
26134 fi
26135
26136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137
26138
26139 fi
26140 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26141 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26142 fi
26143
26144
26145
26146             if test "$wx_cv_class_stdhashmapset" = yes; then
26147                 cat >>confdefs.h <<\_ACEOF
26148 #define HAVE_HASH_MAP 1
26149 _ACEOF
26150
26151                 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_STD_HASH_MAP 1
26153 _ACEOF
26154
26155             fi
26156
26157             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26158 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26159 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26160   echo $ECHO_N "(cached) $ECHO_C" >&6
26161 else
26162   cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h.  */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h.  */
26168
26169
26170
26171 #include <ext/hash_map>
26172 _ACEOF
26173 rm -f conftest.$ac_objext
26174 if { (ac_try="$ac_compile"
26175 case "(($ac_try" in
26176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26177   *) ac_try_echo=$ac_try;;
26178 esac
26179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26180   (eval "$ac_compile") 2>conftest.er1
26181   ac_status=$?
26182   grep -v '^ *+' conftest.er1 >conftest.err
26183   rm -f conftest.er1
26184   cat conftest.err >&5
26185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186   (exit $ac_status); } && {
26187          test -z "$ac_cxx_werror_flag" ||
26188          test ! -s conftest.err
26189        } && test -s conftest.$ac_objext; then
26190   ac_cv_header_ext_hash_map=yes
26191 else
26192   echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26194
26195         ac_cv_header_ext_hash_map=no
26196 fi
26197
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 fi
26200 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26201 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26202 if test $ac_cv_header_ext_hash_map = yes; then
26203   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26204 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26205 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26206   echo $ECHO_N "(cached) $ECHO_C" >&6
26207 else
26208   cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h.  */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h.  */
26214 #include <ext/hash_map>
26215                         #include <ext/hash_set>
26216 int
26217 main ()
26218 {
26219 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26220                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26221   ;
26222   return 0;
26223 }
26224 _ACEOF
26225 rm -f conftest.$ac_objext
26226 if { (ac_try="$ac_compile"
26227 case "(($ac_try" in
26228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229   *) ac_try_echo=$ac_try;;
26230 esac
26231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26232   (eval "$ac_compile") 2>conftest.er1
26233   ac_status=$?
26234   grep -v '^ *+' conftest.er1 >conftest.err
26235   rm -f conftest.er1
26236   cat conftest.err >&5
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); } && {
26239          test -z "$ac_cxx_werror_flag" ||
26240          test ! -s conftest.err
26241        } && test -s conftest.$ac_objext; then
26242   wx_cv_class_gnuhashmapset=yes
26243 else
26244   echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26246
26247         wx_cv_class_gnuhashmapset=no
26248 fi
26249
26250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26251
26252
26253 fi
26254 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26255 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26256 fi
26257
26258
26259
26260         fi
26261     fi
26262 fi
26263
26264 ac_ext=cpp
26265 ac_cpp='$CXXCPP $CPPFLAGS'
26266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26269 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26270 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26271 if test -z "$CXXCPP"; then
26272   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275       # Double quotes because CXXCPP needs to be expanded
26276     for CXXCPP in "$CXX -E" "/lib/cpp"
26277     do
26278       ac_preproc_ok=false
26279 for ac_cxx_preproc_warn_flag in '' yes
26280 do
26281   # Use a header file that comes with gcc, so configuring glibc
26282   # with a fresh cross-compiler works.
26283   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26284   # <limits.h> exists even on freestanding compilers.
26285   # On the NeXT, cc -E runs the code through the compiler's parser,
26286   # not just through cpp. "Syntax error" is here to catch this case.
26287   cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293 #ifdef __STDC__
26294 # include <limits.h>
26295 #else
26296 # include <assert.h>
26297 #endif
26298                      Syntax error
26299 _ACEOF
26300 if { (ac_try="$ac_cpp conftest.$ac_ext"
26301 case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26307   ac_status=$?
26308   grep -v '^ *+' conftest.er1 >conftest.err
26309   rm -f conftest.er1
26310   cat conftest.err >&5
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } >/dev/null && {
26313          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26314          test ! -s conftest.err
26315        }; then
26316   :
26317 else
26318   echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26320
26321   # Broken: fails on valid input.
26322 continue
26323 fi
26324
26325 rm -f conftest.err conftest.$ac_ext
26326
26327   # OK, works on sane cases.  Now check whether nonexistent headers
26328   # can be detected and how.
26329   cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h.  */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h.  */
26335 #include <ac_nonexistent.h>
26336 _ACEOF
26337 if { (ac_try="$ac_cpp conftest.$ac_ext"
26338 case "(($ac_try" in
26339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340   *) ac_try_echo=$ac_try;;
26341 esac
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26344   ac_status=$?
26345   grep -v '^ *+' conftest.er1 >conftest.err
26346   rm -f conftest.er1
26347   cat conftest.err >&5
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); } >/dev/null && {
26350          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26351          test ! -s conftest.err
26352        }; then
26353   # Broken: success on invalid input.
26354 continue
26355 else
26356   echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359   # Passes both tests.
26360 ac_preproc_ok=:
26361 break
26362 fi
26363
26364 rm -f conftest.err conftest.$ac_ext
26365
26366 done
26367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26368 rm -f conftest.err conftest.$ac_ext
26369 if $ac_preproc_ok; then
26370   break
26371 fi
26372
26373     done
26374     ac_cv_prog_CXXCPP=$CXXCPP
26375
26376 fi
26377   CXXCPP=$ac_cv_prog_CXXCPP
26378 else
26379   ac_cv_prog_CXXCPP=$CXXCPP
26380 fi
26381 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26382 echo "${ECHO_T}$CXXCPP" >&6; }
26383 ac_preproc_ok=false
26384 for ac_cxx_preproc_warn_flag in '' yes
26385 do
26386   # Use a header file that comes with gcc, so configuring glibc
26387   # with a fresh cross-compiler works.
26388   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26389   # <limits.h> exists even on freestanding compilers.
26390   # On the NeXT, cc -E runs the code through the compiler's parser,
26391   # not just through cpp. "Syntax error" is here to catch this case.
26392   cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 #ifdef __STDC__
26399 # include <limits.h>
26400 #else
26401 # include <assert.h>
26402 #endif
26403                      Syntax error
26404 _ACEOF
26405 if { (ac_try="$ac_cpp conftest.$ac_ext"
26406 case "(($ac_try" in
26407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26408   *) ac_try_echo=$ac_try;;
26409 esac
26410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } >/dev/null && {
26418          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26419          test ! -s conftest.err
26420        }; then
26421   :
26422 else
26423   echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26425
26426   # Broken: fails on valid input.
26427 continue
26428 fi
26429
26430 rm -f conftest.err conftest.$ac_ext
26431
26432   # OK, works on sane cases.  Now check whether nonexistent headers
26433   # can be detected and how.
26434   cat >conftest.$ac_ext <<_ACEOF
26435 /* confdefs.h.  */
26436 _ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h.  */
26440 #include <ac_nonexistent.h>
26441 _ACEOF
26442 if { (ac_try="$ac_cpp conftest.$ac_ext"
26443 case "(($ac_try" in
26444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445   *) ac_try_echo=$ac_try;;
26446 esac
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26449   ac_status=$?
26450   grep -v '^ *+' conftest.er1 >conftest.err
26451   rm -f conftest.er1
26452   cat conftest.err >&5
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); } >/dev/null && {
26455          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26456          test ! -s conftest.err
26457        }; then
26458   # Broken: success on invalid input.
26459 continue
26460 else
26461   echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464   # Passes both tests.
26465 ac_preproc_ok=:
26466 break
26467 fi
26468
26469 rm -f conftest.err conftest.$ac_ext
26470
26471 done
26472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26473 rm -f conftest.err conftest.$ac_ext
26474 if $ac_preproc_ok; then
26475   :
26476 else
26477   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26478 See \`config.log' for more details." >&5
26479 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26480 See \`config.log' for more details." >&2;}
26481    { (exit 1); exit 1; }; }
26482 fi
26483
26484 ac_ext=cpp
26485 ac_cpp='$CXXCPP $CPPFLAGS'
26486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26489
26490
26491
26492
26493 for ac_header in type_traits tr1/type_traits
26494 do
26495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 fi
26502 ac_res=`eval echo '${'$as_ac_Header'}'`
26503                { echo "$as_me:$LINENO: result: $ac_res" >&5
26504 echo "${ECHO_T}$ac_res" >&6; }
26505 else
26506   # Is the header compilable?
26507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26509 cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 $ac_includes_default
26516 #include <$ac_header>
26517 _ACEOF
26518 rm -f conftest.$ac_objext
26519 if { (ac_try="$ac_compile"
26520 case "(($ac_try" in
26521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522   *) ac_try_echo=$ac_try;;
26523 esac
26524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26525   (eval "$ac_compile") 2>conftest.er1
26526   ac_status=$?
26527   grep -v '^ *+' conftest.er1 >conftest.err
26528   rm -f conftest.er1
26529   cat conftest.err >&5
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); } && {
26532          test -z "$ac_cxx_werror_flag" ||
26533          test ! -s conftest.err
26534        } && test -s conftest.$ac_objext; then
26535   ac_header_compiler=yes
26536 else
26537   echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26539
26540         ac_header_compiler=no
26541 fi
26542
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26545 echo "${ECHO_T}$ac_header_compiler" >&6; }
26546
26547 # Is the header present?
26548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26550 cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556 #include <$ac_header>
26557 _ACEOF
26558 if { (ac_try="$ac_cpp conftest.$ac_ext"
26559 case "(($ac_try" in
26560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561   *) ac_try_echo=$ac_try;;
26562 esac
26563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26565   ac_status=$?
26566   grep -v '^ *+' conftest.er1 >conftest.err
26567   rm -f conftest.er1
26568   cat conftest.err >&5
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); } >/dev/null && {
26571          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26572          test ! -s conftest.err
26573        }; then
26574   ac_header_preproc=yes
26575 else
26576   echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579   ac_header_preproc=no
26580 fi
26581
26582 rm -f conftest.err conftest.$ac_ext
26583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26584 echo "${ECHO_T}$ac_header_preproc" >&6; }
26585
26586 # So?  What about this header?
26587 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26588   yes:no: )
26589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26593     ac_header_preproc=yes
26594     ;;
26595   no:yes:* )
26596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26608     ( cat <<\_ASBOX
26609 ## ----------------------------------------- ##
26610 ## Report this to wx-dev@lists.wxwidgets.org ##
26611 ## ----------------------------------------- ##
26612 _ASBOX
26613      ) | sed "s/^/$as_me: WARNING:     /" >&2
26614     ;;
26615 esac
26616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26619   echo $ECHO_N "(cached) $ECHO_C" >&6
26620 else
26621   eval "$as_ac_Header=\$ac_header_preproc"
26622 fi
26623 ac_res=`eval echo '${'$as_ac_Header'}'`
26624                { echo "$as_me:$LINENO: result: $ac_res" >&5
26625 echo "${ECHO_T}$ac_res" >&6; }
26626
26627 fi
26628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26629   cat >>confdefs.h <<_ACEOF
26630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26631 _ACEOF
26632
26633 fi
26634
26635 done
26636
26637
26638
26639
26640   if test -n "$GCC"; then
26641     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26642 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26643     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26644   echo $ECHO_N "(cached) $ECHO_C" >&6
26645 else
26646
26647       cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h.  */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h.  */
26653
26654 int
26655 main ()
26656 {
26657
26658           unsigned int value=0;
26659           /* wxAtomicInc doesn't use return value here */
26660           __sync_fetch_and_add(&value, 2);
26661           __sync_sub_and_fetch(&value, 1);
26662           /* but wxAtomicDec does, so mimic that: */
26663           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26664
26665   ;
26666   return 0;
26667 }
26668 _ACEOF
26669 rm -f conftest.$ac_objext conftest$ac_exeext
26670 if { (ac_try="$ac_link"
26671 case "(($ac_try" in
26672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673   *) ac_try_echo=$ac_try;;
26674 esac
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676   (eval "$ac_link") 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } && {
26683          test -z "$ac_cxx_werror_flag" ||
26684          test ! -s conftest.err
26685        } && test -s conftest$ac_exeext &&
26686        $as_test_x conftest$ac_exeext; then
26687   wx_cv_cc_gcc_atomic_builtins=yes
26688 else
26689   echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26691
26692         wx_cv_cc_gcc_atomic_builtins=no
26693 fi
26694
26695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26696       conftest$ac_exeext conftest.$ac_ext
26697
26698 fi
26699
26700     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26701 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26702     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26703       cat >>confdefs.h <<\_ACEOF
26704 #define HAVE_GCC_ATOMIC_BUILTINS 1
26705 _ACEOF
26706
26707     fi
26708   fi
26709
26710
26711 ac_ext=c
26712 ac_cpp='$CPP $CPPFLAGS'
26713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26716
26717
26718
26719 SEARCH_INCLUDE="\
26720     /usr/local/include        \
26721     /usr/local/X11/include    \
26722     /usr/local/include/X11    \
26723     /usr/local/X11R7/include  \
26724     /usr/local/X11R6/include  \
26725     /usr/local/include/X11R7  \
26726     /usr/local/include/X11R6  \
26727                               \
26728     /usr/Motif-2.1/include    \
26729     /usr/Motif-1.2/include    \
26730     /usr/include/Motif1.2     \
26731                               \
26732     /usr/dt/include           \
26733     /usr/openwin/include      \
26734                               \
26735     /usr/include/Xm           \
26736                               \
26737     /usr/X11R7/include        \
26738     /usr/X11R6/include        \
26739     /usr/X11R6.4/include      \
26740                               \
26741     /usr/include/X11R7        \
26742     /usr/include/X11R6        \
26743                               \
26744     /usr/X11/include          \
26745     /usr/include/X11          \
26746                               \
26747     /usr/XFree86/include/X11  \
26748     /usr/pkg/include          \
26749                               \
26750     /usr/local/X1R5/include  \
26751     /usr/local/include/X11R5  \
26752     /usr/X11R5/include        \
26753     /usr/include/X11R5        \
26754                               \
26755     /usr/local/X11R4/include  \
26756     /usr/local/include/X11R4  \
26757     /usr/X11R4/include        \
26758     /usr/include/X11R4        \
26759                               \
26760     /usr/openwin/share/include"
26761
26762 { echo "$as_me:$LINENO: checking for libraries directory" >&5
26763 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
26764
26765 case "${host}" in
26766     *-*-irix6* )
26767         if test "${wx_cv_std_libpath+set}" = set; then
26768   echo $ECHO_N "(cached) $ECHO_C" >&6
26769 else
26770
26771                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
26772                     for e in a so sl dylib dll.a; do
26773                         libc="$d/libc.$e"
26774                         if test -f $libc; then
26775                             save_LIBS="$LIBS"
26776                             LIBS="$libc"
26777                             cat >conftest.$ac_ext <<_ACEOF
26778 int main() { return 0; }
26779 _ACEOF
26780 rm -f conftest.$ac_objext conftest$ac_exeext
26781 if { (ac_try="$ac_link"
26782 case "(($ac_try" in
26783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784   *) ac_try_echo=$ac_try;;
26785 esac
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787   (eval "$ac_link") 2>conftest.er1
26788   ac_status=$?
26789   grep -v '^ *+' conftest.er1 >conftest.err
26790   rm -f conftest.er1
26791   cat conftest.err >&5
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); } && {
26794          test -z "$ac_c_werror_flag" ||
26795          test ! -s conftest.err
26796        } && test -s conftest$ac_exeext &&
26797        $as_test_x conftest$ac_exeext; then
26798   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803
26804 fi
26805
26806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26807       conftest$ac_exeext conftest.$ac_ext
26808                             LIBS="$save_LIBS"
26809                             if test "x$wx_cv_std_libpath" != "x"; then
26810                                 break 2
26811                             fi
26812                         fi
26813                     done
26814                 done
26815                 if test "x$wx_cv_std_libpath" = "x"; then
26816                     wx_cv_std_libpath="lib"
26817                 fi
26818
26819
26820 fi
26821
26822         ;;
26823
26824     *-*-solaris2* )
26825                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26826             wx_cv_std_libpath="lib/64"
26827         else
26828             wx_cv_std_libpath="lib"
26829         fi
26830         ;;
26831
26832     *-*-linux* )
26833                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26834                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26835             wx_cv_std_libpath="lib64"
26836         else
26837             wx_cv_std_libpath="lib"
26838         fi
26839         ;;
26840
26841     *)
26842         wx_cv_std_libpath="lib";
26843         ;;
26844 esac
26845
26846 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26847 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26848
26849 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26850
26851 if test "$build" != "$host" -a "$GCC" = yes; then
26852                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26853         cross_root=`dirname $cross_root`
26854         cross_root=`dirname $cross_root`
26855
26856                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26857         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26858         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26859
26860                 if test -z "$PKG_CONFIG_PATH"; then
26861             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26862             export PKG_CONFIG_PATH
26863         fi
26864
26865                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26866
26867 ac_find_includes=
26868 for ac_dir in $SEARCH_INCLUDE /usr/include
26869   do
26870     if test -f "$ac_dir/X11/Intrinsic.h"; then
26871       ac_find_includes=$ac_dir
26872       break
26873     fi
26874   done
26875
26876             x_includes=$ac_find_includes
26877         fi
26878         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26879
26880   ac_find_libraries=
26881   for ac_dir in $SEARCH_LIB
26882   do
26883     for ac_extension in a so sl dylib dll.a; do
26884       if test -f "$ac_dir/libXt.$ac_extension"; then
26885         ac_find_libraries=$ac_dir
26886         break 2
26887       fi
26888     done
26889   done
26890
26891             x_libraries=$ac_find_libraries
26892         fi
26893     fi
26894 fi
26895
26896
26897 cat >confcache <<\_ACEOF
26898 # This file is a shell script that caches the results of configure
26899 # tests run on this system so they can be shared between configure
26900 # scripts and configure runs, see configure's option --config-cache.
26901 # It is not useful on other systems.  If it contains results you don't
26902 # want to keep, you may remove or edit it.
26903 #
26904 # config.status only pays attention to the cache file if you give it
26905 # the --recheck option to rerun configure.
26906 #
26907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26909 # following values.
26910
26911 _ACEOF
26912
26913 # The following way of writing the cache mishandles newlines in values,
26914 # but we know of no workaround that is simple, portable, and efficient.
26915 # So, we kill variables containing newlines.
26916 # Ultrix sh set writes to stderr and can't be redirected directly,
26917 # and sets the high bit in the cache file unless we assign to the vars.
26918 (
26919   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26920     eval ac_val=\$$ac_var
26921     case $ac_val in #(
26922     *${as_nl}*)
26923       case $ac_var in #(
26924       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26925 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26926       esac
26927       case $ac_var in #(
26928       _ | IFS | as_nl) ;; #(
26929       *) $as_unset $ac_var ;;
26930       esac ;;
26931     esac
26932   done
26933
26934   (set) 2>&1 |
26935     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26936     *${as_nl}ac_space=\ *)
26937       # `set' does not quote correctly, so add quotes (double-quote
26938       # substitution turns \\\\ into \\, and sed turns \\ into \).
26939       sed -n \
26940         "s/'/'\\\\''/g;
26941           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26942       ;; #(
26943     *)
26944       # `set' quotes correctly as required by POSIX, so do not add quotes.
26945       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26946       ;;
26947     esac |
26948     sort
26949 ) |
26950   sed '
26951      /^ac_cv_env_/b end
26952      t clear
26953      :clear
26954      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26955      t end
26956      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26957      :end' >>confcache
26958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26959   if test -w "$cache_file"; then
26960     test "x$cache_file" != "x/dev/null" &&
26961       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26962 echo "$as_me: updating cache $cache_file" >&6;}
26963     cat confcache >$cache_file
26964   else
26965     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26966 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26967   fi
26968 fi
26969 rm -f confcache
26970
26971 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
26972     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26973 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
26974 if test "${wx_cv_lib_glibc21+set}" = set; then
26975   echo $ECHO_N "(cached) $ECHO_C" >&6
26976 else
26977
26978         cat >conftest.$ac_ext <<_ACEOF
26979 /* confdefs.h.  */
26980 _ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h.  */
26984 #include <features.h>
26985 int
26986 main ()
26987 {
26988
26989                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
26990                 not glibc 2.1
26991                 #endif
26992
26993   ;
26994   return 0;
26995 }
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001   *) ac_try_echo=$ac_try;;
27002 esac
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004   (eval "$ac_compile") 2>conftest.er1
27005   ac_status=$?
27006   grep -v '^ *+' conftest.er1 >conftest.err
27007   rm -f conftest.er1
27008   cat conftest.err >&5
27009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010   (exit $ac_status); } && {
27011          test -z "$ac_c_werror_flag" ||
27012          test ! -s conftest.err
27013        } && test -s conftest.$ac_objext; then
27014
27015                 wx_cv_lib_glibc21=yes
27016
27017 else
27018   echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27020
27021
27022                 wx_cv_lib_glibc21=no
27023
27024
27025 fi
27026
27027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27028
27029 fi
27030 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27031 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27032     if test "$wx_cv_lib_glibc21" = "yes"; then
27033         cat >>confdefs.h <<\_ACEOF
27034 #define wxHAVE_GLIBC2 1
27035 _ACEOF
27036
27037     fi
27038 fi
27039
27040 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27041     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27042         cat >>confdefs.h <<\_ACEOF
27043 #define _GNU_SOURCE 1
27044 _ACEOF
27045
27046     fi
27047 fi
27048
27049 have_cos=0
27050 have_floor=0
27051
27052 for ac_func in cos
27053 do
27054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27058   echo $ECHO_N "(cached) $ECHO_C" >&6
27059 else
27060   cat >conftest.$ac_ext <<_ACEOF
27061 /* confdefs.h.  */
27062 _ACEOF
27063 cat confdefs.h >>conftest.$ac_ext
27064 cat >>conftest.$ac_ext <<_ACEOF
27065 /* end confdefs.h.  */
27066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27068 #define $ac_func innocuous_$ac_func
27069
27070 /* System header to define __stub macros and hopefully few prototypes,
27071     which can conflict with char $ac_func (); below.
27072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27073     <limits.h> exists even on freestanding compilers.  */
27074
27075 #ifdef __STDC__
27076 # include <limits.h>
27077 #else
27078 # include <assert.h>
27079 #endif
27080
27081 #undef $ac_func
27082
27083 /* Override any GCC internal prototype to avoid an error.
27084    Use char because int might match the return type of a GCC
27085    builtin and then its argument prototype would still apply.  */
27086 #ifdef __cplusplus
27087 extern "C"
27088 #endif
27089 char $ac_func ();
27090 /* The GNU C library defines this for functions which it implements
27091     to always fail with ENOSYS.  Some functions are actually named
27092     something starting with __ and the normal name is an alias.  */
27093 #if defined __stub_$ac_func || defined __stub___$ac_func
27094 choke me
27095 #endif
27096
27097 int
27098 main ()
27099 {
27100 return $ac_func ();
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (ac_try="$ac_link"
27107 case "(($ac_try" in
27108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109   *) ac_try_echo=$ac_try;;
27110 esac
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112   (eval "$ac_link") 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } && {
27119          test -z "$ac_c_werror_flag" ||
27120          test ! -s conftest.err
27121        } && test -s conftest$ac_exeext &&
27122        $as_test_x conftest$ac_exeext; then
27123   eval "$as_ac_var=yes"
27124 else
27125   echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27127
27128         eval "$as_ac_var=no"
27129 fi
27130
27131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27132       conftest$ac_exeext conftest.$ac_ext
27133 fi
27134 ac_res=`eval echo '${'$as_ac_var'}'`
27135                { echo "$as_me:$LINENO: result: $ac_res" >&5
27136 echo "${ECHO_T}$ac_res" >&6; }
27137 if test `eval echo '${'$as_ac_var'}'` = yes; then
27138   cat >>confdefs.h <<_ACEOF
27139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27140 _ACEOF
27141  have_cos=1
27142 fi
27143 done
27144
27145
27146 for ac_func in floor
27147 do
27148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27152   echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154   cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27162 #define $ac_func innocuous_$ac_func
27163
27164 /* System header to define __stub macros and hopefully few prototypes,
27165     which can conflict with char $ac_func (); below.
27166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27167     <limits.h> exists even on freestanding compilers.  */
27168
27169 #ifdef __STDC__
27170 # include <limits.h>
27171 #else
27172 # include <assert.h>
27173 #endif
27174
27175 #undef $ac_func
27176
27177 /* Override any GCC internal prototype to avoid an error.
27178    Use char because int might match the return type of a GCC
27179    builtin and then its argument prototype would still apply.  */
27180 #ifdef __cplusplus
27181 extern "C"
27182 #endif
27183 char $ac_func ();
27184 /* The GNU C library defines this for functions which it implements
27185     to always fail with ENOSYS.  Some functions are actually named
27186     something starting with __ and the normal name is an alias.  */
27187 #if defined __stub_$ac_func || defined __stub___$ac_func
27188 choke me
27189 #endif
27190
27191 int
27192 main ()
27193 {
27194 return $ac_func ();
27195   ;
27196   return 0;
27197 }
27198 _ACEOF
27199 rm -f conftest.$ac_objext conftest$ac_exeext
27200 if { (ac_try="$ac_link"
27201 case "(($ac_try" in
27202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203   *) ac_try_echo=$ac_try;;
27204 esac
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206   (eval "$ac_link") 2>conftest.er1
27207   ac_status=$?
27208   grep -v '^ *+' conftest.er1 >conftest.err
27209   rm -f conftest.er1
27210   cat conftest.err >&5
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); } && {
27213          test -z "$ac_c_werror_flag" ||
27214          test ! -s conftest.err
27215        } && test -s conftest$ac_exeext &&
27216        $as_test_x conftest$ac_exeext; then
27217   eval "$as_ac_var=yes"
27218 else
27219   echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27221
27222         eval "$as_ac_var=no"
27223 fi
27224
27225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27226       conftest$ac_exeext conftest.$ac_ext
27227 fi
27228 ac_res=`eval echo '${'$as_ac_var'}'`
27229                { echo "$as_me:$LINENO: result: $ac_res" >&5
27230 echo "${ECHO_T}$ac_res" >&6; }
27231 if test `eval echo '${'$as_ac_var'}'` = yes; then
27232   cat >>confdefs.h <<_ACEOF
27233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27234 _ACEOF
27235  have_floor=1
27236 fi
27237 done
27238
27239 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27240 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27241 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27242     { echo "$as_me:$LINENO: result: yes" >&5
27243 echo "${ECHO_T}yes" >&6; }
27244 else
27245     { echo "$as_me:$LINENO: result: no" >&5
27246 echo "${ECHO_T}no" >&6; }
27247     LIBS="$LIBS -lm"
27248     # use different functions to avoid configure caching
27249     have_sin=0
27250     have_ceil=0
27251
27252 for ac_func in sin
27253 do
27254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27258   echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260   cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h.  */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h.  */
27266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27268 #define $ac_func innocuous_$ac_func
27269
27270 /* System header to define __stub macros and hopefully few prototypes,
27271     which can conflict with char $ac_func (); below.
27272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27273     <limits.h> exists even on freestanding compilers.  */
27274
27275 #ifdef __STDC__
27276 # include <limits.h>
27277 #else
27278 # include <assert.h>
27279 #endif
27280
27281 #undef $ac_func
27282
27283 /* Override any GCC internal prototype to avoid an error.
27284    Use char because int might match the return type of a GCC
27285    builtin and then its argument prototype would still apply.  */
27286 #ifdef __cplusplus
27287 extern "C"
27288 #endif
27289 char $ac_func ();
27290 /* The GNU C library defines this for functions which it implements
27291     to always fail with ENOSYS.  Some functions are actually named
27292     something starting with __ and the normal name is an alias.  */
27293 #if defined __stub_$ac_func || defined __stub___$ac_func
27294 choke me
27295 #endif
27296
27297 int
27298 main ()
27299 {
27300 return $ac_func ();
27301   ;
27302   return 0;
27303 }
27304 _ACEOF
27305 rm -f conftest.$ac_objext conftest$ac_exeext
27306 if { (ac_try="$ac_link"
27307 case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_link") 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } && {
27319          test -z "$ac_c_werror_flag" ||
27320          test ! -s conftest.err
27321        } && test -s conftest$ac_exeext &&
27322        $as_test_x conftest$ac_exeext; then
27323   eval "$as_ac_var=yes"
27324 else
27325   echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27327
27328         eval "$as_ac_var=no"
27329 fi
27330
27331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27332       conftest$ac_exeext conftest.$ac_ext
27333 fi
27334 ac_res=`eval echo '${'$as_ac_var'}'`
27335                { echo "$as_me:$LINENO: result: $ac_res" >&5
27336 echo "${ECHO_T}$ac_res" >&6; }
27337 if test `eval echo '${'$as_ac_var'}'` = yes; then
27338   cat >>confdefs.h <<_ACEOF
27339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27340 _ACEOF
27341  have_sin=1
27342 fi
27343 done
27344
27345
27346 for ac_func in ceil
27347 do
27348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354   cat >conftest.$ac_ext <<_ACEOF
27355 /* confdefs.h.  */
27356 _ACEOF
27357 cat confdefs.h >>conftest.$ac_ext
27358 cat >>conftest.$ac_ext <<_ACEOF
27359 /* end confdefs.h.  */
27360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27362 #define $ac_func innocuous_$ac_func
27363
27364 /* System header to define __stub macros and hopefully few prototypes,
27365     which can conflict with char $ac_func (); below.
27366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27367     <limits.h> exists even on freestanding compilers.  */
27368
27369 #ifdef __STDC__
27370 # include <limits.h>
27371 #else
27372 # include <assert.h>
27373 #endif
27374
27375 #undef $ac_func
27376
27377 /* Override any GCC internal prototype to avoid an error.
27378    Use char because int might match the return type of a GCC
27379    builtin and then its argument prototype would still apply.  */
27380 #ifdef __cplusplus
27381 extern "C"
27382 #endif
27383 char $ac_func ();
27384 /* The GNU C library defines this for functions which it implements
27385     to always fail with ENOSYS.  Some functions are actually named
27386     something starting with __ and the normal name is an alias.  */
27387 #if defined __stub_$ac_func || defined __stub___$ac_func
27388 choke me
27389 #endif
27390
27391 int
27392 main ()
27393 {
27394 return $ac_func ();
27395   ;
27396   return 0;
27397 }
27398 _ACEOF
27399 rm -f conftest.$ac_objext conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403   *) ac_try_echo=$ac_try;;
27404 esac
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406   (eval "$ac_link") 2>conftest.er1
27407   ac_status=$?
27408   grep -v '^ *+' conftest.er1 >conftest.err
27409   rm -f conftest.er1
27410   cat conftest.err >&5
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); } && {
27413          test -z "$ac_c_werror_flag" ||
27414          test ! -s conftest.err
27415        } && test -s conftest$ac_exeext &&
27416        $as_test_x conftest$ac_exeext; then
27417   eval "$as_ac_var=yes"
27418 else
27419   echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27421
27422         eval "$as_ac_var=no"
27423 fi
27424
27425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27426       conftest$ac_exeext conftest.$ac_ext
27427 fi
27428 ac_res=`eval echo '${'$as_ac_var'}'`
27429                { echo "$as_me:$LINENO: result: $ac_res" >&5
27430 echo "${ECHO_T}$ac_res" >&6; }
27431 if test `eval echo '${'$as_ac_var'}'` = yes; then
27432   cat >>confdefs.h <<_ACEOF
27433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27434 _ACEOF
27435  have_ceil=1
27436 fi
27437 done
27438
27439     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27440 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27441     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27442         { echo "$as_me:$LINENO: result: yes" >&5
27443 echo "${ECHO_T}yes" >&6; }
27444     else
27445         { echo "$as_me:$LINENO: result: no" >&5
27446 echo "${ECHO_T}no" >&6; }
27447         # not sure we should warn the user, crash, etc.
27448     fi
27449 fi
27450
27451 ac_ext=cpp
27452 ac_cpp='$CXXCPP $CPPFLAGS'
27453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27456
27457 if test "wxUSE_UNICODE" = "yes"; then
27458
27459   for wx_func in wcstoull
27460   do
27461     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27462 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27463 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27464   echo $ECHO_N "(cached) $ECHO_C" >&6
27465 else
27466
27467         cat >conftest.$ac_ext <<_ACEOF
27468
27469             /* confdefs.h.  */
27470 _ACEOF
27471 cat confdefs.h >>conftest.$ac_ext
27472 cat >>conftest.$ac_ext <<_ACEOF
27473 /* end confdefs.h.  */
27474
27475
27476                 $ac_includes_default
27477
27478 int
27479 main ()
27480 {
27481
27482                 #ifndef $wx_func
27483                   &$wx_func;
27484                 #endif
27485
27486
27487   ;
27488   return 0;
27489 }
27490
27491 _ACEOF
27492 rm -f conftest.$ac_objext conftest$ac_exeext
27493 if { (ac_try="$ac_link"
27494 case "(($ac_try" in
27495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496   *) ac_try_echo=$ac_try;;
27497 esac
27498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27499   (eval "$ac_link") 2>conftest.er1
27500   ac_status=$?
27501   grep -v '^ *+' conftest.er1 >conftest.err
27502   rm -f conftest.er1
27503   cat conftest.err >&5
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); } && {
27506          test -z "$ac_cxx_werror_flag" ||
27507          test ! -s conftest.err
27508        } && test -s conftest$ac_exeext &&
27509        $as_test_x conftest$ac_exeext; then
27510   eval wx_cv_func_$wx_func=yes
27511 else
27512   echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27514
27515         eval wx_cv_func_$wx_func=no
27516 fi
27517
27518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27519       conftest$ac_exeext conftest.$ac_ext
27520
27521 fi
27522 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27523                { echo "$as_me:$LINENO: result: $ac_res" >&5
27524 echo "${ECHO_T}$ac_res" >&6; }
27525
27526     if eval test \$wx_cv_func_$wx_func = yes
27527     then
27528       cat >>confdefs.h <<_ACEOF
27529 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27530 _ACEOF
27531
27532
27533     else
27534       :
27535
27536     fi
27537   done
27538
27539 else
27540
27541   for wx_func in strtoull
27542   do
27543     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27544 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27545 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27546   echo $ECHO_N "(cached) $ECHO_C" >&6
27547 else
27548
27549         cat >conftest.$ac_ext <<_ACEOF
27550
27551             /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556
27557
27558                 $ac_includes_default
27559
27560 int
27561 main ()
27562 {
27563
27564                 #ifndef $wx_func
27565                   &$wx_func;
27566                 #endif
27567
27568
27569   ;
27570   return 0;
27571 }
27572
27573 _ACEOF
27574 rm -f conftest.$ac_objext conftest$ac_exeext
27575 if { (ac_try="$ac_link"
27576 case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581   (eval "$ac_link") 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } && {
27588          test -z "$ac_cxx_werror_flag" ||
27589          test ! -s conftest.err
27590        } && test -s conftest$ac_exeext &&
27591        $as_test_x conftest$ac_exeext; then
27592   eval wx_cv_func_$wx_func=yes
27593 else
27594   echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597         eval wx_cv_func_$wx_func=no
27598 fi
27599
27600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27601       conftest$ac_exeext conftest.$ac_ext
27602
27603 fi
27604 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27605                { echo "$as_me:$LINENO: result: $ac_res" >&5
27606 echo "${ECHO_T}$ac_res" >&6; }
27607
27608     if eval test \$wx_cv_func_$wx_func = yes
27609     then
27610       cat >>confdefs.h <<_ACEOF
27611 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27612 _ACEOF
27613
27614
27615     else
27616       :
27617
27618     fi
27619   done
27620
27621 fi
27622 ac_ext=c
27623 ac_cpp='$CPP $CPPFLAGS'
27624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27627
27628
27629
27630
27631 if test "$wxUSE_REGEX" != "no"; then
27632     cat >>confdefs.h <<\_ACEOF
27633 #define wxUSE_REGEX 1
27634 _ACEOF
27635
27636
27637     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27638         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27639 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27640         wxUSE_REGEX=builtin
27641     fi
27642
27643     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27644                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27645 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27646 if test "${ac_cv_header_regex_h+set}" = set; then
27647   echo $ECHO_N "(cached) $ECHO_C" >&6
27648 else
27649   cat >conftest.$ac_ext <<_ACEOF
27650 /* confdefs.h.  */
27651 _ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h.  */
27655
27656
27657 #include <regex.h>
27658 _ACEOF
27659 rm -f conftest.$ac_objext
27660 if { (ac_try="$ac_compile"
27661 case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666   (eval "$ac_compile") 2>conftest.er1
27667   ac_status=$?
27668   grep -v '^ *+' conftest.er1 >conftest.err
27669   rm -f conftest.er1
27670   cat conftest.err >&5
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); } && {
27673          test -z "$ac_c_werror_flag" ||
27674          test ! -s conftest.err
27675        } && test -s conftest.$ac_objext; then
27676   ac_cv_header_regex_h=yes
27677 else
27678   echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681         ac_cv_header_regex_h=no
27682 fi
27683
27684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27685 fi
27686 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27687 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27688 if test $ac_cv_header_regex_h = yes; then
27689
27690
27691 for ac_func in regcomp re_search
27692 do
27693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27697   echo $ECHO_N "(cached) $ECHO_C" >&6
27698 else
27699   cat >conftest.$ac_ext <<_ACEOF
27700 /* confdefs.h.  */
27701 _ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h.  */
27705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27707 #define $ac_func innocuous_$ac_func
27708
27709 /* System header to define __stub macros and hopefully few prototypes,
27710     which can conflict with char $ac_func (); below.
27711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27712     <limits.h> exists even on freestanding compilers.  */
27713
27714 #ifdef __STDC__
27715 # include <limits.h>
27716 #else
27717 # include <assert.h>
27718 #endif
27719
27720 #undef $ac_func
27721
27722 /* Override any GCC internal prototype to avoid an error.
27723    Use char because int might match the return type of a GCC
27724    builtin and then its argument prototype would still apply.  */
27725 #ifdef __cplusplus
27726 extern "C"
27727 #endif
27728 char $ac_func ();
27729 /* The GNU C library defines this for functions which it implements
27730     to always fail with ENOSYS.  Some functions are actually named
27731     something starting with __ and the normal name is an alias.  */
27732 #if defined __stub_$ac_func || defined __stub___$ac_func
27733 choke me
27734 #endif
27735
27736 int
27737 main ()
27738 {
27739 return $ac_func ();
27740   ;
27741   return 0;
27742 }
27743 _ACEOF
27744 rm -f conftest.$ac_objext conftest$ac_exeext
27745 if { (ac_try="$ac_link"
27746 case "(($ac_try" in
27747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748   *) ac_try_echo=$ac_try;;
27749 esac
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751   (eval "$ac_link") 2>conftest.er1
27752   ac_status=$?
27753   grep -v '^ *+' conftest.er1 >conftest.err
27754   rm -f conftest.er1
27755   cat conftest.err >&5
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); } && {
27758          test -z "$ac_c_werror_flag" ||
27759          test ! -s conftest.err
27760        } && test -s conftest$ac_exeext &&
27761        $as_test_x conftest$ac_exeext; then
27762   eval "$as_ac_var=yes"
27763 else
27764   echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27766
27767         eval "$as_ac_var=no"
27768 fi
27769
27770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27771       conftest$ac_exeext conftest.$ac_ext
27772 fi
27773 ac_res=`eval echo '${'$as_ac_var'}'`
27774                { echo "$as_me:$LINENO: result: $ac_res" >&5
27775 echo "${ECHO_T}$ac_res" >&6; }
27776 if test `eval echo '${'$as_ac_var'}'` = yes; then
27777   cat >>confdefs.h <<_ACEOF
27778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27779 _ACEOF
27780
27781 fi
27782 done
27783
27784 fi
27785
27786
27787
27788         if test "x$ac_cv_func_regcomp" != "xyes"; then
27789             if test "$wxUSE_REGEX" = "sys" ; then
27790                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27791 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27792    { (exit 1); exit 1; }; }
27793             else
27794                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27795 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27796                 wxUSE_REGEX=builtin
27797             fi
27798         else
27799                         wxUSE_REGEX=sys
27800                         cat >>confdefs.h <<\_ACEOF
27801 #define WX_NO_REGEX_ADVANCED 1
27802 _ACEOF
27803
27804         fi
27805     fi
27806 fi
27807
27808
27809 ZLIB_LINK=
27810 if test "$wxUSE_ZLIB" != "no" ; then
27811     cat >>confdefs.h <<\_ACEOF
27812 #define wxUSE_ZLIB 1
27813 _ACEOF
27814
27815
27816     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27817                                                 if test "$USE_DARWIN" = 1; then
27818             system_zlib_h_ok="yes"
27819         else
27820                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27821 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
27822 if test "${ac_cv_header_zlib_h+set}" = set; then
27823   echo $ECHO_N "(cached) $ECHO_C" >&6
27824 else
27825   if test "$cross_compiling" = yes; then
27826                       unset ac_cv_header_zlib_h
27827
27828 else
27829   cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h.  */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h.  */
27835
27836                         #include <zlib.h>
27837                         #include <stdio.h>
27838
27839                         int main()
27840                         {
27841                             FILE *f=fopen("conftestval", "w");
27842                             if (!f) exit(1);
27843                             fprintf(f, "%s",
27844                                     ZLIB_VERSION[0] == '1' &&
27845                                     (ZLIB_VERSION[2] > '1' ||
27846                                     (ZLIB_VERSION[2] == '1' &&
27847                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27848                             exit(0);
27849                         }
27850
27851 _ACEOF
27852 rm -f conftest$ac_exeext
27853 if { (ac_try="$ac_link"
27854 case "(($ac_try" in
27855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856   *) ac_try_echo=$ac_try;;
27857 esac
27858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859   (eval "$ac_link") 2>&5
27860   ac_status=$?
27861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27863   { (case "(($ac_try" in
27864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865   *) ac_try_echo=$ac_try;;
27866 esac
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868   (eval "$ac_try") 2>&5
27869   ac_status=$?
27870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); }; }; then
27872   ac_cv_header_zlib_h=`cat conftestval`
27873 else
27874   echo "$as_me: program exited with status $ac_status" >&5
27875 echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27877
27878 ( exit $ac_status )
27879 ac_cv_header_zlib_h=no
27880 fi
27881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27882 fi
27883
27884
27885
27886 fi
27887 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27888 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27889                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
27890 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27891 if test "${ac_cv_header_zlib_h+set}" = set; then
27892   echo $ECHO_N "(cached) $ECHO_C" >&6
27893 else
27894   cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900
27901
27902 #include <zlib.h>
27903 _ACEOF
27904 rm -f conftest.$ac_objext
27905 if { (ac_try="$ac_compile"
27906 case "(($ac_try" in
27907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27908   *) ac_try_echo=$ac_try;;
27909 esac
27910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27911   (eval "$ac_compile") 2>conftest.er1
27912   ac_status=$?
27913   grep -v '^ *+' conftest.er1 >conftest.err
27914   rm -f conftest.er1
27915   cat conftest.err >&5
27916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917   (exit $ac_status); } && {
27918          test -z "$ac_c_werror_flag" ||
27919          test ! -s conftest.err
27920        } && test -s conftest.$ac_objext; then
27921   ac_cv_header_zlib_h=yes
27922 else
27923   echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27925
27926         ac_cv_header_zlib_h=no
27927 fi
27928
27929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27930 fi
27931 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27932 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27933
27934
27935
27936             system_zlib_h_ok=$ac_cv_header_zlib_h
27937         fi
27938
27939         if test "$system_zlib_h_ok" = "yes"; then
27940             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27941 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
27942 if test "${ac_cv_lib_z_deflate+set}" = set; then
27943   echo $ECHO_N "(cached) $ECHO_C" >&6
27944 else
27945   ac_check_lib_save_LIBS=$LIBS
27946 LIBS="-lz  $LIBS"
27947 cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953
27954 /* Override any GCC internal prototype to avoid an error.
27955    Use char because int might match the return type of a GCC
27956    builtin and then its argument prototype would still apply.  */
27957 #ifdef __cplusplus
27958 extern "C"
27959 #endif
27960 char deflate ();
27961 int
27962 main ()
27963 {
27964 return deflate ();
27965   ;
27966   return 0;
27967 }
27968 _ACEOF
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (ac_try="$ac_link"
27971 case "(($ac_try" in
27972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973   *) ac_try_echo=$ac_try;;
27974 esac
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976   (eval "$ac_link") 2>conftest.er1
27977   ac_status=$?
27978   grep -v '^ *+' conftest.er1 >conftest.err
27979   rm -f conftest.er1
27980   cat conftest.err >&5
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); } && {
27983          test -z "$ac_c_werror_flag" ||
27984          test ! -s conftest.err
27985        } && test -s conftest$ac_exeext &&
27986        $as_test_x conftest$ac_exeext; then
27987   ac_cv_lib_z_deflate=yes
27988 else
27989   echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27991
27992         ac_cv_lib_z_deflate=no
27993 fi
27994
27995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27996       conftest$ac_exeext conftest.$ac_ext
27997 LIBS=$ac_check_lib_save_LIBS
27998 fi
27999 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28000 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28001 if test $ac_cv_lib_z_deflate = yes; then
28002   ZLIB_LINK=" -lz"
28003 fi
28004
28005         fi
28006
28007         if test "x$ZLIB_LINK" = "x" ; then
28008             if test "$wxUSE_ZLIB" = "sys" ; then
28009                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28010 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28011    { (exit 1); exit 1; }; }
28012             else
28013                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28014 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28015                 wxUSE_ZLIB=builtin
28016             fi
28017         else
28018                         wxUSE_ZLIB=sys
28019         fi
28020     fi
28021 fi
28022
28023
28024 PNG_LINK=
28025 if test "$wxUSE_LIBPNG" != "no" ; then
28026     cat >>confdefs.h <<\_ACEOF
28027 #define wxUSE_LIBPNG 1
28028 _ACEOF
28029
28030
28031     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28032         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28033 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28034         wxUSE_LIBPNG=sys
28035     fi
28036
28037                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28038         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28039 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28040         wxUSE_LIBPNG=builtin
28041     fi
28042
28043     if test "$wxUSE_MGL" != 1 ; then
28044                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28045                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28046 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28047 if test "${ac_cv_header_png_h+set}" = set; then
28048   echo $ECHO_N "(cached) $ECHO_C" >&6
28049 else
28050   if test "$cross_compiling" = yes; then
28051                       unset ac_cv_header_png_h
28052
28053 else
28054   cat >conftest.$ac_ext <<_ACEOF
28055 /* confdefs.h.  */
28056 _ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h.  */
28060
28061                         #include <png.h>
28062                         #include <stdio.h>
28063
28064                         int main()
28065                         {
28066                             FILE *f=fopen("conftestval", "w");
28067                             if (!f) exit(1);
28068                             fprintf(f, "%s",
28069                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28070                             exit(0);
28071                         }
28072
28073 _ACEOF
28074 rm -f conftest$ac_exeext
28075 if { (ac_try="$ac_link"
28076 case "(($ac_try" in
28077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078   *) ac_try_echo=$ac_try;;
28079 esac
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081   (eval "$ac_link") 2>&5
28082   ac_status=$?
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28085   { (case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_try") 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; }; then
28094   ac_cv_header_png_h=`cat conftestval`
28095 else
28096   echo "$as_me: program exited with status $ac_status" >&5
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100 ( exit $ac_status )
28101 ac_cv_header_png_h=no
28102 fi
28103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28104 fi
28105
28106
28107
28108 fi
28109 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28110 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28111             { echo "$as_me:$LINENO: checking for png.h" >&5
28112 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28113 if test "${ac_cv_header_png_h+set}" = set; then
28114   echo $ECHO_N "(cached) $ECHO_C" >&6
28115 else
28116   cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122
28123
28124 #include <png.h>
28125 _ACEOF
28126 rm -f conftest.$ac_objext
28127 if { (ac_try="$ac_compile"
28128 case "(($ac_try" in
28129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130   *) ac_try_echo=$ac_try;;
28131 esac
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133   (eval "$ac_compile") 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } && {
28140          test -z "$ac_c_werror_flag" ||
28141          test ! -s conftest.err
28142        } && test -s conftest.$ac_objext; then
28143   ac_cv_header_png_h=yes
28144 else
28145   echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28147
28148         ac_cv_header_png_h=no
28149 fi
28150
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28152 fi
28153 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28154 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28155
28156
28157
28158             if test "$ac_cv_header_png_h" = "yes"; then
28159                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28160 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28161 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28162   echo $ECHO_N "(cached) $ECHO_C" >&6
28163 else
28164   ac_check_lib_save_LIBS=$LIBS
28165 LIBS="-lpng -lz -lm $LIBS"
28166 cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172
28173 /* Override any GCC internal prototype to avoid an error.
28174    Use char because int might match the return type of a GCC
28175    builtin and then its argument prototype would still apply.  */
28176 #ifdef __cplusplus
28177 extern "C"
28178 #endif
28179 char png_sig_cmp ();
28180 int
28181 main ()
28182 {
28183 return png_sig_cmp ();
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 rm -f conftest.$ac_objext conftest$ac_exeext
28189 if { (ac_try="$ac_link"
28190 case "(($ac_try" in
28191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192   *) ac_try_echo=$ac_try;;
28193 esac
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195   (eval "$ac_link") 2>conftest.er1
28196   ac_status=$?
28197   grep -v '^ *+' conftest.er1 >conftest.err
28198   rm -f conftest.er1
28199   cat conftest.err >&5
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); } && {
28202          test -z "$ac_c_werror_flag" ||
28203          test ! -s conftest.err
28204        } && test -s conftest$ac_exeext &&
28205        $as_test_x conftest$ac_exeext; then
28206   ac_cv_lib_png_png_sig_cmp=yes
28207 else
28208   echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211         ac_cv_lib_png_png_sig_cmp=no
28212 fi
28213
28214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28215       conftest$ac_exeext conftest.$ac_ext
28216 LIBS=$ac_check_lib_save_LIBS
28217 fi
28218 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28219 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28220 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28221   PNG_LINK=" -lpng -lz"
28222 fi
28223
28224             fi
28225
28226             if test "x$PNG_LINK" = "x" ; then
28227                 if test "$wxUSE_LIBPNG" = "sys" ; then
28228                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28229 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28230    { (exit 1); exit 1; }; }
28231                 else
28232                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28233 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28234                     wxUSE_LIBPNG=builtin
28235                 fi
28236             else
28237                                 wxUSE_LIBPNG=sys
28238             fi
28239         fi
28240     fi
28241 fi
28242
28243
28244 JPEG_LINK=
28245 if test "$wxUSE_LIBJPEG" != "no" ; then
28246     cat >>confdefs.h <<\_ACEOF
28247 #define wxUSE_LIBJPEG 1
28248 _ACEOF
28249
28250
28251     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28252         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28253 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28254         wxUSE_LIBJPEG=sys
28255     fi
28256
28257     if test "$wxUSE_MGL" != 1 ; then
28258                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28259                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28260 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28261             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28262   echo $ECHO_N "(cached) $ECHO_C" >&6
28263 else
28264   cat >conftest.$ac_ext <<_ACEOF
28265 /* confdefs.h.  */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h.  */
28270
28271                         #undef HAVE_STDLIB_H
28272                         #include <stdio.h>
28273                         #include <jpeglib.h>
28274
28275 int
28276 main ()
28277 {
28278
28279
28280   ;
28281   return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext
28285 if { (ac_try="$ac_compile"
28286 case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_compile") 2>conftest.er1
28292   ac_status=$?
28293   grep -v '^ *+' conftest.er1 >conftest.err
28294   rm -f conftest.er1
28295   cat conftest.err >&5
28296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297   (exit $ac_status); } && {
28298          test -z "$ac_c_werror_flag" ||
28299          test ! -s conftest.err
28300        } && test -s conftest.$ac_objext; then
28301   ac_cv_header_jpeglib_h=yes
28302 else
28303   echo "$as_me: failed program was:" >&5
28304 sed 's/^/| /' conftest.$ac_ext >&5
28305
28306         ac_cv_header_jpeglib_h=no
28307
28308 fi
28309
28310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28311
28312 fi
28313
28314             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28315 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28316
28317             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28318                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28319 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28320 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28321   echo $ECHO_N "(cached) $ECHO_C" >&6
28322 else
28323   ac_check_lib_save_LIBS=$LIBS
28324 LIBS="-ljpeg  $LIBS"
28325 cat >conftest.$ac_ext <<_ACEOF
28326 /* confdefs.h.  */
28327 _ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h.  */
28331
28332 /* Override any GCC internal prototype to avoid an error.
28333    Use char because int might match the return type of a GCC
28334    builtin and then its argument prototype would still apply.  */
28335 #ifdef __cplusplus
28336 extern "C"
28337 #endif
28338 char jpeg_read_header ();
28339 int
28340 main ()
28341 {
28342 return jpeg_read_header ();
28343   ;
28344   return 0;
28345 }
28346 _ACEOF
28347 rm -f conftest.$ac_objext conftest$ac_exeext
28348 if { (ac_try="$ac_link"
28349 case "(($ac_try" in
28350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351   *) ac_try_echo=$ac_try;;
28352 esac
28353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354   (eval "$ac_link") 2>conftest.er1
28355   ac_status=$?
28356   grep -v '^ *+' conftest.er1 >conftest.err
28357   rm -f conftest.er1
28358   cat conftest.err >&5
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); } && {
28361          test -z "$ac_c_werror_flag" ||
28362          test ! -s conftest.err
28363        } && test -s conftest$ac_exeext &&
28364        $as_test_x conftest$ac_exeext; then
28365   ac_cv_lib_jpeg_jpeg_read_header=yes
28366 else
28367   echo "$as_me: failed program was:" >&5
28368 sed 's/^/| /' conftest.$ac_ext >&5
28369
28370         ac_cv_lib_jpeg_jpeg_read_header=no
28371 fi
28372
28373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28374       conftest$ac_exeext conftest.$ac_ext
28375 LIBS=$ac_check_lib_save_LIBS
28376 fi
28377 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28378 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28379 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28380   JPEG_LINK=" -ljpeg"
28381 fi
28382
28383             fi
28384
28385             if test "x$JPEG_LINK" = "x" ; then
28386                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28387                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28388 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28389    { (exit 1); exit 1; }; }
28390                 else
28391                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28392 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28393                     wxUSE_LIBJPEG=builtin
28394                 fi
28395             else
28396                                 wxUSE_LIBJPEG=sys
28397
28398                 if test "$wxUSE_MSW" = 1; then
28399                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28400 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28401 if test "${ac_cv_type_boolean+set}" = set; then
28402   echo $ECHO_N "(cached) $ECHO_C" >&6
28403 else
28404   cat >conftest.$ac_ext <<_ACEOF
28405 /* confdefs.h.  */
28406 _ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h.  */
28410 #include <windows.h>
28411
28412 typedef boolean ac__type_new_;
28413 int
28414 main ()
28415 {
28416 if ((ac__type_new_ *) 0)
28417   return 0;
28418 if (sizeof (ac__type_new_))
28419   return 0;
28420   ;
28421   return 0;
28422 }
28423 _ACEOF
28424 rm -f conftest.$ac_objext
28425 if { (ac_try="$ac_compile"
28426 case "(($ac_try" in
28427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428   *) ac_try_echo=$ac_try;;
28429 esac
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431   (eval "$ac_compile") 2>conftest.er1
28432   ac_status=$?
28433   grep -v '^ *+' conftest.er1 >conftest.err
28434   rm -f conftest.er1
28435   cat conftest.err >&5
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); } && {
28438          test -z "$ac_c_werror_flag" ||
28439          test ! -s conftest.err
28440        } && test -s conftest.$ac_objext; then
28441   ac_cv_type_boolean=yes
28442 else
28443   echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28445
28446         ac_cv_type_boolean=no
28447 fi
28448
28449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450 fi
28451 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28452 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28453 if test $ac_cv_type_boolean = yes; then
28454
28455 cat >>confdefs.h <<_ACEOF
28456 #define HAVE_BOOLEAN 1
28457 _ACEOF
28458
28459
28460                             { echo "$as_me:$LINENO: checking for boolean" >&5
28461 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28462 if test "${ac_cv_type_boolean+set}" = set; then
28463   echo $ECHO_N "(cached) $ECHO_C" >&6
28464 else
28465   cat >conftest.$ac_ext <<_ACEOF
28466 /* confdefs.h.  */
28467 _ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h.  */
28471
28472                                     #undef HAVE_BOOLEAN
28473                                     #include <stdio.h>
28474                                     #include <jpeglib.h>
28475
28476
28477 typedef boolean ac__type_new_;
28478 int
28479 main ()
28480 {
28481 if ((ac__type_new_ *) 0)
28482   return 0;
28483 if (sizeof (ac__type_new_))
28484   return 0;
28485   ;
28486   return 0;
28487 }
28488 _ACEOF
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496   (eval "$ac_compile") 2>conftest.er1
28497   ac_status=$?
28498   grep -v '^ *+' conftest.er1 >conftest.err
28499   rm -f conftest.er1
28500   cat conftest.err >&5
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); } && {
28503          test -z "$ac_c_werror_flag" ||
28504          test ! -s conftest.err
28505        } && test -s conftest.$ac_objext; then
28506   ac_cv_type_boolean=yes
28507 else
28508   echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28510
28511         ac_cv_type_boolean=no
28512 fi
28513
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515 fi
28516 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28517 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28518
28519 # The cast to long int works around a bug in the HP C Compiler
28520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28522 # This bug is HP SR number 8606223364.
28523 { echo "$as_me:$LINENO: checking size of boolean" >&5
28524 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28525 if test "${ac_cv_sizeof_boolean+set}" = set; then
28526   echo $ECHO_N "(cached) $ECHO_C" >&6
28527 else
28528   if test "$cross_compiling" = yes; then
28529   # Depending upon the size, compute the lo and hi bounds.
28530 cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536
28537                                     #undef HAVE_BOOLEAN
28538                                     #include <stdio.h>
28539                                     #include <jpeglib.h>
28540
28541
28542    typedef boolean ac__type_sizeof_;
28543 int
28544 main ()
28545 {
28546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28547 test_array [0] = 0
28548
28549   ;
28550   return 0;
28551 }
28552 _ACEOF
28553 rm -f conftest.$ac_objext
28554 if { (ac_try="$ac_compile"
28555 case "(($ac_try" in
28556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557   *) ac_try_echo=$ac_try;;
28558 esac
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560   (eval "$ac_compile") 2>conftest.er1
28561   ac_status=$?
28562   grep -v '^ *+' conftest.er1 >conftest.err
28563   rm -f conftest.er1
28564   cat conftest.err >&5
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); } && {
28567          test -z "$ac_c_werror_flag" ||
28568          test ! -s conftest.err
28569        } && test -s conftest.$ac_objext; then
28570   ac_lo=0 ac_mid=0
28571   while :; do
28572     cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578
28579                                     #undef HAVE_BOOLEAN
28580                                     #include <stdio.h>
28581                                     #include <jpeglib.h>
28582
28583
28584    typedef boolean ac__type_sizeof_;
28585 int
28586 main ()
28587 {
28588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28589 test_array [0] = 0
28590
28591   ;
28592   return 0;
28593 }
28594 _ACEOF
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
28597 case "(($ac_try" in
28598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599   *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602   (eval "$ac_compile") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } && {
28609          test -z "$ac_c_werror_flag" ||
28610          test ! -s conftest.err
28611        } && test -s conftest.$ac_objext; then
28612   ac_hi=$ac_mid; break
28613 else
28614   echo "$as_me: failed program was:" >&5
28615 sed 's/^/| /' conftest.$ac_ext >&5
28616
28617         ac_lo=`expr $ac_mid + 1`
28618                         if test $ac_lo -le $ac_mid; then
28619                           ac_lo= ac_hi=
28620                           break
28621                         fi
28622                         ac_mid=`expr 2 '*' $ac_mid + 1`
28623 fi
28624
28625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28626   done
28627 else
28628   echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631         cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h.  */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h.  */
28637
28638                                     #undef HAVE_BOOLEAN
28639                                     #include <stdio.h>
28640                                     #include <jpeglib.h>
28641
28642
28643    typedef boolean ac__type_sizeof_;
28644 int
28645 main ()
28646 {
28647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28648 test_array [0] = 0
28649
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext
28655 if { (ac_try="$ac_compile"
28656 case "(($ac_try" in
28657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28658   *) ac_try_echo=$ac_try;;
28659 esac
28660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28661   (eval "$ac_compile") 2>conftest.er1
28662   ac_status=$?
28663   grep -v '^ *+' conftest.er1 >conftest.err
28664   rm -f conftest.er1
28665   cat conftest.err >&5
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); } && {
28668          test -z "$ac_c_werror_flag" ||
28669          test ! -s conftest.err
28670        } && test -s conftest.$ac_objext; then
28671   ac_hi=-1 ac_mid=-1
28672   while :; do
28673     cat >conftest.$ac_ext <<_ACEOF
28674 /* confdefs.h.  */
28675 _ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h.  */
28679
28680                                     #undef HAVE_BOOLEAN
28681                                     #include <stdio.h>
28682                                     #include <jpeglib.h>
28683
28684
28685    typedef boolean ac__type_sizeof_;
28686 int
28687 main ()
28688 {
28689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28690 test_array [0] = 0
28691
28692   ;
28693   return 0;
28694 }
28695 _ACEOF
28696 rm -f conftest.$ac_objext
28697 if { (ac_try="$ac_compile"
28698 case "(($ac_try" in
28699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28700   *) ac_try_echo=$ac_try;;
28701 esac
28702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28703   (eval "$ac_compile") 2>conftest.er1
28704   ac_status=$?
28705   grep -v '^ *+' conftest.er1 >conftest.err
28706   rm -f conftest.er1
28707   cat conftest.err >&5
28708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709   (exit $ac_status); } && {
28710          test -z "$ac_c_werror_flag" ||
28711          test ! -s conftest.err
28712        } && test -s conftest.$ac_objext; then
28713   ac_lo=$ac_mid; break
28714 else
28715   echo "$as_me: failed program was:" >&5
28716 sed 's/^/| /' conftest.$ac_ext >&5
28717
28718         ac_hi=`expr '(' $ac_mid ')' - 1`
28719                         if test $ac_mid -le $ac_hi; then
28720                           ac_lo= ac_hi=
28721                           break
28722                         fi
28723                         ac_mid=`expr 2 '*' $ac_mid`
28724 fi
28725
28726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727   done
28728 else
28729   echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28731
28732         ac_lo= ac_hi=
28733 fi
28734
28735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 fi
28737
28738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739 # Binary search between lo and hi bounds.
28740 while test "x$ac_lo" != "x$ac_hi"; do
28741   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28742   cat >conftest.$ac_ext <<_ACEOF
28743 /* confdefs.h.  */
28744 _ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h.  */
28748
28749                                     #undef HAVE_BOOLEAN
28750                                     #include <stdio.h>
28751                                     #include <jpeglib.h>
28752
28753
28754    typedef boolean ac__type_sizeof_;
28755 int
28756 main ()
28757 {
28758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28759 test_array [0] = 0
28760
28761   ;
28762   return 0;
28763 }
28764 _ACEOF
28765 rm -f conftest.$ac_objext
28766 if { (ac_try="$ac_compile"
28767 case "(($ac_try" in
28768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769   *) ac_try_echo=$ac_try;;
28770 esac
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772   (eval "$ac_compile") 2>conftest.er1
28773   ac_status=$?
28774   grep -v '^ *+' conftest.er1 >conftest.err
28775   rm -f conftest.er1
28776   cat conftest.err >&5
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); } && {
28779          test -z "$ac_c_werror_flag" ||
28780          test ! -s conftest.err
28781        } && test -s conftest.$ac_objext; then
28782   ac_hi=$ac_mid
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787         ac_lo=`expr '(' $ac_mid ')' + 1`
28788 fi
28789
28790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28791 done
28792 case $ac_lo in
28793 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28794 '') if test "$ac_cv_type_boolean" = yes; then
28795      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28796 See \`config.log' for more details." >&5
28797 echo "$as_me: error: cannot compute sizeof (boolean)
28798 See \`config.log' for more details." >&2;}
28799    { (exit 77); exit 77; }; }
28800    else
28801      ac_cv_sizeof_boolean=0
28802    fi ;;
28803 esac
28804 else
28805   cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811
28812                                     #undef HAVE_BOOLEAN
28813                                     #include <stdio.h>
28814                                     #include <jpeglib.h>
28815
28816
28817    typedef boolean ac__type_sizeof_;
28818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28820 #include <stdio.h>
28821 #include <stdlib.h>
28822 int
28823 main ()
28824 {
28825
28826   FILE *f = fopen ("conftest.val", "w");
28827   if (! f)
28828     return 1;
28829   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28830     {
28831       long int i = longval ();
28832       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28833         return 1;
28834       fprintf (f, "%ld\n", i);
28835     }
28836   else
28837     {
28838       unsigned long int i = ulongval ();
28839       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28840         return 1;
28841       fprintf (f, "%lu\n", i);
28842     }
28843   return ferror (f) || fclose (f) != 0;
28844
28845   ;
28846   return 0;
28847 }
28848 _ACEOF
28849 rm -f conftest$ac_exeext
28850 if { (ac_try="$ac_link"
28851 case "(($ac_try" in
28852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853   *) ac_try_echo=$ac_try;;
28854 esac
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856   (eval "$ac_link") 2>&5
28857   ac_status=$?
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28860   { (case "(($ac_try" in
28861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862   *) ac_try_echo=$ac_try;;
28863 esac
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865   (eval "$ac_try") 2>&5
28866   ac_status=$?
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); }; }; then
28869   ac_cv_sizeof_boolean=`cat conftest.val`
28870 else
28871   echo "$as_me: program exited with status $ac_status" >&5
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875 ( exit $ac_status )
28876 if test "$ac_cv_type_boolean" = yes; then
28877      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28878 See \`config.log' for more details." >&5
28879 echo "$as_me: error: cannot compute sizeof (boolean)
28880 See \`config.log' for more details." >&2;}
28881    { (exit 77); exit 77; }; }
28882    else
28883      ac_cv_sizeof_boolean=0
28884    fi
28885 fi
28886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28887 fi
28888 rm -f conftest.val
28889 fi
28890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28891 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
28892
28893
28894
28895 cat >>confdefs.h <<_ACEOF
28896 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28897 _ACEOF
28898
28899
28900                             cat >>confdefs.h <<_ACEOF
28901 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28902 _ACEOF
28903
28904
28905 fi
28906
28907                 fi
28908             fi
28909         fi
28910     fi
28911 fi
28912
28913
28914 TIFF_LINK=
28915 TIFF_PREREQ_LINKS=-lm
28916 if test "$wxUSE_LIBTIFF" != "no" ; then
28917     cat >>confdefs.h <<\_ACEOF
28918 #define wxUSE_LIBTIFF 1
28919 _ACEOF
28920
28921
28922     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28923                         if test "$wxUSE_LIBJPEG" = "sys"; then
28924             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28925         fi
28926         if test "$wxUSE_ZLIB" = "sys"; then
28927             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28928         fi
28929         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
28930 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
28931 if test "${ac_cv_header_tiffio_h+set}" = set; then
28932   echo $ECHO_N "(cached) $ECHO_C" >&6
28933 else
28934   cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940
28941
28942
28943 #include <tiffio.h>
28944 _ACEOF
28945 rm -f conftest.$ac_objext
28946 if { (ac_try="$ac_compile"
28947 case "(($ac_try" in
28948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949   *) ac_try_echo=$ac_try;;
28950 esac
28951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952   (eval "$ac_compile") 2>conftest.er1
28953   ac_status=$?
28954   grep -v '^ *+' conftest.er1 >conftest.err
28955   rm -f conftest.er1
28956   cat conftest.err >&5
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); } && {
28959          test -z "$ac_c_werror_flag" ||
28960          test ! -s conftest.err
28961        } && test -s conftest.$ac_objext; then
28962   ac_cv_header_tiffio_h=yes
28963 else
28964   echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28966
28967         ac_cv_header_tiffio_h=no
28968 fi
28969
28970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28971 fi
28972 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28973 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
28974 if test $ac_cv_header_tiffio_h = yes; then
28975
28976                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28977 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
28978 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
28979   echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981   ac_check_lib_save_LIBS=$LIBS
28982 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28983 cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990 /* Override any GCC internal prototype to avoid an error.
28991    Use char because int might match the return type of a GCC
28992    builtin and then its argument prototype would still apply.  */
28993 #ifdef __cplusplus
28994 extern "C"
28995 #endif
28996 char TIFFError ();
28997 int
28998 main ()
28999 {
29000 return TIFFError ();
29001   ;
29002   return 0;
29003 }
29004 _ACEOF
29005 rm -f conftest.$ac_objext conftest$ac_exeext
29006 if { (ac_try="$ac_link"
29007 case "(($ac_try" in
29008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29009   *) ac_try_echo=$ac_try;;
29010 esac
29011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29012   (eval "$ac_link") 2>conftest.er1
29013   ac_status=$?
29014   grep -v '^ *+' conftest.er1 >conftest.err
29015   rm -f conftest.er1
29016   cat conftest.err >&5
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); } && {
29019          test -z "$ac_c_werror_flag" ||
29020          test ! -s conftest.err
29021        } && test -s conftest$ac_exeext &&
29022        $as_test_x conftest$ac_exeext; then
29023   ac_cv_lib_tiff_TIFFError=yes
29024 else
29025   echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29027
29028         ac_cv_lib_tiff_TIFFError=no
29029 fi
29030
29031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29032       conftest$ac_exeext conftest.$ac_ext
29033 LIBS=$ac_check_lib_save_LIBS
29034 fi
29035 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29036 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29037 if test $ac_cv_lib_tiff_TIFFError = yes; then
29038   TIFF_LINK=" -ltiff"
29039 fi
29040
29041
29042 fi
29043
29044
29045
29046         if test "x$TIFF_LINK" = "x" ; then
29047             if test "$wxUSE_LIBTIFF" = "sys" ; then
29048                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29049 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29050    { (exit 1); exit 1; }; }
29051             else
29052                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29053 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29054                 wxUSE_LIBTIFF=builtin
29055             fi
29056         else
29057                         wxUSE_LIBTIFF=sys
29058         fi
29059     fi
29060     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29061         if test "$wxUSE_LIBJPEG" = "no"; then
29062                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29063         fi
29064         subdirs="$subdirs src/tiff"
29065
29066     fi
29067 fi
29068
29069
29070 if test "$wxUSE_EXPAT" != "no"; then
29071     wxUSE_XML=yes
29072     cat >>confdefs.h <<\_ACEOF
29073 #define wxUSE_EXPAT 1
29074 _ACEOF
29075
29076     cat >>confdefs.h <<\_ACEOF
29077 #define wxUSE_XML 1
29078 _ACEOF
29079
29080
29081     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29082         { echo "$as_me:$LINENO: checking for expat.h" >&5
29083 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29084 if test "${ac_cv_header_expat_h+set}" = set; then
29085   echo $ECHO_N "(cached) $ECHO_C" >&6
29086 else
29087   cat >conftest.$ac_ext <<_ACEOF
29088 /* confdefs.h.  */
29089 _ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h.  */
29093
29094
29095 #include <expat.h>
29096 _ACEOF
29097 rm -f conftest.$ac_objext
29098 if { (ac_try="$ac_compile"
29099 case "(($ac_try" in
29100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101   *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104   (eval "$ac_compile") 2>conftest.er1
29105   ac_status=$?
29106   grep -v '^ *+' conftest.er1 >conftest.err
29107   rm -f conftest.er1
29108   cat conftest.err >&5
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } && {
29111          test -z "$ac_c_werror_flag" ||
29112          test ! -s conftest.err
29113        } && test -s conftest.$ac_objext; then
29114   ac_cv_header_expat_h=yes
29115 else
29116   echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29118
29119         ac_cv_header_expat_h=no
29120 fi
29121
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29123 fi
29124 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29125 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29126 if test $ac_cv_header_expat_h = yes; then
29127   found_expat_h=1
29128 fi
29129
29130
29131         if test "x$found_expat_h" = "x1"; then
29132                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29133 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29134 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29135   echo $ECHO_N "(cached) $ECHO_C" >&6
29136 else
29137
29138                 ac_ext=cpp
29139 ac_cpp='$CXXCPP $CPPFLAGS'
29140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29143
29144                 cat >conftest.$ac_ext <<_ACEOF
29145 /* confdefs.h.  */
29146 _ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h.  */
29150 #include <expat.h>
29151 int
29152 main ()
29153 {
29154
29155   ;
29156   return 0;
29157 }
29158 _ACEOF
29159 rm -f conftest.$ac_objext
29160 if { (ac_try="$ac_compile"
29161 case "(($ac_try" in
29162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163   *) ac_try_echo=$ac_try;;
29164 esac
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166   (eval "$ac_compile") 2>conftest.er1
29167   ac_status=$?
29168   grep -v '^ *+' conftest.er1 >conftest.err
29169   rm -f conftest.er1
29170   cat conftest.err >&5
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); } && {
29173          test -z "$ac_cxx_werror_flag" ||
29174          test ! -s conftest.err
29175        } && test -s conftest.$ac_objext; then
29176   wx_cv_expat_is_not_broken=yes
29177 else
29178   echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181         wx_cv_expat_is_not_broken=no
29182
29183 fi
29184
29185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29186                 ac_ext=c
29187 ac_cpp='$CPP $CPPFLAGS'
29188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29191
29192
29193
29194 fi
29195 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29196 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29197             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29198                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29199 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29200 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29201   echo $ECHO_N "(cached) $ECHO_C" >&6
29202 else
29203   ac_check_lib_save_LIBS=$LIBS
29204 LIBS="-lexpat  $LIBS"
29205 cat >conftest.$ac_ext <<_ACEOF
29206 /* confdefs.h.  */
29207 _ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h.  */
29211
29212 /* Override any GCC internal prototype to avoid an error.
29213    Use char because int might match the return type of a GCC
29214    builtin and then its argument prototype would still apply.  */
29215 #ifdef __cplusplus
29216 extern "C"
29217 #endif
29218 char XML_ParserCreate ();
29219 int
29220 main ()
29221 {
29222 return XML_ParserCreate ();
29223   ;
29224   return 0;
29225 }
29226 _ACEOF
29227 rm -f conftest.$ac_objext conftest$ac_exeext
29228 if { (ac_try="$ac_link"
29229 case "(($ac_try" in
29230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231   *) ac_try_echo=$ac_try;;
29232 esac
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234   (eval "$ac_link") 2>conftest.er1
29235   ac_status=$?
29236   grep -v '^ *+' conftest.er1 >conftest.err
29237   rm -f conftest.er1
29238   cat conftest.err >&5
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); } && {
29241          test -z "$ac_c_werror_flag" ||
29242          test ! -s conftest.err
29243        } && test -s conftest$ac_exeext &&
29244        $as_test_x conftest$ac_exeext; then
29245   ac_cv_lib_expat_XML_ParserCreate=yes
29246 else
29247   echo "$as_me: failed program was:" >&5
29248 sed 's/^/| /' conftest.$ac_ext >&5
29249
29250         ac_cv_lib_expat_XML_ParserCreate=no
29251 fi
29252
29253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29254       conftest$ac_exeext conftest.$ac_ext
29255 LIBS=$ac_check_lib_save_LIBS
29256 fi
29257 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29258 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29259 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29260   EXPAT_LINK=" -lexpat"
29261 fi
29262
29263             fi
29264         fi
29265         if test "x$EXPAT_LINK" = "x" ; then
29266             if test "$wxUSE_EXPAT" = "sys" ; then
29267                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29268 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29269    { (exit 1); exit 1; }; }
29270             else
29271                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29272 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29273                 wxUSE_EXPAT=builtin
29274             fi
29275         else
29276                         wxUSE_EXPAT=sys
29277         fi
29278     fi
29279     if test "$wxUSE_EXPAT" = "builtin" ; then
29280                 subdirs="$subdirs src/expat"
29281
29282     fi
29283 fi
29284
29285
29286
29287 if test "$wxUSE_LIBMSPACK" != "no"; then
29288     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29289 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29290 if test "${ac_cv_header_mspack_h+set}" = set; then
29291   echo $ECHO_N "(cached) $ECHO_C" >&6
29292 else
29293   cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299
29300
29301 #include <mspack.h>
29302 _ACEOF
29303 rm -f conftest.$ac_objext
29304 if { (ac_try="$ac_compile"
29305 case "(($ac_try" in
29306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307   *) ac_try_echo=$ac_try;;
29308 esac
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310   (eval "$ac_compile") 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } && {
29317          test -z "$ac_c_werror_flag" ||
29318          test ! -s conftest.err
29319        } && test -s conftest.$ac_objext; then
29320   ac_cv_header_mspack_h=yes
29321 else
29322   echo "$as_me: failed program was:" >&5
29323 sed 's/^/| /' conftest.$ac_ext >&5
29324
29325         ac_cv_header_mspack_h=no
29326 fi
29327
29328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29329 fi
29330 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29331 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29332 if test $ac_cv_header_mspack_h = yes; then
29333   found_mspack_h=1
29334 fi
29335
29336
29337     if test "x$found_mspack_h" = "x1"; then
29338         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29339 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29340 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29341   echo $ECHO_N "(cached) $ECHO_C" >&6
29342 else
29343   ac_check_lib_save_LIBS=$LIBS
29344 LIBS="-lmspack  $LIBS"
29345 cat >conftest.$ac_ext <<_ACEOF
29346 /* confdefs.h.  */
29347 _ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h.  */
29351
29352 /* Override any GCC internal prototype to avoid an error.
29353    Use char because int might match the return type of a GCC
29354    builtin and then its argument prototype would still apply.  */
29355 #ifdef __cplusplus
29356 extern "C"
29357 #endif
29358 char mspack_create_chm_decompressor ();
29359 int
29360 main ()
29361 {
29362 return mspack_create_chm_decompressor ();
29363   ;
29364   return 0;
29365 }
29366 _ACEOF
29367 rm -f conftest.$ac_objext conftest$ac_exeext
29368 if { (ac_try="$ac_link"
29369 case "(($ac_try" in
29370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29371   *) ac_try_echo=$ac_try;;
29372 esac
29373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29374   (eval "$ac_link") 2>conftest.er1
29375   ac_status=$?
29376   grep -v '^ *+' conftest.er1 >conftest.err
29377   rm -f conftest.er1
29378   cat conftest.err >&5
29379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380   (exit $ac_status); } && {
29381          test -z "$ac_c_werror_flag" ||
29382          test ! -s conftest.err
29383        } && test -s conftest$ac_exeext &&
29384        $as_test_x conftest$ac_exeext; then
29385   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29391 fi
29392
29393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29394       conftest$ac_exeext conftest.$ac_ext
29395 LIBS=$ac_check_lib_save_LIBS
29396 fi
29397 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29398 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29399 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29400   MSPACK_LINK=" -lmspack"
29401 fi
29402
29403     fi
29404     if test "x$MSPACK_LINK" = "x" ; then
29405         wxUSE_LIBMSPACK=no
29406     fi
29407 fi
29408
29409 if test "$wxUSE_LIBMSPACK" != "no"; then
29410     cat >>confdefs.h <<\_ACEOF
29411 #define wxUSE_LIBMSPACK 1
29412 _ACEOF
29413
29414 fi
29415
29416
29417
29418 AFMINSTALL=
29419 WIN32INSTALL=
29420
29421 TOOLKIT=
29422 TOOLKIT_INCLUDE=
29423 WIDGET_SET=
29424
29425 if test "$USE_WIN32" = 1 ; then
29426
29427 for ac_header in w32api.h
29428 do
29429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29433   echo $ECHO_N "(cached) $ECHO_C" >&6
29434 else
29435   cat >conftest.$ac_ext <<_ACEOF
29436 /* confdefs.h.  */
29437 _ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h.  */
29441
29442
29443 #include <$ac_header>
29444 _ACEOF
29445 rm -f conftest.$ac_objext
29446 if { (ac_try="$ac_compile"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452   (eval "$ac_compile") 2>conftest.er1
29453   ac_status=$?
29454   grep -v '^ *+' conftest.er1 >conftest.err
29455   rm -f conftest.er1
29456   cat conftest.err >&5
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); } && {
29459          test -z "$ac_c_werror_flag" ||
29460          test ! -s conftest.err
29461        } && test -s conftest.$ac_objext; then
29462   eval "$as_ac_Header=yes"
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467         eval "$as_ac_Header=no"
29468 fi
29469
29470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29471 fi
29472 ac_res=`eval echo '${'$as_ac_Header'}'`
29473                { echo "$as_me:$LINENO: result: $ac_res" >&5
29474 echo "${ECHO_T}$ac_res" >&6; }
29475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29476   cat >>confdefs.h <<_ACEOF
29477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29478 _ACEOF
29479
29480 fi
29481
29482 done
29483
29484     { echo "$as_me:$LINENO: checking for windows.h" >&5
29485 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29486 if test "${ac_cv_header_windows_h+set}" = set; then
29487   echo $ECHO_N "(cached) $ECHO_C" >&6
29488 else
29489   cat >conftest.$ac_ext <<_ACEOF
29490 /* confdefs.h.  */
29491 _ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h.  */
29495
29496
29497 #include <windows.h>
29498 _ACEOF
29499 rm -f conftest.$ac_objext
29500 if { (ac_try="$ac_compile"
29501 case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506   (eval "$ac_compile") 2>conftest.er1
29507   ac_status=$?
29508   grep -v '^ *+' conftest.er1 >conftest.err
29509   rm -f conftest.er1
29510   cat conftest.err >&5
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); } && {
29513          test -z "$ac_c_werror_flag" ||
29514          test ! -s conftest.err
29515        } && test -s conftest.$ac_objext; then
29516   ac_cv_header_windows_h=yes
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29520
29521         ac_cv_header_windows_h=no
29522 fi
29523
29524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29525 fi
29526 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29527 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29528 if test $ac_cv_header_windows_h = yes; then
29529   :
29530 else
29531
29532         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29533 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29534    { (exit 1); exit 1; }; }
29535
29536 fi
29537
29538
29539
29540     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29541     case "${host}" in
29542         x86_64-*-mingw32* )
29543                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29544         ;;
29545     esac
29546     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29547         LIBS="$LIBS -loleacc"
29548     fi
29549
29550     case "${host}" in
29551         *-*-cygwin* )
29552                         LIBS="$LIBS -lkernel32 -luser32"
29553     esac
29554
29555         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29556     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29557
29558                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29559
29560         WIN32INSTALL=win32install
29561
29562         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29563 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29564 if test "${ac_cv_header_pbt_h+set}" = set; then
29565   echo $ECHO_N "(cached) $ECHO_C" >&6
29566 else
29567   cat >conftest.$ac_ext <<_ACEOF
29568 /* confdefs.h.  */
29569 _ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h.  */
29573
29574
29575 #include <pbt.h>
29576 _ACEOF
29577 rm -f conftest.$ac_objext
29578 if { (ac_try="$ac_compile"
29579 case "(($ac_try" in
29580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29581   *) ac_try_echo=$ac_try;;
29582 esac
29583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29584   (eval "$ac_compile") 2>conftest.er1
29585   ac_status=$?
29586   grep -v '^ *+' conftest.er1 >conftest.err
29587   rm -f conftest.er1
29588   cat conftest.err >&5
29589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590   (exit $ac_status); } && {
29591          test -z "$ac_c_werror_flag" ||
29592          test ! -s conftest.err
29593        } && test -s conftest.$ac_objext; then
29594   ac_cv_header_pbt_h=yes
29595 else
29596   echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29598
29599         ac_cv_header_pbt_h=no
29600 fi
29601
29602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29603 fi
29604 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29605 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29606 if test $ac_cv_header_pbt_h = yes; then
29607   :
29608 else
29609   cat >>confdefs.h <<\_ACEOF
29610 #define NEED_PBT_H 1
29611 _ACEOF
29612
29613 fi
29614
29615
29616 fi
29617
29618 if test "$wxUSE_GUI" = "yes"; then
29619     USE_GUI=1
29620
29621     GUI_TK_LIBRARY=
29622
29623     WXGTK12=
29624     WXGTK127=
29625     WXGTK2=
29626     WXGPE=
29627
29628     if test "$wxUSE_OLD_COCOA" = 1 ; then
29629         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29630             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29631 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29632             wxUSE_PRINTING_ARCHITECTURE=no
29633         fi
29634         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29635             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29636 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29637             wxUSE_DRAG_AND_DROP=no
29638         fi
29639         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29640             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29641 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29642             wxUSE_DRAGIMAGE=no
29643         fi
29644     fi
29645
29646     if test "$wxUSE_MSW" = 1 ; then
29647         TOOLKIT=MSW
29648         GUIDIST=MSW_DIST
29649
29650                 case "${host}" in
29651             *-*-mingw32* )
29652                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29653         esac
29654     fi
29655
29656     if test "$wxUSE_GTK" = 1; then
29657                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29658 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29659
29660         gtk_version_cached=1
29661         if test "${wx_cv_lib_gtk+set}" = set; then
29662   echo $ECHO_N "(cached) $ECHO_C" >&6
29663 else
29664
29665                                                 gtk_version_cached=0
29666                 { echo "$as_me:$LINENO: result: " >&5
29667 echo "${ECHO_T}" >&6; }
29668
29669                                                 GTK_MODULES=
29670                 if test "$wxUSE_THREADS" = "yes"; then
29671                     GTK_MODULES=gthread
29672                 fi
29673
29674                                 wx_cv_lib_gtk=
29675                 if test "x$wxGTK_VERSION" != "x1"
29676                 then
29677                                                                                 case "${host}" in
29678                         *-*-solaris2* )
29679                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29680                                 enable_gtktest=no
29681                             fi
29682                     esac
29683
29684                     # Check whether --enable-gtktest was given.
29685 if test "${enable_gtktest+set}" = set; then
29686   enableval=$enable_gtktest;
29687 else
29688   enable_gtktest=yes
29689 fi
29690
29691
29692   pkg_config_args=gtk+-2.0
29693   for module in . $GTK_MODULES
29694   do
29695       case "$module" in
29696          gthread)
29697              pkg_config_args="$pkg_config_args gthread-2.0"
29698          ;;
29699       esac
29700   done
29701
29702   no_gtk=""
29703
29704   # Extract the first word of "pkg-config", so it can be a program name with args.
29705 set dummy pkg-config; ac_word=$2
29706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29709   echo $ECHO_N "(cached) $ECHO_C" >&6
29710 else
29711   case $PKG_CONFIG in
29712   [\\/]* | ?:[\\/]*)
29713   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29714   ;;
29715   *)
29716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29717 for as_dir in $PATH
29718 do
29719   IFS=$as_save_IFS
29720   test -z "$as_dir" && as_dir=.
29721   for ac_exec_ext in '' $ac_executable_extensions; do
29722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29723     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29725     break 2
29726   fi
29727 done
29728 done
29729 IFS=$as_save_IFS
29730
29731   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29732   ;;
29733 esac
29734 fi
29735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29736 if test -n "$PKG_CONFIG"; then
29737   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29738 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29739 else
29740   { echo "$as_me:$LINENO: result: no" >&5
29741 echo "${ECHO_T}no" >&6; }
29742 fi
29743
29744
29745
29746   if test x$PKG_CONFIG != xno ; then
29747     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29748       :
29749     else
29750       echo "*** pkg-config too old; version 0.7 or better required."
29751       no_gtk=yes
29752       PKG_CONFIG=no
29753     fi
29754   else
29755     no_gtk=yes
29756   fi
29757
29758   min_gtk_version=2.4.0
29759   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29760 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
29761
29762   if test x$PKG_CONFIG != xno ; then
29763     ## don't try to run the test against uninstalled libtool libs
29764     if $PKG_CONFIG --uninstalled $pkg_config_args; then
29765           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
29766           enable_gtktest=no
29767     fi
29768
29769     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
29770           :
29771     else
29772           no_gtk=yes
29773     fi
29774   fi
29775
29776   if test x"$no_gtk" = x ; then
29777     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29778     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29779     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29780            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29781     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29782            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29783     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29784            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29785     if test "x$enable_gtktest" = "xyes" ; then
29786       ac_save_CFLAGS="$CFLAGS"
29787       ac_save_LIBS="$LIBS"
29788       CFLAGS="$CFLAGS $GTK_CFLAGS"
29789       LIBS="$GTK_LIBS $LIBS"
29790       rm -f conf.gtktest
29791       if test "$cross_compiling" = yes; then
29792   echo $ac_n "cross compiling; assumed OK... $ac_c"
29793 else
29794   cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h.  */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h.  */
29800
29801 #include <gtk/gtk.h>
29802 #include <stdio.h>
29803 #include <stdlib.h>
29804
29805 int
29806 main ()
29807 {
29808   int major, minor, micro;
29809   char *tmp_version;
29810
29811   system ("touch conf.gtktest");
29812
29813   /* HP/UX 9 (%@#!) writes to sscanf strings */
29814   tmp_version = g_strdup("$min_gtk_version");
29815   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29816      printf("%s, bad version string\n", "$min_gtk_version");
29817      exit(1);
29818    }
29819
29820   if ((gtk_major_version != $gtk_config_major_version) ||
29821       (gtk_minor_version != $gtk_config_minor_version) ||
29822       (gtk_micro_version != $gtk_config_micro_version))
29823     {
29824       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29825              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29826              gtk_major_version, gtk_minor_version, gtk_micro_version);
29827       printf ("*** was found! If pkg-config was correct, then it is best\n");
29828       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29829       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29830       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29831       printf("*** required on your system.\n");
29832       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29833       printf("*** to point to the correct configuration files\n");
29834     }
29835   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29836            (gtk_minor_version != GTK_MINOR_VERSION) ||
29837            (gtk_micro_version != GTK_MICRO_VERSION))
29838     {
29839       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29840              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29841       printf("*** library (version %d.%d.%d)\n",
29842              gtk_major_version, gtk_minor_version, gtk_micro_version);
29843     }
29844   else
29845     {
29846       if ((gtk_major_version > major) ||
29847         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29848         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29849       {
29850         return 0;
29851        }
29852      else
29853       {
29854         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29855                gtk_major_version, gtk_minor_version, gtk_micro_version);
29856         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29857                major, minor, micro);
29858         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29859         printf("***\n");
29860         printf("*** If you have already installed a sufficiently new version, this error\n");
29861         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29862         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29863         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29864         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29865         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29866         printf("*** so that the correct libraries are found at run-time))\n");
29867       }
29868     }
29869   return 1;
29870 }
29871
29872 _ACEOF
29873 rm -f conftest$ac_exeext
29874 if { (ac_try="$ac_link"
29875 case "(($ac_try" in
29876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877   *) ac_try_echo=$ac_try;;
29878 esac
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880   (eval "$ac_link") 2>&5
29881   ac_status=$?
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29884   { (case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_try") 2>&5
29890   ac_status=$?
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); }; }; then
29893   :
29894 else
29895   echo "$as_me: program exited with status $ac_status" >&5
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899 ( exit $ac_status )
29900 no_gtk=yes
29901 fi
29902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29903 fi
29904
29905
29906        CFLAGS="$ac_save_CFLAGS"
29907        LIBS="$ac_save_LIBS"
29908      fi
29909   fi
29910   if test "x$no_gtk" = x ; then
29911      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29912 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
29913      wx_cv_lib_gtk=2.0
29914   else
29915      { echo "$as_me:$LINENO: result: no" >&5
29916 echo "${ECHO_T}no" >&6; }
29917      if test "$PKG_CONFIG" = "no" ; then
29918        echo "*** A new enough version of pkg-config was not found."
29919        echo "*** See http://pkgconfig.sourceforge.net"
29920      else
29921        if test -f conf.gtktest ; then
29922         :
29923        else
29924           echo "*** Could not run GTK+ test program, checking why..."
29925           ac_save_CFLAGS="$CFLAGS"
29926           ac_save_LIBS="$LIBS"
29927           CFLAGS="$CFLAGS $GTK_CFLAGS"
29928           LIBS="$LIBS $GTK_LIBS"
29929           cat >conftest.$ac_ext <<_ACEOF
29930 /* confdefs.h.  */
29931 _ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h.  */
29935
29936 #include <gtk/gtk.h>
29937 #include <stdio.h>
29938
29939 int
29940 main ()
29941 {
29942  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext conftest$ac_exeext
29948 if { (ac_try="$ac_link"
29949 case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954   (eval "$ac_link") 2>conftest.er1
29955   ac_status=$?
29956   grep -v '^ *+' conftest.er1 >conftest.err
29957   rm -f conftest.er1
29958   cat conftest.err >&5
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); } && {
29961          test -z "$ac_c_werror_flag" ||
29962          test ! -s conftest.err
29963        } && test -s conftest$ac_exeext &&
29964        $as_test_x conftest$ac_exeext; then
29965    echo "*** The test program compiled, but did not run. This usually means"
29966           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29967           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29968           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29969           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29970           echo "*** is required on your system"
29971           echo "***"
29972           echo "*** If you have an old version installed, it is best to remove it, although"
29973           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29974 else
29975   echo "$as_me: failed program was:" >&5
29976 sed 's/^/| /' conftest.$ac_ext >&5
29977
29978          echo "*** The test program failed to compile or link. See the file config.log for the"
29979           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29980 fi
29981
29982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29983       conftest$ac_exeext conftest.$ac_ext
29984           CFLAGS="$ac_save_CFLAGS"
29985           LIBS="$ac_save_LIBS"
29986        fi
29987      fi
29988      GTK_CFLAGS=""
29989      GTK_LIBS=""
29990      :
29991   fi
29992
29993
29994   rm -f conf.gtktest
29995
29996
29997                                         GTK_LIBS="$GTK_LIBS -lX11"
29998                 fi
29999
30000                                 if test -z "$wx_cv_lib_gtk"; then
30001                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30002
30003 # Check whether --with-gtk-prefix was given.
30004 if test "${with_gtk_prefix+set}" = set; then
30005   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30006 else
30007   gtk_config_prefix=""
30008 fi
30009
30010
30011 # Check whether --with-gtk-exec-prefix was given.
30012 if test "${with_gtk_exec_prefix+set}" = set; then
30013   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30014 else
30015   gtk_config_exec_prefix=""
30016 fi
30017
30018 # Check whether --enable-gtktest was given.
30019 if test "${enable_gtktest+set}" = set; then
30020   enableval=$enable_gtktest;
30021 else
30022   enable_gtktest=yes
30023 fi
30024
30025
30026   for module in . $GTK_MODULES
30027   do
30028       case "$module" in
30029          gthread)
30030              gtk_config_args="$gtk_config_args gthread"
30031          ;;
30032       esac
30033   done
30034
30035   if test x$gtk_config_exec_prefix != x ; then
30036      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30037      if test x${GTK_CONFIG+set} != xset ; then
30038         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30039      fi
30040   fi
30041   if test x$gtk_config_prefix != x ; then
30042      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30043      if test x${GTK_CONFIG+set} != xset ; then
30044         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30045      fi
30046   fi
30047
30048   # Extract the first word of "gtk-config", so it can be a program name with args.
30049 set dummy gtk-config; ac_word=$2
30050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30052 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30053   echo $ECHO_N "(cached) $ECHO_C" >&6
30054 else
30055   case $GTK_CONFIG in
30056   [\\/]* | ?:[\\/]*)
30057   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30058   ;;
30059   *)
30060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30061 for as_dir in $PATH
30062 do
30063   IFS=$as_save_IFS
30064   test -z "$as_dir" && as_dir=.
30065   for ac_exec_ext in '' $ac_executable_extensions; do
30066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30067     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30069     break 2
30070   fi
30071 done
30072 done
30073 IFS=$as_save_IFS
30074
30075   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30076   ;;
30077 esac
30078 fi
30079 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30080 if test -n "$GTK_CONFIG"; then
30081   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30082 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30083 else
30084   { echo "$as_me:$LINENO: result: no" >&5
30085 echo "${ECHO_T}no" >&6; }
30086 fi
30087
30088
30089   min_gtk_version=1.2.7
30090   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30091 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30092   no_gtk=""
30093   if test "$GTK_CONFIG" = "no" ; then
30094     no_gtk=yes
30095   else
30096     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30097     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30098     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30099            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30100     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30101            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30102     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30103            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30104     if test "x$enable_gtktest" = "xyes" ; then
30105       ac_save_CFLAGS="$CFLAGS"
30106       ac_save_LIBS="$LIBS"
30107       CFLAGS="$CFLAGS $GTK_CFLAGS"
30108       LIBS="$GTK_LIBS $LIBS"
30109       rm -f conf.gtktest
30110       if test "$cross_compiling" = yes; then
30111   echo $ac_n "cross compiling; assumed OK... $ac_c"
30112 else
30113   cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119
30120 #include <gtk/gtk.h>
30121 #include <stdio.h>
30122 #include <stdlib.h>
30123
30124 int
30125 main ()
30126 {
30127   int major, minor, micro;
30128   char *tmp_version;
30129
30130   system ("touch conf.gtktest");
30131
30132   /* HP/UX 9 (%@#!) writes to sscanf strings */
30133   tmp_version = g_strdup("$min_gtk_version");
30134   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30135      printf("%s, bad version string\n", "$min_gtk_version");
30136      exit(1);
30137    }
30138
30139   if ((gtk_major_version != $gtk_config_major_version) ||
30140       (gtk_minor_version != $gtk_config_minor_version) ||
30141       (gtk_micro_version != $gtk_config_micro_version))
30142     {
30143       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30144              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30145              gtk_major_version, gtk_minor_version, gtk_micro_version);
30146       printf ("*** was found! If gtk-config was correct, then it is best\n");
30147       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30148       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30149       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30150       printf("*** required on your system.\n");
30151       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30152       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30153       printf("*** before re-running configure\n");
30154     }
30155 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30156   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30157            (gtk_minor_version != GTK_MINOR_VERSION) ||
30158            (gtk_micro_version != GTK_MICRO_VERSION))
30159     {
30160       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30161              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30162       printf("*** library (version %d.%d.%d)\n",
30163              gtk_major_version, gtk_minor_version, gtk_micro_version);
30164     }
30165 #endif /* defined (GTK_MAJOR_VERSION) ... */
30166   else
30167     {
30168       if ((gtk_major_version > major) ||
30169         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30170         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30171       {
30172         return 0;
30173        }
30174      else
30175       {
30176         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30177                gtk_major_version, gtk_minor_version, gtk_micro_version);
30178         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30179                major, minor, micro);
30180         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30181         printf("***\n");
30182         printf("*** If you have already installed a sufficiently new version, this error\n");
30183         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30184         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30185         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30186         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30187         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30188         printf("*** so that the correct libraries are found at run-time))\n");
30189       }
30190     }
30191   return 1;
30192 }
30193
30194 _ACEOF
30195 rm -f conftest$ac_exeext
30196 if { (ac_try="$ac_link"
30197 case "(($ac_try" in
30198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199   *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202   (eval "$ac_link") 2>&5
30203   ac_status=$?
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30206   { (case "(($ac_try" in
30207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208   *) ac_try_echo=$ac_try;;
30209 esac
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211   (eval "$ac_try") 2>&5
30212   ac_status=$?
30213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214   (exit $ac_status); }; }; then
30215   :
30216 else
30217   echo "$as_me: program exited with status $ac_status" >&5
30218 echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221 ( exit $ac_status )
30222 no_gtk=yes
30223 fi
30224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30225 fi
30226
30227
30228        CFLAGS="$ac_save_CFLAGS"
30229        LIBS="$ac_save_LIBS"
30230      fi
30231   fi
30232   if test "x$no_gtk" = x ; then
30233      { echo "$as_me:$LINENO: result: yes" >&5
30234 echo "${ECHO_T}yes" >&6; }
30235      wx_cv_lib_gtk=1.2.7
30236   else
30237      { echo "$as_me:$LINENO: result: no" >&5
30238 echo "${ECHO_T}no" >&6; }
30239      if test "$GTK_CONFIG" = "no" ; then
30240        echo "*** The gtk-config script installed by GTK could not be found"
30241        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30242        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30243        echo "*** full path to gtk-config."
30244      else
30245        if test -f conf.gtktest ; then
30246         :
30247        else
30248           echo "*** Could not run GTK test program, checking why..."
30249           CFLAGS="$CFLAGS $GTK_CFLAGS"
30250           LIBS="$LIBS $GTK_LIBS"
30251           cat >conftest.$ac_ext <<_ACEOF
30252 /* confdefs.h.  */
30253 _ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h.  */
30257
30258 #include <gtk/gtk.h>
30259 #include <stdio.h>
30260
30261 int
30262 main ()
30263 {
30264  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30265   ;
30266   return 0;
30267 }
30268 _ACEOF
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_link") 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } && {
30283          test -z "$ac_c_werror_flag" ||
30284          test ! -s conftest.err
30285        } && test -s conftest$ac_exeext &&
30286        $as_test_x conftest$ac_exeext; then
30287    echo "*** The test program compiled, but did not run. This usually means"
30288           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30289           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30290           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30291           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30292           echo "*** is required on your system"
30293           echo "***"
30294           echo "*** If you have an old version installed, it is best to remove it, although"
30295           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30296           echo "***"
30297           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30298           echo "*** came with the system with the command"
30299           echo "***"
30300           echo "***    rpm --erase --nodeps gtk gtk-devel"
30301 else
30302   echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30304
30305          echo "*** The test program failed to compile or link. See the file config.log for the"
30306           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30307           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30308           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30309 fi
30310
30311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30312       conftest$ac_exeext conftest.$ac_ext
30313           CFLAGS="$ac_save_CFLAGS"
30314           LIBS="$ac_save_LIBS"
30315        fi
30316      fi
30317      GTK_CFLAGS=""
30318      GTK_LIBS=""
30319      :
30320   fi
30321
30322
30323   rm -f conf.gtktest
30324
30325
30326                         if test -z "$wx_cv_lib_gtk"; then
30327
30328 # Check whether --with-gtk-prefix was given.
30329 if test "${with_gtk_prefix+set}" = set; then
30330   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30331 else
30332   gtk_config_prefix=""
30333 fi
30334
30335
30336 # Check whether --with-gtk-exec-prefix was given.
30337 if test "${with_gtk_exec_prefix+set}" = set; then
30338   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30339 else
30340   gtk_config_exec_prefix=""
30341 fi
30342
30343 # Check whether --enable-gtktest was given.
30344 if test "${enable_gtktest+set}" = set; then
30345   enableval=$enable_gtktest;
30346 else
30347   enable_gtktest=yes
30348 fi
30349
30350
30351   for module in . $GTK_MODULES
30352   do
30353       case "$module" in
30354          gthread)
30355              gtk_config_args="$gtk_config_args gthread"
30356          ;;
30357       esac
30358   done
30359
30360   if test x$gtk_config_exec_prefix != x ; then
30361      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30362      if test x${GTK_CONFIG+set} != xset ; then
30363         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30364      fi
30365   fi
30366   if test x$gtk_config_prefix != x ; then
30367      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30368      if test x${GTK_CONFIG+set} != xset ; then
30369         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30370      fi
30371   fi
30372
30373   # Extract the first word of "gtk-config", so it can be a program name with args.
30374 set dummy gtk-config; ac_word=$2
30375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30377 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30378   echo $ECHO_N "(cached) $ECHO_C" >&6
30379 else
30380   case $GTK_CONFIG in
30381   [\\/]* | ?:[\\/]*)
30382   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30383   ;;
30384   *)
30385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30386 for as_dir in $PATH
30387 do
30388   IFS=$as_save_IFS
30389   test -z "$as_dir" && as_dir=.
30390   for ac_exec_ext in '' $ac_executable_extensions; do
30391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30392     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30394     break 2
30395   fi
30396 done
30397 done
30398 IFS=$as_save_IFS
30399
30400   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30401   ;;
30402 esac
30403 fi
30404 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30405 if test -n "$GTK_CONFIG"; then
30406   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30407 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30408 else
30409   { echo "$as_me:$LINENO: result: no" >&5
30410 echo "${ECHO_T}no" >&6; }
30411 fi
30412
30413
30414   min_gtk_version=1.2.3
30415   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30416 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30417   no_gtk=""
30418   if test "$GTK_CONFIG" = "no" ; then
30419     no_gtk=yes
30420   else
30421     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30422     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30423     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30424            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30425     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30426            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30427     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30428            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30429     if test "x$enable_gtktest" = "xyes" ; then
30430       ac_save_CFLAGS="$CFLAGS"
30431       ac_save_LIBS="$LIBS"
30432       CFLAGS="$CFLAGS $GTK_CFLAGS"
30433       LIBS="$GTK_LIBS $LIBS"
30434       rm -f conf.gtktest
30435       if test "$cross_compiling" = yes; then
30436   echo $ac_n "cross compiling; assumed OK... $ac_c"
30437 else
30438   cat >conftest.$ac_ext <<_ACEOF
30439 /* confdefs.h.  */
30440 _ACEOF
30441 cat confdefs.h >>conftest.$ac_ext
30442 cat >>conftest.$ac_ext <<_ACEOF
30443 /* end confdefs.h.  */
30444
30445 #include <gtk/gtk.h>
30446 #include <stdio.h>
30447 #include <stdlib.h>
30448
30449 int
30450 main ()
30451 {
30452   int major, minor, micro;
30453   char *tmp_version;
30454
30455   system ("touch conf.gtktest");
30456
30457   /* HP/UX 9 (%@#!) writes to sscanf strings */
30458   tmp_version = g_strdup("$min_gtk_version");
30459   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30460      printf("%s, bad version string\n", "$min_gtk_version");
30461      exit(1);
30462    }
30463
30464   if ((gtk_major_version != $gtk_config_major_version) ||
30465       (gtk_minor_version != $gtk_config_minor_version) ||
30466       (gtk_micro_version != $gtk_config_micro_version))
30467     {
30468       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30469              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30470              gtk_major_version, gtk_minor_version, gtk_micro_version);
30471       printf ("*** was found! If gtk-config was correct, then it is best\n");
30472       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30473       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30474       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30475       printf("*** required on your system.\n");
30476       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30477       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30478       printf("*** before re-running configure\n");
30479     }
30480 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30481   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30482            (gtk_minor_version != GTK_MINOR_VERSION) ||
30483            (gtk_micro_version != GTK_MICRO_VERSION))
30484     {
30485       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30486              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30487       printf("*** library (version %d.%d.%d)\n",
30488              gtk_major_version, gtk_minor_version, gtk_micro_version);
30489     }
30490 #endif /* defined (GTK_MAJOR_VERSION) ... */
30491   else
30492     {
30493       if ((gtk_major_version > major) ||
30494         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30495         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30496       {
30497         return 0;
30498        }
30499      else
30500       {
30501         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30502                gtk_major_version, gtk_minor_version, gtk_micro_version);
30503         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30504                major, minor, micro);
30505         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30506         printf("***\n");
30507         printf("*** If you have already installed a sufficiently new version, this error\n");
30508         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30509         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30510         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30511         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30512         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30513         printf("*** so that the correct libraries are found at run-time))\n");
30514       }
30515     }
30516   return 1;
30517 }
30518
30519 _ACEOF
30520 rm -f conftest$ac_exeext
30521 if { (ac_try="$ac_link"
30522 case "(($ac_try" in
30523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524   *) ac_try_echo=$ac_try;;
30525 esac
30526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527   (eval "$ac_link") 2>&5
30528   ac_status=$?
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30531   { (case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_try") 2>&5
30537   ac_status=$?
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); }; }; then
30540   :
30541 else
30542   echo "$as_me: program exited with status $ac_status" >&5
30543 echo "$as_me: failed program was:" >&5
30544 sed 's/^/| /' conftest.$ac_ext >&5
30545
30546 ( exit $ac_status )
30547 no_gtk=yes
30548 fi
30549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30550 fi
30551
30552
30553        CFLAGS="$ac_save_CFLAGS"
30554        LIBS="$ac_save_LIBS"
30555      fi
30556   fi
30557   if test "x$no_gtk" = x ; then
30558      { echo "$as_me:$LINENO: result: yes" >&5
30559 echo "${ECHO_T}yes" >&6; }
30560      wx_cv_lib_gtk=1.2.3
30561   else
30562      { echo "$as_me:$LINENO: result: no" >&5
30563 echo "${ECHO_T}no" >&6; }
30564      if test "$GTK_CONFIG" = "no" ; then
30565        echo "*** The gtk-config script installed by GTK could not be found"
30566        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30567        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30568        echo "*** full path to gtk-config."
30569      else
30570        if test -f conf.gtktest ; then
30571         :
30572        else
30573           echo "*** Could not run GTK test program, checking why..."
30574           CFLAGS="$CFLAGS $GTK_CFLAGS"
30575           LIBS="$LIBS $GTK_LIBS"
30576           cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582
30583 #include <gtk/gtk.h>
30584 #include <stdio.h>
30585
30586 int
30587 main ()
30588 {
30589  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30590   ;
30591   return 0;
30592 }
30593 _ACEOF
30594 rm -f conftest.$ac_objext conftest$ac_exeext
30595 if { (ac_try="$ac_link"
30596 case "(($ac_try" in
30597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598   *) ac_try_echo=$ac_try;;
30599 esac
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601   (eval "$ac_link") 2>conftest.er1
30602   ac_status=$?
30603   grep -v '^ *+' conftest.er1 >conftest.err
30604   rm -f conftest.er1
30605   cat conftest.err >&5
30606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607   (exit $ac_status); } && {
30608          test -z "$ac_c_werror_flag" ||
30609          test ! -s conftest.err
30610        } && test -s conftest$ac_exeext &&
30611        $as_test_x conftest$ac_exeext; then
30612    echo "*** The test program compiled, but did not run. This usually means"
30613           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30614           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30615           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30616           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30617           echo "*** is required on your system"
30618           echo "***"
30619           echo "*** If you have an old version installed, it is best to remove it, although"
30620           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30621           echo "***"
30622           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30623           echo "*** came with the system with the command"
30624           echo "***"
30625           echo "***    rpm --erase --nodeps gtk gtk-devel"
30626 else
30627   echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30629
30630          echo "*** The test program failed to compile or link. See the file config.log for the"
30631           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30632           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30633           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30634 fi
30635
30636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30637       conftest$ac_exeext conftest.$ac_ext
30638           CFLAGS="$ac_save_CFLAGS"
30639           LIBS="$ac_save_LIBS"
30640        fi
30641      fi
30642      GTK_CFLAGS=""
30643      GTK_LIBS=""
30644      :
30645   fi
30646
30647
30648   rm -f conf.gtktest
30649
30650                         fi
30651                     fi
30652                 fi
30653
30654                 if test -z "$wx_cv_lib_gtk"; then
30655                                         wx_cv_lib_gtk=none
30656                 else
30657                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30658                     wx_cv_libs_gtk=$GTK_LIBS
30659                 fi
30660
30661
30662 fi
30663
30664
30665                         if test "$gtk_version_cached" = 1; then
30666             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30667 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30668         fi
30669
30670         case "$wx_cv_lib_gtk" in
30671             2.0)    WXGTK2=1
30672                     TOOLKIT_VERSION=2
30673                     ;;
30674             1.2.7)  WXGTK127=1
30675                     WXGTK12=1
30676                     ;;
30677             1.2.3)  WXGTK12=1
30678                     ;;
30679             *)      { { echo "$as_me:$LINENO: error:
30680 The development files for GTK+ were not found. For GTK+ 2, please
30681 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30682 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30683 and that the version is 1.2.3 or above. Also check that the
30684 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30685 --libs' are in the LD_LIBRARY_PATH or equivalent.
30686                             " >&5
30687 echo "$as_me: error:
30688 The development files for GTK+ were not found. For GTK+ 2, please
30689 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30690 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30691 and that the version is 1.2.3 or above. Also check that the
30692 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30693 --libs' are in the LD_LIBRARY_PATH or equivalent.
30694                             " >&2;}
30695    { (exit 1); exit 1; }; }
30696                     ;;
30697         esac
30698
30699         if test "$WXGTK2" = 1; then
30700             save_CFLAGS="$CFLAGS"
30701             save_LIBS="$LIBS"
30702             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30703             LIBS="$LIBS $wx_cv_libs_gtk"
30704
30705                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30706 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30707             cat >conftest.$ac_ext <<_ACEOF
30708 /* confdefs.h.  */
30709 _ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h.  */
30713
30714                             #include <gtk/gtk.h>
30715
30716 int
30717 main ()
30718 {
30719
30720                             #if !GTK_CHECK_VERSION(2,18,0)
30721                             Not GTK+ 2.18
30722                             #endif
30723
30724   ;
30725   return 0;
30726 }
30727 _ACEOF
30728 rm -f conftest.$ac_objext
30729 if { (ac_try="$ac_compile"
30730 case "(($ac_try" in
30731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732   *) ac_try_echo=$ac_try;;
30733 esac
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735   (eval "$ac_compile") 2>conftest.er1
30736   ac_status=$?
30737   grep -v '^ *+' conftest.er1 >conftest.err
30738   rm -f conftest.er1
30739   cat conftest.err >&5
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); } && {
30742          test -z "$ac_c_werror_flag" ||
30743          test ! -s conftest.err
30744        } && test -s conftest.$ac_objext; then
30745
30746                             cat >>confdefs.h <<\_ACEOF
30747 #define __WXGTK218__ 1
30748 _ACEOF
30749
30750                             cat >>confdefs.h <<\_ACEOF
30751 #define __WXGTK210__ 1
30752 _ACEOF
30753
30754                             cat >>confdefs.h <<\_ACEOF
30755 #define __WXGTK26__ 1
30756 _ACEOF
30757
30758                             { echo "$as_me:$LINENO: result: yes" >&5
30759 echo "${ECHO_T}yes" >&6; }
30760                             ac_wxgtk218=1
30761
30762 else
30763   echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30765
30766
30767                             { echo "$as_me:$LINENO: result: no" >&5
30768 echo "${ECHO_T}no" >&6; }
30769                             ac_wxgtk218=0
30770
30771 fi
30772
30773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30774
30775             if test "$ac_wxgtk218" = 0; then
30776                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30777 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
30778                 cat >conftest.$ac_ext <<_ACEOF
30779 /* confdefs.h.  */
30780 _ACEOF
30781 cat confdefs.h >>conftest.$ac_ext
30782 cat >>conftest.$ac_ext <<_ACEOF
30783 /* end confdefs.h.  */
30784
30785                                 #include <gtk/gtk.h>
30786
30787 int
30788 main ()
30789 {
30790
30791                                 #if !GTK_CHECK_VERSION(2,10,0)
30792                                 Not GTK+ 2.10
30793                                 #endif
30794
30795   ;
30796   return 0;
30797 }
30798 _ACEOF
30799 rm -f conftest.$ac_objext
30800 if { (ac_try="$ac_compile"
30801 case "(($ac_try" in
30802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803   *) ac_try_echo=$ac_try;;
30804 esac
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806   (eval "$ac_compile") 2>conftest.er1
30807   ac_status=$?
30808   grep -v '^ *+' conftest.er1 >conftest.err
30809   rm -f conftest.er1
30810   cat conftest.err >&5
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); } && {
30813          test -z "$ac_c_werror_flag" ||
30814          test ! -s conftest.err
30815        } && test -s conftest.$ac_objext; then
30816
30817                                 cat >>confdefs.h <<\_ACEOF
30818 #define __WXGTK210__ 1
30819 _ACEOF
30820
30821                                 cat >>confdefs.h <<\_ACEOF
30822 #define __WXGTK26__ 1
30823 _ACEOF
30824
30825                                 { echo "$as_me:$LINENO: result: yes" >&5
30826 echo "${ECHO_T}yes" >&6; }
30827                                 ac_wxgtk210=1
30828
30829 else
30830   echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833
30834                                 { echo "$as_me:$LINENO: result: no" >&5
30835 echo "${ECHO_T}no" >&6; }
30836                                 ac_wxgtk210=0
30837
30838 fi
30839
30840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30841
30842                 if test "$ac_wxgtk210" = 0; then
30843                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30844 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30845                     cat >conftest.$ac_ext <<_ACEOF
30846 /* confdefs.h.  */
30847 _ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h.  */
30851
30852                                     #include <gtk/gtk.h>
30853
30854 int
30855 main ()
30856 {
30857
30858                                     #if !GTK_CHECK_VERSION(2,6,0)
30859                                     Not GTK+ 2.6
30860                                     #endif
30861
30862   ;
30863   return 0;
30864 }
30865 _ACEOF
30866 rm -f conftest.$ac_objext
30867 if { (ac_try="$ac_compile"
30868 case "(($ac_try" in
30869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870   *) ac_try_echo=$ac_try;;
30871 esac
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873   (eval "$ac_compile") 2>conftest.er1
30874   ac_status=$?
30875   grep -v '^ *+' conftest.er1 >conftest.err
30876   rm -f conftest.er1
30877   cat conftest.err >&5
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); } && {
30880          test -z "$ac_c_werror_flag" ||
30881          test ! -s conftest.err
30882        } && test -s conftest.$ac_objext; then
30883
30884                                     cat >>confdefs.h <<\_ACEOF
30885 #define __WXGTK26__ 1
30886 _ACEOF
30887
30888                                     { echo "$as_me:$LINENO: result: yes" >&5
30889 echo "${ECHO_T}yes" >&6; }
30890                                     ac_wxgtk26=1
30891
30892 else
30893   echo "$as_me: failed program was:" >&5
30894 sed 's/^/| /' conftest.$ac_ext >&5
30895
30896
30897                                     { echo "$as_me:$LINENO: result: no" >&5
30898 echo "${ECHO_T}no" >&6; }
30899                                     ac_wxgtk26=0
30900
30901 fi
30902
30903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30904                 fi
30905             fi
30906
30907             CFLAGS="$save_CFLAGS"
30908             LIBS="$save_LIBS"
30909         else
30910             if test "$wxUSE_UNICODE" = "yes"; then
30911                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30912 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
30913                 wxUSE_UNICODE=no
30914             fi
30915
30916                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30917 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
30918 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
30919   echo $ECHO_N "(cached) $ECHO_C" >&6
30920 else
30921   ac_check_lib_save_LIBS=$LIBS
30922 LIBS="-lgdk  $LIBS"
30923 cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h.  */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h.  */
30929
30930 /* Override any GCC internal prototype to avoid an error.
30931    Use char because int might match the return type of a GCC
30932    builtin and then its argument prototype would still apply.  */
30933 #ifdef __cplusplus
30934 extern "C"
30935 #endif
30936 char gdk_im_open ();
30937 int
30938 main ()
30939 {
30940 return gdk_im_open ();
30941   ;
30942   return 0;
30943 }
30944 _ACEOF
30945 rm -f conftest.$ac_objext conftest$ac_exeext
30946 if { (ac_try="$ac_link"
30947 case "(($ac_try" in
30948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949   *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952   (eval "$ac_link") 2>conftest.er1
30953   ac_status=$?
30954   grep -v '^ *+' conftest.er1 >conftest.err
30955   rm -f conftest.er1
30956   cat conftest.err >&5
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); } && {
30959          test -z "$ac_c_werror_flag" ||
30960          test ! -s conftest.err
30961        } && test -s conftest$ac_exeext &&
30962        $as_test_x conftest$ac_exeext; then
30963   ac_cv_lib_gdk_gdk_im_open=yes
30964 else
30965   echo "$as_me: failed program was:" >&5
30966 sed 's/^/| /' conftest.$ac_ext >&5
30967
30968         ac_cv_lib_gdk_gdk_im_open=no
30969 fi
30970
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972       conftest$ac_exeext conftest.$ac_ext
30973 LIBS=$ac_check_lib_save_LIBS
30974 fi
30975 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30976 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
30977 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
30978   cat >>confdefs.h <<\_ACEOF
30979 #define HAVE_XIM 1
30980 _ACEOF
30981
30982 fi
30983
30984
30985                                     if test "$USE_DARWIN" != 1; then
30986
30987 for ac_func in poll
30988 do
30989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30993   echo $ECHO_N "(cached) $ECHO_C" >&6
30994 else
30995   cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h.  */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h.  */
31001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31003 #define $ac_func innocuous_$ac_func
31004
31005 /* System header to define __stub macros and hopefully few prototypes,
31006     which can conflict with char $ac_func (); below.
31007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31008     <limits.h> exists even on freestanding compilers.  */
31009
31010 #ifdef __STDC__
31011 # include <limits.h>
31012 #else
31013 # include <assert.h>
31014 #endif
31015
31016 #undef $ac_func
31017
31018 /* Override any GCC internal prototype to avoid an error.
31019    Use char because int might match the return type of a GCC
31020    builtin and then its argument prototype would still apply.  */
31021 #ifdef __cplusplus
31022 extern "C"
31023 #endif
31024 char $ac_func ();
31025 /* The GNU C library defines this for functions which it implements
31026     to always fail with ENOSYS.  Some functions are actually named
31027     something starting with __ and the normal name is an alias.  */
31028 #if defined __stub_$ac_func || defined __stub___$ac_func
31029 choke me
31030 #endif
31031
31032 int
31033 main ()
31034 {
31035 return $ac_func ();
31036   ;
31037   return 0;
31038 }
31039 _ACEOF
31040 rm -f conftest.$ac_objext conftest$ac_exeext
31041 if { (ac_try="$ac_link"
31042 case "(($ac_try" in
31043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044   *) ac_try_echo=$ac_try;;
31045 esac
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047   (eval "$ac_link") 2>conftest.er1
31048   ac_status=$?
31049   grep -v '^ *+' conftest.er1 >conftest.err
31050   rm -f conftest.er1
31051   cat conftest.err >&5
31052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053   (exit $ac_status); } && {
31054          test -z "$ac_c_werror_flag" ||
31055          test ! -s conftest.err
31056        } && test -s conftest$ac_exeext &&
31057        $as_test_x conftest$ac_exeext; then
31058   eval "$as_ac_var=yes"
31059 else
31060   echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31062
31063         eval "$as_ac_var=no"
31064 fi
31065
31066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31067       conftest$ac_exeext conftest.$ac_ext
31068 fi
31069 ac_res=`eval echo '${'$as_ac_var'}'`
31070                { echo "$as_me:$LINENO: result: $ac_res" >&5
31071 echo "${ECHO_T}$ac_res" >&6; }
31072 if test `eval echo '${'$as_ac_var'}'` = yes; then
31073   cat >>confdefs.h <<_ACEOF
31074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31075 _ACEOF
31076
31077 fi
31078 done
31079
31080             fi
31081         fi
31082
31083         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31084         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31085
31086                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
31087
31088         AFMINSTALL=afminstall
31089         TOOLKIT=GTK
31090         GUIDIST=GTK_DIST
31091
31092                 if test "$wxUSE_GPE" = "yes"; then
31093             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31094 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31095
31096   ac_find_libraries=
31097   for ac_dir in $SEARCH_LIB
31098   do
31099     for ac_extension in a so sl dylib dll.a; do
31100       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31101         ac_find_libraries=$ac_dir
31102         break 2
31103       fi
31104     done
31105   done
31106
31107             if test "$ac_find_libraries" != "" ; then
31108
31109     if test "$ac_find_libraries" = "default location"; then
31110     ac_path_to_link=""
31111   else
31112     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31113     result=$?
31114     if test $result = 0; then
31115       ac_path_to_link=""
31116     else
31117       ac_path_to_link=" -L$ac_find_libraries"
31118     fi
31119   fi
31120
31121                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31122                 WXGPE=1
31123                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31124 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31125             else
31126                 { echo "$as_me:$LINENO: result: not found" >&5
31127 echo "${ECHO_T}not found" >&6; }
31128             fi
31129
31130                                                                                                                     fi
31131     fi
31132
31133     if test "$wxUSE_MGL" = 1; then
31134        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31135 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31136         if test "x$MGL_ROOT" = x ; then
31137             { echo "$as_me:$LINENO: result: not found" >&5
31138 echo "${ECHO_T}not found" >&6; }
31139             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31140 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31141    { (exit 1); exit 1; }; }
31142         else
31143             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31144 echo "${ECHO_T}$MGL_ROOT" >&6; }
31145         fi
31146
31147         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31148 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31149                                 case "${host}" in
31150             *-*-linux* )
31151                                           if test "x$wxUSE_SHARED" = xyes ; then
31152                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31153               else
31154                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31155               fi
31156               ;;
31157             *-pc-msdosdjgpp )
31158               mgl_os_candidates="dos32/dj2"
31159               ;;
31160             *)
31161               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31162 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31163    { (exit 1); exit 1; }; }
31164         esac
31165
31166         mgl_lib_type=""
31167         mgl_os=""
31168
31169         for mgl_os_i in $mgl_os_candidates ; do
31170             if test "x$mgl_os" = x ; then
31171                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31172                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31173                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31174                         mgl_lib_type=debug
31175                         mgl_os=$mgl_os_i
31176                     fi
31177                 fi
31178                 if test "x$mgl_lib_type" = x ; then
31179                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31180                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31181                         mgl_lib_type=release
31182                         mgl_os=$mgl_os_i
31183                     fi
31184                 fi
31185             fi
31186         done
31187
31188         if test "x$mgl_os" = x ; then
31189             { echo "$as_me:$LINENO: result: not found" >&5
31190 echo "${ECHO_T}not found" >&6; }
31191             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31192 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31193    { (exit 1); exit 1; }; }
31194         fi
31195         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31196 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31197
31198         wxUSE_UNIVERSAL="yes"
31199
31200         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31201         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31202
31203         AFMINSTALL=afminstall
31204         TOOLKIT=MGL
31205         GUIDIST=MGL_DIST
31206     fi
31207
31208     if test "$wxUSE_DFB" = 1; then
31209
31210
31211 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31212         if test -n "$ac_tool_prefix"; then
31213   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31214 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31218   echo $ECHO_N "(cached) $ECHO_C" >&6
31219 else
31220   case $PKG_CONFIG in
31221   [\\/]* | ?:[\\/]*)
31222   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31223   ;;
31224   *)
31225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31226 for as_dir in $PATH
31227 do
31228   IFS=$as_save_IFS
31229   test -z "$as_dir" && as_dir=.
31230   for ac_exec_ext in '' $ac_executable_extensions; do
31231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31232     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31234     break 2
31235   fi
31236 done
31237 done
31238 IFS=$as_save_IFS
31239
31240   ;;
31241 esac
31242 fi
31243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31244 if test -n "$PKG_CONFIG"; then
31245   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31246 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31247 else
31248   { echo "$as_me:$LINENO: result: no" >&5
31249 echo "${ECHO_T}no" >&6; }
31250 fi
31251
31252
31253 fi
31254 if test -z "$ac_cv_path_PKG_CONFIG"; then
31255   ac_pt_PKG_CONFIG=$PKG_CONFIG
31256   # Extract the first word of "pkg-config", so it can be a program name with args.
31257 set dummy pkg-config; ac_word=$2
31258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31260 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31261   echo $ECHO_N "(cached) $ECHO_C" >&6
31262 else
31263   case $ac_pt_PKG_CONFIG in
31264   [\\/]* | ?:[\\/]*)
31265   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31266   ;;
31267   *)
31268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31269 for as_dir in $PATH
31270 do
31271   IFS=$as_save_IFS
31272   test -z "$as_dir" && as_dir=.
31273   for ac_exec_ext in '' $ac_executable_extensions; do
31274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31275     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31277     break 2
31278   fi
31279 done
31280 done
31281 IFS=$as_save_IFS
31282
31283   ;;
31284 esac
31285 fi
31286 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31287 if test -n "$ac_pt_PKG_CONFIG"; then
31288   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31289 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31290 else
31291   { echo "$as_me:$LINENO: result: no" >&5
31292 echo "${ECHO_T}no" >&6; }
31293 fi
31294
31295   if test "x$ac_pt_PKG_CONFIG" = x; then
31296     PKG_CONFIG=""
31297   else
31298     case $cross_compiling:$ac_tool_warned in
31299 yes:)
31300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31301 whose name does not start with the host triplet.  If you think this
31302 configuration is useful to you, please write to autoconf@gnu.org." >&5
31303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31304 whose name does not start with the host triplet.  If you think this
31305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31306 ac_tool_warned=yes ;;
31307 esac
31308     PKG_CONFIG=$ac_pt_PKG_CONFIG
31309   fi
31310 else
31311   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31312 fi
31313
31314 fi
31315 if test -n "$PKG_CONFIG"; then
31316         _pkg_min_version=0.9.0
31317         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31318 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31319         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31320                 { echo "$as_me:$LINENO: result: yes" >&5
31321 echo "${ECHO_T}yes" >&6; }
31322         else
31323                 { echo "$as_me:$LINENO: result: no" >&5
31324 echo "${ECHO_T}no" >&6; }
31325                 PKG_CONFIG=""
31326         fi
31327
31328 fi
31329
31330
31331 pkg_failed=no
31332 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31333 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31334
31335 if test -n "$PKG_CONFIG"; then
31336     if test -n "$DIRECTFB_CFLAGS"; then
31337         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31338     else
31339         if test -n "$PKG_CONFIG" && \
31340     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31341   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31342   ac_status=$?
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); }; then
31345   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31346 else
31347   pkg_failed=yes
31348 fi
31349     fi
31350 else
31351         pkg_failed=untried
31352 fi
31353 if test -n "$PKG_CONFIG"; then
31354     if test -n "$DIRECTFB_LIBS"; then
31355         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31356     else
31357         if test -n "$PKG_CONFIG" && \
31358     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31359   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31360   ac_status=$?
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); }; then
31363   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31364 else
31365   pkg_failed=yes
31366 fi
31367     fi
31368 else
31369         pkg_failed=untried
31370 fi
31371
31372
31373
31374 if test $pkg_failed = yes; then
31375
31376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31377         _pkg_short_errors_supported=yes
31378 else
31379         _pkg_short_errors_supported=no
31380 fi
31381         if test $_pkg_short_errors_supported = yes; then
31382                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31383         else
31384                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31385         fi
31386         # Put the nasty error message in config.log where it belongs
31387         echo "$DIRECTFB_PKG_ERRORS" >&5
31388
31389
31390                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31391 echo "$as_me: error: DirectFB not found." >&2;}
31392    { (exit 1); exit 1; }; }
31393
31394
31395 elif test $pkg_failed = untried; then
31396
31397                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31398 echo "$as_me: error: DirectFB not found." >&2;}
31399    { (exit 1); exit 1; }; }
31400
31401
31402 else
31403         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31404         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31405         { echo "$as_me:$LINENO: result: yes" >&5
31406 echo "${ECHO_T}yes" >&6; }
31407
31408                            wxUSE_UNIVERSAL="yes"
31409                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31410                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31411                            TOOLKIT=DFB
31412                            GUIDIST=DFB_DIST
31413
31414 fi
31415     fi
31416
31417     if test "$wxUSE_MICROWIN" = 1; then
31418         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31419 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31420         if test "x$MICROWINDOWS" = x ; then
31421             { echo "$as_me:$LINENO: result: not found" >&5
31422 echo "${ECHO_T}not found" >&6; }
31423             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31424 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31425    { (exit 1); exit 1; }; }
31426         else
31427             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31428 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31429         fi
31430
31431         if test -f $MICROWINDOWS/lib/libmwin.a; then
31432             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31433 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31434         else
31435             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31436 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31437    { (exit 1); exit 1; }; }
31438         fi
31439
31440         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31441         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31442
31443         wxUSE_UNIVERSAL="yes"
31444
31445         AFMINSTALL=afminstall
31446         TOOLKIT=MICROWIN
31447         GUIDIST=MICROWIN_DIST
31448
31449         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31450     fi
31451
31452         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31453                                 { echo "$as_me:$LINENO: checking for X" >&5
31454 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31455
31456
31457 # Check whether --with-x was given.
31458 if test "${with_x+set}" = set; then
31459   withval=$with_x;
31460 fi
31461
31462 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31463 if test "x$with_x" = xno; then
31464   # The user explicitly disabled X.
31465   have_x=disabled
31466 else
31467   case $x_includes,$x_libraries in #(
31468     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31469 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31470    { (exit 1); exit 1; }; };; #(
31471     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31472   echo $ECHO_N "(cached) $ECHO_C" >&6
31473 else
31474   # One or both of the vars are not set, and there is no cached value.
31475 ac_x_includes=no ac_x_libraries=no
31476 rm -f -r conftest.dir
31477 if mkdir conftest.dir; then
31478   cd conftest.dir
31479   cat >Imakefile <<'_ACEOF'
31480 incroot:
31481         @echo incroot='${INCROOT}'
31482 usrlibdir:
31483         @echo usrlibdir='${USRLIBDIR}'
31484 libdir:
31485         @echo libdir='${LIBDIR}'
31486 _ACEOF
31487   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31488     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31489     for ac_var in incroot usrlibdir libdir; do
31490       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31491     done
31492     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31493     for ac_extension in a so sl; do
31494       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31495          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31496         ac_im_usrlibdir=$ac_im_libdir; break
31497       fi
31498     done
31499     # Screen out bogus values from the imake configuration.  They are
31500     # bogus both because they are the default anyway, and because
31501     # using them would break gcc on systems where it needs fixed includes.
31502     case $ac_im_incroot in
31503         /usr/include) ac_x_includes= ;;
31504         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31505     esac
31506     case $ac_im_usrlibdir in
31507         /usr/lib | /lib) ;;
31508         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31509     esac
31510   fi
31511   cd ..
31512   rm -f -r conftest.dir
31513 fi
31514
31515 # Standard set of common directories for X headers.
31516 # Check X11 before X11Rn because it is often a symlink to the current release.
31517 ac_x_header_dirs='
31518 /usr/X11/include
31519 /usr/X11R6/include
31520 /usr/X11R5/include
31521 /usr/X11R4/include
31522
31523 /usr/include/X11
31524 /usr/include/X11R6
31525 /usr/include/X11R5
31526 /usr/include/X11R4
31527
31528 /usr/local/X11/include
31529 /usr/local/X11R6/include
31530 /usr/local/X11R5/include
31531 /usr/local/X11R4/include
31532
31533 /usr/local/include/X11
31534 /usr/local/include/X11R6
31535 /usr/local/include/X11R5
31536 /usr/local/include/X11R4
31537
31538 /usr/X386/include
31539 /usr/x386/include
31540 /usr/XFree86/include/X11
31541
31542 /usr/include
31543 /usr/local/include
31544 /usr/unsupported/include
31545 /usr/athena/include
31546 /usr/local/x11r5/include
31547 /usr/lpp/Xamples/include
31548
31549 /usr/openwin/include
31550 /usr/openwin/share/include'
31551
31552 if test "$ac_x_includes" = no; then
31553   # Guess where to find include files, by looking for Xlib.h.
31554   # First, try using that file with no special directory specified.
31555   cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h.  */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h.  */
31561 #include <X11/Xlib.h>
31562 _ACEOF
31563 if { (ac_try="$ac_cpp conftest.$ac_ext"
31564 case "(($ac_try" in
31565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31566   *) ac_try_echo=$ac_try;;
31567 esac
31568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31570   ac_status=$?
31571   grep -v '^ *+' conftest.er1 >conftest.err
31572   rm -f conftest.er1
31573   cat conftest.err >&5
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); } >/dev/null && {
31576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31577          test ! -s conftest.err
31578        }; then
31579   # We can compile using X headers with no special include directory.
31580 ac_x_includes=
31581 else
31582   echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31584
31585   for ac_dir in $ac_x_header_dirs; do
31586   if test -r "$ac_dir/X11/Xlib.h"; then
31587     ac_x_includes=$ac_dir
31588     break
31589   fi
31590 done
31591 fi
31592
31593 rm -f conftest.err conftest.$ac_ext
31594 fi # $ac_x_includes = no
31595
31596 if test "$ac_x_libraries" = no; then
31597   # Check for the libraries.
31598   # See if we find them without any special options.
31599   # Don't add to $LIBS permanently.
31600   ac_save_LIBS=$LIBS
31601   LIBS="-lX11 $LIBS"
31602   cat >conftest.$ac_ext <<_ACEOF
31603 /* confdefs.h.  */
31604 _ACEOF
31605 cat confdefs.h >>conftest.$ac_ext
31606 cat >>conftest.$ac_ext <<_ACEOF
31607 /* end confdefs.h.  */
31608 #include <X11/Xlib.h>
31609 int
31610 main ()
31611 {
31612 XrmInitialize ()
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (ac_try="$ac_link"
31619 case "(($ac_try" in
31620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621   *) ac_try_echo=$ac_try;;
31622 esac
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624   (eval "$ac_link") 2>conftest.er1
31625   ac_status=$?
31626   grep -v '^ *+' conftest.er1 >conftest.err
31627   rm -f conftest.er1
31628   cat conftest.err >&5
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } && {
31631          test -z "$ac_c_werror_flag" ||
31632          test ! -s conftest.err
31633        } && test -s conftest$ac_exeext &&
31634        $as_test_x conftest$ac_exeext; then
31635   LIBS=$ac_save_LIBS
31636 # We can link X programs with no special library path.
31637 ac_x_libraries=
31638 else
31639   echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31641
31642         LIBS=$ac_save_LIBS
31643 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31644 do
31645   # Don't even attempt the hair of trying to link an X program!
31646   for ac_extension in a so sl; do
31647     if test -r "$ac_dir/libX11.$ac_extension"; then
31648       ac_x_libraries=$ac_dir
31649       break 2
31650     fi
31651   done
31652 done
31653 fi
31654
31655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31656       conftest$ac_exeext conftest.$ac_ext
31657 fi # $ac_x_libraries = no
31658
31659 case $ac_x_includes,$ac_x_libraries in #(
31660   no,* | *,no | *\'*)
31661     # Didn't find X, or a directory has "'" in its name.
31662     ac_cv_have_x="have_x=no";; #(
31663   *)
31664     # Record where we found X for the cache.
31665     ac_cv_have_x="have_x=yes\
31666         ac_x_includes='$ac_x_includes'\
31667         ac_x_libraries='$ac_x_libraries'"
31668 esac
31669 fi
31670 ;; #(
31671     *) have_x=yes;;
31672   esac
31673   eval "$ac_cv_have_x"
31674 fi # $with_x != no
31675
31676 if test "$have_x" != yes; then
31677   { echo "$as_me:$LINENO: result: $have_x" >&5
31678 echo "${ECHO_T}$have_x" >&6; }
31679   no_x=yes
31680 else
31681   # If each of the values was on the command line, it overrides each guess.
31682   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31683   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31684   # Update the cache value to reflect the command line values.
31685   ac_cv_have_x="have_x=yes\
31686         ac_x_includes='$x_includes'\
31687         ac_x_libraries='$x_libraries'"
31688   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31689 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31690 fi
31691
31692 if test "$no_x" = yes; then
31693   # Not all programs may use this symbol, but it does not hurt to define it.
31694
31695 cat >>confdefs.h <<\_ACEOF
31696 #define X_DISPLAY_MISSING 1
31697 _ACEOF
31698
31699   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31700 else
31701   if test -n "$x_includes"; then
31702     X_CFLAGS="$X_CFLAGS -I$x_includes"
31703   fi
31704
31705   # It would also be nice to do this for all -L options, not just this one.
31706   if test -n "$x_libraries"; then
31707     X_LIBS="$X_LIBS -L$x_libraries"
31708     # For Solaris; some versions of Sun CC require a space after -R and
31709     # others require no space.  Words are not sufficient . . . .
31710     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31711 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31712     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31713     ac_xsave_c_werror_flag=$ac_c_werror_flag
31714     ac_c_werror_flag=yes
31715     cat >conftest.$ac_ext <<_ACEOF
31716 /* confdefs.h.  */
31717 _ACEOF
31718 cat confdefs.h >>conftest.$ac_ext
31719 cat >>conftest.$ac_ext <<_ACEOF
31720 /* end confdefs.h.  */
31721
31722 int
31723 main ()
31724 {
31725
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   { echo "$as_me:$LINENO: result: no" >&5
31749 echo "${ECHO_T}no" >&6; }
31750        X_LIBS="$X_LIBS -R$x_libraries"
31751 else
31752   echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755         LIBS="$ac_xsave_LIBS -R $x_libraries"
31756        cat >conftest.$ac_ext <<_ACEOF
31757 /* confdefs.h.  */
31758 _ACEOF
31759 cat confdefs.h >>conftest.$ac_ext
31760 cat >>conftest.$ac_ext <<_ACEOF
31761 /* end confdefs.h.  */
31762
31763 int
31764 main ()
31765 {
31766
31767   ;
31768   return 0;
31769 }
31770 _ACEOF
31771 rm -f conftest.$ac_objext conftest$ac_exeext
31772 if { (ac_try="$ac_link"
31773 case "(($ac_try" in
31774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775   *) ac_try_echo=$ac_try;;
31776 esac
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778   (eval "$ac_link") 2>conftest.er1
31779   ac_status=$?
31780   grep -v '^ *+' conftest.er1 >conftest.err
31781   rm -f conftest.er1
31782   cat conftest.err >&5
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); } && {
31785          test -z "$ac_c_werror_flag" ||
31786          test ! -s conftest.err
31787        } && test -s conftest$ac_exeext &&
31788        $as_test_x conftest$ac_exeext; then
31789   { echo "$as_me:$LINENO: result: yes" >&5
31790 echo "${ECHO_T}yes" >&6; }
31791           X_LIBS="$X_LIBS -R $x_libraries"
31792 else
31793   echo "$as_me: failed program was:" >&5
31794 sed 's/^/| /' conftest.$ac_ext >&5
31795
31796         { echo "$as_me:$LINENO: result: neither works" >&5
31797 echo "${ECHO_T}neither works" >&6; }
31798 fi
31799
31800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31801       conftest$ac_exeext conftest.$ac_ext
31802 fi
31803
31804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31805       conftest$ac_exeext conftest.$ac_ext
31806     ac_c_werror_flag=$ac_xsave_c_werror_flag
31807     LIBS=$ac_xsave_LIBS
31808   fi
31809
31810   # Check for system-dependent libraries X programs must link with.
31811   # Do this before checking for the system-independent R6 libraries
31812   # (-lICE), since we may need -lsocket or whatever for X linking.
31813
31814   if test "$ISC" = yes; then
31815     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31816   else
31817     # Martyn Johnson says this is needed for Ultrix, if the X
31818     # libraries were built with DECnet support.  And Karl Berry says
31819     # the Alpha needs dnet_stub (dnet does not exist).
31820     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31821     cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h.  */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h.  */
31827
31828 /* Override any GCC internal prototype to avoid an error.
31829    Use char because int might match the return type of a GCC
31830    builtin and then its argument prototype would still apply.  */
31831 #ifdef __cplusplus
31832 extern "C"
31833 #endif
31834 char XOpenDisplay ();
31835 int
31836 main ()
31837 {
31838 return XOpenDisplay ();
31839   ;
31840   return 0;
31841 }
31842 _ACEOF
31843 rm -f conftest.$ac_objext conftest$ac_exeext
31844 if { (ac_try="$ac_link"
31845 case "(($ac_try" in
31846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31847   *) ac_try_echo=$ac_try;;
31848 esac
31849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31850   (eval "$ac_link") 2>conftest.er1
31851   ac_status=$?
31852   grep -v '^ *+' conftest.er1 >conftest.err
31853   rm -f conftest.er1
31854   cat conftest.err >&5
31855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856   (exit $ac_status); } && {
31857          test -z "$ac_c_werror_flag" ||
31858          test ! -s conftest.err
31859        } && test -s conftest$ac_exeext &&
31860        $as_test_x conftest$ac_exeext; then
31861   :
31862 else
31863   echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.$ac_ext >&5
31865
31866         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31867 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
31868 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31869   echo $ECHO_N "(cached) $ECHO_C" >&6
31870 else
31871   ac_check_lib_save_LIBS=$LIBS
31872 LIBS="-ldnet  $LIBS"
31873 cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879
31880 /* Override any GCC internal prototype to avoid an error.
31881    Use char because int might match the return type of a GCC
31882    builtin and then its argument prototype would still apply.  */
31883 #ifdef __cplusplus
31884 extern "C"
31885 #endif
31886 char dnet_ntoa ();
31887 int
31888 main ()
31889 {
31890 return dnet_ntoa ();
31891   ;
31892   return 0;
31893 }
31894 _ACEOF
31895 rm -f conftest.$ac_objext conftest$ac_exeext
31896 if { (ac_try="$ac_link"
31897 case "(($ac_try" in
31898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899   *) ac_try_echo=$ac_try;;
31900 esac
31901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902   (eval "$ac_link") 2>conftest.er1
31903   ac_status=$?
31904   grep -v '^ *+' conftest.er1 >conftest.err
31905   rm -f conftest.er1
31906   cat conftest.err >&5
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); } && {
31909          test -z "$ac_c_werror_flag" ||
31910          test ! -s conftest.err
31911        } && test -s conftest$ac_exeext &&
31912        $as_test_x conftest$ac_exeext; then
31913   ac_cv_lib_dnet_dnet_ntoa=yes
31914 else
31915   echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918         ac_cv_lib_dnet_dnet_ntoa=no
31919 fi
31920
31921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31922       conftest$ac_exeext conftest.$ac_ext
31923 LIBS=$ac_check_lib_save_LIBS
31924 fi
31925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31926 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31927 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
31928   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31929 fi
31930
31931     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31932       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31933 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
31934 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31935   echo $ECHO_N "(cached) $ECHO_C" >&6
31936 else
31937   ac_check_lib_save_LIBS=$LIBS
31938 LIBS="-ldnet_stub  $LIBS"
31939 cat >conftest.$ac_ext <<_ACEOF
31940 /* confdefs.h.  */
31941 _ACEOF
31942 cat confdefs.h >>conftest.$ac_ext
31943 cat >>conftest.$ac_ext <<_ACEOF
31944 /* end confdefs.h.  */
31945
31946 /* Override any GCC internal prototype to avoid an error.
31947    Use char because int might match the return type of a GCC
31948    builtin and then its argument prototype would still apply.  */
31949 #ifdef __cplusplus
31950 extern "C"
31951 #endif
31952 char dnet_ntoa ();
31953 int
31954 main ()
31955 {
31956 return dnet_ntoa ();
31957   ;
31958   return 0;
31959 }
31960 _ACEOF
31961 rm -f conftest.$ac_objext conftest$ac_exeext
31962 if { (ac_try="$ac_link"
31963 case "(($ac_try" in
31964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31965   *) ac_try_echo=$ac_try;;
31966 esac
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968   (eval "$ac_link") 2>conftest.er1
31969   ac_status=$?
31970   grep -v '^ *+' conftest.er1 >conftest.err
31971   rm -f conftest.er1
31972   cat conftest.err >&5
31973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974   (exit $ac_status); } && {
31975          test -z "$ac_c_werror_flag" ||
31976          test ! -s conftest.err
31977        } && test -s conftest$ac_exeext &&
31978        $as_test_x conftest$ac_exeext; then
31979   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31980 else
31981   echo "$as_me: failed program was:" >&5
31982 sed 's/^/| /' conftest.$ac_ext >&5
31983
31984         ac_cv_lib_dnet_stub_dnet_ntoa=no
31985 fi
31986
31987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31988       conftest$ac_exeext conftest.$ac_ext
31989 LIBS=$ac_check_lib_save_LIBS
31990 fi
31991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31992 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31993 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
31994   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31995 fi
31996
31997     fi
31998 fi
31999
32000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32001       conftest$ac_exeext conftest.$ac_ext
32002     LIBS="$ac_xsave_LIBS"
32003
32004     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32005     # to get the SysV transport functions.
32006     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32007     # needs -lnsl.
32008     # The nsl library prevents programs from opening the X display
32009     # on Irix 5.2, according to T.E. Dickey.
32010     # The functions gethostbyname, getservbyname, and inet_addr are
32011     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32012     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32013 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32014 if test "${ac_cv_func_gethostbyname+set}" = set; then
32015   echo $ECHO_N "(cached) $ECHO_C" >&6
32016 else
32017   cat >conftest.$ac_ext <<_ACEOF
32018 /* confdefs.h.  */
32019 _ACEOF
32020 cat confdefs.h >>conftest.$ac_ext
32021 cat >>conftest.$ac_ext <<_ACEOF
32022 /* end confdefs.h.  */
32023 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32025 #define gethostbyname innocuous_gethostbyname
32026
32027 /* System header to define __stub macros and hopefully few prototypes,
32028     which can conflict with char gethostbyname (); below.
32029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32030     <limits.h> exists even on freestanding compilers.  */
32031
32032 #ifdef __STDC__
32033 # include <limits.h>
32034 #else
32035 # include <assert.h>
32036 #endif
32037
32038 #undef gethostbyname
32039
32040 /* Override any GCC internal prototype to avoid an error.
32041    Use char because int might match the return type of a GCC
32042    builtin and then its argument prototype would still apply.  */
32043 #ifdef __cplusplus
32044 extern "C"
32045 #endif
32046 char gethostbyname ();
32047 /* The GNU C library defines this for functions which it implements
32048     to always fail with ENOSYS.  Some functions are actually named
32049     something starting with __ and the normal name is an alias.  */
32050 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32051 choke me
32052 #endif
32053
32054 int
32055 main ()
32056 {
32057 return gethostbyname ();
32058   ;
32059   return 0;
32060 }
32061 _ACEOF
32062 rm -f conftest.$ac_objext conftest$ac_exeext
32063 if { (ac_try="$ac_link"
32064 case "(($ac_try" in
32065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066   *) ac_try_echo=$ac_try;;
32067 esac
32068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069   (eval "$ac_link") 2>conftest.er1
32070   ac_status=$?
32071   grep -v '^ *+' conftest.er1 >conftest.err
32072   rm -f conftest.er1
32073   cat conftest.err >&5
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); } && {
32076          test -z "$ac_c_werror_flag" ||
32077          test ! -s conftest.err
32078        } && test -s conftest$ac_exeext &&
32079        $as_test_x conftest$ac_exeext; then
32080   ac_cv_func_gethostbyname=yes
32081 else
32082   echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32084
32085         ac_cv_func_gethostbyname=no
32086 fi
32087
32088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32089       conftest$ac_exeext conftest.$ac_ext
32090 fi
32091 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32092 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32093
32094     if test $ac_cv_func_gethostbyname = no; then
32095       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32096 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32097 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32098   echo $ECHO_N "(cached) $ECHO_C" >&6
32099 else
32100   ac_check_lib_save_LIBS=$LIBS
32101 LIBS="-lnsl  $LIBS"
32102 cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108
32109 /* Override any GCC internal prototype to avoid an error.
32110    Use char because int might match the return type of a GCC
32111    builtin and then its argument prototype would still apply.  */
32112 #ifdef __cplusplus
32113 extern "C"
32114 #endif
32115 char gethostbyname ();
32116 int
32117 main ()
32118 {
32119 return gethostbyname ();
32120   ;
32121   return 0;
32122 }
32123 _ACEOF
32124 rm -f conftest.$ac_objext conftest$ac_exeext
32125 if { (ac_try="$ac_link"
32126 case "(($ac_try" in
32127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128   *) ac_try_echo=$ac_try;;
32129 esac
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131   (eval "$ac_link") 2>conftest.er1
32132   ac_status=$?
32133   grep -v '^ *+' conftest.er1 >conftest.err
32134   rm -f conftest.er1
32135   cat conftest.err >&5
32136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137   (exit $ac_status); } && {
32138          test -z "$ac_c_werror_flag" ||
32139          test ! -s conftest.err
32140        } && test -s conftest$ac_exeext &&
32141        $as_test_x conftest$ac_exeext; then
32142   ac_cv_lib_nsl_gethostbyname=yes
32143 else
32144   echo "$as_me: failed program was:" >&5
32145 sed 's/^/| /' conftest.$ac_ext >&5
32146
32147         ac_cv_lib_nsl_gethostbyname=no
32148 fi
32149
32150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32151       conftest$ac_exeext conftest.$ac_ext
32152 LIBS=$ac_check_lib_save_LIBS
32153 fi
32154 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32155 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32156 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32157   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32158 fi
32159
32160       if test $ac_cv_lib_nsl_gethostbyname = no; then
32161         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32162 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32163 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32164   echo $ECHO_N "(cached) $ECHO_C" >&6
32165 else
32166   ac_check_lib_save_LIBS=$LIBS
32167 LIBS="-lbsd  $LIBS"
32168 cat >conftest.$ac_ext <<_ACEOF
32169 /* confdefs.h.  */
32170 _ACEOF
32171 cat confdefs.h >>conftest.$ac_ext
32172 cat >>conftest.$ac_ext <<_ACEOF
32173 /* end confdefs.h.  */
32174
32175 /* Override any GCC internal prototype to avoid an error.
32176    Use char because int might match the return type of a GCC
32177    builtin and then its argument prototype would still apply.  */
32178 #ifdef __cplusplus
32179 extern "C"
32180 #endif
32181 char gethostbyname ();
32182 int
32183 main ()
32184 {
32185 return gethostbyname ();
32186   ;
32187   return 0;
32188 }
32189 _ACEOF
32190 rm -f conftest.$ac_objext conftest$ac_exeext
32191 if { (ac_try="$ac_link"
32192 case "(($ac_try" in
32193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32194   *) ac_try_echo=$ac_try;;
32195 esac
32196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197   (eval "$ac_link") 2>conftest.er1
32198   ac_status=$?
32199   grep -v '^ *+' conftest.er1 >conftest.err
32200   rm -f conftest.er1
32201   cat conftest.err >&5
32202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203   (exit $ac_status); } && {
32204          test -z "$ac_c_werror_flag" ||
32205          test ! -s conftest.err
32206        } && test -s conftest$ac_exeext &&
32207        $as_test_x conftest$ac_exeext; then
32208   ac_cv_lib_bsd_gethostbyname=yes
32209 else
32210   echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.$ac_ext >&5
32212
32213         ac_cv_lib_bsd_gethostbyname=no
32214 fi
32215
32216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32217       conftest$ac_exeext conftest.$ac_ext
32218 LIBS=$ac_check_lib_save_LIBS
32219 fi
32220 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32221 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32222 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32223   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32224 fi
32225
32226       fi
32227     fi
32228
32229     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32230     # socket/setsockopt and other routines are undefined under SCO ODT
32231     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32232     # on later versions), says Simon Leinen: it contains gethostby*
32233     # variants that don't use the name server (or something).  -lsocket
32234     # must be given before -lnsl if both are needed.  We assume that
32235     # if connect needs -lnsl, so does gethostbyname.
32236     { echo "$as_me:$LINENO: checking for connect" >&5
32237 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32238 if test "${ac_cv_func_connect+set}" = set; then
32239   echo $ECHO_N "(cached) $ECHO_C" >&6
32240 else
32241   cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32249 #define connect innocuous_connect
32250
32251 /* System header to define __stub macros and hopefully few prototypes,
32252     which can conflict with char connect (); below.
32253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32254     <limits.h> exists even on freestanding compilers.  */
32255
32256 #ifdef __STDC__
32257 # include <limits.h>
32258 #else
32259 # include <assert.h>
32260 #endif
32261
32262 #undef connect
32263
32264 /* Override any GCC internal prototype to avoid an error.
32265    Use char because int might match the return type of a GCC
32266    builtin and then its argument prototype would still apply.  */
32267 #ifdef __cplusplus
32268 extern "C"
32269 #endif
32270 char connect ();
32271 /* The GNU C library defines this for functions which it implements
32272     to always fail with ENOSYS.  Some functions are actually named
32273     something starting with __ and the normal name is an alias.  */
32274 #if defined __stub_connect || defined __stub___connect
32275 choke me
32276 #endif
32277
32278 int
32279 main ()
32280 {
32281 return connect ();
32282   ;
32283   return 0;
32284 }
32285 _ACEOF
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287 if { (ac_try="$ac_link"
32288 case "(($ac_try" in
32289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290   *) ac_try_echo=$ac_try;;
32291 esac
32292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293   (eval "$ac_link") 2>conftest.er1
32294   ac_status=$?
32295   grep -v '^ *+' conftest.er1 >conftest.err
32296   rm -f conftest.er1
32297   cat conftest.err >&5
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); } && {
32300          test -z "$ac_c_werror_flag" ||
32301          test ! -s conftest.err
32302        } && test -s conftest$ac_exeext &&
32303        $as_test_x conftest$ac_exeext; then
32304   ac_cv_func_connect=yes
32305 else
32306   echo "$as_me: failed program was:" >&5
32307 sed 's/^/| /' conftest.$ac_ext >&5
32308
32309         ac_cv_func_connect=no
32310 fi
32311
32312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32313       conftest$ac_exeext conftest.$ac_ext
32314 fi
32315 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32316 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32317
32318     if test $ac_cv_func_connect = no; then
32319       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32320 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32321 if test "${ac_cv_lib_socket_connect+set}" = set; then
32322   echo $ECHO_N "(cached) $ECHO_C" >&6
32323 else
32324   ac_check_lib_save_LIBS=$LIBS
32325 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32326 cat >conftest.$ac_ext <<_ACEOF
32327 /* confdefs.h.  */
32328 _ACEOF
32329 cat confdefs.h >>conftest.$ac_ext
32330 cat >>conftest.$ac_ext <<_ACEOF
32331 /* end confdefs.h.  */
32332
32333 /* Override any GCC internal prototype to avoid an error.
32334    Use char because int might match the return type of a GCC
32335    builtin and then its argument prototype would still apply.  */
32336 #ifdef __cplusplus
32337 extern "C"
32338 #endif
32339 char connect ();
32340 int
32341 main ()
32342 {
32343 return connect ();
32344   ;
32345   return 0;
32346 }
32347 _ACEOF
32348 rm -f conftest.$ac_objext conftest$ac_exeext
32349 if { (ac_try="$ac_link"
32350 case "(($ac_try" in
32351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352   *) ac_try_echo=$ac_try;;
32353 esac
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355   (eval "$ac_link") 2>conftest.er1
32356   ac_status=$?
32357   grep -v '^ *+' conftest.er1 >conftest.err
32358   rm -f conftest.er1
32359   cat conftest.err >&5
32360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361   (exit $ac_status); } && {
32362          test -z "$ac_c_werror_flag" ||
32363          test ! -s conftest.err
32364        } && test -s conftest$ac_exeext &&
32365        $as_test_x conftest$ac_exeext; then
32366   ac_cv_lib_socket_connect=yes
32367 else
32368   echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32370
32371         ac_cv_lib_socket_connect=no
32372 fi
32373
32374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32375       conftest$ac_exeext conftest.$ac_ext
32376 LIBS=$ac_check_lib_save_LIBS
32377 fi
32378 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32379 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32380 if test $ac_cv_lib_socket_connect = yes; then
32381   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32382 fi
32383
32384     fi
32385
32386     # Guillermo Gomez says -lposix is necessary on A/UX.
32387     { echo "$as_me:$LINENO: checking for remove" >&5
32388 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32389 if test "${ac_cv_func_remove+set}" = set; then
32390   echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32392   cat >conftest.$ac_ext <<_ACEOF
32393 /* confdefs.h.  */
32394 _ACEOF
32395 cat confdefs.h >>conftest.$ac_ext
32396 cat >>conftest.$ac_ext <<_ACEOF
32397 /* end confdefs.h.  */
32398 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32400 #define remove innocuous_remove
32401
32402 /* System header to define __stub macros and hopefully few prototypes,
32403     which can conflict with char remove (); below.
32404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32405     <limits.h> exists even on freestanding compilers.  */
32406
32407 #ifdef __STDC__
32408 # include <limits.h>
32409 #else
32410 # include <assert.h>
32411 #endif
32412
32413 #undef remove
32414
32415 /* Override any GCC internal prototype to avoid an error.
32416    Use char because int might match the return type of a GCC
32417    builtin and then its argument prototype would still apply.  */
32418 #ifdef __cplusplus
32419 extern "C"
32420 #endif
32421 char remove ();
32422 /* The GNU C library defines this for functions which it implements
32423     to always fail with ENOSYS.  Some functions are actually named
32424     something starting with __ and the normal name is an alias.  */
32425 #if defined __stub_remove || defined __stub___remove
32426 choke me
32427 #endif
32428
32429 int
32430 main ()
32431 {
32432 return remove ();
32433   ;
32434   return 0;
32435 }
32436 _ACEOF
32437 rm -f conftest.$ac_objext conftest$ac_exeext
32438 if { (ac_try="$ac_link"
32439 case "(($ac_try" in
32440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32441   *) ac_try_echo=$ac_try;;
32442 esac
32443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32444   (eval "$ac_link") 2>conftest.er1
32445   ac_status=$?
32446   grep -v '^ *+' conftest.er1 >conftest.err
32447   rm -f conftest.er1
32448   cat conftest.err >&5
32449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450   (exit $ac_status); } && {
32451          test -z "$ac_c_werror_flag" ||
32452          test ! -s conftest.err
32453        } && test -s conftest$ac_exeext &&
32454        $as_test_x conftest$ac_exeext; then
32455   ac_cv_func_remove=yes
32456 else
32457   echo "$as_me: failed program was:" >&5
32458 sed 's/^/| /' conftest.$ac_ext >&5
32459
32460         ac_cv_func_remove=no
32461 fi
32462
32463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32464       conftest$ac_exeext conftest.$ac_ext
32465 fi
32466 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32467 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32468
32469     if test $ac_cv_func_remove = no; then
32470       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32471 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32472 if test "${ac_cv_lib_posix_remove+set}" = set; then
32473   echo $ECHO_N "(cached) $ECHO_C" >&6
32474 else
32475   ac_check_lib_save_LIBS=$LIBS
32476 LIBS="-lposix  $LIBS"
32477 cat >conftest.$ac_ext <<_ACEOF
32478 /* confdefs.h.  */
32479 _ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h.  */
32483
32484 /* Override any GCC internal prototype to avoid an error.
32485    Use char because int might match the return type of a GCC
32486    builtin and then its argument prototype would still apply.  */
32487 #ifdef __cplusplus
32488 extern "C"
32489 #endif
32490 char remove ();
32491 int
32492 main ()
32493 {
32494 return remove ();
32495   ;
32496   return 0;
32497 }
32498 _ACEOF
32499 rm -f conftest.$ac_objext conftest$ac_exeext
32500 if { (ac_try="$ac_link"
32501 case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_link") 2>conftest.er1
32507   ac_status=$?
32508   grep -v '^ *+' conftest.er1 >conftest.err
32509   rm -f conftest.er1
32510   cat conftest.err >&5
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); } && {
32513          test -z "$ac_c_werror_flag" ||
32514          test ! -s conftest.err
32515        } && test -s conftest$ac_exeext &&
32516        $as_test_x conftest$ac_exeext; then
32517   ac_cv_lib_posix_remove=yes
32518 else
32519   echo "$as_me: failed program was:" >&5
32520 sed 's/^/| /' conftest.$ac_ext >&5
32521
32522         ac_cv_lib_posix_remove=no
32523 fi
32524
32525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32526       conftest$ac_exeext conftest.$ac_ext
32527 LIBS=$ac_check_lib_save_LIBS
32528 fi
32529 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32530 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32531 if test $ac_cv_lib_posix_remove = yes; then
32532   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32533 fi
32534
32535     fi
32536
32537     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32538     { echo "$as_me:$LINENO: checking for shmat" >&5
32539 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32540 if test "${ac_cv_func_shmat+set}" = set; then
32541   echo $ECHO_N "(cached) $ECHO_C" >&6
32542 else
32543   cat >conftest.$ac_ext <<_ACEOF
32544 /* confdefs.h.  */
32545 _ACEOF
32546 cat confdefs.h >>conftest.$ac_ext
32547 cat >>conftest.$ac_ext <<_ACEOF
32548 /* end confdefs.h.  */
32549 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32551 #define shmat innocuous_shmat
32552
32553 /* System header to define __stub macros and hopefully few prototypes,
32554     which can conflict with char shmat (); below.
32555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32556     <limits.h> exists even on freestanding compilers.  */
32557
32558 #ifdef __STDC__
32559 # include <limits.h>
32560 #else
32561 # include <assert.h>
32562 #endif
32563
32564 #undef shmat
32565
32566 /* Override any GCC internal prototype to avoid an error.
32567    Use char because int might match the return type of a GCC
32568    builtin and then its argument prototype would still apply.  */
32569 #ifdef __cplusplus
32570 extern "C"
32571 #endif
32572 char shmat ();
32573 /* The GNU C library defines this for functions which it implements
32574     to always fail with ENOSYS.  Some functions are actually named
32575     something starting with __ and the normal name is an alias.  */
32576 #if defined __stub_shmat || defined __stub___shmat
32577 choke me
32578 #endif
32579
32580 int
32581 main ()
32582 {
32583 return shmat ();
32584   ;
32585   return 0;
32586 }
32587 _ACEOF
32588 rm -f conftest.$ac_objext conftest$ac_exeext
32589 if { (ac_try="$ac_link"
32590 case "(($ac_try" in
32591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32592   *) ac_try_echo=$ac_try;;
32593 esac
32594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32595   (eval "$ac_link") 2>conftest.er1
32596   ac_status=$?
32597   grep -v '^ *+' conftest.er1 >conftest.err
32598   rm -f conftest.er1
32599   cat conftest.err >&5
32600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601   (exit $ac_status); } && {
32602          test -z "$ac_c_werror_flag" ||
32603          test ! -s conftest.err
32604        } && test -s conftest$ac_exeext &&
32605        $as_test_x conftest$ac_exeext; then
32606   ac_cv_func_shmat=yes
32607 else
32608   echo "$as_me: failed program was:" >&5
32609 sed 's/^/| /' conftest.$ac_ext >&5
32610
32611         ac_cv_func_shmat=no
32612 fi
32613
32614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32615       conftest$ac_exeext conftest.$ac_ext
32616 fi
32617 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32618 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32619
32620     if test $ac_cv_func_shmat = no; then
32621       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32622 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32623 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32624   echo $ECHO_N "(cached) $ECHO_C" >&6
32625 else
32626   ac_check_lib_save_LIBS=$LIBS
32627 LIBS="-lipc  $LIBS"
32628 cat >conftest.$ac_ext <<_ACEOF
32629 /* confdefs.h.  */
32630 _ACEOF
32631 cat confdefs.h >>conftest.$ac_ext
32632 cat >>conftest.$ac_ext <<_ACEOF
32633 /* end confdefs.h.  */
32634
32635 /* Override any GCC internal prototype to avoid an error.
32636    Use char because int might match the return type of a GCC
32637    builtin and then its argument prototype would still apply.  */
32638 #ifdef __cplusplus
32639 extern "C"
32640 #endif
32641 char shmat ();
32642 int
32643 main ()
32644 {
32645 return shmat ();
32646   ;
32647   return 0;
32648 }
32649 _ACEOF
32650 rm -f conftest.$ac_objext conftest$ac_exeext
32651 if { (ac_try="$ac_link"
32652 case "(($ac_try" in
32653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654   *) ac_try_echo=$ac_try;;
32655 esac
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657   (eval "$ac_link") 2>conftest.er1
32658   ac_status=$?
32659   grep -v '^ *+' conftest.er1 >conftest.err
32660   rm -f conftest.er1
32661   cat conftest.err >&5
32662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663   (exit $ac_status); } && {
32664          test -z "$ac_c_werror_flag" ||
32665          test ! -s conftest.err
32666        } && test -s conftest$ac_exeext &&
32667        $as_test_x conftest$ac_exeext; then
32668   ac_cv_lib_ipc_shmat=yes
32669 else
32670   echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32672
32673         ac_cv_lib_ipc_shmat=no
32674 fi
32675
32676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32677       conftest$ac_exeext conftest.$ac_ext
32678 LIBS=$ac_check_lib_save_LIBS
32679 fi
32680 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32681 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32682 if test $ac_cv_lib_ipc_shmat = yes; then
32683   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32684 fi
32685
32686     fi
32687   fi
32688
32689   # Check for libraries that X11R6 Xt/Xaw programs need.
32690   ac_save_LDFLAGS=$LDFLAGS
32691   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32692   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32693   # check for ICE first), but we must link in the order -lSM -lICE or
32694   # we get undefined symbols.  So assume we have SM if we have ICE.
32695   # These have to be linked with before -lX11, unlike the other
32696   # libraries we check for below, so use a different variable.
32697   # John Interrante, Karl Berry
32698   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32699 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32700 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32701   echo $ECHO_N "(cached) $ECHO_C" >&6
32702 else
32703   ac_check_lib_save_LIBS=$LIBS
32704 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32705 cat >conftest.$ac_ext <<_ACEOF
32706 /* confdefs.h.  */
32707 _ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h.  */
32711
32712 /* Override any GCC internal prototype to avoid an error.
32713    Use char because int might match the return type of a GCC
32714    builtin and then its argument prototype would still apply.  */
32715 #ifdef __cplusplus
32716 extern "C"
32717 #endif
32718 char IceConnectionNumber ();
32719 int
32720 main ()
32721 {
32722 return IceConnectionNumber ();
32723   ;
32724   return 0;
32725 }
32726 _ACEOF
32727 rm -f conftest.$ac_objext conftest$ac_exeext
32728 if { (ac_try="$ac_link"
32729 case "(($ac_try" in
32730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32731   *) ac_try_echo=$ac_try;;
32732 esac
32733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32734   (eval "$ac_link") 2>conftest.er1
32735   ac_status=$?
32736   grep -v '^ *+' conftest.er1 >conftest.err
32737   rm -f conftest.er1
32738   cat conftest.err >&5
32739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740   (exit $ac_status); } && {
32741          test -z "$ac_c_werror_flag" ||
32742          test ! -s conftest.err
32743        } && test -s conftest$ac_exeext &&
32744        $as_test_x conftest$ac_exeext; then
32745   ac_cv_lib_ICE_IceConnectionNumber=yes
32746 else
32747   echo "$as_me: failed program was:" >&5
32748 sed 's/^/| /' conftest.$ac_ext >&5
32749
32750         ac_cv_lib_ICE_IceConnectionNumber=no
32751 fi
32752
32753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32754       conftest$ac_exeext conftest.$ac_ext
32755 LIBS=$ac_check_lib_save_LIBS
32756 fi
32757 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32758 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32759 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32760   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32761 fi
32762
32763   LDFLAGS=$ac_save_LDFLAGS
32764
32765 fi
32766
32767
32768         if test "$no_x" = "yes"; then
32769           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32770 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32771    { (exit 1); exit 1; }; }
32772         fi
32773
32774                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32775         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32776         AFMINSTALL=afminstall
32777         COMPILED_X_PROGRAM=0
32778
32779     fi
32780
32781     if test "$wxUSE_X11" = 1; then
32782         if test "$wxUSE_NANOX" = "yes"; then
32783             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32784 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32785             if test "x$MICROWIN" = x ; then
32786                 { echo "$as_me:$LINENO: result: not found" >&5
32787 echo "${ECHO_T}not found" >&6; }
32788                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32789 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32790    { (exit 1); exit 1; }; }
32791             else
32792                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32793 echo "${ECHO_T}$MICROWIN" >&6; }
32794                 cat >>confdefs.h <<\_ACEOF
32795 #define wxUSE_NANOX 1
32796 _ACEOF
32797
32798             fi
32799         fi
32800
32801         if test "$wxUSE_UNICODE" = "yes"; then
32802
32803
32804 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32805         if test -n "$ac_tool_prefix"; then
32806   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32807 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32811   echo $ECHO_N "(cached) $ECHO_C" >&6
32812 else
32813   case $PKG_CONFIG in
32814   [\\/]* | ?:[\\/]*)
32815   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32816   ;;
32817   *)
32818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32819 for as_dir in $PATH
32820 do
32821   IFS=$as_save_IFS
32822   test -z "$as_dir" && as_dir=.
32823   for ac_exec_ext in '' $ac_executable_extensions; do
32824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32825     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32827     break 2
32828   fi
32829 done
32830 done
32831 IFS=$as_save_IFS
32832
32833   ;;
32834 esac
32835 fi
32836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32837 if test -n "$PKG_CONFIG"; then
32838   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32839 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32840 else
32841   { echo "$as_me:$LINENO: result: no" >&5
32842 echo "${ECHO_T}no" >&6; }
32843 fi
32844
32845
32846 fi
32847 if test -z "$ac_cv_path_PKG_CONFIG"; then
32848   ac_pt_PKG_CONFIG=$PKG_CONFIG
32849   # Extract the first word of "pkg-config", so it can be a program name with args.
32850 set dummy pkg-config; ac_word=$2
32851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32853 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32854   echo $ECHO_N "(cached) $ECHO_C" >&6
32855 else
32856   case $ac_pt_PKG_CONFIG in
32857   [\\/]* | ?:[\\/]*)
32858   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32859   ;;
32860   *)
32861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32862 for as_dir in $PATH
32863 do
32864   IFS=$as_save_IFS
32865   test -z "$as_dir" && as_dir=.
32866   for ac_exec_ext in '' $ac_executable_extensions; do
32867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32868     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32870     break 2
32871   fi
32872 done
32873 done
32874 IFS=$as_save_IFS
32875
32876   ;;
32877 esac
32878 fi
32879 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32880 if test -n "$ac_pt_PKG_CONFIG"; then
32881   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32882 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32883 else
32884   { echo "$as_me:$LINENO: result: no" >&5
32885 echo "${ECHO_T}no" >&6; }
32886 fi
32887
32888   if test "x$ac_pt_PKG_CONFIG" = x; then
32889     PKG_CONFIG=""
32890   else
32891     case $cross_compiling:$ac_tool_warned in
32892 yes:)
32893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32894 whose name does not start with the host triplet.  If you think this
32895 configuration is useful to you, please write to autoconf@gnu.org." >&5
32896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32897 whose name does not start with the host triplet.  If you think this
32898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32899 ac_tool_warned=yes ;;
32900 esac
32901     PKG_CONFIG=$ac_pt_PKG_CONFIG
32902   fi
32903 else
32904   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32905 fi
32906
32907 fi
32908 if test -n "$PKG_CONFIG"; then
32909         _pkg_min_version=0.9.0
32910         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32911 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32912         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32913                 { echo "$as_me:$LINENO: result: yes" >&5
32914 echo "${ECHO_T}yes" >&6; }
32915         else
32916                 { echo "$as_me:$LINENO: result: no" >&5
32917 echo "${ECHO_T}no" >&6; }
32918                 PKG_CONFIG=""
32919         fi
32920
32921 fi
32922
32923
32924 pkg_failed=no
32925 { echo "$as_me:$LINENO: checking for PANGOX" >&5
32926 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
32927
32928 if test -n "$PKG_CONFIG"; then
32929     if test -n "$PANGOX_CFLAGS"; then
32930         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32931     else
32932         if test -n "$PKG_CONFIG" && \
32933     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32934   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32935   ac_status=$?
32936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937   (exit $ac_status); }; then
32938   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32939 else
32940   pkg_failed=yes
32941 fi
32942     fi
32943 else
32944         pkg_failed=untried
32945 fi
32946 if test -n "$PKG_CONFIG"; then
32947     if test -n "$PANGOX_LIBS"; then
32948         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32949     else
32950         if test -n "$PKG_CONFIG" && \
32951     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32952   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32953   ac_status=$?
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); }; then
32956   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32957 else
32958   pkg_failed=yes
32959 fi
32960     fi
32961 else
32962         pkg_failed=untried
32963 fi
32964
32965
32966
32967 if test $pkg_failed = yes; then
32968
32969 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32970         _pkg_short_errors_supported=yes
32971 else
32972         _pkg_short_errors_supported=no
32973 fi
32974         if test $_pkg_short_errors_supported = yes; then
32975                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32976         else
32977                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
32978         fi
32979         # Put the nasty error message in config.log where it belongs
32980         echo "$PANGOX_PKG_ERRORS" >&5
32981
32982
32983                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32984 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32985    { (exit 1); exit 1; }; }
32986
32987
32988 elif test $pkg_failed = untried; then
32989
32990                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32991 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32992    { (exit 1); exit 1; }; }
32993
32994
32995 else
32996         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
32997         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
32998         { echo "$as_me:$LINENO: result: yes" >&5
32999 echo "${ECHO_T}yes" >&6; }
33000
33001                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33002                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33003                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33004
33005 fi
33006
33007 pkg_failed=no
33008 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33009 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33010
33011 if test -n "$PKG_CONFIG"; then
33012     if test -n "$PANGOFT2_CFLAGS"; then
33013         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33014     else
33015         if test -n "$PKG_CONFIG" && \
33016     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33017   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); }; then
33021   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33022 else
33023   pkg_failed=yes
33024 fi
33025     fi
33026 else
33027         pkg_failed=untried
33028 fi
33029 if test -n "$PKG_CONFIG"; then
33030     if test -n "$PANGOFT2_LIBS"; then
33031         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33032     else
33033         if test -n "$PKG_CONFIG" && \
33034     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33035   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33036   ac_status=$?
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); }; then
33039   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33040 else
33041   pkg_failed=yes
33042 fi
33043     fi
33044 else
33045         pkg_failed=untried
33046 fi
33047
33048
33049
33050 if test $pkg_failed = yes; then
33051
33052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33053         _pkg_short_errors_supported=yes
33054 else
33055         _pkg_short_errors_supported=no
33056 fi
33057         if test $_pkg_short_errors_supported = yes; then
33058                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33059         else
33060                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33061         fi
33062         # Put the nasty error message in config.log where it belongs
33063         echo "$PANGOFT2_PKG_ERRORS" >&5
33064
33065
33066                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33067 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33068                     wxUSE_PRINTING_ARCHITECTURE="no"
33069
33070
33071 elif test $pkg_failed = untried; then
33072
33073                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33074 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33075                     wxUSE_PRINTING_ARCHITECTURE="no"
33076
33077
33078 else
33079         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33080         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33081         { echo "$as_me:$LINENO: result: yes" >&5
33082 echo "${ECHO_T}yes" >&6; }
33083
33084                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33085                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33086                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33087
33088 fi
33089
33090 pkg_failed=no
33091 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33092 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33093
33094 if test -n "$PKG_CONFIG"; then
33095     if test -n "$PANGOXFT_CFLAGS"; then
33096         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33097     else
33098         if test -n "$PKG_CONFIG" && \
33099     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33100   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33101   ac_status=$?
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); }; then
33104   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33105 else
33106   pkg_failed=yes
33107 fi
33108     fi
33109 else
33110         pkg_failed=untried
33111 fi
33112 if test -n "$PKG_CONFIG"; then
33113     if test -n "$PANGOXFT_LIBS"; then
33114         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33115     else
33116         if test -n "$PKG_CONFIG" && \
33117     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33118   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33119   ac_status=$?
33120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); }; then
33122   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33123 else
33124   pkg_failed=yes
33125 fi
33126     fi
33127 else
33128         pkg_failed=untried
33129 fi
33130
33131
33132
33133 if test $pkg_failed = yes; then
33134
33135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33136         _pkg_short_errors_supported=yes
33137 else
33138         _pkg_short_errors_supported=no
33139 fi
33140         if test $_pkg_short_errors_supported = yes; then
33141                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33142         else
33143                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33144         fi
33145         # Put the nasty error message in config.log where it belongs
33146         echo "$PANGOXFT_PKG_ERRORS" >&5
33147
33148
33149                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33150 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33151
33152
33153 elif test $pkg_failed = untried; then
33154
33155                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33156 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33157
33158
33159 else
33160         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33161         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33162         { echo "$as_me:$LINENO: result: yes" >&5
33163 echo "${ECHO_T}yes" >&6; }
33164
33165                     cat >>confdefs.h <<\_ACEOF
33166 #define HAVE_PANGO_XFT 1
33167 _ACEOF
33168
33169                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33170                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33171                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33172
33173 fi
33174             save_LIBS="$LIBS"
33175             LIBS="$LIBS $PANGOX_LIBS"
33176
33177 for ac_func in pango_font_family_is_monospace
33178 do
33179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33183   echo $ECHO_N "(cached) $ECHO_C" >&6
33184 else
33185   cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33193 #define $ac_func innocuous_$ac_func
33194
33195 /* System header to define __stub macros and hopefully few prototypes,
33196     which can conflict with char $ac_func (); below.
33197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33198     <limits.h> exists even on freestanding compilers.  */
33199
33200 #ifdef __STDC__
33201 # include <limits.h>
33202 #else
33203 # include <assert.h>
33204 #endif
33205
33206 #undef $ac_func
33207
33208 /* Override any GCC internal prototype to avoid an error.
33209    Use char because int might match the return type of a GCC
33210    builtin and then its argument prototype would still apply.  */
33211 #ifdef __cplusplus
33212 extern "C"
33213 #endif
33214 char $ac_func ();
33215 /* The GNU C library defines this for functions which it implements
33216     to always fail with ENOSYS.  Some functions are actually named
33217     something starting with __ and the normal name is an alias.  */
33218 #if defined __stub_$ac_func || defined __stub___$ac_func
33219 choke me
33220 #endif
33221
33222 int
33223 main ()
33224 {
33225 return $ac_func ();
33226   ;
33227   return 0;
33228 }
33229 _ACEOF
33230 rm -f conftest.$ac_objext conftest$ac_exeext
33231 if { (ac_try="$ac_link"
33232 case "(($ac_try" in
33233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234   *) ac_try_echo=$ac_try;;
33235 esac
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237   (eval "$ac_link") 2>conftest.er1
33238   ac_status=$?
33239   grep -v '^ *+' conftest.er1 >conftest.err
33240   rm -f conftest.er1
33241   cat conftest.err >&5
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); } && {
33244          test -z "$ac_c_werror_flag" ||
33245          test ! -s conftest.err
33246        } && test -s conftest$ac_exeext &&
33247        $as_test_x conftest$ac_exeext; then
33248   eval "$as_ac_var=yes"
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253         eval "$as_ac_var=no"
33254 fi
33255
33256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33257       conftest$ac_exeext conftest.$ac_ext
33258 fi
33259 ac_res=`eval echo '${'$as_ac_var'}'`
33260                { echo "$as_me:$LINENO: result: $ac_res" >&5
33261 echo "${ECHO_T}$ac_res" >&6; }
33262 if test `eval echo '${'$as_ac_var'}'` = yes; then
33263   cat >>confdefs.h <<_ACEOF
33264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33265 _ACEOF
33266
33267 fi
33268 done
33269
33270             LIBS="$save_LIBS"
33271         fi
33272
33273         wxUSE_UNIVERSAL="yes"
33274
33275         if test "$wxUSE_NANOX" = "yes"; then
33276             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33277             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"
33278             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33279         else
33280             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33281         fi
33282
33283         TOOLKIT=X11
33284         GUIDIST=X11_DIST
33285     fi
33286
33287     if test "$wxUSE_MOTIF" = 1; then
33288         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33289 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33290
33291 ac_find_includes=
33292 for ac_dir in $SEARCH_INCLUDE /usr/include
33293   do
33294     if test -f "$ac_dir/Xm/Xm.h"; then
33295       ac_find_includes=$ac_dir
33296       break
33297     fi
33298   done
33299
33300         if test "$ac_find_includes" != "" ; then
33301             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33302 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33303
33304     if test "x$ac_find_includes" = "x/usr/include"; then
33305     ac_path_to_include=""
33306   else
33307     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33308     result=$?
33309     if test $result = 0; then
33310       ac_path_to_include=""
33311     else
33312       ac_path_to_include=" -I$ac_find_includes"
33313     fi
33314   fi
33315
33316             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33317         else
33318             save_CFLAGS=$CFLAGS
33319             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33320
33321             cat >conftest.$ac_ext <<_ACEOF
33322 /* confdefs.h.  */
33323 _ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h.  */
33327
33328                     #include <Xm/Xm.h>
33329
33330 int
33331 main ()
33332 {
33333
33334                     int version;
33335                     version = xmUseVersion;
33336
33337   ;
33338   return 0;
33339 }
33340 _ACEOF
33341 rm -f conftest.$ac_objext
33342 if { (ac_try="$ac_compile"
33343 case "(($ac_try" in
33344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345   *) ac_try_echo=$ac_try;;
33346 esac
33347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348   (eval "$ac_compile") 2>conftest.er1
33349   ac_status=$?
33350   grep -v '^ *+' conftest.er1 >conftest.err
33351   rm -f conftest.er1
33352   cat conftest.err >&5
33353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354   (exit $ac_status); } && {
33355          test -z "$ac_c_werror_flag" ||
33356          test ! -s conftest.err
33357        } && test -s conftest.$ac_objext; then
33358
33359                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33360 echo "${ECHO_T}found in default search path" >&6; }
33361                     COMPILED_X_PROGRAM=1
33362
33363 else
33364   echo "$as_me: failed program was:" >&5
33365 sed 's/^/| /' conftest.$ac_ext >&5
33366
33367
33368                     { echo "$as_me:$LINENO: result: no" >&5
33369 echo "${ECHO_T}no" >&6; }
33370                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33371 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33372    { (exit 1); exit 1; }; }
33373
33374
33375 fi
33376
33377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33378
33379             CFLAGS=$save_CFLAGS
33380         fi
33381
33382
33383         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33384 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33385
33386   ac_find_libraries=
33387   for ac_dir in $SEARCH_LIB
33388   do
33389     for ac_extension in a so sl dylib dll.a; do
33390       if test -f "$ac_dir/libXm.$ac_extension"; then
33391         ac_find_libraries=$ac_dir
33392         break 2
33393       fi
33394     done
33395   done
33396
33397
33398         if test "x$ac_find_libraries" != "x" ; then
33399             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33400 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33401
33402
33403     if test "$ac_find_libraries" = "default location"; then
33404     ac_path_to_link=""
33405   else
33406     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33407     result=$?
33408     if test $result = 0; then
33409       ac_path_to_link=""
33410     else
33411       ac_path_to_link=" -L$ac_find_libraries"
33412     fi
33413   fi
33414
33415             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33416         else
33417                                                 save_CFLAGS=$CFLAGS
33418             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33419             save_LIBS="$LIBS"
33420             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33421
33422             cat >conftest.$ac_ext <<_ACEOF
33423 /* confdefs.h.  */
33424 _ACEOF
33425 cat confdefs.h >>conftest.$ac_ext
33426 cat >>conftest.$ac_ext <<_ACEOF
33427 /* end confdefs.h.  */
33428
33429                     #include <Xm/Xm.h>
33430
33431 int
33432 main ()
33433 {
33434
33435                     int version;
33436                     version = xmUseVersion;
33437
33438   ;
33439   return 0;
33440 }
33441 _ACEOF
33442 rm -f conftest.$ac_objext conftest$ac_exeext
33443 if { (ac_try="$ac_link"
33444 case "(($ac_try" in
33445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33446   *) ac_try_echo=$ac_try;;
33447 esac
33448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33449   (eval "$ac_link") 2>conftest.er1
33450   ac_status=$?
33451   grep -v '^ *+' conftest.er1 >conftest.err
33452   rm -f conftest.er1
33453   cat conftest.err >&5
33454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455   (exit $ac_status); } && {
33456          test -z "$ac_c_werror_flag" ||
33457          test ! -s conftest.err
33458        } && test -s conftest$ac_exeext &&
33459        $as_test_x conftest$ac_exeext; then
33460
33461                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33462 echo "${ECHO_T}found in default search path" >&6; }
33463                     COMPILED_X_PROGRAM=1
33464
33465 else
33466   echo "$as_me: failed program was:" >&5
33467 sed 's/^/| /' conftest.$ac_ext >&5
33468
33469
33470                     { echo "$as_me:$LINENO: result: no" >&5
33471 echo "${ECHO_T}no" >&6; }
33472                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33473 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33474    { (exit 1); exit 1; }; }
33475
33476
33477 fi
33478
33479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33480       conftest$ac_exeext conftest.$ac_ext
33481
33482             CFLAGS=$save_CFLAGS
33483             LIBS="$save_LIBS"
33484         fi
33485
33486         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33487 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33488         libp_link=""
33489         libsm_ice_link=""
33490         libs_found=0
33491         for libp in "" " -lXp"; do
33492             if test "$libs_found" = 0; then
33493                 for libsm_ice in "" " -lSM -lICE"; do
33494                     if test "$libs_found" = 0; then
33495                         save_LIBS="$LIBS"
33496                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33497                         save_CFLAGS=$CFLAGS
33498                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33499
33500                         cat >conftest.$ac_ext <<_ACEOF
33501 /* confdefs.h.  */
33502 _ACEOF
33503 cat confdefs.h >>conftest.$ac_ext
33504 cat >>conftest.$ac_ext <<_ACEOF
33505 /* end confdefs.h.  */
33506
33507                                 #include <Xm/Xm.h>
33508                                 #include <Xm/List.h>
33509
33510 int
33511 main ()
33512 {
33513
33514                                 XmString string = NULL;
33515                                 Widget w = NULL;
33516                                 int position = 0;
33517                                 XmListAddItem(w, string, position);
33518
33519   ;
33520   return 0;
33521 }
33522 _ACEOF
33523 rm -f conftest.$ac_objext conftest$ac_exeext
33524 if { (ac_try="$ac_link"
33525 case "(($ac_try" in
33526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527   *) ac_try_echo=$ac_try;;
33528 esac
33529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33530   (eval "$ac_link") 2>conftest.er1
33531   ac_status=$?
33532   grep -v '^ *+' conftest.er1 >conftest.err
33533   rm -f conftest.er1
33534   cat conftest.err >&5
33535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536   (exit $ac_status); } && {
33537          test -z "$ac_c_werror_flag" ||
33538          test ! -s conftest.err
33539        } && test -s conftest$ac_exeext &&
33540        $as_test_x conftest$ac_exeext; then
33541
33542                                 libp_link="$libp"
33543                                 libsm_ice_link="$libsm_ice"
33544                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33545 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33546                                 libs_found=1
33547
33548 else
33549   echo "$as_me: failed program was:" >&5
33550 sed 's/^/| /' conftest.$ac_ext >&5
33551
33552
33553
33554 fi
33555
33556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33557       conftest$ac_exeext conftest.$ac_ext
33558
33559                         LIBS="$save_LIBS"
33560                         CFLAGS=$save_CFLAGS
33561                     fi
33562                 done
33563             fi
33564         done
33565
33566         if test "$libs_found" = 0; then
33567             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33568 echo "${ECHO_T}can't find the right libraries" >&6; }
33569             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33570 echo "$as_me: error: can't link a simple motif program" >&2;}
33571    { (exit 1); exit 1; }; }
33572         fi
33573
33574                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33575 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33576 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33577   echo $ECHO_N "(cached) $ECHO_C" >&6
33578 else
33579   ac_check_lib_save_LIBS=$LIBS
33580 LIBS="-lSgm  $LIBS"
33581 cat >conftest.$ac_ext <<_ACEOF
33582 /* confdefs.h.  */
33583 _ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h.  */
33587
33588 /* Override any GCC internal prototype to avoid an error.
33589    Use char because int might match the return type of a GCC
33590    builtin and then its argument prototype would still apply.  */
33591 #ifdef __cplusplus
33592 extern "C"
33593 #endif
33594 char SgCreateList ();
33595 int
33596 main ()
33597 {
33598 return SgCreateList ();
33599   ;
33600   return 0;
33601 }
33602 _ACEOF
33603 rm -f conftest.$ac_objext conftest$ac_exeext
33604 if { (ac_try="$ac_link"
33605 case "(($ac_try" in
33606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607   *) ac_try_echo=$ac_try;;
33608 esac
33609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610   (eval "$ac_link") 2>conftest.er1
33611   ac_status=$?
33612   grep -v '^ *+' conftest.er1 >conftest.err
33613   rm -f conftest.er1
33614   cat conftest.err >&5
33615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616   (exit $ac_status); } && {
33617          test -z "$ac_c_werror_flag" ||
33618          test ! -s conftest.err
33619        } && test -s conftest$ac_exeext &&
33620        $as_test_x conftest$ac_exeext; then
33621   ac_cv_lib_Sgm_SgCreateList=yes
33622 else
33623   echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33625
33626         ac_cv_lib_Sgm_SgCreateList=no
33627 fi
33628
33629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33630       conftest$ac_exeext conftest.$ac_ext
33631 LIBS=$ac_check_lib_save_LIBS
33632 fi
33633 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33634 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33635 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33636   libsgm_link=" -lSgm"
33637 fi
33638
33639
33640         save_CFLAGS=$CFLAGS
33641         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33642
33643         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33644 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33645 if test "${wx_cv_lib_motif2+set}" = set; then
33646   echo $ECHO_N "(cached) $ECHO_C" >&6
33647 else
33648   cat >conftest.$ac_ext <<_ACEOF
33649 /* confdefs.h.  */
33650 _ACEOF
33651 cat confdefs.h >>conftest.$ac_ext
33652 cat >>conftest.$ac_ext <<_ACEOF
33653 /* end confdefs.h.  */
33654
33655                             #include <Xm/Xm.h>
33656
33657 int
33658 main ()
33659 {
33660
33661                             #if XmVersion < 2000
33662                             Not Motif 2
33663                             #endif
33664
33665   ;
33666   return 0;
33667 }
33668 _ACEOF
33669 rm -f conftest.$ac_objext
33670 if { (ac_try="$ac_compile"
33671 case "(($ac_try" in
33672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673   *) ac_try_echo=$ac_try;;
33674 esac
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676   (eval "$ac_compile") 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } && {
33683          test -z "$ac_c_werror_flag" ||
33684          test ! -s conftest.err
33685        } && test -s conftest.$ac_objext; then
33686   wx_cv_lib_motif2="yes"
33687 else
33688   echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33690
33691         wx_cv_lib_motif2="no"
33692 fi
33693
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695 fi
33696 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33697 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33698         if test "$wx_cv_lib_motif2" = "yes"; then
33699             cat >>confdefs.h <<\_ACEOF
33700 #define __WXMOTIF20__ 1
33701 _ACEOF
33702
33703         else
33704             cat >>confdefs.h <<\_ACEOF
33705 #define __WXMOTIF20__ 0
33706 _ACEOF
33707
33708         fi
33709
33710         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33711 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33712 if test "${wx_cv_lib_lesstif+set}" = set; then
33713   echo $ECHO_N "(cached) $ECHO_C" >&6
33714 else
33715   cat >conftest.$ac_ext <<_ACEOF
33716 /* confdefs.h.  */
33717 _ACEOF
33718 cat confdefs.h >>conftest.$ac_ext
33719 cat >>conftest.$ac_ext <<_ACEOF
33720 /* end confdefs.h.  */
33721
33722                             #include <Xm/Xm.h>
33723
33724 int
33725 main ()
33726 {
33727
33728                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33729                             Not Lesstif
33730                             #endif
33731
33732   ;
33733   return 0;
33734 }
33735 _ACEOF
33736 rm -f conftest.$ac_objext
33737 if { (ac_try="$ac_compile"
33738 case "(($ac_try" in
33739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740   *) ac_try_echo=$ac_try;;
33741 esac
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743   (eval "$ac_compile") 2>conftest.er1
33744   ac_status=$?
33745   grep -v '^ *+' conftest.er1 >conftest.err
33746   rm -f conftest.er1
33747   cat conftest.err >&5
33748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749   (exit $ac_status); } && {
33750          test -z "$ac_c_werror_flag" ||
33751          test ! -s conftest.err
33752        } && test -s conftest.$ac_objext; then
33753   wx_cv_lib_lesstif="yes"
33754 else
33755   echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33757
33758         wx_cv_lib_lesstif="no"
33759 fi
33760
33761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33762
33763 fi
33764 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33765 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33766         if test "$wx_cv_lib_lesstif" = "yes"; then
33767             cat >>confdefs.h <<\_ACEOF
33768 #define __WXLESSTIF__ 1
33769 _ACEOF
33770
33771         else
33772             cat >>confdefs.h <<\_ACEOF
33773 #define __WXLESSTIF__ 0
33774 _ACEOF
33775
33776         fi
33777
33778         CFLAGS=$save_CFLAGS
33779
33780         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33781         TOOLKIT=MOTIF
33782         GUIDIST=MOTIF_DIST
33783     fi
33784
33785         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33786                 if test "$wxUSE_LIBXPM" = "sys"; then
33787             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33788 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33789
33790   ac_find_libraries=
33791   for ac_dir in $SEARCH_LIB
33792   do
33793     for ac_extension in a so sl dylib dll.a; do
33794       if test -f "$ac_dir/libXpm.$ac_extension"; then
33795         ac_find_libraries=$ac_dir
33796         break 2
33797       fi
33798     done
33799   done
33800
33801             if test "$ac_find_libraries" != "" ; then
33802
33803     if test "$ac_find_libraries" = "default location"; then
33804     ac_path_to_link=""
33805   else
33806     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33807     result=$?
33808     if test $result = 0; then
33809       ac_path_to_link=""
33810     else
33811       ac_path_to_link=" -L$ac_find_libraries"
33812     fi
33813   fi
33814
33815                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33816                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33817 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33818
33819                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33820 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33821 if test "${wx_cv_x11_xpm_h+set}" = set; then
33822   echo $ECHO_N "(cached) $ECHO_C" >&6
33823 else
33824
33825                         save_CFLAGS=$CFLAGS
33826                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33827
33828                         cat >conftest.$ac_ext <<_ACEOF
33829 /* confdefs.h.  */
33830 _ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h.  */
33834
33835                                 #include <X11/xpm.h>
33836
33837 int
33838 main ()
33839 {
33840
33841                                 int version;
33842                                 version = XpmLibraryVersion();
33843
33844   ;
33845   return 0;
33846 }
33847 _ACEOF
33848 rm -f conftest.$ac_objext
33849 if { (ac_try="$ac_compile"
33850 case "(($ac_try" in
33851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33852   *) ac_try_echo=$ac_try;;
33853 esac
33854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33855   (eval "$ac_compile") 2>conftest.er1
33856   ac_status=$?
33857   grep -v '^ *+' conftest.er1 >conftest.err
33858   rm -f conftest.er1
33859   cat conftest.err >&5
33860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861   (exit $ac_status); } && {
33862          test -z "$ac_c_werror_flag" ||
33863          test ! -s conftest.err
33864        } && test -s conftest.$ac_objext; then
33865   wx_cv_x11_xpm_h=yes
33866 else
33867   echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33869
33870         wx_cv_x11_xpm_h=no
33871
33872 fi
33873
33874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33875
33876                         CFLAGS=$save_CFLAGS
33877
33878
33879 fi
33880 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33881 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
33882
33883                 if test $wx_cv_x11_xpm_h = "yes"; then
33884                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33885                     cat >>confdefs.h <<\_ACEOF
33886 #define wxHAVE_LIB_XPM 1
33887 _ACEOF
33888
33889                 else
33890                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33891 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33892                 fi
33893             fi
33894
33895         fi
33896
33897                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33898 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
33899 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
33900   echo $ECHO_N "(cached) $ECHO_C" >&6
33901 else
33902   ac_check_lib_save_LIBS=$LIBS
33903 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33904 cat >conftest.$ac_ext <<_ACEOF
33905 /* confdefs.h.  */
33906 _ACEOF
33907 cat confdefs.h >>conftest.$ac_ext
33908 cat >>conftest.$ac_ext <<_ACEOF
33909 /* end confdefs.h.  */
33910
33911 /* Override any GCC internal prototype to avoid an error.
33912    Use char because int might match the return type of a GCC
33913    builtin and then its argument prototype would still apply.  */
33914 #ifdef __cplusplus
33915 extern "C"
33916 #endif
33917 char XShapeQueryExtension ();
33918 int
33919 main ()
33920 {
33921 return XShapeQueryExtension ();
33922   ;
33923   return 0;
33924 }
33925 _ACEOF
33926 rm -f conftest.$ac_objext conftest$ac_exeext
33927 if { (ac_try="$ac_link"
33928 case "(($ac_try" in
33929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930   *) ac_try_echo=$ac_try;;
33931 esac
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933   (eval "$ac_link") 2>conftest.er1
33934   ac_status=$?
33935   grep -v '^ *+' conftest.er1 >conftest.err
33936   rm -f conftest.er1
33937   cat conftest.err >&5
33938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939   (exit $ac_status); } && {
33940          test -z "$ac_c_werror_flag" ||
33941          test ! -s conftest.err
33942        } && test -s conftest$ac_exeext &&
33943        $as_test_x conftest$ac_exeext; then
33944   ac_cv_lib_Xext_XShapeQueryExtension=yes
33945 else
33946   echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33948
33949         ac_cv_lib_Xext_XShapeQueryExtension=no
33950 fi
33951
33952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33953       conftest$ac_exeext conftest.$ac_ext
33954 LIBS=$ac_check_lib_save_LIBS
33955 fi
33956 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33957 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
33958 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
33959
33960                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33961                       wxHAVE_XEXT_LIB=1
33962
33963 fi
33964
33965
33966         if test "$wxHAVE_XEXT_LIB" = 1; then
33967             save_CFLAGS="$CFLAGS"
33968             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33969
33970             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33971 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
33972             cat >conftest.$ac_ext <<_ACEOF
33973 /* confdefs.h.  */
33974 _ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h.  */
33978
33979                             #include <X11/Xlib.h>
33980                             #include <X11/extensions/shape.h>
33981
33982 int
33983 main ()
33984 {
33985
33986                             int dummy1, dummy2;
33987                             XShapeQueryExtension((Display*)NULL,
33988                                                  (int*)NULL, (int*)NULL);
33989
33990   ;
33991   return 0;
33992 }
33993 _ACEOF
33994 rm -f conftest.$ac_objext
33995 if { (ac_try="$ac_compile"
33996 case "(($ac_try" in
33997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33998   *) ac_try_echo=$ac_try;;
33999 esac
34000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34001   (eval "$ac_compile") 2>conftest.er1
34002   ac_status=$?
34003   grep -v '^ *+' conftest.er1 >conftest.err
34004   rm -f conftest.er1
34005   cat conftest.err >&5
34006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007   (exit $ac_status); } && {
34008          test -z "$ac_c_werror_flag" ||
34009          test ! -s conftest.err
34010        } && test -s conftest.$ac_objext; then
34011
34012                             cat >>confdefs.h <<\_ACEOF
34013 #define HAVE_XSHAPE 1
34014 _ACEOF
34015
34016                             { echo "$as_me:$LINENO: result: found" >&5
34017 echo "${ECHO_T}found" >&6; }
34018
34019 else
34020   echo "$as_me: failed program was:" >&5
34021 sed 's/^/| /' conftest.$ac_ext >&5
34022
34023
34024                             { echo "$as_me:$LINENO: result: not found" >&5
34025 echo "${ECHO_T}not found" >&6; }
34026
34027 fi
34028
34029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34030             CFLAGS="$save_CFLAGS"
34031
34032         fi
34033     fi
34034
34035     if test "$wxUSE_OSX_CARBON" = 1; then
34036         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34037 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34038         if test "$GCC" = yes; then
34039             { echo "$as_me:$LINENO: result: gcc" >&5
34040 echo "${ECHO_T}gcc" >&6; }
34041             CPPFLAGS_PASCAL="-fpascal-strings"
34042         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34043             { echo "$as_me:$LINENO: result: xlc" >&5
34044 echo "${ECHO_T}xlc" >&6; }
34045             CPPFLAGS_PASCAL="-qmacpstr"
34046         else
34047             { echo "$as_me:$LINENO: result: none" >&5
34048 echo "${ECHO_T}none" >&6; }
34049         fi
34050
34051         if test "x$wxUSE_UNIX" = "xyes"; then
34052             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34053         else
34054                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34055         fi
34056
34057         TOOLKIT=OSX_CARBON
34058                 GUIDIST=OSX_CARBON_DIST
34059                         WXBASEPORT="_carbon"
34060
34061                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34062     fi
34063
34064     if test "$wxUSE_OSX_COCOA" = 1; then
34065         TOOLKIT=OSX_COCOA
34066         GUIDIST=OSX_COCOA_DIST
34067
34068                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34069     fi
34070
34071     if test "$wxUSE_OSX_IPHONE" = 1; then
34072         TOOLKIT=OSX_IPHONE
34073     fi
34074
34075     if test "$wxUSE_OLD_COCOA" = 1; then
34076         TOOLKIT=COCOA
34077         GUIDIST=COCOA_DIST
34078     fi
34079
34080     if test "$wxUSE_PM" = 1; then
34081         TOOLKIT=PM
34082         GUIDIST=PM_DIST
34083         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34084 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34085 if test "${wx_cv_spbcdata+set}" = set; then
34086   echo $ECHO_N "(cached) $ECHO_C" >&6
34087 else
34088
34089                 cat >conftest.$ac_ext <<_ACEOF
34090 /* confdefs.h.  */
34091 _ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h.  */
34095
34096                         #define INCL_PM
34097                         #include <os2.h>
34098
34099 int
34100 main ()
34101 {
34102
34103                         SPBCDATA test;
34104
34105   ;
34106   return 0;
34107 }
34108 _ACEOF
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113   *) ac_try_echo=$ac_try;;
34114 esac
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116   (eval "$ac_compile") 2>conftest.er1
34117   ac_status=$?
34118   grep -v '^ *+' conftest.er1 >conftest.err
34119   rm -f conftest.er1
34120   cat conftest.err >&5
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); } && {
34123          test -z "$ac_c_werror_flag" ||
34124          test ! -s conftest.err
34125        } && test -s conftest.$ac_objext; then
34126   wx_cv_spbcdata=yes
34127 else
34128   echo "$as_me: failed program was:" >&5
34129 sed 's/^/| /' conftest.$ac_ext >&5
34130
34131         wx_cv_spbcdata=no
34132
34133 fi
34134
34135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34136
34137
34138 fi
34139 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34140 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34141
34142         if test $wx_cv_spbcdata = "yes"; then
34143             cat >>confdefs.h <<\_ACEOF
34144 #define HAVE_SPBCDATA 1
34145 _ACEOF
34146
34147         fi
34148     fi
34149
34150         if test "$TOOLKIT" = "PM" ; then
34151         TOOLKIT_DIR="os2"
34152     else
34153         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34154     fi
34155
34156     if test "$wxUSE_UNIVERSAL" = "yes"; then
34157         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34158         WIDGET_SET=univ
34159     fi
34160
34161         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34162     DISTDIR="wx\$(TOOLKIT)"
34163 else
34164     USE_GUI=0
34165
34166             TOOLKIT_DIR="base"
34167
34168         if test "$USE_WIN32" = 1 ; then
34169                         TOOLKIT="MSW"
34170     fi
34171
34172         GUIDIST="BASE_DIST"
34173     DISTDIR="wxBase"
34174 fi
34175
34176
34177
34178 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34179     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34180         wxUSE_UNICODE_UTF8=yes
34181     elif test "$USE_OS2" = 1 ; then
34182                                 wxUSE_UNICODE_UTF8=yes
34183     else
34184         wxUSE_UNICODE_UTF8=no
34185     fi
34186 fi
34187
34188
34189 if test "$wxUSE_GUI" = "yes"; then
34190     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34191
34192 for ac_header in X11/Xlib.h
34193 do
34194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34198   echo $ECHO_N "(cached) $ECHO_C" >&6
34199 else
34200   cat >conftest.$ac_ext <<_ACEOF
34201 /* confdefs.h.  */
34202 _ACEOF
34203 cat confdefs.h >>conftest.$ac_ext
34204 cat >>conftest.$ac_ext <<_ACEOF
34205 /* end confdefs.h.  */
34206
34207
34208 #include <$ac_header>
34209 _ACEOF
34210 rm -f conftest.$ac_objext
34211 if { (ac_try="$ac_compile"
34212 case "(($ac_try" in
34213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34214   *) ac_try_echo=$ac_try;;
34215 esac
34216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34217   (eval "$ac_compile") 2>conftest.er1
34218   ac_status=$?
34219   grep -v '^ *+' conftest.er1 >conftest.err
34220   rm -f conftest.er1
34221   cat conftest.err >&5
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); } && {
34224          test -z "$ac_c_werror_flag" ||
34225          test ! -s conftest.err
34226        } && test -s conftest.$ac_objext; then
34227   eval "$as_ac_Header=yes"
34228 else
34229   echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34231
34232         eval "$as_ac_Header=no"
34233 fi
34234
34235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34236 fi
34237 ac_res=`eval echo '${'$as_ac_Header'}'`
34238                { echo "$as_me:$LINENO: result: $ac_res" >&5
34239 echo "${ECHO_T}$ac_res" >&6; }
34240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34241   cat >>confdefs.h <<_ACEOF
34242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34243 _ACEOF
34244
34245 fi
34246
34247 done
34248
34249
34250 for ac_header in X11/XKBlib.h
34251 do
34252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34256   echo $ECHO_N "(cached) $ECHO_C" >&6
34257 else
34258   cat >conftest.$ac_ext <<_ACEOF
34259 /* confdefs.h.  */
34260 _ACEOF
34261 cat confdefs.h >>conftest.$ac_ext
34262 cat >>conftest.$ac_ext <<_ACEOF
34263 /* end confdefs.h.  */
34264
34265                           #if HAVE_X11_XLIB_H
34266                             #include <X11/Xlib.h>
34267                           #endif
34268
34269
34270 #include <$ac_header>
34271 _ACEOF
34272 rm -f conftest.$ac_objext
34273 if { (ac_try="$ac_compile"
34274 case "(($ac_try" in
34275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276   *) ac_try_echo=$ac_try;;
34277 esac
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279   (eval "$ac_compile") 2>conftest.er1
34280   ac_status=$?
34281   grep -v '^ *+' conftest.er1 >conftest.err
34282   rm -f conftest.er1
34283   cat conftest.err >&5
34284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285   (exit $ac_status); } && {
34286          test -z "$ac_c_werror_flag" ||
34287          test ! -s conftest.err
34288        } && test -s conftest.$ac_objext; then
34289   eval "$as_ac_Header=yes"
34290 else
34291   echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34293
34294         eval "$as_ac_Header=no"
34295 fi
34296
34297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298 fi
34299 ac_res=`eval echo '${'$as_ac_Header'}'`
34300                { echo "$as_me:$LINENO: result: $ac_res" >&5
34301 echo "${ECHO_T}$ac_res" >&6; }
34302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34303   cat >>confdefs.h <<_ACEOF
34304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34305 _ACEOF
34306
34307 fi
34308
34309 done
34310
34311     fi
34312 fi
34313
34314
34315
34316 USE_XINERAMA=0
34317 if test "$wxUSE_DISPLAY" = "yes"; then
34318         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34319         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34320 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34321
34322   ac_find_libraries=
34323   for ac_dir in $SEARCH_LIB
34324   do
34325     for ac_extension in a so sl dylib dll.a; do
34326       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34327         ac_find_libraries=$ac_dir
34328         break 2
34329       fi
34330     done
34331   done
34332
34333         if test "$ac_find_libraries" != "" ; then
34334
34335     if test "$ac_find_libraries" = "default location"; then
34336     ac_path_to_link=""
34337   else
34338     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34339     result=$?
34340     if test $result = 0; then
34341       ac_path_to_link=""
34342     else
34343       ac_path_to_link=" -L$ac_find_libraries"
34344     fi
34345   fi
34346
34347             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34348                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34349             fi
34350             USE_XINERAMA=1
34351             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34352             { echo "$as_me:$LINENO: result: yes" >&5
34353 echo "${ECHO_T}yes" >&6; }
34354         else
34355             { echo "$as_me:$LINENO: result: no" >&5
34356 echo "${ECHO_T}no" >&6; }
34357             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34358 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34359             wxUSE_DISPLAY="no"
34360         fi
34361     elif test "$wxUSE_MSW" = 1; then
34362                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34363 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34364 if test "${ac_cv_header_ddraw_h+set}" = set; then
34365   echo $ECHO_N "(cached) $ECHO_C" >&6
34366 else
34367   cat >conftest.$ac_ext <<_ACEOF
34368 /* confdefs.h.  */
34369 _ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h.  */
34373 #include <windows.h>
34374
34375 #include <ddraw.h>
34376 _ACEOF
34377 rm -f conftest.$ac_objext
34378 if { (ac_try="$ac_compile"
34379 case "(($ac_try" in
34380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34381   *) ac_try_echo=$ac_try;;
34382 esac
34383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34384   (eval "$ac_compile") 2>conftest.er1
34385   ac_status=$?
34386   grep -v '^ *+' conftest.er1 >conftest.err
34387   rm -f conftest.er1
34388   cat conftest.err >&5
34389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390   (exit $ac_status); } && {
34391          test -z "$ac_c_werror_flag" ||
34392          test ! -s conftest.err
34393        } && test -s conftest.$ac_objext; then
34394   ac_cv_header_ddraw_h=yes
34395 else
34396   echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34398
34399         ac_cv_header_ddraw_h=no
34400 fi
34401
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 fi
34404 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34405 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34406
34407
34408     fi
34409 fi
34410
34411 if test "$wxUSE_DISPLAY" = "yes"; then
34412         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34413         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34414 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34415
34416   ac_find_libraries=
34417   for ac_dir in $SEARCH_LIB
34418   do
34419     for ac_extension in a so sl dylib dll.a; do
34420       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34421         ac_find_libraries=$ac_dir
34422         break 2
34423       fi
34424     done
34425   done
34426
34427         if test "$ac_find_libraries" != "" ; then
34428             { echo "$as_me:$LINENO: result: yes" >&5
34429 echo "${ECHO_T}yes" >&6; }
34430
34431 for ac_header in X11/extensions/xf86vmode.h
34432 do
34433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34437   echo $ECHO_N "(cached) $ECHO_C" >&6
34438 else
34439   cat >conftest.$ac_ext <<_ACEOF
34440 /* confdefs.h.  */
34441 _ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h.  */
34445
34446                                   #if HAVE_X11_XLIB_H
34447                                     #include <X11/Xlib.h>
34448                                   #endif
34449
34450
34451 #include <$ac_header>
34452 _ACEOF
34453 rm -f conftest.$ac_objext
34454 if { (ac_try="$ac_compile"
34455 case "(($ac_try" in
34456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34457   *) ac_try_echo=$ac_try;;
34458 esac
34459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34460   (eval "$ac_compile") 2>conftest.er1
34461   ac_status=$?
34462   grep -v '^ *+' conftest.er1 >conftest.err
34463   rm -f conftest.er1
34464   cat conftest.err >&5
34465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466   (exit $ac_status); } && {
34467          test -z "$ac_c_werror_flag" ||
34468          test ! -s conftest.err
34469        } && test -s conftest.$ac_objext; then
34470   eval "$as_ac_Header=yes"
34471 else
34472   echo "$as_me: failed program was:" >&5
34473 sed 's/^/| /' conftest.$ac_ext >&5
34474
34475         eval "$as_ac_Header=no"
34476 fi
34477
34478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34479 fi
34480 ac_res=`eval echo '${'$as_ac_Header'}'`
34481                { echo "$as_me:$LINENO: result: $ac_res" >&5
34482 echo "${ECHO_T}$ac_res" >&6; }
34483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34484   cat >>confdefs.h <<_ACEOF
34485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34486 _ACEOF
34487
34488                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34489
34490 fi
34491
34492 done
34493
34494         else
34495             { echo "$as_me:$LINENO: result: no" >&5
34496 echo "${ECHO_T}no" >&6; }
34497         fi
34498     fi
34499 fi
34500
34501 if test "$wxUSE_DETECT_SM" = "yes"; then
34502     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34503         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34504 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34505
34506   ac_find_libraries=
34507   for ac_dir in $SEARCH_LIB
34508   do
34509     for ac_extension in a so sl dylib dll.a; do
34510       if test -f "$ac_dir/libSM.$ac_extension"; then
34511         ac_find_libraries=$ac_dir
34512         break 2
34513       fi
34514     done
34515   done
34516
34517         if test "$ac_find_libraries" != "" ; then
34518
34519     if test "$ac_find_libraries" = "default location"; then
34520     ac_path_to_link=""
34521   else
34522     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34523     result=$?
34524     if test $result = 0; then
34525       ac_path_to_link=""
34526     else
34527       ac_path_to_link=" -L$ac_find_libraries"
34528     fi
34529   fi
34530
34531             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34532                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34533             fi
34534             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34535             { echo "$as_me:$LINENO: result: yes" >&5
34536 echo "${ECHO_T}yes" >&6; }
34537         else
34538             { echo "$as_me:$LINENO: result: no" >&5
34539 echo "${ECHO_T}no" >&6; }
34540             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34541 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34542             wxUSE_DETECT_SM="no"
34543         fi
34544     else
34545         wxUSE_DETECT_SM="no"
34546     fi
34547 fi
34548
34549
34550
34551 USE_OPENGL=0
34552 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34553
34554
34555     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34556         OPENGL_LIBS="-framework OpenGL -framework AGL"
34557     elif test "$wxUSE_MSW" = 1; then
34558         OPENGL_LIBS="-lopengl32 -lglu32"
34559     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34560
34561                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34562 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34563
34564 ac_find_includes=
34565 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34566   do
34567     if test -f "$ac_dir/GL/gl.h"; then
34568       ac_find_includes=$ac_dir
34569       break
34570     fi
34571   done
34572
34573         if test "$ac_find_includes" != "" ; then
34574             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34575 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34576
34577     if test "x$ac_find_includes" = "x/usr/include"; then
34578     ac_path_to_include=""
34579   else
34580     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34581     result=$?
34582     if test $result = 0; then
34583       ac_path_to_include=""
34584     else
34585       ac_path_to_include=" -I$ac_find_includes"
34586     fi
34587   fi
34588
34589             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34590         else
34591             { echo "$as_me:$LINENO: result: not found" >&5
34592 echo "${ECHO_T}not found" >&6; }
34593         fi
34594
34595         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34596 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34597 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34598   echo $ECHO_N "(cached) $ECHO_C" >&6
34599 else
34600   cat >conftest.$ac_ext <<_ACEOF
34601 /* confdefs.h.  */
34602 _ACEOF
34603 cat confdefs.h >>conftest.$ac_ext
34604 cat >>conftest.$ac_ext <<_ACEOF
34605 /* end confdefs.h.  */
34606
34607
34608 #include <GL/gl.h>
34609 _ACEOF
34610 rm -f conftest.$ac_objext
34611 if { (ac_try="$ac_compile"
34612 case "(($ac_try" in
34613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34614   *) ac_try_echo=$ac_try;;
34615 esac
34616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34617   (eval "$ac_compile") 2>conftest.er1
34618   ac_status=$?
34619   grep -v '^ *+' conftest.er1 >conftest.err
34620   rm -f conftest.er1
34621   cat conftest.err >&5
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); } && {
34624          test -z "$ac_c_werror_flag" ||
34625          test ! -s conftest.err
34626        } && test -s conftest.$ac_objext; then
34627   ac_cv_header_GL_gl_h=yes
34628 else
34629   echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34631
34632         ac_cv_header_GL_gl_h=no
34633 fi
34634
34635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34636 fi
34637 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34638 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34639 if test $ac_cv_header_GL_gl_h = yes; then
34640
34641             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34642 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34643 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34644   echo $ECHO_N "(cached) $ECHO_C" >&6
34645 else
34646   cat >conftest.$ac_ext <<_ACEOF
34647 /* confdefs.h.  */
34648 _ACEOF
34649 cat confdefs.h >>conftest.$ac_ext
34650 cat >>conftest.$ac_ext <<_ACEOF
34651 /* end confdefs.h.  */
34652
34653
34654 #include <GL/glu.h>
34655 _ACEOF
34656 rm -f conftest.$ac_objext
34657 if { (ac_try="$ac_compile"
34658 case "(($ac_try" in
34659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660   *) ac_try_echo=$ac_try;;
34661 esac
34662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34663   (eval "$ac_compile") 2>conftest.er1
34664   ac_status=$?
34665   grep -v '^ *+' conftest.er1 >conftest.err
34666   rm -f conftest.er1
34667   cat conftest.err >&5
34668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669   (exit $ac_status); } && {
34670          test -z "$ac_c_werror_flag" ||
34671          test ! -s conftest.err
34672        } && test -s conftest.$ac_objext; then
34673   ac_cv_header_GL_glu_h=yes
34674 else
34675   echo "$as_me: failed program was:" >&5
34676 sed 's/^/| /' conftest.$ac_ext >&5
34677
34678         ac_cv_header_GL_glu_h=no
34679 fi
34680
34681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34682 fi
34683 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34684 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34685 if test $ac_cv_header_GL_glu_h = yes; then
34686
34687                 found_gl=0
34688
34689                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34690 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34691
34692   ac_find_libraries=
34693   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34694   do
34695     for ac_extension in a so sl dylib dll.a; do
34696       if test -f "$ac_dir/libGL.$ac_extension"; then
34697         ac_find_libraries=$ac_dir
34698         break 2
34699       fi
34700     done
34701   done
34702
34703                 if test "$ac_find_libraries" != "" ; then
34704                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34705 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34706
34707
34708     if test "$ac_find_libraries" = "default location"; then
34709     ac_path_to_link=""
34710   else
34711     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34712     result=$?
34713     if test $result = 0; then
34714       ac_path_to_link=""
34715     else
34716       ac_path_to_link=" -L$ac_find_libraries"
34717     fi
34718   fi
34719
34720                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34721                         LDFLAGS_GL="$ac_path_to_link"
34722                     fi
34723
34724                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
34725 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
34726
34727   ac_find_libraries=
34728   for ac_dir in $SEARCH_LIB
34729   do
34730     for ac_extension in a so sl dylib dll.a; do
34731       if test -f "$ac_dir/libGLU.$ac_extension"; then
34732         ac_find_libraries=$ac_dir
34733         break 2
34734       fi
34735     done
34736   done
34737
34738                     if test "$ac_find_libraries" != "" ; then
34739
34740     if test "$ac_find_libraries" = "default location"; then
34741     ac_path_to_link=""
34742   else
34743     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34744     result=$?
34745     if test $result = 0; then
34746       ac_path_to_link=""
34747     else
34748       ac_path_to_link=" -L$ac_find_libraries"
34749     fi
34750   fi
34751
34752                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34753                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34754                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34755                         fi
34756
34757                         found_gl=1
34758                         OPENGL_LIBS="-lGL -lGLU"
34759                         { echo "$as_me:$LINENO: result: yes" >&5
34760 echo "${ECHO_T}yes" >&6; }
34761                     else
34762                         { echo "$as_me:$LINENO: result: no" >&5
34763 echo "${ECHO_T}no" >&6; }
34764                     fi
34765                 else
34766                     { echo "$as_me:$LINENO: result: no" >&5
34767 echo "${ECHO_T}no" >&6; }
34768                 fi
34769
34770                 if test "$found_gl" != 1; then
34771                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34772 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
34773
34774   ac_find_libraries=
34775   for ac_dir in $SEARCH_LIB
34776   do
34777     for ac_extension in a so sl dylib dll.a; do
34778       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34779         ac_find_libraries=$ac_dir
34780         break 2
34781       fi
34782     done
34783   done
34784
34785                     if test "$ac_find_libraries" != "" ; then
34786
34787     if test "$ac_find_libraries" = "default location"; then
34788     ac_path_to_link=""
34789   else
34790     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34791     result=$?
34792     if test $result = 0; then
34793       ac_path_to_link=""
34794     else
34795       ac_path_to_link=" -L$ac_find_libraries"
34796     fi
34797   fi
34798
34799                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34800                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34801                         { echo "$as_me:$LINENO: result: yes" >&5
34802 echo "${ECHO_T}yes" >&6; }
34803                     else
34804                         { echo "$as_me:$LINENO: result: no" >&5
34805 echo "${ECHO_T}no" >&6; }
34806                     fi
34807                 fi
34808
34809 fi
34810
34811
34812
34813 fi
34814
34815
34816
34817         if test "x$OPENGL_LIBS" = "x"; then
34818             if test "$wxUSE_OPENGL" = "yes"; then
34819                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34820 echo "$as_me: error: OpenGL libraries not available" >&2;}
34821    { (exit 1); exit 1; }; }
34822             else
34823                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34824 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34825                 wxUSE_OPENGL=no
34826                 USE_OPENGL=0
34827             fi
34828         fi
34829     else
34830         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34831 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34832         wxUSE_OPENGL="no"
34833     fi
34834
34835     if test "$wxUSE_OPENGL" = "auto"; then
34836                                 wxUSE_OPENGL=yes
34837     fi
34838
34839     if test "$wxUSE_OPENGL" = "yes"; then
34840         USE_OPENGL=1
34841         cat >>confdefs.h <<\_ACEOF
34842 #define wxUSE_OPENGL 1
34843 _ACEOF
34844
34845         cat >>confdefs.h <<\_ACEOF
34846 #define wxUSE_GLCANVAS 1
34847 _ACEOF
34848
34849         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34850     fi
34851 fi
34852
34853
34854 if test -n "$TOOLKIT" ; then
34855     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34856 fi
34857
34858
34859
34860 if test "$wxUSE_SHARED" = "yes"; then
34861     case "${host}" in
34862       *-pc-msdosdjgpp )
34863                 wxUSE_SHARED=no
34864         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34865 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34866       ;;
34867     esac
34868 fi
34869
34870 if test "$wxUSE_SHARED" = "yes"; then
34871
34872
34873     case "${host}" in
34874         *-*-cygwin* | *-*-mingw* )
34875                                                                                                 wx_cv_version_script=no
34876             ;;
34877
34878         *)
34879             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34880 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
34881 if test "${wx_cv_version_script+set}" = set; then
34882   echo $ECHO_N "(cached) $ECHO_C" >&6
34883 else
34884
34885                 echo "VER_1 { *; };" >conftest.sym
34886                 echo "int main() { return 0; }" >conftest.cpp
34887
34888                 if { ac_try='
34889                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34890                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; } ; then
34896                   if test -s conftest.stderr ; then
34897                       wx_cv_version_script=no
34898                   else
34899                       wx_cv_version_script=yes
34900                   fi
34901                 else
34902                   wx_cv_version_script=no
34903                 fi
34904
34905                                                                                                                                                                                                 if test $wx_cv_version_script = yes
34906                 then
34907                   echo "struct B { virtual ~B() { } }; \
34908                         struct D : public B { }; \
34909                         void F() { D d; }" > conftest.cpp
34910
34911                   if { ac_try='
34912                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34913                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
34914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34915   (eval $ac_try) 2>&5
34916   ac_status=$?
34917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918   (exit $ac_status); }; } &&
34919                      { ac_try='
34920                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34921                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923   (eval $ac_try) 2>&5
34924   ac_status=$?
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); }; }
34927                   then
34928                     if { ac_try='
34929                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34930                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932   (eval $ac_try) 2>&5
34933   ac_status=$?
34934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935   (exit $ac_status); }; }
34936                     then
34937                       wx_cv_version_script=yes
34938                     else
34939                       wx_cv_version_script=no
34940                     fi
34941                   fi
34942                 fi
34943
34944                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34945                 rm -f conftest1.output conftest2.output conftest3.output
34946
34947 fi
34948 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34949 echo "${ECHO_T}$wx_cv_version_script" >&6; }
34950
34951             if test $wx_cv_version_script = yes ; then
34952                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34953             fi
34954             ;;
34955     esac
34956
34957
34958             if test "$wxUSE_VISIBILITY" != "no"; then
34959
34960
34961   if test -n "$GCC"; then
34962     CFLAGS_VISIBILITY="-fvisibility=hidden"
34963     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
34964     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34965 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
34966     if test "${wx_cv_cc_visibility+set}" = set; then
34967   echo $ECHO_N "(cached) $ECHO_C" >&6
34968 else
34969
34970       wx_save_CXXFLAGS="$CXXFLAGS"
34971       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34972       ac_ext=cpp
34973 ac_cpp='$CXXCPP $CPPFLAGS'
34974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34977
34978       cat >conftest.$ac_ext <<_ACEOF
34979 /* confdefs.h.  */
34980 _ACEOF
34981 cat confdefs.h >>conftest.$ac_ext
34982 cat >>conftest.$ac_ext <<_ACEOF
34983 /* end confdefs.h.  */
34984
34985          /* we need gcc >= 4.0, older versions with visibility support
34986             didn't have class visibility: */
34987          #if defined(__GNUC__) && __GNUC__ < 4
34988          error this gcc is too old;
34989          #endif
34990
34991          /* visibility only makes sense for ELF shared libs: */
34992          #if !defined(__ELF__) && !defined(__APPLE__)
34993          error this platform has no visibility;
34994          #endif
34995
34996          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34997          extern __attribute__((__visibility__("default"))) int exportedvar;
34998          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
34999          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35000          class __attribute__((__visibility__("default"))) Foo {
35001            Foo() {}
35002          };
35003
35004 int
35005 main ()
35006 {
35007
35008   ;
35009   return 0;
35010 }
35011 _ACEOF
35012 rm -f conftest.$ac_objext
35013 if { (ac_try="$ac_compile"
35014 case "(($ac_try" in
35015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35016   *) ac_try_echo=$ac_try;;
35017 esac
35018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35019   (eval "$ac_compile") 2>conftest.er1
35020   ac_status=$?
35021   grep -v '^ *+' conftest.er1 >conftest.err
35022   rm -f conftest.er1
35023   cat conftest.err >&5
35024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025   (exit $ac_status); } && {
35026          test -z "$ac_cxx_werror_flag" ||
35027          test ! -s conftest.err
35028        } && test -s conftest.$ac_objext; then
35029   wx_cv_cc_visibility=yes
35030 else
35031   echo "$as_me: failed program was:" >&5
35032 sed 's/^/| /' conftest.$ac_ext >&5
35033
35034         wx_cv_cc_visibility=no
35035 fi
35036
35037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35038       ac_ext=c
35039 ac_cpp='$CPP $CPPFLAGS'
35040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35043
35044       CXXFLAGS="$wx_save_CXXFLAGS"
35045 fi
35046
35047     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35048 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35049     if test $wx_cv_cc_visibility = yes; then
35050                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35051 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35052       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35053   echo $ECHO_N "(cached) $ECHO_C" >&6
35054 else
35055
35056         wx_save_CXXFLAGS="$CXXFLAGS"
35057         wx_save_LDFLAGS="$LDFLAGS"
35058         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35059         LDFLAGS="$LDFLAGS -shared -fPIC"
35060         ac_ext=cpp
35061 ac_cpp='$CXXCPP $CPPFLAGS'
35062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35065
35066         cat >conftest.$ac_ext <<_ACEOF
35067 /* confdefs.h.  */
35068 _ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h.  */
35072
35073             #include <string>
35074
35075 int
35076 main ()
35077 {
35078
35079             std::string s("hello");
35080             return s.length();
35081
35082   ;
35083   return 0;
35084 }
35085 _ACEOF
35086 rm -f conftest.$ac_objext conftest$ac_exeext
35087 if { (ac_try="$ac_link"
35088 case "(($ac_try" in
35089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090   *) ac_try_echo=$ac_try;;
35091 esac
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093   (eval "$ac_link") 2>conftest.er1
35094   ac_status=$?
35095   grep -v '^ *+' conftest.er1 >conftest.err
35096   rm -f conftest.er1
35097   cat conftest.err >&5
35098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099   (exit $ac_status); } && {
35100          test -z "$ac_cxx_werror_flag" ||
35101          test ! -s conftest.err
35102        } && test -s conftest$ac_exeext &&
35103        $as_test_x conftest$ac_exeext; then
35104   wx_cv_cc_broken_libstdcxx_visibility=no
35105 else
35106   echo "$as_me: failed program was:" >&5
35107 sed 's/^/| /' conftest.$ac_ext >&5
35108
35109         wx_cv_cc_broken_libstdcxx_visibility=yes
35110 fi
35111
35112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35113       conftest$ac_exeext conftest.$ac_ext
35114         ac_ext=c
35115 ac_cpp='$CPP $CPPFLAGS'
35116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35119
35120         CXXFLAGS="$wx_save_CXXFLAGS"
35121         LDFLAGS="$wx_save_LDFLAGS"
35122 fi
35123
35124       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35125 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35126
35127       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35128         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35129 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35130         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35131   echo $ECHO_N "(cached) $ECHO_C" >&6
35132 else
35133
35134           ac_ext=cpp
35135 ac_cpp='$CXXCPP $CPPFLAGS'
35136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35139
35140           cat >conftest.$ac_ext <<_ACEOF
35141 /* confdefs.h.  */
35142 _ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h.  */
35146
35147               #pragma GCC visibility push(default)
35148               #include <string>
35149               #pragma GCC visibility pop
35150
35151 int
35152 main ()
35153 {
35154
35155               std::string s("hello");
35156               return s.length();
35157
35158   ;
35159   return 0;
35160 }
35161 _ACEOF
35162 rm -f conftest.$ac_objext conftest$ac_exeext
35163 if { (ac_try="$ac_link"
35164 case "(($ac_try" in
35165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35166   *) ac_try_echo=$ac_try;;
35167 esac
35168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35169   (eval "$ac_link") 2>conftest.er1
35170   ac_status=$?
35171   grep -v '^ *+' conftest.er1 >conftest.err
35172   rm -f conftest.er1
35173   cat conftest.err >&5
35174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175   (exit $ac_status); } && {
35176          test -z "$ac_cxx_werror_flag" ||
35177          test ! -s conftest.err
35178        } && test -s conftest$ac_exeext &&
35179        $as_test_x conftest$ac_exeext; then
35180   wx_cv_cc_visibility_workaround=no
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185         wx_cv_cc_visibility_workaround=yes
35186 fi
35187
35188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35189       conftest$ac_exeext conftest.$ac_ext
35190           ac_ext=c
35191 ac_cpp='$CPP $CPPFLAGS'
35192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35195
35196
35197 fi
35198
35199         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35200 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35201
35202         if test $wx_cv_cc_visibility_workaround = no; then
35203                     wx_cv_cc_visibility=no
35204         fi
35205       fi
35206     fi
35207
35208     if test $wx_cv_cc_visibility = yes; then
35209       cat >>confdefs.h <<\_ACEOF
35210 #define HAVE_VISIBILITY 1
35211 _ACEOF
35212
35213       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35214         cat >>confdefs.h <<\_ACEOF
35215 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35216 _ACEOF
35217
35218       fi
35219     else
35220       CFLAGS_VISIBILITY=""
35221       CXXFLAGS_VISIBILITY=""
35222     fi
35223
35224
35225   fi
35226
35227     fi
35228
35229         if test "x$SUNCXX" = xyes; then
35230         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35231         WXCONFIG_RPATH="-R\$libdir"
35232     else
35233     case "${host}" in
35234       *-*-linux* | *-*-gnu* )
35235         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35236         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35237         ;;
35238
35239       *-*-solaris2* )
35240
35241                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35242
35243                         saveLdflags="$LDFLAGS"
35244         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35245         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35246 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35247         cat >conftest.$ac_ext <<_ACEOF
35248 /* confdefs.h.  */
35249 _ACEOF
35250 cat confdefs.h >>conftest.$ac_ext
35251 cat >>conftest.$ac_ext <<_ACEOF
35252 /* end confdefs.h.  */
35253
35254 int
35255 main ()
35256 {
35257
35258   ;
35259   return 0;
35260 }
35261 _ACEOF
35262 rm -f conftest.$ac_objext conftest$ac_exeext
35263 if { (ac_try="$ac_link"
35264 case "(($ac_try" in
35265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266   *) ac_try_echo=$ac_try;;
35267 esac
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269   (eval "$ac_link") 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } && {
35276          test -z "$ac_c_werror_flag" ||
35277          test ! -s conftest.err
35278        } && test -s conftest$ac_exeext &&
35279        $as_test_x conftest$ac_exeext; then
35280
35281                 { echo "$as_me:$LINENO: result: yes" >&5
35282 echo "${ECHO_T}yes" >&6; }
35283                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35284                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35285
35286 else
35287   echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35289
35290
35291                 { echo "$as_me:$LINENO: result: no" >&5
35292 echo "${ECHO_T}no" >&6; }
35293                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35294 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35295                 LDFLAGS="$saveLdflags -Wl,-R,/"
35296                 cat >conftest.$ac_ext <<_ACEOF
35297 /* confdefs.h.  */
35298 _ACEOF
35299 cat confdefs.h >>conftest.$ac_ext
35300 cat >>conftest.$ac_ext <<_ACEOF
35301 /* end confdefs.h.  */
35302
35303 int
35304 main ()
35305 {
35306
35307   ;
35308   return 0;
35309 }
35310 _ACEOF
35311 rm -f conftest.$ac_objext conftest$ac_exeext
35312 if { (ac_try="$ac_link"
35313 case "(($ac_try" in
35314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315   *) ac_try_echo=$ac_try;;
35316 esac
35317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35318   (eval "$ac_link") 2>conftest.er1
35319   ac_status=$?
35320   grep -v '^ *+' conftest.er1 >conftest.err
35321   rm -f conftest.er1
35322   cat conftest.err >&5
35323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35324   (exit $ac_status); } && {
35325          test -z "$ac_c_werror_flag" ||
35326          test ! -s conftest.err
35327        } && test -s conftest$ac_exeext &&
35328        $as_test_x conftest$ac_exeext; then
35329
35330                         { echo "$as_me:$LINENO: result: yes" >&5
35331 echo "${ECHO_T}yes" >&6; }
35332                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35333                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35334
35335 else
35336   echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.$ac_ext >&5
35338
35339
35340                         { echo "$as_me:$LINENO: result: no" >&5
35341 echo "${ECHO_T}no" >&6; }
35342
35343 fi
35344
35345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35346       conftest$ac_exeext conftest.$ac_ext
35347
35348 fi
35349
35350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35351       conftest$ac_exeext conftest.$ac_ext
35352         LDFLAGS="$saveLdflags"
35353       ;;
35354
35355       *-*-darwin* )
35356         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35357         if test "$install_name_tool" -a -x "$install_name_tool"; then
35358             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35359             cat <<EOF >change-install-names
35360 #!/bin/sh
35361 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35362 for i in \${libnames} ; do
35363     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
35364     for dep in \${libnames} ; do
35365         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
35366     done
35367 done
35368 EOF
35369             chmod +x change-install-names
35370             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
35371         fi
35372
35373                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35374       ;;
35375
35376       *-*-cygwin* | *-*-mingw32* )
35377         ;;
35378
35379       *-*-hpux* )
35380         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35381         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35382         ;;
35383
35384     esac
35385     fi
35386
35387             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35388
35389     if test $wxUSE_RPATH = "no"; then
35390         SAMPLES_RPATH_FLAG=''
35391         DYLIB_PATH_POSTLINK=''
35392         WXCONFIG_RPATH=''
35393     fi
35394
35395     SHARED=1
35396
35397 else
35398
35399     config_linkage_component="-static"
35400     SHARED=0
35401
35402 fi
35403
35404
35405 UNICODE=0
35406 lib_unicode_suffix=
35407 WX_CHARTYPE="ansi"
35408 if test "$wxUSE_UNICODE" = "yes"; then
35409     lib_unicode_suffix=u
35410     WX_CHARTYPE="unicode"
35411     UNICODE=1
35412 fi
35413
35414 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35415 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35416
35417 DEBUG_INFO=0
35418 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35419     DEBUG_INFO=1
35420 fi
35421
35422 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35423
35424 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35425
35426 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35427
35428
35429 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35430     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35431 else
35432     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35433 fi
35434 if test "${TOOLKIT_DIR}" = "os2"; then
35435     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35436 else
35437     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35438 fi
35439
35440
35441
35442 if test "$wxUSE_OLD_COCOA" = 1; then
35443
35444     ac_ext=c
35445 ac_cpp='$CPP $CPPFLAGS'
35446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35449
35450 ac_ext=m
35451
35452     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35453 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35454     cat >conftest.$ac_ext <<_ACEOF
35455 /* confdefs.h.  */
35456 _ACEOF
35457 cat confdefs.h >>conftest.$ac_ext
35458 cat >>conftest.$ac_ext <<_ACEOF
35459 /* end confdefs.h.  */
35460 #include <AppKit/NSEvent.h>
35461 #include <CoreFoundation/CoreFoundation.h>
35462
35463 int
35464 main ()
35465 {
35466
35467   ;
35468   return 0;
35469 }
35470 _ACEOF
35471 rm -f conftest.$ac_objext
35472 if { (ac_try="$ac_compile"
35473 case "(($ac_try" in
35474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35475   *) ac_try_echo=$ac_try;;
35476 esac
35477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35478   (eval "$ac_compile") 2>conftest.er1
35479   ac_status=$?
35480   grep -v '^ *+' conftest.er1 >conftest.err
35481   rm -f conftest.er1
35482   cat conftest.err >&5
35483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484   (exit $ac_status); } && {
35485          test -z "$ac_c_werror_flag" ||
35486          test ! -s conftest.err
35487        } && test -s conftest.$ac_objext; then
35488   { echo "$as_me:$LINENO: result: no" >&5
35489 echo "${ECHO_T}no" >&6; }
35490 else
35491   echo "$as_me: failed program was:" >&5
35492 sed 's/^/| /' conftest.$ac_ext >&5
35493
35494         { echo "$as_me:$LINENO: result: yes" >&5
35495 echo "${ECHO_T}yes" >&6; }
35496         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35497 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35498         cat >conftest.$ac_ext <<_ACEOF
35499 /* confdefs.h.  */
35500 _ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h.  */
35504 #define __Point__ 1
35505 #include <AppKit/NSEvent.h>
35506 #include <CoreFoundation/CoreFoundation.h>
35507
35508 int
35509 main ()
35510 {
35511
35512   ;
35513   return 0;
35514 }
35515 _ACEOF
35516 rm -f conftest.$ac_objext
35517 if { (ac_try="$ac_compile"
35518 case "(($ac_try" in
35519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35520   *) ac_try_echo=$ac_try;;
35521 esac
35522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35523   (eval "$ac_compile") 2>conftest.er1
35524   ac_status=$?
35525   grep -v '^ *+' conftest.er1 >conftest.err
35526   rm -f conftest.er1
35527   cat conftest.err >&5
35528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529   (exit $ac_status); } && {
35530          test -z "$ac_c_werror_flag" ||
35531          test ! -s conftest.err
35532        } && test -s conftest.$ac_objext; then
35533   { echo "$as_me:$LINENO: result: yes" >&5
35534 echo "${ECHO_T}yes" >&6; }
35535             cat >>confdefs.h <<\_ACEOF
35536 #define __Point__ 1
35537 _ACEOF
35538
35539
35540 else
35541   echo "$as_me: failed program was:" >&5
35542 sed 's/^/| /' conftest.$ac_ext >&5
35543
35544         { { echo "$as_me:$LINENO: error: no
35545 See \`config.log' for more details." >&5
35546 echo "$as_me: error: no
35547 See \`config.log' for more details." >&2;}
35548    { (exit 1); exit 1; }; }
35549
35550 fi
35551
35552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35553
35554 fi
35555
35556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35557     ac_ext=c
35558 ac_cpp='$CPP $CPPFLAGS'
35559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35562
35563 fi
35564
35565
35566 { echo "$as_me:$LINENO: checking for mode_t" >&5
35567 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35568 if test "${ac_cv_type_mode_t+set}" = set; then
35569   echo $ECHO_N "(cached) $ECHO_C" >&6
35570 else
35571   cat >conftest.$ac_ext <<_ACEOF
35572 /* confdefs.h.  */
35573 _ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h.  */
35577 $ac_includes_default
35578 typedef mode_t ac__type_new_;
35579 int
35580 main ()
35581 {
35582 if ((ac__type_new_ *) 0)
35583   return 0;
35584 if (sizeof (ac__type_new_))
35585   return 0;
35586   ;
35587   return 0;
35588 }
35589 _ACEOF
35590 rm -f conftest.$ac_objext
35591 if { (ac_try="$ac_compile"
35592 case "(($ac_try" in
35593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594   *) ac_try_echo=$ac_try;;
35595 esac
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597   (eval "$ac_compile") 2>conftest.er1
35598   ac_status=$?
35599   grep -v '^ *+' conftest.er1 >conftest.err
35600   rm -f conftest.er1
35601   cat conftest.err >&5
35602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603   (exit $ac_status); } && {
35604          test -z "$ac_c_werror_flag" ||
35605          test ! -s conftest.err
35606        } && test -s conftest.$ac_objext; then
35607   ac_cv_type_mode_t=yes
35608 else
35609   echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35611
35612         ac_cv_type_mode_t=no
35613 fi
35614
35615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35616 fi
35617 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35618 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35619 if test $ac_cv_type_mode_t = yes; then
35620   :
35621 else
35622
35623 cat >>confdefs.h <<_ACEOF
35624 #define mode_t int
35625 _ACEOF
35626
35627 fi
35628
35629 { echo "$as_me:$LINENO: checking for off_t" >&5
35630 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35631 if test "${ac_cv_type_off_t+set}" = set; then
35632   echo $ECHO_N "(cached) $ECHO_C" >&6
35633 else
35634   cat >conftest.$ac_ext <<_ACEOF
35635 /* confdefs.h.  */
35636 _ACEOF
35637 cat confdefs.h >>conftest.$ac_ext
35638 cat >>conftest.$ac_ext <<_ACEOF
35639 /* end confdefs.h.  */
35640 $ac_includes_default
35641 typedef off_t ac__type_new_;
35642 int
35643 main ()
35644 {
35645 if ((ac__type_new_ *) 0)
35646   return 0;
35647 if (sizeof (ac__type_new_))
35648   return 0;
35649   ;
35650   return 0;
35651 }
35652 _ACEOF
35653 rm -f conftest.$ac_objext
35654 if { (ac_try="$ac_compile"
35655 case "(($ac_try" in
35656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657   *) ac_try_echo=$ac_try;;
35658 esac
35659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35660   (eval "$ac_compile") 2>conftest.er1
35661   ac_status=$?
35662   grep -v '^ *+' conftest.er1 >conftest.err
35663   rm -f conftest.er1
35664   cat conftest.err >&5
35665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666   (exit $ac_status); } && {
35667          test -z "$ac_c_werror_flag" ||
35668          test ! -s conftest.err
35669        } && test -s conftest.$ac_objext; then
35670   ac_cv_type_off_t=yes
35671 else
35672   echo "$as_me: failed program was:" >&5
35673 sed 's/^/| /' conftest.$ac_ext >&5
35674
35675         ac_cv_type_off_t=no
35676 fi
35677
35678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35679 fi
35680 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35681 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35682 if test $ac_cv_type_off_t = yes; then
35683   :
35684 else
35685
35686 cat >>confdefs.h <<_ACEOF
35687 #define off_t long int
35688 _ACEOF
35689
35690 fi
35691
35692 { echo "$as_me:$LINENO: checking for pid_t" >&5
35693 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35694 if test "${ac_cv_type_pid_t+set}" = set; then
35695   echo $ECHO_N "(cached) $ECHO_C" >&6
35696 else
35697   cat >conftest.$ac_ext <<_ACEOF
35698 /* confdefs.h.  */
35699 _ACEOF
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h.  */
35703 $ac_includes_default
35704 typedef pid_t ac__type_new_;
35705 int
35706 main ()
35707 {
35708 if ((ac__type_new_ *) 0)
35709   return 0;
35710 if (sizeof (ac__type_new_))
35711   return 0;
35712   ;
35713   return 0;
35714 }
35715 _ACEOF
35716 rm -f conftest.$ac_objext
35717 if { (ac_try="$ac_compile"
35718 case "(($ac_try" in
35719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35720   *) ac_try_echo=$ac_try;;
35721 esac
35722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35723   (eval "$ac_compile") 2>conftest.er1
35724   ac_status=$?
35725   grep -v '^ *+' conftest.er1 >conftest.err
35726   rm -f conftest.er1
35727   cat conftest.err >&5
35728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729   (exit $ac_status); } && {
35730          test -z "$ac_c_werror_flag" ||
35731          test ! -s conftest.err
35732        } && test -s conftest.$ac_objext; then
35733   ac_cv_type_pid_t=yes
35734 else
35735   echo "$as_me: failed program was:" >&5
35736 sed 's/^/| /' conftest.$ac_ext >&5
35737
35738         ac_cv_type_pid_t=no
35739 fi
35740
35741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35742 fi
35743 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35744 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
35745 if test $ac_cv_type_pid_t = yes; then
35746   :
35747 else
35748
35749 cat >>confdefs.h <<_ACEOF
35750 #define pid_t int
35751 _ACEOF
35752
35753 fi
35754
35755 { echo "$as_me:$LINENO: checking for size_t" >&5
35756 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35757 if test "${ac_cv_type_size_t+set}" = set; then
35758   echo $ECHO_N "(cached) $ECHO_C" >&6
35759 else
35760   cat >conftest.$ac_ext <<_ACEOF
35761 /* confdefs.h.  */
35762 _ACEOF
35763 cat confdefs.h >>conftest.$ac_ext
35764 cat >>conftest.$ac_ext <<_ACEOF
35765 /* end confdefs.h.  */
35766 $ac_includes_default
35767 typedef size_t ac__type_new_;
35768 int
35769 main ()
35770 {
35771 if ((ac__type_new_ *) 0)
35772   return 0;
35773 if (sizeof (ac__type_new_))
35774   return 0;
35775   ;
35776   return 0;
35777 }
35778 _ACEOF
35779 rm -f conftest.$ac_objext
35780 if { (ac_try="$ac_compile"
35781 case "(($ac_try" in
35782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35783   *) ac_try_echo=$ac_try;;
35784 esac
35785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35786   (eval "$ac_compile") 2>conftest.er1
35787   ac_status=$?
35788   grep -v '^ *+' conftest.er1 >conftest.err
35789   rm -f conftest.er1
35790   cat conftest.err >&5
35791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792   (exit $ac_status); } && {
35793          test -z "$ac_c_werror_flag" ||
35794          test ! -s conftest.err
35795        } && test -s conftest.$ac_objext; then
35796   ac_cv_type_size_t=yes
35797 else
35798   echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35800
35801         ac_cv_type_size_t=no
35802 fi
35803
35804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35805 fi
35806 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35807 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35808 if test $ac_cv_type_size_t = yes; then
35809   :
35810 else
35811
35812 cat >>confdefs.h <<_ACEOF
35813 #define size_t unsigned int
35814 _ACEOF
35815
35816 fi
35817
35818
35819 { echo "$as_me:$LINENO: checking for ssize_t" >&5
35820 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
35821 if test "${ac_cv_type_ssize_t+set}" = set; then
35822   echo $ECHO_N "(cached) $ECHO_C" >&6
35823 else
35824   cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830 $ac_includes_default
35831 typedef ssize_t ac__type_new_;
35832 int
35833 main ()
35834 {
35835 if ((ac__type_new_ *) 0)
35836   return 0;
35837 if (sizeof (ac__type_new_))
35838   return 0;
35839   ;
35840   return 0;
35841 }
35842 _ACEOF
35843 rm -f conftest.$ac_objext
35844 if { (ac_try="$ac_compile"
35845 case "(($ac_try" in
35846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35847   *) ac_try_echo=$ac_try;;
35848 esac
35849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35850   (eval "$ac_compile") 2>conftest.er1
35851   ac_status=$?
35852   grep -v '^ *+' conftest.er1 >conftest.err
35853   rm -f conftest.er1
35854   cat conftest.err >&5
35855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856   (exit $ac_status); } && {
35857          test -z "$ac_c_werror_flag" ||
35858          test ! -s conftest.err
35859        } && test -s conftest.$ac_objext; then
35860   ac_cv_type_ssize_t=yes
35861 else
35862   echo "$as_me: failed program was:" >&5
35863 sed 's/^/| /' conftest.$ac_ext >&5
35864
35865         ac_cv_type_ssize_t=no
35866 fi
35867
35868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35869 fi
35870 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35871 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35872 if test $ac_cv_type_ssize_t = yes; then
35873
35874 cat >>confdefs.h <<_ACEOF
35875 #define HAVE_SSIZE_T 1
35876 _ACEOF
35877
35878
35879 fi
35880
35881
35882 ac_ext=cpp
35883 ac_cpp='$CXXCPP $CPPFLAGS'
35884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35887  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35888 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
35889 if test "${wx_cv_size_t_is_uint+set}" = set; then
35890   echo $ECHO_N "(cached) $ECHO_C" >&6
35891 else
35892
35893                             cat >conftest.$ac_ext <<_ACEOF
35894 /* confdefs.h.  */
35895 _ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h.  */
35899 #include <stddef.h>
35900 int
35901 main ()
35902 {
35903
35904             return 0; }
35905
35906             struct Foo { void foo(size_t); void foo(unsigned int); };
35907
35908             int bar() {
35909
35910   ;
35911   return 0;
35912 }
35913 _ACEOF
35914 rm -f conftest.$ac_objext
35915 if { (ac_try="$ac_compile"
35916 case "(($ac_try" in
35917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35918   *) ac_try_echo=$ac_try;;
35919 esac
35920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35921   (eval "$ac_compile") 2>conftest.er1
35922   ac_status=$?
35923   grep -v '^ *+' conftest.er1 >conftest.err
35924   rm -f conftest.er1
35925   cat conftest.err >&5
35926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927   (exit $ac_status); } && {
35928          test -z "$ac_cxx_werror_flag" ||
35929          test ! -s conftest.err
35930        } && test -s conftest.$ac_objext; then
35931   wx_cv_size_t_is_uint=no
35932 else
35933   echo "$as_me: failed program was:" >&5
35934 sed 's/^/| /' conftest.$ac_ext >&5
35935
35936         wx_cv_size_t_is_uint=yes
35937
35938 fi
35939
35940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35941
35942
35943 fi
35944 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35945 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
35946
35947 if test "$wx_cv_size_t_is_uint" = "yes"; then
35948     cat >>confdefs.h <<\_ACEOF
35949 #define wxSIZE_T_IS_UINT 1
35950 _ACEOF
35951
35952 else
35953     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35954 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
35955 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35956   echo $ECHO_N "(cached) $ECHO_C" >&6
35957 else
35958   cat >conftest.$ac_ext <<_ACEOF
35959 /* confdefs.h.  */
35960 _ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h.  */
35964 #include <stddef.h>
35965 int
35966 main ()
35967 {
35968
35969                 return 0; }
35970
35971                 struct Foo { void foo(size_t); void foo(unsigned long); };
35972
35973                 int bar() {
35974
35975   ;
35976   return 0;
35977 }
35978 _ACEOF
35979 rm -f conftest.$ac_objext
35980 if { (ac_try="$ac_compile"
35981 case "(($ac_try" in
35982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35983   *) ac_try_echo=$ac_try;;
35984 esac
35985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35986   (eval "$ac_compile") 2>conftest.er1
35987   ac_status=$?
35988   grep -v '^ *+' conftest.er1 >conftest.err
35989   rm -f conftest.er1
35990   cat conftest.err >&5
35991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992   (exit $ac_status); } && {
35993          test -z "$ac_cxx_werror_flag" ||
35994          test ! -s conftest.err
35995        } && test -s conftest.$ac_objext; then
35996   wx_cv_size_t_is_ulong=no
35997 else
35998   echo "$as_me: failed program was:" >&5
35999 sed 's/^/| /' conftest.$ac_ext >&5
36000
36001         wx_cv_size_t_is_ulong=yes
36002
36003 fi
36004
36005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36006
36007 fi
36008 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36009 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36010
36011     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36012         cat >>confdefs.h <<\_ACEOF
36013 #define wxSIZE_T_IS_ULONG 1
36014 _ACEOF
36015
36016     fi
36017 fi
36018
36019 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36020 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36021 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36022   echo $ECHO_N "(cached) $ECHO_C" >&6
36023 else
36024   cat >conftest.$ac_ext <<_ACEOF
36025 /* confdefs.h.  */
36026 _ACEOF
36027 cat confdefs.h >>conftest.$ac_ext
36028 cat >>conftest.$ac_ext <<_ACEOF
36029 /* end confdefs.h.  */
36030 #include <wchar.h>
36031 int
36032 main ()
36033 {
36034
36035             return 0; }
36036
36037             struct Foo { void foo(wchar_t);
36038                          void foo(unsigned short);
36039                          void foo(unsigned int);
36040                          void foo(unsigned long); };
36041
36042             int bar() {
36043
36044   ;
36045   return 0;
36046 }
36047 _ACEOF
36048 rm -f conftest.$ac_objext
36049 if { (ac_try="$ac_compile"
36050 case "(($ac_try" in
36051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36052   *) ac_try_echo=$ac_try;;
36053 esac
36054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36055   (eval "$ac_compile") 2>conftest.er1
36056   ac_status=$?
36057   grep -v '^ *+' conftest.er1 >conftest.err
36058   rm -f conftest.er1
36059   cat conftest.err >&5
36060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061   (exit $ac_status); } && {
36062          test -z "$ac_cxx_werror_flag" ||
36063          test ! -s conftest.err
36064        } && test -s conftest.$ac_objext; then
36065   wx_cv_wchar_t_is_separate_type=yes
36066 else
36067   echo "$as_me: failed program was:" >&5
36068 sed 's/^/| /' conftest.$ac_ext >&5
36069
36070         wx_cv_wchar_t_is_separate_type=no
36071
36072 fi
36073
36074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36075
36076 fi
36077 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36078 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36079
36080 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36081     cat >>confdefs.h <<\_ACEOF
36082 #define wxWCHAR_T_IS_REAL_TYPE 1
36083 _ACEOF
36084
36085 else
36086     cat >>confdefs.h <<\_ACEOF
36087 #define wxWCHAR_T_IS_REAL_TYPE 0
36088 _ACEOF
36089
36090 fi
36091
36092 ac_ext=c
36093 ac_cpp='$CPP $CPPFLAGS'
36094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36097
36098
36099 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36100 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36101 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36102   echo $ECHO_N "(cached) $ECHO_C" >&6
36103 else
36104
36105         cat >conftest.$ac_ext <<_ACEOF
36106 /* confdefs.h.  */
36107 _ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h.  */
36111 #include <pwd.h>
36112 int
36113 main ()
36114 {
36115
36116                 char *p;
36117                 struct passwd *pw;
36118                 p = pw->pw_gecos;
36119
36120   ;
36121   return 0;
36122 }
36123 _ACEOF
36124 rm -f conftest.$ac_objext
36125 if { (ac_try="$ac_compile"
36126 case "(($ac_try" in
36127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36128   *) ac_try_echo=$ac_try;;
36129 esac
36130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36131   (eval "$ac_compile") 2>conftest.er1
36132   ac_status=$?
36133   grep -v '^ *+' conftest.er1 >conftest.err
36134   rm -f conftest.er1
36135   cat conftest.err >&5
36136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137   (exit $ac_status); } && {
36138          test -z "$ac_c_werror_flag" ||
36139          test ! -s conftest.err
36140        } && test -s conftest.$ac_objext; then
36141
36142                 wx_cv_struct_pw_gecos=yes
36143
36144 else
36145   echo "$as_me: failed program was:" >&5
36146 sed 's/^/| /' conftest.$ac_ext >&5
36147
36148
36149                 wx_cv_struct_pw_gecos=no
36150
36151
36152 fi
36153
36154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36155
36156
36157 fi
36158 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36159 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36160
36161 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36162     cat >>confdefs.h <<\_ACEOF
36163 #define HAVE_PW_GECOS 1
36164 _ACEOF
36165
36166 fi
36167
36168
36169 WCSLEN_FOUND=0
36170 WCHAR_LINK=
36171
36172 for ac_func in wcslen
36173 do
36174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36178   echo $ECHO_N "(cached) $ECHO_C" >&6
36179 else
36180   cat >conftest.$ac_ext <<_ACEOF
36181 /* confdefs.h.  */
36182 _ACEOF
36183 cat confdefs.h >>conftest.$ac_ext
36184 cat >>conftest.$ac_ext <<_ACEOF
36185 /* end confdefs.h.  */
36186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36188 #define $ac_func innocuous_$ac_func
36189
36190 /* System header to define __stub macros and hopefully few prototypes,
36191     which can conflict with char $ac_func (); below.
36192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36193     <limits.h> exists even on freestanding compilers.  */
36194
36195 #ifdef __STDC__
36196 # include <limits.h>
36197 #else
36198 # include <assert.h>
36199 #endif
36200
36201 #undef $ac_func
36202
36203 /* Override any GCC internal prototype to avoid an error.
36204    Use char because int might match the return type of a GCC
36205    builtin and then its argument prototype would still apply.  */
36206 #ifdef __cplusplus
36207 extern "C"
36208 #endif
36209 char $ac_func ();
36210 /* The GNU C library defines this for functions which it implements
36211     to always fail with ENOSYS.  Some functions are actually named
36212     something starting with __ and the normal name is an alias.  */
36213 #if defined __stub_$ac_func || defined __stub___$ac_func
36214 choke me
36215 #endif
36216
36217 int
36218 main ()
36219 {
36220 return $ac_func ();
36221   ;
36222   return 0;
36223 }
36224 _ACEOF
36225 rm -f conftest.$ac_objext conftest$ac_exeext
36226 if { (ac_try="$ac_link"
36227 case "(($ac_try" in
36228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229   *) ac_try_echo=$ac_try;;
36230 esac
36231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36232   (eval "$ac_link") 2>conftest.er1
36233   ac_status=$?
36234   grep -v '^ *+' conftest.er1 >conftest.err
36235   rm -f conftest.er1
36236   cat conftest.err >&5
36237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238   (exit $ac_status); } && {
36239          test -z "$ac_c_werror_flag" ||
36240          test ! -s conftest.err
36241        } && test -s conftest$ac_exeext &&
36242        $as_test_x conftest$ac_exeext; then
36243   eval "$as_ac_var=yes"
36244 else
36245   echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248         eval "$as_ac_var=no"
36249 fi
36250
36251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36252       conftest$ac_exeext conftest.$ac_ext
36253 fi
36254 ac_res=`eval echo '${'$as_ac_var'}'`
36255                { echo "$as_me:$LINENO: result: $ac_res" >&5
36256 echo "${ECHO_T}$ac_res" >&6; }
36257 if test `eval echo '${'$as_ac_var'}'` = yes; then
36258   cat >>confdefs.h <<_ACEOF
36259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36260 _ACEOF
36261  WCSLEN_FOUND=1
36262 fi
36263 done
36264
36265
36266 if test "$WCSLEN_FOUND" = 0; then
36267     if test "$TOOLKIT" = "MSW"; then
36268         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36269 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36270 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36271   echo $ECHO_N "(cached) $ECHO_C" >&6
36272 else
36273   ac_check_lib_save_LIBS=$LIBS
36274 LIBS="-lmsvcrt  $LIBS"
36275 cat >conftest.$ac_ext <<_ACEOF
36276 /* confdefs.h.  */
36277 _ACEOF
36278 cat confdefs.h >>conftest.$ac_ext
36279 cat >>conftest.$ac_ext <<_ACEOF
36280 /* end confdefs.h.  */
36281
36282 /* Override any GCC internal prototype to avoid an error.
36283    Use char because int might match the return type of a GCC
36284    builtin and then its argument prototype would still apply.  */
36285 #ifdef __cplusplus
36286 extern "C"
36287 #endif
36288 char wcslen ();
36289 int
36290 main ()
36291 {
36292 return wcslen ();
36293   ;
36294   return 0;
36295 }
36296 _ACEOF
36297 rm -f conftest.$ac_objext conftest$ac_exeext
36298 if { (ac_try="$ac_link"
36299 case "(($ac_try" in
36300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301   *) ac_try_echo=$ac_try;;
36302 esac
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304   (eval "$ac_link") 2>conftest.er1
36305   ac_status=$?
36306   grep -v '^ *+' conftest.er1 >conftest.err
36307   rm -f conftest.er1
36308   cat conftest.err >&5
36309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310   (exit $ac_status); } && {
36311          test -z "$ac_c_werror_flag" ||
36312          test ! -s conftest.err
36313        } && test -s conftest$ac_exeext &&
36314        $as_test_x conftest$ac_exeext; then
36315   ac_cv_lib_msvcrt_wcslen=yes
36316 else
36317   echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36319
36320         ac_cv_lib_msvcrt_wcslen=no
36321 fi
36322
36323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36324       conftest$ac_exeext conftest.$ac_ext
36325 LIBS=$ac_check_lib_save_LIBS
36326 fi
36327 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36328 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36329 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36330   WCHAR_OK=1
36331 fi
36332
36333     else
36334         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36335 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36336 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36337   echo $ECHO_N "(cached) $ECHO_C" >&6
36338 else
36339   ac_check_lib_save_LIBS=$LIBS
36340 LIBS="-lw  $LIBS"
36341 cat >conftest.$ac_ext <<_ACEOF
36342 /* confdefs.h.  */
36343 _ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h.  */
36347
36348 /* Override any GCC internal prototype to avoid an error.
36349    Use char because int might match the return type of a GCC
36350    builtin and then its argument prototype would still apply.  */
36351 #ifdef __cplusplus
36352 extern "C"
36353 #endif
36354 char wcslen ();
36355 int
36356 main ()
36357 {
36358 return wcslen ();
36359   ;
36360   return 0;
36361 }
36362 _ACEOF
36363 rm -f conftest.$ac_objext conftest$ac_exeext
36364 if { (ac_try="$ac_link"
36365 case "(($ac_try" in
36366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36367   *) ac_try_echo=$ac_try;;
36368 esac
36369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36370   (eval "$ac_link") 2>conftest.er1
36371   ac_status=$?
36372   grep -v '^ *+' conftest.er1 >conftest.err
36373   rm -f conftest.er1
36374   cat conftest.err >&5
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); } && {
36377          test -z "$ac_c_werror_flag" ||
36378          test ! -s conftest.err
36379        } && test -s conftest$ac_exeext &&
36380        $as_test_x conftest$ac_exeext; then
36381   ac_cv_lib_w_wcslen=yes
36382 else
36383   echo "$as_me: failed program was:" >&5
36384 sed 's/^/| /' conftest.$ac_ext >&5
36385
36386         ac_cv_lib_w_wcslen=no
36387 fi
36388
36389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36390       conftest$ac_exeext conftest.$ac_ext
36391 LIBS=$ac_check_lib_save_LIBS
36392 fi
36393 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36394 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36395 if test $ac_cv_lib_w_wcslen = yes; then
36396
36397                         WCHAR_LINK=" -lw"
36398                         WCSLEN_FOUND=1
36399
36400 fi
36401
36402     fi
36403 fi
36404
36405 if test "$WCSLEN_FOUND" = 1; then
36406     cat >>confdefs.h <<\_ACEOF
36407 #define HAVE_WCSLEN 1
36408 _ACEOF
36409
36410 fi
36411
36412
36413
36414
36415
36416
36417
36418 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36419 do
36420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36424   echo $ECHO_N "(cached) $ECHO_C" >&6
36425 else
36426   cat >conftest.$ac_ext <<_ACEOF
36427 /* confdefs.h.  */
36428 _ACEOF
36429 cat confdefs.h >>conftest.$ac_ext
36430 cat >>conftest.$ac_ext <<_ACEOF
36431 /* end confdefs.h.  */
36432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36434 #define $ac_func innocuous_$ac_func
36435
36436 /* System header to define __stub macros and hopefully few prototypes,
36437     which can conflict with char $ac_func (); below.
36438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36439     <limits.h> exists even on freestanding compilers.  */
36440
36441 #ifdef __STDC__
36442 # include <limits.h>
36443 #else
36444 # include <assert.h>
36445 #endif
36446
36447 #undef $ac_func
36448
36449 /* Override any GCC internal prototype to avoid an error.
36450    Use char because int might match the return type of a GCC
36451    builtin and then its argument prototype would still apply.  */
36452 #ifdef __cplusplus
36453 extern "C"
36454 #endif
36455 char $ac_func ();
36456 /* The GNU C library defines this for functions which it implements
36457     to always fail with ENOSYS.  Some functions are actually named
36458     something starting with __ and the normal name is an alias.  */
36459 #if defined __stub_$ac_func || defined __stub___$ac_func
36460 choke me
36461 #endif
36462
36463 int
36464 main ()
36465 {
36466 return $ac_func ();
36467   ;
36468   return 0;
36469 }
36470 _ACEOF
36471 rm -f conftest.$ac_objext conftest$ac_exeext
36472 if { (ac_try="$ac_link"
36473 case "(($ac_try" in
36474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36475   *) ac_try_echo=$ac_try;;
36476 esac
36477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36478   (eval "$ac_link") 2>conftest.er1
36479   ac_status=$?
36480   grep -v '^ *+' conftest.er1 >conftest.err
36481   rm -f conftest.er1
36482   cat conftest.err >&5
36483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484   (exit $ac_status); } && {
36485          test -z "$ac_c_werror_flag" ||
36486          test ! -s conftest.err
36487        } && test -s conftest$ac_exeext &&
36488        $as_test_x conftest$ac_exeext; then
36489   eval "$as_ac_var=yes"
36490 else
36491   echo "$as_me: failed program was:" >&5
36492 sed 's/^/| /' conftest.$ac_ext >&5
36493
36494         eval "$as_ac_var=no"
36495 fi
36496
36497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36498       conftest$ac_exeext conftest.$ac_ext
36499 fi
36500 ac_res=`eval echo '${'$as_ac_var'}'`
36501                { echo "$as_me:$LINENO: result: $ac_res" >&5
36502 echo "${ECHO_T}$ac_res" >&6; }
36503 if test `eval echo '${'$as_ac_var'}'` = yes; then
36504   cat >>confdefs.h <<_ACEOF
36505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36506 _ACEOF
36507
36508 fi
36509 done
36510
36511
36512 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36513     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36514 fi
36515
36516 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36517 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36518 if test "${ac_cv_type_mbstate_t+set}" = set; then
36519   echo $ECHO_N "(cached) $ECHO_C" >&6
36520 else
36521   cat >conftest.$ac_ext <<_ACEOF
36522 /* confdefs.h.  */
36523 _ACEOF
36524 cat confdefs.h >>conftest.$ac_ext
36525 cat >>conftest.$ac_ext <<_ACEOF
36526 /* end confdefs.h.  */
36527 #include <wchar.h>
36528
36529 typedef mbstate_t ac__type_new_;
36530 int
36531 main ()
36532 {
36533 if ((ac__type_new_ *) 0)
36534   return 0;
36535 if (sizeof (ac__type_new_))
36536   return 0;
36537   ;
36538   return 0;
36539 }
36540 _ACEOF
36541 rm -f conftest.$ac_objext
36542 if { (ac_try="$ac_compile"
36543 case "(($ac_try" in
36544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36545   *) ac_try_echo=$ac_try;;
36546 esac
36547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36548   (eval "$ac_compile") 2>conftest.er1
36549   ac_status=$?
36550   grep -v '^ *+' conftest.er1 >conftest.err
36551   rm -f conftest.er1
36552   cat conftest.err >&5
36553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554   (exit $ac_status); } && {
36555          test -z "$ac_c_werror_flag" ||
36556          test ! -s conftest.err
36557        } && test -s conftest.$ac_objext; then
36558   ac_cv_type_mbstate_t=yes
36559 else
36560   echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36562
36563         ac_cv_type_mbstate_t=no
36564 fi
36565
36566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36567 fi
36568 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36569 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36570 if test $ac_cv_type_mbstate_t = yes; then
36571
36572 cat >>confdefs.h <<_ACEOF
36573 #define HAVE_MBSTATE_T 1
36574 _ACEOF
36575
36576
36577 for ac_func in wcsrtombs
36578 do
36579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585   cat >conftest.$ac_ext <<_ACEOF
36586 /* confdefs.h.  */
36587 _ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h.  */
36591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36593 #define $ac_func innocuous_$ac_func
36594
36595 /* System header to define __stub macros and hopefully few prototypes,
36596     which can conflict with char $ac_func (); below.
36597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36598     <limits.h> exists even on freestanding compilers.  */
36599
36600 #ifdef __STDC__
36601 # include <limits.h>
36602 #else
36603 # include <assert.h>
36604 #endif
36605
36606 #undef $ac_func
36607
36608 /* Override any GCC internal prototype to avoid an error.
36609    Use char because int might match the return type of a GCC
36610    builtin and then its argument prototype would still apply.  */
36611 #ifdef __cplusplus
36612 extern "C"
36613 #endif
36614 char $ac_func ();
36615 /* The GNU C library defines this for functions which it implements
36616     to always fail with ENOSYS.  Some functions are actually named
36617     something starting with __ and the normal name is an alias.  */
36618 #if defined __stub_$ac_func || defined __stub___$ac_func
36619 choke me
36620 #endif
36621
36622 int
36623 main ()
36624 {
36625 return $ac_func ();
36626   ;
36627   return 0;
36628 }
36629 _ACEOF
36630 rm -f conftest.$ac_objext conftest$ac_exeext
36631 if { (ac_try="$ac_link"
36632 case "(($ac_try" in
36633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36634   *) ac_try_echo=$ac_try;;
36635 esac
36636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36637   (eval "$ac_link") 2>conftest.er1
36638   ac_status=$?
36639   grep -v '^ *+' conftest.er1 >conftest.err
36640   rm -f conftest.er1
36641   cat conftest.err >&5
36642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643   (exit $ac_status); } && {
36644          test -z "$ac_c_werror_flag" ||
36645          test ! -s conftest.err
36646        } && test -s conftest$ac_exeext &&
36647        $as_test_x conftest$ac_exeext; then
36648   eval "$as_ac_var=yes"
36649 else
36650   echo "$as_me: failed program was:" >&5
36651 sed 's/^/| /' conftest.$ac_ext >&5
36652
36653         eval "$as_ac_var=no"
36654 fi
36655
36656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36657       conftest$ac_exeext conftest.$ac_ext
36658 fi
36659 ac_res=`eval echo '${'$as_ac_var'}'`
36660                { echo "$as_me:$LINENO: result: $ac_res" >&5
36661 echo "${ECHO_T}$ac_res" >&6; }
36662 if test `eval echo '${'$as_ac_var'}'` = yes; then
36663   cat >>confdefs.h <<_ACEOF
36664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36665 _ACEOF
36666
36667 fi
36668 done
36669
36670 fi
36671
36672
36673
36674
36675
36676 for ac_func in snprintf vsnprintf vsscanf
36677 do
36678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36682   echo $ECHO_N "(cached) $ECHO_C" >&6
36683 else
36684   cat >conftest.$ac_ext <<_ACEOF
36685 /* confdefs.h.  */
36686 _ACEOF
36687 cat confdefs.h >>conftest.$ac_ext
36688 cat >>conftest.$ac_ext <<_ACEOF
36689 /* end confdefs.h.  */
36690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36692 #define $ac_func innocuous_$ac_func
36693
36694 /* System header to define __stub macros and hopefully few prototypes,
36695     which can conflict with char $ac_func (); below.
36696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36697     <limits.h> exists even on freestanding compilers.  */
36698
36699 #ifdef __STDC__
36700 # include <limits.h>
36701 #else
36702 # include <assert.h>
36703 #endif
36704
36705 #undef $ac_func
36706
36707 /* Override any GCC internal prototype to avoid an error.
36708    Use char because int might match the return type of a GCC
36709    builtin and then its argument prototype would still apply.  */
36710 #ifdef __cplusplus
36711 extern "C"
36712 #endif
36713 char $ac_func ();
36714 /* The GNU C library defines this for functions which it implements
36715     to always fail with ENOSYS.  Some functions are actually named
36716     something starting with __ and the normal name is an alias.  */
36717 #if defined __stub_$ac_func || defined __stub___$ac_func
36718 choke me
36719 #endif
36720
36721 int
36722 main ()
36723 {
36724 return $ac_func ();
36725   ;
36726   return 0;
36727 }
36728 _ACEOF
36729 rm -f conftest.$ac_objext conftest$ac_exeext
36730 if { (ac_try="$ac_link"
36731 case "(($ac_try" in
36732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36733   *) ac_try_echo=$ac_try;;
36734 esac
36735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36736   (eval "$ac_link") 2>conftest.er1
36737   ac_status=$?
36738   grep -v '^ *+' conftest.er1 >conftest.err
36739   rm -f conftest.er1
36740   cat conftest.err >&5
36741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742   (exit $ac_status); } && {
36743          test -z "$ac_c_werror_flag" ||
36744          test ! -s conftest.err
36745        } && test -s conftest$ac_exeext &&
36746        $as_test_x conftest$ac_exeext; then
36747   eval "$as_ac_var=yes"
36748 else
36749   echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36751
36752         eval "$as_ac_var=no"
36753 fi
36754
36755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36756       conftest$ac_exeext conftest.$ac_ext
36757 fi
36758 ac_res=`eval echo '${'$as_ac_var'}'`
36759                { echo "$as_me:$LINENO: result: $ac_res" >&5
36760 echo "${ECHO_T}$ac_res" >&6; }
36761 if test `eval echo '${'$as_ac_var'}'` = yes; then
36762   cat >>confdefs.h <<_ACEOF
36763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36764 _ACEOF
36765
36766 fi
36767 done
36768
36769
36770 ac_ext=cpp
36771 ac_cpp='$CXXCPP $CPPFLAGS'
36772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36775
36776 if test "$ac_cv_func_vsnprintf" = "yes"; then
36777         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36778 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
36779 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36780   echo $ECHO_N "(cached) $ECHO_C" >&6
36781 else
36782
36783                                                             cat >conftest.$ac_ext <<_ACEOF
36784 /* confdefs.h.  */
36785 _ACEOF
36786 cat confdefs.h >>conftest.$ac_ext
36787 cat >>conftest.$ac_ext <<_ACEOF
36788 /* end confdefs.h.  */
36789
36790                     #include <stdio.h>
36791                     #include <stdarg.h>
36792                     #ifdef __MSL__
36793                     #if __MSL__ >= 0x6000
36794                     namespace std {}
36795                     using namespace std;
36796                     #endif
36797                     #endif
36798
36799 int
36800 main ()
36801 {
36802
36803                     char *buf;
36804                     va_list ap;
36805                     vsnprintf(buf, 10u, "%s", ap);
36806
36807   ;
36808   return 0;
36809 }
36810 _ACEOF
36811 rm -f conftest.$ac_objext
36812 if { (ac_try="$ac_compile"
36813 case "(($ac_try" in
36814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36815   *) ac_try_echo=$ac_try;;
36816 esac
36817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36818   (eval "$ac_compile") 2>conftest.er1
36819   ac_status=$?
36820   grep -v '^ *+' conftest.er1 >conftest.err
36821   rm -f conftest.er1
36822   cat conftest.err >&5
36823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824   (exit $ac_status); } && {
36825          test -z "$ac_cxx_werror_flag" ||
36826          test ! -s conftest.err
36827        } && test -s conftest.$ac_objext; then
36828   wx_cv_func_vsnprintf_decl=yes
36829 else
36830   echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36832
36833         wx_cv_func_vsnprintf_decl=no
36834
36835 fi
36836
36837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36838
36839
36840 fi
36841 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36842 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36843
36844     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36845         cat >>confdefs.h <<\_ACEOF
36846 #define HAVE_VSNPRINTF_DECL 1
36847 _ACEOF
36848
36849
36850                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36851 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
36852 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36853   echo $ECHO_N "(cached) $ECHO_C" >&6
36854 else
36855
36856                 cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h.  */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h.  */
36862
36863                         #include <stdio.h>
36864                         #include <stdarg.h>
36865                         #ifdef __MSL__
36866                         #if __MSL__ >= 0x6000
36867                         namespace std {}
36868                         using namespace std;
36869                         #endif
36870                         #endif
36871
36872 int
36873 main ()
36874 {
36875
36876                         char *buf;
36877                         va_list ap;
36878                         const char *fmt = "%s";
36879                         vsnprintf(buf, 10u, fmt, ap);
36880
36881   ;
36882   return 0;
36883 }
36884 _ACEOF
36885 rm -f conftest.$ac_objext
36886 if { (ac_try="$ac_compile"
36887 case "(($ac_try" in
36888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36889   *) ac_try_echo=$ac_try;;
36890 esac
36891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36892   (eval "$ac_compile") 2>conftest.er1
36893   ac_status=$?
36894   grep -v '^ *+' conftest.er1 >conftest.err
36895   rm -f conftest.er1
36896   cat conftest.err >&5
36897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898   (exit $ac_status); } && {
36899          test -z "$ac_cxx_werror_flag" ||
36900          test ! -s conftest.err
36901        } && test -s conftest.$ac_objext; then
36902   wx_cv_func_broken_vsnprintf_decl=no
36903 else
36904   echo "$as_me: failed program was:" >&5
36905 sed 's/^/| /' conftest.$ac_ext >&5
36906
36907         wx_cv_func_broken_vsnprintf_decl=yes
36908
36909 fi
36910
36911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36912
36913
36914 fi
36915 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36916 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
36917
36918         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36919             cat >>confdefs.h <<\_ACEOF
36920 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36921 _ACEOF
36922
36923         fi
36924     fi
36925 fi
36926
36927 if test "$ac_cv_func_snprintf" = "yes"; then
36928     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36929 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
36930 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36931   echo $ECHO_N "(cached) $ECHO_C" >&6
36932 else
36933
36934             cat >conftest.$ac_ext <<_ACEOF
36935 /* confdefs.h.  */
36936 _ACEOF
36937 cat confdefs.h >>conftest.$ac_ext
36938 cat >>conftest.$ac_ext <<_ACEOF
36939 /* end confdefs.h.  */
36940
36941                     #include <stdio.h>
36942                     #include <stdarg.h>
36943                     #ifdef __MSL__
36944                     #if __MSL__ >= 0x6000
36945                     namespace std {}
36946                     using namespace std;
36947                     #endif
36948                     #endif
36949
36950 int
36951 main ()
36952 {
36953
36954                     char *buf;
36955                     snprintf(buf, 10u, "%s", "wx");
36956
36957   ;
36958   return 0;
36959 }
36960 _ACEOF
36961 rm -f conftest.$ac_objext
36962 if { (ac_try="$ac_compile"
36963 case "(($ac_try" in
36964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36965   *) ac_try_echo=$ac_try;;
36966 esac
36967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36968   (eval "$ac_compile") 2>conftest.er1
36969   ac_status=$?
36970   grep -v '^ *+' conftest.er1 >conftest.err
36971   rm -f conftest.er1
36972   cat conftest.err >&5
36973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974   (exit $ac_status); } && {
36975          test -z "$ac_cxx_werror_flag" ||
36976          test ! -s conftest.err
36977        } && test -s conftest.$ac_objext; then
36978   wx_cv_func_snprintf_decl=yes
36979 else
36980   echo "$as_me: failed program was:" >&5
36981 sed 's/^/| /' conftest.$ac_ext >&5
36982
36983         wx_cv_func_snprintf_decl=no
36984
36985 fi
36986
36987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36988
36989
36990 fi
36991 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36992 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
36993
36994     if test "$wx_cv_func_snprintf_decl" = "yes"; then
36995         cat >>confdefs.h <<\_ACEOF
36996 #define HAVE_SNPRINTF_DECL 1
36997 _ACEOF
36998
36999     fi
37000
37001     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37002
37003                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37004 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37005 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37006   echo $ECHO_N "(cached) $ECHO_C" >&6
37007 else
37008
37009                 if test "$cross_compiling" = yes; then
37010
37011                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37012 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37013 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37014 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37015                         wx_cv_func_snprintf_pos_params=no
37016
37017
37018 else
37019   cat >conftest.$ac_ext <<_ACEOF
37020 /* confdefs.h.  */
37021 _ACEOF
37022 cat confdefs.h >>conftest.$ac_ext
37023 cat >>conftest.$ac_ext <<_ACEOF
37024 /* end confdefs.h.  */
37025
37026                         #include <stdio.h>
37027
37028                         int main (void)
37029                         {
37030                             char buffer[128];
37031                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37032                             if (strcmp ("2 3 1", buffer) == 0)
37033                                 exit (0);
37034                             exit (1);
37035                         }
37036
37037 _ACEOF
37038 rm -f conftest$ac_exeext
37039 if { (ac_try="$ac_link"
37040 case "(($ac_try" in
37041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37042   *) ac_try_echo=$ac_try;;
37043 esac
37044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37045   (eval "$ac_link") 2>&5
37046   ac_status=$?
37047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37049   { (case "(($ac_try" in
37050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37051   *) ac_try_echo=$ac_try;;
37052 esac
37053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37054   (eval "$ac_try") 2>&5
37055   ac_status=$?
37056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057   (exit $ac_status); }; }; then
37058   wx_cv_func_snprintf_pos_params=no
37059 else
37060   echo "$as_me: program exited with status $ac_status" >&5
37061 echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37063
37064 ( exit $ac_status )
37065 wx_cv_func_snprintf_pos_params=yes
37066 fi
37067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37068 fi
37069
37070
37071
37072
37073 fi
37074 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37075 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37076
37077         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37078             cat >>confdefs.h <<\_ACEOF
37079 #define HAVE_UNIX98_PRINTF 1
37080 _ACEOF
37081
37082         fi
37083     fi
37084 fi
37085
37086 if test "$ac_cv_func_vsscanf" = "yes"; then
37087     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37088 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37089 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37090   echo $ECHO_N "(cached) $ECHO_C" >&6
37091 else
37092
37093             cat >conftest.$ac_ext <<_ACEOF
37094 /* confdefs.h.  */
37095 _ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h.  */
37099
37100                     #include <stdio.h>
37101                     #include <stdarg.h>
37102                     #ifdef __MSL__
37103                     #if __MSL__ >= 0x6000
37104                     namespace std {}
37105                     using namespace std;
37106                     #endif
37107                     #endif
37108
37109 int
37110 main ()
37111 {
37112
37113                     char *buf;
37114                     va_list args;
37115                     vsscanf(buf, "%s", args);
37116
37117   ;
37118   return 0;
37119 }
37120 _ACEOF
37121 rm -f conftest.$ac_objext
37122 if { (ac_try="$ac_compile"
37123 case "(($ac_try" in
37124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37125   *) ac_try_echo=$ac_try;;
37126 esac
37127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37128   (eval "$ac_compile") 2>conftest.er1
37129   ac_status=$?
37130   grep -v '^ *+' conftest.er1 >conftest.err
37131   rm -f conftest.er1
37132   cat conftest.err >&5
37133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134   (exit $ac_status); } && {
37135          test -z "$ac_cxx_werror_flag" ||
37136          test ! -s conftest.err
37137        } && test -s conftest.$ac_objext; then
37138   wx_cv_func_vsscanf_decl=yes
37139 else
37140   echo "$as_me: failed program was:" >&5
37141 sed 's/^/| /' conftest.$ac_ext >&5
37142
37143         wx_cv_func_vsscanf_decl=no
37144
37145 fi
37146
37147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37148
37149
37150 fi
37151 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37152 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37153
37154     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37155         cat >>confdefs.h <<\_ACEOF
37156 #define HAVE_VSSCANF_DECL 1
37157 _ACEOF
37158
37159     fi
37160 fi
37161 ac_ext=c
37162 ac_cpp='$CPP $CPPFLAGS'
37163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37166
37167
37168 if test "$wxUSE_UNICODE" = yes; then
37169
37170             wchar_headers="#include <stdio.h>
37171 #include <wchar.h>"
37172     case "${host}" in
37173         *-*-solaris2* )
37174
37175 for ac_header in widec.h
37176 do
37177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37181   echo $ECHO_N "(cached) $ECHO_C" >&6
37182 else
37183   cat >conftest.$ac_ext <<_ACEOF
37184 /* confdefs.h.  */
37185 _ACEOF
37186 cat confdefs.h >>conftest.$ac_ext
37187 cat >>conftest.$ac_ext <<_ACEOF
37188 /* end confdefs.h.  */
37189 $ac_includes_default
37190
37191 #include <$ac_header>
37192 _ACEOF
37193 rm -f conftest.$ac_objext
37194 if { (ac_try="$ac_compile"
37195 case "(($ac_try" in
37196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197   *) ac_try_echo=$ac_try;;
37198 esac
37199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37200   (eval "$ac_compile") 2>conftest.er1
37201   ac_status=$?
37202   grep -v '^ *+' conftest.er1 >conftest.err
37203   rm -f conftest.er1
37204   cat conftest.err >&5
37205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206   (exit $ac_status); } && {
37207          test -z "$ac_c_werror_flag" ||
37208          test ! -s conftest.err
37209        } && test -s conftest.$ac_objext; then
37210   eval "$as_ac_Header=yes"
37211 else
37212   echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37214
37215         eval "$as_ac_Header=no"
37216 fi
37217
37218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37219 fi
37220 ac_res=`eval echo '${'$as_ac_Header'}'`
37221                { echo "$as_me:$LINENO: result: $ac_res" >&5
37222 echo "${ECHO_T}$ac_res" >&6; }
37223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37224   cat >>confdefs.h <<_ACEOF
37225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37226 _ACEOF
37227
37228 fi
37229
37230 done
37231
37232             if test "$ac_cv_header_widec_h" = "yes"; then
37233                 wchar_headers="$wchar_headers
37234 #include <widec.h>"
37235             fi
37236     esac
37237
37238
37239   for wx_func in putws fputws wprintf vswprintf vswscanf
37240   do
37241     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37242 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37243 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37244   echo $ECHO_N "(cached) $ECHO_C" >&6
37245 else
37246
37247         cat >conftest.$ac_ext <<_ACEOF
37248
37249             /* confdefs.h.  */
37250 _ACEOF
37251 cat confdefs.h >>conftest.$ac_ext
37252 cat >>conftest.$ac_ext <<_ACEOF
37253 /* end confdefs.h.  */
37254
37255                 $wchar_headers
37256                 $ac_includes_default
37257
37258 int
37259 main ()
37260 {
37261
37262                 #ifndef $wx_func
37263                   &$wx_func;
37264                 #endif
37265
37266
37267   ;
37268   return 0;
37269 }
37270
37271 _ACEOF
37272 rm -f conftest.$ac_objext conftest$ac_exeext
37273 if { (ac_try="$ac_link"
37274 case "(($ac_try" in
37275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37276   *) ac_try_echo=$ac_try;;
37277 esac
37278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37279   (eval "$ac_link") 2>conftest.er1
37280   ac_status=$?
37281   grep -v '^ *+' conftest.er1 >conftest.err
37282   rm -f conftest.er1
37283   cat conftest.err >&5
37284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285   (exit $ac_status); } && {
37286          test -z "$ac_c_werror_flag" ||
37287          test ! -s conftest.err
37288        } && test -s conftest$ac_exeext &&
37289        $as_test_x conftest$ac_exeext; then
37290   eval wx_cv_func_$wx_func=yes
37291 else
37292   echo "$as_me: failed program was:" >&5
37293 sed 's/^/| /' conftest.$ac_ext >&5
37294
37295         eval wx_cv_func_$wx_func=no
37296 fi
37297
37298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37299       conftest$ac_exeext conftest.$ac_ext
37300
37301 fi
37302 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37303                { echo "$as_me:$LINENO: result: $ac_res" >&5
37304 echo "${ECHO_T}$ac_res" >&6; }
37305
37306     if eval test \$wx_cv_func_$wx_func = yes
37307     then
37308       cat >>confdefs.h <<_ACEOF
37309 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37310 _ACEOF
37311
37312
37313     else
37314       :
37315
37316     fi
37317   done
37318
37319
37320                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37321 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37322     cat >conftest.$ac_ext <<_ACEOF
37323 /* confdefs.h.  */
37324 _ACEOF
37325 cat confdefs.h >>conftest.$ac_ext
37326 cat >>conftest.$ac_ext <<_ACEOF
37327 /* end confdefs.h.  */
37328 #include <wchar.h>
37329 int
37330 main ()
37331 {
37332 &_vsnwprintf;
37333   ;
37334   return 0;
37335 }
37336 _ACEOF
37337 rm -f conftest.$ac_objext
37338 if { (ac_try="$ac_compile"
37339 case "(($ac_try" in
37340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37341   *) ac_try_echo=$ac_try;;
37342 esac
37343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37344   (eval "$ac_compile") 2>conftest.er1
37345   ac_status=$?
37346   grep -v '^ *+' conftest.er1 >conftest.err
37347   rm -f conftest.er1
37348   cat conftest.err >&5
37349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350   (exit $ac_status); } && {
37351          test -z "$ac_c_werror_flag" ||
37352          test ! -s conftest.err
37353        } && test -s conftest.$ac_objext; then
37354   { echo "$as_me:$LINENO: result: yes" >&5
37355 echo "${ECHO_T}yes" >&6; }
37356                     cat >>confdefs.h <<\_ACEOF
37357 #define HAVE__VSNWPRINTF 1
37358 _ACEOF
37359
37360 else
37361   echo "$as_me: failed program was:" >&5
37362 sed 's/^/| /' conftest.$ac_ext >&5
37363
37364         { echo "$as_me:$LINENO: result: no" >&5
37365 echo "${ECHO_T}no" >&6; }
37366 fi
37367
37368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37369 fi
37370
37371 if test "$wxUSE_FILE" = "yes"; then
37372
37373   for wx_func in fsync
37374   do
37375     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37376 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37377 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37378   echo $ECHO_N "(cached) $ECHO_C" >&6
37379 else
37380
37381         cat >conftest.$ac_ext <<_ACEOF
37382
37383             /* confdefs.h.  */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h.  */
37388
37389
37390                 $ac_includes_default
37391
37392 int
37393 main ()
37394 {
37395
37396                 #ifndef $wx_func
37397                   &$wx_func;
37398                 #endif
37399
37400
37401   ;
37402   return 0;
37403 }
37404
37405 _ACEOF
37406 rm -f conftest.$ac_objext conftest$ac_exeext
37407 if { (ac_try="$ac_link"
37408 case "(($ac_try" in
37409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37410   *) ac_try_echo=$ac_try;;
37411 esac
37412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37413   (eval "$ac_link") 2>conftest.er1
37414   ac_status=$?
37415   grep -v '^ *+' conftest.er1 >conftest.err
37416   rm -f conftest.er1
37417   cat conftest.err >&5
37418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37419   (exit $ac_status); } && {
37420          test -z "$ac_c_werror_flag" ||
37421          test ! -s conftest.err
37422        } && test -s conftest$ac_exeext &&
37423        $as_test_x conftest$ac_exeext; then
37424   eval wx_cv_func_$wx_func=yes
37425 else
37426   echo "$as_me: failed program was:" >&5
37427 sed 's/^/| /' conftest.$ac_ext >&5
37428
37429         eval wx_cv_func_$wx_func=no
37430 fi
37431
37432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37433       conftest$ac_exeext conftest.$ac_ext
37434
37435 fi
37436 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37437                { echo "$as_me:$LINENO: result: $ac_res" >&5
37438 echo "${ECHO_T}$ac_res" >&6; }
37439
37440     if eval test \$wx_cv_func_$wx_func = yes
37441     then
37442       cat >>confdefs.h <<_ACEOF
37443 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37444 _ACEOF
37445
37446
37447     else
37448       :
37449
37450     fi
37451   done
37452
37453 fi
37454
37455 ac_ext=cpp
37456 ac_cpp='$CXXCPP $CPPFLAGS'
37457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37460
37461
37462   for wx_func in round
37463   do
37464     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37465 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37466 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37467   echo $ECHO_N "(cached) $ECHO_C" >&6
37468 else
37469
37470         cat >conftest.$ac_ext <<_ACEOF
37471
37472             /* confdefs.h.  */
37473 _ACEOF
37474 cat confdefs.h >>conftest.$ac_ext
37475 cat >>conftest.$ac_ext <<_ACEOF
37476 /* end confdefs.h.  */
37477
37478                 #include <math.h>
37479                 $ac_includes_default
37480
37481 int
37482 main ()
37483 {
37484
37485                 #ifndef $wx_func
37486                   &$wx_func;
37487                 #endif
37488
37489
37490   ;
37491   return 0;
37492 }
37493
37494 _ACEOF
37495 rm -f conftest.$ac_objext conftest$ac_exeext
37496 if { (ac_try="$ac_link"
37497 case "(($ac_try" in
37498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499   *) ac_try_echo=$ac_try;;
37500 esac
37501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37502   (eval "$ac_link") 2>conftest.er1
37503   ac_status=$?
37504   grep -v '^ *+' conftest.er1 >conftest.err
37505   rm -f conftest.er1
37506   cat conftest.err >&5
37507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508   (exit $ac_status); } && {
37509          test -z "$ac_cxx_werror_flag" ||
37510          test ! -s conftest.err
37511        } && test -s conftest$ac_exeext &&
37512        $as_test_x conftest$ac_exeext; then
37513   eval wx_cv_func_$wx_func=yes
37514 else
37515   echo "$as_me: failed program was:" >&5
37516 sed 's/^/| /' conftest.$ac_ext >&5
37517
37518         eval wx_cv_func_$wx_func=no
37519 fi
37520
37521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37522       conftest$ac_exeext conftest.$ac_ext
37523
37524 fi
37525 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37526                { echo "$as_me:$LINENO: result: $ac_res" >&5
37527 echo "${ECHO_T}$ac_res" >&6; }
37528
37529     if eval test \$wx_cv_func_$wx_func = yes
37530     then
37531       cat >>confdefs.h <<_ACEOF
37532 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37533 _ACEOF
37534
37535
37536     else
37537       :
37538
37539     fi
37540   done
37541
37542 ac_ext=c
37543 ac_cpp='$CPP $CPPFLAGS'
37544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37547
37548
37549 if test "$TOOLKIT" != "MSW"; then
37550
37551 if test "$wxUSE_LIBICONV" != "no" ; then
37552
37553
37554
37555 # Check whether --with-libiconv-prefix was given.
37556 if test "${with_libiconv_prefix+set}" = set; then
37557   withval=$with_libiconv_prefix;
37558     for dir in `echo "$withval" | tr : ' '`; do
37559       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37560       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37561     done
37562
37563 fi
37564
37565
37566   { echo "$as_me:$LINENO: checking for iconv" >&5
37567 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37568 if test "${am_cv_func_iconv+set}" = set; then
37569   echo $ECHO_N "(cached) $ECHO_C" >&6
37570 else
37571
37572     am_cv_func_iconv="no, consider installing GNU libiconv"
37573     am_cv_lib_iconv=no
37574     cat >conftest.$ac_ext <<_ACEOF
37575 /* confdefs.h.  */
37576 _ACEOF
37577 cat confdefs.h >>conftest.$ac_ext
37578 cat >>conftest.$ac_ext <<_ACEOF
37579 /* end confdefs.h.  */
37580 #include <stdlib.h>
37581 #include <iconv.h>
37582 int
37583 main ()
37584 {
37585 iconv_t cd = iconv_open("","");
37586        iconv(cd,NULL,NULL,NULL,NULL);
37587        iconv_close(cd);
37588   ;
37589   return 0;
37590 }
37591 _ACEOF
37592 rm -f conftest.$ac_objext conftest$ac_exeext
37593 if { (ac_try="$ac_link"
37594 case "(($ac_try" in
37595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37596   *) ac_try_echo=$ac_try;;
37597 esac
37598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37599   (eval "$ac_link") 2>conftest.er1
37600   ac_status=$?
37601   grep -v '^ *+' conftest.er1 >conftest.err
37602   rm -f conftest.er1
37603   cat conftest.err >&5
37604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605   (exit $ac_status); } && {
37606          test -z "$ac_c_werror_flag" ||
37607          test ! -s conftest.err
37608        } && test -s conftest$ac_exeext &&
37609        $as_test_x conftest$ac_exeext; then
37610   am_cv_func_iconv=yes
37611 else
37612   echo "$as_me: failed program was:" >&5
37613 sed 's/^/| /' conftest.$ac_ext >&5
37614
37615
37616 fi
37617
37618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37619       conftest$ac_exeext conftest.$ac_ext
37620     if test "$am_cv_func_iconv" != yes; then
37621       am_save_LIBS="$LIBS"
37622       LIBS="$LIBS -liconv"
37623       cat >conftest.$ac_ext <<_ACEOF
37624 /* confdefs.h.  */
37625 _ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h.  */
37629 #include <stdlib.h>
37630 #include <iconv.h>
37631 int
37632 main ()
37633 {
37634 iconv_t cd = iconv_open("","");
37635          iconv(cd,NULL,NULL,NULL,NULL);
37636          iconv_close(cd);
37637   ;
37638   return 0;
37639 }
37640 _ACEOF
37641 rm -f conftest.$ac_objext conftest$ac_exeext
37642 if { (ac_try="$ac_link"
37643 case "(($ac_try" in
37644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645   *) ac_try_echo=$ac_try;;
37646 esac
37647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37648   (eval "$ac_link") 2>conftest.er1
37649   ac_status=$?
37650   grep -v '^ *+' conftest.er1 >conftest.err
37651   rm -f conftest.er1
37652   cat conftest.err >&5
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); } && {
37655          test -z "$ac_c_werror_flag" ||
37656          test ! -s conftest.err
37657        } && test -s conftest$ac_exeext &&
37658        $as_test_x conftest$ac_exeext; then
37659   am_cv_lib_iconv=yes
37660         am_cv_func_iconv=yes
37661 else
37662   echo "$as_me: failed program was:" >&5
37663 sed 's/^/| /' conftest.$ac_ext >&5
37664
37665
37666 fi
37667
37668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37669       conftest$ac_exeext conftest.$ac_ext
37670       LIBS="$am_save_LIBS"
37671     fi
37672
37673 fi
37674 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37675 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37676   if test "$am_cv_func_iconv" = yes; then
37677
37678 cat >>confdefs.h <<\_ACEOF
37679 #define HAVE_ICONV 1
37680 _ACEOF
37681
37682     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37683 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37684 if test "${wx_cv_func_iconv_const+set}" = set; then
37685   echo $ECHO_N "(cached) $ECHO_C" >&6
37686 else
37687   cat >conftest.$ac_ext <<_ACEOF
37688 /* confdefs.h.  */
37689 _ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h.  */
37693
37694 #include <stdlib.h>
37695 #include <iconv.h>
37696 extern
37697 #ifdef __cplusplus
37698 "C"
37699 #endif
37700 #if defined(__STDC__) || defined(__cplusplus)
37701 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37702 #else
37703 size_t iconv();
37704 #endif
37705
37706 int
37707 main ()
37708 {
37709
37710   ;
37711   return 0;
37712 }
37713 _ACEOF
37714 rm -f conftest.$ac_objext
37715 if { (ac_try="$ac_compile"
37716 case "(($ac_try" in
37717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37718   *) ac_try_echo=$ac_try;;
37719 esac
37720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37721   (eval "$ac_compile") 2>conftest.er1
37722   ac_status=$?
37723   grep -v '^ *+' conftest.er1 >conftest.err
37724   rm -f conftest.er1
37725   cat conftest.err >&5
37726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37727   (exit $ac_status); } && {
37728          test -z "$ac_c_werror_flag" ||
37729          test ! -s conftest.err
37730        } && test -s conftest.$ac_objext; then
37731   wx_cv_func_iconv_const="no"
37732 else
37733   echo "$as_me: failed program was:" >&5
37734 sed 's/^/| /' conftest.$ac_ext >&5
37735
37736         wx_cv_func_iconv_const="yes"
37737
37738 fi
37739
37740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37741
37742 fi
37743 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37744 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
37745
37746     iconv_const=
37747     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37748         iconv_const="const"
37749     fi
37750
37751
37752 cat >>confdefs.h <<_ACEOF
37753 #define ICONV_CONST $iconv_const
37754 _ACEOF
37755
37756   fi
37757   LIBICONV=
37758   if test "$am_cv_lib_iconv" = yes; then
37759     LIBICONV="-liconv"
37760   fi
37761
37762
37763     LIBS="$LIBICONV $LIBS"
37764 fi
37765
37766 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37767
37768 for ac_func in sigaction
37769 do
37770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37774   echo $ECHO_N "(cached) $ECHO_C" >&6
37775 else
37776   cat >conftest.$ac_ext <<_ACEOF
37777 /* confdefs.h.  */
37778 _ACEOF
37779 cat confdefs.h >>conftest.$ac_ext
37780 cat >>conftest.$ac_ext <<_ACEOF
37781 /* end confdefs.h.  */
37782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37784 #define $ac_func innocuous_$ac_func
37785
37786 /* System header to define __stub macros and hopefully few prototypes,
37787     which can conflict with char $ac_func (); below.
37788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37789     <limits.h> exists even on freestanding compilers.  */
37790
37791 #ifdef __STDC__
37792 # include <limits.h>
37793 #else
37794 # include <assert.h>
37795 #endif
37796
37797 #undef $ac_func
37798
37799 /* Override any GCC internal prototype to avoid an error.
37800    Use char because int might match the return type of a GCC
37801    builtin and then its argument prototype would still apply.  */
37802 #ifdef __cplusplus
37803 extern "C"
37804 #endif
37805 char $ac_func ();
37806 /* The GNU C library defines this for functions which it implements
37807     to always fail with ENOSYS.  Some functions are actually named
37808     something starting with __ and the normal name is an alias.  */
37809 #if defined __stub_$ac_func || defined __stub___$ac_func
37810 choke me
37811 #endif
37812
37813 int
37814 main ()
37815 {
37816 return $ac_func ();
37817   ;
37818   return 0;
37819 }
37820 _ACEOF
37821 rm -f conftest.$ac_objext conftest$ac_exeext
37822 if { (ac_try="$ac_link"
37823 case "(($ac_try" in
37824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37825   *) ac_try_echo=$ac_try;;
37826 esac
37827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37828   (eval "$ac_link") 2>conftest.er1
37829   ac_status=$?
37830   grep -v '^ *+' conftest.er1 >conftest.err
37831   rm -f conftest.er1
37832   cat conftest.err >&5
37833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834   (exit $ac_status); } && {
37835          test -z "$ac_c_werror_flag" ||
37836          test ! -s conftest.err
37837        } && test -s conftest$ac_exeext &&
37838        $as_test_x conftest$ac_exeext; then
37839   eval "$as_ac_var=yes"
37840 else
37841   echo "$as_me: failed program was:" >&5
37842 sed 's/^/| /' conftest.$ac_ext >&5
37843
37844         eval "$as_ac_var=no"
37845 fi
37846
37847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37848       conftest$ac_exeext conftest.$ac_ext
37849 fi
37850 ac_res=`eval echo '${'$as_ac_var'}'`
37851                { echo "$as_me:$LINENO: result: $ac_res" >&5
37852 echo "${ECHO_T}$ac_res" >&6; }
37853 if test `eval echo '${'$as_ac_var'}'` = yes; then
37854   cat >>confdefs.h <<_ACEOF
37855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37856 _ACEOF
37857
37858 fi
37859 done
37860
37861
37862     if test "$ac_cv_func_sigaction" = "no"; then
37863         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37864 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37865         wxUSE_ON_FATAL_EXCEPTION=no
37866     fi
37867
37868     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37869       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37870 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
37871 if test "${wx_cv_type_sa_handler+set}" = set; then
37872   echo $ECHO_N "(cached) $ECHO_C" >&6
37873 else
37874
37875                 ac_ext=cpp
37876 ac_cpp='$CXXCPP $CPPFLAGS'
37877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37880
37881         cat >conftest.$ac_ext <<_ACEOF
37882 /* confdefs.h.  */
37883 _ACEOF
37884 cat confdefs.h >>conftest.$ac_ext
37885 cat >>conftest.$ac_ext <<_ACEOF
37886 /* end confdefs.h.  */
37887 #include <signal.h>
37888 int
37889 main ()
37890 {
37891
37892                         extern void testSigHandler(int);
37893
37894                         struct sigaction sa;
37895                         sa.sa_handler = testSigHandler;
37896
37897   ;
37898   return 0;
37899 }
37900 _ACEOF
37901 rm -f conftest.$ac_objext
37902 if { (ac_try="$ac_compile"
37903 case "(($ac_try" in
37904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37905   *) ac_try_echo=$ac_try;;
37906 esac
37907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37908   (eval "$ac_compile") 2>conftest.er1
37909   ac_status=$?
37910   grep -v '^ *+' conftest.er1 >conftest.err
37911   rm -f conftest.er1
37912   cat conftest.err >&5
37913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914   (exit $ac_status); } && {
37915          test -z "$ac_cxx_werror_flag" ||
37916          test ! -s conftest.err
37917        } && test -s conftest.$ac_objext; then
37918
37919                         wx_cv_type_sa_handler=int
37920
37921 else
37922   echo "$as_me: failed program was:" >&5
37923 sed 's/^/| /' conftest.$ac_ext >&5
37924
37925
37926                         wx_cv_type_sa_handler=void
37927
37928 fi
37929
37930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37931         ac_ext=c
37932 ac_cpp='$CPP $CPPFLAGS'
37933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37936
37937
37938 fi
37939 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37940 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
37941
37942       cat >>confdefs.h <<_ACEOF
37943 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37944 _ACEOF
37945
37946     fi
37947 fi
37948
37949 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37950     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37951 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
37952 if test "${wx_cv_func_backtrace+set}" = set; then
37953   echo $ECHO_N "(cached) $ECHO_C" >&6
37954 else
37955
37956             ac_ext=cpp
37957 ac_cpp='$CXXCPP $CPPFLAGS'
37958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37961
37962             cat >conftest.$ac_ext <<_ACEOF
37963 /* confdefs.h.  */
37964 _ACEOF
37965 cat confdefs.h >>conftest.$ac_ext
37966 cat >>conftest.$ac_ext <<_ACEOF
37967 /* end confdefs.h.  */
37968 #include <execinfo.h>
37969 int
37970 main ()
37971 {
37972
37973                     void *trace[1];
37974                     char **messages;
37975
37976                     backtrace(trace, 1);
37977                     messages = backtrace_symbols(trace, 1);
37978
37979   ;
37980   return 0;
37981 }
37982 _ACEOF
37983 rm -f conftest.$ac_objext
37984 if { (ac_try="$ac_compile"
37985 case "(($ac_try" in
37986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37987   *) ac_try_echo=$ac_try;;
37988 esac
37989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37990   (eval "$ac_compile") 2>conftest.er1
37991   ac_status=$?
37992   grep -v '^ *+' conftest.er1 >conftest.err
37993   rm -f conftest.er1
37994   cat conftest.err >&5
37995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996   (exit $ac_status); } && {
37997          test -z "$ac_cxx_werror_flag" ||
37998          test ! -s conftest.err
37999        } && test -s conftest.$ac_objext; then
38000   wx_cv_func_backtrace=yes
38001 else
38002   echo "$as_me: failed program was:" >&5
38003 sed 's/^/| /' conftest.$ac_ext >&5
38004
38005         wx_cv_func_backtrace=no
38006
38007 fi
38008
38009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38010             ac_ext=c
38011 ac_cpp='$CPP $CPPFLAGS'
38012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38015
38016
38017
38018 fi
38019 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38020 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38021
38022
38023     if test "$wx_cv_func_backtrace" = "no"; then
38024         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38025 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38026         wxUSE_STACKWALKER=no
38027     else
38028         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38029 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38030 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38031   echo $ECHO_N "(cached) $ECHO_C" >&6
38032 else
38033
38034                 ac_ext=cpp
38035 ac_cpp='$CXXCPP $CPPFLAGS'
38036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38039
38040                 cat >conftest.$ac_ext <<_ACEOF
38041 /* confdefs.h.  */
38042 _ACEOF
38043 cat confdefs.h >>conftest.$ac_ext
38044 cat >>conftest.$ac_ext <<_ACEOF
38045 /* end confdefs.h.  */
38046 #include <cxxabi.h>
38047 int
38048 main ()
38049 {
38050
38051                         int rc;
38052                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38053
38054   ;
38055   return 0;
38056 }
38057 _ACEOF
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (ac_try="$ac_link"
38060 case "(($ac_try" in
38061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062   *) ac_try_echo=$ac_try;;
38063 esac
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065   (eval "$ac_link") 2>conftest.er1
38066   ac_status=$?
38067   grep -v '^ *+' conftest.er1 >conftest.err
38068   rm -f conftest.er1
38069   cat conftest.err >&5
38070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071   (exit $ac_status); } && {
38072          test -z "$ac_cxx_werror_flag" ||
38073          test ! -s conftest.err
38074        } && test -s conftest$ac_exeext &&
38075        $as_test_x conftest$ac_exeext; then
38076   wx_cv_func_cxa_demangle=yes
38077 else
38078   echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38080
38081         wx_cv_func_cxa_demangle=no
38082
38083 fi
38084
38085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38086       conftest$ac_exeext conftest.$ac_ext
38087                 ac_ext=c
38088 ac_cpp='$CPP $CPPFLAGS'
38089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38092
38093
38094
38095 fi
38096 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38097 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38098
38099         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38100             cat >>confdefs.h <<\_ACEOF
38101 #define HAVE_CXA_DEMANGLE 1
38102 _ACEOF
38103
38104         fi
38105     fi
38106 fi
38107
38108 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38109     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38110 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38111     wxUSE_STACKWALKER=no
38112 fi
38113
38114
38115
38116
38117 for ac_func in mkstemp mktemp
38118 do
38119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38123   echo $ECHO_N "(cached) $ECHO_C" >&6
38124 else
38125   cat >conftest.$ac_ext <<_ACEOF
38126 /* confdefs.h.  */
38127 _ACEOF
38128 cat confdefs.h >>conftest.$ac_ext
38129 cat >>conftest.$ac_ext <<_ACEOF
38130 /* end confdefs.h.  */
38131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38133 #define $ac_func innocuous_$ac_func
38134
38135 /* System header to define __stub macros and hopefully few prototypes,
38136     which can conflict with char $ac_func (); below.
38137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38138     <limits.h> exists even on freestanding compilers.  */
38139
38140 #ifdef __STDC__
38141 # include <limits.h>
38142 #else
38143 # include <assert.h>
38144 #endif
38145
38146 #undef $ac_func
38147
38148 /* Override any GCC internal prototype to avoid an error.
38149    Use char because int might match the return type of a GCC
38150    builtin and then its argument prototype would still apply.  */
38151 #ifdef __cplusplus
38152 extern "C"
38153 #endif
38154 char $ac_func ();
38155 /* The GNU C library defines this for functions which it implements
38156     to always fail with ENOSYS.  Some functions are actually named
38157     something starting with __ and the normal name is an alias.  */
38158 #if defined __stub_$ac_func || defined __stub___$ac_func
38159 choke me
38160 #endif
38161
38162 int
38163 main ()
38164 {
38165 return $ac_func ();
38166   ;
38167   return 0;
38168 }
38169 _ACEOF
38170 rm -f conftest.$ac_objext conftest$ac_exeext
38171 if { (ac_try="$ac_link"
38172 case "(($ac_try" in
38173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38174   *) ac_try_echo=$ac_try;;
38175 esac
38176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38177   (eval "$ac_link") 2>conftest.er1
38178   ac_status=$?
38179   grep -v '^ *+' conftest.er1 >conftest.err
38180   rm -f conftest.er1
38181   cat conftest.err >&5
38182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183   (exit $ac_status); } && {
38184          test -z "$ac_c_werror_flag" ||
38185          test ! -s conftest.err
38186        } && test -s conftest$ac_exeext &&
38187        $as_test_x conftest$ac_exeext; then
38188   eval "$as_ac_var=yes"
38189 else
38190   echo "$as_me: failed program was:" >&5
38191 sed 's/^/| /' conftest.$ac_ext >&5
38192
38193         eval "$as_ac_var=no"
38194 fi
38195
38196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38197       conftest$ac_exeext conftest.$ac_ext
38198 fi
38199 ac_res=`eval echo '${'$as_ac_var'}'`
38200                { echo "$as_me:$LINENO: result: $ac_res" >&5
38201 echo "${ECHO_T}$ac_res" >&6; }
38202 if test `eval echo '${'$as_ac_var'}'` = yes; then
38203   cat >>confdefs.h <<_ACEOF
38204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38205 _ACEOF
38206  break
38207 fi
38208 done
38209
38210
38211 { echo "$as_me:$LINENO: checking for statfs" >&5
38212 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38213 if test "${wx_cv_func_statfs+set}" = set; then
38214   echo $ECHO_N "(cached) $ECHO_C" >&6
38215 else
38216   cat >conftest.$ac_ext <<_ACEOF
38217 /* confdefs.h.  */
38218 _ACEOF
38219 cat confdefs.h >>conftest.$ac_ext
38220 cat >>conftest.$ac_ext <<_ACEOF
38221 /* end confdefs.h.  */
38222
38223              #if defined(__BSD__)
38224              #include <sys/param.h>
38225              #include <sys/mount.h>
38226              #else
38227              #include <sys/vfs.h>
38228              #endif
38229
38230 int
38231 main ()
38232 {
38233
38234              long l;
38235              struct statfs fs;
38236              statfs("/", &fs);
38237              l = fs.f_bsize;
38238              l += fs.f_blocks;
38239              l += fs.f_bavail;
38240
38241   ;
38242   return 0;
38243 }
38244 _ACEOF
38245 rm -f conftest.$ac_objext
38246 if { (ac_try="$ac_compile"
38247 case "(($ac_try" in
38248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38249   *) ac_try_echo=$ac_try;;
38250 esac
38251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38252   (eval "$ac_compile") 2>conftest.er1
38253   ac_status=$?
38254   grep -v '^ *+' conftest.er1 >conftest.err
38255   rm -f conftest.er1
38256   cat conftest.err >&5
38257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258   (exit $ac_status); } && {
38259          test -z "$ac_c_werror_flag" ||
38260          test ! -s conftest.err
38261        } && test -s conftest.$ac_objext; then
38262   wx_cv_func_statfs=yes
38263 else
38264   echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38266
38267         wx_cv_func_statfs=no
38268
38269 fi
38270
38271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38272
38273 fi
38274 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38275 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38276
38277 if test "$wx_cv_func_statfs" = "yes"; then
38278         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38279 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38280 if test "${wx_cv_func_statfs_decl+set}" = set; then
38281   echo $ECHO_N "(cached) $ECHO_C" >&6
38282 else
38283   ac_ext=cpp
38284 ac_cpp='$CXXCPP $CPPFLAGS'
38285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38288
38289         cat >conftest.$ac_ext <<_ACEOF
38290 /* confdefs.h.  */
38291 _ACEOF
38292 cat confdefs.h >>conftest.$ac_ext
38293 cat >>conftest.$ac_ext <<_ACEOF
38294 /* end confdefs.h.  */
38295
38296                  #if defined(__BSD__)
38297                  #include <sys/param.h>
38298                  #include <sys/mount.h>
38299                  #else
38300                  #include <sys/vfs.h>
38301                  #endif
38302
38303 int
38304 main ()
38305 {
38306
38307                 struct statfs fs;
38308                 statfs("", &fs);
38309
38310   ;
38311   return 0;
38312 }
38313 _ACEOF
38314 rm -f conftest.$ac_objext
38315 if { (ac_try="$ac_compile"
38316 case "(($ac_try" in
38317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38318   *) ac_try_echo=$ac_try;;
38319 esac
38320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38321   (eval "$ac_compile") 2>conftest.er1
38322   ac_status=$?
38323   grep -v '^ *+' conftest.er1 >conftest.err
38324   rm -f conftest.er1
38325   cat conftest.err >&5
38326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327   (exit $ac_status); } && {
38328          test -z "$ac_cxx_werror_flag" ||
38329          test ! -s conftest.err
38330        } && test -s conftest.$ac_objext; then
38331   wx_cv_func_statfs_decl=yes
38332 else
38333   echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38335
38336         wx_cv_func_statfs_decl=no
38337
38338 fi
38339
38340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38341         ac_ext=c
38342 ac_cpp='$CPP $CPPFLAGS'
38343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38346
38347
38348 fi
38349 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38350 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38351
38352     if test "$wx_cv_func_statfs_decl" = "yes"; then
38353         cat >>confdefs.h <<\_ACEOF
38354 #define HAVE_STATFS_DECL 1
38355 _ACEOF
38356
38357     fi
38358
38359     wx_cv_type_statvfs_t="struct statfs"
38360     cat >>confdefs.h <<\_ACEOF
38361 #define HAVE_STATFS 1
38362 _ACEOF
38363
38364 else
38365     { echo "$as_me:$LINENO: checking for statvfs" >&5
38366 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38367 if test "${wx_cv_func_statvfs+set}" = set; then
38368   echo $ECHO_N "(cached) $ECHO_C" >&6
38369 else
38370   cat >conftest.$ac_ext <<_ACEOF
38371 /* confdefs.h.  */
38372 _ACEOF
38373 cat confdefs.h >>conftest.$ac_ext
38374 cat >>conftest.$ac_ext <<_ACEOF
38375 /* end confdefs.h.  */
38376
38377                 #include <stddef.h>
38378                 #include <sys/statvfs.h>
38379
38380 int
38381 main ()
38382 {
38383
38384                 statvfs("/", NULL);
38385
38386   ;
38387   return 0;
38388 }
38389 _ACEOF
38390 rm -f conftest.$ac_objext
38391 if { (ac_try="$ac_compile"
38392 case "(($ac_try" in
38393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38394   *) ac_try_echo=$ac_try;;
38395 esac
38396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38397   (eval "$ac_compile") 2>conftest.er1
38398   ac_status=$?
38399   grep -v '^ *+' conftest.er1 >conftest.err
38400   rm -f conftest.er1
38401   cat conftest.err >&5
38402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403   (exit $ac_status); } && {
38404          test -z "$ac_c_werror_flag" ||
38405          test ! -s conftest.err
38406        } && test -s conftest.$ac_objext; then
38407   wx_cv_func_statvfs=yes
38408 else
38409   echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38411
38412         wx_cv_func_statvfs=no
38413
38414 fi
38415
38416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38417
38418 fi
38419 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38420 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38421
38422     if test "$wx_cv_func_statvfs" = "yes"; then
38423                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38424 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38425 if test "${wx_cv_type_statvfs_t+set}" = set; then
38426   echo $ECHO_N "(cached) $ECHO_C" >&6
38427 else
38428   ac_ext=cpp
38429 ac_cpp='$CXXCPP $CPPFLAGS'
38430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38433
38434             cat >conftest.$ac_ext <<_ACEOF
38435 /* confdefs.h.  */
38436 _ACEOF
38437 cat confdefs.h >>conftest.$ac_ext
38438 cat >>conftest.$ac_ext <<_ACEOF
38439 /* end confdefs.h.  */
38440
38441                     #include <sys/statvfs.h>
38442
38443 int
38444 main ()
38445 {
38446
38447                     long l;
38448                     statvfs_t fs;
38449                     statvfs("/", &fs);
38450                     l = fs.f_bsize;
38451                     l += fs.f_blocks;
38452                     l += fs.f_bavail;
38453
38454   ;
38455   return 0;
38456 }
38457 _ACEOF
38458 rm -f conftest.$ac_objext
38459 if { (ac_try="$ac_compile"
38460 case "(($ac_try" in
38461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38462   *) ac_try_echo=$ac_try;;
38463 esac
38464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38465   (eval "$ac_compile") 2>conftest.er1
38466   ac_status=$?
38467   grep -v '^ *+' conftest.er1 >conftest.err
38468   rm -f conftest.er1
38469   cat conftest.err >&5
38470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471   (exit $ac_status); } && {
38472          test -z "$ac_cxx_werror_flag" ||
38473          test ! -s conftest.err
38474        } && test -s conftest.$ac_objext; then
38475   wx_cv_type_statvfs_t=statvfs_t
38476 else
38477   echo "$as_me: failed program was:" >&5
38478 sed 's/^/| /' conftest.$ac_ext >&5
38479
38480
38481                     cat >conftest.$ac_ext <<_ACEOF
38482 /* confdefs.h.  */
38483 _ACEOF
38484 cat confdefs.h >>conftest.$ac_ext
38485 cat >>conftest.$ac_ext <<_ACEOF
38486 /* end confdefs.h.  */
38487
38488                             #include <sys/statvfs.h>
38489
38490 int
38491 main ()
38492 {
38493
38494                             long l;
38495                             struct statvfs fs;
38496                             statvfs("/", &fs);
38497                             l = fs.f_bsize;
38498                             l += fs.f_blocks;
38499                             l += fs.f_bavail;
38500
38501   ;
38502   return 0;
38503 }
38504 _ACEOF
38505 rm -f conftest.$ac_objext
38506 if { (ac_try="$ac_compile"
38507 case "(($ac_try" in
38508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38509   *) ac_try_echo=$ac_try;;
38510 esac
38511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38512   (eval "$ac_compile") 2>conftest.er1
38513   ac_status=$?
38514   grep -v '^ *+' conftest.er1 >conftest.err
38515   rm -f conftest.er1
38516   cat conftest.err >&5
38517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518   (exit $ac_status); } && {
38519          test -z "$ac_cxx_werror_flag" ||
38520          test ! -s conftest.err
38521        } && test -s conftest.$ac_objext; then
38522   wx_cv_type_statvfs_t="struct statvfs"
38523 else
38524   echo "$as_me: failed program was:" >&5
38525 sed 's/^/| /' conftest.$ac_ext >&5
38526
38527         wx_cv_type_statvfs_t="unknown"
38528
38529 fi
38530
38531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38532
38533
38534 fi
38535
38536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38537             ac_ext=c
38538 ac_cpp='$CPP $CPPFLAGS'
38539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38542
38543
38544 fi
38545 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38546 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38547
38548         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38549             cat >>confdefs.h <<\_ACEOF
38550 #define HAVE_STATVFS 1
38551 _ACEOF
38552
38553         fi
38554     else
38555                 wx_cv_type_statvfs_t="unknown"
38556     fi
38557 fi
38558
38559 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38560     cat >>confdefs.h <<_ACEOF
38561 #define WX_STATFS_T $wx_cv_type_statvfs_t
38562 _ACEOF
38563
38564 else
38565     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38566 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38567 fi
38568
38569 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38570
38571
38572 for ac_func in fcntl flock
38573 do
38574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38578   echo $ECHO_N "(cached) $ECHO_C" >&6
38579 else
38580   cat >conftest.$ac_ext <<_ACEOF
38581 /* confdefs.h.  */
38582 _ACEOF
38583 cat confdefs.h >>conftest.$ac_ext
38584 cat >>conftest.$ac_ext <<_ACEOF
38585 /* end confdefs.h.  */
38586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38588 #define $ac_func innocuous_$ac_func
38589
38590 /* System header to define __stub macros and hopefully few prototypes,
38591     which can conflict with char $ac_func (); below.
38592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38593     <limits.h> exists even on freestanding compilers.  */
38594
38595 #ifdef __STDC__
38596 # include <limits.h>
38597 #else
38598 # include <assert.h>
38599 #endif
38600
38601 #undef $ac_func
38602
38603 /* Override any GCC internal prototype to avoid an error.
38604    Use char because int might match the return type of a GCC
38605    builtin and then its argument prototype would still apply.  */
38606 #ifdef __cplusplus
38607 extern "C"
38608 #endif
38609 char $ac_func ();
38610 /* The GNU C library defines this for functions which it implements
38611     to always fail with ENOSYS.  Some functions are actually named
38612     something starting with __ and the normal name is an alias.  */
38613 #if defined __stub_$ac_func || defined __stub___$ac_func
38614 choke me
38615 #endif
38616
38617 int
38618 main ()
38619 {
38620 return $ac_func ();
38621   ;
38622   return 0;
38623 }
38624 _ACEOF
38625 rm -f conftest.$ac_objext conftest$ac_exeext
38626 if { (ac_try="$ac_link"
38627 case "(($ac_try" in
38628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38629   *) ac_try_echo=$ac_try;;
38630 esac
38631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38632   (eval "$ac_link") 2>conftest.er1
38633   ac_status=$?
38634   grep -v '^ *+' conftest.er1 >conftest.err
38635   rm -f conftest.er1
38636   cat conftest.err >&5
38637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638   (exit $ac_status); } && {
38639          test -z "$ac_c_werror_flag" ||
38640          test ! -s conftest.err
38641        } && test -s conftest$ac_exeext &&
38642        $as_test_x conftest$ac_exeext; then
38643   eval "$as_ac_var=yes"
38644 else
38645   echo "$as_me: failed program was:" >&5
38646 sed 's/^/| /' conftest.$ac_ext >&5
38647
38648         eval "$as_ac_var=no"
38649 fi
38650
38651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38652       conftest$ac_exeext conftest.$ac_ext
38653 fi
38654 ac_res=`eval echo '${'$as_ac_var'}'`
38655                { echo "$as_me:$LINENO: result: $ac_res" >&5
38656 echo "${ECHO_T}$ac_res" >&6; }
38657 if test `eval echo '${'$as_ac_var'}'` = yes; then
38658   cat >>confdefs.h <<_ACEOF
38659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38660 _ACEOF
38661  break
38662 fi
38663 done
38664
38665
38666     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38667         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38668 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38669         wxUSE_SNGLINST_CHECKER=no
38670     fi
38671 fi
38672
38673
38674
38675 for ac_func in setenv putenv
38676 do
38677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38681   echo $ECHO_N "(cached) $ECHO_C" >&6
38682 else
38683   cat >conftest.$ac_ext <<_ACEOF
38684 /* confdefs.h.  */
38685 _ACEOF
38686 cat confdefs.h >>conftest.$ac_ext
38687 cat >>conftest.$ac_ext <<_ACEOF
38688 /* end confdefs.h.  */
38689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38691 #define $ac_func innocuous_$ac_func
38692
38693 /* System header to define __stub macros and hopefully few prototypes,
38694     which can conflict with char $ac_func (); below.
38695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38696     <limits.h> exists even on freestanding compilers.  */
38697
38698 #ifdef __STDC__
38699 # include <limits.h>
38700 #else
38701 # include <assert.h>
38702 #endif
38703
38704 #undef $ac_func
38705
38706 /* Override any GCC internal prototype to avoid an error.
38707    Use char because int might match the return type of a GCC
38708    builtin and then its argument prototype would still apply.  */
38709 #ifdef __cplusplus
38710 extern "C"
38711 #endif
38712 char $ac_func ();
38713 /* The GNU C library defines this for functions which it implements
38714     to always fail with ENOSYS.  Some functions are actually named
38715     something starting with __ and the normal name is an alias.  */
38716 #if defined __stub_$ac_func || defined __stub___$ac_func
38717 choke me
38718 #endif
38719
38720 int
38721 main ()
38722 {
38723 return $ac_func ();
38724   ;
38725   return 0;
38726 }
38727 _ACEOF
38728 rm -f conftest.$ac_objext conftest$ac_exeext
38729 if { (ac_try="$ac_link"
38730 case "(($ac_try" in
38731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38732   *) ac_try_echo=$ac_try;;
38733 esac
38734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38735   (eval "$ac_link") 2>conftest.er1
38736   ac_status=$?
38737   grep -v '^ *+' conftest.er1 >conftest.err
38738   rm -f conftest.er1
38739   cat conftest.err >&5
38740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741   (exit $ac_status); } && {
38742          test -z "$ac_c_werror_flag" ||
38743          test ! -s conftest.err
38744        } && test -s conftest$ac_exeext &&
38745        $as_test_x conftest$ac_exeext; then
38746   eval "$as_ac_var=yes"
38747 else
38748   echo "$as_me: failed program was:" >&5
38749 sed 's/^/| /' conftest.$ac_ext >&5
38750
38751         eval "$as_ac_var=no"
38752 fi
38753
38754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38755       conftest$ac_exeext conftest.$ac_ext
38756 fi
38757 ac_res=`eval echo '${'$as_ac_var'}'`
38758                { echo "$as_me:$LINENO: result: $ac_res" >&5
38759 echo "${ECHO_T}$ac_res" >&6; }
38760 if test `eval echo '${'$as_ac_var'}'` = yes; then
38761   cat >>confdefs.h <<_ACEOF
38762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38763 _ACEOF
38764  break
38765 fi
38766 done
38767
38768 if test "$ac_cv_func_setenv" = "yes"; then
38769
38770 for ac_func in unsetenv
38771 do
38772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38776   echo $ECHO_N "(cached) $ECHO_C" >&6
38777 else
38778   cat >conftest.$ac_ext <<_ACEOF
38779 /* confdefs.h.  */
38780 _ACEOF
38781 cat confdefs.h >>conftest.$ac_ext
38782 cat >>conftest.$ac_ext <<_ACEOF
38783 /* end confdefs.h.  */
38784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38786 #define $ac_func innocuous_$ac_func
38787
38788 /* System header to define __stub macros and hopefully few prototypes,
38789     which can conflict with char $ac_func (); below.
38790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38791     <limits.h> exists even on freestanding compilers.  */
38792
38793 #ifdef __STDC__
38794 # include <limits.h>
38795 #else
38796 # include <assert.h>
38797 #endif
38798
38799 #undef $ac_func
38800
38801 /* Override any GCC internal prototype to avoid an error.
38802    Use char because int might match the return type of a GCC
38803    builtin and then its argument prototype would still apply.  */
38804 #ifdef __cplusplus
38805 extern "C"
38806 #endif
38807 char $ac_func ();
38808 /* The GNU C library defines this for functions which it implements
38809     to always fail with ENOSYS.  Some functions are actually named
38810     something starting with __ and the normal name is an alias.  */
38811 #if defined __stub_$ac_func || defined __stub___$ac_func
38812 choke me
38813 #endif
38814
38815 int
38816 main ()
38817 {
38818 return $ac_func ();
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   eval "$as_ac_var=yes"
38842 else
38843   echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38845
38846         eval "$as_ac_var=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 fi
38852 ac_res=`eval echo '${'$as_ac_var'}'`
38853                { echo "$as_me:$LINENO: result: $ac_res" >&5
38854 echo "${ECHO_T}$ac_res" >&6; }
38855 if test `eval echo '${'$as_ac_var'}'` = yes; then
38856   cat >>confdefs.h <<_ACEOF
38857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38858 _ACEOF
38859
38860 fi
38861 done
38862
38863 fi
38864
38865 HAVE_SOME_SLEEP_FUNC=0
38866 if test "$USE_BEOS" = 1; then
38867             cat >>confdefs.h <<\_ACEOF
38868 #define HAVE_SLEEP 1
38869 _ACEOF
38870
38871     HAVE_SOME_SLEEP_FUNC=1
38872 fi
38873
38874 if test "$USE_DARWIN" = 1; then
38875             cat >>confdefs.h <<\_ACEOF
38876 #define HAVE_USLEEP 1
38877 _ACEOF
38878
38879     HAVE_SOME_SLEEP_FUNC=1
38880 fi
38881
38882 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38883         POSIX4_LINK=
38884
38885 for ac_func in nanosleep
38886 do
38887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38891   echo $ECHO_N "(cached) $ECHO_C" >&6
38892 else
38893   cat >conftest.$ac_ext <<_ACEOF
38894 /* confdefs.h.  */
38895 _ACEOF
38896 cat confdefs.h >>conftest.$ac_ext
38897 cat >>conftest.$ac_ext <<_ACEOF
38898 /* end confdefs.h.  */
38899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38901 #define $ac_func innocuous_$ac_func
38902
38903 /* System header to define __stub macros and hopefully few prototypes,
38904     which can conflict with char $ac_func (); below.
38905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38906     <limits.h> exists even on freestanding compilers.  */
38907
38908 #ifdef __STDC__
38909 # include <limits.h>
38910 #else
38911 # include <assert.h>
38912 #endif
38913
38914 #undef $ac_func
38915
38916 /* Override any GCC internal prototype to avoid an error.
38917    Use char because int might match the return type of a GCC
38918    builtin and then its argument prototype would still apply.  */
38919 #ifdef __cplusplus
38920 extern "C"
38921 #endif
38922 char $ac_func ();
38923 /* The GNU C library defines this for functions which it implements
38924     to always fail with ENOSYS.  Some functions are actually named
38925     something starting with __ and the normal name is an alias.  */
38926 #if defined __stub_$ac_func || defined __stub___$ac_func
38927 choke me
38928 #endif
38929
38930 int
38931 main ()
38932 {
38933 return $ac_func ();
38934   ;
38935   return 0;
38936 }
38937 _ACEOF
38938 rm -f conftest.$ac_objext conftest$ac_exeext
38939 if { (ac_try="$ac_link"
38940 case "(($ac_try" in
38941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942   *) ac_try_echo=$ac_try;;
38943 esac
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945   (eval "$ac_link") 2>conftest.er1
38946   ac_status=$?
38947   grep -v '^ *+' conftest.er1 >conftest.err
38948   rm -f conftest.er1
38949   cat conftest.err >&5
38950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951   (exit $ac_status); } && {
38952          test -z "$ac_c_werror_flag" ||
38953          test ! -s conftest.err
38954        } && test -s conftest$ac_exeext &&
38955        $as_test_x conftest$ac_exeext; then
38956   eval "$as_ac_var=yes"
38957 else
38958   echo "$as_me: failed program was:" >&5
38959 sed 's/^/| /' conftest.$ac_ext >&5
38960
38961         eval "$as_ac_var=no"
38962 fi
38963
38964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38965       conftest$ac_exeext conftest.$ac_ext
38966 fi
38967 ac_res=`eval echo '${'$as_ac_var'}'`
38968                { echo "$as_me:$LINENO: result: $ac_res" >&5
38969 echo "${ECHO_T}$ac_res" >&6; }
38970 if test `eval echo '${'$as_ac_var'}'` = yes; then
38971   cat >>confdefs.h <<_ACEOF
38972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38973 _ACEOF
38974  cat >>confdefs.h <<\_ACEOF
38975 #define HAVE_NANOSLEEP 1
38976 _ACEOF
38977
38978 else
38979
38980             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38981 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
38982 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38983   echo $ECHO_N "(cached) $ECHO_C" >&6
38984 else
38985   ac_check_lib_save_LIBS=$LIBS
38986 LIBS="-lposix4  $LIBS"
38987 cat >conftest.$ac_ext <<_ACEOF
38988 /* confdefs.h.  */
38989 _ACEOF
38990 cat confdefs.h >>conftest.$ac_ext
38991 cat >>conftest.$ac_ext <<_ACEOF
38992 /* end confdefs.h.  */
38993
38994 /* Override any GCC internal prototype to avoid an error.
38995    Use char because int might match the return type of a GCC
38996    builtin and then its argument prototype would still apply.  */
38997 #ifdef __cplusplus
38998 extern "C"
38999 #endif
39000 char nanosleep ();
39001 int
39002 main ()
39003 {
39004 return nanosleep ();
39005   ;
39006   return 0;
39007 }
39008 _ACEOF
39009 rm -f conftest.$ac_objext conftest$ac_exeext
39010 if { (ac_try="$ac_link"
39011 case "(($ac_try" in
39012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39013   *) ac_try_echo=$ac_try;;
39014 esac
39015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39016   (eval "$ac_link") 2>conftest.er1
39017   ac_status=$?
39018   grep -v '^ *+' conftest.er1 >conftest.err
39019   rm -f conftest.er1
39020   cat conftest.err >&5
39021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022   (exit $ac_status); } && {
39023          test -z "$ac_c_werror_flag" ||
39024          test ! -s conftest.err
39025        } && test -s conftest$ac_exeext &&
39026        $as_test_x conftest$ac_exeext; then
39027   ac_cv_lib_posix4_nanosleep=yes
39028 else
39029   echo "$as_me: failed program was:" >&5
39030 sed 's/^/| /' conftest.$ac_ext >&5
39031
39032         ac_cv_lib_posix4_nanosleep=no
39033 fi
39034
39035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39036       conftest$ac_exeext conftest.$ac_ext
39037 LIBS=$ac_check_lib_save_LIBS
39038 fi
39039 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39040 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39041 if test $ac_cv_lib_posix4_nanosleep = yes; then
39042
39043                     cat >>confdefs.h <<\_ACEOF
39044 #define HAVE_NANOSLEEP 1
39045 _ACEOF
39046
39047                     POSIX4_LINK=" -lposix4"
39048
39049 else
39050
39051
39052   for wx_func in usleep
39053   do
39054     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39055 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39056 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39057   echo $ECHO_N "(cached) $ECHO_C" >&6
39058 else
39059
39060         cat >conftest.$ac_ext <<_ACEOF
39061
39062             /* confdefs.h.  */
39063 _ACEOF
39064 cat confdefs.h >>conftest.$ac_ext
39065 cat >>conftest.$ac_ext <<_ACEOF
39066 /* end confdefs.h.  */
39067
39068
39069                 $ac_includes_default
39070
39071 int
39072 main ()
39073 {
39074
39075                 #ifndef $wx_func
39076                   &$wx_func;
39077                 #endif
39078
39079
39080   ;
39081   return 0;
39082 }
39083
39084 _ACEOF
39085 rm -f conftest.$ac_objext conftest$ac_exeext
39086 if { (ac_try="$ac_link"
39087 case "(($ac_try" in
39088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39089   *) ac_try_echo=$ac_try;;
39090 esac
39091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39092   (eval "$ac_link") 2>conftest.er1
39093   ac_status=$?
39094   grep -v '^ *+' conftest.er1 >conftest.err
39095   rm -f conftest.er1
39096   cat conftest.err >&5
39097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098   (exit $ac_status); } && {
39099          test -z "$ac_c_werror_flag" ||
39100          test ! -s conftest.err
39101        } && test -s conftest$ac_exeext &&
39102        $as_test_x conftest$ac_exeext; then
39103   eval wx_cv_func_$wx_func=yes
39104 else
39105   echo "$as_me: failed program was:" >&5
39106 sed 's/^/| /' conftest.$ac_ext >&5
39107
39108         eval wx_cv_func_$wx_func=no
39109 fi
39110
39111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39112       conftest$ac_exeext conftest.$ac_ext
39113
39114 fi
39115 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39116                { echo "$as_me:$LINENO: result: $ac_res" >&5
39117 echo "${ECHO_T}$ac_res" >&6; }
39118
39119     if eval test \$wx_cv_func_$wx_func = yes
39120     then
39121       cat >>confdefs.h <<_ACEOF
39122 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39123 _ACEOF
39124
39125
39126     else
39127       :
39128       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39129 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39130
39131     fi
39132   done
39133
39134
39135
39136 fi
39137
39138
39139
39140 fi
39141 done
39142
39143 fi
39144
39145
39146   for wx_func in uname
39147   do
39148     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39149 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39150 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39151   echo $ECHO_N "(cached) $ECHO_C" >&6
39152 else
39153
39154         cat >conftest.$ac_ext <<_ACEOF
39155
39156             /* confdefs.h.  */
39157 _ACEOF
39158 cat confdefs.h >>conftest.$ac_ext
39159 cat >>conftest.$ac_ext <<_ACEOF
39160 /* end confdefs.h.  */
39161
39162                 #include <sys/utsname.h>
39163                 $ac_includes_default
39164
39165 int
39166 main ()
39167 {
39168
39169                 #ifndef $wx_func
39170                   &$wx_func;
39171                 #endif
39172
39173
39174   ;
39175   return 0;
39176 }
39177
39178 _ACEOF
39179 rm -f conftest.$ac_objext conftest$ac_exeext
39180 if { (ac_try="$ac_link"
39181 case "(($ac_try" in
39182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39183   *) ac_try_echo=$ac_try;;
39184 esac
39185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39186   (eval "$ac_link") 2>conftest.er1
39187   ac_status=$?
39188   grep -v '^ *+' conftest.er1 >conftest.err
39189   rm -f conftest.er1
39190   cat conftest.err >&5
39191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); } && {
39193          test -z "$ac_c_werror_flag" ||
39194          test ! -s conftest.err
39195        } && test -s conftest$ac_exeext &&
39196        $as_test_x conftest$ac_exeext; then
39197   eval wx_cv_func_$wx_func=yes
39198 else
39199   echo "$as_me: failed program was:" >&5
39200 sed 's/^/| /' conftest.$ac_ext >&5
39201
39202         eval wx_cv_func_$wx_func=no
39203 fi
39204
39205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39206       conftest$ac_exeext conftest.$ac_ext
39207
39208 fi
39209 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39210                { echo "$as_me:$LINENO: result: $ac_res" >&5
39211 echo "${ECHO_T}$ac_res" >&6; }
39212
39213     if eval test \$wx_cv_func_$wx_func = yes
39214     then
39215       cat >>confdefs.h <<_ACEOF
39216 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39217 _ACEOF
39218
39219
39220     else
39221       :
39222
39223     fi
39224   done
39225
39226 if test "$wx_cv_func_uname" != yes; then
39227
39228   for wx_func in gethostname
39229   do
39230     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39231 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39232 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39233   echo $ECHO_N "(cached) $ECHO_C" >&6
39234 else
39235
39236         cat >conftest.$ac_ext <<_ACEOF
39237
39238             /* confdefs.h.  */
39239 _ACEOF
39240 cat confdefs.h >>conftest.$ac_ext
39241 cat >>conftest.$ac_ext <<_ACEOF
39242 /* end confdefs.h.  */
39243
39244
39245                 $ac_includes_default
39246
39247 int
39248 main ()
39249 {
39250
39251                 #ifndef $wx_func
39252                   &$wx_func;
39253                 #endif
39254
39255
39256   ;
39257   return 0;
39258 }
39259
39260 _ACEOF
39261 rm -f conftest.$ac_objext conftest$ac_exeext
39262 if { (ac_try="$ac_link"
39263 case "(($ac_try" in
39264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39265   *) ac_try_echo=$ac_try;;
39266 esac
39267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39268   (eval "$ac_link") 2>conftest.er1
39269   ac_status=$?
39270   grep -v '^ *+' conftest.er1 >conftest.err
39271   rm -f conftest.er1
39272   cat conftest.err >&5
39273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274   (exit $ac_status); } && {
39275          test -z "$ac_c_werror_flag" ||
39276          test ! -s conftest.err
39277        } && test -s conftest$ac_exeext &&
39278        $as_test_x conftest$ac_exeext; then
39279   eval wx_cv_func_$wx_func=yes
39280 else
39281   echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39283
39284         eval wx_cv_func_$wx_func=no
39285 fi
39286
39287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39288       conftest$ac_exeext conftest.$ac_ext
39289
39290 fi
39291 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39292                { echo "$as_me:$LINENO: result: $ac_res" >&5
39293 echo "${ECHO_T}$ac_res" >&6; }
39294
39295     if eval test \$wx_cv_func_$wx_func = yes
39296     then
39297       cat >>confdefs.h <<_ACEOF
39298 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39299 _ACEOF
39300
39301
39302     else
39303       :
39304
39305     fi
39306   done
39307
39308 fi
39309
39310
39311   for wx_func in strtok_r
39312   do
39313     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39314 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39315 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39316   echo $ECHO_N "(cached) $ECHO_C" >&6
39317 else
39318
39319         cat >conftest.$ac_ext <<_ACEOF
39320
39321             /* confdefs.h.  */
39322 _ACEOF
39323 cat confdefs.h >>conftest.$ac_ext
39324 cat >>conftest.$ac_ext <<_ACEOF
39325 /* end confdefs.h.  */
39326
39327                 #define _REENTRANT
39328                 $ac_includes_default
39329
39330 int
39331 main ()
39332 {
39333
39334                 #ifndef $wx_func
39335                   &$wx_func;
39336                 #endif
39337
39338
39339   ;
39340   return 0;
39341 }
39342
39343 _ACEOF
39344 rm -f conftest.$ac_objext conftest$ac_exeext
39345 if { (ac_try="$ac_link"
39346 case "(($ac_try" in
39347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39348   *) ac_try_echo=$ac_try;;
39349 esac
39350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39351   (eval "$ac_link") 2>conftest.er1
39352   ac_status=$?
39353   grep -v '^ *+' conftest.er1 >conftest.err
39354   rm -f conftest.er1
39355   cat conftest.err >&5
39356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357   (exit $ac_status); } && {
39358          test -z "$ac_c_werror_flag" ||
39359          test ! -s conftest.err
39360        } && test -s conftest$ac_exeext &&
39361        $as_test_x conftest$ac_exeext; then
39362   eval wx_cv_func_$wx_func=yes
39363 else
39364   echo "$as_me: failed program was:" >&5
39365 sed 's/^/| /' conftest.$ac_ext >&5
39366
39367         eval wx_cv_func_$wx_func=no
39368 fi
39369
39370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39371       conftest$ac_exeext conftest.$ac_ext
39372
39373 fi
39374 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39375                { echo "$as_me:$LINENO: result: $ac_res" >&5
39376 echo "${ECHO_T}$ac_res" >&6; }
39377
39378     if eval test \$wx_cv_func_$wx_func = yes
39379     then
39380       cat >>confdefs.h <<_ACEOF
39381 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39382 _ACEOF
39383
39384
39385     else
39386       :
39387
39388     fi
39389   done
39390
39391
39392 INET_LINK=
39393
39394 for ac_func in inet_addr
39395 do
39396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39400   echo $ECHO_N "(cached) $ECHO_C" >&6
39401 else
39402   cat >conftest.$ac_ext <<_ACEOF
39403 /* confdefs.h.  */
39404 _ACEOF
39405 cat confdefs.h >>conftest.$ac_ext
39406 cat >>conftest.$ac_ext <<_ACEOF
39407 /* end confdefs.h.  */
39408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39410 #define $ac_func innocuous_$ac_func
39411
39412 /* System header to define __stub macros and hopefully few prototypes,
39413     which can conflict with char $ac_func (); below.
39414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39415     <limits.h> exists even on freestanding compilers.  */
39416
39417 #ifdef __STDC__
39418 # include <limits.h>
39419 #else
39420 # include <assert.h>
39421 #endif
39422
39423 #undef $ac_func
39424
39425 /* Override any GCC internal prototype to avoid an error.
39426    Use char because int might match the return type of a GCC
39427    builtin and then its argument prototype would still apply.  */
39428 #ifdef __cplusplus
39429 extern "C"
39430 #endif
39431 char $ac_func ();
39432 /* The GNU C library defines this for functions which it implements
39433     to always fail with ENOSYS.  Some functions are actually named
39434     something starting with __ and the normal name is an alias.  */
39435 #if defined __stub_$ac_func || defined __stub___$ac_func
39436 choke me
39437 #endif
39438
39439 int
39440 main ()
39441 {
39442 return $ac_func ();
39443   ;
39444   return 0;
39445 }
39446 _ACEOF
39447 rm -f conftest.$ac_objext conftest$ac_exeext
39448 if { (ac_try="$ac_link"
39449 case "(($ac_try" in
39450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39451   *) ac_try_echo=$ac_try;;
39452 esac
39453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39454   (eval "$ac_link") 2>conftest.er1
39455   ac_status=$?
39456   grep -v '^ *+' conftest.er1 >conftest.err
39457   rm -f conftest.er1
39458   cat conftest.err >&5
39459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460   (exit $ac_status); } && {
39461          test -z "$ac_c_werror_flag" ||
39462          test ! -s conftest.err
39463        } && test -s conftest$ac_exeext &&
39464        $as_test_x conftest$ac_exeext; then
39465   eval "$as_ac_var=yes"
39466 else
39467   echo "$as_me: failed program was:" >&5
39468 sed 's/^/| /' conftest.$ac_ext >&5
39469
39470         eval "$as_ac_var=no"
39471 fi
39472
39473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39474       conftest$ac_exeext conftest.$ac_ext
39475 fi
39476 ac_res=`eval echo '${'$as_ac_var'}'`
39477                { echo "$as_me:$LINENO: result: $ac_res" >&5
39478 echo "${ECHO_T}$ac_res" >&6; }
39479 if test `eval echo '${'$as_ac_var'}'` = yes; then
39480   cat >>confdefs.h <<_ACEOF
39481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39482 _ACEOF
39483  cat >>confdefs.h <<\_ACEOF
39484 #define HAVE_INET_ADDR 1
39485 _ACEOF
39486
39487 else
39488
39489         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39490 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39491 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39492   echo $ECHO_N "(cached) $ECHO_C" >&6
39493 else
39494   ac_check_lib_save_LIBS=$LIBS
39495 LIBS="-lnsl  $LIBS"
39496 cat >conftest.$ac_ext <<_ACEOF
39497 /* confdefs.h.  */
39498 _ACEOF
39499 cat confdefs.h >>conftest.$ac_ext
39500 cat >>conftest.$ac_ext <<_ACEOF
39501 /* end confdefs.h.  */
39502
39503 /* Override any GCC internal prototype to avoid an error.
39504    Use char because int might match the return type of a GCC
39505    builtin and then its argument prototype would still apply.  */
39506 #ifdef __cplusplus
39507 extern "C"
39508 #endif
39509 char inet_addr ();
39510 int
39511 main ()
39512 {
39513 return inet_addr ();
39514   ;
39515   return 0;
39516 }
39517 _ACEOF
39518 rm -f conftest.$ac_objext conftest$ac_exeext
39519 if { (ac_try="$ac_link"
39520 case "(($ac_try" in
39521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39522   *) ac_try_echo=$ac_try;;
39523 esac
39524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39525   (eval "$ac_link") 2>conftest.er1
39526   ac_status=$?
39527   grep -v '^ *+' conftest.er1 >conftest.err
39528   rm -f conftest.er1
39529   cat conftest.err >&5
39530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531   (exit $ac_status); } && {
39532          test -z "$ac_c_werror_flag" ||
39533          test ! -s conftest.err
39534        } && test -s conftest$ac_exeext &&
39535        $as_test_x conftest$ac_exeext; then
39536   ac_cv_lib_nsl_inet_addr=yes
39537 else
39538   echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39540
39541         ac_cv_lib_nsl_inet_addr=no
39542 fi
39543
39544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39545       conftest$ac_exeext conftest.$ac_ext
39546 LIBS=$ac_check_lib_save_LIBS
39547 fi
39548 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39549 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39550 if test $ac_cv_lib_nsl_inet_addr = yes; then
39551   INET_LINK="nsl"
39552 else
39553
39554                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39555 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39556 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39557   echo $ECHO_N "(cached) $ECHO_C" >&6
39558 else
39559   ac_check_lib_save_LIBS=$LIBS
39560 LIBS="-lresolv  $LIBS"
39561 cat >conftest.$ac_ext <<_ACEOF
39562 /* confdefs.h.  */
39563 _ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h.  */
39567
39568 /* Override any GCC internal prototype to avoid an error.
39569    Use char because int might match the return type of a GCC
39570    builtin and then its argument prototype would still apply.  */
39571 #ifdef __cplusplus
39572 extern "C"
39573 #endif
39574 char inet_addr ();
39575 int
39576 main ()
39577 {
39578 return inet_addr ();
39579   ;
39580   return 0;
39581 }
39582 _ACEOF
39583 rm -f conftest.$ac_objext conftest$ac_exeext
39584 if { (ac_try="$ac_link"
39585 case "(($ac_try" in
39586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39587   *) ac_try_echo=$ac_try;;
39588 esac
39589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39590   (eval "$ac_link") 2>conftest.er1
39591   ac_status=$?
39592   grep -v '^ *+' conftest.er1 >conftest.err
39593   rm -f conftest.er1
39594   cat conftest.err >&5
39595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596   (exit $ac_status); } && {
39597          test -z "$ac_c_werror_flag" ||
39598          test ! -s conftest.err
39599        } && test -s conftest$ac_exeext &&
39600        $as_test_x conftest$ac_exeext; then
39601   ac_cv_lib_resolv_inet_addr=yes
39602 else
39603   echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39605
39606         ac_cv_lib_resolv_inet_addr=no
39607 fi
39608
39609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39610       conftest$ac_exeext conftest.$ac_ext
39611 LIBS=$ac_check_lib_save_LIBS
39612 fi
39613 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39614 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39615 if test $ac_cv_lib_resolv_inet_addr = yes; then
39616   INET_LINK="resolv"
39617 else
39618
39619                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39620 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39621 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39622   echo $ECHO_N "(cached) $ECHO_C" >&6
39623 else
39624   ac_check_lib_save_LIBS=$LIBS
39625 LIBS="-lsocket  $LIBS"
39626 cat >conftest.$ac_ext <<_ACEOF
39627 /* confdefs.h.  */
39628 _ACEOF
39629 cat confdefs.h >>conftest.$ac_ext
39630 cat >>conftest.$ac_ext <<_ACEOF
39631 /* end confdefs.h.  */
39632
39633 /* Override any GCC internal prototype to avoid an error.
39634    Use char because int might match the return type of a GCC
39635    builtin and then its argument prototype would still apply.  */
39636 #ifdef __cplusplus
39637 extern "C"
39638 #endif
39639 char inet_addr ();
39640 int
39641 main ()
39642 {
39643 return inet_addr ();
39644   ;
39645   return 0;
39646 }
39647 _ACEOF
39648 rm -f conftest.$ac_objext conftest$ac_exeext
39649 if { (ac_try="$ac_link"
39650 case "(($ac_try" in
39651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39652   *) ac_try_echo=$ac_try;;
39653 esac
39654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39655   (eval "$ac_link") 2>conftest.er1
39656   ac_status=$?
39657   grep -v '^ *+' conftest.er1 >conftest.err
39658   rm -f conftest.er1
39659   cat conftest.err >&5
39660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661   (exit $ac_status); } && {
39662          test -z "$ac_c_werror_flag" ||
39663          test ! -s conftest.err
39664        } && test -s conftest$ac_exeext &&
39665        $as_test_x conftest$ac_exeext; then
39666   ac_cv_lib_socket_inet_addr=yes
39667 else
39668   echo "$as_me: failed program was:" >&5
39669 sed 's/^/| /' conftest.$ac_ext >&5
39670
39671         ac_cv_lib_socket_inet_addr=no
39672 fi
39673
39674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39675       conftest$ac_exeext conftest.$ac_ext
39676 LIBS=$ac_check_lib_save_LIBS
39677 fi
39678 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39679 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39680 if test $ac_cv_lib_socket_inet_addr = yes; then
39681   INET_LINK="socket"
39682
39683 fi
39684
39685
39686
39687 fi
39688
39689
39690
39691 fi
39692
39693
39694
39695 fi
39696 done
39697
39698
39699
39700 for ac_func in inet_aton
39701 do
39702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39706   echo $ECHO_N "(cached) $ECHO_C" >&6
39707 else
39708   cat >conftest.$ac_ext <<_ACEOF
39709 /* confdefs.h.  */
39710 _ACEOF
39711 cat confdefs.h >>conftest.$ac_ext
39712 cat >>conftest.$ac_ext <<_ACEOF
39713 /* end confdefs.h.  */
39714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39716 #define $ac_func innocuous_$ac_func
39717
39718 /* System header to define __stub macros and hopefully few prototypes,
39719     which can conflict with char $ac_func (); below.
39720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39721     <limits.h> exists even on freestanding compilers.  */
39722
39723 #ifdef __STDC__
39724 # include <limits.h>
39725 #else
39726 # include <assert.h>
39727 #endif
39728
39729 #undef $ac_func
39730
39731 /* Override any GCC internal prototype to avoid an error.
39732    Use char because int might match the return type of a GCC
39733    builtin and then its argument prototype would still apply.  */
39734 #ifdef __cplusplus
39735 extern "C"
39736 #endif
39737 char $ac_func ();
39738 /* The GNU C library defines this for functions which it implements
39739     to always fail with ENOSYS.  Some functions are actually named
39740     something starting with __ and the normal name is an alias.  */
39741 #if defined __stub_$ac_func || defined __stub___$ac_func
39742 choke me
39743 #endif
39744
39745 int
39746 main ()
39747 {
39748 return $ac_func ();
39749   ;
39750   return 0;
39751 }
39752 _ACEOF
39753 rm -f conftest.$ac_objext conftest$ac_exeext
39754 if { (ac_try="$ac_link"
39755 case "(($ac_try" in
39756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757   *) ac_try_echo=$ac_try;;
39758 esac
39759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39760   (eval "$ac_link") 2>conftest.er1
39761   ac_status=$?
39762   grep -v '^ *+' conftest.er1 >conftest.err
39763   rm -f conftest.er1
39764   cat conftest.err >&5
39765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766   (exit $ac_status); } && {
39767          test -z "$ac_c_werror_flag" ||
39768          test ! -s conftest.err
39769        } && test -s conftest$ac_exeext &&
39770        $as_test_x conftest$ac_exeext; then
39771   eval "$as_ac_var=yes"
39772 else
39773   echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39775
39776         eval "$as_ac_var=no"
39777 fi
39778
39779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39780       conftest$ac_exeext conftest.$ac_ext
39781 fi
39782 ac_res=`eval echo '${'$as_ac_var'}'`
39783                { echo "$as_me:$LINENO: result: $ac_res" >&5
39784 echo "${ECHO_T}$ac_res" >&6; }
39785 if test `eval echo '${'$as_ac_var'}'` = yes; then
39786   cat >>confdefs.h <<_ACEOF
39787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39788 _ACEOF
39789  cat >>confdefs.h <<\_ACEOF
39790 #define HAVE_INET_ATON 1
39791 _ACEOF
39792
39793 else
39794
39795                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39796 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39797 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
39798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39799   echo $ECHO_N "(cached) $ECHO_C" >&6
39800 else
39801   ac_check_lib_save_LIBS=$LIBS
39802 LIBS="-l$INET_LINK  $LIBS"
39803 cat >conftest.$ac_ext <<_ACEOF
39804 /* confdefs.h.  */
39805 _ACEOF
39806 cat confdefs.h >>conftest.$ac_ext
39807 cat >>conftest.$ac_ext <<_ACEOF
39808 /* end confdefs.h.  */
39809
39810 /* Override any GCC internal prototype to avoid an error.
39811    Use char because int might match the return type of a GCC
39812    builtin and then its argument prototype would still apply.  */
39813 #ifdef __cplusplus
39814 extern "C"
39815 #endif
39816 char inet_aton ();
39817 int
39818 main ()
39819 {
39820 return inet_aton ();
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } && {
39839          test -z "$ac_c_werror_flag" ||
39840          test ! -s conftest.err
39841        } && test -s conftest$ac_exeext &&
39842        $as_test_x conftest$ac_exeext; then
39843   eval "$as_ac_Lib=yes"
39844 else
39845   echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39847
39848         eval "$as_ac_Lib=no"
39849 fi
39850
39851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39852       conftest$ac_exeext conftest.$ac_ext
39853 LIBS=$ac_check_lib_save_LIBS
39854 fi
39855 ac_res=`eval echo '${'$as_ac_Lib'}'`
39856                { echo "$as_me:$LINENO: result: $ac_res" >&5
39857 echo "${ECHO_T}$ac_res" >&6; }
39858 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39859   cat >>confdefs.h <<\_ACEOF
39860 #define HAVE_INET_ATON 1
39861 _ACEOF
39862
39863 fi
39864
39865
39866 fi
39867 done
39868
39869
39870 if test "x$INET_LINK" != "x"; then
39871     cat >>confdefs.h <<\_ACEOF
39872 #define HAVE_INET_ADDR 1
39873 _ACEOF
39874
39875     INET_LINK=" -l$INET_LINK"
39876 fi
39877
39878
39879   for wx_func in fdopen
39880   do
39881     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39882 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39883 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39884   echo $ECHO_N "(cached) $ECHO_C" >&6
39885 else
39886
39887         cat >conftest.$ac_ext <<_ACEOF
39888
39889             /* confdefs.h.  */
39890 _ACEOF
39891 cat confdefs.h >>conftest.$ac_ext
39892 cat >>conftest.$ac_ext <<_ACEOF
39893 /* end confdefs.h.  */
39894
39895
39896                 $ac_includes_default
39897
39898 int
39899 main ()
39900 {
39901
39902                 #ifndef $wx_func
39903                   &$wx_func;
39904                 #endif
39905
39906
39907   ;
39908   return 0;
39909 }
39910
39911 _ACEOF
39912 rm -f conftest.$ac_objext conftest$ac_exeext
39913 if { (ac_try="$ac_link"
39914 case "(($ac_try" in
39915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39916   *) ac_try_echo=$ac_try;;
39917 esac
39918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39919   (eval "$ac_link") 2>conftest.er1
39920   ac_status=$?
39921   grep -v '^ *+' conftest.er1 >conftest.err
39922   rm -f conftest.er1
39923   cat conftest.err >&5
39924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925   (exit $ac_status); } && {
39926          test -z "$ac_c_werror_flag" ||
39927          test ! -s conftest.err
39928        } && test -s conftest$ac_exeext &&
39929        $as_test_x conftest$ac_exeext; then
39930   eval wx_cv_func_$wx_func=yes
39931 else
39932   echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39934
39935         eval wx_cv_func_$wx_func=no
39936 fi
39937
39938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39939       conftest$ac_exeext conftest.$ac_ext
39940
39941 fi
39942 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39943                { echo "$as_me:$LINENO: result: $ac_res" >&5
39944 echo "${ECHO_T}$ac_res" >&6; }
39945
39946     if eval test \$wx_cv_func_$wx_func = yes
39947     then
39948       cat >>confdefs.h <<_ACEOF
39949 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39950 _ACEOF
39951
39952
39953     else
39954       :
39955
39956     fi
39957   done
39958
39959
39960 if test "$wxUSE_TARSTREAM" = "yes"; then
39961
39962   for wx_func in sysconf
39963   do
39964     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39965 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39966 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39967   echo $ECHO_N "(cached) $ECHO_C" >&6
39968 else
39969
39970         cat >conftest.$ac_ext <<_ACEOF
39971
39972             /* confdefs.h.  */
39973 _ACEOF
39974 cat confdefs.h >>conftest.$ac_ext
39975 cat >>conftest.$ac_ext <<_ACEOF
39976 /* end confdefs.h.  */
39977
39978
39979                 $ac_includes_default
39980
39981 int
39982 main ()
39983 {
39984
39985                 #ifndef $wx_func
39986                   &$wx_func;
39987                 #endif
39988
39989
39990   ;
39991   return 0;
39992 }
39993
39994 _ACEOF
39995 rm -f conftest.$ac_objext conftest$ac_exeext
39996 if { (ac_try="$ac_link"
39997 case "(($ac_try" in
39998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39999   *) ac_try_echo=$ac_try;;
40000 esac
40001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40002   (eval "$ac_link") 2>conftest.er1
40003   ac_status=$?
40004   grep -v '^ *+' conftest.er1 >conftest.err
40005   rm -f conftest.er1
40006   cat conftest.err >&5
40007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008   (exit $ac_status); } && {
40009          test -z "$ac_c_werror_flag" ||
40010          test ! -s conftest.err
40011        } && test -s conftest$ac_exeext &&
40012        $as_test_x conftest$ac_exeext; then
40013   eval wx_cv_func_$wx_func=yes
40014 else
40015   echo "$as_me: failed program was:" >&5
40016 sed 's/^/| /' conftest.$ac_ext >&5
40017
40018         eval wx_cv_func_$wx_func=no
40019 fi
40020
40021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40022       conftest$ac_exeext conftest.$ac_ext
40023
40024 fi
40025 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40026                { echo "$as_me:$LINENO: result: $ac_res" >&5
40027 echo "${ECHO_T}$ac_res" >&6; }
40028
40029     if eval test \$wx_cv_func_$wx_func = yes
40030     then
40031       cat >>confdefs.h <<_ACEOF
40032 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40033 _ACEOF
40034
40035
40036     else
40037       :
40038
40039     fi
40040   done
40041
40042
40043
40044   for wx_func in getpwuid_r
40045   do
40046     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40047 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40048 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40049   echo $ECHO_N "(cached) $ECHO_C" >&6
40050 else
40051
40052         cat >conftest.$ac_ext <<_ACEOF
40053
40054             /* confdefs.h.  */
40055 _ACEOF
40056 cat confdefs.h >>conftest.$ac_ext
40057 cat >>conftest.$ac_ext <<_ACEOF
40058 /* end confdefs.h.  */
40059
40060
40061                     #define _REENTRANT
40062                     #include <pwd.h>
40063
40064                 $ac_includes_default
40065
40066 int
40067 main ()
40068 {
40069
40070                 #ifndef $wx_func
40071                   &$wx_func;
40072                 #endif
40073
40074                     struct passwd pw, *ppw;
40075                     char buf[1024];
40076                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40077
40078
40079   ;
40080   return 0;
40081 }
40082
40083 _ACEOF
40084 rm -f conftest.$ac_objext conftest$ac_exeext
40085 if { (ac_try="$ac_link"
40086 case "(($ac_try" in
40087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40088   *) ac_try_echo=$ac_try;;
40089 esac
40090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40091   (eval "$ac_link") 2>conftest.er1
40092   ac_status=$?
40093   grep -v '^ *+' conftest.er1 >conftest.err
40094   rm -f conftest.er1
40095   cat conftest.err >&5
40096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097   (exit $ac_status); } && {
40098          test -z "$ac_c_werror_flag" ||
40099          test ! -s conftest.err
40100        } && test -s conftest$ac_exeext &&
40101        $as_test_x conftest$ac_exeext; then
40102   eval wx_cv_func_$wx_func=yes
40103 else
40104   echo "$as_me: failed program was:" >&5
40105 sed 's/^/| /' conftest.$ac_ext >&5
40106
40107         eval wx_cv_func_$wx_func=no
40108 fi
40109
40110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40111       conftest$ac_exeext conftest.$ac_ext
40112
40113 fi
40114 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40115                { echo "$as_me:$LINENO: result: $ac_res" >&5
40116 echo "${ECHO_T}$ac_res" >&6; }
40117
40118     if eval test \$wx_cv_func_$wx_func = yes
40119     then
40120       cat >>confdefs.h <<_ACEOF
40121 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40122 _ACEOF
40123
40124
40125     else
40126       :
40127
40128     fi
40129   done
40130
40131
40132
40133   for wx_func in getgrgid_r
40134   do
40135     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40136 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40137 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40138   echo $ECHO_N "(cached) $ECHO_C" >&6
40139 else
40140
40141         cat >conftest.$ac_ext <<_ACEOF
40142
40143             /* confdefs.h.  */
40144 _ACEOF
40145 cat confdefs.h >>conftest.$ac_ext
40146 cat >>conftest.$ac_ext <<_ACEOF
40147 /* end confdefs.h.  */
40148
40149
40150                     #define _REENTRANT
40151                     #include <grp.h>
40152
40153                 $ac_includes_default
40154
40155 int
40156 main ()
40157 {
40158
40159                 #ifndef $wx_func
40160                   &$wx_func;
40161                 #endif
40162
40163                     struct group grp, *pgrp;
40164                     char buf[1024];
40165                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40166
40167
40168   ;
40169   return 0;
40170 }
40171
40172 _ACEOF
40173 rm -f conftest.$ac_objext conftest$ac_exeext
40174 if { (ac_try="$ac_link"
40175 case "(($ac_try" in
40176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40177   *) ac_try_echo=$ac_try;;
40178 esac
40179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40180   (eval "$ac_link") 2>conftest.er1
40181   ac_status=$?
40182   grep -v '^ *+' conftest.er1 >conftest.err
40183   rm -f conftest.er1
40184   cat conftest.err >&5
40185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); } && {
40187          test -z "$ac_c_werror_flag" ||
40188          test ! -s conftest.err
40189        } && test -s conftest$ac_exeext &&
40190        $as_test_x conftest$ac_exeext; then
40191   eval wx_cv_func_$wx_func=yes
40192 else
40193   echo "$as_me: failed program was:" >&5
40194 sed 's/^/| /' conftest.$ac_ext >&5
40195
40196         eval wx_cv_func_$wx_func=no
40197 fi
40198
40199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40200       conftest$ac_exeext conftest.$ac_ext
40201
40202 fi
40203 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40204                { echo "$as_me:$LINENO: result: $ac_res" >&5
40205 echo "${ECHO_T}$ac_res" >&6; }
40206
40207     if eval test \$wx_cv_func_$wx_func = yes
40208     then
40209       cat >>confdefs.h <<_ACEOF
40210 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40211 _ACEOF
40212
40213
40214     else
40215       :
40216
40217     fi
40218   done
40219
40220 fi
40221
40222 fi
40223
40224
40225
40226 cat >confcache <<\_ACEOF
40227 # This file is a shell script that caches the results of configure
40228 # tests run on this system so they can be shared between configure
40229 # scripts and configure runs, see configure's option --config-cache.
40230 # It is not useful on other systems.  If it contains results you don't
40231 # want to keep, you may remove or edit it.
40232 #
40233 # config.status only pays attention to the cache file if you give it
40234 # the --recheck option to rerun configure.
40235 #
40236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40238 # following values.
40239
40240 _ACEOF
40241
40242 # The following way of writing the cache mishandles newlines in values,
40243 # but we know of no workaround that is simple, portable, and efficient.
40244 # So, we kill variables containing newlines.
40245 # Ultrix sh set writes to stderr and can't be redirected directly,
40246 # and sets the high bit in the cache file unless we assign to the vars.
40247 (
40248   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40249     eval ac_val=\$$ac_var
40250     case $ac_val in #(
40251     *${as_nl}*)
40252       case $ac_var in #(
40253       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40254 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40255       esac
40256       case $ac_var in #(
40257       _ | IFS | as_nl) ;; #(
40258       *) $as_unset $ac_var ;;
40259       esac ;;
40260     esac
40261   done
40262
40263   (set) 2>&1 |
40264     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40265     *${as_nl}ac_space=\ *)
40266       # `set' does not quote correctly, so add quotes (double-quote
40267       # substitution turns \\\\ into \\, and sed turns \\ into \).
40268       sed -n \
40269         "s/'/'\\\\''/g;
40270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40271       ;; #(
40272     *)
40273       # `set' quotes correctly as required by POSIX, so do not add quotes.
40274       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40275       ;;
40276     esac |
40277     sort
40278 ) |
40279   sed '
40280      /^ac_cv_env_/b end
40281      t clear
40282      :clear
40283      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40284      t end
40285      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40286      :end' >>confcache
40287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40288   if test -w "$cache_file"; then
40289     test "x$cache_file" != "x/dev/null" &&
40290       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40291 echo "$as_me: updating cache $cache_file" >&6;}
40292     cat confcache >$cache_file
40293   else
40294     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40295 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40296   fi
40297 fi
40298 rm -f confcache
40299
40300
40301 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40302
40303
40304     THREADS_LINK=
40305     THREADS_CFLAGS=
40306
40307     if test "$wxUSE_THREADS" = "yes" ; then
40308         if test "$USE_BEOS" = 1; then
40309             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40310 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40311             wxUSE_THREADS="no"
40312         fi
40313     fi
40314
40315     if test "$wxUSE_THREADS" = "yes" ; then
40316
40317
40318                                 THREAD_OPTS="-pthread"
40319         if test "x$SUNCXX" = xyes; then
40320             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40321         fi
40322
40323         case "${host}" in
40324           *-*-solaris2* | *-*-sunos4* )
40325                 if test "x$GCC" = "xyes"; then
40326                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40327                 fi
40328                 ;;
40329           *-*-freebsd*)
40330                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40331                 ;;
40332           *-*-darwin* | *-*-cygwin* )
40333                                                 THREAD_OPTS=""
40334                 ;;
40335           *-*-aix*)
40336                                 THREAD_OPTS="pthreads"
40337                 ;;
40338           *-hp-hpux* )
40339                 if test "x$GCC" = "xyes"; then
40340                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40341                         THREAD_OPTS=""
40342                 else
40343                                                             THREAD_OPTS="-mt"
40344                 fi
40345                 ;;
40346
40347           *-*-irix* )
40348                                                                 if test "x$GCC" = "xyes"; then
40349                     THREAD_OPTS=""
40350                 fi
40351                 ;;
40352
40353           *-*-qnx*)
40354                                                 THREAD_OPTS=""
40355                 ;;
40356
40357           *-*-*UnixWare*)
40358                                 if test "x$GCC" != "xyes"; then
40359                     THREAD_OPTS="-Ethread"
40360                 fi
40361                 ;;
40362         esac
40363
40364         case "${host}" in
40365             *-*-qnx*)
40366                                                                 THREAD_OPTS="none pthread"
40367                 ;;
40368
40369             *)
40370                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40371                 ;;
40372         esac
40373
40374                 THREADS_OK=no
40375         for flag in $THREAD_OPTS; do
40376             case $flag in
40377                 none)
40378                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40379 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40380                     ;;
40381
40382                 -*)
40383                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40384 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40385                     THREADS_CFLAGS="$flag"
40386                     ;;
40387
40388                 *)
40389                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40390 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40391                     THREADS_LINK="-l$flag"
40392                     ;;
40393               esac
40394
40395               save_LIBS="$LIBS"
40396               save_CFLAGS="$CFLAGS"
40397               LIBS="$THREADS_LINK $LIBS"
40398               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40399
40400               cat >conftest.$ac_ext <<_ACEOF
40401 /* confdefs.h.  */
40402 _ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h.  */
40406 #include <pthread.h>
40407 int
40408 main ()
40409 {
40410 pthread_create(0,0,0,0);
40411   ;
40412   return 0;
40413 }
40414 _ACEOF
40415 rm -f conftest.$ac_objext conftest$ac_exeext
40416 if { (ac_try="$ac_link"
40417 case "(($ac_try" in
40418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40419   *) ac_try_echo=$ac_try;;
40420 esac
40421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40422   (eval "$ac_link") 2>conftest.er1
40423   ac_status=$?
40424   grep -v '^ *+' conftest.er1 >conftest.err
40425   rm -f conftest.er1
40426   cat conftest.err >&5
40427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40428   (exit $ac_status); } && {
40429          test -z "$ac_c_werror_flag" ||
40430          test ! -s conftest.err
40431        } && test -s conftest$ac_exeext &&
40432        $as_test_x conftest$ac_exeext; then
40433   THREADS_OK=yes
40434 else
40435   echo "$as_me: failed program was:" >&5
40436 sed 's/^/| /' conftest.$ac_ext >&5
40437
40438
40439 fi
40440
40441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40442       conftest$ac_exeext conftest.$ac_ext
40443
40444               LIBS="$save_LIBS"
40445               CFLAGS="$save_CFLAGS"
40446
40447               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40448 echo "${ECHO_T}$THREADS_OK" >&6; }
40449               if test "x$THREADS_OK" = "xyes"; then
40450                       break;
40451               fi
40452
40453               THREADS_LINK=""
40454               THREADS_CFLAGS=""
40455       done
40456
40457       if test "x$THREADS_OK" != "xyes"; then
40458           wxUSE_THREADS=no
40459           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40460 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40461       else
40462                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40463           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40464           LIBS="$THREADS_LINK $LIBS"
40465
40466           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40467 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40468           flag=no
40469           case "${host}" in
40470             *-aix*)
40471                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40472                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40473                 flag="-D_THREAD_SAFE"
40474                 ;;
40475             *-freebsd*)
40476                 flag="-D_THREAD_SAFE"
40477                 ;;
40478             *-hp-hpux* )
40479                 flag="-D_REENTRANT"
40480                 if test "x$GCC" != "xyes"; then
40481                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40482                 fi
40483                 ;;
40484             *solaris* | alpha*-osf*)
40485                 flag="-D_REENTRANT"
40486                 ;;
40487           esac
40488           { echo "$as_me:$LINENO: result: ${flag}" >&5
40489 echo "${ECHO_T}${flag}" >&6; }
40490           if test "x$flag" != xno; then
40491               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40492           fi
40493
40494                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40495       fi
40496     fi
40497
40498         if test "$wxUSE_THREADS" = "yes" ; then
40499
40500 for ac_func in thr_setconcurrency
40501 do
40502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40506   echo $ECHO_N "(cached) $ECHO_C" >&6
40507 else
40508   cat >conftest.$ac_ext <<_ACEOF
40509 /* confdefs.h.  */
40510 _ACEOF
40511 cat confdefs.h >>conftest.$ac_ext
40512 cat >>conftest.$ac_ext <<_ACEOF
40513 /* end confdefs.h.  */
40514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40516 #define $ac_func innocuous_$ac_func
40517
40518 /* System header to define __stub macros and hopefully few prototypes,
40519     which can conflict with char $ac_func (); below.
40520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40521     <limits.h> exists even on freestanding compilers.  */
40522
40523 #ifdef __STDC__
40524 # include <limits.h>
40525 #else
40526 # include <assert.h>
40527 #endif
40528
40529 #undef $ac_func
40530
40531 /* Override any GCC internal prototype to avoid an error.
40532    Use char because int might match the return type of a GCC
40533    builtin and then its argument prototype would still apply.  */
40534 #ifdef __cplusplus
40535 extern "C"
40536 #endif
40537 char $ac_func ();
40538 /* The GNU C library defines this for functions which it implements
40539     to always fail with ENOSYS.  Some functions are actually named
40540     something starting with __ and the normal name is an alias.  */
40541 #if defined __stub_$ac_func || defined __stub___$ac_func
40542 choke me
40543 #endif
40544
40545 int
40546 main ()
40547 {
40548 return $ac_func ();
40549   ;
40550   return 0;
40551 }
40552 _ACEOF
40553 rm -f conftest.$ac_objext conftest$ac_exeext
40554 if { (ac_try="$ac_link"
40555 case "(($ac_try" in
40556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40557   *) ac_try_echo=$ac_try;;
40558 esac
40559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40560   (eval "$ac_link") 2>conftest.er1
40561   ac_status=$?
40562   grep -v '^ *+' conftest.er1 >conftest.err
40563   rm -f conftest.er1
40564   cat conftest.err >&5
40565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40566   (exit $ac_status); } && {
40567          test -z "$ac_c_werror_flag" ||
40568          test ! -s conftest.err
40569        } && test -s conftest$ac_exeext &&
40570        $as_test_x conftest$ac_exeext; then
40571   eval "$as_ac_var=yes"
40572 else
40573   echo "$as_me: failed program was:" >&5
40574 sed 's/^/| /' conftest.$ac_ext >&5
40575
40576         eval "$as_ac_var=no"
40577 fi
40578
40579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40580       conftest$ac_exeext conftest.$ac_ext
40581 fi
40582 ac_res=`eval echo '${'$as_ac_var'}'`
40583                { echo "$as_me:$LINENO: result: $ac_res" >&5
40584 echo "${ECHO_T}$ac_res" >&6; }
40585 if test `eval echo '${'$as_ac_var'}'` = yes; then
40586   cat >>confdefs.h <<_ACEOF
40587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40588 _ACEOF
40589
40590 fi
40591 done
40592
40593
40594                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40595 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40596 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40597   echo $ECHO_N "(cached) $ECHO_C" >&6
40598 else
40599
40600                                 ac_ext=cpp
40601 ac_cpp='$CXXCPP $CPPFLAGS'
40602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40605
40606         cat >conftest.$ac_ext <<_ACEOF
40607 /* confdefs.h.  */
40608 _ACEOF
40609 cat confdefs.h >>conftest.$ac_ext
40610 cat >>conftest.$ac_ext <<_ACEOF
40611 /* end confdefs.h.  */
40612 #include <pthread.h>
40613                void ThreadCleanupFunc(void *p);
40614
40615 int
40616 main ()
40617 {
40618
40619                 void *p;
40620                 pthread_cleanup_push(ThreadCleanupFunc, p);
40621                 pthread_cleanup_pop(0);
40622
40623   ;
40624   return 0;
40625 }
40626 _ACEOF
40627 rm -f conftest.$ac_objext
40628 if { (ac_try="$ac_compile"
40629 case "(($ac_try" in
40630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40631   *) ac_try_echo=$ac_try;;
40632 esac
40633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40634   (eval "$ac_compile") 2>conftest.er1
40635   ac_status=$?
40636   grep -v '^ *+' conftest.er1 >conftest.err
40637   rm -f conftest.er1
40638   cat conftest.err >&5
40639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640   (exit $ac_status); } && {
40641          test -z "$ac_cxx_werror_flag" ||
40642          test ! -s conftest.err
40643        } && test -s conftest.$ac_objext; then
40644
40645                wx_cv_func_pthread_cleanup=yes
40646
40647 else
40648   echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40650
40651
40652                wx_cv_func_pthread_cleanup=no
40653
40654
40655 fi
40656
40657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40658         ac_ext=c
40659 ac_cpp='$CPP $CPPFLAGS'
40660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40663
40664
40665 fi
40666 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40667 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40668       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40669         cat >>confdefs.h <<\_ACEOF
40670 #define wxHAVE_PTHREAD_CLEANUP 1
40671 _ACEOF
40672
40673       fi
40674
40675
40676 for ac_header in sched.h
40677 do
40678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40682   echo $ECHO_N "(cached) $ECHO_C" >&6
40683 else
40684   cat >conftest.$ac_ext <<_ACEOF
40685 /* confdefs.h.  */
40686 _ACEOF
40687 cat confdefs.h >>conftest.$ac_ext
40688 cat >>conftest.$ac_ext <<_ACEOF
40689 /* end confdefs.h.  */
40690 $ac_includes_default
40691
40692 #include <$ac_header>
40693 _ACEOF
40694 rm -f conftest.$ac_objext
40695 if { (ac_try="$ac_compile"
40696 case "(($ac_try" in
40697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40698   *) ac_try_echo=$ac_try;;
40699 esac
40700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40701   (eval "$ac_compile") 2>conftest.er1
40702   ac_status=$?
40703   grep -v '^ *+' conftest.er1 >conftest.err
40704   rm -f conftest.er1
40705   cat conftest.err >&5
40706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707   (exit $ac_status); } && {
40708          test -z "$ac_c_werror_flag" ||
40709          test ! -s conftest.err
40710        } && test -s conftest.$ac_objext; then
40711   eval "$as_ac_Header=yes"
40712 else
40713   echo "$as_me: failed program was:" >&5
40714 sed 's/^/| /' conftest.$ac_ext >&5
40715
40716         eval "$as_ac_Header=no"
40717 fi
40718
40719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40720 fi
40721 ac_res=`eval echo '${'$as_ac_Header'}'`
40722                { echo "$as_me:$LINENO: result: $ac_res" >&5
40723 echo "${ECHO_T}$ac_res" >&6; }
40724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40725   cat >>confdefs.h <<_ACEOF
40726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40727 _ACEOF
40728
40729 fi
40730
40731 done
40732
40733       if test "$ac_cv_header_sched_h" = "yes"; then
40734           { echo "$as_me:$LINENO: checking for sched_yield" >&5
40735 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
40736 if test "${ac_cv_func_sched_yield+set}" = set; then
40737   echo $ECHO_N "(cached) $ECHO_C" >&6
40738 else
40739   cat >conftest.$ac_ext <<_ACEOF
40740 /* confdefs.h.  */
40741 _ACEOF
40742 cat confdefs.h >>conftest.$ac_ext
40743 cat >>conftest.$ac_ext <<_ACEOF
40744 /* end confdefs.h.  */
40745 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40747 #define sched_yield innocuous_sched_yield
40748
40749 /* System header to define __stub macros and hopefully few prototypes,
40750     which can conflict with char sched_yield (); below.
40751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40752     <limits.h> exists even on freestanding compilers.  */
40753
40754 #ifdef __STDC__
40755 # include <limits.h>
40756 #else
40757 # include <assert.h>
40758 #endif
40759
40760 #undef sched_yield
40761
40762 /* Override any GCC internal prototype to avoid an error.
40763    Use char because int might match the return type of a GCC
40764    builtin and then its argument prototype would still apply.  */
40765 #ifdef __cplusplus
40766 extern "C"
40767 #endif
40768 char sched_yield ();
40769 /* The GNU C library defines this for functions which it implements
40770     to always fail with ENOSYS.  Some functions are actually named
40771     something starting with __ and the normal name is an alias.  */
40772 #if defined __stub_sched_yield || defined __stub___sched_yield
40773 choke me
40774 #endif
40775
40776 int
40777 main ()
40778 {
40779 return sched_yield ();
40780   ;
40781   return 0;
40782 }
40783 _ACEOF
40784 rm -f conftest.$ac_objext conftest$ac_exeext
40785 if { (ac_try="$ac_link"
40786 case "(($ac_try" in
40787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40788   *) ac_try_echo=$ac_try;;
40789 esac
40790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40791   (eval "$ac_link") 2>conftest.er1
40792   ac_status=$?
40793   grep -v '^ *+' conftest.er1 >conftest.err
40794   rm -f conftest.er1
40795   cat conftest.err >&5
40796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797   (exit $ac_status); } && {
40798          test -z "$ac_c_werror_flag" ||
40799          test ! -s conftest.err
40800        } && test -s conftest$ac_exeext &&
40801        $as_test_x conftest$ac_exeext; then
40802   ac_cv_func_sched_yield=yes
40803 else
40804   echo "$as_me: failed program was:" >&5
40805 sed 's/^/| /' conftest.$ac_ext >&5
40806
40807         ac_cv_func_sched_yield=no
40808 fi
40809
40810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40811       conftest$ac_exeext conftest.$ac_ext
40812 fi
40813 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40814 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40815 if test $ac_cv_func_sched_yield = yes; then
40816   cat >>confdefs.h <<\_ACEOF
40817 #define HAVE_SCHED_YIELD 1
40818 _ACEOF
40819
40820 else
40821
40822                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40823 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40824 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40825   echo $ECHO_N "(cached) $ECHO_C" >&6
40826 else
40827   ac_check_lib_save_LIBS=$LIBS
40828 LIBS="-lposix4  $LIBS"
40829 cat >conftest.$ac_ext <<_ACEOF
40830 /* confdefs.h.  */
40831 _ACEOF
40832 cat confdefs.h >>conftest.$ac_ext
40833 cat >>conftest.$ac_ext <<_ACEOF
40834 /* end confdefs.h.  */
40835
40836 /* Override any GCC internal prototype to avoid an error.
40837    Use char because int might match the return type of a GCC
40838    builtin and then its argument prototype would still apply.  */
40839 #ifdef __cplusplus
40840 extern "C"
40841 #endif
40842 char sched_yield ();
40843 int
40844 main ()
40845 {
40846 return sched_yield ();
40847   ;
40848   return 0;
40849 }
40850 _ACEOF
40851 rm -f conftest.$ac_objext conftest$ac_exeext
40852 if { (ac_try="$ac_link"
40853 case "(($ac_try" in
40854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40855   *) ac_try_echo=$ac_try;;
40856 esac
40857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40858   (eval "$ac_link") 2>conftest.er1
40859   ac_status=$?
40860   grep -v '^ *+' conftest.er1 >conftest.err
40861   rm -f conftest.er1
40862   cat conftest.err >&5
40863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864   (exit $ac_status); } && {
40865          test -z "$ac_c_werror_flag" ||
40866          test ! -s conftest.err
40867        } && test -s conftest$ac_exeext &&
40868        $as_test_x conftest$ac_exeext; then
40869   ac_cv_lib_posix4_sched_yield=yes
40870 else
40871   echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40873
40874         ac_cv_lib_posix4_sched_yield=no
40875 fi
40876
40877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40878       conftest$ac_exeext conftest.$ac_ext
40879 LIBS=$ac_check_lib_save_LIBS
40880 fi
40881 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40882 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40883 if test $ac_cv_lib_posix4_sched_yield = yes; then
40884   cat >>confdefs.h <<\_ACEOF
40885 #define HAVE_SCHED_YIELD 1
40886 _ACEOF
40887  POSIX4_LINK=" -lposix4"
40888 else
40889   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40890 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40891
40892 fi
40893
40894
40895
40896 fi
40897
40898       fi
40899
40900                                           HAVE_PRIOR_FUNCS=0
40901       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40902 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
40903 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40904   echo $ECHO_N "(cached) $ECHO_C" >&6
40905 else
40906   cat >conftest.$ac_ext <<_ACEOF
40907 /* confdefs.h.  */
40908 _ACEOF
40909 cat confdefs.h >>conftest.$ac_ext
40910 cat >>conftest.$ac_ext <<_ACEOF
40911 /* end confdefs.h.  */
40912 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40914 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40915
40916 /* System header to define __stub macros and hopefully few prototypes,
40917     which can conflict with char pthread_attr_getschedpolicy (); below.
40918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40919     <limits.h> exists even on freestanding compilers.  */
40920
40921 #ifdef __STDC__
40922 # include <limits.h>
40923 #else
40924 # include <assert.h>
40925 #endif
40926
40927 #undef pthread_attr_getschedpolicy
40928
40929 /* Override any GCC internal prototype to avoid an error.
40930    Use char because int might match the return type of a GCC
40931    builtin and then its argument prototype would still apply.  */
40932 #ifdef __cplusplus
40933 extern "C"
40934 #endif
40935 char pthread_attr_getschedpolicy ();
40936 /* The GNU C library defines this for functions which it implements
40937     to always fail with ENOSYS.  Some functions are actually named
40938     something starting with __ and the normal name is an alias.  */
40939 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
40940 choke me
40941 #endif
40942
40943 int
40944 main ()
40945 {
40946 return pthread_attr_getschedpolicy ();
40947   ;
40948   return 0;
40949 }
40950 _ACEOF
40951 rm -f conftest.$ac_objext conftest$ac_exeext
40952 if { (ac_try="$ac_link"
40953 case "(($ac_try" in
40954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40955   *) ac_try_echo=$ac_try;;
40956 esac
40957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40958   (eval "$ac_link") 2>conftest.er1
40959   ac_status=$?
40960   grep -v '^ *+' conftest.er1 >conftest.err
40961   rm -f conftest.er1
40962   cat conftest.err >&5
40963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964   (exit $ac_status); } && {
40965          test -z "$ac_c_werror_flag" ||
40966          test ! -s conftest.err
40967        } && test -s conftest$ac_exeext &&
40968        $as_test_x conftest$ac_exeext; then
40969   ac_cv_func_pthread_attr_getschedpolicy=yes
40970 else
40971   echo "$as_me: failed program was:" >&5
40972 sed 's/^/| /' conftest.$ac_ext >&5
40973
40974         ac_cv_func_pthread_attr_getschedpolicy=no
40975 fi
40976
40977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40978       conftest$ac_exeext conftest.$ac_ext
40979 fi
40980 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40981 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40982 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40983   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40984 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
40985 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40986   echo $ECHO_N "(cached) $ECHO_C" >&6
40987 else
40988   cat >conftest.$ac_ext <<_ACEOF
40989 /* confdefs.h.  */
40990 _ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h.  */
40994 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40996 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40997
40998 /* System header to define __stub macros and hopefully few prototypes,
40999     which can conflict with char pthread_attr_setschedparam (); below.
41000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41001     <limits.h> exists even on freestanding compilers.  */
41002
41003 #ifdef __STDC__
41004 # include <limits.h>
41005 #else
41006 # include <assert.h>
41007 #endif
41008
41009 #undef pthread_attr_setschedparam
41010
41011 /* Override any GCC internal prototype to avoid an error.
41012    Use char because int might match the return type of a GCC
41013    builtin and then its argument prototype would still apply.  */
41014 #ifdef __cplusplus
41015 extern "C"
41016 #endif
41017 char pthread_attr_setschedparam ();
41018 /* The GNU C library defines this for functions which it implements
41019     to always fail with ENOSYS.  Some functions are actually named
41020     something starting with __ and the normal name is an alias.  */
41021 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41022 choke me
41023 #endif
41024
41025 int
41026 main ()
41027 {
41028 return pthread_attr_setschedparam ();
41029   ;
41030   return 0;
41031 }
41032 _ACEOF
41033 rm -f conftest.$ac_objext conftest$ac_exeext
41034 if { (ac_try="$ac_link"
41035 case "(($ac_try" in
41036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41037   *) ac_try_echo=$ac_try;;
41038 esac
41039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41040   (eval "$ac_link") 2>conftest.er1
41041   ac_status=$?
41042   grep -v '^ *+' conftest.er1 >conftest.err
41043   rm -f conftest.er1
41044   cat conftest.err >&5
41045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046   (exit $ac_status); } && {
41047          test -z "$ac_c_werror_flag" ||
41048          test ! -s conftest.err
41049        } && test -s conftest$ac_exeext &&
41050        $as_test_x conftest$ac_exeext; then
41051   ac_cv_func_pthread_attr_setschedparam=yes
41052 else
41053   echo "$as_me: failed program was:" >&5
41054 sed 's/^/| /' conftest.$ac_ext >&5
41055
41056         ac_cv_func_pthread_attr_setschedparam=no
41057 fi
41058
41059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41060       conftest$ac_exeext conftest.$ac_ext
41061 fi
41062 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41063 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41064 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41065   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41066 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41067 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41068   echo $ECHO_N "(cached) $ECHO_C" >&6
41069 else
41070   cat >conftest.$ac_ext <<_ACEOF
41071 /* confdefs.h.  */
41072 _ACEOF
41073 cat confdefs.h >>conftest.$ac_ext
41074 cat >>conftest.$ac_ext <<_ACEOF
41075 /* end confdefs.h.  */
41076 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41078 #define sched_get_priority_max innocuous_sched_get_priority_max
41079
41080 /* System header to define __stub macros and hopefully few prototypes,
41081     which can conflict with char sched_get_priority_max (); below.
41082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41083     <limits.h> exists even on freestanding compilers.  */
41084
41085 #ifdef __STDC__
41086 # include <limits.h>
41087 #else
41088 # include <assert.h>
41089 #endif
41090
41091 #undef sched_get_priority_max
41092
41093 /* Override any GCC internal prototype to avoid an error.
41094    Use char because int might match the return type of a GCC
41095    builtin and then its argument prototype would still apply.  */
41096 #ifdef __cplusplus
41097 extern "C"
41098 #endif
41099 char sched_get_priority_max ();
41100 /* The GNU C library defines this for functions which it implements
41101     to always fail with ENOSYS.  Some functions are actually named
41102     something starting with __ and the normal name is an alias.  */
41103 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41104 choke me
41105 #endif
41106
41107 int
41108 main ()
41109 {
41110 return sched_get_priority_max ();
41111   ;
41112   return 0;
41113 }
41114 _ACEOF
41115 rm -f conftest.$ac_objext conftest$ac_exeext
41116 if { (ac_try="$ac_link"
41117 case "(($ac_try" in
41118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41119   *) ac_try_echo=$ac_try;;
41120 esac
41121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41122   (eval "$ac_link") 2>conftest.er1
41123   ac_status=$?
41124   grep -v '^ *+' conftest.er1 >conftest.err
41125   rm -f conftest.er1
41126   cat conftest.err >&5
41127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128   (exit $ac_status); } && {
41129          test -z "$ac_c_werror_flag" ||
41130          test ! -s conftest.err
41131        } && test -s conftest$ac_exeext &&
41132        $as_test_x conftest$ac_exeext; then
41133   ac_cv_func_sched_get_priority_max=yes
41134 else
41135   echo "$as_me: failed program was:" >&5
41136 sed 's/^/| /' conftest.$ac_ext >&5
41137
41138         ac_cv_func_sched_get_priority_max=no
41139 fi
41140
41141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41142       conftest$ac_exeext conftest.$ac_ext
41143 fi
41144 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41145 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41146 if test $ac_cv_func_sched_get_priority_max = yes; then
41147   HAVE_PRIOR_FUNCS=1
41148 else
41149   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41150 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41151 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41152   echo $ECHO_N "(cached) $ECHO_C" >&6
41153 else
41154   ac_check_lib_save_LIBS=$LIBS
41155 LIBS="-lposix4  $LIBS"
41156 cat >conftest.$ac_ext <<_ACEOF
41157 /* confdefs.h.  */
41158 _ACEOF
41159 cat confdefs.h >>conftest.$ac_ext
41160 cat >>conftest.$ac_ext <<_ACEOF
41161 /* end confdefs.h.  */
41162
41163 /* Override any GCC internal prototype to avoid an error.
41164    Use char because int might match the return type of a GCC
41165    builtin and then its argument prototype would still apply.  */
41166 #ifdef __cplusplus
41167 extern "C"
41168 #endif
41169 char sched_get_priority_max ();
41170 int
41171 main ()
41172 {
41173 return sched_get_priority_max ();
41174   ;
41175   return 0;
41176 }
41177 _ACEOF
41178 rm -f conftest.$ac_objext conftest$ac_exeext
41179 if { (ac_try="$ac_link"
41180 case "(($ac_try" in
41181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41182   *) ac_try_echo=$ac_try;;
41183 esac
41184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41185   (eval "$ac_link") 2>conftest.er1
41186   ac_status=$?
41187   grep -v '^ *+' conftest.er1 >conftest.err
41188   rm -f conftest.er1
41189   cat conftest.err >&5
41190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191   (exit $ac_status); } && {
41192          test -z "$ac_c_werror_flag" ||
41193          test ! -s conftest.err
41194        } && test -s conftest$ac_exeext &&
41195        $as_test_x conftest$ac_exeext; then
41196   ac_cv_lib_posix4_sched_get_priority_max=yes
41197 else
41198   echo "$as_me: failed program was:" >&5
41199 sed 's/^/| /' conftest.$ac_ext >&5
41200
41201         ac_cv_lib_posix4_sched_get_priority_max=no
41202 fi
41203
41204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41205       conftest$ac_exeext conftest.$ac_ext
41206 LIBS=$ac_check_lib_save_LIBS
41207 fi
41208 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41209 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41210 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41211
41212                                 HAVE_PRIOR_FUNCS=1
41213                                 POSIX4_LINK=" -lposix4"
41214
41215 fi
41216
41217
41218 fi
41219
41220
41221 fi
41222
41223
41224 fi
41225
41226
41227       if test "$HAVE_PRIOR_FUNCS" = 1; then
41228         cat >>confdefs.h <<\_ACEOF
41229 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41230 _ACEOF
41231
41232       else
41233         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41234 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41235       fi
41236
41237       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41238 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41239 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41240   echo $ECHO_N "(cached) $ECHO_C" >&6
41241 else
41242   cat >conftest.$ac_ext <<_ACEOF
41243 /* confdefs.h.  */
41244 _ACEOF
41245 cat confdefs.h >>conftest.$ac_ext
41246 cat >>conftest.$ac_ext <<_ACEOF
41247 /* end confdefs.h.  */
41248 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41250 #define pthread_cancel innocuous_pthread_cancel
41251
41252 /* System header to define __stub macros and hopefully few prototypes,
41253     which can conflict with char pthread_cancel (); below.
41254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41255     <limits.h> exists even on freestanding compilers.  */
41256
41257 #ifdef __STDC__
41258 # include <limits.h>
41259 #else
41260 # include <assert.h>
41261 #endif
41262
41263 #undef pthread_cancel
41264
41265 /* Override any GCC internal prototype to avoid an error.
41266    Use char because int might match the return type of a GCC
41267    builtin and then its argument prototype would still apply.  */
41268 #ifdef __cplusplus
41269 extern "C"
41270 #endif
41271 char pthread_cancel ();
41272 /* The GNU C library defines this for functions which it implements
41273     to always fail with ENOSYS.  Some functions are actually named
41274     something starting with __ and the normal name is an alias.  */
41275 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41276 choke me
41277 #endif
41278
41279 int
41280 main ()
41281 {
41282 return pthread_cancel ();
41283   ;
41284   return 0;
41285 }
41286 _ACEOF
41287 rm -f conftest.$ac_objext conftest$ac_exeext
41288 if { (ac_try="$ac_link"
41289 case "(($ac_try" in
41290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41291   *) ac_try_echo=$ac_try;;
41292 esac
41293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41294   (eval "$ac_link") 2>conftest.er1
41295   ac_status=$?
41296   grep -v '^ *+' conftest.er1 >conftest.err
41297   rm -f conftest.er1
41298   cat conftest.err >&5
41299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41300   (exit $ac_status); } && {
41301          test -z "$ac_c_werror_flag" ||
41302          test ! -s conftest.err
41303        } && test -s conftest$ac_exeext &&
41304        $as_test_x conftest$ac_exeext; then
41305   ac_cv_func_pthread_cancel=yes
41306 else
41307   echo "$as_me: failed program was:" >&5
41308 sed 's/^/| /' conftest.$ac_ext >&5
41309
41310         ac_cv_func_pthread_cancel=no
41311 fi
41312
41313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41314       conftest$ac_exeext conftest.$ac_ext
41315 fi
41316 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41317 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41318 if test $ac_cv_func_pthread_cancel = yes; then
41319   cat >>confdefs.h <<\_ACEOF
41320 #define HAVE_PTHREAD_CANCEL 1
41321 _ACEOF
41322
41323 else
41324   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41325 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41326 fi
41327
41328
41329       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41330 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41331 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41332   echo $ECHO_N "(cached) $ECHO_C" >&6
41333 else
41334   cat >conftest.$ac_ext <<_ACEOF
41335 /* confdefs.h.  */
41336 _ACEOF
41337 cat confdefs.h >>conftest.$ac_ext
41338 cat >>conftest.$ac_ext <<_ACEOF
41339 /* end confdefs.h.  */
41340 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41342 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41343
41344 /* System header to define __stub macros and hopefully few prototypes,
41345     which can conflict with char pthread_mutex_timedlock (); below.
41346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41347     <limits.h> exists even on freestanding compilers.  */
41348
41349 #ifdef __STDC__
41350 # include <limits.h>
41351 #else
41352 # include <assert.h>
41353 #endif
41354
41355 #undef pthread_mutex_timedlock
41356
41357 /* Override any GCC internal prototype to avoid an error.
41358    Use char because int might match the return type of a GCC
41359    builtin and then its argument prototype would still apply.  */
41360 #ifdef __cplusplus
41361 extern "C"
41362 #endif
41363 char pthread_mutex_timedlock ();
41364 /* The GNU C library defines this for functions which it implements
41365     to always fail with ENOSYS.  Some functions are actually named
41366     something starting with __ and the normal name is an alias.  */
41367 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41368 choke me
41369 #endif
41370
41371 int
41372 main ()
41373 {
41374 return pthread_mutex_timedlock ();
41375   ;
41376   return 0;
41377 }
41378 _ACEOF
41379 rm -f conftest.$ac_objext conftest$ac_exeext
41380 if { (ac_try="$ac_link"
41381 case "(($ac_try" in
41382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41383   *) ac_try_echo=$ac_try;;
41384 esac
41385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41386   (eval "$ac_link") 2>conftest.er1
41387   ac_status=$?
41388   grep -v '^ *+' conftest.er1 >conftest.err
41389   rm -f conftest.er1
41390   cat conftest.err >&5
41391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392   (exit $ac_status); } && {
41393          test -z "$ac_c_werror_flag" ||
41394          test ! -s conftest.err
41395        } && test -s conftest$ac_exeext &&
41396        $as_test_x conftest$ac_exeext; then
41397   ac_cv_func_pthread_mutex_timedlock=yes
41398 else
41399   echo "$as_me: failed program was:" >&5
41400 sed 's/^/| /' conftest.$ac_ext >&5
41401
41402         ac_cv_func_pthread_mutex_timedlock=no
41403 fi
41404
41405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41406       conftest$ac_exeext conftest.$ac_ext
41407 fi
41408 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41409 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41410 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41411   cat >>confdefs.h <<\_ACEOF
41412 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41413 _ACEOF
41414
41415 else
41416   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41417 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41418 fi
41419
41420
41421       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41422 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41423 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41424   echo $ECHO_N "(cached) $ECHO_C" >&6
41425 else
41426   cat >conftest.$ac_ext <<_ACEOF
41427 /* confdefs.h.  */
41428 _ACEOF
41429 cat confdefs.h >>conftest.$ac_ext
41430 cat >>conftest.$ac_ext <<_ACEOF
41431 /* end confdefs.h.  */
41432 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41434 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41435
41436 /* System header to define __stub macros and hopefully few prototypes,
41437     which can conflict with char pthread_attr_setstacksize (); below.
41438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41439     <limits.h> exists even on freestanding compilers.  */
41440
41441 #ifdef __STDC__
41442 # include <limits.h>
41443 #else
41444 # include <assert.h>
41445 #endif
41446
41447 #undef pthread_attr_setstacksize
41448
41449 /* Override any GCC internal prototype to avoid an error.
41450    Use char because int might match the return type of a GCC
41451    builtin and then its argument prototype would still apply.  */
41452 #ifdef __cplusplus
41453 extern "C"
41454 #endif
41455 char pthread_attr_setstacksize ();
41456 /* The GNU C library defines this for functions which it implements
41457     to always fail with ENOSYS.  Some functions are actually named
41458     something starting with __ and the normal name is an alias.  */
41459 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41460 choke me
41461 #endif
41462
41463 int
41464 main ()
41465 {
41466 return pthread_attr_setstacksize ();
41467   ;
41468   return 0;
41469 }
41470 _ACEOF
41471 rm -f conftest.$ac_objext conftest$ac_exeext
41472 if { (ac_try="$ac_link"
41473 case "(($ac_try" in
41474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41475   *) ac_try_echo=$ac_try;;
41476 esac
41477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41478   (eval "$ac_link") 2>conftest.er1
41479   ac_status=$?
41480   grep -v '^ *+' conftest.er1 >conftest.err
41481   rm -f conftest.er1
41482   cat conftest.err >&5
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); } && {
41485          test -z "$ac_c_werror_flag" ||
41486          test ! -s conftest.err
41487        } && test -s conftest$ac_exeext &&
41488        $as_test_x conftest$ac_exeext; then
41489   ac_cv_func_pthread_attr_setstacksize=yes
41490 else
41491   echo "$as_me: failed program was:" >&5
41492 sed 's/^/| /' conftest.$ac_ext >&5
41493
41494         ac_cv_func_pthread_attr_setstacksize=no
41495 fi
41496
41497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41498       conftest$ac_exeext conftest.$ac_ext
41499 fi
41500 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41501 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41502 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41503   cat >>confdefs.h <<\_ACEOF
41504 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41505 _ACEOF
41506
41507 fi
41508
41509
41510
41511       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41512 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41513 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41514   echo $ECHO_N "(cached) $ECHO_C" >&6
41515 else
41516
41517         cat >conftest.$ac_ext <<_ACEOF
41518 /* confdefs.h.  */
41519 _ACEOF
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h.  */
41523 #include <pthread.h>
41524 int
41525 main ()
41526 {
41527
41528                pthread_mutexattr_t attr;
41529                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41530
41531   ;
41532   return 0;
41533 }
41534 _ACEOF
41535 rm -f conftest.$ac_objext
41536 if { (ac_try="$ac_compile"
41537 case "(($ac_try" in
41538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41539   *) ac_try_echo=$ac_try;;
41540 esac
41541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41542   (eval "$ac_compile") 2>conftest.er1
41543   ac_status=$?
41544   grep -v '^ *+' conftest.er1 >conftest.err
41545   rm -f conftest.er1
41546   cat conftest.err >&5
41547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548   (exit $ac_status); } && {
41549          test -z "$ac_c_werror_flag" ||
41550          test ! -s conftest.err
41551        } && test -s conftest.$ac_objext; then
41552   wx_cv_type_pthread_mutexattr_t=yes
41553 else
41554   echo "$as_me: failed program was:" >&5
41555 sed 's/^/| /' conftest.$ac_ext >&5
41556
41557         wx_cv_type_pthread_mutexattr_t=no
41558
41559 fi
41560
41561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41562
41563 fi
41564 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41565 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41566
41567       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41568         cat >>confdefs.h <<\_ACEOF
41569 #define HAVE_PTHREAD_MUTEXATTR_T 1
41570 _ACEOF
41571
41572
41573                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41574 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41575 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41576   echo $ECHO_N "(cached) $ECHO_C" >&6
41577 else
41578
41579                        cat >conftest.$ac_ext <<_ACEOF
41580 /* confdefs.h.  */
41581 _ACEOF
41582 cat confdefs.h >>conftest.$ac_ext
41583 cat >>conftest.$ac_ext <<_ACEOF
41584 /* end confdefs.h.  */
41585 #include <pthread.h>
41586 int
41587 main ()
41588 {
41589
41590                                pthread_mutexattr_t attr;
41591                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41592
41593   ;
41594   return 0;
41595 }
41596 _ACEOF
41597 rm -f conftest.$ac_objext
41598 if { (ac_try="$ac_compile"
41599 case "(($ac_try" in
41600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41601   *) ac_try_echo=$ac_try;;
41602 esac
41603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41604   (eval "$ac_compile") 2>conftest.er1
41605   ac_status=$?
41606   grep -v '^ *+' conftest.er1 >conftest.err
41607   rm -f conftest.er1
41608   cat conftest.err >&5
41609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610   (exit $ac_status); } && {
41611          test -z "$ac_c_werror_flag" ||
41612          test ! -s conftest.err
41613        } && test -s conftest.$ac_objext; then
41614   wx_cv_func_pthread_mutexattr_settype_decl=yes
41615 else
41616   echo "$as_me: failed program was:" >&5
41617 sed 's/^/| /' conftest.$ac_ext >&5
41618
41619         wx_cv_func_pthread_mutexattr_settype_decl=no
41620
41621 fi
41622
41623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41624
41625 fi
41626 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41627 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41628         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41629             cat >>confdefs.h <<\_ACEOF
41630 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41631 _ACEOF
41632
41633         fi
41634       else
41635                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41636 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41637 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41638   echo $ECHO_N "(cached) $ECHO_C" >&6
41639 else
41640
41641             cat >conftest.$ac_ext <<_ACEOF
41642 /* confdefs.h.  */
41643 _ACEOF
41644 cat confdefs.h >>conftest.$ac_ext
41645 cat >>conftest.$ac_ext <<_ACEOF
41646 /* end confdefs.h.  */
41647 #include <pthread.h>
41648 int
41649 main ()
41650 {
41651
41652                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41653
41654   ;
41655   return 0;
41656 }
41657 _ACEOF
41658 rm -f conftest.$ac_objext
41659 if { (ac_try="$ac_compile"
41660 case "(($ac_try" in
41661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41662   *) ac_try_echo=$ac_try;;
41663 esac
41664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41665   (eval "$ac_compile") 2>conftest.er1
41666   ac_status=$?
41667   grep -v '^ *+' conftest.er1 >conftest.err
41668   rm -f conftest.er1
41669   cat conftest.err >&5
41670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671   (exit $ac_status); } && {
41672          test -z "$ac_c_werror_flag" ||
41673          test ! -s conftest.err
41674        } && test -s conftest.$ac_objext; then
41675
41676                     wx_cv_type_pthread_rec_mutex_init=yes
41677
41678 else
41679   echo "$as_me: failed program was:" >&5
41680 sed 's/^/| /' conftest.$ac_ext >&5
41681
41682
41683                     wx_cv_type_pthread_rec_mutex_init=no
41684
41685
41686 fi
41687
41688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41689
41690 fi
41691 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41692 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41693         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41694           cat >>confdefs.h <<\_ACEOF
41695 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41696 _ACEOF
41697
41698         else
41699                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41700 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41701         fi
41702       fi
41703
41704       if test "$wxUSE_COMPILER_TLS" = "auto"; then
41705           if test "$USE_NETBSD" = 1; then
41706               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
41707 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
41708               wxUSE_COMPILER_TLS=no
41709           else
41710               wxUSE_COMPILER_TLS=yes
41711           fi
41712       fi
41713
41714       if test "$wxUSE_COMPILER_TLS" = "yes"; then
41715                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
41716 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
41717 if test "${wx_cv_cc___thread+set}" = set; then
41718   echo $ECHO_N "(cached) $ECHO_C" >&6
41719 else
41720
41721                   cat >conftest.$ac_ext <<_ACEOF
41722 /* confdefs.h.  */
41723 _ACEOF
41724 cat confdefs.h >>conftest.$ac_ext
41725 cat >>conftest.$ac_ext <<_ACEOF
41726 /* end confdefs.h.  */
41727 #include <pthread.h>
41728 int
41729 main ()
41730 {
41731
41732                           static __thread int n = 0;
41733                           static __thread int *p = 0;
41734
41735   ;
41736   return 0;
41737 }
41738 _ACEOF
41739 rm -f conftest.$ac_objext
41740 if { (ac_try="$ac_compile"
41741 case "(($ac_try" in
41742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41743   *) ac_try_echo=$ac_try;;
41744 esac
41745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41746   (eval "$ac_compile") 2>conftest.er1
41747   ac_status=$?
41748   grep -v '^ *+' conftest.er1 >conftest.err
41749   rm -f conftest.er1
41750   cat conftest.err >&5
41751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752   (exit $ac_status); } && {
41753          test -z "$ac_c_werror_flag" ||
41754          test ! -s conftest.err
41755        } && test -s conftest.$ac_objext; then
41756   wx_cv_cc___thread=yes
41757 else
41758   echo "$as_me: failed program was:" >&5
41759 sed 's/^/| /' conftest.$ac_ext >&5
41760
41761         wx_cv_cc___thread=no
41762
41763 fi
41764
41765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41766
41767
41768 fi
41769 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41770 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
41771
41772           if test "$wx_cv_cc___thread" = "yes"; then
41773
41774   GXX_VERSION=""
41775
41776
41777
41778   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41779 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
41780
41781   if  test "x$GCC" = "xyes" ; then
41782
41783     if  test -z "" ; then
41784
41785       ax_gcc_option_test="int main()
41786 {
41787         return 0;
41788 }"
41789
41790 else
41791
41792       ax_gcc_option_test=""
41793
41794 fi
41795
41796
41797     # Dump the test program to file
41798     cat <<EOF > conftest.c
41799 $ax_gcc_option_test
41800 EOF
41801
41802     # Dump back the file to the log, useful for debugging purposes
41803     { ac_try='cat conftest.c 1>&5'
41804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41805   (eval $ac_try) 2>&5
41806   ac_status=$?
41807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41808   (exit $ac_status); }; }
41809
41810     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
41811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41812   (eval $ac_try) 2>&5
41813   ac_status=$?
41814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41815   (exit $ac_status); }; } ; then
41816
41817                 { echo "$as_me:$LINENO: result: yes" >&5
41818 echo "${ECHO_T}yes" >&6; }
41819
41820     ax_gcc_version_option=yes
41821
41822
41823 else
41824
41825                 { echo "$as_me:$LINENO: result: no" >&5
41826 echo "${ECHO_T}no" >&6; }
41827
41828     ax_gcc_version_option=no
41829
41830
41831 fi
41832
41833
41834 else
41835
41836     { echo "$as_me:$LINENO: result: no gcc available" >&5
41837 echo "${ECHO_T}no gcc available" >&6; }
41838
41839 fi
41840
41841
41842   if test "x$GXX" = "xyes"; then
41843
41844     if test "x$ax_gxx_version_option" != "no"; then
41845
41846       { echo "$as_me:$LINENO: checking gxx version" >&5
41847 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41848 if test "${ax_cv_gxx_version+set}" = set; then
41849   echo $ECHO_N "(cached) $ECHO_C" >&6
41850 else
41851
41852         ax_cv_gxx_version="`$CXX -dumpversion`"
41853         if test "x$ax_cv_gxx_version" = "x"; then
41854
41855           ax_cv_gxx_version=""
41856
41857 fi
41858
41859
41860 fi
41861 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41862 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
41863       GXX_VERSION=$ax_cv_gxx_version
41864
41865 fi
41866
41867
41868 fi
41869
41870
41871
41872               if test -n "$ax_cv_gxx_version"; then
41873                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41874 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
41875                   case "$ax_cv_gxx_version" in
41876                     1.* | 2.* | 3.* )
41877                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
41878 echo "${ECHO_T}no, it's broken" >&6; }
41879                         wx_cv_cc___thread=no
41880                         ;;
41881                     *)
41882                         { echo "$as_me:$LINENO: result: yes, it works" >&5
41883 echo "${ECHO_T}yes, it works" >&6; }
41884                         ;;
41885                   esac
41886               fi
41887           fi
41888
41889           if test "$wx_cv_cc___thread" = "yes"; then
41890             cat >>confdefs.h <<\_ACEOF
41891 #define HAVE___THREAD_KEYWORD 1
41892 _ACEOF
41893
41894           fi
41895         fi
41896     fi
41897
41898 else
41899     if test "$wxUSE_THREADS" = "yes" ; then
41900       case "${host}" in
41901         x86_64-*-mingw32* )
41902         ;;
41903         *-*-mingw32* )
41904                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41905 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
41906 if test "${wx_cv_cflags_mthread+set}" = set; then
41907   echo $ECHO_N "(cached) $ECHO_C" >&6
41908 else
41909
41910                     CFLAGS_OLD="$CFLAGS"
41911                     CFLAGS="-mthreads $CFLAGS"
41912                     cat >conftest.$ac_ext <<_ACEOF
41913 /* confdefs.h.  */
41914 _ACEOF
41915 cat confdefs.h >>conftest.$ac_ext
41916 cat >>conftest.$ac_ext <<_ACEOF
41917 /* end confdefs.h.  */
41918
41919 int
41920 main ()
41921 {
41922
41923   ;
41924   return 0;
41925 }
41926 _ACEOF
41927 rm -f conftest.$ac_objext
41928 if { (ac_try="$ac_compile"
41929 case "(($ac_try" in
41930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41931   *) ac_try_echo=$ac_try;;
41932 esac
41933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41934   (eval "$ac_compile") 2>conftest.er1
41935   ac_status=$?
41936   grep -v '^ *+' conftest.er1 >conftest.err
41937   rm -f conftest.er1
41938   cat conftest.err >&5
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); } && {
41941          test -z "$ac_c_werror_flag" ||
41942          test ! -s conftest.err
41943        } && test -s conftest.$ac_objext; then
41944   wx_cv_cflags_mthread=yes
41945 else
41946   echo "$as_me: failed program was:" >&5
41947 sed 's/^/| /' conftest.$ac_ext >&5
41948
41949         wx_cv_cflags_mthread=no
41950
41951 fi
41952
41953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41954
41955
41956 fi
41957 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41958 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
41959
41960             if test "$wx_cv_cflags_mthread" = "yes"; then
41961                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41962                 LDFLAGS="$LDFLAGS -mthreads"
41963             else
41964                                 CFLAGS="$CFLAGS_OLD"
41965             fi
41966         ;;
41967         *-pc-os2*emx )
41968             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41969             LDFLAGS="$LDFLAGS -Zmt"
41970         ;;
41971       esac
41972     fi
41973 fi
41974
41975 { echo "$as_me:$LINENO: checking for localtime_r" >&5
41976 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
41977 if test "${ac_cv_func_localtime_r+set}" = set; then
41978   echo $ECHO_N "(cached) $ECHO_C" >&6
41979 else
41980   cat >conftest.$ac_ext <<_ACEOF
41981 /* confdefs.h.  */
41982 _ACEOF
41983 cat confdefs.h >>conftest.$ac_ext
41984 cat >>conftest.$ac_ext <<_ACEOF
41985 /* end confdefs.h.  */
41986 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41988 #define localtime_r innocuous_localtime_r
41989
41990 /* System header to define __stub macros and hopefully few prototypes,
41991     which can conflict with char localtime_r (); below.
41992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41993     <limits.h> exists even on freestanding compilers.  */
41994
41995 #ifdef __STDC__
41996 # include <limits.h>
41997 #else
41998 # include <assert.h>
41999 #endif
42000
42001 #undef localtime_r
42002
42003 /* Override any GCC internal prototype to avoid an error.
42004    Use char because int might match the return type of a GCC
42005    builtin and then its argument prototype would still apply.  */
42006 #ifdef __cplusplus
42007 extern "C"
42008 #endif
42009 char localtime_r ();
42010 /* The GNU C library defines this for functions which it implements
42011     to always fail with ENOSYS.  Some functions are actually named
42012     something starting with __ and the normal name is an alias.  */
42013 #if defined __stub_localtime_r || defined __stub___localtime_r
42014 choke me
42015 #endif
42016
42017 int
42018 main ()
42019 {
42020 return localtime_r ();
42021   ;
42022   return 0;
42023 }
42024 _ACEOF
42025 rm -f conftest.$ac_objext conftest$ac_exeext
42026 if { (ac_try="$ac_link"
42027 case "(($ac_try" in
42028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42029   *) ac_try_echo=$ac_try;;
42030 esac
42031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42032   (eval "$ac_link") 2>conftest.er1
42033   ac_status=$?
42034   grep -v '^ *+' conftest.er1 >conftest.err
42035   rm -f conftest.er1
42036   cat conftest.err >&5
42037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42038   (exit $ac_status); } && {
42039          test -z "$ac_c_werror_flag" ||
42040          test ! -s conftest.err
42041        } && test -s conftest$ac_exeext &&
42042        $as_test_x conftest$ac_exeext; then
42043   ac_cv_func_localtime_r=yes
42044 else
42045   echo "$as_me: failed program was:" >&5
42046 sed 's/^/| /' conftest.$ac_ext >&5
42047
42048         ac_cv_func_localtime_r=no
42049 fi
42050
42051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42052       conftest$ac_exeext conftest.$ac_ext
42053 fi
42054 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42055 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42056 if test $ac_cv_func_localtime_r = yes; then
42057    cat >>confdefs.h <<\_ACEOF
42058 #define HAVE_LOCALTIME_R 1
42059 _ACEOF
42060
42061 fi
42062
42063 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42064 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42065 if test "${ac_cv_func_gmtime_r+set}" = set; then
42066   echo $ECHO_N "(cached) $ECHO_C" >&6
42067 else
42068   cat >conftest.$ac_ext <<_ACEOF
42069 /* confdefs.h.  */
42070 _ACEOF
42071 cat confdefs.h >>conftest.$ac_ext
42072 cat >>conftest.$ac_ext <<_ACEOF
42073 /* end confdefs.h.  */
42074 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42076 #define gmtime_r innocuous_gmtime_r
42077
42078 /* System header to define __stub macros and hopefully few prototypes,
42079     which can conflict with char gmtime_r (); below.
42080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42081     <limits.h> exists even on freestanding compilers.  */
42082
42083 #ifdef __STDC__
42084 # include <limits.h>
42085 #else
42086 # include <assert.h>
42087 #endif
42088
42089 #undef gmtime_r
42090
42091 /* Override any GCC internal prototype to avoid an error.
42092    Use char because int might match the return type of a GCC
42093    builtin and then its argument prototype would still apply.  */
42094 #ifdef __cplusplus
42095 extern "C"
42096 #endif
42097 char gmtime_r ();
42098 /* The GNU C library defines this for functions which it implements
42099     to always fail with ENOSYS.  Some functions are actually named
42100     something starting with __ and the normal name is an alias.  */
42101 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42102 choke me
42103 #endif
42104
42105 int
42106 main ()
42107 {
42108 return gmtime_r ();
42109   ;
42110   return 0;
42111 }
42112 _ACEOF
42113 rm -f conftest.$ac_objext conftest$ac_exeext
42114 if { (ac_try="$ac_link"
42115 case "(($ac_try" in
42116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42117   *) ac_try_echo=$ac_try;;
42118 esac
42119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42120   (eval "$ac_link") 2>conftest.er1
42121   ac_status=$?
42122   grep -v '^ *+' conftest.er1 >conftest.err
42123   rm -f conftest.er1
42124   cat conftest.err >&5
42125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126   (exit $ac_status); } && {
42127          test -z "$ac_c_werror_flag" ||
42128          test ! -s conftest.err
42129        } && test -s conftest$ac_exeext &&
42130        $as_test_x conftest$ac_exeext; then
42131   ac_cv_func_gmtime_r=yes
42132 else
42133   echo "$as_me: failed program was:" >&5
42134 sed 's/^/| /' conftest.$ac_ext >&5
42135
42136         ac_cv_func_gmtime_r=no
42137 fi
42138
42139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42140       conftest$ac_exeext conftest.$ac_ext
42141 fi
42142 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42143 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42144 if test $ac_cv_func_gmtime_r = yes; then
42145    cat >>confdefs.h <<\_ACEOF
42146 #define HAVE_GMTIME_R 1
42147 _ACEOF
42148
42149 fi
42150
42151
42152
42153
42154     ac_ext=c
42155 ac_cpp='$CPP $CPPFLAGS'
42156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42159
42160     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42161 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42162
42163     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42164   echo $ECHO_N "(cached) $ECHO_C" >&6
42165 else
42166
42167
42168 ################################################################
42169
42170 ac_cv_func_which_gethostbyname_r=unknown
42171
42172 #
42173 # ONE ARGUMENT (sanity check)
42174 #
42175
42176 # This should fail, as there is no variant of gethostbyname_r() that takes
42177 # a single argument. If it actually compiles, then we can assume that
42178 # netdb.h is not declaring the function, and the compiler is thereby
42179 # assuming an implicit prototype. In which case, we're out of luck.
42180 #
42181 cat >conftest.$ac_ext <<_ACEOF
42182 /* confdefs.h.  */
42183 _ACEOF
42184 cat confdefs.h >>conftest.$ac_ext
42185 cat >>conftest.$ac_ext <<_ACEOF
42186 /* end confdefs.h.  */
42187 #include <netdb.h>
42188 int
42189 main ()
42190 {
42191
42192             char *name = "www.gnu.org";
42193             (void)gethostbyname_r(name) /* ; */
42194
42195   ;
42196   return 0;
42197 }
42198 _ACEOF
42199 rm -f conftest.$ac_objext
42200 if { (ac_try="$ac_compile"
42201 case "(($ac_try" in
42202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42203   *) ac_try_echo=$ac_try;;
42204 esac
42205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42206   (eval "$ac_compile") 2>conftest.er1
42207   ac_status=$?
42208   grep -v '^ *+' conftest.er1 >conftest.err
42209   rm -f conftest.er1
42210   cat conftest.err >&5
42211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212   (exit $ac_status); } && {
42213          test -z "$ac_c_werror_flag" ||
42214          test ! -s conftest.err
42215        } && test -s conftest.$ac_objext; then
42216   ac_cv_func_which_gethostbyname_r=no
42217 else
42218   echo "$as_me: failed program was:" >&5
42219 sed 's/^/| /' conftest.$ac_ext >&5
42220
42221
42222 fi
42223
42224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42225
42226 #
42227 # SIX ARGUMENTS
42228 # (e.g. Linux)
42229 #
42230
42231 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42232
42233 cat >conftest.$ac_ext <<_ACEOF
42234 /* confdefs.h.  */
42235 _ACEOF
42236 cat confdefs.h >>conftest.$ac_ext
42237 cat >>conftest.$ac_ext <<_ACEOF
42238 /* end confdefs.h.  */
42239 #include <netdb.h>
42240 int
42241 main ()
42242 {
42243
42244             char *name = "www.gnu.org";
42245             struct hostent ret, *retp;
42246             char buf[1024];
42247             int buflen = 1024;
42248             int my_h_errno;
42249             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42250
42251   ;
42252   return 0;
42253 }
42254 _ACEOF
42255 rm -f conftest.$ac_objext
42256 if { (ac_try="$ac_compile"
42257 case "(($ac_try" in
42258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42259   *) ac_try_echo=$ac_try;;
42260 esac
42261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42262   (eval "$ac_compile") 2>conftest.er1
42263   ac_status=$?
42264   grep -v '^ *+' conftest.er1 >conftest.err
42265   rm -f conftest.er1
42266   cat conftest.err >&5
42267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268   (exit $ac_status); } && {
42269          test -z "$ac_c_werror_flag" ||
42270          test ! -s conftest.err
42271        } && test -s conftest.$ac_objext; then
42272   ac_cv_func_which_gethostbyname_r=six
42273 else
42274   echo "$as_me: failed program was:" >&5
42275 sed 's/^/| /' conftest.$ac_ext >&5
42276
42277
42278 fi
42279
42280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42281
42282 fi
42283
42284 #
42285 # FIVE ARGUMENTS
42286 # (e.g. Solaris)
42287 #
42288
42289 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42290
42291 cat >conftest.$ac_ext <<_ACEOF
42292 /* confdefs.h.  */
42293 _ACEOF
42294 cat confdefs.h >>conftest.$ac_ext
42295 cat >>conftest.$ac_ext <<_ACEOF
42296 /* end confdefs.h.  */
42297 #include <netdb.h>
42298 int
42299 main ()
42300 {
42301
42302             char *name = "www.gnu.org";
42303             struct hostent ret;
42304             char buf[1024];
42305             int buflen = 1024;
42306             int my_h_errno;
42307             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42308
42309   ;
42310   return 0;
42311 }
42312 _ACEOF
42313 rm -f conftest.$ac_objext
42314 if { (ac_try="$ac_compile"
42315 case "(($ac_try" in
42316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42317   *) ac_try_echo=$ac_try;;
42318 esac
42319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42320   (eval "$ac_compile") 2>conftest.er1
42321   ac_status=$?
42322   grep -v '^ *+' conftest.er1 >conftest.err
42323   rm -f conftest.er1
42324   cat conftest.err >&5
42325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42326   (exit $ac_status); } && {
42327          test -z "$ac_c_werror_flag" ||
42328          test ! -s conftest.err
42329        } && test -s conftest.$ac_objext; then
42330   ac_cv_func_which_gethostbyname_r=five
42331 else
42332   echo "$as_me: failed program was:" >&5
42333 sed 's/^/| /' conftest.$ac_ext >&5
42334
42335
42336 fi
42337
42338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42339
42340 fi
42341
42342 #
42343 # THREE ARGUMENTS
42344 # (e.g. AIX, HP-UX, Tru64)
42345 #
42346
42347 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42348
42349 cat >conftest.$ac_ext <<_ACEOF
42350 /* confdefs.h.  */
42351 _ACEOF
42352 cat confdefs.h >>conftest.$ac_ext
42353 cat >>conftest.$ac_ext <<_ACEOF
42354 /* end confdefs.h.  */
42355 #include <netdb.h>
42356 int
42357 main ()
42358 {
42359
42360             char *name = "www.gnu.org";
42361             struct hostent ret;
42362             struct hostent_data data;
42363             (void)gethostbyname_r(name, &ret, &data) /* ; */
42364
42365   ;
42366   return 0;
42367 }
42368 _ACEOF
42369 rm -f conftest.$ac_objext
42370 if { (ac_try="$ac_compile"
42371 case "(($ac_try" in
42372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42373   *) ac_try_echo=$ac_try;;
42374 esac
42375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42376   (eval "$ac_compile") 2>conftest.er1
42377   ac_status=$?
42378   grep -v '^ *+' conftest.er1 >conftest.err
42379   rm -f conftest.er1
42380   cat conftest.err >&5
42381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382   (exit $ac_status); } && {
42383          test -z "$ac_c_werror_flag" ||
42384          test ! -s conftest.err
42385        } && test -s conftest.$ac_objext; then
42386   ac_cv_func_which_gethostbyname_r=three
42387 else
42388   echo "$as_me: failed program was:" >&5
42389 sed 's/^/| /' conftest.$ac_ext >&5
42390
42391
42392 fi
42393
42394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42395
42396 fi
42397
42398 ################################################################
42399
42400
42401 fi
42402
42403 case "$ac_cv_func_which_gethostbyname_r" in
42404     three)
42405     { echo "$as_me:$LINENO: result: three" >&5
42406 echo "${ECHO_T}three" >&6; }
42407     cat >>confdefs.h <<\_ACEOF
42408 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42409 _ACEOF
42410
42411     ;;
42412
42413     five)
42414     { echo "$as_me:$LINENO: result: five" >&5
42415 echo "${ECHO_T}five" >&6; }
42416     cat >>confdefs.h <<\_ACEOF
42417 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42418 _ACEOF
42419
42420     ;;
42421
42422     six)
42423     { echo "$as_me:$LINENO: result: six" >&5
42424 echo "${ECHO_T}six" >&6; }
42425     cat >>confdefs.h <<\_ACEOF
42426 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42427 _ACEOF
42428
42429     ;;
42430
42431     no)
42432     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42433 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42434     ;;
42435
42436     unknown)
42437     { echo "$as_me:$LINENO: result: can't tell" >&5
42438 echo "${ECHO_T}can't tell" >&6; }
42439     ;;
42440
42441     *)
42442     { { echo "$as_me:$LINENO: error: internal error" >&5
42443 echo "$as_me: error: internal error" >&2;}
42444    { (exit 1); exit 1; }; }
42445     ;;
42446 esac
42447
42448 ac_ext=c
42449 ac_cpp='$CPP $CPPFLAGS'
42450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42453
42454
42455
42456       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42457               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42458           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42459 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42460 if test "${ac_cv_func_gethostbyname+set}" = set; then
42461   echo $ECHO_N "(cached) $ECHO_C" >&6
42462 else
42463   cat >conftest.$ac_ext <<_ACEOF
42464 /* confdefs.h.  */
42465 _ACEOF
42466 cat confdefs.h >>conftest.$ac_ext
42467 cat >>conftest.$ac_ext <<_ACEOF
42468 /* end confdefs.h.  */
42469 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42471 #define gethostbyname innocuous_gethostbyname
42472
42473 /* System header to define __stub macros and hopefully few prototypes,
42474     which can conflict with char gethostbyname (); below.
42475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42476     <limits.h> exists even on freestanding compilers.  */
42477
42478 #ifdef __STDC__
42479 # include <limits.h>
42480 #else
42481 # include <assert.h>
42482 #endif
42483
42484 #undef gethostbyname
42485
42486 /* Override any GCC internal prototype to avoid an error.
42487    Use char because int might match the return type of a GCC
42488    builtin and then its argument prototype would still apply.  */
42489 #ifdef __cplusplus
42490 extern "C"
42491 #endif
42492 char gethostbyname ();
42493 /* The GNU C library defines this for functions which it implements
42494     to always fail with ENOSYS.  Some functions are actually named
42495     something starting with __ and the normal name is an alias.  */
42496 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42497 choke me
42498 #endif
42499
42500 int
42501 main ()
42502 {
42503 return gethostbyname ();
42504   ;
42505   return 0;
42506 }
42507 _ACEOF
42508 rm -f conftest.$ac_objext conftest$ac_exeext
42509 if { (ac_try="$ac_link"
42510 case "(($ac_try" in
42511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42512   *) ac_try_echo=$ac_try;;
42513 esac
42514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42515   (eval "$ac_link") 2>conftest.er1
42516   ac_status=$?
42517   grep -v '^ *+' conftest.er1 >conftest.err
42518   rm -f conftest.er1
42519   cat conftest.err >&5
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); } && {
42522          test -z "$ac_c_werror_flag" ||
42523          test ! -s conftest.err
42524        } && test -s conftest$ac_exeext &&
42525        $as_test_x conftest$ac_exeext; then
42526   ac_cv_func_gethostbyname=yes
42527 else
42528   echo "$as_me: failed program was:" >&5
42529 sed 's/^/| /' conftest.$ac_ext >&5
42530
42531         ac_cv_func_gethostbyname=no
42532 fi
42533
42534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42535       conftest$ac_exeext conftest.$ac_ext
42536 fi
42537 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42538 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42539 if test $ac_cv_func_gethostbyname = yes; then
42540    cat >>confdefs.h <<\_ACEOF
42541 #define HAVE_GETHOSTBYNAME 1
42542 _ACEOF
42543
42544 fi
42545
42546       fi
42547
42548 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42549 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42550 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42551   echo $ECHO_N "(cached) $ECHO_C" >&6
42552 else
42553
42554                 ac_ext=cpp
42555 ac_cpp='$CXXCPP $CPPFLAGS'
42556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42559
42560
42561         cat >conftest.$ac_ext <<_ACEOF
42562 /* confdefs.h.  */
42563 _ACEOF
42564 cat confdefs.h >>conftest.$ac_ext
42565 cat >>conftest.$ac_ext <<_ACEOF
42566 /* end confdefs.h.  */
42567 #include <netdb.h>
42568 int
42569 main ()
42570 {
42571
42572                 char *name;
42573                 char *proto;
42574                 struct servent *se, *res;
42575                 char buffer[2048];
42576                 int buflen = 2048;
42577                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42578
42579   ;
42580   return 0;
42581 }
42582 _ACEOF
42583 rm -f conftest.$ac_objext
42584 if { (ac_try="$ac_compile"
42585 case "(($ac_try" in
42586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42587   *) ac_try_echo=$ac_try;;
42588 esac
42589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42590   (eval "$ac_compile") 2>conftest.er1
42591   ac_status=$?
42592   grep -v '^ *+' conftest.er1 >conftest.err
42593   rm -f conftest.er1
42594   cat conftest.err >&5
42595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596   (exit $ac_status); } && {
42597          test -z "$ac_cxx_werror_flag" ||
42598          test ! -s conftest.err
42599        } && test -s conftest.$ac_objext; then
42600   ac_cv_func_which_getservbyname_r=six
42601 else
42602   echo "$as_me: failed program was:" >&5
42603 sed 's/^/| /' conftest.$ac_ext >&5
42604
42605
42606                 cat >conftest.$ac_ext <<_ACEOF
42607 /* confdefs.h.  */
42608 _ACEOF
42609 cat confdefs.h >>conftest.$ac_ext
42610 cat >>conftest.$ac_ext <<_ACEOF
42611 /* end confdefs.h.  */
42612 #include <netdb.h>
42613 int
42614 main ()
42615 {
42616
42617                         char *name;
42618                         char *proto;
42619                         struct servent *se;
42620                         char buffer[2048];
42621                         int buflen = 2048;
42622                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42623
42624   ;
42625   return 0;
42626 }
42627 _ACEOF
42628 rm -f conftest.$ac_objext
42629 if { (ac_try="$ac_compile"
42630 case "(($ac_try" in
42631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42632   *) ac_try_echo=$ac_try;;
42633 esac
42634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42635   (eval "$ac_compile") 2>conftest.er1
42636   ac_status=$?
42637   grep -v '^ *+' conftest.er1 >conftest.err
42638   rm -f conftest.er1
42639   cat conftest.err >&5
42640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42641   (exit $ac_status); } && {
42642          test -z "$ac_cxx_werror_flag" ||
42643          test ! -s conftest.err
42644        } && test -s conftest.$ac_objext; then
42645   ac_cv_func_which_getservbyname_r=five
42646 else
42647   echo "$as_me: failed program was:" >&5
42648 sed 's/^/| /' conftest.$ac_ext >&5
42649
42650
42651                         cat >conftest.$ac_ext <<_ACEOF
42652 /* confdefs.h.  */
42653 _ACEOF
42654 cat confdefs.h >>conftest.$ac_ext
42655 cat >>conftest.$ac_ext <<_ACEOF
42656 /* end confdefs.h.  */
42657 #include <netdb.h>
42658 int
42659 main ()
42660 {
42661
42662                                 char *name;
42663                                 char *proto;
42664                                 struct servent *se;
42665                                 struct servent_data data;
42666                                 (void) getservbyname_r(name, proto, se, &data);
42667
42668   ;
42669   return 0;
42670 }
42671 _ACEOF
42672 rm -f conftest.$ac_objext
42673 if { (ac_try="$ac_compile"
42674 case "(($ac_try" in
42675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42676   *) ac_try_echo=$ac_try;;
42677 esac
42678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42679   (eval "$ac_compile") 2>conftest.er1
42680   ac_status=$?
42681   grep -v '^ *+' conftest.er1 >conftest.err
42682   rm -f conftest.er1
42683   cat conftest.err >&5
42684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42685   (exit $ac_status); } && {
42686          test -z "$ac_cxx_werror_flag" ||
42687          test ! -s conftest.err
42688        } && test -s conftest.$ac_objext; then
42689   ac_cv_func_which_getservbyname_r=four
42690 else
42691   echo "$as_me: failed program was:" >&5
42692 sed 's/^/| /' conftest.$ac_ext >&5
42693
42694         ac_cv_func_which_getservbyname_r=no
42695
42696 fi
42697
42698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42699
42700
42701 fi
42702
42703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42704
42705
42706 fi
42707
42708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42709         ac_ext=c
42710 ac_cpp='$CPP $CPPFLAGS'
42711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42714
42715
42716
42717 fi
42718 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42719 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
42720
42721 if test $ac_cv_func_which_getservbyname_r = six; then
42722   cat >>confdefs.h <<\_ACEOF
42723 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42724 _ACEOF
42725
42726 elif test $ac_cv_func_which_getservbyname_r = five; then
42727   cat >>confdefs.h <<\_ACEOF
42728 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42729 _ACEOF
42730
42731 elif test $ac_cv_func_which_getservbyname_r = four; then
42732   cat >>confdefs.h <<\_ACEOF
42733 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42734 _ACEOF
42735
42736 fi
42737
42738
42739       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42740               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42741
42742 for ac_func in getservbyname
42743 do
42744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42748   echo $ECHO_N "(cached) $ECHO_C" >&6
42749 else
42750   cat >conftest.$ac_ext <<_ACEOF
42751 /* confdefs.h.  */
42752 _ACEOF
42753 cat confdefs.h >>conftest.$ac_ext
42754 cat >>conftest.$ac_ext <<_ACEOF
42755 /* end confdefs.h.  */
42756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42758 #define $ac_func innocuous_$ac_func
42759
42760 /* System header to define __stub macros and hopefully few prototypes,
42761     which can conflict with char $ac_func (); below.
42762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42763     <limits.h> exists even on freestanding compilers.  */
42764
42765 #ifdef __STDC__
42766 # include <limits.h>
42767 #else
42768 # include <assert.h>
42769 #endif
42770
42771 #undef $ac_func
42772
42773 /* Override any GCC internal prototype to avoid an error.
42774    Use char because int might match the return type of a GCC
42775    builtin and then its argument prototype would still apply.  */
42776 #ifdef __cplusplus
42777 extern "C"
42778 #endif
42779 char $ac_func ();
42780 /* The GNU C library defines this for functions which it implements
42781     to always fail with ENOSYS.  Some functions are actually named
42782     something starting with __ and the normal name is an alias.  */
42783 #if defined __stub_$ac_func || defined __stub___$ac_func
42784 choke me
42785 #endif
42786
42787 int
42788 main ()
42789 {
42790 return $ac_func ();
42791   ;
42792   return 0;
42793 }
42794 _ACEOF
42795 rm -f conftest.$ac_objext conftest$ac_exeext
42796 if { (ac_try="$ac_link"
42797 case "(($ac_try" in
42798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42799   *) ac_try_echo=$ac_try;;
42800 esac
42801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42802   (eval "$ac_link") 2>conftest.er1
42803   ac_status=$?
42804   grep -v '^ *+' conftest.er1 >conftest.err
42805   rm -f conftest.er1
42806   cat conftest.err >&5
42807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808   (exit $ac_status); } && {
42809          test -z "$ac_c_werror_flag" ||
42810          test ! -s conftest.err
42811        } && test -s conftest$ac_exeext &&
42812        $as_test_x conftest$ac_exeext; then
42813   eval "$as_ac_var=yes"
42814 else
42815   echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42817
42818         eval "$as_ac_var=no"
42819 fi
42820
42821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42822       conftest$ac_exeext conftest.$ac_ext
42823 fi
42824 ac_res=`eval echo '${'$as_ac_var'}'`
42825                { echo "$as_me:$LINENO: result: $ac_res" >&5
42826 echo "${ECHO_T}$ac_res" >&6; }
42827 if test `eval echo '${'$as_ac_var'}'` = yes; then
42828   cat >>confdefs.h <<_ACEOF
42829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42830 _ACEOF
42831   cat >>confdefs.h <<\_ACEOF
42832 #define HAVE_GETSERVBYNAME 1
42833 _ACEOF
42834
42835 fi
42836 done
42837
42838       fi
42839
42840 if test "$wxUSE_THREADS" = "yes"; then
42841   cat >>confdefs.h <<\_ACEOF
42842 #define wxUSE_THREADS 1
42843 _ACEOF
42844
42845
42846   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42847 else
42848       if test "$wx_cv_func_strtok_r" = "yes"; then
42849     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42850 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
42851     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42852         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42853         { echo "$as_me:$LINENO: result: yes" >&5
42854 echo "${ECHO_T}yes" >&6; }
42855     else
42856         { echo "$as_me:$LINENO: result: no" >&5
42857 echo "${ECHO_T}no" >&6; }
42858     fi
42859   fi
42860 fi
42861
42862 if test "$WXGTK2" = 1 ; then
42863   cat >>confdefs.h <<_ACEOF
42864 #define __WXGTK20__ $WXGTK2
42865 _ACEOF
42866
42867   WXGTK12=1
42868 fi
42869
42870 if test "$WXGTK12" = 1 ; then
42871   cat >>confdefs.h <<_ACEOF
42872 #define __WXGTK12__ $WXGTK12
42873 _ACEOF
42874
42875 fi
42876
42877 if test "$WXGTK127" = 1 ; then
42878   cat >>confdefs.h <<_ACEOF
42879 #define __WXGTK127__ $WXGTK127
42880 _ACEOF
42881
42882 fi
42883
42884 if test "$WXGPE" = 1 ; then
42885   cat >>confdefs.h <<_ACEOF
42886 #define __WXGPE__ $WXGPE
42887 _ACEOF
42888
42889 fi
42890
42891 DEBUG_CFLAGS=
42892 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42893                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42894 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
42895 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
42896     DEBUG_CFLAGS="-g"
42897 fi
42898
42899 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42900     wxUSE_DEBUG_INFO=yes
42901     if test "$GCC" = yes; then
42902         DEBUG_CFLAGS="-ggdb"
42903     fi
42904 fi
42905
42906 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
42907     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
42908
42909     if test "$wxUSE_GTK" = 1 ; then
42910         if test "x$wxGTK_VERSION" = "x1" ; then
42911             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42912         fi
42913     fi
42914 fi
42915
42916 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42917     cat >>confdefs.h <<\_ACEOF
42918 #define wxUSE_MEMORY_TRACING 1
42919 _ACEOF
42920
42921     cat >>confdefs.h <<\_ACEOF
42922 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42923 _ACEOF
42924
42925     cat >>confdefs.h <<\_ACEOF
42926 #define wxUSE_DEBUG_NEW_ALWAYS 1
42927 _ACEOF
42928
42929     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42930 fi
42931
42932 if test "$wxUSE_DMALLOC" = "yes" ; then
42933     DMALLOC_LIBS="-ldmallocthcxx"
42934 fi
42935
42936 PROFILE_FLAGS=
42937 if test "$wxUSE_PROFILE" = "yes" ; then
42938     PROFILE_FLAGS=" -pg"
42939 fi
42940
42941 if test "$GCC" = "yes" ; then
42942     if test "$wxUSE_NO_RTTI" = "yes" ; then
42943                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
42944     fi
42945     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42946         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42947     fi
42948     if test "$wxUSE_PERMISSIVE" = "yes" ; then
42949         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42950     fi
42951
42952                                                 case "${host}" in
42953       powerpc*-*-aix* )
42954         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42955         ;;
42956       *-hppa* )
42957         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42958         ;;
42959     esac
42960 fi
42961
42962 OPTIMISE_CFLAGS=
42963 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
42964                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42965 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
42966 else
42967     if test "$wxUSE_OPTIMISE" = "no" ; then
42968         if test "$GCC" = yes ; then
42969                                     OPTIMISE_CFLAGS="-O0"
42970         fi
42971     else
42972         if test "$GCC" = yes ; then
42973             case "${host}" in
42974                 *-pc-os2_emx | *-pc-os2-emx )
42975                                                             OPTIMISE_CFLAGS="-O2"
42976                 ;;
42977                 *)
42978                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42979                 ;;
42980             esac
42981         else
42982             OPTIMISE_CFLAGS="-O"
42983         fi
42984     fi
42985 fi
42986
42987
42988 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
42989     cat >>confdefs.h <<\_ACEOF
42990 #define WXWIN_COMPATIBILITY_2_6 1
42991 _ACEOF
42992
42993
42994     WXWIN_COMPATIBILITY_2_8="yes"
42995 fi
42996
42997 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42998     cat >>confdefs.h <<\_ACEOF
42999 #define WXWIN_COMPATIBILITY_2_8 1
43000 _ACEOF
43001
43002 fi
43003
43004
43005 if test "$wxUSE_GUI" = "yes"; then
43006     cat >>confdefs.h <<\_ACEOF
43007 #define wxUSE_GUI 1
43008 _ACEOF
43009
43010
43011                                             fi
43012
43013
43014 if test "$wxUSE_UNIX" = "yes"; then
43015   cat >>confdefs.h <<\_ACEOF
43016 #define wxUSE_UNIX 1
43017 _ACEOF
43018
43019 fi
43020
43021
43022 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43023
43024     HAVE_DL_FUNCS=0
43025     HAVE_SHL_FUNCS=0
43026     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43027         if test "$USE_DOS" = 1; then
43028             HAVE_DL_FUNCS=0
43029         else
43030
43031 for ac_func in dlopen
43032 do
43033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43037   echo $ECHO_N "(cached) $ECHO_C" >&6
43038 else
43039   cat >conftest.$ac_ext <<_ACEOF
43040 /* confdefs.h.  */
43041 _ACEOF
43042 cat confdefs.h >>conftest.$ac_ext
43043 cat >>conftest.$ac_ext <<_ACEOF
43044 /* end confdefs.h.  */
43045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43047 #define $ac_func innocuous_$ac_func
43048
43049 /* System header to define __stub macros and hopefully few prototypes,
43050     which can conflict with char $ac_func (); below.
43051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43052     <limits.h> exists even on freestanding compilers.  */
43053
43054 #ifdef __STDC__
43055 # include <limits.h>
43056 #else
43057 # include <assert.h>
43058 #endif
43059
43060 #undef $ac_func
43061
43062 /* Override any GCC internal prototype to avoid an error.
43063    Use char because int might match the return type of a GCC
43064    builtin and then its argument prototype would still apply.  */
43065 #ifdef __cplusplus
43066 extern "C"
43067 #endif
43068 char $ac_func ();
43069 /* The GNU C library defines this for functions which it implements
43070     to always fail with ENOSYS.  Some functions are actually named
43071     something starting with __ and the normal name is an alias.  */
43072 #if defined __stub_$ac_func || defined __stub___$ac_func
43073 choke me
43074 #endif
43075
43076 int
43077 main ()
43078 {
43079 return $ac_func ();
43080   ;
43081   return 0;
43082 }
43083 _ACEOF
43084 rm -f conftest.$ac_objext conftest$ac_exeext
43085 if { (ac_try="$ac_link"
43086 case "(($ac_try" in
43087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43088   *) ac_try_echo=$ac_try;;
43089 esac
43090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43091   (eval "$ac_link") 2>conftest.er1
43092   ac_status=$?
43093   grep -v '^ *+' conftest.er1 >conftest.err
43094   rm -f conftest.er1
43095   cat conftest.err >&5
43096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43097   (exit $ac_status); } && {
43098          test -z "$ac_c_werror_flag" ||
43099          test ! -s conftest.err
43100        } && test -s conftest$ac_exeext &&
43101        $as_test_x conftest$ac_exeext; then
43102   eval "$as_ac_var=yes"
43103 else
43104   echo "$as_me: failed program was:" >&5
43105 sed 's/^/| /' conftest.$ac_ext >&5
43106
43107         eval "$as_ac_var=no"
43108 fi
43109
43110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43111       conftest$ac_exeext conftest.$ac_ext
43112 fi
43113 ac_res=`eval echo '${'$as_ac_var'}'`
43114                { echo "$as_me:$LINENO: result: $ac_res" >&5
43115 echo "${ECHO_T}$ac_res" >&6; }
43116 if test `eval echo '${'$as_ac_var'}'` = yes; then
43117   cat >>confdefs.h <<_ACEOF
43118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43119 _ACEOF
43120
43121                 cat >>confdefs.h <<\_ACEOF
43122 #define HAVE_DLOPEN 1
43123 _ACEOF
43124
43125                 HAVE_DL_FUNCS=1
43126
43127 else
43128
43129                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43130 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43131 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43132   echo $ECHO_N "(cached) $ECHO_C" >&6
43133 else
43134   ac_check_lib_save_LIBS=$LIBS
43135 LIBS="-ldl  $LIBS"
43136 cat >conftest.$ac_ext <<_ACEOF
43137 /* confdefs.h.  */
43138 _ACEOF
43139 cat confdefs.h >>conftest.$ac_ext
43140 cat >>conftest.$ac_ext <<_ACEOF
43141 /* end confdefs.h.  */
43142
43143 /* Override any GCC internal prototype to avoid an error.
43144    Use char because int might match the return type of a GCC
43145    builtin and then its argument prototype would still apply.  */
43146 #ifdef __cplusplus
43147 extern "C"
43148 #endif
43149 char dlopen ();
43150 int
43151 main ()
43152 {
43153 return dlopen ();
43154   ;
43155   return 0;
43156 }
43157 _ACEOF
43158 rm -f conftest.$ac_objext conftest$ac_exeext
43159 if { (ac_try="$ac_link"
43160 case "(($ac_try" in
43161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43162   *) ac_try_echo=$ac_try;;
43163 esac
43164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43165   (eval "$ac_link") 2>conftest.er1
43166   ac_status=$?
43167   grep -v '^ *+' conftest.er1 >conftest.err
43168   rm -f conftest.er1
43169   cat conftest.err >&5
43170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171   (exit $ac_status); } && {
43172          test -z "$ac_c_werror_flag" ||
43173          test ! -s conftest.err
43174        } && test -s conftest$ac_exeext &&
43175        $as_test_x conftest$ac_exeext; then
43176   ac_cv_lib_dl_dlopen=yes
43177 else
43178   echo "$as_me: failed program was:" >&5
43179 sed 's/^/| /' conftest.$ac_ext >&5
43180
43181         ac_cv_lib_dl_dlopen=no
43182 fi
43183
43184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43185       conftest$ac_exeext conftest.$ac_ext
43186 LIBS=$ac_check_lib_save_LIBS
43187 fi
43188 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43189 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43190 if test $ac_cv_lib_dl_dlopen = yes; then
43191
43192                                 cat >>confdefs.h <<\_ACEOF
43193 #define HAVE_DLOPEN 1
43194 _ACEOF
43195
43196                                 HAVE_DL_FUNCS=1
43197                                 DL_LINK=" -ldl$DL_LINK"
43198
43199 else
43200
43201
43202 for ac_func in shl_load
43203 do
43204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43208   echo $ECHO_N "(cached) $ECHO_C" >&6
43209 else
43210   cat >conftest.$ac_ext <<_ACEOF
43211 /* confdefs.h.  */
43212 _ACEOF
43213 cat confdefs.h >>conftest.$ac_ext
43214 cat >>conftest.$ac_ext <<_ACEOF
43215 /* end confdefs.h.  */
43216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43218 #define $ac_func innocuous_$ac_func
43219
43220 /* System header to define __stub macros and hopefully few prototypes,
43221     which can conflict with char $ac_func (); below.
43222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43223     <limits.h> exists even on freestanding compilers.  */
43224
43225 #ifdef __STDC__
43226 # include <limits.h>
43227 #else
43228 # include <assert.h>
43229 #endif
43230
43231 #undef $ac_func
43232
43233 /* Override any GCC internal prototype to avoid an error.
43234    Use char because int might match the return type of a GCC
43235    builtin and then its argument prototype would still apply.  */
43236 #ifdef __cplusplus
43237 extern "C"
43238 #endif
43239 char $ac_func ();
43240 /* The GNU C library defines this for functions which it implements
43241     to always fail with ENOSYS.  Some functions are actually named
43242     something starting with __ and the normal name is an alias.  */
43243 #if defined __stub_$ac_func || defined __stub___$ac_func
43244 choke me
43245 #endif
43246
43247 int
43248 main ()
43249 {
43250 return $ac_func ();
43251   ;
43252   return 0;
43253 }
43254 _ACEOF
43255 rm -f conftest.$ac_objext conftest$ac_exeext
43256 if { (ac_try="$ac_link"
43257 case "(($ac_try" in
43258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43259   *) ac_try_echo=$ac_try;;
43260 esac
43261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43262   (eval "$ac_link") 2>conftest.er1
43263   ac_status=$?
43264   grep -v '^ *+' conftest.er1 >conftest.err
43265   rm -f conftest.er1
43266   cat conftest.err >&5
43267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43268   (exit $ac_status); } && {
43269          test -z "$ac_c_werror_flag" ||
43270          test ! -s conftest.err
43271        } && test -s conftest$ac_exeext &&
43272        $as_test_x conftest$ac_exeext; then
43273   eval "$as_ac_var=yes"
43274 else
43275   echo "$as_me: failed program was:" >&5
43276 sed 's/^/| /' conftest.$ac_ext >&5
43277
43278         eval "$as_ac_var=no"
43279 fi
43280
43281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43282       conftest$ac_exeext conftest.$ac_ext
43283 fi
43284 ac_res=`eval echo '${'$as_ac_var'}'`
43285                { echo "$as_me:$LINENO: result: $ac_res" >&5
43286 echo "${ECHO_T}$ac_res" >&6; }
43287 if test `eval echo '${'$as_ac_var'}'` = yes; then
43288   cat >>confdefs.h <<_ACEOF
43289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43290 _ACEOF
43291
43292                                                 cat >>confdefs.h <<\_ACEOF
43293 #define HAVE_SHL_LOAD 1
43294 _ACEOF
43295
43296                                                 HAVE_SHL_FUNCS=1
43297
43298 else
43299
43300                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43301 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43302 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43303   echo $ECHO_N "(cached) $ECHO_C" >&6
43304 else
43305   ac_check_lib_save_LIBS=$LIBS
43306 LIBS="-lshl_load  $LIBS"
43307 cat >conftest.$ac_ext <<_ACEOF
43308 /* confdefs.h.  */
43309 _ACEOF
43310 cat confdefs.h >>conftest.$ac_ext
43311 cat >>conftest.$ac_ext <<_ACEOF
43312 /* end confdefs.h.  */
43313
43314 /* Override any GCC internal prototype to avoid an error.
43315    Use char because int might match the return type of a GCC
43316    builtin and then its argument prototype would still apply.  */
43317 #ifdef __cplusplus
43318 extern "C"
43319 #endif
43320 char dld ();
43321 int
43322 main ()
43323 {
43324 return dld ();
43325   ;
43326   return 0;
43327 }
43328 _ACEOF
43329 rm -f conftest.$ac_objext conftest$ac_exeext
43330 if { (ac_try="$ac_link"
43331 case "(($ac_try" in
43332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43333   *) ac_try_echo=$ac_try;;
43334 esac
43335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43336   (eval "$ac_link") 2>conftest.er1
43337   ac_status=$?
43338   grep -v '^ *+' conftest.er1 >conftest.err
43339   rm -f conftest.er1
43340   cat conftest.err >&5
43341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342   (exit $ac_status); } && {
43343          test -z "$ac_c_werror_flag" ||
43344          test ! -s conftest.err
43345        } && test -s conftest$ac_exeext &&
43346        $as_test_x conftest$ac_exeext; then
43347   ac_cv_lib_shl_load_dld=yes
43348 else
43349   echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43351
43352         ac_cv_lib_shl_load_dld=no
43353 fi
43354
43355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43356       conftest$ac_exeext conftest.$ac_ext
43357 LIBS=$ac_check_lib_save_LIBS
43358 fi
43359 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43360 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43361 if test $ac_cv_lib_shl_load_dld = yes; then
43362
43363                                                                 HAVE_SHL_FUNCS=1
43364                                                                 DL_LINK=" -ldld$DL_LINK"
43365
43366 fi
43367
43368
43369 fi
43370 done
43371
43372
43373 fi
43374
43375
43376 fi
43377 done
43378
43379
43380                         if test "$HAVE_DL_FUNCS" = 1; then
43381
43382 for ac_func in dlerror
43383 do
43384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43388   echo $ECHO_N "(cached) $ECHO_C" >&6
43389 else
43390   cat >conftest.$ac_ext <<_ACEOF
43391 /* confdefs.h.  */
43392 _ACEOF
43393 cat confdefs.h >>conftest.$ac_ext
43394 cat >>conftest.$ac_ext <<_ACEOF
43395 /* end confdefs.h.  */
43396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43398 #define $ac_func innocuous_$ac_func
43399
43400 /* System header to define __stub macros and hopefully few prototypes,
43401     which can conflict with char $ac_func (); below.
43402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43403     <limits.h> exists even on freestanding compilers.  */
43404
43405 #ifdef __STDC__
43406 # include <limits.h>
43407 #else
43408 # include <assert.h>
43409 #endif
43410
43411 #undef $ac_func
43412
43413 /* Override any GCC internal prototype to avoid an error.
43414    Use char because int might match the return type of a GCC
43415    builtin and then its argument prototype would still apply.  */
43416 #ifdef __cplusplus
43417 extern "C"
43418 #endif
43419 char $ac_func ();
43420 /* The GNU C library defines this for functions which it implements
43421     to always fail with ENOSYS.  Some functions are actually named
43422     something starting with __ and the normal name is an alias.  */
43423 #if defined __stub_$ac_func || defined __stub___$ac_func
43424 choke me
43425 #endif
43426
43427 int
43428 main ()
43429 {
43430 return $ac_func ();
43431   ;
43432   return 0;
43433 }
43434 _ACEOF
43435 rm -f conftest.$ac_objext conftest$ac_exeext
43436 if { (ac_try="$ac_link"
43437 case "(($ac_try" in
43438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43439   *) ac_try_echo=$ac_try;;
43440 esac
43441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43442   (eval "$ac_link") 2>conftest.er1
43443   ac_status=$?
43444   grep -v '^ *+' conftest.er1 >conftest.err
43445   rm -f conftest.er1
43446   cat conftest.err >&5
43447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43448   (exit $ac_status); } && {
43449          test -z "$ac_c_werror_flag" ||
43450          test ! -s conftest.err
43451        } && test -s conftest$ac_exeext &&
43452        $as_test_x conftest$ac_exeext; then
43453   eval "$as_ac_var=yes"
43454 else
43455   echo "$as_me: failed program was:" >&5
43456 sed 's/^/| /' conftest.$ac_ext >&5
43457
43458         eval "$as_ac_var=no"
43459 fi
43460
43461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43462       conftest$ac_exeext conftest.$ac_ext
43463 fi
43464 ac_res=`eval echo '${'$as_ac_var'}'`
43465                { echo "$as_me:$LINENO: result: $ac_res" >&5
43466 echo "${ECHO_T}$ac_res" >&6; }
43467 if test `eval echo '${'$as_ac_var'}'` = yes; then
43468   cat >>confdefs.h <<_ACEOF
43469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43470 _ACEOF
43471  cat >>confdefs.h <<\_ACEOF
43472 #define HAVE_DLERROR 1
43473 _ACEOF
43474
43475 else
43476
43477                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43478 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43479 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43480   echo $ECHO_N "(cached) $ECHO_C" >&6
43481 else
43482   ac_check_lib_save_LIBS=$LIBS
43483 LIBS="-ldl  $LIBS"
43484 cat >conftest.$ac_ext <<_ACEOF
43485 /* confdefs.h.  */
43486 _ACEOF
43487 cat confdefs.h >>conftest.$ac_ext
43488 cat >>conftest.$ac_ext <<_ACEOF
43489 /* end confdefs.h.  */
43490
43491 /* Override any GCC internal prototype to avoid an error.
43492    Use char because int might match the return type of a GCC
43493    builtin and then its argument prototype would still apply.  */
43494 #ifdef __cplusplus
43495 extern "C"
43496 #endif
43497 char dlerror ();
43498 int
43499 main ()
43500 {
43501 return dlerror ();
43502   ;
43503   return 0;
43504 }
43505 _ACEOF
43506 rm -f conftest.$ac_objext conftest$ac_exeext
43507 if { (ac_try="$ac_link"
43508 case "(($ac_try" in
43509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43510   *) ac_try_echo=$ac_try;;
43511 esac
43512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43513   (eval "$ac_link") 2>conftest.er1
43514   ac_status=$?
43515   grep -v '^ *+' conftest.er1 >conftest.err
43516   rm -f conftest.er1
43517   cat conftest.err >&5
43518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519   (exit $ac_status); } && {
43520          test -z "$ac_c_werror_flag" ||
43521          test ! -s conftest.err
43522        } && test -s conftest$ac_exeext &&
43523        $as_test_x conftest$ac_exeext; then
43524   ac_cv_lib_dl_dlerror=yes
43525 else
43526   echo "$as_me: failed program was:" >&5
43527 sed 's/^/| /' conftest.$ac_ext >&5
43528
43529         ac_cv_lib_dl_dlerror=no
43530 fi
43531
43532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43533       conftest$ac_exeext conftest.$ac_ext
43534 LIBS=$ac_check_lib_save_LIBS
43535 fi
43536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43537 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43538 if test $ac_cv_lib_dl_dlerror = yes; then
43539   cat >>confdefs.h <<\_ACEOF
43540 #define HAVE_DLERROR 1
43541 _ACEOF
43542
43543 fi
43544
43545
43546
43547 fi
43548 done
43549
43550             fi
43551         fi
43552
43553                 if test "$USE_DARWIN" = 1; then
43554                         HAVE_DL_FUNCS=1
43555         fi
43556
43557         if test "$HAVE_DL_FUNCS" = 0; then
43558             if test "$HAVE_SHL_FUNCS" = 0; then
43559               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43560                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43561 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43562                   wxUSE_DYNAMIC_LOADER=no
43563                   wxUSE_DYNLIB_CLASS=no
43564               else
43565                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43566 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43567               fi
43568             fi
43569         fi
43570     fi
43571 fi
43572
43573 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43574     cat >>confdefs.h <<\_ACEOF
43575 #define wxUSE_DYNAMIC_LOADER 1
43576 _ACEOF
43577
43578 fi
43579 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43580     cat >>confdefs.h <<\_ACEOF
43581 #define wxUSE_DYNLIB_CLASS 1
43582 _ACEOF
43583
43584 fi
43585
43586
43587
43588 if test "$wxUSE_PLUGINS" = "yes" ; then
43589     if test "$wxUSE_SHARED" = "no" ; then
43590         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43591 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43592         wxUSE_PLUGINS=no
43593     fi
43594     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43595         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43596 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43597         wxUSE_PLUGINS=no
43598     fi
43599     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43600         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43601 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43602         wxUSE_PLUGINS=no
43603     fi
43604     if test "$wxUSE_PLUGINS" = "yes" ; then
43605         cat >>confdefs.h <<\_ACEOF
43606 #define wxUSE_PLUGINS 1
43607 _ACEOF
43608
43609     fi
43610 fi
43611
43612
43613 if test "$wxUSE_FSWATCHER" = "yes"; then
43614                 if test "$wxUSE_MSW" != "1"; then
43615         if test "$wxUSE_UNIX" = "yes"; then
43616
43617 for ac_header in sys/inotify.h
43618 do
43619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43623   echo $ECHO_N "(cached) $ECHO_C" >&6
43624 else
43625   cat >conftest.$ac_ext <<_ACEOF
43626 /* confdefs.h.  */
43627 _ACEOF
43628 cat confdefs.h >>conftest.$ac_ext
43629 cat >>conftest.$ac_ext <<_ACEOF
43630 /* end confdefs.h.  */
43631 $ac_includes_default
43632
43633 #include <$ac_header>
43634 _ACEOF
43635 rm -f conftest.$ac_objext
43636 if { (ac_try="$ac_compile"
43637 case "(($ac_try" in
43638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43639   *) ac_try_echo=$ac_try;;
43640 esac
43641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43642   (eval "$ac_compile") 2>conftest.er1
43643   ac_status=$?
43644   grep -v '^ *+' conftest.er1 >conftest.err
43645   rm -f conftest.er1
43646   cat conftest.err >&5
43647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43648   (exit $ac_status); } && {
43649          test -z "$ac_c_werror_flag" ||
43650          test ! -s conftest.err
43651        } && test -s conftest.$ac_objext; then
43652   eval "$as_ac_Header=yes"
43653 else
43654   echo "$as_me: failed program was:" >&5
43655 sed 's/^/| /' conftest.$ac_ext >&5
43656
43657         eval "$as_ac_Header=no"
43658 fi
43659
43660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43661 fi
43662 ac_res=`eval echo '${'$as_ac_Header'}'`
43663                { echo "$as_me:$LINENO: result: $ac_res" >&5
43664 echo "${ECHO_T}$ac_res" >&6; }
43665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43666   cat >>confdefs.h <<_ACEOF
43667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43668 _ACEOF
43669
43670 fi
43671
43672 done
43673
43674             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43675                 cat >>confdefs.h <<\_ACEOF
43676 #define wxHAS_INOTIFY 1
43677 _ACEOF
43678
43679             else
43680
43681 for ac_header in sys/event.h
43682 do
43683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43687   echo $ECHO_N "(cached) $ECHO_C" >&6
43688 else
43689   cat >conftest.$ac_ext <<_ACEOF
43690 /* confdefs.h.  */
43691 _ACEOF
43692 cat confdefs.h >>conftest.$ac_ext
43693 cat >>conftest.$ac_ext <<_ACEOF
43694 /* end confdefs.h.  */
43695 $ac_includes_default
43696
43697 #include <$ac_header>
43698 _ACEOF
43699 rm -f conftest.$ac_objext
43700 if { (ac_try="$ac_compile"
43701 case "(($ac_try" in
43702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43703   *) ac_try_echo=$ac_try;;
43704 esac
43705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43706   (eval "$ac_compile") 2>conftest.er1
43707   ac_status=$?
43708   grep -v '^ *+' conftest.er1 >conftest.err
43709   rm -f conftest.er1
43710   cat conftest.err >&5
43711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43712   (exit $ac_status); } && {
43713          test -z "$ac_c_werror_flag" ||
43714          test ! -s conftest.err
43715        } && test -s conftest.$ac_objext; then
43716   eval "$as_ac_Header=yes"
43717 else
43718   echo "$as_me: failed program was:" >&5
43719 sed 's/^/| /' conftest.$ac_ext >&5
43720
43721         eval "$as_ac_Header=no"
43722 fi
43723
43724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43725 fi
43726 ac_res=`eval echo '${'$as_ac_Header'}'`
43727                { echo "$as_me:$LINENO: result: $ac_res" >&5
43728 echo "${ECHO_T}$ac_res" >&6; }
43729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43730   cat >>confdefs.h <<_ACEOF
43731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43732 _ACEOF
43733
43734 fi
43735
43736 done
43737
43738                 if test "$ac_cv_header_sys_event_h" = "yes"; then
43739                     cat >>confdefs.h <<\_ACEOF
43740 #define wxHAS_KQUEUE 1
43741 _ACEOF
43742
43743                 else
43744                     wxUSE_FSWATCHER=no
43745                 fi
43746             fi
43747         else
43748             wxUSE_FSWATCHER=no
43749         fi
43750     fi
43751
43752     if test "$wxUSE_FSWATCHER" = "yes"; then
43753         cat >>confdefs.h <<\_ACEOF
43754 #define wxUSE_FSWATCHER 1
43755 _ACEOF
43756
43757         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
43758     else
43759         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
43760 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
43761     fi
43762 fi
43763
43764
43765 if test "$wxUSE_STL" = "yes"; then
43766   cat >>confdefs.h <<\_ACEOF
43767 #define wxUSE_STL 1
43768 _ACEOF
43769
43770 fi
43771
43772 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43773   cat >>confdefs.h <<\_ACEOF
43774 #define wxUSE_EXTENDED_RTTI 1
43775 _ACEOF
43776
43777 fi
43778
43779 if test "$wxUSE_ANY" = "yes"; then
43780     cat >>confdefs.h <<\_ACEOF
43781 #define wxUSE_ANY 1
43782 _ACEOF
43783
43784 fi
43785
43786 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43787   cat >>confdefs.h <<\_ACEOF
43788 #define wxUSE_APPLE_IEEE 1
43789 _ACEOF
43790
43791 fi
43792
43793 if test "$wxUSE_TIMER" = "yes"; then
43794   cat >>confdefs.h <<\_ACEOF
43795 #define wxUSE_TIMER 1
43796 _ACEOF
43797
43798 fi
43799
43800 if test "$USE_UNIX" = 1 ; then
43801         if test "$wxUSE_MGL" != 1; then
43802                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43803 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
43804 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43805   echo $ECHO_N "(cached) $ECHO_C" >&6
43806 else
43807
43808             cat >conftest.$ac_ext <<_ACEOF
43809 /* confdefs.h.  */
43810 _ACEOF
43811 cat confdefs.h >>conftest.$ac_ext
43812 cat >>conftest.$ac_ext <<_ACEOF
43813 /* end confdefs.h.  */
43814
43815                     #include <sys/ioctl.h>
43816                     #include <sys/soundcard.h>
43817
43818 int
43819 main ()
43820 {
43821
43822                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43823
43824   ;
43825   return 0;
43826 }
43827 _ACEOF
43828 rm -f conftest.$ac_objext conftest$ac_exeext
43829 if { (ac_try="$ac_link"
43830 case "(($ac_try" in
43831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43832   *) ac_try_echo=$ac_try;;
43833 esac
43834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43835   (eval "$ac_link") 2>conftest.er1
43836   ac_status=$?
43837   grep -v '^ *+' conftest.er1 >conftest.err
43838   rm -f conftest.er1
43839   cat conftest.err >&5
43840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841   (exit $ac_status); } && {
43842          test -z "$ac_c_werror_flag" ||
43843          test ! -s conftest.err
43844        } && test -s conftest$ac_exeext &&
43845        $as_test_x conftest$ac_exeext; then
43846   ac_cv_header_sys_soundcard=yes
43847 else
43848   echo "$as_me: failed program was:" >&5
43849 sed 's/^/| /' conftest.$ac_ext >&5
43850
43851
43852                     saveLibs="$LIBS"
43853                     LIBS="$saveLibs -lossaudio"
43854                     cat >conftest.$ac_ext <<_ACEOF
43855 /* confdefs.h.  */
43856 _ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h.  */
43860
43861                             #include <sys/ioctl.h>
43862                             #include <sys/soundcard.h>
43863
43864 int
43865 main ()
43866 {
43867
43868                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43869
43870   ;
43871   return 0;
43872 }
43873 _ACEOF
43874 rm -f conftest.$ac_objext conftest$ac_exeext
43875 if { (ac_try="$ac_link"
43876 case "(($ac_try" in
43877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43878   *) ac_try_echo=$ac_try;;
43879 esac
43880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43881   (eval "$ac_link") 2>conftest.er1
43882   ac_status=$?
43883   grep -v '^ *+' conftest.er1 >conftest.err
43884   rm -f conftest.er1
43885   cat conftest.err >&5
43886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43887   (exit $ac_status); } && {
43888          test -z "$ac_c_werror_flag" ||
43889          test ! -s conftest.err
43890        } && test -s conftest$ac_exeext &&
43891        $as_test_x conftest$ac_exeext; then
43892   ac_cv_header_sys_soundcard=yes
43893 else
43894   echo "$as_me: failed program was:" >&5
43895 sed 's/^/| /' conftest.$ac_ext >&5
43896
43897
43898                             LIBS="$saveLibs"
43899                             ac_cv_header_sys_soundcard=no
43900
43901
43902 fi
43903
43904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43905       conftest$ac_exeext conftest.$ac_ext
43906
43907
43908 fi
43909
43910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43911       conftest$ac_exeext conftest.$ac_ext
43912
43913 fi
43914 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43915 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
43916     fi
43917
43918     if test "$ac_cv_header_sys_soundcard" = "yes"; then
43919         cat >>confdefs.h <<\_ACEOF
43920 #define HAVE_SYS_SOUNDCARD_H 1
43921 _ACEOF
43922
43923     fi
43924 fi
43925
43926 WITH_PLUGIN_SDL=0
43927 if test "$wxUSE_SOUND" = "yes"; then
43928   if test "$USE_UNIX" = 1 ; then
43929     if test "$wxUSE_LIBSDL" != "no"; then
43930
43931 # Check whether --with-sdl-prefix was given.
43932 if test "${with_sdl_prefix+set}" = set; then
43933   withval=$with_sdl_prefix; sdl_prefix="$withval"
43934 else
43935   sdl_prefix=""
43936 fi
43937
43938
43939 # Check whether --with-sdl-exec-prefix was given.
43940 if test "${with_sdl_exec_prefix+set}" = set; then
43941   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
43942 else
43943   sdl_exec_prefix=""
43944 fi
43945
43946 # Check whether --enable-sdltest was given.
43947 if test "${enable_sdltest+set}" = set; then
43948   enableval=$enable_sdltest;
43949 else
43950   enable_sdltest=yes
43951 fi
43952
43953
43954   if test x$sdl_exec_prefix != x ; then
43955     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43956     if test x${SDL_CONFIG+set} != xset ; then
43957       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43958     fi
43959   fi
43960   if test x$sdl_prefix != x ; then
43961     sdl_args="$sdl_args --prefix=$sdl_prefix"
43962     if test x${SDL_CONFIG+set} != xset ; then
43963       SDL_CONFIG=$sdl_prefix/bin/sdl-config
43964     fi
43965   fi
43966
43967   if test "x$prefix" != xNONE; then
43968     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43969   fi
43970   # Extract the first word of "sdl-config", so it can be a program name with args.
43971 set dummy sdl-config; ac_word=$2
43972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43974 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43975   echo $ECHO_N "(cached) $ECHO_C" >&6
43976 else
43977   case $SDL_CONFIG in
43978   [\\/]* | ?:[\\/]*)
43979   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43980   ;;
43981   *)
43982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43983 for as_dir in $PATH
43984 do
43985   IFS=$as_save_IFS
43986   test -z "$as_dir" && as_dir=.
43987   for ac_exec_ext in '' $ac_executable_extensions; do
43988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43989     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43991     break 2
43992   fi
43993 done
43994 done
43995 IFS=$as_save_IFS
43996
43997   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43998   ;;
43999 esac
44000 fi
44001 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44002 if test -n "$SDL_CONFIG"; then
44003   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44004 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44005 else
44006   { echo "$as_me:$LINENO: result: no" >&5
44007 echo "${ECHO_T}no" >&6; }
44008 fi
44009
44010
44011   min_sdl_version=1.2.0
44012   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44013 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44014   no_sdl=""
44015   if test "$SDL_CONFIG" = "no" ; then
44016     no_sdl=yes
44017   else
44018     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44019     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44020
44021     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44022            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44023     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44024            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44025     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44026            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44027     if test "x$enable_sdltest" = "xyes" ; then
44028       ac_save_CFLAGS="$CFLAGS"
44029       ac_save_CXXFLAGS="$CXXFLAGS"
44030       ac_save_LIBS="$LIBS"
44031       CFLAGS="$CFLAGS $SDL_CFLAGS"
44032       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44033       LIBS="$LIBS $SDL_LIBS"
44034       rm -f conf.sdltest
44035       if test "$cross_compiling" = yes; then
44036   echo $ac_n "cross compiling; assumed OK... $ac_c"
44037 else
44038   cat >conftest.$ac_ext <<_ACEOF
44039 /* confdefs.h.  */
44040 _ACEOF
44041 cat confdefs.h >>conftest.$ac_ext
44042 cat >>conftest.$ac_ext <<_ACEOF
44043 /* end confdefs.h.  */
44044
44045 #include <stdio.h>
44046 #include <stdlib.h>
44047 #include <string.h>
44048 #include "SDL.h"
44049
44050 char*
44051 my_strdup (char *str)
44052 {
44053   char *new_str;
44054
44055   if (str)
44056     {
44057       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44058       strcpy (new_str, str);
44059     }
44060   else
44061     new_str = NULL;
44062
44063   return new_str;
44064 }
44065
44066 int main (int argc, char *argv[])
44067 {
44068   int major, minor, micro;
44069   char *tmp_version;
44070
44071   /* This hangs on some systems (?)
44072   system ("touch conf.sdltest");
44073   */
44074   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44075
44076   /* HP/UX 9 (%@#!) writes to sscanf strings */
44077   tmp_version = my_strdup("$min_sdl_version");
44078   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44079      printf("%s, bad version string\n", "$min_sdl_version");
44080      exit(1);
44081    }
44082
44083    if (($sdl_major_version > major) ||
44084       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44085       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44086     {
44087       return 0;
44088     }
44089   else
44090     {
44091       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44092       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44093       printf("*** best to upgrade to the required version.\n");
44094       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44095       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44096       printf("*** config.cache before re-running configure\n");
44097       return 1;
44098     }
44099 }
44100
44101
44102 _ACEOF
44103 rm -f conftest$ac_exeext
44104 if { (ac_try="$ac_link"
44105 case "(($ac_try" in
44106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44107   *) ac_try_echo=$ac_try;;
44108 esac
44109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44110   (eval "$ac_link") 2>&5
44111   ac_status=$?
44112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44114   { (case "(($ac_try" in
44115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44116   *) ac_try_echo=$ac_try;;
44117 esac
44118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44119   (eval "$ac_try") 2>&5
44120   ac_status=$?
44121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122   (exit $ac_status); }; }; then
44123   :
44124 else
44125   echo "$as_me: program exited with status $ac_status" >&5
44126 echo "$as_me: failed program was:" >&5
44127 sed 's/^/| /' conftest.$ac_ext >&5
44128
44129 ( exit $ac_status )
44130 no_sdl=yes
44131 fi
44132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44133 fi
44134
44135
44136        CFLAGS="$ac_save_CFLAGS"
44137        CXXFLAGS="$ac_save_CXXFLAGS"
44138        LIBS="$ac_save_LIBS"
44139      fi
44140   fi
44141   if test "x$no_sdl" = x ; then
44142      { echo "$as_me:$LINENO: result: yes" >&5
44143 echo "${ECHO_T}yes" >&6; }
44144
44145                     EXTRALIBS_SDL="$SDL_LIBS"
44146                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44147                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44148                     cat >>confdefs.h <<\_ACEOF
44149 #define wxUSE_LIBSDL 1
44150 _ACEOF
44151
44152
44153   else
44154      { echo "$as_me:$LINENO: result: no" >&5
44155 echo "${ECHO_T}no" >&6; }
44156      if test "$SDL_CONFIG" = "no" ; then
44157        echo "*** The sdl-config script installed by SDL could not be found"
44158        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44159        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44160        echo "*** full path to sdl-config."
44161      else
44162        if test -f conf.sdltest ; then
44163         :
44164        else
44165           echo "*** Could not run SDL test program, checking why..."
44166           CFLAGS="$CFLAGS $SDL_CFLAGS"
44167           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44168           LIBS="$LIBS $SDL_LIBS"
44169           cat >conftest.$ac_ext <<_ACEOF
44170 /* confdefs.h.  */
44171 _ACEOF
44172 cat confdefs.h >>conftest.$ac_ext
44173 cat >>conftest.$ac_ext <<_ACEOF
44174 /* end confdefs.h.  */
44175
44176 #include <stdio.h>
44177 #include "SDL.h"
44178
44179 int main(int argc, char *argv[])
44180 { return 0; }
44181 #undef  main
44182 #define main K_and_R_C_main
44183
44184 int
44185 main ()
44186 {
44187  return 0;
44188   ;
44189   return 0;
44190 }
44191 _ACEOF
44192 rm -f conftest.$ac_objext conftest$ac_exeext
44193 if { (ac_try="$ac_link"
44194 case "(($ac_try" in
44195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44196   *) ac_try_echo=$ac_try;;
44197 esac
44198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44199   (eval "$ac_link") 2>conftest.er1
44200   ac_status=$?
44201   grep -v '^ *+' conftest.er1 >conftest.err
44202   rm -f conftest.er1
44203   cat conftest.err >&5
44204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205   (exit $ac_status); } && {
44206          test -z "$ac_c_werror_flag" ||
44207          test ! -s conftest.err
44208        } && test -s conftest$ac_exeext &&
44209        $as_test_x conftest$ac_exeext; then
44210    echo "*** The test program compiled, but did not run. This usually means"
44211           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44212           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44213           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44214           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44215           echo "*** is required on your system"
44216           echo "***"
44217           echo "*** If you have an old version installed, it is best to remove it, although"
44218           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44219 else
44220   echo "$as_me: failed program was:" >&5
44221 sed 's/^/| /' conftest.$ac_ext >&5
44222
44223          echo "*** The test program failed to compile or link. See the file config.log for the"
44224           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44225           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44226           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44227 fi
44228
44229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44230       conftest$ac_exeext conftest.$ac_ext
44231           CFLAGS="$ac_save_CFLAGS"
44232           CXXFLAGS="$ac_save_CXXFLAGS"
44233           LIBS="$ac_save_LIBS"
44234        fi
44235      fi
44236      SDL_CFLAGS=""
44237      SDL_LIBS=""
44238      wxUSE_LIBSDL="no"
44239   fi
44240
44241
44242   rm -f conf.sdltest
44243
44244       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44245         WITH_PLUGIN_SDL=1
44246       fi
44247     fi
44248   else
44249         if test "$wxUSE_MGL" = 1; then
44250         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44251 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44252         wxUSE_SOUND="no"
44253     fi
44254   fi
44255 fi
44256
44257 if test "$wxUSE_SOUND" = "yes"; then
44258   cat >>confdefs.h <<\_ACEOF
44259 #define wxUSE_SOUND 1
44260 _ACEOF
44261
44262   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44263 fi
44264
44265 if test "$WXGTK2" = 1; then
44266
44267
44268 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44269         if test -n "$ac_tool_prefix"; then
44270   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44271 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44275   echo $ECHO_N "(cached) $ECHO_C" >&6
44276 else
44277   case $PKG_CONFIG in
44278   [\\/]* | ?:[\\/]*)
44279   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44280   ;;
44281   *)
44282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44283 for as_dir in $PATH
44284 do
44285   IFS=$as_save_IFS
44286   test -z "$as_dir" && as_dir=.
44287   for ac_exec_ext in '' $ac_executable_extensions; do
44288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44289     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44291     break 2
44292   fi
44293 done
44294 done
44295 IFS=$as_save_IFS
44296
44297   ;;
44298 esac
44299 fi
44300 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44301 if test -n "$PKG_CONFIG"; then
44302   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44303 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44304 else
44305   { echo "$as_me:$LINENO: result: no" >&5
44306 echo "${ECHO_T}no" >&6; }
44307 fi
44308
44309
44310 fi
44311 if test -z "$ac_cv_path_PKG_CONFIG"; then
44312   ac_pt_PKG_CONFIG=$PKG_CONFIG
44313   # Extract the first word of "pkg-config", so it can be a program name with args.
44314 set dummy pkg-config; ac_word=$2
44315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44317 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44318   echo $ECHO_N "(cached) $ECHO_C" >&6
44319 else
44320   case $ac_pt_PKG_CONFIG in
44321   [\\/]* | ?:[\\/]*)
44322   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44323   ;;
44324   *)
44325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44326 for as_dir in $PATH
44327 do
44328   IFS=$as_save_IFS
44329   test -z "$as_dir" && as_dir=.
44330   for ac_exec_ext in '' $ac_executable_extensions; do
44331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44332     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44334     break 2
44335   fi
44336 done
44337 done
44338 IFS=$as_save_IFS
44339
44340   ;;
44341 esac
44342 fi
44343 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44344 if test -n "$ac_pt_PKG_CONFIG"; then
44345   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44346 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44347 else
44348   { echo "$as_me:$LINENO: result: no" >&5
44349 echo "${ECHO_T}no" >&6; }
44350 fi
44351
44352   if test "x$ac_pt_PKG_CONFIG" = x; then
44353     PKG_CONFIG=""
44354   else
44355     case $cross_compiling:$ac_tool_warned in
44356 yes:)
44357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44358 whose name does not start with the host triplet.  If you think this
44359 configuration is useful to you, please write to autoconf@gnu.org." >&5
44360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44361 whose name does not start with the host triplet.  If you think this
44362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44363 ac_tool_warned=yes ;;
44364 esac
44365     PKG_CONFIG=$ac_pt_PKG_CONFIG
44366   fi
44367 else
44368   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44369 fi
44370
44371 fi
44372 if test -n "$PKG_CONFIG"; then
44373         _pkg_min_version=0.9.0
44374         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44375 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44376         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44377                 { echo "$as_me:$LINENO: result: yes" >&5
44378 echo "${ECHO_T}yes" >&6; }
44379         else
44380                 { echo "$as_me:$LINENO: result: no" >&5
44381 echo "${ECHO_T}no" >&6; }
44382                 PKG_CONFIG=""
44383         fi
44384
44385 fi
44386
44387     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44388
44389         if test "$wxUSE_GTKPRINT" = "yes" ; then
44390
44391
44392 pkg_failed=no
44393 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44394 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44395
44396 if test -n "$PKG_CONFIG"; then
44397     if test -n "$GTKPRINT_CFLAGS"; then
44398         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44399     else
44400         if test -n "$PKG_CONFIG" && \
44401     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44402   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44403   ac_status=$?
44404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44405   (exit $ac_status); }; then
44406   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44407 else
44408   pkg_failed=yes
44409 fi
44410     fi
44411 else
44412         pkg_failed=untried
44413 fi
44414 if test -n "$PKG_CONFIG"; then
44415     if test -n "$GTKPRINT_LIBS"; then
44416         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44417     else
44418         if test -n "$PKG_CONFIG" && \
44419     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44420   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44421   ac_status=$?
44422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423   (exit $ac_status); }; then
44424   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44425 else
44426   pkg_failed=yes
44427 fi
44428     fi
44429 else
44430         pkg_failed=untried
44431 fi
44432
44433
44434
44435 if test $pkg_failed = yes; then
44436
44437 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44438         _pkg_short_errors_supported=yes
44439 else
44440         _pkg_short_errors_supported=no
44441 fi
44442         if test $_pkg_short_errors_supported = yes; then
44443                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44444         else
44445                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44446         fi
44447         # Put the nasty error message in config.log where it belongs
44448         echo "$GTKPRINT_PKG_ERRORS" >&5
44449
44450
44451                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44452 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44453                         wxUSE_GTKPRINT="no"
44454
44455
44456 elif test $pkg_failed = untried; then
44457
44458                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44459 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44460                         wxUSE_GTKPRINT="no"
44461
44462
44463 else
44464         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44465         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44466         { echo "$as_me:$LINENO: result: yes" >&5
44467 echo "${ECHO_T}yes" >&6; }
44468
44469                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44470                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44471                         cat >>confdefs.h <<\_ACEOF
44472 #define wxUSE_GTKPRINT 1
44473 _ACEOF
44474
44475
44476 fi
44477         fi
44478
44479         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44480
44481
44482 pkg_failed=no
44483 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44484 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44485
44486 if test -n "$PKG_CONFIG"; then
44487     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44488         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44489     else
44490         if test -n "$PKG_CONFIG" && \
44491     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44492   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44493   ac_status=$?
44494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44495   (exit $ac_status); }; then
44496   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44497 else
44498   pkg_failed=yes
44499 fi
44500     fi
44501 else
44502         pkg_failed=untried
44503 fi
44504 if test -n "$PKG_CONFIG"; then
44505     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44506         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44507     else
44508         if test -n "$PKG_CONFIG" && \
44509     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44510   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44511   ac_status=$?
44512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44513   (exit $ac_status); }; then
44514   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44515 else
44516   pkg_failed=yes
44517 fi
44518     fi
44519 else
44520         pkg_failed=untried
44521 fi
44522
44523
44524
44525 if test $pkg_failed = yes; then
44526
44527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44528         _pkg_short_errors_supported=yes
44529 else
44530         _pkg_short_errors_supported=no
44531 fi
44532         if test $_pkg_short_errors_supported = yes; then
44533                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44534         else
44535                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44536         fi
44537         # Put the nasty error message in config.log where it belongs
44538         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44539
44540
44541                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44542 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44543                         wxUSE_LIBGNOMEPRINT="no"
44544
44545
44546 elif test $pkg_failed = untried; then
44547
44548                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44549 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44550                         wxUSE_LIBGNOMEPRINT="no"
44551
44552
44553 else
44554         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44555         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44556         { echo "$as_me:$LINENO: result: yes" >&5
44557 echo "${ECHO_T}yes" >&6; }
44558
44559                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44560                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44561                         cat >>confdefs.h <<\_ACEOF
44562 #define wxUSE_LIBGNOMEPRINT 1
44563 _ACEOF
44564
44565
44566 fi
44567         fi
44568     fi
44569
44570     if test "$wxUSE_MIMETYPE" = "yes" ; then
44571         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44572
44573
44574 pkg_failed=no
44575 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44576 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44577
44578 if test -n "$PKG_CONFIG"; then
44579     if test -n "$GNOMEVFS_CFLAGS"; then
44580         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44581     else
44582         if test -n "$PKG_CONFIG" && \
44583     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44584   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44585   ac_status=$?
44586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44587   (exit $ac_status); }; then
44588   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44589 else
44590   pkg_failed=yes
44591 fi
44592     fi
44593 else
44594         pkg_failed=untried
44595 fi
44596 if test -n "$PKG_CONFIG"; then
44597     if test -n "$GNOMEVFS_LIBS"; then
44598         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44599     else
44600         if test -n "$PKG_CONFIG" && \
44601     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44602   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44603   ac_status=$?
44604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); }; then
44606   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44607 else
44608   pkg_failed=yes
44609 fi
44610     fi
44611 else
44612         pkg_failed=untried
44613 fi
44614
44615
44616
44617 if test $pkg_failed = yes; then
44618
44619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44620         _pkg_short_errors_supported=yes
44621 else
44622         _pkg_short_errors_supported=no
44623 fi
44624         if test $_pkg_short_errors_supported = yes; then
44625                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44626         else
44627                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44628         fi
44629         # Put the nasty error message in config.log where it belongs
44630         echo "$GNOMEVFS_PKG_ERRORS" >&5
44631
44632
44633                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44634 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44635                         wxUSE_LIBGNOMEVFS="no"
44636
44637
44638 elif test $pkg_failed = untried; then
44639
44640                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44641 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44642                         wxUSE_LIBGNOMEVFS="no"
44643
44644
44645 else
44646         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44647         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44648         { echo "$as_me:$LINENO: result: yes" >&5
44649 echo "${ECHO_T}yes" >&6; }
44650
44651                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44652                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44653                         cat >>confdefs.h <<\_ACEOF
44654 #define wxUSE_LIBGNOMEVFS 1
44655 _ACEOF
44656
44657
44658 fi
44659         fi
44660     fi
44661
44662     if test "$wxUSE_LIBHILDON" = "yes" ; then
44663
44664 pkg_failed=no
44665 { echo "$as_me:$LINENO: checking for HILDON" >&5
44666 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44667
44668 if test -n "$PKG_CONFIG"; then
44669     if test -n "$HILDON_CFLAGS"; then
44670         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44671     else
44672         if test -n "$PKG_CONFIG" && \
44673     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44674   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44675   ac_status=$?
44676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44677   (exit $ac_status); }; then
44678   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44679 else
44680   pkg_failed=yes
44681 fi
44682     fi
44683 else
44684         pkg_failed=untried
44685 fi
44686 if test -n "$PKG_CONFIG"; then
44687     if test -n "$HILDON_LIBS"; then
44688         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44689     else
44690         if test -n "$PKG_CONFIG" && \
44691     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44692   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44693   ac_status=$?
44694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695   (exit $ac_status); }; then
44696   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44697 else
44698   pkg_failed=yes
44699 fi
44700     fi
44701 else
44702         pkg_failed=untried
44703 fi
44704
44705
44706
44707 if test $pkg_failed = yes; then
44708
44709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44710         _pkg_short_errors_supported=yes
44711 else
44712         _pkg_short_errors_supported=no
44713 fi
44714         if test $_pkg_short_errors_supported = yes; then
44715                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44716         else
44717                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44718         fi
44719         # Put the nasty error message in config.log where it belongs
44720         echo "$HILDON_PKG_ERRORS" >&5
44721
44722
44723                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44724 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44725                         wxUSE_LIBHILDON="no"
44726                         ac_hildon_lgpl=0
44727
44728
44729 elif test $pkg_failed = untried; then
44730
44731                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44732 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44733                         wxUSE_LIBHILDON="no"
44734                         ac_hildon_lgpl=0
44735
44736
44737 else
44738         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44739         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44740         { echo "$as_me:$LINENO: result: yes" >&5
44741 echo "${ECHO_T}yes" >&6; }
44742
44743                 EXTRALIBS_HILDON="$HILDON_LIBS"
44744                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44745                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44746                 cat >>confdefs.h <<\_ACEOF
44747 #define wxUSE_LIBHILDON 1
44748 _ACEOF
44749
44750                 ac_hildon_lgpl=1
44751
44752 fi
44753
44754         if test "$ac_hildon_lgpl" = 0 ; then
44755
44756 pkg_failed=no
44757 { echo "$as_me:$LINENO: checking for HILDON2" >&5
44758 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
44759
44760 if test -n "$PKG_CONFIG"; then
44761     if test -n "$HILDON2_CFLAGS"; then
44762         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44763     else
44764         if test -n "$PKG_CONFIG" && \
44765     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44766   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44767   ac_status=$?
44768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44769   (exit $ac_status); }; then
44770   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44771 else
44772   pkg_failed=yes
44773 fi
44774     fi
44775 else
44776         pkg_failed=untried
44777 fi
44778 if test -n "$PKG_CONFIG"; then
44779     if test -n "$HILDON2_LIBS"; then
44780         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44781     else
44782         if test -n "$PKG_CONFIG" && \
44783     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44784   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44785   ac_status=$?
44786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44787   (exit $ac_status); }; then
44788   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44789 else
44790   pkg_failed=yes
44791 fi
44792     fi
44793 else
44794         pkg_failed=untried
44795 fi
44796
44797
44798
44799 if test $pkg_failed = yes; then
44800
44801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44802         _pkg_short_errors_supported=yes
44803 else
44804         _pkg_short_errors_supported=no
44805 fi
44806         if test $_pkg_short_errors_supported = yes; then
44807                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44808         else
44809                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44810         fi
44811         # Put the nasty error message in config.log where it belongs
44812         echo "$HILDON2_PKG_ERRORS" >&5
44813
44814
44815                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44816 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44817                             wxUSE_LIBHILDON2="no"
44818
44819
44820 elif test $pkg_failed = untried; then
44821
44822                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44823 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44824                             wxUSE_LIBHILDON2="no"
44825
44826
44827 else
44828         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44829         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44830         { echo "$as_me:$LINENO: result: yes" >&5
44831 echo "${ECHO_T}yes" >&6; }
44832
44833                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44834                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44835                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44836                     cat >>confdefs.h <<\_ACEOF
44837 #define wxUSE_LIBHILDON2 1
44838 _ACEOF
44839
44840
44841 fi
44842         fi
44843     fi
44844 fi
44845
44846 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44847   cat >>confdefs.h <<\_ACEOF
44848 #define wxUSE_CMDLINE_PARSER 1
44849 _ACEOF
44850
44851 fi
44852
44853 if test "$wxUSE_STOPWATCH" = "yes"; then
44854   cat >>confdefs.h <<\_ACEOF
44855 #define wxUSE_STOPWATCH 1
44856 _ACEOF
44857
44858 fi
44859
44860 if test "$wxUSE_DATETIME" = "yes"; then
44861   cat >>confdefs.h <<\_ACEOF
44862 #define wxUSE_DATETIME 1
44863 _ACEOF
44864
44865 fi
44866
44867 if test "$wxUSE_FILE" = "yes"; then
44868   cat >>confdefs.h <<\_ACEOF
44869 #define wxUSE_FILE 1
44870 _ACEOF
44871
44872 fi
44873
44874 if test "$wxUSE_FFILE" = "yes"; then
44875   cat >>confdefs.h <<\_ACEOF
44876 #define wxUSE_FFILE 1
44877 _ACEOF
44878
44879 fi
44880
44881 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44882   if test "$wxUSE_STREAMS" != yes; then
44883     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44884 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44885     wxUSE_ARCHIVE_STREAMS=no
44886   else
44887     cat >>confdefs.h <<\_ACEOF
44888 #define wxUSE_ARCHIVE_STREAMS 1
44889 _ACEOF
44890
44891   fi
44892 fi
44893
44894 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44895   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44896     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44897 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44898   elif test "$wxUSE_ZLIB" = "no"; then
44899     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44900 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44901   else
44902     cat >>confdefs.h <<\_ACEOF
44903 #define wxUSE_ZIPSTREAM 1
44904 _ACEOF
44905
44906   fi
44907 fi
44908
44909 if test "$wxUSE_TARSTREAM" = "yes"; then
44910   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44911     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44912 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44913   else
44914     cat >>confdefs.h <<\_ACEOF
44915 #define wxUSE_TARSTREAM 1
44916 _ACEOF
44917
44918   fi
44919 fi
44920
44921 if test "$wxUSE_FILE_HISTORY" = "yes"; then
44922   cat >>confdefs.h <<\_ACEOF
44923 #define wxUSE_FILE_HISTORY 1
44924 _ACEOF
44925
44926 fi
44927
44928 if test "$wxUSE_FILESYSTEM" = "yes"; then
44929   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44930     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44931 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44932     wxUSE_FILESYSTEM=no
44933   else
44934     cat >>confdefs.h <<\_ACEOF
44935 #define wxUSE_FILESYSTEM 1
44936 _ACEOF
44937
44938   fi
44939 fi
44940
44941 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44942   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44943     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44944 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44945   else
44946     cat >>confdefs.h <<\_ACEOF
44947 #define wxUSE_FS_ARCHIVE 1
44948 _ACEOF
44949
44950   fi
44951 fi
44952
44953 if test "$wxUSE_FS_ZIP" = "yes"; then
44954   if test "$wxUSE_FS_ARCHIVE" != yes; then
44955     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44956 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44957   else
44958     cat >>confdefs.h <<\_ACEOF
44959 #define wxUSE_FS_ZIP 1
44960 _ACEOF
44961
44962   fi
44963 fi
44964
44965 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44966   if test "$USE_UNIX" != 1; then
44967     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44968 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44969     wxUSE_ON_FATAL_EXCEPTION=no
44970   else
44971     cat >>confdefs.h <<\_ACEOF
44972 #define wxUSE_ON_FATAL_EXCEPTION 1
44973 _ACEOF
44974
44975   fi
44976 fi
44977
44978 if test "$wxUSE_STACKWALKER" = "yes"; then
44979     cat >>confdefs.h <<\_ACEOF
44980 #define wxUSE_STACKWALKER 1
44981 _ACEOF
44982
44983 fi
44984
44985 if test "$wxUSE_DEBUGREPORT" = "yes"; then
44986     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
44987         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44988 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
44989         wxUSE_DEBUGREPORT=no
44990     else
44991         cat >>confdefs.h <<\_ACEOF
44992 #define wxUSE_DEBUGREPORT 1
44993 _ACEOF
44994
44995         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44996             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44997         fi
44998     fi
44999 fi
45000
45001 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45002   cat >>confdefs.h <<\_ACEOF
45003 #define wxUSE_SNGLINST_CHECKER 1
45004 _ACEOF
45005
45006 fi
45007
45008 if test "$wxUSE_BUSYINFO" = "yes"; then
45009   cat >>confdefs.h <<\_ACEOF
45010 #define wxUSE_BUSYINFO 1
45011 _ACEOF
45012
45013 fi
45014
45015 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45016   cat >>confdefs.h <<\_ACEOF
45017 #define wxUSE_STD_CONTAINERS 1
45018 _ACEOF
45019
45020 fi
45021
45022 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45023   cat >>confdefs.h <<\_ACEOF
45024 #define wxUSE_STD_IOSTREAM 1
45025 _ACEOF
45026
45027 fi
45028
45029 if test "$wxUSE_STD_STRING" = "yes"; then
45030   cat >>confdefs.h <<\_ACEOF
45031 #define wxUSE_STD_STRING 1
45032 _ACEOF
45033
45034 fi
45035
45036 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45037   cat >>confdefs.h <<\_ACEOF
45038 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45039 _ACEOF
45040
45041 fi
45042
45043 if test "$wxUSE_STDPATHS" = "yes"; then
45044   cat >>confdefs.h <<\_ACEOF
45045 #define wxUSE_STDPATHS 1
45046 _ACEOF
45047
45048 fi
45049
45050 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45051     cat >>confdefs.h <<\_ACEOF
45052 #define wxUSE_TEXTBUFFER 1
45053 _ACEOF
45054
45055 fi
45056
45057 if test "$wxUSE_TEXTFILE" = "yes"; then
45058   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45059     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45060 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45061   else
45062     cat >>confdefs.h <<\_ACEOF
45063 #define wxUSE_TEXTFILE 1
45064 _ACEOF
45065
45066   fi
45067 fi
45068
45069 if test "$wxUSE_CONFIG" = "yes" ; then
45070   if test "$wxUSE_TEXTFILE" != "yes"; then
45071     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45072 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45073   else
45074     cat >>confdefs.h <<\_ACEOF
45075 #define wxUSE_CONFIG 1
45076 _ACEOF
45077
45078     cat >>confdefs.h <<\_ACEOF
45079 #define wxUSE_CONFIG_NATIVE 1
45080 _ACEOF
45081
45082     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45083   fi
45084 fi
45085
45086 if test "$wxUSE_INTL" = "yes" ; then
45087   if test "$wxUSE_FILE" != "yes"; then
45088     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45089 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45090   else
45091     cat >>confdefs.h <<\_ACEOF
45092 #define wxUSE_INTL 1
45093 _ACEOF
45094
45095     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45096     GUIDIST="$GUIDIST INTL_DIST"
45097   fi
45098 fi
45099
45100 if test "$wxUSE_XLOCALE" = "yes" ; then
45101     cat >>confdefs.h <<\_ACEOF
45102 #define wxUSE_XLOCALE 1
45103 _ACEOF
45104
45105     { echo "$as_me:$LINENO: checking for locale_t" >&5
45106 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45107 if test "${ac_cv_type_locale_t+set}" = set; then
45108   echo $ECHO_N "(cached) $ECHO_C" >&6
45109 else
45110   cat >conftest.$ac_ext <<_ACEOF
45111 /* confdefs.h.  */
45112 _ACEOF
45113 cat confdefs.h >>conftest.$ac_ext
45114 cat >>conftest.$ac_ext <<_ACEOF
45115 /* end confdefs.h.  */
45116 #include <xlocale.h>
45117                     #include <locale.h>
45118
45119 typedef locale_t ac__type_new_;
45120 int
45121 main ()
45122 {
45123 if ((ac__type_new_ *) 0)
45124   return 0;
45125 if (sizeof (ac__type_new_))
45126   return 0;
45127   ;
45128   return 0;
45129 }
45130 _ACEOF
45131 rm -f conftest.$ac_objext
45132 if { (ac_try="$ac_compile"
45133 case "(($ac_try" in
45134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45135   *) ac_try_echo=$ac_try;;
45136 esac
45137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45138   (eval "$ac_compile") 2>conftest.er1
45139   ac_status=$?
45140   grep -v '^ *+' conftest.er1 >conftest.err
45141   rm -f conftest.er1
45142   cat conftest.err >&5
45143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144   (exit $ac_status); } && {
45145          test -z "$ac_c_werror_flag" ||
45146          test ! -s conftest.err
45147        } && test -s conftest.$ac_objext; then
45148   ac_cv_type_locale_t=yes
45149 else
45150   echo "$as_me: failed program was:" >&5
45151 sed 's/^/| /' conftest.$ac_ext >&5
45152
45153         ac_cv_type_locale_t=no
45154 fi
45155
45156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45157 fi
45158 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45159 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45160 if test $ac_cv_type_locale_t = yes; then
45161
45162 cat >>confdefs.h <<_ACEOF
45163 #define HAVE_LOCALE_T 1
45164 _ACEOF
45165
45166
45167 fi
45168
45169 fi
45170
45171 if test "$wxUSE_LOG" = "yes"; then
45172   cat >>confdefs.h <<\_ACEOF
45173 #define wxUSE_LOG 1
45174 _ACEOF
45175
45176
45177     if test "$wxUSE_LOGGUI" = "yes"; then
45178       cat >>confdefs.h <<\_ACEOF
45179 #define wxUSE_LOGGUI 1
45180 _ACEOF
45181
45182     fi
45183
45184     if test "$wxUSE_LOGWINDOW" = "yes"; then
45185       cat >>confdefs.h <<\_ACEOF
45186 #define wxUSE_LOGWINDOW 1
45187 _ACEOF
45188
45189     fi
45190
45191     if test "$wxUSE_LOGDIALOG" = "yes"; then
45192       cat >>confdefs.h <<\_ACEOF
45193 #define wxUSE_LOG_DIALOG 1
45194 _ACEOF
45195
45196     fi
45197
45198         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45199 fi
45200
45201 if test "$wxUSE_LONGLONG" = "yes"; then
45202   cat >>confdefs.h <<\_ACEOF
45203 #define wxUSE_LONGLONG 1
45204 _ACEOF
45205
45206 fi
45207
45208 if test "$wxUSE_GEOMETRY" = "yes"; then
45209   cat >>confdefs.h <<\_ACEOF
45210 #define wxUSE_GEOMETRY 1
45211 _ACEOF
45212
45213 fi
45214
45215 if test "$wxUSE_BASE64" = "yes"; then
45216   cat >>confdefs.h <<\_ACEOF
45217 #define wxUSE_BASE64 1
45218 _ACEOF
45219
45220 fi
45221
45222 if test "$wxUSE_STREAMS" = "yes" ; then
45223   cat >>confdefs.h <<\_ACEOF
45224 #define wxUSE_STREAMS 1
45225 _ACEOF
45226
45227 fi
45228
45229 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45230   cat >>confdefs.h <<\_ACEOF
45231 #define wxUSE_PRINTF_POS_PARAMS 1
45232 _ACEOF
45233
45234 fi
45235
45236 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45237   cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_OBJC_UNIQUIFYING 1
45239 _ACEOF
45240
45241 fi
45242
45243
45244 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45245     cat >>confdefs.h <<\_ACEOF
45246 #define wxUSE_CONSOLE_EVENTLOOP 1
45247 _ACEOF
45248
45249
45250     if test "$wxUSE_UNIX" = "yes"; then
45251         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45252             cat >>confdefs.h <<\_ACEOF
45253 #define wxUSE_SELECT_DISPATCHER 1
45254 _ACEOF
45255
45256         fi
45257
45258         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45259
45260 for ac_header in sys/epoll.h
45261 do
45262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45266   echo $ECHO_N "(cached) $ECHO_C" >&6
45267 else
45268   cat >conftest.$ac_ext <<_ACEOF
45269 /* confdefs.h.  */
45270 _ACEOF
45271 cat confdefs.h >>conftest.$ac_ext
45272 cat >>conftest.$ac_ext <<_ACEOF
45273 /* end confdefs.h.  */
45274 $ac_includes_default
45275
45276 #include <$ac_header>
45277 _ACEOF
45278 rm -f conftest.$ac_objext
45279 if { (ac_try="$ac_compile"
45280 case "(($ac_try" in
45281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45282   *) ac_try_echo=$ac_try;;
45283 esac
45284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45285   (eval "$ac_compile") 2>conftest.er1
45286   ac_status=$?
45287   grep -v '^ *+' conftest.er1 >conftest.err
45288   rm -f conftest.er1
45289   cat conftest.err >&5
45290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45291   (exit $ac_status); } && {
45292          test -z "$ac_c_werror_flag" ||
45293          test ! -s conftest.err
45294        } && test -s conftest.$ac_objext; then
45295   eval "$as_ac_Header=yes"
45296 else
45297   echo "$as_me: failed program was:" >&5
45298 sed 's/^/| /' conftest.$ac_ext >&5
45299
45300         eval "$as_ac_Header=no"
45301 fi
45302
45303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45304 fi
45305 ac_res=`eval echo '${'$as_ac_Header'}'`
45306                { echo "$as_me:$LINENO: result: $ac_res" >&5
45307 echo "${ECHO_T}$ac_res" >&6; }
45308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45309   cat >>confdefs.h <<_ACEOF
45310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45311 _ACEOF
45312
45313 fi
45314
45315 done
45316
45317             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45318                 cat >>confdefs.h <<\_ACEOF
45319 #define wxUSE_EPOLL_DISPATCHER 1
45320 _ACEOF
45321
45322             else
45323                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45324 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45325             fi
45326         fi
45327     fi
45328 fi
45329
45330
45331
45332
45333 for ac_func in gettimeofday ftime
45334 do
45335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45339   echo $ECHO_N "(cached) $ECHO_C" >&6
45340 else
45341   cat >conftest.$ac_ext <<_ACEOF
45342 /* confdefs.h.  */
45343 _ACEOF
45344 cat confdefs.h >>conftest.$ac_ext
45345 cat >>conftest.$ac_ext <<_ACEOF
45346 /* end confdefs.h.  */
45347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45349 #define $ac_func innocuous_$ac_func
45350
45351 /* System header to define __stub macros and hopefully few prototypes,
45352     which can conflict with char $ac_func (); below.
45353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45354     <limits.h> exists even on freestanding compilers.  */
45355
45356 #ifdef __STDC__
45357 # include <limits.h>
45358 #else
45359 # include <assert.h>
45360 #endif
45361
45362 #undef $ac_func
45363
45364 /* Override any GCC internal prototype to avoid an error.
45365    Use char because int might match the return type of a GCC
45366    builtin and then its argument prototype would still apply.  */
45367 #ifdef __cplusplus
45368 extern "C"
45369 #endif
45370 char $ac_func ();
45371 /* The GNU C library defines this for functions which it implements
45372     to always fail with ENOSYS.  Some functions are actually named
45373     something starting with __ and the normal name is an alias.  */
45374 #if defined __stub_$ac_func || defined __stub___$ac_func
45375 choke me
45376 #endif
45377
45378 int
45379 main ()
45380 {
45381 return $ac_func ();
45382   ;
45383   return 0;
45384 }
45385 _ACEOF
45386 rm -f conftest.$ac_objext conftest$ac_exeext
45387 if { (ac_try="$ac_link"
45388 case "(($ac_try" in
45389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45390   *) ac_try_echo=$ac_try;;
45391 esac
45392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45393   (eval "$ac_link") 2>conftest.er1
45394   ac_status=$?
45395   grep -v '^ *+' conftest.er1 >conftest.err
45396   rm -f conftest.er1
45397   cat conftest.err >&5
45398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45399   (exit $ac_status); } && {
45400          test -z "$ac_c_werror_flag" ||
45401          test ! -s conftest.err
45402        } && test -s conftest$ac_exeext &&
45403        $as_test_x conftest$ac_exeext; then
45404   eval "$as_ac_var=yes"
45405 else
45406   echo "$as_me: failed program was:" >&5
45407 sed 's/^/| /' conftest.$ac_ext >&5
45408
45409         eval "$as_ac_var=no"
45410 fi
45411
45412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45413       conftest$ac_exeext conftest.$ac_ext
45414 fi
45415 ac_res=`eval echo '${'$as_ac_var'}'`
45416                { echo "$as_me:$LINENO: result: $ac_res" >&5
45417 echo "${ECHO_T}$ac_res" >&6; }
45418 if test `eval echo '${'$as_ac_var'}'` = yes; then
45419   cat >>confdefs.h <<_ACEOF
45420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45421 _ACEOF
45422  break
45423 fi
45424 done
45425
45426
45427 if test "$ac_cv_func_gettimeofday" = "yes"; then
45428     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45429 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45430 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45431   echo $ECHO_N "(cached) $ECHO_C" >&6
45432 else
45433
45434                 cat >conftest.$ac_ext <<_ACEOF
45435 /* confdefs.h.  */
45436 _ACEOF
45437 cat confdefs.h >>conftest.$ac_ext
45438 cat >>conftest.$ac_ext <<_ACEOF
45439 /* end confdefs.h.  */
45440
45441                 #include <sys/time.h>
45442                 #include <unistd.h>
45443
45444 int
45445 main ()
45446 {
45447
45448                 struct timeval tv;
45449                 gettimeofday(&tv, NULL);
45450
45451   ;
45452   return 0;
45453 }
45454 _ACEOF
45455 rm -f conftest.$ac_objext
45456 if { (ac_try="$ac_compile"
45457 case "(($ac_try" in
45458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45459   *) ac_try_echo=$ac_try;;
45460 esac
45461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45462   (eval "$ac_compile") 2>conftest.er1
45463   ac_status=$?
45464   grep -v '^ *+' conftest.er1 >conftest.err
45465   rm -f conftest.er1
45466   cat conftest.err >&5
45467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45468   (exit $ac_status); } && {
45469          test -z "$ac_c_werror_flag" ||
45470          test ! -s conftest.err
45471        } && test -s conftest.$ac_objext; then
45472   wx_cv_func_gettimeofday_has_2_args=yes
45473 else
45474   echo "$as_me: failed program was:" >&5
45475 sed 's/^/| /' conftest.$ac_ext >&5
45476
45477         cat >conftest.$ac_ext <<_ACEOF
45478 /* confdefs.h.  */
45479 _ACEOF
45480 cat confdefs.h >>conftest.$ac_ext
45481 cat >>conftest.$ac_ext <<_ACEOF
45482 /* end confdefs.h.  */
45483
45484                     #include <sys/time.h>
45485                     #include <unistd.h>
45486
45487 int
45488 main ()
45489 {
45490
45491                     struct timeval tv;
45492                     gettimeofday(&tv);
45493
45494   ;
45495   return 0;
45496 }
45497 _ACEOF
45498 rm -f conftest.$ac_objext
45499 if { (ac_try="$ac_compile"
45500 case "(($ac_try" in
45501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45502   *) ac_try_echo=$ac_try;;
45503 esac
45504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45505   (eval "$ac_compile") 2>conftest.er1
45506   ac_status=$?
45507   grep -v '^ *+' conftest.er1 >conftest.err
45508   rm -f conftest.er1
45509   cat conftest.err >&5
45510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45511   (exit $ac_status); } && {
45512          test -z "$ac_c_werror_flag" ||
45513          test ! -s conftest.err
45514        } && test -s conftest.$ac_objext; then
45515   wx_cv_func_gettimeofday_has_2_args=no
45516 else
45517   echo "$as_me: failed program was:" >&5
45518 sed 's/^/| /' conftest.$ac_ext >&5
45519
45520
45521                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45522 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45523                     wx_cv_func_gettimeofday_has_2_args=unknown
45524
45525
45526 fi
45527
45528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45529
45530 fi
45531
45532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45533
45534 fi
45535 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45536 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45537
45538     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45539         cat >>confdefs.h <<\_ACEOF
45540 #define WX_GETTIMEOFDAY_NO_TZ 1
45541 _ACEOF
45542
45543     fi
45544 fi
45545
45546 if test "$wxUSE_DATETIME" = "yes"; then
45547             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45548 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45549 if test "${wx_cv_var_timezone+set}" = set; then
45550   echo $ECHO_N "(cached) $ECHO_C" >&6
45551 else
45552
45553                         ac_ext=cpp
45554 ac_cpp='$CXXCPP $CPPFLAGS'
45555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45558
45559                         cat >conftest.$ac_ext <<_ACEOF
45560 /* confdefs.h.  */
45561 _ACEOF
45562 cat confdefs.h >>conftest.$ac_ext
45563 cat >>conftest.$ac_ext <<_ACEOF
45564 /* end confdefs.h.  */
45565
45566                                 #include <time.h>
45567
45568 int
45569 main ()
45570 {
45571
45572                                 int tz;
45573                                 tz = timezone;
45574
45575   ;
45576   return 0;
45577 }
45578 _ACEOF
45579 rm -f conftest.$ac_objext
45580 if { (ac_try="$ac_compile"
45581 case "(($ac_try" in
45582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45583   *) ac_try_echo=$ac_try;;
45584 esac
45585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45586   (eval "$ac_compile") 2>conftest.er1
45587   ac_status=$?
45588   grep -v '^ *+' conftest.er1 >conftest.err
45589   rm -f conftest.er1
45590   cat conftest.err >&5
45591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45592   (exit $ac_status); } && {
45593          test -z "$ac_cxx_werror_flag" ||
45594          test ! -s conftest.err
45595        } && test -s conftest.$ac_objext; then
45596
45597                                 wx_cv_var_timezone=timezone
45598
45599 else
45600   echo "$as_me: failed program was:" >&5
45601 sed 's/^/| /' conftest.$ac_ext >&5
45602
45603
45604                                 cat >conftest.$ac_ext <<_ACEOF
45605 /* confdefs.h.  */
45606 _ACEOF
45607 cat confdefs.h >>conftest.$ac_ext
45608 cat >>conftest.$ac_ext <<_ACEOF
45609 /* end confdefs.h.  */
45610
45611                                         #include <time.h>
45612
45613 int
45614 main ()
45615 {
45616
45617                                         int tz;
45618                                         tz = _timezone;
45619
45620   ;
45621   return 0;
45622 }
45623 _ACEOF
45624 rm -f conftest.$ac_objext
45625 if { (ac_try="$ac_compile"
45626 case "(($ac_try" in
45627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45628   *) ac_try_echo=$ac_try;;
45629 esac
45630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45631   (eval "$ac_compile") 2>conftest.er1
45632   ac_status=$?
45633   grep -v '^ *+' conftest.er1 >conftest.err
45634   rm -f conftest.er1
45635   cat conftest.err >&5
45636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45637   (exit $ac_status); } && {
45638          test -z "$ac_cxx_werror_flag" ||
45639          test ! -s conftest.err
45640        } && test -s conftest.$ac_objext; then
45641
45642                                         wx_cv_var_timezone=_timezone
45643
45644 else
45645   echo "$as_me: failed program was:" >&5
45646 sed 's/^/| /' conftest.$ac_ext >&5
45647
45648
45649                                         cat >conftest.$ac_ext <<_ACEOF
45650 /* confdefs.h.  */
45651 _ACEOF
45652 cat confdefs.h >>conftest.$ac_ext
45653 cat >>conftest.$ac_ext <<_ACEOF
45654 /* end confdefs.h.  */
45655
45656                                                 #include <time.h>
45657
45658 int
45659 main ()
45660 {
45661
45662                                                 int tz;
45663                                                 tz = __timezone;
45664
45665   ;
45666   return 0;
45667 }
45668 _ACEOF
45669 rm -f conftest.$ac_objext
45670 if { (ac_try="$ac_compile"
45671 case "(($ac_try" in
45672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45673   *) ac_try_echo=$ac_try;;
45674 esac
45675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45676   (eval "$ac_compile") 2>conftest.er1
45677   ac_status=$?
45678   grep -v '^ *+' conftest.er1 >conftest.err
45679   rm -f conftest.er1
45680   cat conftest.err >&5
45681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45682   (exit $ac_status); } && {
45683          test -z "$ac_cxx_werror_flag" ||
45684          test ! -s conftest.err
45685        } && test -s conftest.$ac_objext; then
45686
45687                                                 wx_cv_var_timezone=__timezone
45688
45689 else
45690   echo "$as_me: failed program was:" >&5
45691 sed 's/^/| /' conftest.$ac_ext >&5
45692
45693
45694                                                 if test "$USE_DOS" = 0 ; then
45695                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45696 echo "$as_me: WARNING: no timezone variable" >&2;}
45697                                                 fi
45698
45699
45700 fi
45701
45702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45703
45704
45705 fi
45706
45707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45708
45709
45710 fi
45711
45712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45713                         ac_ext=c
45714 ac_cpp='$CPP $CPPFLAGS'
45715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45718
45719
45720
45721 fi
45722 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45723 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
45724
45725         if test "x$wx_cv_var_timezone" != x ; then
45726         cat >>confdefs.h <<_ACEOF
45727 #define WX_TIMEZONE $wx_cv_var_timezone
45728 _ACEOF
45729
45730     fi
45731
45732
45733 for ac_func in localtime
45734 do
45735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45739   echo $ECHO_N "(cached) $ECHO_C" >&6
45740 else
45741   cat >conftest.$ac_ext <<_ACEOF
45742 /* confdefs.h.  */
45743 _ACEOF
45744 cat confdefs.h >>conftest.$ac_ext
45745 cat >>conftest.$ac_ext <<_ACEOF
45746 /* end confdefs.h.  */
45747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45749 #define $ac_func innocuous_$ac_func
45750
45751 /* System header to define __stub macros and hopefully few prototypes,
45752     which can conflict with char $ac_func (); below.
45753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45754     <limits.h> exists even on freestanding compilers.  */
45755
45756 #ifdef __STDC__
45757 # include <limits.h>
45758 #else
45759 # include <assert.h>
45760 #endif
45761
45762 #undef $ac_func
45763
45764 /* Override any GCC internal prototype to avoid an error.
45765    Use char because int might match the return type of a GCC
45766    builtin and then its argument prototype would still apply.  */
45767 #ifdef __cplusplus
45768 extern "C"
45769 #endif
45770 char $ac_func ();
45771 /* The GNU C library defines this for functions which it implements
45772     to always fail with ENOSYS.  Some functions are actually named
45773     something starting with __ and the normal name is an alias.  */
45774 #if defined __stub_$ac_func || defined __stub___$ac_func
45775 choke me
45776 #endif
45777
45778 int
45779 main ()
45780 {
45781 return $ac_func ();
45782   ;
45783   return 0;
45784 }
45785 _ACEOF
45786 rm -f conftest.$ac_objext conftest$ac_exeext
45787 if { (ac_try="$ac_link"
45788 case "(($ac_try" in
45789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45790   *) ac_try_echo=$ac_try;;
45791 esac
45792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45793   (eval "$ac_link") 2>conftest.er1
45794   ac_status=$?
45795   grep -v '^ *+' conftest.er1 >conftest.err
45796   rm -f conftest.er1
45797   cat conftest.err >&5
45798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45799   (exit $ac_status); } && {
45800          test -z "$ac_c_werror_flag" ||
45801          test ! -s conftest.err
45802        } && test -s conftest$ac_exeext &&
45803        $as_test_x conftest$ac_exeext; then
45804   eval "$as_ac_var=yes"
45805 else
45806   echo "$as_me: failed program was:" >&5
45807 sed 's/^/| /' conftest.$ac_ext >&5
45808
45809         eval "$as_ac_var=no"
45810 fi
45811
45812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45813       conftest$ac_exeext conftest.$ac_ext
45814 fi
45815 ac_res=`eval echo '${'$as_ac_var'}'`
45816                { echo "$as_me:$LINENO: result: $ac_res" >&5
45817 echo "${ECHO_T}$ac_res" >&6; }
45818 if test `eval echo '${'$as_ac_var'}'` = yes; then
45819   cat >>confdefs.h <<_ACEOF
45820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45821 _ACEOF
45822
45823 fi
45824 done
45825
45826
45827     if test "$ac_cv_func_localtime" = "yes"; then
45828         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45829 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
45830 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45831   echo $ECHO_N "(cached) $ECHO_C" >&6
45832 else
45833
45834             cat >conftest.$ac_ext <<_ACEOF
45835 /* confdefs.h.  */
45836 _ACEOF
45837 cat confdefs.h >>conftest.$ac_ext
45838 cat >>conftest.$ac_ext <<_ACEOF
45839 /* end confdefs.h.  */
45840
45841                     #include <time.h>
45842
45843 int
45844 main ()
45845 {
45846
45847                     struct tm tm;
45848                     tm.tm_gmtoff++;
45849
45850   ;
45851   return 0;
45852 }
45853 _ACEOF
45854 rm -f conftest.$ac_objext
45855 if { (ac_try="$ac_compile"
45856 case "(($ac_try" in
45857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45858   *) ac_try_echo=$ac_try;;
45859 esac
45860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45861   (eval "$ac_compile") 2>conftest.er1
45862   ac_status=$?
45863   grep -v '^ *+' conftest.er1 >conftest.err
45864   rm -f conftest.er1
45865   cat conftest.err >&5
45866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45867   (exit $ac_status); } && {
45868          test -z "$ac_c_werror_flag" ||
45869          test ! -s conftest.err
45870        } && test -s conftest.$ac_objext; then
45871
45872                     wx_cv_struct_tm_has_gmtoff=yes
45873
45874 else
45875   echo "$as_me: failed program was:" >&5
45876 sed 's/^/| /' conftest.$ac_ext >&5
45877
45878         wx_cv_struct_tm_has_gmtoff=no
45879
45880 fi
45881
45882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45883
45884 fi
45885 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45886 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
45887     fi
45888
45889     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45890         cat >>confdefs.h <<\_ACEOF
45891 #define WX_GMTOFF_IN_TM 1
45892 _ACEOF
45893
45894     fi
45895
45896     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45897 fi
45898
45899
45900 if test "$wxUSE_SOCKETS" = "yes"; then
45901     if test "$wxUSE_MGL" = 1; then
45902         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45903 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45904         wxUSE_SOCKETS="no"
45905     fi
45906 fi
45907
45908 if test "$wxUSE_SOCKETS" = "yes"; then
45909         if test "$TOOLKIT" != "MSW"; then
45910                 { echo "$as_me:$LINENO: checking for socket" >&5
45911 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
45912 if test "${ac_cv_func_socket+set}" = set; then
45913   echo $ECHO_N "(cached) $ECHO_C" >&6
45914 else
45915   cat >conftest.$ac_ext <<_ACEOF
45916 /* confdefs.h.  */
45917 _ACEOF
45918 cat confdefs.h >>conftest.$ac_ext
45919 cat >>conftest.$ac_ext <<_ACEOF
45920 /* end confdefs.h.  */
45921 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45923 #define socket innocuous_socket
45924
45925 /* System header to define __stub macros and hopefully few prototypes,
45926     which can conflict with char socket (); below.
45927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45928     <limits.h> exists even on freestanding compilers.  */
45929
45930 #ifdef __STDC__
45931 # include <limits.h>
45932 #else
45933 # include <assert.h>
45934 #endif
45935
45936 #undef socket
45937
45938 /* Override any GCC internal prototype to avoid an error.
45939    Use char because int might match the return type of a GCC
45940    builtin and then its argument prototype would still apply.  */
45941 #ifdef __cplusplus
45942 extern "C"
45943 #endif
45944 char socket ();
45945 /* The GNU C library defines this for functions which it implements
45946     to always fail with ENOSYS.  Some functions are actually named
45947     something starting with __ and the normal name is an alias.  */
45948 #if defined __stub_socket || defined __stub___socket
45949 choke me
45950 #endif
45951
45952 int
45953 main ()
45954 {
45955 return socket ();
45956   ;
45957   return 0;
45958 }
45959 _ACEOF
45960 rm -f conftest.$ac_objext conftest$ac_exeext
45961 if { (ac_try="$ac_link"
45962 case "(($ac_try" in
45963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45964   *) ac_try_echo=$ac_try;;
45965 esac
45966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45967   (eval "$ac_link") 2>conftest.er1
45968   ac_status=$?
45969   grep -v '^ *+' conftest.er1 >conftest.err
45970   rm -f conftest.er1
45971   cat conftest.err >&5
45972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45973   (exit $ac_status); } && {
45974          test -z "$ac_c_werror_flag" ||
45975          test ! -s conftest.err
45976        } && test -s conftest$ac_exeext &&
45977        $as_test_x conftest$ac_exeext; then
45978   ac_cv_func_socket=yes
45979 else
45980   echo "$as_me: failed program was:" >&5
45981 sed 's/^/| /' conftest.$ac_ext >&5
45982
45983         ac_cv_func_socket=no
45984 fi
45985
45986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45987       conftest$ac_exeext conftest.$ac_ext
45988 fi
45989 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45990 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
45991 if test $ac_cv_func_socket = yes; then
45992   :
45993 else
45994
45995                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45996 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
45997 if test "${ac_cv_lib_socket_socket+set}" = set; then
45998   echo $ECHO_N "(cached) $ECHO_C" >&6
45999 else
46000   ac_check_lib_save_LIBS=$LIBS
46001 LIBS="-lsocket  $LIBS"
46002 cat >conftest.$ac_ext <<_ACEOF
46003 /* confdefs.h.  */
46004 _ACEOF
46005 cat confdefs.h >>conftest.$ac_ext
46006 cat >>conftest.$ac_ext <<_ACEOF
46007 /* end confdefs.h.  */
46008
46009 /* Override any GCC internal prototype to avoid an error.
46010    Use char because int might match the return type of a GCC
46011    builtin and then its argument prototype would still apply.  */
46012 #ifdef __cplusplus
46013 extern "C"
46014 #endif
46015 char socket ();
46016 int
46017 main ()
46018 {
46019 return socket ();
46020   ;
46021   return 0;
46022 }
46023 _ACEOF
46024 rm -f conftest.$ac_objext conftest$ac_exeext
46025 if { (ac_try="$ac_link"
46026 case "(($ac_try" in
46027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46028   *) ac_try_echo=$ac_try;;
46029 esac
46030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46031   (eval "$ac_link") 2>conftest.er1
46032   ac_status=$?
46033   grep -v '^ *+' conftest.er1 >conftest.err
46034   rm -f conftest.er1
46035   cat conftest.err >&5
46036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46037   (exit $ac_status); } && {
46038          test -z "$ac_c_werror_flag" ||
46039          test ! -s conftest.err
46040        } && test -s conftest$ac_exeext &&
46041        $as_test_x conftest$ac_exeext; then
46042   ac_cv_lib_socket_socket=yes
46043 else
46044   echo "$as_me: failed program was:" >&5
46045 sed 's/^/| /' conftest.$ac_ext >&5
46046
46047         ac_cv_lib_socket_socket=no
46048 fi
46049
46050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46051       conftest$ac_exeext conftest.$ac_ext
46052 LIBS=$ac_check_lib_save_LIBS
46053 fi
46054 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46055 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46056 if test $ac_cv_lib_socket_socket = yes; then
46057   if test "$INET_LINK" != " -lsocket"; then
46058                         INET_LINK="$INET_LINK -lsocket"
46059                     fi
46060 else
46061
46062                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46063 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46064                         wxUSE_SOCKETS=no
46065
46066
46067 fi
46068
46069
46070
46071 fi
46072
46073     fi
46074 fi
46075
46076 if test "$wxUSE_SOCKETS" = "yes" ; then
46077                 if test "$TOOLKIT" != "MSW"; then
46078                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46079 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46080 if test "${wx_cv_type_getsockname3+set}" = set; then
46081   echo $ECHO_N "(cached) $ECHO_C" >&6
46082 else
46083
46084                 ac_ext=cpp
46085 ac_cpp='$CXXCPP $CPPFLAGS'
46086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46089
46090                 cat >conftest.$ac_ext <<_ACEOF
46091 /* confdefs.h.  */
46092 _ACEOF
46093 cat confdefs.h >>conftest.$ac_ext
46094 cat >>conftest.$ac_ext <<_ACEOF
46095 /* end confdefs.h.  */
46096
46097                         #include <sys/types.h>
46098                         #include <sys/socket.h>
46099
46100 int
46101 main ()
46102 {
46103
46104                         socklen_t len;
46105                         getsockname(0, 0, &len);
46106
46107   ;
46108   return 0;
46109 }
46110 _ACEOF
46111 rm -f conftest.$ac_objext
46112 if { (ac_try="$ac_compile"
46113 case "(($ac_try" in
46114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46115   *) ac_try_echo=$ac_try;;
46116 esac
46117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46118   (eval "$ac_compile") 2>conftest.er1
46119   ac_status=$?
46120   grep -v '^ *+' conftest.er1 >conftest.err
46121   rm -f conftest.er1
46122   cat conftest.err >&5
46123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46124   (exit $ac_status); } && {
46125          test -z "$ac_cxx_werror_flag" ||
46126          test ! -s conftest.err
46127        } && test -s conftest.$ac_objext; then
46128   wx_cv_type_getsockname3=socklen_t
46129 else
46130   echo "$as_me: failed program was:" >&5
46131 sed 's/^/| /' conftest.$ac_ext >&5
46132
46133
46134                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46135                         if test "$GCC" = yes ; then
46136                             CFLAGS="-Werror $CFLAGS"
46137                         fi
46138
46139                         cat >conftest.$ac_ext <<_ACEOF
46140 /* confdefs.h.  */
46141 _ACEOF
46142 cat confdefs.h >>conftest.$ac_ext
46143 cat >>conftest.$ac_ext <<_ACEOF
46144 /* end confdefs.h.  */
46145
46146                                 #include <sys/types.h>
46147                                 #include <sys/socket.h>
46148
46149 int
46150 main ()
46151 {
46152
46153                                 size_t len;
46154                                 getsockname(0, 0, &len);
46155
46156   ;
46157   return 0;
46158 }
46159 _ACEOF
46160 rm -f conftest.$ac_objext
46161 if { (ac_try="$ac_compile"
46162 case "(($ac_try" in
46163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46164   *) ac_try_echo=$ac_try;;
46165 esac
46166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46167   (eval "$ac_compile") 2>conftest.er1
46168   ac_status=$?
46169   grep -v '^ *+' conftest.er1 >conftest.err
46170   rm -f conftest.er1
46171   cat conftest.err >&5
46172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46173   (exit $ac_status); } && {
46174          test -z "$ac_cxx_werror_flag" ||
46175          test ! -s conftest.err
46176        } && test -s conftest.$ac_objext; then
46177   wx_cv_type_getsockname3=size_t
46178 else
46179   echo "$as_me: failed program was:" >&5
46180 sed 's/^/| /' conftest.$ac_ext >&5
46181
46182         cat >conftest.$ac_ext <<_ACEOF
46183 /* confdefs.h.  */
46184 _ACEOF
46185 cat confdefs.h >>conftest.$ac_ext
46186 cat >>conftest.$ac_ext <<_ACEOF
46187 /* end confdefs.h.  */
46188
46189                                     #include <sys/types.h>
46190                                     #include <sys/socket.h>
46191
46192 int
46193 main ()
46194 {
46195
46196                                     int len;
46197                                     getsockname(0, 0, &len);
46198
46199   ;
46200   return 0;
46201 }
46202 _ACEOF
46203 rm -f conftest.$ac_objext
46204 if { (ac_try="$ac_compile"
46205 case "(($ac_try" in
46206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46207   *) ac_try_echo=$ac_try;;
46208 esac
46209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46210   (eval "$ac_compile") 2>conftest.er1
46211   ac_status=$?
46212   grep -v '^ *+' conftest.er1 >conftest.err
46213   rm -f conftest.er1
46214   cat conftest.err >&5
46215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46216   (exit $ac_status); } && {
46217          test -z "$ac_cxx_werror_flag" ||
46218          test ! -s conftest.err
46219        } && test -s conftest.$ac_objext; then
46220   wx_cv_type_getsockname3=int
46221 else
46222   echo "$as_me: failed program was:" >&5
46223 sed 's/^/| /' conftest.$ac_ext >&5
46224
46225         wx_cv_type_getsockname3=unknown
46226
46227 fi
46228
46229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46230
46231 fi
46232
46233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46234
46235                         CFLAGS="$CFLAGS_OLD"
46236
46237
46238 fi
46239
46240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46241                 ac_ext=c
46242 ac_cpp='$CPP $CPPFLAGS'
46243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46246
46247
46248 fi
46249 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46250 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46251
46252         if test "$wx_cv_type_getsockname3" = "unknown"; then
46253             wxUSE_SOCKETS=no
46254             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46255 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46256         else
46257             cat >>confdefs.h <<_ACEOF
46258 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46259 _ACEOF
46260
46261         fi
46262                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46263 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46264 if test "${wx_cv_type_getsockopt5+set}" = set; then
46265   echo $ECHO_N "(cached) $ECHO_C" >&6
46266 else
46267
46268                                                                                                 ac_ext=cpp
46269 ac_cpp='$CXXCPP $CPPFLAGS'
46270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46273
46274                 cat >conftest.$ac_ext <<_ACEOF
46275 /* confdefs.h.  */
46276 _ACEOF
46277 cat confdefs.h >>conftest.$ac_ext
46278 cat >>conftest.$ac_ext <<_ACEOF
46279 /* end confdefs.h.  */
46280
46281                         #include <sys/types.h>
46282                         #include <sys/socket.h>
46283
46284 int
46285 main ()
46286 {
46287
46288                         socklen_t len;
46289                         getsockopt(0, 0, 0, 0, &len);
46290
46291   ;
46292   return 0;
46293 }
46294 _ACEOF
46295 rm -f conftest.$ac_objext
46296 if { (ac_try="$ac_compile"
46297 case "(($ac_try" in
46298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46299   *) ac_try_echo=$ac_try;;
46300 esac
46301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46302   (eval "$ac_compile") 2>conftest.er1
46303   ac_status=$?
46304   grep -v '^ *+' conftest.er1 >conftest.err
46305   rm -f conftest.er1
46306   cat conftest.err >&5
46307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46308   (exit $ac_status); } && {
46309          test -z "$ac_cxx_werror_flag" ||
46310          test ! -s conftest.err
46311        } && test -s conftest.$ac_objext; then
46312   wx_cv_type_getsockopt5=socklen_t
46313 else
46314   echo "$as_me: failed program was:" >&5
46315 sed 's/^/| /' conftest.$ac_ext >&5
46316
46317
46318                         cat >conftest.$ac_ext <<_ACEOF
46319 /* confdefs.h.  */
46320 _ACEOF
46321 cat confdefs.h >>conftest.$ac_ext
46322 cat >>conftest.$ac_ext <<_ACEOF
46323 /* end confdefs.h.  */
46324
46325                                 #include <sys/types.h>
46326                                 #include <sys/socket.h>
46327
46328 int
46329 main ()
46330 {
46331
46332                                 size_t len;
46333                                 getsockopt(0, 0, 0, 0, &len);
46334
46335   ;
46336   return 0;
46337 }
46338 _ACEOF
46339 rm -f conftest.$ac_objext
46340 if { (ac_try="$ac_compile"
46341 case "(($ac_try" in
46342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46343   *) ac_try_echo=$ac_try;;
46344 esac
46345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46346   (eval "$ac_compile") 2>conftest.er1
46347   ac_status=$?
46348   grep -v '^ *+' conftest.er1 >conftest.err
46349   rm -f conftest.er1
46350   cat conftest.err >&5
46351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46352   (exit $ac_status); } && {
46353          test -z "$ac_cxx_werror_flag" ||
46354          test ! -s conftest.err
46355        } && test -s conftest.$ac_objext; then
46356   wx_cv_type_getsockopt5=size_t
46357 else
46358   echo "$as_me: failed program was:" >&5
46359 sed 's/^/| /' conftest.$ac_ext >&5
46360
46361         cat >conftest.$ac_ext <<_ACEOF
46362 /* confdefs.h.  */
46363 _ACEOF
46364 cat confdefs.h >>conftest.$ac_ext
46365 cat >>conftest.$ac_ext <<_ACEOF
46366 /* end confdefs.h.  */
46367
46368                                     #include <sys/types.h>
46369                                     #include <sys/socket.h>
46370
46371 int
46372 main ()
46373 {
46374
46375                                     int len;
46376                                     getsockopt(0, 0, 0, 0, &len);
46377
46378   ;
46379   return 0;
46380 }
46381 _ACEOF
46382 rm -f conftest.$ac_objext
46383 if { (ac_try="$ac_compile"
46384 case "(($ac_try" in
46385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46386   *) ac_try_echo=$ac_try;;
46387 esac
46388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46389   (eval "$ac_compile") 2>conftest.er1
46390   ac_status=$?
46391   grep -v '^ *+' conftest.er1 >conftest.err
46392   rm -f conftest.er1
46393   cat conftest.err >&5
46394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46395   (exit $ac_status); } && {
46396          test -z "$ac_cxx_werror_flag" ||
46397          test ! -s conftest.err
46398        } && test -s conftest.$ac_objext; then
46399   wx_cv_type_getsockopt5=int
46400 else
46401   echo "$as_me: failed program was:" >&5
46402 sed 's/^/| /' conftest.$ac_ext >&5
46403
46404         wx_cv_type_getsockopt5=unknown
46405
46406 fi
46407
46408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46409
46410 fi
46411
46412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46413
46414
46415 fi
46416
46417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46418                 ac_ext=c
46419 ac_cpp='$CPP $CPPFLAGS'
46420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46423
46424
46425 fi
46426 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46427 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46428
46429         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46430             wxUSE_SOCKETS=no
46431             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46432 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46433         else
46434             cat >>confdefs.h <<_ACEOF
46435 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46436 _ACEOF
46437
46438         fi
46439     fi
46440 fi
46441
46442 if test "$wxUSE_SOCKETS" = "yes" ; then
46443     if test "$wxUSE_IPV6" = "yes"; then
46444         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46445 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46446 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46447   echo $ECHO_N "(cached) $ECHO_C" >&6
46448 else
46449
46450                 cat >conftest.$ac_ext <<_ACEOF
46451 /* confdefs.h.  */
46452 _ACEOF
46453 cat confdefs.h >>conftest.$ac_ext
46454 cat >>conftest.$ac_ext <<_ACEOF
46455 /* end confdefs.h.  */
46456
46457                         #include <sys/types.h>
46458                         #include <sys/socket.h>
46459                         #include <netinet/in.h>
46460
46461 int
46462 main ()
46463 {
46464
46465                         struct sockaddr_in6 sa6;
46466
46467   ;
46468   return 0;
46469 }
46470 _ACEOF
46471 rm -f conftest.$ac_objext
46472 if { (ac_try="$ac_compile"
46473 case "(($ac_try" in
46474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46475   *) ac_try_echo=$ac_try;;
46476 esac
46477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46478   (eval "$ac_compile") 2>conftest.er1
46479   ac_status=$?
46480   grep -v '^ *+' conftest.er1 >conftest.err
46481   rm -f conftest.er1
46482   cat conftest.err >&5
46483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46484   (exit $ac_status); } && {
46485          test -z "$ac_c_werror_flag" ||
46486          test ! -s conftest.err
46487        } && test -s conftest.$ac_objext; then
46488   wx_cv_type_sockaddr_in6=yes
46489 else
46490   echo "$as_me: failed program was:" >&5
46491 sed 's/^/| /' conftest.$ac_ext >&5
46492
46493         wx_cv_type_sockaddr_in6=no
46494
46495 fi
46496
46497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46498
46499
46500 fi
46501 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46502 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46503
46504         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46505             cat >>confdefs.h <<\_ACEOF
46506 #define wxUSE_IPV6 1
46507 _ACEOF
46508
46509         else
46510             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46511 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46512         fi
46513     fi
46514
46515     cat >>confdefs.h <<\_ACEOF
46516 #define wxUSE_SOCKETS 1
46517 _ACEOF
46518
46519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46520 fi
46521
46522 if test "$wxUSE_PROTOCOL" = "yes"; then
46523     if test "$wxUSE_SOCKETS" != "yes"; then
46524         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46525 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46526         wxUSE_PROTOCOL=no
46527     fi
46528 fi
46529
46530 if test "$wxUSE_PROTOCOL" = "yes"; then
46531     cat >>confdefs.h <<\_ACEOF
46532 #define wxUSE_PROTOCOL 1
46533 _ACEOF
46534
46535
46536     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46537         cat >>confdefs.h <<\_ACEOF
46538 #define wxUSE_PROTOCOL_HTTP 1
46539 _ACEOF
46540
46541     fi
46542     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46543         cat >>confdefs.h <<\_ACEOF
46544 #define wxUSE_PROTOCOL_FTP 1
46545 _ACEOF
46546
46547     fi
46548     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46549         cat >>confdefs.h <<\_ACEOF
46550 #define wxUSE_PROTOCOL_FILE 1
46551 _ACEOF
46552
46553     fi
46554 else
46555     if test "$wxUSE_FS_INET" = "yes"; then
46556         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46557 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46558         wxUSE_FS_INET="no"
46559     fi
46560 fi
46561
46562 if test "$wxUSE_URL" = "yes"; then
46563     if test "$wxUSE_PROTOCOL" != "yes"; then
46564         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46565 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46566         wxUSE_URL=no
46567     fi
46568     if test "$wxUSE_URL" = "yes"; then
46569         cat >>confdefs.h <<\_ACEOF
46570 #define wxUSE_URL 1
46571 _ACEOF
46572
46573     fi
46574 fi
46575
46576 if test "$wxUSE_VARIANT" = "yes"; then
46577     cat >>confdefs.h <<\_ACEOF
46578 #define wxUSE_VARIANT 1
46579 _ACEOF
46580
46581 fi
46582
46583 if test "$wxUSE_FS_INET" = "yes"; then
46584   cat >>confdefs.h <<\_ACEOF
46585 #define wxUSE_FS_INET 1
46586 _ACEOF
46587
46588 fi
46589
46590
46591 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46592     wxUSE_JOYSTICK=no
46593
46594         if test "$TOOLKIT" = "MSW"; then
46595         wxUSE_JOYSTICK=yes
46596
46597         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46598         if test "$USE_DARWIN" = 1; then
46599                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46600 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46601             ac_ext=cpp
46602 ac_cpp='$CXXCPP $CPPFLAGS'
46603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46606
46607             cat >conftest.$ac_ext <<_ACEOF
46608 /* confdefs.h.  */
46609 _ACEOF
46610 cat confdefs.h >>conftest.$ac_ext
46611 cat >>conftest.$ac_ext <<_ACEOF
46612 /* end confdefs.h.  */
46613  #include <IOKit/hid/IOHIDLib.h>
46614 int
46615 main ()
46616 {
46617  IOHIDQueueInterface *qi = NULL;
46618                               IOHIDCallbackFunction cb = NULL;
46619                               qi->setEventCallout(NULL, cb, NULL, NULL);
46620   ;
46621   return 0;
46622 }
46623 _ACEOF
46624 rm -f conftest.$ac_objext
46625 if { (ac_try="$ac_compile"
46626 case "(($ac_try" in
46627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46628   *) ac_try_echo=$ac_try;;
46629 esac
46630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46631   (eval "$ac_compile") 2>conftest.er1
46632   ac_status=$?
46633   grep -v '^ *+' conftest.er1 >conftest.err
46634   rm -f conftest.er1
46635   cat conftest.err >&5
46636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46637   (exit $ac_status); } && {
46638          test -z "$ac_cxx_werror_flag" ||
46639          test ! -s conftest.err
46640        } && test -s conftest.$ac_objext; then
46641    wxUSE_JOYSTICK=yes
46642
46643 else
46644   echo "$as_me: failed program was:" >&5
46645 sed 's/^/| /' conftest.$ac_ext >&5
46646
46647
46648 fi
46649
46650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46651             ac_ext=c
46652 ac_cpp='$CPP $CPPFLAGS'
46653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46656
46657             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46658 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46659         fi
46660
46661         else
46662                 if test "$wxUSE_MGL" != 1; then
46663
46664 for ac_header in linux/joystick.h
46665 do
46666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46670   echo $ECHO_N "(cached) $ECHO_C" >&6
46671 else
46672   cat >conftest.$ac_ext <<_ACEOF
46673 /* confdefs.h.  */
46674 _ACEOF
46675 cat confdefs.h >>conftest.$ac_ext
46676 cat >>conftest.$ac_ext <<_ACEOF
46677 /* end confdefs.h.  */
46678 $ac_includes_default
46679
46680 #include <$ac_header>
46681 _ACEOF
46682 rm -f conftest.$ac_objext
46683 if { (ac_try="$ac_compile"
46684 case "(($ac_try" in
46685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46686   *) ac_try_echo=$ac_try;;
46687 esac
46688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46689   (eval "$ac_compile") 2>conftest.er1
46690   ac_status=$?
46691   grep -v '^ *+' conftest.er1 >conftest.err
46692   rm -f conftest.er1
46693   cat conftest.err >&5
46694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46695   (exit $ac_status); } && {
46696          test -z "$ac_c_werror_flag" ||
46697          test ! -s conftest.err
46698        } && test -s conftest.$ac_objext; then
46699   eval "$as_ac_Header=yes"
46700 else
46701   echo "$as_me: failed program was:" >&5
46702 sed 's/^/| /' conftest.$ac_ext >&5
46703
46704         eval "$as_ac_Header=no"
46705 fi
46706
46707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46708 fi
46709 ac_res=`eval echo '${'$as_ac_Header'}'`
46710                { echo "$as_me:$LINENO: result: $ac_res" >&5
46711 echo "${ECHO_T}$ac_res" >&6; }
46712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46713   cat >>confdefs.h <<_ACEOF
46714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46715 _ACEOF
46716  wxUSE_JOYSTICK=yes
46717 fi
46718
46719 done
46720
46721         fi
46722     fi
46723
46724     if test "$wxUSE_JOYSTICK" = "yes"; then
46725         cat >>confdefs.h <<\_ACEOF
46726 #define wxUSE_JOYSTICK 1
46727 _ACEOF
46728
46729         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46730     else
46731         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46732 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46733     fi
46734 fi
46735
46736
46737
46738 if test "$wxUSE_FONTENUM" = "yes" ; then
46739   cat >>confdefs.h <<\_ACEOF
46740 #define wxUSE_FONTENUM 1
46741 _ACEOF
46742
46743 fi
46744
46745 if test "$wxUSE_FONTMAP" = "yes" ; then
46746   cat >>confdefs.h <<\_ACEOF
46747 #define wxUSE_FONTMAP 1
46748 _ACEOF
46749
46750 fi
46751
46752 if test "$wxUSE_UNICODE" = "yes" ; then
46753   cat >>confdefs.h <<\_ACEOF
46754 #define wxUSE_UNICODE 1
46755 _ACEOF
46756
46757
46758   if test "$USE_WIN32" != 1; then
46759       wxUSE_UNICODE_MSLU=no
46760   fi
46761
46762   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46763         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46764 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
46765 if test "${ac_cv_lib_unicows_main+set}" = set; then
46766   echo $ECHO_N "(cached) $ECHO_C" >&6
46767 else
46768   ac_check_lib_save_LIBS=$LIBS
46769 LIBS="-lunicows  $LIBS"
46770 cat >conftest.$ac_ext <<_ACEOF
46771 /* confdefs.h.  */
46772 _ACEOF
46773 cat confdefs.h >>conftest.$ac_ext
46774 cat >>conftest.$ac_ext <<_ACEOF
46775 /* end confdefs.h.  */
46776
46777
46778 int
46779 main ()
46780 {
46781 return main ();
46782   ;
46783   return 0;
46784 }
46785 _ACEOF
46786 rm -f conftest.$ac_objext conftest$ac_exeext
46787 if { (ac_try="$ac_link"
46788 case "(($ac_try" in
46789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46790   *) ac_try_echo=$ac_try;;
46791 esac
46792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46793   (eval "$ac_link") 2>conftest.er1
46794   ac_status=$?
46795   grep -v '^ *+' conftest.er1 >conftest.err
46796   rm -f conftest.er1
46797   cat conftest.err >&5
46798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46799   (exit $ac_status); } && {
46800          test -z "$ac_c_werror_flag" ||
46801          test ! -s conftest.err
46802        } && test -s conftest$ac_exeext &&
46803        $as_test_x conftest$ac_exeext; then
46804   ac_cv_lib_unicows_main=yes
46805 else
46806   echo "$as_me: failed program was:" >&5
46807 sed 's/^/| /' conftest.$ac_ext >&5
46808
46809         ac_cv_lib_unicows_main=no
46810 fi
46811
46812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46813       conftest$ac_exeext conftest.$ac_ext
46814 LIBS=$ac_check_lib_save_LIBS
46815 fi
46816 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46817 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46818 if test $ac_cv_lib_unicows_main = yes; then
46819
46820                 cat >>confdefs.h <<\_ACEOF
46821 #define wxUSE_UNICODE_MSLU 1
46822 _ACEOF
46823
46824
46825 else
46826
46827                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46828                              Applications will only run on Windows NT/2000/XP!" >&5
46829 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46830                              Applications will only run on Windows NT/2000/XP!" >&2;}
46831                 wxUSE_UNICODE_MSLU=no
46832
46833 fi
46834
46835     fi
46836 fi
46837
46838 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46839     cat >>confdefs.h <<\_ACEOF
46840 #define wxUSE_UNICODE_UTF8 1
46841 _ACEOF
46842
46843
46844     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46845         cat >>confdefs.h <<\_ACEOF
46846 #define wxUSE_UTF8_LOCALE_ONLY 1
46847 _ACEOF
46848
46849     fi
46850 fi
46851
46852
46853 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46854     cat >>confdefs.h <<\_ACEOF
46855 #define wxUSE_CONSTRAINTS 1
46856 _ACEOF
46857
46858     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46859 fi
46860
46861 if test "$wxUSE_MDI" = "yes"; then
46862     cat >>confdefs.h <<\_ACEOF
46863 #define wxUSE_MDI 1
46864 _ACEOF
46865
46866
46867     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46868         cat >>confdefs.h <<\_ACEOF
46869 #define wxUSE_MDI_ARCHITECTURE 1
46870 _ACEOF
46871
46872         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46873     fi
46874 fi
46875
46876 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46877     cat >>confdefs.h <<\_ACEOF
46878 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46879 _ACEOF
46880
46881     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46882 fi
46883
46884 if test "$wxUSE_HELP" = "yes"; then
46885     cat >>confdefs.h <<\_ACEOF
46886 #define wxUSE_HELP 1
46887 _ACEOF
46888
46889     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46890
46891     if test "$wxUSE_MSW" = 1; then
46892       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46893         cat >>confdefs.h <<\_ACEOF
46894 #define wxUSE_MS_HTML_HELP 1
46895 _ACEOF
46896
46897       fi
46898     fi
46899
46900     if test "$wxUSE_WXHTML_HELP" = "yes"; then
46901       if test "$wxUSE_HTML" = "yes"; then
46902         cat >>confdefs.h <<\_ACEOF
46903 #define wxUSE_WXHTML_HELP 1
46904 _ACEOF
46905
46906       else
46907         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46908 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46909         wxUSE_WXHTML_HELP=no
46910       fi
46911     fi
46912 fi
46913
46914 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46915     cat >>confdefs.h <<\_ACEOF
46916 #define wxUSE_PRINTING_ARCHITECTURE 1
46917 _ACEOF
46918
46919     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46920 fi
46921
46922 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46923   cat >>confdefs.h <<\_ACEOF
46924 #define wxUSE_POSTSCRIPT 1
46925 _ACEOF
46926
46927 fi
46928
46929 cat >>confdefs.h <<\_ACEOF
46930 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46931 _ACEOF
46932
46933
46934 if test "$wxUSE_SVG" = "yes"; then
46935     cat >>confdefs.h <<\_ACEOF
46936 #define wxUSE_SVG 1
46937 _ACEOF
46938
46939 fi
46940
46941
46942 if test "$wxUSE_METAFILE" = "yes"; then
46943     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46944         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46945 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46946         wxUSE_METAFILE=no
46947     fi
46948 fi
46949
46950
46951 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
46952                           -o "$wxUSE_CLIPBOARD"     = "yes" \
46953                           -o "$wxUSE_OLE"     = "yes" \
46954                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46955     { echo "$as_me:$LINENO: checking for ole2.h" >&5
46956 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
46957 if test "${ac_cv_header_ole2_h+set}" = set; then
46958   echo $ECHO_N "(cached) $ECHO_C" >&6
46959 else
46960   cat >conftest.$ac_ext <<_ACEOF
46961 /* confdefs.h.  */
46962 _ACEOF
46963 cat confdefs.h >>conftest.$ac_ext
46964 cat >>conftest.$ac_ext <<_ACEOF
46965 /* end confdefs.h.  */
46966
46967
46968 #include <ole2.h>
46969 _ACEOF
46970 rm -f conftest.$ac_objext
46971 if { (ac_try="$ac_compile"
46972 case "(($ac_try" in
46973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46974   *) ac_try_echo=$ac_try;;
46975 esac
46976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46977   (eval "$ac_compile") 2>conftest.er1
46978   ac_status=$?
46979   grep -v '^ *+' conftest.er1 >conftest.err
46980   rm -f conftest.er1
46981   cat conftest.err >&5
46982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46983   (exit $ac_status); } && {
46984          test -z "$ac_c_werror_flag" ||
46985          test ! -s conftest.err
46986        } && test -s conftest.$ac_objext; then
46987   ac_cv_header_ole2_h=yes
46988 else
46989   echo "$as_me: failed program was:" >&5
46990 sed 's/^/| /' conftest.$ac_ext >&5
46991
46992         ac_cv_header_ole2_h=no
46993 fi
46994
46995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46996 fi
46997 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46998 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
46999
47000
47001
47002     if test "$ac_cv_header_ole2_h" = "yes" ; then
47003         if test "$GCC" = yes ; then
47004             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47005 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47006             cat >conftest.$ac_ext <<_ACEOF
47007 /* confdefs.h.  */
47008 _ACEOF
47009 cat confdefs.h >>conftest.$ac_ext
47010 cat >>conftest.$ac_ext <<_ACEOF
47011 /* end confdefs.h.  */
47012 #include <windows.h>
47013                             #include <ole2.h>
47014 int
47015 main ()
47016 {
47017
47018   ;
47019   return 0;
47020 }
47021 _ACEOF
47022 rm -f conftest.$ac_objext
47023 if { (ac_try="$ac_compile"
47024 case "(($ac_try" in
47025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47026   *) ac_try_echo=$ac_try;;
47027 esac
47028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47029   (eval "$ac_compile") 2>conftest.er1
47030   ac_status=$?
47031   grep -v '^ *+' conftest.er1 >conftest.err
47032   rm -f conftest.er1
47033   cat conftest.err >&5
47034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47035   (exit $ac_status); } && {
47036          test -z "$ac_c_werror_flag" ||
47037          test ! -s conftest.err
47038        } && test -s conftest.$ac_objext; then
47039   { echo "$as_me:$LINENO: result: no" >&5
47040 echo "${ECHO_T}no" >&6; }
47041 else
47042   echo "$as_me: failed program was:" >&5
47043 sed 's/^/| /' conftest.$ac_ext >&5
47044
47045         { echo "$as_me:$LINENO: result: yes" >&5
47046 echo "${ECHO_T}yes" >&6; }
47047                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47048 fi
47049
47050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47051             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47052             if test "$wxUSE_OLE" = "yes" ; then
47053                 cat >>confdefs.h <<\_ACEOF
47054 #define wxUSE_OLE 1
47055 _ACEOF
47056
47057                 cat >>confdefs.h <<\_ACEOF
47058 #define wxUSE_OLE_AUTOMATION 1
47059 _ACEOF
47060
47061                 cat >>confdefs.h <<\_ACEOF
47062 #define wxUSE_ACTIVEX 1
47063 _ACEOF
47064
47065                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47066             fi
47067         fi
47068
47069                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47070             cat >>confdefs.h <<\_ACEOF
47071 #define wxUSE_DATAOBJ 1
47072 _ACEOF
47073
47074         fi
47075     else
47076         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47077 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47078
47079         wxUSE_CLIPBOARD=no
47080         wxUSE_DRAG_AND_DROP=no
47081         wxUSE_DATAOBJ=no
47082         wxUSE_OLE=no
47083     fi
47084
47085     if test "$wxUSE_METAFILE" = "yes"; then
47086         cat >>confdefs.h <<\_ACEOF
47087 #define wxUSE_METAFILE 1
47088 _ACEOF
47089
47090
47091                 cat >>confdefs.h <<\_ACEOF
47092 #define wxUSE_ENH_METAFILE 1
47093 _ACEOF
47094
47095     fi
47096 fi
47097
47098 if test "$wxUSE_IPC" = "yes"; then
47099     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47100         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47101 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47102         wxUSE_IPC=no
47103     fi
47104
47105     if test "$wxUSE_IPC" = "yes"; then
47106         cat >>confdefs.h <<\_ACEOF
47107 #define wxUSE_IPC 1
47108 _ACEOF
47109
47110         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47111     fi
47112 fi
47113
47114 if test "$wxUSE_DATAOBJ" = "yes"; then
47115     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47116         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47117 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47118         wxUSE_DATAOBJ=no
47119     else
47120         cat >>confdefs.h <<\_ACEOF
47121 #define wxUSE_DATAOBJ 1
47122 _ACEOF
47123
47124     fi
47125 else
47126     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47127 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47128     wxUSE_CLIPBOARD=no
47129     wxUSE_DRAG_AND_DROP=no
47130 fi
47131
47132 if test "$wxUSE_CLIPBOARD" = "yes"; then
47133     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47134         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47135 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47136         wxUSE_CLIPBOARD=no
47137     fi
47138
47139     if test "$wxUSE_CLIPBOARD" = "yes"; then
47140         cat >>confdefs.h <<\_ACEOF
47141 #define wxUSE_CLIPBOARD 1
47142 _ACEOF
47143
47144     fi
47145 fi
47146
47147 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47148     if test "$wxUSE_GTK" = 1; then
47149         if test "$WXGTK12" != 1; then
47150             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47151 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47152             wxUSE_DRAG_AND_DROP=no
47153         fi
47154     fi
47155
47156     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47157             "$wxUSE_DFB" = 1; then
47158         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47159 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47160         wxUSE_DRAG_AND_DROP=no
47161     fi
47162
47163     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47164         cat >>confdefs.h <<\_ACEOF
47165 #define wxUSE_DRAG_AND_DROP 1
47166 _ACEOF
47167
47168     fi
47169
47170 fi
47171
47172 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47173     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47174 fi
47175
47176 if test "$wxUSE_CLIPBOARD" = "yes"; then
47177     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47178 fi
47179
47180 if test "$wxUSE_SPLINES" = "yes" ; then
47181   cat >>confdefs.h <<\_ACEOF
47182 #define wxUSE_SPLINES 1
47183 _ACEOF
47184
47185 fi
47186
47187 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47188   cat >>confdefs.h <<\_ACEOF
47189 #define wxUSE_MOUSEWHEEL 1
47190 _ACEOF
47191
47192 fi
47193
47194 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47195     cat >>confdefs.h <<\_ACEOF
47196 #define wxUSE_UIACTIONSIMULATOR 1
47197 _ACEOF
47198
47199     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47200 fi
47201
47202 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47203     cat >>confdefs.h <<\_ACEOF
47204 #define wxUSE_DC_TRANSFORM_MATRIX 1
47205 _ACEOF
47206
47207 fi
47208
47209
47210 USES_CONTROLS=0
47211 if test "$wxUSE_CONTROLS" = "yes"; then
47212   USES_CONTROLS=1
47213 fi
47214
47215 if test "$wxUSE_MARKUP" = "yes"; then
47216   cat >>confdefs.h <<\_ACEOF
47217 #define wxUSE_MARKUP 1
47218 _ACEOF
47219
47220 fi
47221
47222 if test "$wxUSE_ACCEL" = "yes"; then
47223   cat >>confdefs.h <<\_ACEOF
47224 #define wxUSE_ACCEL 1
47225 _ACEOF
47226
47227   USES_CONTROLS=1
47228 fi
47229
47230 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47231   cat >>confdefs.h <<\_ACEOF
47232 #define wxUSE_ANIMATIONCTRL 1
47233 _ACEOF
47234
47235   USES_CONTROLS=1
47236   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47237 fi
47238
47239 if test "$wxUSE_BUTTON" = "yes"; then
47240   cat >>confdefs.h <<\_ACEOF
47241 #define wxUSE_BUTTON 1
47242 _ACEOF
47243
47244   USES_CONTROLS=1
47245 fi
47246
47247 if test "$wxUSE_BMPBUTTON" = "yes"; then
47248   cat >>confdefs.h <<\_ACEOF
47249 #define wxUSE_BMPBUTTON 1
47250 _ACEOF
47251
47252   USES_CONTROLS=1
47253 fi
47254
47255 if test "$wxUSE_CALCTRL" = "yes"; then
47256   cat >>confdefs.h <<\_ACEOF
47257 #define wxUSE_CALENDARCTRL 1
47258 _ACEOF
47259
47260   USES_CONTROLS=1
47261   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47262 fi
47263
47264 if test "$wxUSE_CARET" = "yes"; then
47265   cat >>confdefs.h <<\_ACEOF
47266 #define wxUSE_CARET 1
47267 _ACEOF
47268
47269   USES_CONTROLS=1
47270   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47271 fi
47272
47273 if test "$wxUSE_COLLPANE" = "yes"; then
47274     cat >>confdefs.h <<\_ACEOF
47275 #define wxUSE_COLLPANE 1
47276 _ACEOF
47277
47278     USES_CONTROLS=1
47279     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47280 fi
47281
47282 if test "$wxUSE_COMBOBOX" = "yes"; then
47283   cat >>confdefs.h <<\_ACEOF
47284 #define wxUSE_COMBOBOX 1
47285 _ACEOF
47286
47287   USES_CONTROLS=1
47288 fi
47289
47290 if test "$wxUSE_COMBOCTRL" = "yes"; then
47291   cat >>confdefs.h <<\_ACEOF
47292 #define wxUSE_COMBOCTRL 1
47293 _ACEOF
47294
47295   USES_CONTROLS=1
47296 fi
47297
47298 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47299   cat >>confdefs.h <<\_ACEOF
47300 #define wxUSE_COMMANDLINKBUTTON 1
47301 _ACEOF
47302
47303   USES_CONTROLS=1
47304 fi
47305
47306 if test "$wxUSE_CHOICE" = "yes"; then
47307   cat >>confdefs.h <<\_ACEOF
47308 #define wxUSE_CHOICE 1
47309 _ACEOF
47310
47311   USES_CONTROLS=1
47312 fi
47313
47314 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47315     cat >>confdefs.h <<\_ACEOF
47316 #define wxUSE_CHOICEBOOK 1
47317 _ACEOF
47318
47319     USES_CONTROLS=1
47320 fi
47321
47322 if test "$wxUSE_CHECKBOX" = "yes"; then
47323   cat >>confdefs.h <<\_ACEOF
47324 #define wxUSE_CHECKBOX 1
47325 _ACEOF
47326
47327   USES_CONTROLS=1
47328 fi
47329
47330 if test "$wxUSE_CHECKLST" = "yes"; then
47331   cat >>confdefs.h <<\_ACEOF
47332 #define wxUSE_CHECKLISTBOX 1
47333 _ACEOF
47334
47335   USES_CONTROLS=1
47336 fi
47337
47338 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47339   cat >>confdefs.h <<\_ACEOF
47340 #define wxUSE_COLOURPICKERCTRL 1
47341 _ACEOF
47342
47343   USES_CONTROLS=1
47344 fi
47345
47346 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47347   cat >>confdefs.h <<\_ACEOF
47348 #define wxUSE_DATEPICKCTRL 1
47349 _ACEOF
47350
47351   USES_CONTROLS=1
47352 fi
47353
47354 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47355   cat >>confdefs.h <<\_ACEOF
47356 #define wxUSE_DIRPICKERCTRL 1
47357 _ACEOF
47358
47359   USES_CONTROLS=1
47360 fi
47361
47362 if test "$wxUSE_FILECTRL" = "yes"; then
47363   cat >>confdefs.h <<\_ACEOF
47364 #define wxUSE_FILECTRL 1
47365 _ACEOF
47366
47367   USES_CONTROLS=1
47368 fi
47369
47370 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47371   cat >>confdefs.h <<\_ACEOF
47372 #define wxUSE_FILEPICKERCTRL 1
47373 _ACEOF
47374
47375   USES_CONTROLS=1
47376 fi
47377
47378 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47379   cat >>confdefs.h <<\_ACEOF
47380 #define wxUSE_FONTPICKERCTRL 1
47381 _ACEOF
47382
47383   USES_CONTROLS=1
47384 fi
47385
47386 if test "$wxUSE_DISPLAY" = "yes"; then
47387     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47388         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47389 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47390         wxUSE_DISPLAY=no
47391     else
47392         cat >>confdefs.h <<\_ACEOF
47393 #define wxUSE_DISPLAY 1
47394 _ACEOF
47395
47396         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47397     fi
47398 fi
47399
47400 if test "$wxUSE_DETECT_SM" = "yes"; then
47401     cat >>confdefs.h <<\_ACEOF
47402 #define wxUSE_DETECT_SM 1
47403 _ACEOF
47404
47405 fi
47406
47407 if test "$wxUSE_GAUGE" = "yes"; then
47408   cat >>confdefs.h <<\_ACEOF
47409 #define wxUSE_GAUGE 1
47410 _ACEOF
47411
47412   USES_CONTROLS=1
47413 fi
47414
47415 if test "$wxUSE_GRID" = "yes"; then
47416   cat >>confdefs.h <<\_ACEOF
47417 #define wxUSE_GRID 1
47418 _ACEOF
47419
47420   USES_CONTROLS=1
47421   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47422 fi
47423
47424 if test "$wxUSE_HEADERCTRL" = "yes"; then
47425   cat >>confdefs.h <<\_ACEOF
47426 #define wxUSE_HEADERCTRL 1
47427 _ACEOF
47428
47429   USES_CONTROLS=1
47430 fi
47431
47432 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47433   cat >>confdefs.h <<\_ACEOF
47434 #define wxUSE_HYPERLINKCTRL 1
47435 _ACEOF
47436
47437   USES_CONTROLS=1
47438 fi
47439
47440 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47441   cat >>confdefs.h <<\_ACEOF
47442 #define wxUSE_BITMAPCOMBOBOX 1
47443 _ACEOF
47444
47445   USES_CONTROLS=1
47446 fi
47447
47448 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47449   cat >>confdefs.h <<\_ACEOF
47450 #define wxUSE_DATAVIEWCTRL 1
47451 _ACEOF
47452
47453   USES_CONTROLS=1
47454   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47455 fi
47456
47457 if test "$wxUSE_IMAGLIST" = "yes"; then
47458     cat >>confdefs.h <<\_ACEOF
47459 #define wxUSE_IMAGLIST 1
47460 _ACEOF
47461
47462 fi
47463
47464 if test "$wxUSE_INFOBAR" = "yes"; then
47465     cat >>confdefs.h <<\_ACEOF
47466 #define wxUSE_INFOBAR 1
47467 _ACEOF
47468
47469 fi
47470
47471 if test "$wxUSE_LISTBOOK" = "yes"; then
47472     cat >>confdefs.h <<\_ACEOF
47473 #define wxUSE_LISTBOOK 1
47474 _ACEOF
47475
47476     USES_CONTROLS=1
47477 fi
47478
47479 if test "$wxUSE_LISTBOX" = "yes"; then
47480     cat >>confdefs.h <<\_ACEOF
47481 #define wxUSE_LISTBOX 1
47482 _ACEOF
47483
47484     USES_CONTROLS=1
47485 fi
47486
47487 if test "$wxUSE_LISTCTRL" = "yes"; then
47488     if test "$wxUSE_IMAGLIST" = "yes"; then
47489         cat >>confdefs.h <<\_ACEOF
47490 #define wxUSE_LISTCTRL 1
47491 _ACEOF
47492
47493         USES_CONTROLS=1
47494         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47495     else
47496         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47497 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47498     fi
47499 fi
47500
47501 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47502     cat >>confdefs.h <<\_ACEOF
47503 #define wxUSE_EDITABLELISTBOX 1
47504 _ACEOF
47505
47506     USES_CONTROLS=1
47507 fi
47508
47509 if test "$wxUSE_NOTEBOOK" = "yes"; then
47510     cat >>confdefs.h <<\_ACEOF
47511 #define wxUSE_NOTEBOOK 1
47512 _ACEOF
47513
47514     USES_CONTROLS=1
47515     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47516 fi
47517
47518 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47519     cat >>confdefs.h <<\_ACEOF
47520 #define wxUSE_NOTIFICATION_MESSAGE 1
47521 _ACEOF
47522
47523 fi
47524
47525 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47526   cat >>confdefs.h <<\_ACEOF
47527 #define wxUSE_ODCOMBOBOX 1
47528 _ACEOF
47529
47530   USES_CONTROLS=1
47531   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47532 fi
47533
47534 if test "$wxUSE_RADIOBOX" = "yes"; then
47535     cat >>confdefs.h <<\_ACEOF
47536 #define wxUSE_RADIOBOX 1
47537 _ACEOF
47538
47539     USES_CONTROLS=1
47540 fi
47541
47542 if test "$wxUSE_RADIOBTN" = "yes"; then
47543     cat >>confdefs.h <<\_ACEOF
47544 #define wxUSE_RADIOBTN 1
47545 _ACEOF
47546
47547     USES_CONTROLS=1
47548 fi
47549
47550 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47551     cat >>confdefs.h <<\_ACEOF
47552 #define wxUSE_REARRANGECTRL 1
47553 _ACEOF
47554
47555 fi
47556
47557 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47558     cat >>confdefs.h <<\_ACEOF
47559 #define wxUSE_RICHMSGDLG 1
47560 _ACEOF
47561
47562 fi
47563
47564 if test "$wxUSE_SASH" = "yes"; then
47565     cat >>confdefs.h <<\_ACEOF
47566 #define wxUSE_SASH 1
47567 _ACEOF
47568
47569     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47570 fi
47571
47572 if test "$wxUSE_SCROLLBAR" = "yes"; then
47573     cat >>confdefs.h <<\_ACEOF
47574 #define wxUSE_SCROLLBAR 1
47575 _ACEOF
47576
47577     USES_CONTROLS=1
47578     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47579 fi
47580
47581 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47582     cat >>confdefs.h <<\_ACEOF
47583 #define wxUSE_SEARCHCTRL 1
47584 _ACEOF
47585
47586     USES_CONTROLS=1
47587 fi
47588
47589 if test "$wxUSE_SLIDER" = "yes"; then
47590     cat >>confdefs.h <<\_ACEOF
47591 #define wxUSE_SLIDER 1
47592 _ACEOF
47593
47594     USES_CONTROLS=1
47595 fi
47596
47597 if test "$wxUSE_SPINBTN" = "yes"; then
47598     cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_SPINBTN 1
47600 _ACEOF
47601
47602     USES_CONTROLS=1
47603 fi
47604
47605 if test "$wxUSE_SPINCTRL" = "yes"; then
47606     cat >>confdefs.h <<\_ACEOF
47607 #define wxUSE_SPINCTRL 1
47608 _ACEOF
47609
47610     USES_CONTROLS=1
47611 fi
47612
47613 if test "$wxUSE_SPLITTER" = "yes"; then
47614     cat >>confdefs.h <<\_ACEOF
47615 #define wxUSE_SPLITTER 1
47616 _ACEOF
47617
47618     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47619 fi
47620
47621 if test "$wxUSE_STATBMP" = "yes"; then
47622     cat >>confdefs.h <<\_ACEOF
47623 #define wxUSE_STATBMP 1
47624 _ACEOF
47625
47626     USES_CONTROLS=1
47627 fi
47628
47629 if test "$wxUSE_STATBOX" = "yes"; then
47630     cat >>confdefs.h <<\_ACEOF
47631 #define wxUSE_STATBOX 1
47632 _ACEOF
47633
47634     USES_CONTROLS=1
47635 fi
47636
47637 if test "$wxUSE_STATTEXT" = "yes"; then
47638     cat >>confdefs.h <<\_ACEOF
47639 #define wxUSE_STATTEXT 1
47640 _ACEOF
47641
47642     USES_CONTROLS=1
47643 fi
47644
47645 if test "$wxUSE_STATLINE" = "yes"; then
47646     cat >>confdefs.h <<\_ACEOF
47647 #define wxUSE_STATLINE 1
47648 _ACEOF
47649
47650     USES_CONTROLS=1
47651 fi
47652
47653 if test "$wxUSE_STATUSBAR" = "yes"; then
47654         cat >>confdefs.h <<\_ACEOF
47655 #define wxUSE_NATIVE_STATUSBAR 1
47656 _ACEOF
47657
47658     cat >>confdefs.h <<\_ACEOF
47659 #define wxUSE_STATUSBAR 1
47660 _ACEOF
47661
47662     USES_CONTROLS=1
47663
47664     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47665 fi
47666
47667 if test "$wxUSE_TEXTCTRL" = "yes"; then
47668     cat >>confdefs.h <<\_ACEOF
47669 #define wxUSE_TEXTCTRL 1
47670 _ACEOF
47671
47672     USES_CONTROLS=1
47673     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47674
47675             cat >>confdefs.h <<\_ACEOF
47676 #define wxUSE_RICHEDIT 1
47677 _ACEOF
47678
47679     cat >>confdefs.h <<\_ACEOF
47680 #define wxUSE_RICHEDIT2 1
47681 _ACEOF
47682
47683 fi
47684
47685 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47686     if test "$wxUSE_OLD_COCOA" = 1 ; then
47687         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47688 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47689         wxUSE_TOGGLEBTN=no
47690     fi
47691
47692     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47693         cat >>confdefs.h <<\_ACEOF
47694 #define wxUSE_TOGGLEBTN 1
47695 _ACEOF
47696
47697         USES_CONTROLS=1
47698     fi
47699 fi
47700
47701 if test "$wxUSE_TOOLBAR" = "yes"; then
47702     cat >>confdefs.h <<\_ACEOF
47703 #define wxUSE_TOOLBAR 1
47704 _ACEOF
47705
47706     USES_CONTROLS=1
47707
47708     if test "$wxUSE_UNIVERSAL" = "yes"; then
47709         wxUSE_TOOLBAR_NATIVE="no"
47710     else
47711         wxUSE_TOOLBAR_NATIVE="yes"
47712         cat >>confdefs.h <<\_ACEOF
47713 #define wxUSE_TOOLBAR_NATIVE 1
47714 _ACEOF
47715
47716     fi
47717
47718     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47719 fi
47720
47721 if test "$wxUSE_TOOLTIPS" = "yes"; then
47722     if test "$wxUSE_MOTIF" = 1; then
47723         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47724 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47725     else
47726         if test "$wxUSE_UNIVERSAL" = "yes"; then
47727             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47728 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47729         else
47730             cat >>confdefs.h <<\_ACEOF
47731 #define wxUSE_TOOLTIPS 1
47732 _ACEOF
47733
47734         fi
47735     fi
47736 fi
47737
47738 if test "$wxUSE_TREEBOOK" = "yes"; then
47739     cat >>confdefs.h <<\_ACEOF
47740 #define wxUSE_TREEBOOK 1
47741 _ACEOF
47742
47743     USES_CONTROLS=1
47744 fi
47745
47746 if test "$wxUSE_TOOLBOOK" = "yes"; then
47747     cat >>confdefs.h <<\_ACEOF
47748 #define wxUSE_TOOLBOOK 1
47749 _ACEOF
47750
47751     USES_CONTROLS=1
47752 fi
47753
47754 if test "$wxUSE_TREECTRL" = "yes"; then
47755     if test "$wxUSE_IMAGLIST" = "yes"; then
47756         cat >>confdefs.h <<\_ACEOF
47757 #define wxUSE_TREECTRL 1
47758 _ACEOF
47759
47760         USES_CONTROLS=1
47761         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47762     else
47763         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47764 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47765     fi
47766 fi
47767
47768 if test "$wxUSE_POPUPWIN" = "yes"; then
47769     if test "$wxUSE_OLD_COCOA" = 1 ; then
47770         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47771 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47772     else
47773         if test "$wxUSE_PM" = 1; then
47774             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47775 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47776         else
47777             cat >>confdefs.h <<\_ACEOF
47778 #define wxUSE_POPUPWIN 1
47779 _ACEOF
47780
47781             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47782
47783             USES_CONTROLS=1
47784         fi
47785     fi
47786 fi
47787
47788 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47789     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47790         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47791 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47792     else
47793         cat >>confdefs.h <<\_ACEOF
47794 #define wxUSE_DIALUP_MANAGER 1
47795 _ACEOF
47796
47797         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47798     fi
47799 fi
47800
47801 if test "$wxUSE_TIPWINDOW" = "yes"; then
47802     if test "$wxUSE_PM" = 1; then
47803         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47804 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47805     else
47806         cat >>confdefs.h <<\_ACEOF
47807 #define wxUSE_TIPWINDOW 1
47808 _ACEOF
47809
47810     fi
47811 fi
47812
47813 if test "$USES_CONTROLS" = 1; then
47814     cat >>confdefs.h <<\_ACEOF
47815 #define wxUSE_CONTROLS 1
47816 _ACEOF
47817
47818 fi
47819
47820
47821 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47822     cat >>confdefs.h <<\_ACEOF
47823 #define wxUSE_ACCESSIBILITY 1
47824 _ACEOF
47825
47826     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47827 fi
47828
47829 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
47830     cat >>confdefs.h <<\_ACEOF
47831 #define wxUSE_ARTPROVIDER_STD 1
47832 _ACEOF
47833
47834 fi
47835
47836 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
47837             if test "$wxUSE_GTK" != 1; then
47838                 if test "$wxUSE_LIBPNG" != no -a \
47839                 "$wxUSE_IMAGE" = yes -a \
47840                 "$wxUSE_STREAMS" = yes; then
47841             wxUSE_ARTPROVIDER_TANGO="yes"
47842         fi
47843     fi
47844 fi
47845
47846 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
47847     cat >>confdefs.h <<\_ACEOF
47848 #define wxUSE_ARTPROVIDER_TANGO 1
47849 _ACEOF
47850
47851 fi
47852
47853 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47854     cat >>confdefs.h <<\_ACEOF
47855 #define wxUSE_DRAGIMAGE 1
47856 _ACEOF
47857
47858     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47859 fi
47860
47861 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47862     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47863         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47864 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47865     else
47866         cat >>confdefs.h <<\_ACEOF
47867 #define wxUSE_EXCEPTIONS 1
47868 _ACEOF
47869
47870         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47871     fi
47872 fi
47873
47874 USE_HTML=0
47875 if test "$wxUSE_HTML" = "yes"; then
47876     cat >>confdefs.h <<\_ACEOF
47877 #define wxUSE_HTML 1
47878 _ACEOF
47879
47880     USE_HTML=1
47881     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47882 fi
47883 if test "$wxUSE_WEBKIT" = "yes"; then
47884     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
47885         old_CPPFLAGS="$CPPFLAGS"
47886         CPPFLAGS="-x objective-c++ $CPPFLAGS"
47887         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47888 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
47889 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
47890   echo $ECHO_N "(cached) $ECHO_C" >&6
47891 else
47892   cat >conftest.$ac_ext <<_ACEOF
47893 /* confdefs.h.  */
47894 _ACEOF
47895 cat confdefs.h >>conftest.$ac_ext
47896 cat >>conftest.$ac_ext <<_ACEOF
47897 /* end confdefs.h.  */
47898
47899                            #include <Carbon/Carbon.h>
47900                            #include <WebKit/WebKit.h>
47901
47902
47903 #include <WebKit/HIWebView.h>
47904 _ACEOF
47905 rm -f conftest.$ac_objext
47906 if { (ac_try="$ac_compile"
47907 case "(($ac_try" in
47908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47909   *) ac_try_echo=$ac_try;;
47910 esac
47911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47912   (eval "$ac_compile") 2>conftest.er1
47913   ac_status=$?
47914   grep -v '^ *+' conftest.er1 >conftest.err
47915   rm -f conftest.er1
47916   cat conftest.err >&5
47917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47918   (exit $ac_status); } && {
47919          test -z "$ac_c_werror_flag" ||
47920          test ! -s conftest.err
47921        } && test -s conftest.$ac_objext; then
47922   ac_cv_header_WebKit_HIWebView_h=yes
47923 else
47924   echo "$as_me: failed program was:" >&5
47925 sed 's/^/| /' conftest.$ac_ext >&5
47926
47927         ac_cv_header_WebKit_HIWebView_h=no
47928 fi
47929
47930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47931 fi
47932 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47933 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
47934 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
47935
47936                            cat >>confdefs.h <<\_ACEOF
47937 #define wxUSE_WEBKIT 1
47938 _ACEOF
47939
47940                            WEBKIT_LINK="-framework WebKit"
47941
47942 else
47943
47944                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47945 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47946                            wxUSE_WEBKIT=no
47947
47948 fi
47949
47950
47951         CPPFLAGS="$old_CPPFLAGS"
47952     elif test "$wxUSE_OLD_COCOA" = 1; then
47953         cat >>confdefs.h <<\_ACEOF
47954 #define wxUSE_WEBKIT 1
47955 _ACEOF
47956
47957     else
47958         wxUSE_WEBKIT=no
47959     fi
47960     if test "$wxUSE_WEBKIT" = "yes"; then
47961         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47962     fi
47963 fi
47964
47965 USE_XRC=0
47966 if test "$wxUSE_XRC" = "yes"; then
47967     if test "$wxUSE_XML" != "yes"; then
47968         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47969 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47970         wxUSE_XRC=no
47971     else
47972         cat >>confdefs.h <<\_ACEOF
47973 #define wxUSE_XRC 1
47974 _ACEOF
47975
47976         USE_XRC=1
47977         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47978     fi
47979 fi
47980
47981 USE_AUI=0
47982 if test "$wxUSE_AUI" = "yes"; then
47983    cat >>confdefs.h <<\_ACEOF
47984 #define wxUSE_AUI 1
47985 _ACEOF
47986
47987    USE_AUI=1
47988    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47989 fi
47990
47991 USE_PROPGRID=0
47992 if test "$wxUSE_PROPGRID" = "yes"; then
47993    cat >>confdefs.h <<\_ACEOF
47994 #define wxUSE_PROPGRID 1
47995 _ACEOF
47996
47997    USE_PROPGRID=1
47998    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
47999 fi
48000
48001 USE_RIBBON=0
48002 if test "$wxUSE_RIBBON" = "yes"; then
48003    cat >>confdefs.h <<\_ACEOF
48004 #define wxUSE_RIBBON 1
48005 _ACEOF
48006
48007    USE_RIBBON=1
48008    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48009 fi
48010
48011 USE_STC=0
48012 if test "$wxUSE_STC" = "yes"; then
48013    cat >>confdefs.h <<\_ACEOF
48014 #define wxUSE_STC 1
48015 _ACEOF
48016
48017    USE_STC=1
48018    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48019
48020       # Extract the first word of "python", so it can be a program name with args.
48021 set dummy python; ac_word=$2
48022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48024 if test "${ac_cv_path_PYTHON+set}" = set; then
48025   echo $ECHO_N "(cached) $ECHO_C" >&6
48026 else
48027   case $PYTHON in
48028   [\\/]* | ?:[\\/]*)
48029   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48030   ;;
48031   *)
48032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48033 for as_dir in $PATH
48034 do
48035   IFS=$as_save_IFS
48036   test -z "$as_dir" && as_dir=.
48037   for ac_exec_ext in '' $ac_executable_extensions; do
48038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48039     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48041     break 2
48042   fi
48043 done
48044 done
48045 IFS=$as_save_IFS
48046
48047   ;;
48048 esac
48049 fi
48050 PYTHON=$ac_cv_path_PYTHON
48051 if test -n "$PYTHON"; then
48052   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48053 echo "${ECHO_T}$PYTHON" >&6; }
48054 else
48055   { echo "$as_me:$LINENO: result: no" >&5
48056 echo "${ECHO_T}no" >&6; }
48057 fi
48058
48059
48060    if test "x$PYTHON" = "x"; then
48061      COND_PYTHON="#"
48062    fi
48063
48064 fi
48065
48066 if test "$wxUSE_MENUS" = "yes"; then
48067     cat >>confdefs.h <<\_ACEOF
48068 #define wxUSE_MENUS 1
48069 _ACEOF
48070
48071     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48072 fi
48073
48074 if test "$wxUSE_METAFILE" = "yes"; then
48075     cat >>confdefs.h <<\_ACEOF
48076 #define wxUSE_METAFILE 1
48077 _ACEOF
48078
48079 fi
48080
48081 if test "$wxUSE_MIMETYPE" = "yes"; then
48082     cat >>confdefs.h <<\_ACEOF
48083 #define wxUSE_MIMETYPE 1
48084 _ACEOF
48085
48086 fi
48087
48088 if test "$wxUSE_MINIFRAME" = "yes"; then
48089     cat >>confdefs.h <<\_ACEOF
48090 #define wxUSE_MINIFRAME 1
48091 _ACEOF
48092
48093 fi
48094
48095 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48096     cat >>confdefs.h <<\_ACEOF
48097 #define wxUSE_SYSTEM_OPTIONS 1
48098 _ACEOF
48099
48100 fi
48101
48102 if test "$wxUSE_TASKBARICON" = "yes"; then
48103     cat >>confdefs.h <<\_ACEOF
48104 #define wxUSE_TASKBARICON 1
48105 _ACEOF
48106
48107     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48108 fi
48109
48110
48111 if test "$wxUSE_VALIDATORS" = "yes"; then
48112     cat >>confdefs.h <<\_ACEOF
48113 #define wxUSE_VALIDATORS 1
48114 _ACEOF
48115
48116     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48117 fi
48118
48119 if test "$wxUSE_PALETTE" = "yes" ; then
48120     if test "$wxUSE_DFB" = 1; then
48121         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48122 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48123         wxUSE_PALETTE=no
48124     else
48125         cat >>confdefs.h <<\_ACEOF
48126 #define wxUSE_PALETTE 1
48127 _ACEOF
48128
48129     fi
48130 fi
48131
48132 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48133     LIBS=" -lunicows $LIBS"
48134 fi
48135
48136 USE_RICHTEXT=0
48137 if test "$wxUSE_RICHTEXT" = "yes"; then
48138     cat >>confdefs.h <<\_ACEOF
48139 #define wxUSE_RICHTEXT 1
48140 _ACEOF
48141
48142     USE_RICHTEXT=1
48143     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48144 fi
48145
48146
48147 if test "$wxUSE_IMAGE" = "yes" ; then
48148     cat >>confdefs.h <<\_ACEOF
48149 #define wxUSE_IMAGE 1
48150 _ACEOF
48151
48152
48153     if test "$wxUSE_GIF" = "yes" ; then
48154       cat >>confdefs.h <<\_ACEOF
48155 #define wxUSE_GIF 1
48156 _ACEOF
48157
48158     fi
48159
48160     if test "$wxUSE_PCX" = "yes" ; then
48161       cat >>confdefs.h <<\_ACEOF
48162 #define wxUSE_PCX 1
48163 _ACEOF
48164
48165     fi
48166
48167     if test "$wxUSE_TGA" = "yes" ; then
48168       cat >>confdefs.h <<\_ACEOF
48169 #define wxUSE_TGA 1
48170 _ACEOF
48171
48172     fi
48173
48174     if test "$wxUSE_IFF" = "yes" ; then
48175       cat >>confdefs.h <<\_ACEOF
48176 #define wxUSE_IFF 1
48177 _ACEOF
48178
48179     fi
48180
48181     if test "$wxUSE_PNM" = "yes" ; then
48182       cat >>confdefs.h <<\_ACEOF
48183 #define wxUSE_PNM 1
48184 _ACEOF
48185
48186     fi
48187
48188     if test "$wxUSE_XPM" = "yes" ; then
48189       cat >>confdefs.h <<\_ACEOF
48190 #define wxUSE_XPM 1
48191 _ACEOF
48192
48193     fi
48194
48195     if test "$wxUSE_ICO_CUR" = "yes" ; then
48196       cat >>confdefs.h <<\_ACEOF
48197 #define wxUSE_ICO_CUR 1
48198 _ACEOF
48199
48200     fi
48201 fi
48202
48203
48204 if test "$wxUSE_ABOUTDLG" = "yes"; then
48205     cat >>confdefs.h <<\_ACEOF
48206 #define wxUSE_ABOUTDLG 1
48207 _ACEOF
48208
48209 fi
48210
48211 if test "$wxUSE_CHOICEDLG" = "yes"; then
48212     cat >>confdefs.h <<\_ACEOF
48213 #define wxUSE_CHOICEDLG 1
48214 _ACEOF
48215
48216 fi
48217
48218 if test "$wxUSE_COLOURDLG" = "yes"; then
48219     cat >>confdefs.h <<\_ACEOF
48220 #define wxUSE_COLOURDLG 1
48221 _ACEOF
48222
48223 fi
48224
48225 if test "$wxUSE_FILEDLG" = "yes"; then
48226     cat >>confdefs.h <<\_ACEOF
48227 #define wxUSE_FILEDLG 1
48228 _ACEOF
48229
48230 fi
48231
48232 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48233     cat >>confdefs.h <<\_ACEOF
48234 #define wxUSE_FINDREPLDLG 1
48235 _ACEOF
48236
48237 fi
48238
48239 if test "$wxUSE_FONTDLG" = "yes"; then
48240     cat >>confdefs.h <<\_ACEOF
48241 #define wxUSE_FONTDLG 1
48242 _ACEOF
48243
48244 fi
48245
48246 if test "$wxUSE_DIRDLG" = "yes"; then
48247     if test "$wxUSE_TREECTRL" != "yes"; then
48248         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48249 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48250     else
48251         cat >>confdefs.h <<\_ACEOF
48252 #define wxUSE_DIRDLG 1
48253 _ACEOF
48254
48255     fi
48256 fi
48257
48258 if test "$wxUSE_MSGDLG" = "yes"; then
48259     cat >>confdefs.h <<\_ACEOF
48260 #define wxUSE_MSGDLG 1
48261 _ACEOF
48262
48263 fi
48264
48265 if test "$wxUSE_NUMBERDLG" = "yes"; then
48266     cat >>confdefs.h <<\_ACEOF
48267 #define wxUSE_NUMBERDLG 1
48268 _ACEOF
48269
48270 fi
48271
48272 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48273     cat >>confdefs.h <<\_ACEOF
48274 #define wxUSE_PROGRESSDLG 1
48275 _ACEOF
48276
48277 fi
48278
48279 if test "$wxUSE_SPLASH" = "yes"; then
48280     cat >>confdefs.h <<\_ACEOF
48281 #define wxUSE_SPLASH 1
48282 _ACEOF
48283
48284     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48285 fi
48286
48287 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48288     cat >>confdefs.h <<\_ACEOF
48289 #define wxUSE_STARTUP_TIPS 1
48290 _ACEOF
48291
48292 fi
48293
48294 if test "$wxUSE_TEXTDLG" = "yes"; then
48295     cat >>confdefs.h <<\_ACEOF
48296 #define wxUSE_TEXTDLG 1
48297 _ACEOF
48298
48299 fi
48300
48301 if test "$wxUSE_WIZARDDLG" = "yes"; then
48302     cat >>confdefs.h <<\_ACEOF
48303 #define wxUSE_WIZARDDLG 1
48304 _ACEOF
48305
48306     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48307 fi
48308
48309
48310 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48311     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48312         cat >>confdefs.h <<\_ACEOF
48313 #define wxUSE_OWNER_DRAWN 1
48314 _ACEOF
48315
48316     fi
48317 fi
48318
48319
48320 if test "$wxUSE_MSW" = 1 ; then
48321
48322     if test "$wxUSE_DC_CACHEING" = "yes"; then
48323         cat >>confdefs.h <<\_ACEOF
48324 #define wxUSE_DC_CACHEING 1
48325 _ACEOF
48326
48327     fi
48328
48329     if test "$wxUSE_DIB" = "yes"; then
48330         cat >>confdefs.h <<\_ACEOF
48331 #define wxUSE_WXDIB 1
48332 _ACEOF
48333
48334     fi
48335
48336     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48337         cat >>confdefs.h <<\_ACEOF
48338 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48339 _ACEOF
48340
48341     fi
48342
48343     if test "$wxUSE_UXTHEME" = "yes"; then
48344         cat >>confdefs.h <<\_ACEOF
48345 #define wxUSE_UXTHEME 1
48346 _ACEOF
48347
48348     fi
48349
48350 fi
48351
48352 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48353     cat >>confdefs.h <<\_ACEOF
48354 #define wxUSE_AUTOID_MANAGEMENT 1
48355 _ACEOF
48356
48357 fi
48358
48359 if test "$USE_WIN32" = 1 ; then
48360     if test "$wxUSE_INICONF" = "yes"; then
48361         cat >>confdefs.h <<\_ACEOF
48362 #define wxUSE_INICONF 1
48363 _ACEOF
48364
48365     fi
48366
48367     if test "$wxUSE_REGKEY" = "yes"; then
48368         cat >>confdefs.h <<\_ACEOF
48369 #define wxUSE_REGKEY 1
48370 _ACEOF
48371
48372     fi
48373 fi
48374
48375
48376 if test "$wxUSE_MAC" = 1; then
48377     wxUSE_GRAPHICS_CONTEXT="yes"
48378 fi
48379
48380 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48381     wx_has_graphics=0
48382     if test "$wxUSE_MSW" = 1; then
48383         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48384 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48385 if test "${wx_cv_lib_gdiplus+set}" = set; then
48386   echo $ECHO_N "(cached) $ECHO_C" >&6
48387 else
48388
48389                                                 ac_ext=cpp
48390 ac_cpp='$CXXCPP $CPPFLAGS'
48391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48394
48395                 cat >conftest.$ac_ext <<_ACEOF
48396 /* confdefs.h.  */
48397 _ACEOF
48398 cat confdefs.h >>conftest.$ac_ext
48399 cat >>conftest.$ac_ext <<_ACEOF
48400 /* end confdefs.h.  */
48401 #include <windows.h>
48402                      #include <gdiplus.h>
48403 int
48404 main ()
48405 {
48406
48407                         using namespace Gdiplus;
48408
48409   ;
48410   return 0;
48411 }
48412 _ACEOF
48413 rm -f conftest.$ac_objext
48414 if { (ac_try="$ac_compile"
48415 case "(($ac_try" in
48416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48417   *) ac_try_echo=$ac_try;;
48418 esac
48419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48420   (eval "$ac_compile") 2>conftest.er1
48421   ac_status=$?
48422   grep -v '^ *+' conftest.er1 >conftest.err
48423   rm -f conftest.er1
48424   cat conftest.err >&5
48425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48426   (exit $ac_status); } && {
48427          test -z "$ac_cxx_werror_flag" ||
48428          test ! -s conftest.err
48429        } && test -s conftest.$ac_objext; then
48430   wx_cv_lib_gdiplus=yes
48431 else
48432   echo "$as_me: failed program was:" >&5
48433 sed 's/^/| /' conftest.$ac_ext >&5
48434
48435         wx_cv_lib_gdiplus=no
48436
48437 fi
48438
48439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48440                 ac_ext=c
48441 ac_cpp='$CPP $CPPFLAGS'
48442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48445
48446
48447
48448 fi
48449 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48450 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48451         if test "$wx_cv_lib_gdiplus" = "yes"; then
48452             wx_has_graphics=1
48453         fi
48454     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
48455
48456 pkg_failed=no
48457 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48458 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48459
48460 if test -n "$PKG_CONFIG"; then
48461     if test -n "$CAIRO_CFLAGS"; then
48462         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48463     else
48464         if test -n "$PKG_CONFIG" && \
48465     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48466   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48467   ac_status=$?
48468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48469   (exit $ac_status); }; then
48470   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48471 else
48472   pkg_failed=yes
48473 fi
48474     fi
48475 else
48476         pkg_failed=untried
48477 fi
48478 if test -n "$PKG_CONFIG"; then
48479     if test -n "$CAIRO_LIBS"; then
48480         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48481     else
48482         if test -n "$PKG_CONFIG" && \
48483     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48484   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48485   ac_status=$?
48486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48487   (exit $ac_status); }; then
48488   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48489 else
48490   pkg_failed=yes
48491 fi
48492     fi
48493 else
48494         pkg_failed=untried
48495 fi
48496
48497
48498
48499 if test $pkg_failed = yes; then
48500
48501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48502         _pkg_short_errors_supported=yes
48503 else
48504         _pkg_short_errors_supported=no
48505 fi
48506         if test $_pkg_short_errors_supported = yes; then
48507                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48508         else
48509                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48510         fi
48511         # Put the nasty error message in config.log where it belongs
48512         echo "$CAIRO_PKG_ERRORS" >&5
48513
48514         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48515 echo "$as_me: WARNING: Cairo library not found" >&2;}
48516
48517 elif test $pkg_failed = untried; then
48518         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48519 echo "$as_me: WARNING: Cairo library not found" >&2;}
48520
48521 else
48522         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48523         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48524         { echo "$as_me:$LINENO: result: yes" >&5
48525 echo "${ECHO_T}yes" >&6; }
48526         wx_has_graphics=1
48527 fi
48528         if test "$wx_has_graphics" = 1; then
48529                                                 save_LIBS="$LIBS"
48530             LIBS="$LIBS $CAIRO_LIBS"
48531
48532 for ac_func in cairo_push_group
48533 do
48534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48538   echo $ECHO_N "(cached) $ECHO_C" >&6
48539 else
48540   cat >conftest.$ac_ext <<_ACEOF
48541 /* confdefs.h.  */
48542 _ACEOF
48543 cat confdefs.h >>conftest.$ac_ext
48544 cat >>conftest.$ac_ext <<_ACEOF
48545 /* end confdefs.h.  */
48546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48548 #define $ac_func innocuous_$ac_func
48549
48550 /* System header to define __stub macros and hopefully few prototypes,
48551     which can conflict with char $ac_func (); below.
48552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48553     <limits.h> exists even on freestanding compilers.  */
48554
48555 #ifdef __STDC__
48556 # include <limits.h>
48557 #else
48558 # include <assert.h>
48559 #endif
48560
48561 #undef $ac_func
48562
48563 /* Override any GCC internal prototype to avoid an error.
48564    Use char because int might match the return type of a GCC
48565    builtin and then its argument prototype would still apply.  */
48566 #ifdef __cplusplus
48567 extern "C"
48568 #endif
48569 char $ac_func ();
48570 /* The GNU C library defines this for functions which it implements
48571     to always fail with ENOSYS.  Some functions are actually named
48572     something starting with __ and the normal name is an alias.  */
48573 #if defined __stub_$ac_func || defined __stub___$ac_func
48574 choke me
48575 #endif
48576
48577 int
48578 main ()
48579 {
48580 return $ac_func ();
48581   ;
48582   return 0;
48583 }
48584 _ACEOF
48585 rm -f conftest.$ac_objext conftest$ac_exeext
48586 if { (ac_try="$ac_link"
48587 case "(($ac_try" in
48588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48589   *) ac_try_echo=$ac_try;;
48590 esac
48591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48592   (eval "$ac_link") 2>conftest.er1
48593   ac_status=$?
48594   grep -v '^ *+' conftest.er1 >conftest.err
48595   rm -f conftest.er1
48596   cat conftest.err >&5
48597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48598   (exit $ac_status); } && {
48599          test -z "$ac_c_werror_flag" ||
48600          test ! -s conftest.err
48601        } && test -s conftest$ac_exeext &&
48602        $as_test_x conftest$ac_exeext; then
48603   eval "$as_ac_var=yes"
48604 else
48605   echo "$as_me: failed program was:" >&5
48606 sed 's/^/| /' conftest.$ac_ext >&5
48607
48608         eval "$as_ac_var=no"
48609 fi
48610
48611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48612       conftest$ac_exeext conftest.$ac_ext
48613 fi
48614 ac_res=`eval echo '${'$as_ac_var'}'`
48615                { echo "$as_me:$LINENO: result: $ac_res" >&5
48616 echo "${ECHO_T}$ac_res" >&6; }
48617 if test `eval echo '${'$as_ac_var'}'` = yes; then
48618   cat >>confdefs.h <<_ACEOF
48619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48620 _ACEOF
48621
48622 fi
48623 done
48624
48625             LIBS="$save_LIBS"
48626             if test "$ac_cv_func_cairo_push_group" = "no"; then
48627                 wx_has_graphics=0
48628                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
48629 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
48630             else
48631                 cat >>confdefs.h <<\_ACEOF
48632 #define wxUSE_CAIRO 1
48633 _ACEOF
48634
48635
48636                                                 if test "$wxUSE_GTK" != 1; then
48637                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
48638                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
48639                 fi
48640             fi
48641         fi
48642     else
48643                 wx_has_graphics=1
48644     fi
48645
48646     if test "$wx_has_graphics" = 1; then
48647         cat >>confdefs.h <<\_ACEOF
48648 #define wxUSE_GRAPHICS_CONTEXT 1
48649 _ACEOF
48650
48651     else
48652         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
48653 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
48654     fi
48655 fi
48656
48657
48658 USE_MEDIA=0
48659
48660 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
48661     USE_MEDIA=1
48662
48663                 if test "$wxUSE_GTK" = 1; then
48664         wxUSE_GSTREAMER="no"
48665
48666                                                                 GST_VERSION_MAJOR=0
48667         GST_VERSION_MINOR=10
48668         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48669
48670         if test "$wxUSE_GSTREAMER8" = "no"; then
48671
48672 pkg_failed=no
48673 { echo "$as_me:$LINENO: checking for GST" >&5
48674 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48675
48676 if test -n "$PKG_CONFIG"; then
48677     if test -n "$GST_CFLAGS"; then
48678         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48679     else
48680         if test -n "$PKG_CONFIG" && \
48681     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48682   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48683   ac_status=$?
48684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48685   (exit $ac_status); }; then
48686   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48687 else
48688   pkg_failed=yes
48689 fi
48690     fi
48691 else
48692         pkg_failed=untried
48693 fi
48694 if test -n "$PKG_CONFIG"; then
48695     if test -n "$GST_LIBS"; then
48696         pkg_cv_GST_LIBS="$GST_LIBS"
48697     else
48698         if test -n "$PKG_CONFIG" && \
48699     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48700   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48701   ac_status=$?
48702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703   (exit $ac_status); }; then
48704   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48705 else
48706   pkg_failed=yes
48707 fi
48708     fi
48709 else
48710         pkg_failed=untried
48711 fi
48712
48713
48714
48715 if test $pkg_failed = yes; then
48716
48717 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48718         _pkg_short_errors_supported=yes
48719 else
48720         _pkg_short_errors_supported=no
48721 fi
48722         if test $_pkg_short_errors_supported = yes; then
48723                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48724         else
48725                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48726         fi
48727         # Put the nasty error message in config.log where it belongs
48728         echo "$GST_PKG_ERRORS" >&5
48729
48730
48731                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48732 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48733                     GST_VERSION_MINOR=8
48734
48735
48736 elif test $pkg_failed = untried; then
48737
48738                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48739 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48740                     GST_VERSION_MINOR=8
48741
48742
48743 else
48744         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48745         GST_LIBS=$pkg_cv_GST_LIBS
48746         { echo "$as_me:$LINENO: result: yes" >&5
48747 echo "${ECHO_T}yes" >&6; }
48748
48749                     wxUSE_GSTREAMER="yes"
48750                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48751
48752 fi
48753         else
48754                         GST_VERSION_MINOR=8
48755         fi
48756
48757         if test $GST_VERSION_MINOR = "8"; then
48758             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48759
48760 pkg_failed=no
48761 { echo "$as_me:$LINENO: checking for GST" >&5
48762 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48763
48764 if test -n "$PKG_CONFIG"; then
48765     if test -n "$GST_CFLAGS"; then
48766         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48767     else
48768         if test -n "$PKG_CONFIG" && \
48769     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48770   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48771   ac_status=$?
48772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48773   (exit $ac_status); }; then
48774   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48775 else
48776   pkg_failed=yes
48777 fi
48778     fi
48779 else
48780         pkg_failed=untried
48781 fi
48782 if test -n "$PKG_CONFIG"; then
48783     if test -n "$GST_LIBS"; then
48784         pkg_cv_GST_LIBS="$GST_LIBS"
48785     else
48786         if test -n "$PKG_CONFIG" && \
48787     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48788   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48789   ac_status=$?
48790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48791   (exit $ac_status); }; then
48792   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48793 else
48794   pkg_failed=yes
48795 fi
48796     fi
48797 else
48798         pkg_failed=untried
48799 fi
48800
48801
48802
48803 if test $pkg_failed = yes; then
48804
48805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48806         _pkg_short_errors_supported=yes
48807 else
48808         _pkg_short_errors_supported=no
48809 fi
48810         if test $_pkg_short_errors_supported = yes; then
48811                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48812         else
48813                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48814         fi
48815         # Put the nasty error message in config.log where it belongs
48816         echo "$GST_PKG_ERRORS" >&5
48817
48818
48819                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48820 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48821
48822 elif test $pkg_failed = untried; then
48823
48824                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48825 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48826
48827 else
48828         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48829         GST_LIBS=$pkg_cv_GST_LIBS
48830         { echo "$as_me:$LINENO: result: yes" >&5
48831 echo "${ECHO_T}yes" >&6; }
48832         wxUSE_GSTREAMER="yes"
48833 fi
48834         fi
48835
48836
48837         if test "$wxUSE_GSTREAMER" = "yes"; then
48838             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48839             EXTRALIBS_MEDIA="$GST_LIBS"
48840
48841             cat >>confdefs.h <<\_ACEOF
48842 #define wxUSE_GSTREAMER 1
48843 _ACEOF
48844
48845         else
48846             USE_MEDIA=0
48847         fi
48848     fi
48849
48850     if test $USE_MEDIA = 1; then
48851         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48852         cat >>confdefs.h <<\_ACEOF
48853 #define wxUSE_MEDIACTRL 1
48854 _ACEOF
48855
48856     else
48857         if test "$wxUSE_MEDIACTRL" = "yes"; then
48858             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
48859 echo "$as_me: error: GStreamer not available" >&2;}
48860    { (exit 1); exit 1; }; }
48861         else
48862                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
48863 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
48864         fi
48865     fi
48866 fi
48867
48868
48869 if test "$cross_compiling" != "no"; then
48870         OSINFO="\"$host\""
48871 else
48872         OSINFO=`uname -s -r -m`
48873     OSINFO="\"$OSINFO\""
48874 fi
48875
48876 cat >>confdefs.h <<_ACEOF
48877 #define WXWIN_OS_DESCRIPTION $OSINFO
48878 _ACEOF
48879
48880
48881
48882 if test "x$prefix" != "xNONE"; then
48883     wxPREFIX=$prefix
48884 else
48885     wxPREFIX=$ac_default_prefix
48886 fi
48887
48888 cat >>confdefs.h <<_ACEOF
48889 #define wxINSTALL_PREFIX "$wxPREFIX"
48890 _ACEOF
48891
48892
48893
48894
48895 STD_BASE_LIBS="base"
48896 STD_GUI_LIBS=""
48897 BUILT_WX_LIBS="base"
48898 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
48899
48900 if test "$wxUSE_SOCKETS" = "yes" ; then
48901     STD_BASE_LIBS="net $STD_BASE_LIBS"
48902     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
48903 fi
48904 if test "$wxUSE_XML" = "yes" ; then
48905     STD_BASE_LIBS="xml $STD_BASE_LIBS"
48906     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
48907 fi
48908
48909 if test "$wxUSE_GUI" = "yes"; then
48910     STD_GUI_LIBS="adv core"
48911     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
48912
48913     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48914         STD_GUI_LIBS="qa $STD_GUI_LIBS"
48915         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
48916     fi
48917     if test "$wxUSE_HTML" = "yes" ; then
48918         STD_GUI_LIBS="html $STD_GUI_LIBS"
48919         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
48920     fi
48921     if test "$wxUSE_MEDIACTRL" = "yes" ; then
48922         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
48923     fi
48924     if test "$wxUSE_OPENGL" = "yes" ; then
48925         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
48926     fi
48927     if test "$wxUSE_AUI" = "yes" ; then
48928         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
48929     fi
48930     if test "$wxUSE_PROPGRID" = "yes" ; then
48931         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
48932     fi
48933     if test "$wxUSE_RIBBON" = "yes" ; then
48934         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
48935     fi
48936     if test "$wxUSE_RICHTEXT" = "yes" ; then
48937         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
48938     fi
48939     if test "$wxUSE_STC" = "yes" ; then
48940         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
48941     fi
48942     if test "$wxUSE_XRC" = "yes" ; then
48943         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48944         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48945     fi
48946 fi
48947
48948
48949
48950
48951
48952
48953
48954 EXTRA_FRAMEWORKS=
48955 if test "$wxUSE_MAC" = 1 ; then
48956     if test "$USE_DARWIN" = 1; then
48957         if test "$wxUSE_OSX_IPHONE" = 1; then
48958             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
48959         else
48960             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
48961         fi
48962     fi
48963 fi
48964 if test "$wxUSE_OLD_COCOA" = 1 ; then
48965     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
48966     if test "$wxUSE_MEDIACTRL" = "yes"; then
48967         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
48968     fi
48969 fi
48970 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
48971     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
48972 fi
48973
48974 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
48975 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
48976
48977 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
48978
48979 if test "$wxUSE_GUI" = "yes"; then
48980
48981
48982         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
48983                      erase event exec font image minimal render \
48984                      shaped svg taborder vscroll widgets wrapsizer"
48985
48986     if test "$wxUSE_MONOLITHIC" != "yes"; then
48987         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
48988     fi
48989     if test "$TOOLKIT" = "MSW"; then
48990         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
48991         if test "$wxUSE_UNIVERSAL" != "yes"; then
48992             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
48993         fi
48994     fi
48995     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
48996         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
48997     fi
48998 else
48999     SAMPLES_SUBDIRS="console"
49000     if test "$wxUSE_SOCKETS" = "yes" ; then
49001         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49002     fi
49003     if test "$wxUSE_IPC" = "yes" ; then
49004         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49005     fi
49006 fi
49007
49008
49009 if test "x$INTELCC" = "xyes" ; then
49010                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49011 elif test "$GCC" = yes ; then
49012     CWARNINGS="-Wall -Wundef"
49013 fi
49014
49015 if test "x$INTELCXX" = "xyes" ; then
49016                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49017 elif test "$GXX" = yes ; then
49018     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49019     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49020 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49021 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49022   echo $ECHO_N "(cached) $ECHO_C" >&6
49023 else
49024   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49025
49026  ac_ext=cpp
49027 ac_cpp='$CXXCPP $CPPFLAGS'
49028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49031
49032  ac_save_CXXFLAGS="$CXXFLAGS"
49033 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49034 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49035    cat >conftest.$ac_ext <<_ACEOF
49036 /* confdefs.h.  */
49037 _ACEOF
49038 cat confdefs.h >>conftest.$ac_ext
49039 cat >>conftest.$ac_ext <<_ACEOF
49040 /* end confdefs.h.  */
49041
49042 int
49043 main ()
49044 {
49045 return 0;
49046   ;
49047   return 0;
49048 }
49049 _ACEOF
49050 rm -f conftest.$ac_objext
49051 if { (ac_try="$ac_compile"
49052 case "(($ac_try" in
49053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49054   *) ac_try_echo=$ac_try;;
49055 esac
49056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49057   (eval "$ac_compile") 2>conftest.er1
49058   ac_status=$?
49059   grep -v '^ *+' conftest.er1 >conftest.err
49060   rm -f conftest.er1
49061   cat conftest.err >&5
49062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49063   (exit $ac_status); } && {
49064          test -z "$ac_cxx_werror_flag" ||
49065          test ! -s conftest.err
49066        } && test -s conftest.$ac_objext; then
49067   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49068 else
49069   echo "$as_me: failed program was:" >&5
49070 sed 's/^/| /' conftest.$ac_ext >&5
49071
49072
49073 fi
49074
49075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49076 done
49077  CXXFLAGS="$ac_save_CXXFLAGS"
49078  ac_ext=c
49079 ac_cpp='$CPP $CPPFLAGS'
49080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49083
49084
49085 fi
49086 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49087 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49088 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49089      .ok|.ok,*)  ;;
49090    .|.no|.no,*)  ;;
49091    *)
49092    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49093    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49094   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49095   ac_status=$?
49096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49097   (exit $ac_status); }
49098    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49099   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49100   ac_status=$?
49101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49102   (exit $ac_status); }
49103                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49104    fi
49105  ;;
49106 esac
49107
49108
49109                     if test "$wxUSE_MAC" = 1 ; then
49110         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49111     fi
49112 fi
49113
49114
49115 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49116 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49117
49118
49119 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49120  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49121  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49122  $CPPFLAGS `
49123
49124 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49125 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49126 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49127 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49128 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49129
49130 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49131
49132
49133 if test "x$MWCC" = "xyes"; then
49134
49135             CC="$CC -cwd source -I-"
49136     CXX="$CXX -cwd source -I-"
49137 fi
49138
49139
49140 LIBS=`echo $LIBS`
49141 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49142 EXTRALIBS_XML="$EXPAT_LINK"
49143 EXTRALIBS_HTML="$MSPACK_LINK"
49144 EXTRALIBS_MEDIA="$GST_LIBS"
49145 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49146 if test "$wxUSE_GUI" = "yes"; then
49147     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49148 fi
49149 if test "$wxUSE_OPENGL" = "yes"; then
49150     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49151 fi
49152
49153 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49154
49155 WXCONFIG_LIBS="$LIBS"
49156
49157 if test "$wxUSE_REGEX" = "builtin" ; then
49158     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49159 fi
49160 if test "$wxUSE_EXPAT" = "builtin" ; then
49161     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49162 fi
49163 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49164     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49165 fi
49166 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49167     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49168 fi
49169 if test "$wxUSE_LIBPNG" = "builtin" ; then
49170     wxconfig_3rdparty="png $wxconfig_3rdparty"
49171 fi
49172 if test "$wxUSE_ZLIB" = "builtin" ; then
49173     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49174 fi
49175
49176 for i in $wxconfig_3rdparty ; do
49177     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49178 done
49179
49180
49181 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49182     WXUNIV=1
49183
49184     case "$wxUNIV_THEMES" in
49185         ''|all)
49186             cat >>confdefs.h <<\_ACEOF
49187 #define wxUSE_ALL_THEMES 1
49188 _ACEOF
49189
49190             ;;
49191
49192         *)
49193             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49194                 cat >>confdefs.h <<_ACEOF
49195 #define wxUSE_THEME_$t 1
49196 _ACEOF
49197
49198             done
49199     esac
49200 else
49201     WXUNIV=0
49202 fi
49203
49204
49205
49206
49207
49208
49209
49210
49211 if test $wxUSE_MONOLITHIC = "yes" ; then
49212     MONOLITHIC=1
49213 else
49214     MONOLITHIC=0
49215 fi
49216
49217 if test $wxUSE_PLUGINS = "yes" ; then
49218     USE_PLUGINS=1
49219 else
49220     USE_PLUGINS=0
49221 fi
49222
49223 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49224     USE_QA=1
49225 else
49226     USE_QA=0
49227 fi
49228
49229 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49230     OFFICIAL_BUILD=1
49231 else
49232     OFFICIAL_BUILD=0
49233 fi
49234
49235
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272 case "$TOOLKIT" in
49273     GTK)
49274         TOOLKIT_DESC="GTK+"
49275         if test "$WXGTK2" = 1; then
49276             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49277             if test "$wxUSE_GTKPRINT" = "yes" ; then
49278                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49279             fi
49280             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49281                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49282             fi
49283             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49284                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49285             fi
49286             if test "$wxUSE_LIBHILDON" = "yes"; then
49287                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49288             fi
49289             if test "$wxUSE_LIBHILDON2" = "yes"; then
49290                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49291             fi
49292
49293             if test "$TOOLKIT_EXTRA" != ""; then
49294                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49295             fi
49296         fi
49297         ;;
49298
49299     ?*)
49300         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49301         ;;
49302
49303     *)
49304         TOOLKIT_DESC="base only"
49305         ;;
49306 esac
49307
49308 if test "$wxUSE_WINE" = "yes"; then
49309     BAKEFILE_FORCE_PLATFORM=win32
49310 fi
49311
49312 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49313 then
49314     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49315 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49316 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49317   echo $ECHO_N "(cached) $ECHO_C" >&6
49318 else
49319
49320             echo '#include <stdio.h>
49321                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49322
49323             echo '#include "conftest.h"
49324                   int main()
49325                   {
49326                      printf("%ls", test_var);
49327                      return 0;
49328                   }' > conftest.cpp
49329
49330             wx_cv_gcc_pch_bug="pch not supported"
49331
49332             if $CXX conftest.h >/dev/null 2>&1
49333             then
49334                 wx_cv_gcc_pch_bug=
49335
49336                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49337                 then
49338                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49339                         grep awidetest >/dev/null
49340                     then
49341                         wx_cv_gcc_pch_bug=no
49342                     else
49343                         wx_cv_gcc_pch_bug=yes
49344                     fi
49345                 fi
49346             fi
49347
49348             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49349
49350 fi
49351 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49352 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49353
49354     if test "$wx_cv_gcc_pch_bug" = yes; then
49355                         bk_use_pch=no
49356     fi
49357 fi
49358
49359
49360
49361
49362
49363
49364
49365     if test "x$BAKEFILE_HOST" = "x"; then
49366                if test "x${host}" = "x" ; then
49367                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49368 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49369    { (exit 1); exit 1; }; }
49370                fi
49371
49372         BAKEFILE_HOST="${host}"
49373     fi
49374
49375     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49376
49377     if test -n "$ac_tool_prefix"; then
49378   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49382 if test "${ac_cv_prog_RANLIB+set}" = set; then
49383   echo $ECHO_N "(cached) $ECHO_C" >&6
49384 else
49385   if test -n "$RANLIB"; then
49386   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49387 else
49388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49389 for as_dir in $PATH
49390 do
49391   IFS=$as_save_IFS
49392   test -z "$as_dir" && as_dir=.
49393   for ac_exec_ext in '' $ac_executable_extensions; do
49394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49395     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49397     break 2
49398   fi
49399 done
49400 done
49401 IFS=$as_save_IFS
49402
49403 fi
49404 fi
49405 RANLIB=$ac_cv_prog_RANLIB
49406 if test -n "$RANLIB"; then
49407   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49408 echo "${ECHO_T}$RANLIB" >&6; }
49409 else
49410   { echo "$as_me:$LINENO: result: no" >&5
49411 echo "${ECHO_T}no" >&6; }
49412 fi
49413
49414
49415 fi
49416 if test -z "$ac_cv_prog_RANLIB"; then
49417   ac_ct_RANLIB=$RANLIB
49418   # Extract the first word of "ranlib", so it can be a program name with args.
49419 set dummy ranlib; ac_word=$2
49420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49423   echo $ECHO_N "(cached) $ECHO_C" >&6
49424 else
49425   if test -n "$ac_ct_RANLIB"; then
49426   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49427 else
49428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49429 for as_dir in $PATH
49430 do
49431   IFS=$as_save_IFS
49432   test -z "$as_dir" && as_dir=.
49433   for ac_exec_ext in '' $ac_executable_extensions; do
49434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49435     ac_cv_prog_ac_ct_RANLIB="ranlib"
49436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49437     break 2
49438   fi
49439 done
49440 done
49441 IFS=$as_save_IFS
49442
49443 fi
49444 fi
49445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49446 if test -n "$ac_ct_RANLIB"; then
49447   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49448 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49449 else
49450   { echo "$as_me:$LINENO: result: no" >&5
49451 echo "${ECHO_T}no" >&6; }
49452 fi
49453
49454   if test "x$ac_ct_RANLIB" = x; then
49455     RANLIB=":"
49456   else
49457     case $cross_compiling:$ac_tool_warned in
49458 yes:)
49459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49460 whose name does not start with the host triplet.  If you think this
49461 configuration is useful to you, please write to autoconf@gnu.org." >&5
49462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49463 whose name does not start with the host triplet.  If you think this
49464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49465 ac_tool_warned=yes ;;
49466 esac
49467     RANLIB=$ac_ct_RANLIB
49468   fi
49469 else
49470   RANLIB="$ac_cv_prog_RANLIB"
49471 fi
49472
49473     # Find a good install program.  We prefer a C program (faster),
49474 # so one script is as good as another.  But avoid the broken or
49475 # incompatible versions:
49476 # SysV /etc/install, /usr/sbin/install
49477 # SunOS /usr/etc/install
49478 # IRIX /sbin/install
49479 # AIX /bin/install
49480 # AmigaOS /C/install, which installs bootblocks on floppy discs
49481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49484 # OS/2's system install, which has a completely different semantic
49485 # ./install, which can be erroneously created by make from ./install.sh.
49486 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49487 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49488 if test -z "$INSTALL"; then
49489 if test "${ac_cv_path_install+set}" = set; then
49490   echo $ECHO_N "(cached) $ECHO_C" >&6
49491 else
49492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49493 for as_dir in $PATH
49494 do
49495   IFS=$as_save_IFS
49496   test -z "$as_dir" && as_dir=.
49497   # Account for people who put trailing slashes in PATH elements.
49498 case $as_dir/ in
49499   ./ | .// | /cC/* | \
49500   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49501   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49502   /usr/ucb/* ) ;;
49503   *)
49504     # OSF1 and SCO ODT 3.0 have their own names for install.
49505     # Don't use installbsd from OSF since it installs stuff as root
49506     # by default.
49507     for ac_prog in ginstall scoinst install; do
49508       for ac_exec_ext in '' $ac_executable_extensions; do
49509         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49510           if test $ac_prog = install &&
49511             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49512             # AIX install.  It has an incompatible calling convention.
49513             :
49514           elif test $ac_prog = install &&
49515             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49516             # program-specific install script used by HP pwplus--don't use.
49517             :
49518           else
49519             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49520             break 3
49521           fi
49522         fi
49523       done
49524     done
49525     ;;
49526 esac
49527 done
49528 IFS=$as_save_IFS
49529
49530
49531 fi
49532   if test "${ac_cv_path_install+set}" = set; then
49533     INSTALL=$ac_cv_path_install
49534   else
49535     # As a last resort, use the slow shell script.  Don't cache a
49536     # value for INSTALL within a source directory, because that will
49537     # break other packages using the cache if that directory is
49538     # removed, or if the value is a relative name.
49539     INSTALL=$ac_install_sh
49540   fi
49541 fi
49542 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49543 echo "${ECHO_T}$INSTALL" >&6; }
49544
49545 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49546 # It thinks the first close brace ends the variable substitution.
49547 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49548
49549 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49550
49551 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49552
49553     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49555 LN_S=$as_ln_s
49556 if test "$LN_S" = "ln -s"; then
49557   { echo "$as_me:$LINENO: result: yes" >&5
49558 echo "${ECHO_T}yes" >&6; }
49559 else
49560   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49561 echo "${ECHO_T}no, using $LN_S" >&6; }
49562 fi
49563
49564
49565     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49566 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49567 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49568 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49569   echo $ECHO_N "(cached) $ECHO_C" >&6
49570 else
49571   cat >conftest.make <<\_ACEOF
49572 SHELL = /bin/sh
49573 all:
49574         @echo '@@@%%%=$(MAKE)=@@@%%%'
49575 _ACEOF
49576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49577 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49578   *@@@%%%=?*=@@@%%%*)
49579     eval ac_cv_prog_make_${ac_make}_set=yes;;
49580   *)
49581     eval ac_cv_prog_make_${ac_make}_set=no;;
49582 esac
49583 rm -f conftest.make
49584 fi
49585 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49586   { echo "$as_me:$LINENO: result: yes" >&5
49587 echo "${ECHO_T}yes" >&6; }
49588   SET_MAKE=
49589 else
49590   { echo "$as_me:$LINENO: result: no" >&5
49591 echo "${ECHO_T}no" >&6; }
49592   SET_MAKE="MAKE=${MAKE-make}"
49593 fi
49594
49595
49596
49597     if test "x$SUNCXX" = "xyes"; then
49598                                 AR=$CXX
49599         AROPTIONS="-xar -o"
49600
49601     elif test "x$SGICC" = "xyes"; then
49602                 AR=$CXX
49603         AROPTIONS="-ar -o"
49604
49605     else
49606         if test -n "$ac_tool_prefix"; then
49607   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49608 set dummy ${ac_tool_prefix}ar; ac_word=$2
49609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49611 if test "${ac_cv_prog_AR+set}" = set; then
49612   echo $ECHO_N "(cached) $ECHO_C" >&6
49613 else
49614   if test -n "$AR"; then
49615   ac_cv_prog_AR="$AR" # Let the user override the test.
49616 else
49617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49618 for as_dir in $PATH
49619 do
49620   IFS=$as_save_IFS
49621   test -z "$as_dir" && as_dir=.
49622   for ac_exec_ext in '' $ac_executable_extensions; do
49623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49624     ac_cv_prog_AR="${ac_tool_prefix}ar"
49625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49626     break 2
49627   fi
49628 done
49629 done
49630 IFS=$as_save_IFS
49631
49632 fi
49633 fi
49634 AR=$ac_cv_prog_AR
49635 if test -n "$AR"; then
49636   { echo "$as_me:$LINENO: result: $AR" >&5
49637 echo "${ECHO_T}$AR" >&6; }
49638 else
49639   { echo "$as_me:$LINENO: result: no" >&5
49640 echo "${ECHO_T}no" >&6; }
49641 fi
49642
49643
49644 fi
49645 if test -z "$ac_cv_prog_AR"; then
49646   ac_ct_AR=$AR
49647   # Extract the first word of "ar", so it can be a program name with args.
49648 set dummy ar; ac_word=$2
49649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49652   echo $ECHO_N "(cached) $ECHO_C" >&6
49653 else
49654   if test -n "$ac_ct_AR"; then
49655   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49656 else
49657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49658 for as_dir in $PATH
49659 do
49660   IFS=$as_save_IFS
49661   test -z "$as_dir" && as_dir=.
49662   for ac_exec_ext in '' $ac_executable_extensions; do
49663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49664     ac_cv_prog_ac_ct_AR="ar"
49665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49666     break 2
49667   fi
49668 done
49669 done
49670 IFS=$as_save_IFS
49671
49672 fi
49673 fi
49674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49675 if test -n "$ac_ct_AR"; then
49676   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49677 echo "${ECHO_T}$ac_ct_AR" >&6; }
49678 else
49679   { echo "$as_me:$LINENO: result: no" >&5
49680 echo "${ECHO_T}no" >&6; }
49681 fi
49682
49683   if test "x$ac_ct_AR" = x; then
49684     AR="ar"
49685   else
49686     case $cross_compiling:$ac_tool_warned in
49687 yes:)
49688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49689 whose name does not start with the host triplet.  If you think this
49690 configuration is useful to you, please write to autoconf@gnu.org." >&5
49691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49692 whose name does not start with the host triplet.  If you think this
49693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49694 ac_tool_warned=yes ;;
49695 esac
49696     AR=$ac_ct_AR
49697   fi
49698 else
49699   AR="$ac_cv_prog_AR"
49700 fi
49701
49702         AROPTIONS=rcu
49703     fi
49704
49705
49706     if test -n "$ac_tool_prefix"; then
49707   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49708 set dummy ${ac_tool_prefix}strip; ac_word=$2
49709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49711 if test "${ac_cv_prog_STRIP+set}" = set; then
49712   echo $ECHO_N "(cached) $ECHO_C" >&6
49713 else
49714   if test -n "$STRIP"; then
49715   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49716 else
49717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49718 for as_dir in $PATH
49719 do
49720   IFS=$as_save_IFS
49721   test -z "$as_dir" && as_dir=.
49722   for ac_exec_ext in '' $ac_executable_extensions; do
49723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49724     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49726     break 2
49727   fi
49728 done
49729 done
49730 IFS=$as_save_IFS
49731
49732 fi
49733 fi
49734 STRIP=$ac_cv_prog_STRIP
49735 if test -n "$STRIP"; then
49736   { echo "$as_me:$LINENO: result: $STRIP" >&5
49737 echo "${ECHO_T}$STRIP" >&6; }
49738 else
49739   { echo "$as_me:$LINENO: result: no" >&5
49740 echo "${ECHO_T}no" >&6; }
49741 fi
49742
49743
49744 fi
49745 if test -z "$ac_cv_prog_STRIP"; then
49746   ac_ct_STRIP=$STRIP
49747   # Extract the first word of "strip", so it can be a program name with args.
49748 set dummy strip; ac_word=$2
49749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49751 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49752   echo $ECHO_N "(cached) $ECHO_C" >&6
49753 else
49754   if test -n "$ac_ct_STRIP"; then
49755   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49756 else
49757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49758 for as_dir in $PATH
49759 do
49760   IFS=$as_save_IFS
49761   test -z "$as_dir" && as_dir=.
49762   for ac_exec_ext in '' $ac_executable_extensions; do
49763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49764     ac_cv_prog_ac_ct_STRIP="strip"
49765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49766     break 2
49767   fi
49768 done
49769 done
49770 IFS=$as_save_IFS
49771
49772 fi
49773 fi
49774 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49775 if test -n "$ac_ct_STRIP"; then
49776   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49777 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49778 else
49779   { echo "$as_me:$LINENO: result: no" >&5
49780 echo "${ECHO_T}no" >&6; }
49781 fi
49782
49783   if test "x$ac_ct_STRIP" = x; then
49784     STRIP=":"
49785   else
49786     case $cross_compiling:$ac_tool_warned in
49787 yes:)
49788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49789 whose name does not start with the host triplet.  If you think this
49790 configuration is useful to you, please write to autoconf@gnu.org." >&5
49791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49792 whose name does not start with the host triplet.  If you think this
49793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49794 ac_tool_warned=yes ;;
49795 esac
49796     STRIP=$ac_ct_STRIP
49797   fi
49798 else
49799   STRIP="$ac_cv_prog_STRIP"
49800 fi
49801
49802     if test -n "$ac_tool_prefix"; then
49803   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49804 set dummy ${ac_tool_prefix}nm; ac_word=$2
49805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49807 if test "${ac_cv_prog_NM+set}" = set; then
49808   echo $ECHO_N "(cached) $ECHO_C" >&6
49809 else
49810   if test -n "$NM"; then
49811   ac_cv_prog_NM="$NM" # Let the user override the test.
49812 else
49813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49814 for as_dir in $PATH
49815 do
49816   IFS=$as_save_IFS
49817   test -z "$as_dir" && as_dir=.
49818   for ac_exec_ext in '' $ac_executable_extensions; do
49819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49820     ac_cv_prog_NM="${ac_tool_prefix}nm"
49821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49822     break 2
49823   fi
49824 done
49825 done
49826 IFS=$as_save_IFS
49827
49828 fi
49829 fi
49830 NM=$ac_cv_prog_NM
49831 if test -n "$NM"; then
49832   { echo "$as_me:$LINENO: result: $NM" >&5
49833 echo "${ECHO_T}$NM" >&6; }
49834 else
49835   { echo "$as_me:$LINENO: result: no" >&5
49836 echo "${ECHO_T}no" >&6; }
49837 fi
49838
49839
49840 fi
49841 if test -z "$ac_cv_prog_NM"; then
49842   ac_ct_NM=$NM
49843   # Extract the first word of "nm", so it can be a program name with args.
49844 set dummy nm; ac_word=$2
49845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49847 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49848   echo $ECHO_N "(cached) $ECHO_C" >&6
49849 else
49850   if test -n "$ac_ct_NM"; then
49851   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49852 else
49853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49854 for as_dir in $PATH
49855 do
49856   IFS=$as_save_IFS
49857   test -z "$as_dir" && as_dir=.
49858   for ac_exec_ext in '' $ac_executable_extensions; do
49859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49860     ac_cv_prog_ac_ct_NM="nm"
49861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49862     break 2
49863   fi
49864 done
49865 done
49866 IFS=$as_save_IFS
49867
49868 fi
49869 fi
49870 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49871 if test -n "$ac_ct_NM"; then
49872   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49873 echo "${ECHO_T}$ac_ct_NM" >&6; }
49874 else
49875   { echo "$as_me:$LINENO: result: no" >&5
49876 echo "${ECHO_T}no" >&6; }
49877 fi
49878
49879   if test "x$ac_ct_NM" = x; then
49880     NM=":"
49881   else
49882     case $cross_compiling:$ac_tool_warned in
49883 yes:)
49884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49885 whose name does not start with the host triplet.  If you think this
49886 configuration is useful to you, please write to autoconf@gnu.org." >&5
49887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49888 whose name does not start with the host triplet.  If you think this
49889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49890 ac_tool_warned=yes ;;
49891 esac
49892     NM=$ac_ct_NM
49893   fi
49894 else
49895   NM="$ac_cv_prog_NM"
49896 fi
49897
49898
49899             { echo "$as_me:$LINENO: checking for command to install directories" >&5
49900 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
49901     INSTALL_TEST_DIR=acbftest$$
49902     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
49903     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
49904         rmdir $INSTALL_TEST_DIR
49905                         INSTALL_DIR='$(INSTALL) -d'
49906         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
49907 echo "${ECHO_T}$INSTALL -d" >&6; }
49908     else
49909         INSTALL_DIR="mkdir -p"
49910         { echo "$as_me:$LINENO: result: mkdir -p" >&5
49911 echo "${ECHO_T}mkdir -p" >&6; }
49912     fi
49913
49914
49915     LDFLAGS_GUI=
49916     case ${BAKEFILE_HOST} in
49917         *-*-cygwin* | *-*-mingw32* )
49918         LDFLAGS_GUI="-mwindows"
49919     esac
49920
49921
49922     fi
49923
49924         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49925 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49926 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49927   echo $ECHO_N "(cached) $ECHO_C" >&6
49928 else
49929
49930         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49931                 egrep -s GNU > /dev/null); then
49932             bakefile_cv_prog_makeisgnu="yes"
49933         else
49934             bakefile_cv_prog_makeisgnu="no"
49935         fi
49936
49937 fi
49938 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49939 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
49940
49941     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49942         IF_GNU_MAKE=""
49943     else
49944         IF_GNU_MAKE="#"
49945     fi
49946
49947
49948
49949     PLATFORM_UNIX=0
49950     PLATFORM_WIN32=0
49951     PLATFORM_MSDOS=0
49952     PLATFORM_MAC=0
49953     PLATFORM_MACOS=0
49954     PLATFORM_MACOSX=0
49955     PLATFORM_OS2=0
49956     PLATFORM_BEOS=0
49957
49958     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49959         case "${BAKEFILE_HOST}" in
49960             *-*-mingw32* )
49961                 PLATFORM_WIN32=1
49962             ;;
49963             *-pc-msdosdjgpp )
49964                 PLATFORM_MSDOS=1
49965             ;;
49966             *-pc-os2_emx | *-pc-os2-emx )
49967                 PLATFORM_OS2=1
49968             ;;
49969             *-*-darwin* )
49970                 PLATFORM_MAC=1
49971                 PLATFORM_MACOSX=1
49972             ;;
49973             *-*-beos* )
49974                 PLATFORM_BEOS=1
49975             ;;
49976             powerpc-apple-macos* )
49977                 PLATFORM_MAC=1
49978                 PLATFORM_MACOS=1
49979             ;;
49980             * )
49981                 PLATFORM_UNIX=1
49982             ;;
49983         esac
49984     else
49985         case "$BAKEFILE_FORCE_PLATFORM" in
49986             win32 )
49987                 PLATFORM_WIN32=1
49988             ;;
49989             msdos )
49990                 PLATFORM_MSDOS=1
49991             ;;
49992             os2 )
49993                 PLATFORM_OS2=1
49994             ;;
49995             darwin )
49996                 PLATFORM_MAC=1
49997                 PLATFORM_MACOSX=1
49998             ;;
49999             unix )
50000                 PLATFORM_UNIX=1
50001             ;;
50002             beos )
50003                 PLATFORM_BEOS=1
50004             ;;
50005             * )
50006                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50007 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50008    { (exit 1); exit 1; }; }
50009             ;;
50010         esac
50011     fi
50012
50013
50014
50015
50016
50017
50018
50019
50020
50021
50022
50023     # Check whether --enable-omf was given.
50024 if test "${enable_omf+set}" = set; then
50025   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50026 fi
50027
50028
50029     case "${BAKEFILE_HOST}" in
50030       *-*-darwin* )
50031                         if test "x$GCC" = "xyes"; then
50032             CFLAGS="$CFLAGS -fno-common"
50033             CXXFLAGS="$CXXFLAGS -fno-common"
50034         fi
50035         if test "x$XLCC" = "xyes"; then
50036             CFLAGS="$CFLAGS -qnocommon"
50037             CXXFLAGS="$CXXFLAGS -qnocommon"
50038         fi
50039         ;;
50040
50041       *-pc-os2_emx | *-pc-os2-emx )
50042         if test "x$bk_os2_use_omf" = "xyes" ; then
50043             AR=emxomfar
50044             RANLIB=:
50045             LDFLAGS="-Zomf $LDFLAGS"
50046             CFLAGS="-Zomf $CFLAGS"
50047             CXXFLAGS="-Zomf $CXXFLAGS"
50048             OS2_LIBEXT="lib"
50049         else
50050             OS2_LIBEXT="a"
50051         fi
50052         ;;
50053
50054       i*86-*-beos* )
50055         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50056         ;;
50057     esac
50058
50059
50060     SO_SUFFIX="so"
50061     SO_SUFFIX_MODULE="so"
50062     EXEEXT=""
50063     LIBPREFIX="lib"
50064     LIBEXT=".a"
50065     DLLPREFIX="lib"
50066     DLLPREFIX_MODULE=""
50067     DLLIMP_SUFFIX=""
50068     dlldir="$libdir"
50069
50070     case "${BAKEFILE_HOST}" in
50071                         ia64-hp-hpux* )
50072         ;;
50073         *-hp-hpux* )
50074             SO_SUFFIX="sl"
50075             SO_SUFFIX_MODULE="sl"
50076         ;;
50077         *-*-aix* )
50078                                                                         SO_SUFFIX="a"
50079             SO_SUFFIX_MODULE="a"
50080         ;;
50081         *-*-cygwin* )
50082             SO_SUFFIX="dll"
50083             SO_SUFFIX_MODULE="dll"
50084             DLLIMP_SUFFIX="dll.a"
50085             EXEEXT=".exe"
50086             DLLPREFIX="cyg"
50087             dlldir="$bindir"
50088         ;;
50089         *-*-mingw32* )
50090             SO_SUFFIX="dll"
50091             SO_SUFFIX_MODULE="dll"
50092             DLLIMP_SUFFIX="dll.a"
50093             EXEEXT=".exe"
50094             DLLPREFIX=""
50095             dlldir="$bindir"
50096         ;;
50097         *-pc-msdosdjgpp )
50098             EXEEXT=".exe"
50099             DLLPREFIX=""
50100             dlldir="$bindir"
50101         ;;
50102         *-pc-os2_emx | *-pc-os2-emx )
50103             SO_SUFFIX="dll"
50104             SO_SUFFIX_MODULE="dll"
50105             DLLIMP_SUFFIX=$OS2_LIBEXT
50106             EXEEXT=".exe"
50107             DLLPREFIX=""
50108             LIBPREFIX=""
50109             LIBEXT=".$OS2_LIBEXT"
50110             dlldir="$bindir"
50111         ;;
50112         *-*-darwin* )
50113             SO_SUFFIX="dylib"
50114             SO_SUFFIX_MODULE="bundle"
50115         ;;
50116     esac
50117
50118     if test "x$DLLIMP_SUFFIX" = "x" ; then
50119         DLLIMP_SUFFIX="$SO_SUFFIX"
50120     fi
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133         PIC_FLAG=""
50134     if test "x$GCC" = "xyes"; then
50135                 PIC_FLAG="-fPIC"
50136     fi
50137
50138         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50139     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50140     WINDOWS_IMPLIB=0
50141
50142     case "${BAKEFILE_HOST}" in
50143       *-hp-hpux* )
50144                 if test "x$GCC" != "xyes"; then
50145                         LDFLAGS="$LDFLAGS -L/usr/lib"
50146
50147             SHARED_LD_CC="${CC} -b -o"
50148             SHARED_LD_CXX="${CXX} -b -o"
50149             PIC_FLAG="+Z"
50150         fi
50151       ;;
50152
50153       *-*-linux* )
50154                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50155             PIC_FLAG="-KPIC"
50156         elif test "x$SUNCXX" = "xyes"; then
50157             SHARED_LD_CC="${CC} -G -o"
50158             SHARED_LD_CXX="${CXX} -G -o"
50159             PIC_FLAG="-KPIC"
50160         fi
50161       ;;
50162
50163       *-*-solaris2* )
50164         if test "x$SUNCXX" = xyes ; then
50165             SHARED_LD_CC="${CC} -G -o"
50166             SHARED_LD_CXX="${CXX} -G -o"
50167             PIC_FLAG="-KPIC"
50168         fi
50169       ;;
50170
50171       *-*-darwin* )
50172
50173 D='$'
50174 cat <<EOF >shared-ld-sh
50175 #!/bin/sh
50176 #-----------------------------------------------------------------------------
50177 #-- Name:        distrib/mac/shared-ld-sh
50178 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50179 #-- Author:      Gilles Depeyrot
50180 #-- Copyright:   (c) 2002 Gilles Depeyrot
50181 #-- Licence:     any use permitted
50182 #-----------------------------------------------------------------------------
50183
50184 verbose=0
50185 args=""
50186 objects=""
50187 linking_flag="-dynamiclib"
50188 ldargs="-r -keep_private_externs -nostdlib"
50189
50190 if test "x${D}CXX" = "x"; then
50191     CXX="c++"
50192 fi
50193
50194 while test ${D}# -gt 0; do
50195     case ${D}1 in
50196
50197        -v)
50198         verbose=1
50199         ;;
50200
50201        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50202         # collect these options and values
50203         args="${D}{args} ${D}1 ${D}2"
50204         shift
50205         ;;
50206
50207        -arch|-isysroot)
50208         # collect these options and values
50209         ldargs="${D}{ldargs} ${D}1 ${D}2"
50210         shift
50211         ;;
50212
50213        -s|-Wl,*)
50214         # collect these load args
50215         ldargs="${D}{ldargs} ${D}1"
50216         ;;
50217
50218        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50219         # collect these options
50220         args="${D}{args} ${D}1"
50221         ;;
50222
50223        -dynamiclib|-bundle)
50224         linking_flag="${D}1"
50225         ;;
50226
50227        -*)
50228         echo "shared-ld: unhandled option '${D}1'"
50229         exit 1
50230         ;;
50231
50232         *.o | *.a | *.dylib)
50233         # collect object files
50234         objects="${D}{objects} ${D}1"
50235         ;;
50236
50237         *)
50238         echo "shared-ld: unhandled argument '${D}1'"
50239         exit 1
50240         ;;
50241
50242     esac
50243     shift
50244 done
50245
50246 status=0
50247
50248 #
50249 # Link one module containing all the others
50250 #
50251 if test ${D}{verbose} = 1; then
50252     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50253 fi
50254 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50255 status=${D}?
50256
50257 #
50258 # Link the shared library from the single module created, but only if the
50259 # previous command didn't fail:
50260 #
50261 if test ${D}{status} = 0; then
50262     if test ${D}{verbose} = 1; then
50263         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50264     fi
50265     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50266     status=${D}?
50267 fi
50268
50269 #
50270 # Remove intermediate module
50271 #
50272 rm -f master.${D}${D}.o
50273
50274 exit ${D}status
50275 EOF
50276
50277         chmod +x shared-ld-sh
50278
50279         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50280         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50281
50282
50283                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50284 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50285 if test "${bakefile_cv_gcc31+set}" = set; then
50286   echo $ECHO_N "(cached) $ECHO_C" >&6
50287 else
50288
50289            cat >conftest.$ac_ext <<_ACEOF
50290 /* confdefs.h.  */
50291 _ACEOF
50292 cat confdefs.h >>conftest.$ac_ext
50293 cat >>conftest.$ac_ext <<_ACEOF
50294 /* end confdefs.h.  */
50295
50296 int
50297 main ()
50298 {
50299
50300                    #if (__GNUC__ < 3) || \
50301                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50302                        This is old gcc
50303                    #endif
50304
50305   ;
50306   return 0;
50307 }
50308 _ACEOF
50309 rm -f conftest.$ac_objext
50310 if { (ac_try="$ac_compile"
50311 case "(($ac_try" in
50312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50313   *) ac_try_echo=$ac_try;;
50314 esac
50315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50316   (eval "$ac_compile") 2>conftest.er1
50317   ac_status=$?
50318   grep -v '^ *+' conftest.er1 >conftest.err
50319   rm -f conftest.er1
50320   cat conftest.err >&5
50321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50322   (exit $ac_status); } && {
50323          test -z "$ac_c_werror_flag" ||
50324          test ! -s conftest.err
50325        } && test -s conftest.$ac_objext; then
50326
50327                    bakefile_cv_gcc31=yes
50328
50329 else
50330   echo "$as_me: failed program was:" >&5
50331 sed 's/^/| /' conftest.$ac_ext >&5
50332
50333
50334                    bakefile_cv_gcc31=no
50335
50336
50337 fi
50338
50339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50340
50341 fi
50342 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50343 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50344         if test "$bakefile_cv_gcc31" = "no"; then
50345                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50346             SHARED_LD_CXX="$SHARED_LD_CC"
50347         else
50348                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50349             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50350         fi
50351
50352         if test "x$GCC" == "xyes"; then
50353             PIC_FLAG="-dynamic -fPIC"
50354         fi
50355         if test "x$XLCC" = "xyes"; then
50356             PIC_FLAG="-dynamic -DPIC"
50357         fi
50358       ;;
50359
50360       *-*-aix* )
50361         if test "x$GCC" = "xyes"; then
50362                                                             PIC_FLAG=""
50363
50364                                                                                     case "${BAKEFILE_HOST}" in
50365                 *-*-aix5* )
50366                     LD_EXPFULL="-Wl,-bexpfull"
50367                     ;;
50368             esac
50369
50370             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50371             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50372         else
50373                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50374 set dummy makeC++SharedLib; ac_word=$2
50375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50377 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50378   echo $ECHO_N "(cached) $ECHO_C" >&6
50379 else
50380   if test -n "$AIX_CXX_LD"; then
50381   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50382 else
50383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50384 for as_dir in $PATH
50385 do
50386   IFS=$as_save_IFS
50387   test -z "$as_dir" && as_dir=.
50388   for ac_exec_ext in '' $ac_executable_extensions; do
50389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50390     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50392     break 2
50393   fi
50394 done
50395 done
50396 IFS=$as_save_IFS
50397
50398   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50399 fi
50400 fi
50401 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50402 if test -n "$AIX_CXX_LD"; then
50403   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50404 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50405 else
50406   { echo "$as_me:$LINENO: result: no" >&5
50407 echo "${ECHO_T}no" >&6; }
50408 fi
50409
50410
50411             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50412             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50413         fi
50414       ;;
50415
50416       *-*-beos* )
50417                         SHARED_LD_CC="${LD} -nostart -o"
50418         SHARED_LD_CXX="${LD} -nostart -o"
50419       ;;
50420
50421       *-*-irix* )
50422                 if test "x$GCC" != "xyes"; then
50423             PIC_FLAG="-KPIC"
50424         fi
50425       ;;
50426
50427       *-*-cygwin* | *-*-mingw32* )
50428         PIC_FLAG=""
50429         SHARED_LD_CC="\$(CC) -shared -o"
50430         SHARED_LD_CXX="\$(CXX) -shared -o"
50431         WINDOWS_IMPLIB=1
50432       ;;
50433
50434       *-pc-os2_emx | *-pc-os2-emx )
50435         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50436         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50437         PIC_FLAG=""
50438
50439 D='$'
50440 cat <<EOF >dllar.sh
50441 #!/bin/sh
50442 #
50443 # dllar - a tool to build both a .dll and an .a file
50444 # from a set of object (.o) files for EMX/OS2.
50445 #
50446 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50447 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50448 #
50449 #  This script will accept a set of files on the command line.
50450 #  All the public symbols from the .o files will be exported into
50451 #  a .DEF file, then linker will be run (through gcc) against them to
50452 #  build a shared library consisting of all given .o files. All libraries
50453 #  (.a) will be first decompressed into component .o files then act as
50454 #  described above. You can optionally give a description (-d "description")
50455 #  which will be put into .DLL. To see the list of accepted options (as well
50456 #  as command-line format) simply run this program without options. The .DLL
50457 #  is built to be imported by name (there is no guarantee that new versions
50458 #  of the library you build will have same ordinals for same symbols).
50459 #
50460 #  dllar is free software; you can redistribute it and/or modify
50461 #  it under the terms of the GNU General Public License as published by
50462 #  the Free Software Foundation; either version 2, or (at your option)
50463 #  any later version.
50464 #
50465 #  dllar is distributed in the hope that it will be useful,
50466 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50467 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50468 #  GNU General Public License for more details.
50469 #
50470 #  You should have received a copy of the GNU General Public License
50471 #  along with dllar; see the file COPYING.  If not, write to the Free
50472 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50473 #  02111-1307, USA.
50474
50475 # To successfuly run this program you will need:
50476 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50477 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50478 #  - gcc
50479 #    (used to build the .dll)
50480 #  - emxexp
50481 #    (used to create .def file from .o files)
50482 #  - emximp
50483 #    (used to create .a file from .def file)
50484 #  - GNU text utilites (cat, sort, uniq)
50485 #    used to process emxexp output
50486 #  - GNU file utilities (mv, rm)
50487 #  - GNU sed
50488 #  - lxlite (optional, see flag below)
50489 #    (used for general .dll cleanup)
50490 #
50491
50492 flag_USE_LXLITE=1;
50493
50494 #
50495 # helper functions
50496 # basnam, variant of basename, which does _not_ remove the path, _iff_
50497 #                              second argument (suffix to remove) is given
50498 basnam(){
50499     case ${D}# in
50500     1)
50501         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50502         ;;
50503     2)
50504         echo ${D}1 | sed 's/'${D}2'${D}//'
50505         ;;
50506     *)
50507         echo "error in basnam ${D}*"
50508         exit 8
50509         ;;
50510     esac
50511 }
50512
50513 # Cleanup temporary files and output
50514 CleanUp() {
50515     cd ${D}curDir
50516     for i in ${D}inputFiles ; do
50517         case ${D}i in
50518         *!)
50519             rm -rf \`basnam ${D}i !\`
50520             ;;
50521         *)
50522             ;;
50523         esac
50524     done
50525
50526     # Kill result in case of failure as there is just to many stupid make/nmake
50527     # things out there which doesn't do this.
50528     if [ ${D}# -eq 0 ]; then
50529         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50530     fi
50531 }
50532
50533 # Print usage and exit script with rc=1.
50534 PrintHelp() {
50535  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50536  echo '       [-name-mangler-script script.sh]'
50537  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50538  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50539  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50540  echo '       [*.o] [*.a]'
50541  echo '*> "output_file" should have no extension.'
50542  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50543  echo '   The import library name is derived from this and is set to "name".a,'
50544  echo '   unless overridden by -import'
50545  echo '*> "importlib_name" should have no extension.'
50546  echo '   If it has the .o, or .a extension, it is automatically removed.'
50547  echo '   This name is used as the import library name and may be longer and'
50548  echo '   more descriptive than the DLL name which has to follow the old '
50549  echo '   8.3 convention of FAT.'
50550  echo '*> "script.sh may be given to override the output_file name by a'
50551  echo '   different name. It is mainly useful if the regular make process'
50552  echo '   of some package does not take into account OS/2 restriction of'
50553  echo '   DLL name lengths. It takes the importlib name as input and is'
50554  echo '   supposed to procude a shorter name as output. The script should'
50555  echo '   expect to get importlib_name without extension and should produce'
50556  echo '   a (max.) 8 letter name without extension.'
50557  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50558  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50559  echo '   These flags will be put at the start of GCC command line.'
50560  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50561  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50562  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50563  echo '   If the last character of a symbol is "*", all symbols beginning'
50564  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50565  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50566  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50567  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50568  echo '   C runtime DLLs.'
50569  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50570  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50571  echo '   unchanged to GCC at the end of command line.'
50572  echo '*> If you create a DLL from a library and you do not specify -o,'
50573  echo '   the basename for DLL and import library will be set to library name,'
50574  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50575  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50576  echo '   library will be renamed into gcc_s.a.'
50577  echo '--------'
50578  echo 'Example:'
50579  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50580  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50581  CleanUp
50582  exit 1
50583 }
50584
50585 # Execute a command.
50586 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50587 # @Uses    Whatever CleanUp() uses.
50588 doCommand() {
50589     echo "${D}*"
50590     eval ${D}*
50591     rcCmd=${D}?
50592
50593     if [ ${D}rcCmd -ne 0 ]; then
50594         echo "command failed, exit code="${D}rcCmd
50595         CleanUp
50596         exit ${D}rcCmd
50597     fi
50598 }
50599
50600 # main routine
50601 # setup globals
50602 cmdLine=${D}*
50603 outFile=""
50604 outimpFile=""
50605 inputFiles=""
50606 renameScript=""
50607 description=""
50608 CC=gcc.exe
50609 CFLAGS="-s -Zcrtdll"
50610 EXTRA_CFLAGS=""
50611 EXPORT_BY_ORDINALS=0
50612 exclude_symbols=""
50613 library_flags=""
50614 curDir=\`pwd\`
50615 curDirS=curDir
50616 case ${D}curDirS in
50617 */)
50618   ;;
50619 *)
50620   curDirS=${D}{curDirS}"/"
50621   ;;
50622 esac
50623 # Parse commandline
50624 libsToLink=0
50625 omfLinking=0
50626 while [ ${D}1 ]; do
50627     case ${D}1 in
50628     -ord*)
50629         EXPORT_BY_ORDINALS=1;
50630         ;;
50631     -o*)
50632         shift
50633         outFile=${D}1
50634         ;;
50635     -i*)
50636         shift
50637         outimpFile=${D}1
50638         ;;
50639     -name-mangler-script)
50640         shift
50641         renameScript=${D}1
50642         ;;
50643     -d*)
50644         shift
50645         description=${D}1
50646         ;;
50647     -f*)
50648         shift
50649         CFLAGS=${D}1
50650         ;;
50651     -c*)
50652         shift
50653         CC=${D}1
50654         ;;
50655     -h*)
50656         PrintHelp
50657         ;;
50658     -ex*)
50659         shift
50660         exclude_symbols=${D}{exclude_symbols}${D}1" "
50661         ;;
50662     -libf*)
50663         shift
50664         library_flags=${D}{library_flags}${D}1" "
50665         ;;
50666     -nocrt*)
50667         CFLAGS="-s"
50668         ;;
50669     -nolxl*)
50670         flag_USE_LXLITE=0
50671         ;;
50672     -* | /*)
50673         case ${D}1 in
50674         -L* | -l*)
50675             libsToLink=1
50676             ;;
50677         -Zomf)
50678             omfLinking=1
50679             ;;
50680         *)
50681             ;;
50682         esac
50683         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50684         ;;
50685     *.dll)
50686         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50687         if [ ${D}omfLinking -eq 1 ]; then
50688             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50689         else
50690             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50691         fi
50692         ;;
50693     *)
50694         found=0;
50695         if [ ${D}libsToLink -ne 0 ]; then
50696             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50697         else
50698             for file in ${D}1 ; do
50699                 if [ -f ${D}file ]; then
50700                     inputFiles="${D}{inputFiles} ${D}file"
50701                     found=1
50702                 fi
50703             done
50704             if [ ${D}found -eq 0 ]; then
50705                 echo "ERROR: No file(s) found: "${D}1
50706                 exit 8
50707             fi
50708         fi
50709       ;;
50710     esac
50711     shift
50712 done # iterate cmdline words
50713
50714 #
50715 if [ -z "${D}inputFiles" ]; then
50716     echo "dllar: no input files"
50717     PrintHelp
50718 fi
50719
50720 # Now extract all .o files from .a files
50721 newInputFiles=""
50722 for file in ${D}inputFiles ; do
50723     case ${D}file in
50724     *.a | *.lib)
50725         case ${D}file in
50726         *.a)
50727             suffix=".a"
50728             AR="ar"
50729             ;;
50730         *.lib)
50731             suffix=".lib"
50732             AR="emxomfar"
50733             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50734             ;;
50735         *)
50736             ;;
50737         esac
50738         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50739         mkdir ${D}dirname
50740         if [ ${D}? -ne 0 ]; then
50741             echo "Failed to create subdirectory ./${D}dirname"
50742             CleanUp
50743             exit 8;
50744         fi
50745         # Append '!' to indicate archive
50746         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50747         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50748         cd ${D}curDir
50749         found=0;
50750         for subfile in ${D}dirname/*.o* ; do
50751             if [ -f ${D}subfile ]; then
50752                 found=1
50753                 if [ -s ${D}subfile ]; then
50754                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50755                     newInputFiles="${D}newInputFiles ${D}subfile"
50756                 fi
50757             fi
50758         done
50759         if [ ${D}found -eq 0 ]; then
50760             echo "WARNING: there are no files in archive \\'${D}file\\'"
50761         fi
50762         ;;
50763     *)
50764         newInputFiles="${D}{newInputFiles} ${D}file"
50765         ;;
50766     esac
50767 done
50768 inputFiles="${D}newInputFiles"
50769
50770 # Output filename(s).
50771 do_backup=0;
50772 if [ -z ${D}outFile ]; then
50773     do_backup=1;
50774     set outFile ${D}inputFiles; outFile=${D}2
50775 fi
50776
50777 # If it is an archive, remove the '!' and the '_%' suffixes
50778 case ${D}outFile in
50779 *_%!)
50780     outFile=\`basnam ${D}outFile _%!\`
50781     ;;
50782 *)
50783     ;;
50784 esac
50785 case ${D}outFile in
50786 *.dll)
50787     outFile=\`basnam ${D}outFile .dll\`
50788     ;;
50789 *.DLL)
50790     outFile=\`basnam ${D}outFile .DLL\`
50791     ;;
50792 *.o)
50793     outFile=\`basnam ${D}outFile .o\`
50794     ;;
50795 *.obj)
50796     outFile=\`basnam ${D}outFile .obj\`
50797     ;;
50798 *.a)
50799     outFile=\`basnam ${D}outFile .a\`
50800     ;;
50801 *.lib)
50802     outFile=\`basnam ${D}outFile .lib\`
50803     ;;
50804 *)
50805     ;;
50806 esac
50807 case ${D}outimpFile in
50808 *.a)
50809     outimpFile=\`basnam ${D}outimpFile .a\`
50810     ;;
50811 *.lib)
50812     outimpFile=\`basnam ${D}outimpFile .lib\`
50813     ;;
50814 *)
50815     ;;
50816 esac
50817 if [ -z ${D}outimpFile ]; then
50818     outimpFile=${D}outFile
50819 fi
50820 defFile="${D}{outFile}.def"
50821 arcFile="${D}{outimpFile}.a"
50822 arcFile2="${D}{outimpFile}.lib"
50823
50824 #create ${D}dllFile as something matching 8.3 restrictions,
50825 if [ -z ${D}renameScript ] ; then
50826     dllFile="${D}outFile"
50827 else
50828     dllFile=\`${D}renameScript ${D}outimpFile\`
50829 fi
50830
50831 if [ ${D}do_backup -ne 0 ] ; then
50832     if [ -f ${D}arcFile ] ; then
50833         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50834     fi
50835     if [ -f ${D}arcFile2 ] ; then
50836         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50837     fi
50838 fi
50839
50840 # Extract public symbols from all the object files.
50841 tmpdefFile=${D}{defFile}_%
50842 rm -f ${D}tmpdefFile
50843 for file in ${D}inputFiles ; do
50844     case ${D}file in
50845     *!)
50846         ;;
50847     *)
50848         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50849         ;;
50850     esac
50851 done
50852
50853 # Create the def file.
50854 rm -f ${D}defFile
50855 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50856 dllFile="${D}{dllFile}.dll"
50857 if [ ! -z ${D}description ]; then
50858     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50859 fi
50860 echo "EXPORTS" >> ${D}defFile
50861
50862 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50863 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50864
50865 # Checks if the export is ok or not.
50866 for word in ${D}exclude_symbols; do
50867     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50868     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50869 done
50870
50871
50872 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50873     sed "=" < ${D}tmpdefFile | \\
50874     sed '
50875       N
50876       : loop
50877       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50878       t loop
50879     ' > ${D}{tmpdefFile}%
50880     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50881 else
50882     rm -f ${D}{tmpdefFile}%
50883 fi
50884 cat ${D}tmpdefFile >> ${D}defFile
50885 rm -f ${D}tmpdefFile
50886
50887 # Do linking, create implib, and apply lxlite.
50888 gccCmdl="";
50889 for file in ${D}inputFiles ; do
50890     case ${D}file in
50891     *!)
50892         ;;
50893     *)
50894         gccCmdl="${D}gccCmdl ${D}file"
50895         ;;
50896     esac
50897 done
50898 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50899 touch "${D}{outFile}.dll"
50900
50901 doCommand "emximp -o ${D}arcFile ${D}defFile"
50902 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50903     add_flags="";
50904     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50905         add_flags="-ynd"
50906     fi
50907     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50908 fi
50909 doCommand "emxomf -s -l ${D}arcFile"
50910
50911 # Successful exit.
50912 CleanUp 1
50913 exit 0
50914 EOF
50915
50916         chmod +x dllar.sh
50917       ;;
50918
50919       powerpc-apple-macos* | \
50920       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50921       *-*-mirbsd* | \
50922       *-*-sunos4* | \
50923       *-*-osf* | \
50924       *-*-dgux5* | \
50925       *-*-sysv5* | \
50926       *-pc-msdosdjgpp )
50927               ;;
50928
50929       *)
50930         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50931 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50932    { (exit 1); exit 1; }; }
50933     esac
50934
50935     if test "x$PIC_FLAG" != "x" ; then
50936         PIC_FLAG="$PIC_FLAG -DPIC"
50937     fi
50938
50939     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50940         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50941     fi
50942     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50943         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50944     fi
50945
50946
50947
50948
50949
50950
50951
50952
50953
50954     USE_SOVERSION=0
50955     USE_SOVERLINUX=0
50956     USE_SOVERSOLARIS=0
50957     USE_SOVERCYGWIN=0
50958     USE_SOTWOSYMLINKS=0
50959     USE_MACVERSION=0
50960     SONAME_FLAG=
50961
50962     case "${BAKEFILE_HOST}" in
50963       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
50964       *-*-k*bsd*-gnu | *-*-mirbsd* )
50965         if test "x$SUNCXX" = "xyes"; then
50966             SONAME_FLAG="-h "
50967         else
50968             SONAME_FLAG="-Wl,-soname,"
50969         fi
50970         USE_SOVERSION=1
50971         USE_SOVERLINUX=1
50972         USE_SOTWOSYMLINKS=1
50973       ;;
50974
50975       *-*-solaris2* )
50976         SONAME_FLAG="-h "
50977         USE_SOVERSION=1
50978         USE_SOVERSOLARIS=1
50979       ;;
50980
50981       *-*-darwin* )
50982         USE_MACVERSION=1
50983         USE_SOVERSION=1
50984         USE_SOTWOSYMLINKS=1
50985       ;;
50986
50987       *-*-cygwin* )
50988         USE_SOVERSION=1
50989         USE_SOVERCYGWIN=1
50990       ;;
50991     esac
50992
50993
50994
50995
50996
50997
50998
50999
51000
51001
51002     # Check whether --enable-dependency-tracking was given.
51003 if test "${enable_dependency_tracking+set}" = set; then
51004   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51005 fi
51006
51007
51008     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51009 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51010
51011     BK_DEPS=""
51012     if test "x$bk_use_trackdeps" = "xno" ; then
51013         DEPS_TRACKING=0
51014         { echo "$as_me:$LINENO: result: disabled" >&5
51015 echo "${ECHO_T}disabled" >&6; }
51016     else
51017         DEPS_TRACKING=1
51018
51019         if test "x$GCC" = "xyes"; then
51020             DEPSMODE=gcc
51021             case "${BAKEFILE_HOST}" in
51022                 *-*-darwin* )
51023                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51024                 ;;
51025                 * )
51026                     DEPSFLAG="-MMD"
51027                 ;;
51028             esac
51029             { echo "$as_me:$LINENO: result: gcc" >&5
51030 echo "${ECHO_T}gcc" >&6; }
51031         elif test "x$MWCC" = "xyes"; then
51032             DEPSMODE=mwcc
51033             DEPSFLAG="-MM"
51034             { echo "$as_me:$LINENO: result: mwcc" >&5
51035 echo "${ECHO_T}mwcc" >&6; }
51036         elif test "x$SUNCC" = "xyes"; then
51037             DEPSMODE=unixcc
51038             DEPSFLAG="-xM1"
51039             { echo "$as_me:$LINENO: result: Sun cc" >&5
51040 echo "${ECHO_T}Sun cc" >&6; }
51041         elif test "x$SGICC" = "xyes"; then
51042             DEPSMODE=unixcc
51043             DEPSFLAG="-M"
51044             { echo "$as_me:$LINENO: result: SGI cc" >&5
51045 echo "${ECHO_T}SGI cc" >&6; }
51046         elif test "x$HPCC" = "xyes"; then
51047             DEPSMODE=unixcc
51048             DEPSFLAG="+make"
51049             { echo "$as_me:$LINENO: result: HP cc" >&5
51050 echo "${ECHO_T}HP cc" >&6; }
51051         elif test "x$COMPAQCC" = "xyes"; then
51052             DEPSMODE=gcc
51053             DEPSFLAG="-MD"
51054             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51055 echo "${ECHO_T}Compaq cc" >&6; }
51056         else
51057             DEPS_TRACKING=0
51058             { echo "$as_me:$LINENO: result: none" >&5
51059 echo "${ECHO_T}none" >&6; }
51060         fi
51061
51062         if test $DEPS_TRACKING = 1 ; then
51063
51064 D='$'
51065 cat <<EOF >bk-deps
51066 #!/bin/sh
51067
51068 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51069 # script. It is used to track C/C++ files dependencies in portable way.
51070 #
51071 # Permission is given to use this file in any way.
51072
51073 DEPSMODE=${DEPSMODE}
51074 DEPSFLAG="${DEPSFLAG}"
51075 DEPSDIRBASE=.deps
51076
51077 if test ${D}DEPSMODE = gcc ; then
51078     ${D}* ${D}{DEPSFLAG}
51079     status=${D}?
51080
51081     # determine location of created files:
51082     while test ${D}# -gt 0; do
51083         case "${D}1" in
51084             -o )
51085                 shift
51086                 objfile=${D}1
51087             ;;
51088             -* )
51089             ;;
51090             * )
51091                 srcfile=${D}1
51092             ;;
51093         esac
51094         shift
51095     done
51096     objfilebase=\`basename ${D}objfile\`
51097     builddir=\`dirname ${D}objfile\`
51098     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51099     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51100     depsdir=${D}builddir/${D}DEPSDIRBASE
51101     mkdir -p ${D}depsdir
51102
51103     # if the compiler failed, we're done:
51104     if test ${D}{status} != 0 ; then
51105         rm -f ${D}depfile
51106         exit ${D}{status}
51107     fi
51108
51109     # move created file to the location we want it in:
51110     if test -f ${D}depfile ; then
51111         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51112         rm -f ${D}depfile
51113     else
51114         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51115         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51116         if test ! -f ${D}depfile ; then
51117             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51118             depfile="${D}objfile.d"
51119         fi
51120         if test -f ${D}depfile ; then
51121             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51122             rm -f ${D}depfile
51123         fi
51124     fi
51125     exit 0
51126
51127 elif test ${D}DEPSMODE = mwcc ; then
51128     ${D}* || exit ${D}?
51129     # Run mwcc again with -MM and redirect into the dep file we want
51130     # NOTE: We can't use shift here because we need ${D}* to be valid
51131     prevarg=
51132     for arg in ${D}* ; do
51133         if test "${D}prevarg" = "-o"; then
51134             objfile=${D}arg
51135         else
51136             case "${D}arg" in
51137                 -* )
51138                 ;;
51139                 * )
51140                     srcfile=${D}arg
51141                 ;;
51142             esac
51143         fi
51144         prevarg="${D}arg"
51145     done
51146
51147     objfilebase=\`basename ${D}objfile\`
51148     builddir=\`dirname ${D}objfile\`
51149     depsdir=${D}builddir/${D}DEPSDIRBASE
51150     mkdir -p ${D}depsdir
51151
51152     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51153     exit 0
51154
51155 elif test ${D}DEPSMODE = unixcc; then
51156     ${D}* || exit ${D}?
51157     # Run compiler again with deps flag and redirect into the dep file.
51158     # It doesn't work if the '-o FILE' option is used, but without it the
51159     # dependency file will contain the wrong name for the object. So it is
51160     # removed from the command line, and the dep file is fixed with sed.
51161     cmd=""
51162     while test ${D}# -gt 0; do
51163         case "${D}1" in
51164             -o )
51165                 shift
51166                 objfile=${D}1
51167             ;;
51168             * )
51169                 eval arg${D}#=\\${D}1
51170                 cmd="${D}cmd \\${D}arg${D}#"
51171             ;;
51172         esac
51173         shift
51174     done
51175
51176     objfilebase=\`basename ${D}objfile\`
51177     builddir=\`dirname ${D}objfile\`
51178     depsdir=${D}builddir/${D}DEPSDIRBASE
51179     mkdir -p ${D}depsdir
51180
51181     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51182     exit 0
51183
51184 else
51185     ${D}*
51186     exit ${D}?
51187 fi
51188 EOF
51189
51190             chmod +x bk-deps
51191                                     BK_DEPS="`pwd`/bk-deps"
51192         fi
51193     fi
51194
51195
51196
51197
51198
51199     case ${BAKEFILE_HOST} in
51200         *-*-cygwin* | *-*-mingw32* )
51201                         if test -n "$ac_tool_prefix"; then
51202   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51203 set dummy ${ac_tool_prefix}windres; ac_word=$2
51204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51206 if test "${ac_cv_prog_WINDRES+set}" = set; then
51207   echo $ECHO_N "(cached) $ECHO_C" >&6
51208 else
51209   if test -n "$WINDRES"; then
51210   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51211 else
51212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51213 for as_dir in $PATH
51214 do
51215   IFS=$as_save_IFS
51216   test -z "$as_dir" && as_dir=.
51217   for ac_exec_ext in '' $ac_executable_extensions; do
51218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51219     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51221     break 2
51222   fi
51223 done
51224 done
51225 IFS=$as_save_IFS
51226
51227 fi
51228 fi
51229 WINDRES=$ac_cv_prog_WINDRES
51230 if test -n "$WINDRES"; then
51231   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51232 echo "${ECHO_T}$WINDRES" >&6; }
51233 else
51234   { echo "$as_me:$LINENO: result: no" >&5
51235 echo "${ECHO_T}no" >&6; }
51236 fi
51237
51238
51239 fi
51240 if test -z "$ac_cv_prog_WINDRES"; then
51241   ac_ct_WINDRES=$WINDRES
51242   # Extract the first word of "windres", so it can be a program name with args.
51243 set dummy windres; ac_word=$2
51244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51246 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51247   echo $ECHO_N "(cached) $ECHO_C" >&6
51248 else
51249   if test -n "$ac_ct_WINDRES"; then
51250   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51251 else
51252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51253 for as_dir in $PATH
51254 do
51255   IFS=$as_save_IFS
51256   test -z "$as_dir" && as_dir=.
51257   for ac_exec_ext in '' $ac_executable_extensions; do
51258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51259     ac_cv_prog_ac_ct_WINDRES="windres"
51260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51261     break 2
51262   fi
51263 done
51264 done
51265 IFS=$as_save_IFS
51266
51267 fi
51268 fi
51269 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51270 if test -n "$ac_ct_WINDRES"; then
51271   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51272 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51273 else
51274   { echo "$as_me:$LINENO: result: no" >&5
51275 echo "${ECHO_T}no" >&6; }
51276 fi
51277
51278   if test "x$ac_ct_WINDRES" = x; then
51279     WINDRES=""
51280   else
51281     case $cross_compiling:$ac_tool_warned in
51282 yes:)
51283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51284 whose name does not start with the host triplet.  If you think this
51285 configuration is useful to you, please write to autoconf@gnu.org." >&5
51286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51287 whose name does not start with the host triplet.  If you think this
51288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51289 ac_tool_warned=yes ;;
51290 esac
51291     WINDRES=$ac_ct_WINDRES
51292   fi
51293 else
51294   WINDRES="$ac_cv_prog_WINDRES"
51295 fi
51296
51297          ;;
51298
51299       *-*-darwin* | powerpc-apple-macos* )
51300             # Extract the first word of "Rez", so it can be a program name with args.
51301 set dummy Rez; ac_word=$2
51302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51304 if test "${ac_cv_prog_REZ+set}" = set; then
51305   echo $ECHO_N "(cached) $ECHO_C" >&6
51306 else
51307   if test -n "$REZ"; then
51308   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51309 else
51310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51311 for as_dir in $PATH
51312 do
51313   IFS=$as_save_IFS
51314   test -z "$as_dir" && as_dir=.
51315   for ac_exec_ext in '' $ac_executable_extensions; do
51316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51317     ac_cv_prog_REZ="Rez"
51318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51319     break 2
51320   fi
51321 done
51322 done
51323 IFS=$as_save_IFS
51324
51325   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51326 fi
51327 fi
51328 REZ=$ac_cv_prog_REZ
51329 if test -n "$REZ"; then
51330   { echo "$as_me:$LINENO: result: $REZ" >&5
51331 echo "${ECHO_T}$REZ" >&6; }
51332 else
51333   { echo "$as_me:$LINENO: result: no" >&5
51334 echo "${ECHO_T}no" >&6; }
51335 fi
51336
51337
51338             # Extract the first word of "SetFile", so it can be a program name with args.
51339 set dummy SetFile; ac_word=$2
51340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51342 if test "${ac_cv_prog_SETFILE+set}" = set; then
51343   echo $ECHO_N "(cached) $ECHO_C" >&6
51344 else
51345   if test -n "$SETFILE"; then
51346   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51347 else
51348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51349 for as_dir in $PATH
51350 do
51351   IFS=$as_save_IFS
51352   test -z "$as_dir" && as_dir=.
51353   for ac_exec_ext in '' $ac_executable_extensions; do
51354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51355     ac_cv_prog_SETFILE="SetFile"
51356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51357     break 2
51358   fi
51359 done
51360 done
51361 IFS=$as_save_IFS
51362
51363   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51364 fi
51365 fi
51366 SETFILE=$ac_cv_prog_SETFILE
51367 if test -n "$SETFILE"; then
51368   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51369 echo "${ECHO_T}$SETFILE" >&6; }
51370 else
51371   { echo "$as_me:$LINENO: result: no" >&5
51372 echo "${ECHO_T}no" >&6; }
51373 fi
51374
51375
51376         ;;
51377     esac
51378
51379
51380
51381
51382
51383
51384
51385
51386
51387     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51388
51389
51390 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51391
51392
51393
51394     # Check whether --enable-precomp-headers was given.
51395 if test "${enable_precomp_headers+set}" = set; then
51396   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51397 fi
51398
51399
51400     GCC_PCH=0
51401     ICC_PCH=0
51402     USE_PCH=0
51403     BK_MAKE_PCH=""
51404
51405     case ${BAKEFILE_HOST} in
51406         *-*-cygwin* )
51407                                                 bk_use_pch="no"
51408             ;;
51409     esac
51410
51411     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51412         if test "x$GCC" = "xyes"; then
51413                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51414 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51415             cat >conftest.$ac_ext <<_ACEOF
51416 /* confdefs.h.  */
51417 _ACEOF
51418 cat confdefs.h >>conftest.$ac_ext
51419 cat >>conftest.$ac_ext <<_ACEOF
51420 /* end confdefs.h.  */
51421
51422 int
51423 main ()
51424 {
51425
51426                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51427                         There is no PCH support
51428                     #endif
51429                     #if (__GNUC__ < 3)
51430                         There is no PCH support
51431                     #endif
51432                     #if (__GNUC__ == 3) && \
51433                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51434                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51435                        ( defined(__INTEL_COMPILER) )
51436                         There is no PCH support
51437                     #endif
51438
51439   ;
51440   return 0;
51441 }
51442 _ACEOF
51443 rm -f conftest.$ac_objext
51444 if { (ac_try="$ac_compile"
51445 case "(($ac_try" in
51446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51447   *) ac_try_echo=$ac_try;;
51448 esac
51449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51450   (eval "$ac_compile") 2>conftest.er1
51451   ac_status=$?
51452   grep -v '^ *+' conftest.er1 >conftest.err
51453   rm -f conftest.er1
51454   cat conftest.err >&5
51455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51456   (exit $ac_status); } && {
51457          test -z "$ac_c_werror_flag" ||
51458          test ! -s conftest.err
51459        } && test -s conftest.$ac_objext; then
51460
51461                     { echo "$as_me:$LINENO: result: yes" >&5
51462 echo "${ECHO_T}yes" >&6; }
51463                     GCC_PCH=1
51464
51465 else
51466   echo "$as_me: failed program was:" >&5
51467 sed 's/^/| /' conftest.$ac_ext >&5
51468
51469
51470                     if test "$INTELCXX8" = "yes"; then
51471                         { echo "$as_me:$LINENO: result: yes" >&5
51472 echo "${ECHO_T}yes" >&6; }
51473                         ICC_PCH=1
51474                         if test "$INTELCXX10" = "yes"; then
51475                             ICC_PCH_CREATE_SWITCH="-pch-create"
51476                             ICC_PCH_USE_SWITCH="-pch-use"
51477                         else
51478                             ICC_PCH_CREATE_SWITCH="-create-pch"
51479                             ICC_PCH_USE_SWITCH="-use-pch"
51480                         fi
51481                     else
51482                         { echo "$as_me:$LINENO: result: no" >&5
51483 echo "${ECHO_T}no" >&6; }
51484                     fi
51485
51486 fi
51487
51488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51489             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51490                 USE_PCH=1
51491
51492 D='$'
51493 cat <<EOF >bk-make-pch
51494 #!/bin/sh
51495
51496 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51497 # script. It is used to generated precompiled headers.
51498 #
51499 # Permission is given to use this file in any way.
51500
51501 outfile="${D}{1}"
51502 header="${D}{2}"
51503 shift
51504 shift
51505
51506 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
51507
51508 compiler=""
51509 headerfile=""
51510
51511 while test ${D}{#} -gt 0; do
51512     add_to_cmdline=1
51513     case "${D}{1}" in
51514         -I* )
51515             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51516             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51517                 headerfile="${D}{incdir}/${D}{header}"
51518             fi
51519         ;;
51520         -use-pch|-use_pch|-pch-use )
51521             shift
51522             add_to_cmdline=0
51523         ;;
51524     esac
51525     if test ${D}add_to_cmdline = 1 ; then
51526         compiler="${D}{compiler} ${D}{1}"
51527     fi
51528     shift
51529 done
51530
51531 if test "x${D}{headerfile}" = "x" ; then
51532     echo "error: can't find header ${D}{header} in include paths" >&2
51533 else
51534     if test -f ${D}{outfile} ; then
51535         rm -f ${D}{outfile}
51536     else
51537         mkdir -p \`dirname ${D}{outfile}\`
51538     fi
51539     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51540     mkdir -p ${D}{builddir}/.deps
51541     if test "x${GCC_PCH}" = "x1" ; then
51542         # can do this because gcc is >= 3.4:
51543         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51544     elif test "x${ICC_PCH}" = "x1" ; then
51545         filename=pch_gen-${D}${D}
51546         file=${D}{filename}.c
51547         dfile=${D}{filename}.d
51548         cat > ${D}file <<EOT
51549 #include "${D}header"
51550 EOT
51551         # using -MF icc complains about differing command lines in creation/use
51552         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
51553           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51554           rm -f ${D}file ${D}dfile ${D}{filename}.o
51555     fi
51556     exit ${D}{?}
51557 fi
51558 EOF
51559
51560                 chmod +x bk-make-pch
51561                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51562             fi
51563         fi
51564     fi
51565
51566
51567
51568
51569
51570
51571
51572     COND_BUILD_DEBUG="#"
51573     if test "x$BUILD" = "xdebug" ; then
51574         COND_BUILD_DEBUG=""
51575     fi
51576
51577     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51578     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51579         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51580     fi
51581
51582     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51583     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51584         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51585     fi
51586
51587     COND_BUILD_DEBUG_UNICODE_0="#"
51588     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51589         COND_BUILD_DEBUG_UNICODE_0=""
51590     fi
51591
51592     COND_BUILD_DEBUG_UNICODE_1="#"
51593     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51594         COND_BUILD_DEBUG_UNICODE_1=""
51595     fi
51596
51597     COND_BUILD_RELEASE="#"
51598     if test "x$BUILD" = "xrelease" ; then
51599         COND_BUILD_RELEASE=""
51600     fi
51601
51602     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51603     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51604         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51605     fi
51606
51607     COND_BUILD_RELEASE_UNICODE_0="#"
51608     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51609         COND_BUILD_RELEASE_UNICODE_0=""
51610     fi
51611
51612     COND_BUILD_RELEASE_UNICODE_1="#"
51613     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51614         COND_BUILD_RELEASE_UNICODE_1=""
51615     fi
51616
51617     COND_BUILD_debug="#"
51618     if test "x$BUILD" = "xdebug" ; then
51619         COND_BUILD_debug=""
51620     fi
51621
51622     COND_BUILD_debug_DEBUG_FLAG_default="#"
51623     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51624         COND_BUILD_debug_DEBUG_FLAG_default=""
51625     fi
51626
51627     COND_BUILD_debug_DEBUG_INFO_default="#"
51628     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51629         COND_BUILD_debug_DEBUG_INFO_default=""
51630     fi
51631
51632     COND_BUILD_debug_UNICODE_0="#"
51633     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51634         COND_BUILD_debug_UNICODE_0=""
51635     fi
51636
51637     COND_BUILD_debug_UNICODE_1="#"
51638     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51639         COND_BUILD_debug_UNICODE_1=""
51640     fi
51641
51642     COND_BUILD_release="#"
51643     if test "x$BUILD" = "xrelease" ; then
51644         COND_BUILD_release=""
51645     fi
51646
51647     COND_BUILD_release_DEBUG_INFO_default="#"
51648     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51649         COND_BUILD_release_DEBUG_INFO_default=""
51650     fi
51651
51652     COND_BUILD_release_UNICODE_0="#"
51653     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51654         COND_BUILD_release_UNICODE_0=""
51655     fi
51656
51657     COND_BUILD_release_UNICODE_1="#"
51658     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51659         COND_BUILD_release_UNICODE_1=""
51660     fi
51661
51662     COND_DEBUG_FLAG_0="#"
51663     if test "x$DEBUG_FLAG" = "x0" ; then
51664         COND_DEBUG_FLAG_0=""
51665     fi
51666
51667     COND_DEBUG_FLAG_1="#"
51668     if test "x$DEBUG_FLAG" = "x1" ; then
51669         COND_DEBUG_FLAG_1=""
51670     fi
51671
51672     COND_DEBUG_INFO_0="#"
51673     if test "x$DEBUG_INFO" = "x0" ; then
51674         COND_DEBUG_INFO_0=""
51675     fi
51676
51677     COND_DEBUG_INFO_1="#"
51678     if test "x$DEBUG_INFO" = "x1" ; then
51679         COND_DEBUG_INFO_1=""
51680     fi
51681
51682     COND_DEPS_TRACKING_0="#"
51683     if test "x$DEPS_TRACKING" = "x0" ; then
51684         COND_DEPS_TRACKING_0=""
51685     fi
51686
51687     COND_DEPS_TRACKING_1="#"
51688     if test "x$DEPS_TRACKING" = "x1" ; then
51689         COND_DEPS_TRACKING_1=""
51690     fi
51691
51692     COND_GCC_PCH_1="#"
51693     if test "x$GCC_PCH" = "x1" ; then
51694         COND_GCC_PCH_1=""
51695     fi
51696
51697     COND_ICC_PCH_1="#"
51698     if test "x$ICC_PCH" = "x1" ; then
51699         COND_ICC_PCH_1=""
51700     fi
51701
51702     COND_MONOLITHIC_0="#"
51703     if test "x$MONOLITHIC" = "x0" ; then
51704         COND_MONOLITHIC_0=""
51705     fi
51706
51707     COND_MONOLITHIC_0_SHARED_0="#"
51708     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51709         COND_MONOLITHIC_0_SHARED_0=""
51710     fi
51711
51712     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51713     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51714         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51715     fi
51716
51717     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51718     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51719         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51720     fi
51721
51722     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51723     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51724         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51725     fi
51726
51727     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51728     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51729         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51730     fi
51731
51732     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51733     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51734         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51735     fi
51736
51737     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
51738     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51739         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
51740     fi
51741
51742     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
51743     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51744         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
51745     fi
51746
51747     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51748     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51749         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51750     fi
51751
51752     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51753     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51754         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51755     fi
51756
51757     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51758     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51759         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51760     fi
51761
51762     COND_MONOLITHIC_0_SHARED_1="#"
51763     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51764         COND_MONOLITHIC_0_SHARED_1=""
51765     fi
51766
51767     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51768     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51769         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51770     fi
51771
51772     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51773     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51774         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51775     fi
51776
51777     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51778     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51779         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51780     fi
51781
51782     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51783     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51784         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51785     fi
51786
51787     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51788     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51789         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51790     fi
51791
51792     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
51793     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
51794         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
51795     fi
51796
51797     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
51798     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
51799         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
51800     fi
51801
51802     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51803     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51804         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51805     fi
51806
51807     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51808     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51809         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51810     fi
51811
51812     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51813     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51814         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51815     fi
51816
51817     COND_MONOLITHIC_0_USE_AUI_1="#"
51818     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51819         COND_MONOLITHIC_0_USE_AUI_1=""
51820     fi
51821
51822     COND_MONOLITHIC_0_USE_GUI_1="#"
51823     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51824         COND_MONOLITHIC_0_USE_GUI_1=""
51825     fi
51826
51827     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51828     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51829         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51830     fi
51831
51832     COND_MONOLITHIC_0_USE_HTML_1="#"
51833     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51834         COND_MONOLITHIC_0_USE_HTML_1=""
51835     fi
51836
51837     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51838     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51839         COND_MONOLITHIC_0_USE_MEDIA_1=""
51840     fi
51841
51842     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
51843     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51844         COND_MONOLITHIC_0_USE_PROPGRID_1=""
51845     fi
51846
51847     COND_MONOLITHIC_0_USE_QA_1="#"
51848     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51849         COND_MONOLITHIC_0_USE_QA_1=""
51850     fi
51851
51852     COND_MONOLITHIC_0_USE_RIBBON_1="#"
51853     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51854         COND_MONOLITHIC_0_USE_RIBBON_1=""
51855     fi
51856
51857     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51858     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51859         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51860     fi
51861
51862     COND_MONOLITHIC_0_USE_STC_1="#"
51863     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51864         COND_MONOLITHIC_0_USE_STC_1=""
51865     fi
51866
51867     COND_MONOLITHIC_0_USE_XRC_1="#"
51868     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51869         COND_MONOLITHIC_0_USE_XRC_1=""
51870     fi
51871
51872     COND_MONOLITHIC_1="#"
51873     if test "x$MONOLITHIC" = "x1" ; then
51874         COND_MONOLITHIC_1=""
51875     fi
51876
51877     COND_MONOLITHIC_1_SHARED_0="#"
51878     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51879         COND_MONOLITHIC_1_SHARED_0=""
51880     fi
51881
51882     COND_MONOLITHIC_1_SHARED_1="#"
51883     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51884         COND_MONOLITHIC_1_SHARED_1=""
51885     fi
51886
51887     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51888     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51889         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51890     fi
51891
51892     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51893     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51894         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51895     fi
51896
51897     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51898     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51899         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51900     fi
51901
51902     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51903     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51904         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51905     fi
51906
51907     COND_PLATFORM_MACOSX_1="#"
51908     if test "x$PLATFORM_MACOSX" = "x1" ; then
51909         COND_PLATFORM_MACOSX_1=""
51910     fi
51911
51912     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
51913     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
51914         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
51915     fi
51916
51917     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
51918     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51919         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
51920     fi
51921
51922     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51923     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51924         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51925     fi
51926
51927     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
51928     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51929         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
51930     fi
51931
51932     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51933     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51934         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51935     fi
51936
51937     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
51938     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51939         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
51940     fi
51941
51942     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
51943     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
51944         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
51945     fi
51946
51947     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51948     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51949         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51950     fi
51951
51952     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51953     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51954         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51955     fi
51956
51957     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
51958     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51959         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
51960     fi
51961
51962     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51963     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51964         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51965     fi
51966
51967     COND_PLATFORM_MACOS_1="#"
51968     if test "x$PLATFORM_MACOS" = "x1" ; then
51969         COND_PLATFORM_MACOS_1=""
51970     fi
51971
51972     COND_PLATFORM_MAC_0="#"
51973     if test "x$PLATFORM_MAC" = "x0" ; then
51974         COND_PLATFORM_MAC_0=""
51975     fi
51976
51977     COND_PLATFORM_MAC_1="#"
51978     if test "x$PLATFORM_MAC" = "x1" ; then
51979         COND_PLATFORM_MAC_1=""
51980     fi
51981
51982     COND_PLATFORM_MSDOS_0="#"
51983     if test "x$PLATFORM_MSDOS" = "x0" ; then
51984         COND_PLATFORM_MSDOS_0=""
51985     fi
51986
51987     COND_PLATFORM_MSDOS_1="#"
51988     if test "x$PLATFORM_MSDOS" = "x1" ; then
51989         COND_PLATFORM_MSDOS_1=""
51990     fi
51991
51992     COND_PLATFORM_OS2_1="#"
51993     if test "x$PLATFORM_OS2" = "x1" ; then
51994         COND_PLATFORM_OS2_1=""
51995     fi
51996
51997     COND_PLATFORM_UNIX_0="#"
51998     if test "x$PLATFORM_UNIX" = "x0" ; then
51999         COND_PLATFORM_UNIX_0=""
52000     fi
52001
52002     COND_PLATFORM_UNIX_1="#"
52003     if test "x$PLATFORM_UNIX" = "x1" ; then
52004         COND_PLATFORM_UNIX_1=""
52005     fi
52006
52007     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52008     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52009         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52010     fi
52011
52012     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52013     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52014         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52015     fi
52016
52017     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52018     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52019         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52020     fi
52021
52022     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52023     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52024         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52025     fi
52026
52027     COND_PLATFORM_WIN32_0="#"
52028     if test "x$PLATFORM_WIN32" = "x0" ; then
52029         COND_PLATFORM_WIN32_0=""
52030     fi
52031
52032     COND_PLATFORM_WIN32_1="#"
52033     if test "x$PLATFORM_WIN32" = "x1" ; then
52034         COND_PLATFORM_WIN32_1=""
52035     fi
52036
52037     COND_PLATFORM_WIN32_1_SHARED_0="#"
52038     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52039         COND_PLATFORM_WIN32_1_SHARED_0=""
52040     fi
52041
52042     COND_SHARED_0="#"
52043     if test "x$SHARED" = "x0" ; then
52044         COND_SHARED_0=""
52045     fi
52046
52047     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52048     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52049         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52050     fi
52051
52052     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52053     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52054         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52055     fi
52056
52057     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52058     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52059         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52060     fi
52061
52062     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52063     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52064         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52065     fi
52066
52067     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52068     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52069         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52070     fi
52071
52072     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52073     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52074         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52075     fi
52076
52077     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52078     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52079         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52080     fi
52081
52082     COND_SHARED_0_USE_STC_1="#"
52083     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52084         COND_SHARED_0_USE_STC_1=""
52085     fi
52086
52087     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52088     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52089         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52090     fi
52091
52092     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52093     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52094         COND_SHARED_0_wxUSE_REGEX_builtin=""
52095     fi
52096
52097     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52098     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52099         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52100     fi
52101
52102     COND_SHARED_1="#"
52103     if test "x$SHARED" = "x1" ; then
52104         COND_SHARED_1=""
52105     fi
52106
52107     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52108     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52109         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52110     fi
52111
52112     COND_TOOLKIT_="#"
52113     if test "x$TOOLKIT" = "x" ; then
52114         COND_TOOLKIT_=""
52115     fi
52116
52117     COND_TOOLKIT_COCOA="#"
52118     if test "x$TOOLKIT" = "xCOCOA" ; then
52119         COND_TOOLKIT_COCOA=""
52120     fi
52121
52122     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52123     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52124         COND_TOOLKIT_COCOA_USE_GUI_1=""
52125     fi
52126
52127     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52128     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52129         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52130     fi
52131
52132     COND_TOOLKIT_DFB="#"
52133     if test "x$TOOLKIT" = "xDFB" ; then
52134         COND_TOOLKIT_DFB=""
52135     fi
52136
52137     COND_TOOLKIT_DFB_USE_GUI_1="#"
52138     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52139         COND_TOOLKIT_DFB_USE_GUI_1=""
52140     fi
52141
52142     COND_TOOLKIT_GTK="#"
52143     if test "x$TOOLKIT" = "xGTK" ; then
52144         COND_TOOLKIT_GTK=""
52145     fi
52146
52147     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52148     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52149         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52150     fi
52151
52152     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52153     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52154         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52155     fi
52156
52157     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52158     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52159         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52160     fi
52161
52162     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52163     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52164         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52165     fi
52166
52167     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52168     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52169         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52170     fi
52171
52172     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52173     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52174         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52175     fi
52176
52177     COND_TOOLKIT_GTK_USE_GUI_1="#"
52178     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52179         COND_TOOLKIT_GTK_USE_GUI_1=""
52180     fi
52181
52182     COND_TOOLKIT_MAC="#"
52183     if test "x$TOOLKIT" = "xMAC" ; then
52184         COND_TOOLKIT_MAC=""
52185     fi
52186
52187     COND_TOOLKIT_MGL="#"
52188     if test "x$TOOLKIT" = "xMGL" ; then
52189         COND_TOOLKIT_MGL=""
52190     fi
52191
52192     COND_TOOLKIT_MGL_USE_GUI_1="#"
52193     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52194         COND_TOOLKIT_MGL_USE_GUI_1=""
52195     fi
52196
52197     COND_TOOLKIT_MOTIF="#"
52198     if test "x$TOOLKIT" = "xMOTIF" ; then
52199         COND_TOOLKIT_MOTIF=""
52200     fi
52201
52202     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52203     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52204         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52205     fi
52206
52207     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52208     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52209         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52210     fi
52211
52212     COND_TOOLKIT_MSW="#"
52213     if test "x$TOOLKIT" = "xMSW" ; then
52214         COND_TOOLKIT_MSW=""
52215     fi
52216
52217     COND_TOOLKIT_MSW_USE_GUI_1="#"
52218     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52219         COND_TOOLKIT_MSW_USE_GUI_1=""
52220     fi
52221
52222     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52223     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52224         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52225     fi
52226
52227     COND_TOOLKIT_MSW_WXUNIV_0="#"
52228     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52229         COND_TOOLKIT_MSW_WXUNIV_0=""
52230     fi
52231
52232     COND_TOOLKIT_OSX_CARBON="#"
52233     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52234         COND_TOOLKIT_OSX_CARBON=""
52235     fi
52236
52237     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52238     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52239         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52240     fi
52241
52242     COND_TOOLKIT_OSX_COCOA="#"
52243     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52244         COND_TOOLKIT_OSX_COCOA=""
52245     fi
52246
52247     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52248     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52249         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52250     fi
52251
52252     COND_TOOLKIT_OSX_IPHONE="#"
52253     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52254         COND_TOOLKIT_OSX_IPHONE=""
52255     fi
52256
52257     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52258     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52259         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52260     fi
52261
52262     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52263     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52264         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52265     fi
52266
52267     COND_TOOLKIT_PM="#"
52268     if test "x$TOOLKIT" = "xPM" ; then
52269         COND_TOOLKIT_PM=""
52270     fi
52271
52272     COND_TOOLKIT_PM_USE_GUI_1="#"
52273     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52274         COND_TOOLKIT_PM_USE_GUI_1=""
52275     fi
52276
52277     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52278     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52279         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52280     fi
52281
52282     COND_TOOLKIT_WINCE="#"
52283     if test "x$TOOLKIT" = "xWINCE" ; then
52284         COND_TOOLKIT_WINCE=""
52285     fi
52286
52287     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52288     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52289         COND_TOOLKIT_WINCE_USE_GUI_1=""
52290     fi
52291
52292     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52293     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52294         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52295     fi
52296
52297     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52298     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52299         COND_TOOLKIT_WINCE_WXUNIV_0=""
52300     fi
52301
52302     COND_TOOLKIT_X11="#"
52303     if test "x$TOOLKIT" = "xX11" ; then
52304         COND_TOOLKIT_X11=""
52305     fi
52306
52307     COND_TOOLKIT_X11_USE_GUI_1="#"
52308     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52309         COND_TOOLKIT_X11_USE_GUI_1=""
52310     fi
52311
52312     COND_UNICODE_1="#"
52313     if test "x$UNICODE" = "x1" ; then
52314         COND_UNICODE_1=""
52315     fi
52316
52317     COND_USE_CAIRO_1="#"
52318     if test "x$USE_CAIRO" = "x1" ; then
52319         COND_USE_CAIRO_1=""
52320     fi
52321
52322     COND_USE_EXCEPTIONS_0="#"
52323     if test "x$USE_EXCEPTIONS" = "x0" ; then
52324         COND_USE_EXCEPTIONS_0=""
52325     fi
52326
52327     COND_USE_EXCEPTIONS_1="#"
52328     if test "x$USE_EXCEPTIONS" = "x1" ; then
52329         COND_USE_EXCEPTIONS_1=""
52330     fi
52331
52332     COND_USE_GUI_0="#"
52333     if test "x$USE_GUI" = "x0" ; then
52334         COND_USE_GUI_0=""
52335     fi
52336
52337     COND_USE_GUI_1="#"
52338     if test "x$USE_GUI" = "x1" ; then
52339         COND_USE_GUI_1=""
52340     fi
52341
52342     COND_USE_GUI_1_USE_OPENGL_1="#"
52343     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52344         COND_USE_GUI_1_USE_OPENGL_1=""
52345     fi
52346
52347     COND_USE_GUI_1_WXUNIV_0="#"
52348     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52349         COND_USE_GUI_1_WXUNIV_0=""
52350     fi
52351
52352     COND_USE_GUI_1_WXUNIV_1="#"
52353     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52354         COND_USE_GUI_1_WXUNIV_1=""
52355     fi
52356
52357     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52358     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52359         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52360     fi
52361
52362     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52363     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52364         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52365     fi
52366
52367     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52368     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52369         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52370     fi
52371
52372     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52373     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52374         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52375     fi
52376
52377     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52378     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52379         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52380     fi
52381
52382     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52383     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52384         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52385     fi
52386
52387     COND_USE_OPENGL_1="#"
52388     if test "x$USE_OPENGL" = "x1" ; then
52389         COND_USE_OPENGL_1=""
52390     fi
52391
52392     COND_USE_PCH_1="#"
52393     if test "x$USE_PCH" = "x1" ; then
52394         COND_USE_PCH_1=""
52395     fi
52396
52397     COND_USE_PLUGINS_0="#"
52398     if test "x$USE_PLUGINS" = "x0" ; then
52399         COND_USE_PLUGINS_0=""
52400     fi
52401
52402     COND_USE_RTTI_0="#"
52403     if test "x$USE_RTTI" = "x0" ; then
52404         COND_USE_RTTI_0=""
52405     fi
52406
52407     COND_USE_RTTI_1="#"
52408     if test "x$USE_RTTI" = "x1" ; then
52409         COND_USE_RTTI_1=""
52410     fi
52411
52412     COND_USE_SOTWOSYMLINKS_1="#"
52413     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52414         COND_USE_SOTWOSYMLINKS_1=""
52415     fi
52416
52417     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52418     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52419         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52420     fi
52421
52422     COND_USE_SOVERLINUX_1="#"
52423     if test "x$USE_SOVERLINUX" = "x1" ; then
52424         COND_USE_SOVERLINUX_1=""
52425     fi
52426
52427     COND_USE_SOVERSION_0="#"
52428     if test "x$USE_SOVERSION" = "x0" ; then
52429         COND_USE_SOVERSION_0=""
52430     fi
52431
52432     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52433     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52434         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52435     fi
52436
52437     COND_USE_SOVERSOLARIS_1="#"
52438     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52439         COND_USE_SOVERSOLARIS_1=""
52440     fi
52441
52442     COND_USE_STC_1="#"
52443     if test "x$USE_STC" = "x1" ; then
52444         COND_USE_STC_1=""
52445     fi
52446
52447     COND_USE_THREADS_0="#"
52448     if test "x$USE_THREADS" = "x0" ; then
52449         COND_USE_THREADS_0=""
52450     fi
52451
52452     COND_USE_THREADS_1="#"
52453     if test "x$USE_THREADS" = "x1" ; then
52454         COND_USE_THREADS_1=""
52455     fi
52456
52457     COND_USE_XRC_1="#"
52458     if test "x$USE_XRC" = "x1" ; then
52459         COND_USE_XRC_1=""
52460     fi
52461
52462     COND_WINDOWS_IMPLIB_1="#"
52463     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52464         COND_WINDOWS_IMPLIB_1=""
52465     fi
52466
52467     COND_WITH_PLUGIN_SDL_1="#"
52468     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52469         COND_WITH_PLUGIN_SDL_1=""
52470     fi
52471
52472     COND_WXUNIV_0="#"
52473     if test "x$WXUNIV" = "x0" ; then
52474         COND_WXUNIV_0=""
52475     fi
52476
52477     COND_WXUNIV_1="#"
52478     if test "x$WXUNIV" = "x1" ; then
52479         COND_WXUNIV_1=""
52480     fi
52481
52482     COND_WXUSE_EXPAT_BUILTIN="#"
52483     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52484         COND_WXUSE_EXPAT_BUILTIN=""
52485     fi
52486
52487     COND_WXUSE_LIBJPEG_BUILTIN="#"
52488     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52489         COND_WXUSE_LIBJPEG_BUILTIN=""
52490     fi
52491
52492     COND_WXUSE_LIBPNG_BUILTIN="#"
52493     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52494         COND_WXUSE_LIBPNG_BUILTIN=""
52495     fi
52496
52497     COND_WXUSE_LIBTIFF_BUILTIN="#"
52498     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52499         COND_WXUSE_LIBTIFF_BUILTIN=""
52500     fi
52501
52502     COND_WXUSE_REGEX_BUILTIN="#"
52503     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52504         COND_WXUSE_REGEX_BUILTIN=""
52505     fi
52506
52507     COND_WXUSE_ZLIB_BUILTIN="#"
52508     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52509         COND_WXUSE_ZLIB_BUILTIN=""
52510     fi
52511
52512     COND_wxUSE_EXPAT_builtin="#"
52513     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52514         COND_wxUSE_EXPAT_builtin=""
52515     fi
52516
52517     COND_wxUSE_LIBJPEG_builtin="#"
52518     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52519         COND_wxUSE_LIBJPEG_builtin=""
52520     fi
52521
52522     COND_wxUSE_LIBPNG_builtin="#"
52523     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52524         COND_wxUSE_LIBPNG_builtin=""
52525     fi
52526
52527     COND_wxUSE_LIBTIFF_builtin="#"
52528     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52529         COND_wxUSE_LIBTIFF_builtin=""
52530     fi
52531
52532     COND_wxUSE_REGEX_builtin="#"
52533     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52534         COND_wxUSE_REGEX_builtin=""
52535     fi
52536
52537     COND_wxUSE_ZLIB_builtin="#"
52538     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52539         COND_wxUSE_ZLIB_builtin=""
52540     fi
52541
52542
52543
52544     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52545         { { 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
52546 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;}
52547    { (exit 1); exit 1; }; }
52548     fi
52549
52550     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52551         { { 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
52552 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;}
52553    { (exit 1); exit 1; }; }
52554     fi
52555
52556
52557 case ${INSTALL} in
52558   /* ) # Absolute
52559      ;;
52560   ?:* ) # Drive letter, considered as absolute.
52561      ;;
52562   *)
52563      INSTALL=`pwd`/${INSTALL} ;;
52564 esac
52565
52566 if test "$wxUSE_GUI" = "yes"; then
52567
52568 if test "$wxUSE_MSW" = 1 ; then
52569     if test "x$WINDRES" = "x"; then
52570         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52571 echo "$as_me: error: Required windres program not found" >&2;}
52572    { (exit 1); exit 1; }; }
52573     fi
52574
52575     RESCOMP="$WINDRES"
52576 fi
52577
52578 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
52579             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52580     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52581
52582         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52583
52584     # Extract the first word of "DeRez", so it can be a program name with args.
52585 set dummy DeRez; ac_word=$2
52586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52588 if test "${ac_cv_prog_DEREZ+set}" = set; then
52589   echo $ECHO_N "(cached) $ECHO_C" >&6
52590 else
52591   if test -n "$DEREZ"; then
52592   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52593 else
52594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52595 for as_dir in $PATH
52596 do
52597   IFS=$as_save_IFS
52598   test -z "$as_dir" && as_dir=.
52599   for ac_exec_ext in '' $ac_executable_extensions; do
52600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52601     ac_cv_prog_DEREZ="DeRez"
52602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52603     break 2
52604   fi
52605 done
52606 done
52607 IFS=$as_save_IFS
52608
52609   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52610 fi
52611 fi
52612 DEREZ=$ac_cv_prog_DEREZ
52613 if test -n "$DEREZ"; then
52614   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52615 echo "${ECHO_T}$DEREZ" >&6; }
52616 else
52617   { echo "$as_me:$LINENO: result: no" >&5
52618 echo "${ECHO_T}no" >&6; }
52619 fi
52620
52621
52622
52623     MACSETFILE="\$(SETFILE)"
52624
52625             if test "$wxUSE_OSX_CARBON" = 1; then
52626         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52627         RESCOMP="$REZ"
52628         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52629     else
52630         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52631         RESCOMP="cat /dev/null \| $REZ"
52632         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52633     fi
52634
52635 else
52636         MACSETFILE="@true"
52637
52638     if test "$wxUSE_PM" = 1; then
52639         RESCOMP="emxbind"
52640         WXCONFIG_RESFLAGS="-ep"
52641
52642                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52643     else
52644         POSTLINK_COMMAND="@true"
52645     fi
52646 fi
52647
52648 fi
52649
52650
52651 if test $GCC_PCH = 1
52652 then
52653     if test "$wx_cv_gcc_pch_bug" = yes; then
52654         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52655 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52656         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52657 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52658         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52659 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52660     fi
52661
52662     # Our WX_PRECOMP flag does not make sense for any language except C++ because
52663     # the headers that benefit from precompilation are mostly C++ headers.
52664     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52665     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
52666     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52667 fi
52668
52669
52670 if test "$wxUSE_MAC" = 1 ; then
52671     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52672         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52673         mv temp bk-deps
52674         chmod +x bk-deps
52675     fi
52676 fi
52677
52678 if test "$wxUSE_SHARED" = "yes"; then
52679                 case "${host}" in
52680       *-pc-os2_emx | *-pc-os2-emx )
52681         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52682         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52683         cp -p ${srcdir}/src/os2/dllnames.sh .
52684         cp -p ${srcdir}/src/os2/dllar.sh .
52685       ;;
52686     esac
52687 fi
52688 if test "$wxUSE_OMF" = "yes"; then
52689     case "${host}" in
52690       *-pc-os2_emx | *-pc-os2-emx )
52691         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52692         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52693         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52694       ;;
52695     esac
52696 fi
52697
52698 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52699
52700
52701 case "${host}" in
52702     *-*-solaris2* )
52703                         if test "$GCC" = yes; then
52704             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52705             LIBS=`echo $LIBS | sed 's/-mt//'`
52706             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52707         fi
52708         ;;
52709
52710     *-*-linux* )
52711                         if test "x$SUNCXX" = xyes; then
52712             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52713             LIBS=`echo $LIBS | sed 's/-pthread//'`
52714             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52715         fi
52716         ;;
52717 esac
52718
52719 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52720 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52721 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
52722 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
52723
52724 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52725
52726
52727
52728
52729
52730
52731
52732
52733
52734
52735
52736
52737
52738
52739
52740
52741
52742
52743
52744
52745
52746
52747
52748
52749
52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
52761
52762
52763
52764
52765
52766
52767
52768
52769
52770
52771
52772
52773
52774
52775
52776
52777
52778
52779
52780
52781
52782
52783
52784
52785 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52786 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52787 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52788 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52789   echo $ECHO_N "(cached) $ECHO_C" >&6
52790 else
52791   cat >conftest.make <<\_ACEOF
52792 SHELL = /bin/sh
52793 all:
52794         @echo '@@@%%%=$(MAKE)=@@@%%%'
52795 _ACEOF
52796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52798   *@@@%%%=?*=@@@%%%*)
52799     eval ac_cv_prog_make_${ac_make}_set=yes;;
52800   *)
52801     eval ac_cv_prog_make_${ac_make}_set=no;;
52802 esac
52803 rm -f conftest.make
52804 fi
52805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52806   { echo "$as_me:$LINENO: result: yes" >&5
52807 echo "${ECHO_T}yes" >&6; }
52808   SET_MAKE=
52809 else
52810   { echo "$as_me:$LINENO: result: no" >&5
52811 echo "${ECHO_T}no" >&6; }
52812   SET_MAKE="MAKE=${MAKE-make}"
52813 fi
52814
52815
52816
52817 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52818
52819
52820 if test "$USE_WIN32" = 1; then
52821     ac_config_commands="$ac_config_commands rcdefs.h"
52822
52823 fi
52824
52825 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52826
52827
52828 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52829
52830
52831 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
52832
52833
52834 if test "$wx_cv_version_script" = "yes"; then
52835     ac_config_files="$ac_config_files version-script"
52836
52837 fi
52838 ac_config_files="$ac_config_files Makefile"
52839
52840
52841 ac_config_commands="$ac_config_commands wx-config"
52842
52843
52844
52845 if test "$wxWITH_SUBDIRS" != "no"; then
52846 if test "$wxUSE_GUI" = "yes"; then
52847     SUBDIRS="samples demos utils"
52848 else
52849             SUBDIRS="samples utils"
52850 fi
52851
52852
52853
52854 # Check whether --with-cppunit-prefix was given.
52855 if test "${with_cppunit_prefix+set}" = set; then
52856   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52857 else
52858   cppunit_config_prefix=""
52859 fi
52860
52861
52862 # Check whether --with-cppunit-exec-prefix was given.
52863 if test "${with_cppunit_exec_prefix+set}" = set; then
52864   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52865 else
52866   cppunit_config_exec_prefix=""
52867 fi
52868
52869
52870   if test x$cppunit_config_exec_prefix != x ; then
52871      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52872      if test x${CPPUNIT_CONFIG+set} != xset ; then
52873         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52874      fi
52875   fi
52876   if test x$cppunit_config_prefix != x ; then
52877      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52878      if test x${CPPUNIT_CONFIG+set} != xset ; then
52879         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52880      fi
52881   fi
52882
52883   # Extract the first word of "cppunit-config", so it can be a program name with args.
52884 set dummy cppunit-config; ac_word=$2
52885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52887 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52888   echo $ECHO_N "(cached) $ECHO_C" >&6
52889 else
52890   case $CPPUNIT_CONFIG in
52891   [\\/]* | ?:[\\/]*)
52892   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52893   ;;
52894   *)
52895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52896 for as_dir in $PATH
52897 do
52898   IFS=$as_save_IFS
52899   test -z "$as_dir" && as_dir=.
52900   for ac_exec_ext in '' $ac_executable_extensions; do
52901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52902     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52904     break 2
52905   fi
52906 done
52907 done
52908 IFS=$as_save_IFS
52909
52910   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52911   ;;
52912 esac
52913 fi
52914 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52915 if test -n "$CPPUNIT_CONFIG"; then
52916   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52917 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52918 else
52919   { echo "$as_me:$LINENO: result: no" >&5
52920 echo "${ECHO_T}no" >&6; }
52921 fi
52922
52923
52924   cppunit_version_min=1.8.0
52925
52926   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52927 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52928   no_cppunit=""
52929   if test "$CPPUNIT_CONFIG" = "no" ; then
52930     { echo "$as_me:$LINENO: result: no" >&5
52931 echo "${ECHO_T}no" >&6; }
52932     no_cppunit=yes
52933   else
52934     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52935     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52936     cppunit_version=`$CPPUNIT_CONFIG --version`
52937
52938     cppunit_major_version=`echo $cppunit_version | \
52939            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52940     cppunit_minor_version=`echo $cppunit_version | \
52941            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52942     cppunit_micro_version=`echo $cppunit_version | \
52943            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52944
52945     cppunit_major_min=`echo $cppunit_version_min | \
52946            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52947     cppunit_minor_min=`echo $cppunit_version_min | \
52948            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52949     cppunit_micro_min=`echo $cppunit_version_min | \
52950            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52951
52952     cppunit_version_proper=`expr \
52953         $cppunit_major_version \> $cppunit_major_min \| \
52954         $cppunit_major_version \= $cppunit_major_min \& \
52955         $cppunit_minor_version \> $cppunit_minor_min \| \
52956         $cppunit_major_version \= $cppunit_major_min \& \
52957         $cppunit_minor_version \= $cppunit_minor_min \& \
52958         $cppunit_micro_version \>= $cppunit_micro_min `
52959
52960     if test "$cppunit_version_proper" = "1" ; then
52961       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52962 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52963     else
52964       { echo "$as_me:$LINENO: result: no" >&5
52965 echo "${ECHO_T}no" >&6; }
52966       no_cppunit=yes
52967     fi
52968   fi
52969
52970   if test "x$no_cppunit" = x ; then
52971      SUBDIRS="$SUBDIRS tests"
52972   else
52973      CPPUNIT_CFLAGS=""
52974      CPPUNIT_LIBS=""
52975      :
52976   fi
52977
52978
52979
52980
52981
52982 for subdir in $SUBDIRS; do
52983     if test -d ${srcdir}/${subdir} ; then
52984         if test "$wxUSE_GUI" = "yes"; then
52985             if test ${subdir} = "samples"; then
52986                                                 makefiles="samples/Makefile.in $makefiles"
52987                 for sample in $SAMPLES_SUBDIRS; do
52988                     if test -d $srcdir/samples/$sample; then
52989                         makefiles="samples/$sample/Makefile.in $makefiles"
52990                     fi
52991                 done
52992             else
52993                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
52994                 eval "disabled=\$$disabled_var"
52995                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52996                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52997             fi
52998         else
52999                                     if test ${subdir} = "samples"; then
53000                                                 makefiles="samples/Makefile.in $makefiles"
53001                 for sample in `echo $SAMPLES_SUBDIRS`; do
53002                     if test -d $srcdir/samples/$sample; then
53003                         makefiles="samples/$sample/Makefile.in $makefiles"
53004                     fi
53005                 done
53006             elif test ${subdir} = "utils"; then
53007                 makefiles=""
53008                 for util in ifacecheck ; do
53009                     if test -d $srcdir/utils/$util ; then
53010                         makefiles="utils/$util/src/Makefile.in \
53011                                    $makefiles"
53012                     fi
53013                 done
53014             else
53015                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53016             fi
53017         fi
53018
53019         for mkin in $makefiles ; do
53020             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53021             ac_config_files="$ac_config_files $mk"
53022
53023         done
53024     fi
53025 done
53026 fi
53027 cat >confcache <<\_ACEOF
53028 # This file is a shell script that caches the results of configure
53029 # tests run on this system so they can be shared between configure
53030 # scripts and configure runs, see configure's option --config-cache.
53031 # It is not useful on other systems.  If it contains results you don't
53032 # want to keep, you may remove or edit it.
53033 #
53034 # config.status only pays attention to the cache file if you give it
53035 # the --recheck option to rerun configure.
53036 #
53037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53039 # following values.
53040
53041 _ACEOF
53042
53043 # The following way of writing the cache mishandles newlines in values,
53044 # but we know of no workaround that is simple, portable, and efficient.
53045 # So, we kill variables containing newlines.
53046 # Ultrix sh set writes to stderr and can't be redirected directly,
53047 # and sets the high bit in the cache file unless we assign to the vars.
53048 (
53049   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53050     eval ac_val=\$$ac_var
53051     case $ac_val in #(
53052     *${as_nl}*)
53053       case $ac_var in #(
53054       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53055 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53056       esac
53057       case $ac_var in #(
53058       _ | IFS | as_nl) ;; #(
53059       *) $as_unset $ac_var ;;
53060       esac ;;
53061     esac
53062   done
53063
53064   (set) 2>&1 |
53065     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53066     *${as_nl}ac_space=\ *)
53067       # `set' does not quote correctly, so add quotes (double-quote
53068       # substitution turns \\\\ into \\, and sed turns \\ into \).
53069       sed -n \
53070         "s/'/'\\\\''/g;
53071           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53072       ;; #(
53073     *)
53074       # `set' quotes correctly as required by POSIX, so do not add quotes.
53075       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53076       ;;
53077     esac |
53078     sort
53079 ) |
53080   sed '
53081      /^ac_cv_env_/b end
53082      t clear
53083      :clear
53084      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53085      t end
53086      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53087      :end' >>confcache
53088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53089   if test -w "$cache_file"; then
53090     test "x$cache_file" != "x/dev/null" &&
53091       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53092 echo "$as_me: updating cache $cache_file" >&6;}
53093     cat confcache >$cache_file
53094   else
53095     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53096 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53097   fi
53098 fi
53099 rm -f confcache
53100
53101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53102 # Let make expand exec_prefix.
53103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53104
53105 DEFS=-DHAVE_CONFIG_H
53106
53107 ac_libobjs=
53108 ac_ltlibobjs=
53109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53110   # 1. Remove the extension, and $U if already installed.
53111   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53112   ac_i=`echo "$ac_i" | sed "$ac_script"`
53113   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53114   #    will be set to the directory where LIBOBJS objects are built.
53115   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53116   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53117 done
53118 LIBOBJS=$ac_libobjs
53119
53120 LTLIBOBJS=$ac_ltlibobjs
53121
53122
53123
53124 : ${CONFIG_STATUS=./config.status}
53125 ac_clean_files_save=$ac_clean_files
53126 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53127 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53128 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53129 cat >$CONFIG_STATUS <<_ACEOF
53130 #! $SHELL
53131 # Generated by $as_me.
53132 # Run this file to recreate the current configuration.
53133 # Compiler output produced by configure, useful for debugging
53134 # configure, is in config.log if it exists.
53135
53136 debug=false
53137 ac_cs_recheck=false
53138 ac_cs_silent=false
53139 SHELL=\${CONFIG_SHELL-$SHELL}
53140 _ACEOF
53141
53142 cat >>$CONFIG_STATUS <<\_ACEOF
53143 ## --------------------- ##
53144 ## M4sh Initialization.  ##
53145 ## --------------------- ##
53146
53147 # Be more Bourne compatible
53148 DUALCASE=1; export DUALCASE # for MKS sh
53149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53150   emulate sh
53151   NULLCMD=:
53152   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53153   # is contrary to our usage.  Disable this feature.
53154   alias -g '${1+"$@"}'='"$@"'
53155   setopt NO_GLOB_SUBST
53156 else
53157   case `(set -o) 2>/dev/null` in
53158   *posix*) set -o posix ;;
53159 esac
53160
53161 fi
53162
53163
53164
53165
53166 # PATH needs CR
53167 # Avoid depending upon Character Ranges.
53168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53171 as_cr_digits='0123456789'
53172 as_cr_alnum=$as_cr_Letters$as_cr_digits
53173
53174 # The user is always right.
53175 if test "${PATH_SEPARATOR+set}" != set; then
53176   echo "#! /bin/sh" >conf$$.sh
53177   echo  "exit 0"   >>conf$$.sh
53178   chmod +x conf$$.sh
53179   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53180     PATH_SEPARATOR=';'
53181   else
53182     PATH_SEPARATOR=:
53183   fi
53184   rm -f conf$$.sh
53185 fi
53186
53187 # Support unset when possible.
53188 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53189   as_unset=unset
53190 else
53191   as_unset=false
53192 fi
53193
53194
53195 # IFS
53196 # We need space, tab and new line, in precisely that order.  Quoting is
53197 # there to prevent editors from complaining about space-tab.
53198 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53199 # splitting by setting IFS to empty value.)
53200 as_nl='
53201 '
53202 IFS=" ""        $as_nl"
53203
53204 # Find who we are.  Look in the path if we contain no directory separator.
53205 case $0 in
53206   *[\\/]* ) as_myself=$0 ;;
53207   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53208 for as_dir in $PATH
53209 do
53210   IFS=$as_save_IFS
53211   test -z "$as_dir" && as_dir=.
53212   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53213 done
53214 IFS=$as_save_IFS
53215
53216      ;;
53217 esac
53218 # We did not find ourselves, most probably we were run as `sh COMMAND'
53219 # in which case we are not to be found in the path.
53220 if test "x$as_myself" = x; then
53221   as_myself=$0
53222 fi
53223 if test ! -f "$as_myself"; then
53224   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53225   { (exit 1); exit 1; }
53226 fi
53227
53228 # Work around bugs in pre-3.0 UWIN ksh.
53229 for as_var in ENV MAIL MAILPATH
53230 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53231 done
53232 PS1='$ '
53233 PS2='> '
53234 PS4='+ '
53235
53236 # NLS nuisances.
53237 for as_var in \
53238   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53239   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53240   LC_TELEPHONE LC_TIME
53241 do
53242   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53243     eval $as_var=C; export $as_var
53244   else
53245     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53246   fi
53247 done
53248
53249 # Required to use basename.
53250 if expr a : '\(a\)' >/dev/null 2>&1 &&
53251    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53252   as_expr=expr
53253 else
53254   as_expr=false
53255 fi
53256
53257 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53258   as_basename=basename
53259 else
53260   as_basename=false
53261 fi
53262
53263
53264 # Name of the executable.
53265 as_me=`$as_basename -- "$0" ||
53266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53267          X"$0" : 'X\(//\)$' \| \
53268          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53269 echo X/"$0" |
53270     sed '/^.*\/\([^/][^/]*\)\/*$/{
53271             s//\1/
53272             q
53273           }
53274           /^X\/\(\/\/\)$/{
53275             s//\1/
53276             q
53277           }
53278           /^X\/\(\/\).*/{
53279             s//\1/
53280             q
53281           }
53282           s/.*/./; q'`
53283
53284 # CDPATH.
53285 $as_unset CDPATH
53286
53287
53288
53289   as_lineno_1=$LINENO
53290   as_lineno_2=$LINENO
53291   test "x$as_lineno_1" != "x$as_lineno_2" &&
53292   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53293
53294   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53295   # uniformly replaced by the line number.  The first 'sed' inserts a
53296   # line-number line after each line using $LINENO; the second 'sed'
53297   # does the real work.  The second script uses 'N' to pair each
53298   # line-number line with the line containing $LINENO, and appends
53299   # trailing '-' during substitution so that $LINENO is not a special
53300   # case at line end.
53301   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53302   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53303   # E. McMahon (1931-1989) for sed's syntax.  :-)
53304   sed -n '
53305     p
53306     /[$]LINENO/=
53307   ' <$as_myself |
53308     sed '
53309       s/[$]LINENO.*/&-/
53310       t lineno
53311       b
53312       :lineno
53313       N
53314       :loop
53315       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53316       t loop
53317       s/-\n.*//
53318     ' >$as_me.lineno &&
53319   chmod +x "$as_me.lineno" ||
53320     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53321    { (exit 1); exit 1; }; }
53322
53323   # Don't try to exec as it changes $[0], causing all sort of problems
53324   # (the dirname of $[0] is not the place where we might find the
53325   # original and so on.  Autoconf is especially sensitive to this).
53326   . "./$as_me.lineno"
53327   # Exit status is that of the last command.
53328   exit
53329 }
53330
53331
53332 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53333   as_dirname=dirname
53334 else
53335   as_dirname=false
53336 fi
53337
53338 ECHO_C= ECHO_N= ECHO_T=
53339 case `echo -n x` in
53340 -n*)
53341   case `echo 'x\c'` in
53342   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53343   *)   ECHO_C='\c';;
53344   esac;;
53345 *)
53346   ECHO_N='-n';;
53347 esac
53348
53349 if expr a : '\(a\)' >/dev/null 2>&1 &&
53350    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53351   as_expr=expr
53352 else
53353   as_expr=false
53354 fi
53355
53356 rm -f conf$$ conf$$.exe conf$$.file
53357 if test -d conf$$.dir; then
53358   rm -f conf$$.dir/conf$$.file
53359 else
53360   rm -f conf$$.dir
53361   mkdir conf$$.dir
53362 fi
53363 echo >conf$$.file
53364 if ln -s conf$$.file conf$$ 2>/dev/null; then
53365   as_ln_s='ln -s'
53366   # ... but there are two gotchas:
53367   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53368   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53369   # In both cases, we have to default to `cp -p'.
53370   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53371     as_ln_s='cp -p'
53372 elif ln conf$$.file conf$$ 2>/dev/null; then
53373   as_ln_s=ln
53374 else
53375   as_ln_s='cp -p'
53376 fi
53377 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53378 rmdir conf$$.dir 2>/dev/null
53379
53380 if mkdir -p . 2>/dev/null; then
53381   as_mkdir_p=:
53382 else
53383   test -d ./-p && rmdir ./-p
53384   as_mkdir_p=false
53385 fi
53386
53387 if test -x / >/dev/null 2>&1; then
53388   as_test_x='test -x'
53389 else
53390   if ls -dL / >/dev/null 2>&1; then
53391     as_ls_L_option=L
53392   else
53393     as_ls_L_option=
53394   fi
53395   as_test_x='
53396     eval sh -c '\''
53397       if test -d "$1"; then
53398         test -d "$1/.";
53399       else
53400         case $1 in
53401         -*)set "./$1";;
53402         esac;
53403         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53404         ???[sx]*):;;*)false;;esac;fi
53405     '\'' sh
53406   '
53407 fi
53408 as_executable_p=$as_test_x
53409
53410 # Sed expression to map a string onto a valid CPP name.
53411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53412
53413 # Sed expression to map a string onto a valid variable name.
53414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53415
53416
53417 exec 6>&1
53418
53419 # Save the log message, to keep $[0] and so on meaningful, and to
53420 # report actual input values of CONFIG_FILES etc. instead of their
53421 # values after options handling.
53422 ac_log="
53423 This file was extended by wxWidgets $as_me 2.9.2, which was
53424 generated by GNU Autoconf 2.61.  Invocation command line was
53425
53426   CONFIG_FILES    = $CONFIG_FILES
53427   CONFIG_HEADERS  = $CONFIG_HEADERS
53428   CONFIG_LINKS    = $CONFIG_LINKS
53429   CONFIG_COMMANDS = $CONFIG_COMMANDS
53430   $ $0 $@
53431
53432 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53433 "
53434
53435 _ACEOF
53436
53437 cat >>$CONFIG_STATUS <<_ACEOF
53438 # Files that config.status was made for.
53439 config_files="$ac_config_files"
53440 config_headers="$ac_config_headers"
53441 config_commands="$ac_config_commands"
53442
53443 _ACEOF
53444
53445 cat >>$CONFIG_STATUS <<\_ACEOF
53446 ac_cs_usage="\
53447 \`$as_me' instantiates files from templates according to the
53448 current configuration.
53449
53450 Usage: $0 [OPTIONS] [FILE]...
53451
53452   -h, --help       print this help, then exit
53453   -V, --version    print version number and configuration settings, then exit
53454   -q, --quiet      do not print progress messages
53455   -d, --debug      don't remove temporary files
53456       --recheck    update $as_me by reconfiguring in the same conditions
53457   --file=FILE[:TEMPLATE]
53458                    instantiate the configuration file FILE
53459   --header=FILE[:TEMPLATE]
53460                    instantiate the configuration header FILE
53461
53462 Configuration files:
53463 $config_files
53464
53465 Configuration headers:
53466 $config_headers
53467
53468 Configuration commands:
53469 $config_commands
53470
53471 Report bugs to <bug-autoconf@gnu.org>."
53472
53473 _ACEOF
53474 cat >>$CONFIG_STATUS <<_ACEOF
53475 ac_cs_version="\\
53476 wxWidgets config.status 2.9.2
53477 configured by $0, generated by GNU Autoconf 2.61,
53478   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53479
53480 Copyright (C) 2006 Free Software Foundation, Inc.
53481 This config.status script is free software; the Free Software Foundation
53482 gives unlimited permission to copy, distribute and modify it."
53483
53484 ac_pwd='$ac_pwd'
53485 srcdir='$srcdir'
53486 INSTALL='$INSTALL'
53487 _ACEOF
53488
53489 cat >>$CONFIG_STATUS <<\_ACEOF
53490 # If no file are specified by the user, then we need to provide default
53491 # value.  By we need to know if files were specified by the user.
53492 ac_need_defaults=:
53493 while test $# != 0
53494 do
53495   case $1 in
53496   --*=*)
53497     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53498     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53499     ac_shift=:
53500     ;;
53501   *)
53502     ac_option=$1
53503     ac_optarg=$2
53504     ac_shift=shift
53505     ;;
53506   esac
53507
53508   case $ac_option in
53509   # Handling of the options.
53510   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53511     ac_cs_recheck=: ;;
53512   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53513     echo "$ac_cs_version"; exit ;;
53514   --debug | --debu | --deb | --de | --d | -d )
53515     debug=: ;;
53516   --file | --fil | --fi | --f )
53517     $ac_shift
53518     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53519     ac_need_defaults=false;;
53520   --header | --heade | --head | --hea )
53521     $ac_shift
53522     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53523     ac_need_defaults=false;;
53524   --he | --h)
53525     # Conflict between --help and --header
53526     { echo "$as_me: error: ambiguous option: $1
53527 Try \`$0 --help' for more information." >&2
53528    { (exit 1); exit 1; }; };;
53529   --help | --hel | -h )
53530     echo "$ac_cs_usage"; exit ;;
53531   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53532   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53533     ac_cs_silent=: ;;
53534
53535   # This is an error.
53536   -*) { echo "$as_me: error: unrecognized option: $1
53537 Try \`$0 --help' for more information." >&2
53538    { (exit 1); exit 1; }; } ;;
53539
53540   *) ac_config_targets="$ac_config_targets $1"
53541      ac_need_defaults=false ;;
53542
53543   esac
53544   shift
53545 done
53546
53547 ac_configure_extra_args=
53548
53549 if $ac_cs_silent; then
53550   exec 6>/dev/null
53551   ac_configure_extra_args="$ac_configure_extra_args --silent"
53552 fi
53553
53554 _ACEOF
53555 cat >>$CONFIG_STATUS <<_ACEOF
53556 if \$ac_cs_recheck; then
53557   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53558   CONFIG_SHELL=$SHELL
53559   export CONFIG_SHELL
53560   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53561 fi
53562
53563 _ACEOF
53564 cat >>$CONFIG_STATUS <<\_ACEOF
53565 exec 5>>config.log
53566 {
53567   echo
53568   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53569 ## Running $as_me. ##
53570 _ASBOX
53571   echo "$ac_log"
53572 } >&5
53573
53574 _ACEOF
53575 cat >>$CONFIG_STATUS <<_ACEOF
53576 #
53577 # INIT-COMMANDS
53578 #
53579
53580             CPP="$CPP"
53581             infile="$srcdir/include/wx/msw/genrcdefs.h"
53582             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53583
53584
53585  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53586  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53587  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53588                      LN_S="${LN_S}"
53589
53590
53591 _ACEOF
53592
53593 cat >>$CONFIG_STATUS <<\_ACEOF
53594
53595 # Handling of arguments.
53596 for ac_config_target in $ac_config_targets
53597 do
53598   case $ac_config_target in
53599     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53600     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53601     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53602     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53603     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
53604     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53605     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53606     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53607     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53608
53609   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53610 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53611    { (exit 1); exit 1; }; };;
53612   esac
53613 done
53614
53615
53616 # If the user did not use the arguments to specify the items to instantiate,
53617 # then the envvar interface is used.  Set only those that are not.
53618 # We use the long form for the default assignment because of an extremely
53619 # bizarre bug on SunOS 4.1.3.
53620 if $ac_need_defaults; then
53621   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53622   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53623   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53624 fi
53625
53626 # Have a temporary directory for convenience.  Make it in the build tree
53627 # simply because there is no reason against having it here, and in addition,
53628 # creating and moving files from /tmp can sometimes cause problems.
53629 # Hook for its removal unless debugging.
53630 # Note that there is a small window in which the directory will not be cleaned:
53631 # after its creation but before its name has been assigned to `$tmp'.
53632 $debug ||
53633 {
53634   tmp=
53635   trap 'exit_status=$?
53636   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53637 ' 0
53638   trap '{ (exit 1); exit 1; }' 1 2 13 15
53639 }
53640 # Create a (secure) tmp directory for tmp files.
53641
53642 {
53643   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53644   test -n "$tmp" && test -d "$tmp"
53645 }  ||
53646 {
53647   tmp=./conf$$-$RANDOM
53648   (umask 077 && mkdir "$tmp")
53649 } ||
53650 {
53651    echo "$me: cannot create a temporary directory in ." >&2
53652    { (exit 1); exit 1; }
53653 }
53654
53655 #
53656 # Set up the sed scripts for CONFIG_FILES section.
53657 #
53658
53659 # No need to generate the scripts if there are no CONFIG_FILES.
53660 # This happens for instance when ./config.status config.h
53661 if test -n "$CONFIG_FILES"; then
53662
53663 _ACEOF
53664
53665
53666
53667 ac_delim='%!_!# '
53668 for ac_last_try in false false false false false :; do
53669   cat >conf$$subs.sed <<_ACEOF
53670 SHELL!$SHELL$ac_delim
53671 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53672 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53673 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53674 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53675 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53676 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53677 exec_prefix!$exec_prefix$ac_delim
53678 prefix!$prefix$ac_delim
53679 program_transform_name!$program_transform_name$ac_delim
53680 bindir!$bindir$ac_delim
53681 sbindir!$sbindir$ac_delim
53682 libexecdir!$libexecdir$ac_delim
53683 datarootdir!$datarootdir$ac_delim
53684 datadir!$datadir$ac_delim
53685 sysconfdir!$sysconfdir$ac_delim
53686 sharedstatedir!$sharedstatedir$ac_delim
53687 localstatedir!$localstatedir$ac_delim
53688 includedir!$includedir$ac_delim
53689 oldincludedir!$oldincludedir$ac_delim
53690 docdir!$docdir$ac_delim
53691 infodir!$infodir$ac_delim
53692 htmldir!$htmldir$ac_delim
53693 dvidir!$dvidir$ac_delim
53694 pdfdir!$pdfdir$ac_delim
53695 psdir!$psdir$ac_delim
53696 libdir!$libdir$ac_delim
53697 localedir!$localedir$ac_delim
53698 mandir!$mandir$ac_delim
53699 DEFS!$DEFS$ac_delim
53700 ECHO_C!$ECHO_C$ac_delim
53701 ECHO_N!$ECHO_N$ac_delim
53702 ECHO_T!$ECHO_T$ac_delim
53703 LIBS!$LIBS$ac_delim
53704 build_alias!$build_alias$ac_delim
53705 host_alias!$host_alias$ac_delim
53706 target_alias!$target_alias$ac_delim
53707 build!$build$ac_delim
53708 build_cpu!$build_cpu$ac_delim
53709 build_vendor!$build_vendor$ac_delim
53710 build_os!$build_os$ac_delim
53711 host!$host$ac_delim
53712 host_cpu!$host_cpu$ac_delim
53713 host_vendor!$host_vendor$ac_delim
53714 host_os!$host_os$ac_delim
53715 wx_top_builddir!$wx_top_builddir$ac_delim
53716 CC!$CC$ac_delim
53717 CFLAGS!$CFLAGS$ac_delim
53718 LDFLAGS!$LDFLAGS$ac_delim
53719 CPPFLAGS!$CPPFLAGS$ac_delim
53720 ac_ct_CC!$ac_ct_CC$ac_delim
53721 EXEEXT!$EXEEXT$ac_delim
53722 OBJEXT!$OBJEXT$ac_delim
53723 CPP!$CPP$ac_delim
53724 GREP!$GREP$ac_delim
53725 EGREP!$EGREP$ac_delim
53726 CXX!$CXX$ac_delim
53727 CXXFLAGS!$CXXFLAGS$ac_delim
53728 ac_ct_CXX!$ac_ct_CXX$ac_delim
53729 AR!$AR$ac_delim
53730 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
53731 CXXCPP!$CXXCPP$ac_delim
53732 subdirs!$subdirs$ac_delim
53733 PKG_CONFIG!$PKG_CONFIG$ac_delim
53734 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53735 GTK_LIBS!$GTK_LIBS$ac_delim
53736 GTK_CONFIG!$GTK_CONFIG$ac_delim
53737 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53738 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53739 XMKMF!$XMKMF$ac_delim
53740 X_CFLAGS!$X_CFLAGS$ac_delim
53741 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53742 X_LIBS!$X_LIBS$ac_delim
53743 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53744 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53745 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53746 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53747 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53748 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53749 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53750 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53751 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53752 LIBICONV!$LIBICONV$ac_delim
53753 GXX_VERSION!$GXX_VERSION$ac_delim
53754 SDL_CONFIG!$SDL_CONFIG$ac_delim
53755 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53756 SDL_LIBS!$SDL_LIBS$ac_delim
53757 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53758 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53759 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53760 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53761 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53762 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53763 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53764 HILDON_LIBS!$HILDON_LIBS$ac_delim
53765 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
53766 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
53767 _ACEOF
53768
53769   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53770     break
53771   elif $ac_last_try; then
53772     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53774    { (exit 1); exit 1; }; }
53775   else
53776     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53777   fi
53778 done
53779
53780 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53781 if test -n "$ac_eof"; then
53782   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53783   ac_eof=`expr $ac_eof + 1`
53784 fi
53785
53786 cat >>$CONFIG_STATUS <<_ACEOF
53787 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53789 _ACEOF
53790 sed '
53791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53792 s/^/s,@/; s/!/@,|#_!!_#|/
53793 :n
53794 t n
53795 s/'"$ac_delim"'$/,g/; t
53796 s/$/\\/; p
53797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53798 ' >>$CONFIG_STATUS <conf$$subs.sed
53799 rm -f conf$$subs.sed
53800 cat >>$CONFIG_STATUS <<_ACEOF
53801 CEOF$ac_eof
53802 _ACEOF
53803
53804
53805 ac_delim='%!_!# '
53806 for ac_last_try in false false false false false :; do
53807   cat >conf$$subs.sed <<_ACEOF
53808 PYTHON!$PYTHON$ac_delim
53809 COND_PYTHON!$COND_PYTHON$ac_delim
53810 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53811 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53812 GST_CFLAGS!$GST_CFLAGS$ac_delim
53813 GST_LIBS!$GST_LIBS$ac_delim
53814 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53815 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53816 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53817 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53818 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53819 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53820 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53821 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53822 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53823 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53824 VENDOR!$VENDOR$ac_delim
53825 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53826 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53827 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53828 WXUNIV!$WXUNIV$ac_delim
53829 MONOLITHIC!$MONOLITHIC$ac_delim
53830 USE_PLUGINS!$USE_PLUGINS$ac_delim
53831 CXXWARNINGS!$CXXWARNINGS$ac_delim
53832 EXTRALIBS!$EXTRALIBS$ac_delim
53833 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53834 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53835 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
53836 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53837 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53838 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53839 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
53840 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53841 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53842 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53843 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53844 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53845 UNICODE!$UNICODE$ac_delim
53846 DEBUG_INFO!$DEBUG_INFO$ac_delim
53847 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53848 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53849 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53850 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
53851 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
53852 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53853 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
53854 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53855 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53856 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53857 RANLIB!$RANLIB$ac_delim
53858 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53859 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53860 INSTALL_DATA!$INSTALL_DATA$ac_delim
53861 LN_S!$LN_S$ac_delim
53862 SET_MAKE!$SET_MAKE$ac_delim
53863 MAKE_SET!$MAKE_SET$ac_delim
53864 AROPTIONS!$AROPTIONS$ac_delim
53865 STRIP!$STRIP$ac_delim
53866 NM!$NM$ac_delim
53867 INSTALL_DIR!$INSTALL_DIR$ac_delim
53868 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53869 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53870 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53871 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53872 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53873 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53874 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53875 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53876 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53877 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53878 SO_SUFFIX!$SO_SUFFIX$ac_delim
53879 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53880 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53881 LIBPREFIX!$LIBPREFIX$ac_delim
53882 LIBEXT!$LIBEXT$ac_delim
53883 DLLPREFIX!$DLLPREFIX$ac_delim
53884 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53885 dlldir!$dlldir$ac_delim
53886 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53887 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53888 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53889 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53890 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53891 PIC_FLAG!$PIC_FLAG$ac_delim
53892 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53893 USE_SOVERSION!$USE_SOVERSION$ac_delim
53894 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53895 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53896 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53897 USE_MACVERSION!$USE_MACVERSION$ac_delim
53898 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
53899 SONAME_FLAG!$SONAME_FLAG$ac_delim
53900 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53901 BK_DEPS!$BK_DEPS$ac_delim
53902 WINDRES!$WINDRES$ac_delim
53903 REZ!$REZ$ac_delim
53904 SETFILE!$SETFILE$ac_delim
53905 _ACEOF
53906
53907   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53908     break
53909   elif $ac_last_try; then
53910     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53911 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53912    { (exit 1); exit 1; }; }
53913   else
53914     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53915   fi
53916 done
53917
53918 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53919 if test -n "$ac_eof"; then
53920   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53921   ac_eof=`expr $ac_eof + 1`
53922 fi
53923
53924 cat >>$CONFIG_STATUS <<_ACEOF
53925 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53927 _ACEOF
53928 sed '
53929 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53930 s/^/s,@/; s/!/@,|#_!!_#|/
53931 :n
53932 t n
53933 s/'"$ac_delim"'$/,g/; t
53934 s/$/\\/; p
53935 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53936 ' >>$CONFIG_STATUS <conf$$subs.sed
53937 rm -f conf$$subs.sed
53938 cat >>$CONFIG_STATUS <<_ACEOF
53939 CEOF$ac_eof
53940 _ACEOF
53941
53942
53943 ac_delim='%!_!# '
53944 for ac_last_try in false false false false false :; do
53945   cat >conf$$subs.sed <<_ACEOF
53946 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
53947 GCC_PCH!$GCC_PCH$ac_delim
53948 ICC_PCH!$ICC_PCH$ac_delim
53949 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
53950 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
53951 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53952 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53953 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53954 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53955 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53956 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53957 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53958 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53959 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53960 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53961 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
53962 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
53963 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
53964 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
53965 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
53966 COND_BUILD_release!$COND_BUILD_release$ac_delim
53967 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
53968 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
53969 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
53970 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
53971 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53972 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53973 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53974 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53975 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53976 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53977 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53978 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53979 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53980 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53981 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53982 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53983 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53984 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53985 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
53986 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
53987 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53988 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53989 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53990 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53991 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53992 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53993 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53994 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53995 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53996 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
53997 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
53998 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53999 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54000 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54001 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54002 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54003 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54004 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54005 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54006 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54007 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54008 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54009 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54010 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54011 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54012 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54013 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54014 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54015 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54016 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54017 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54018 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54019 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54020 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54021 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54022 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54023 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
54024 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54025 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
54026 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54027 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
54028 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54029 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54030 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54031 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54032 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54033 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54034 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54035 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54036 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54037 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54038 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54039 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54040 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54041 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54042 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54043 _ACEOF
54044
54045   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54046     break
54047   elif $ac_last_try; then
54048     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54049 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54050    { (exit 1); exit 1; }; }
54051   else
54052     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54053   fi
54054 done
54055
54056 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54057 if test -n "$ac_eof"; then
54058   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54059   ac_eof=`expr $ac_eof + 1`
54060 fi
54061
54062 cat >>$CONFIG_STATUS <<_ACEOF
54063 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54065 _ACEOF
54066 sed '
54067 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54068 s/^/s,@/; s/!/@,|#_!!_#|/
54069 :n
54070 t n
54071 s/'"$ac_delim"'$/,g/; t
54072 s/$/\\/; p
54073 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54074 ' >>$CONFIG_STATUS <conf$$subs.sed
54075 rm -f conf$$subs.sed
54076 cat >>$CONFIG_STATUS <<_ACEOF
54077 CEOF$ac_eof
54078 _ACEOF
54079
54080
54081 ac_delim='%!_!# '
54082 for ac_last_try in false false false false false :; do
54083   cat >conf$$subs.sed <<_ACEOF
54084 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54085 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54086 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54087 COND_SHARED_0!$COND_SHARED_0$ac_delim
54088 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54089 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54090 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54091 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54092 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54093 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54094 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54095 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54096 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54097 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54098 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54099 COND_SHARED_1!$COND_SHARED_1$ac_delim
54100 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54101 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54102 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54103 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54104 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54105 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54106 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54107 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54108 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54109 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54110 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54111 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54112 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54113 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54114 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54115 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54116 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54117 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54118 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54119 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54120 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54121 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54122 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54123 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54124 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54125 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54126 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54127 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54128 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54129 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54130 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54131 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54132 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54133 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54134 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54135 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54136 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54137 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54138 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54139 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54140 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54141 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54142 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54143 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54144 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54145 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54146 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54147 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54148 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54149 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54150 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54151 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54152 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54153 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54154 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54155 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54156 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54157 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54158 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54159 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54160 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54161 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54162 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54163 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54164 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54165 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54166 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54167 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54168 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54169 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54170 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54171 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54172 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54173 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54174 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54175 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54176 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54177 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54178 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54179 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54180 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54181 _ACEOF
54182
54183   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54184     break
54185   elif $ac_last_try; then
54186     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54187 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54188    { (exit 1); exit 1; }; }
54189   else
54190     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54191   fi
54192 done
54193
54194 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54195 if test -n "$ac_eof"; then
54196   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54197   ac_eof=`expr $ac_eof + 1`
54198 fi
54199
54200 cat >>$CONFIG_STATUS <<_ACEOF
54201 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54203 _ACEOF
54204 sed '
54205 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54206 s/^/s,@/; s/!/@,|#_!!_#|/
54207 :n
54208 t n
54209 s/'"$ac_delim"'$/,g/; t
54210 s/$/\\/; p
54211 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54212 ' >>$CONFIG_STATUS <conf$$subs.sed
54213 rm -f conf$$subs.sed
54214 cat >>$CONFIG_STATUS <<_ACEOF
54215 CEOF$ac_eof
54216 _ACEOF
54217
54218
54219 ac_delim='%!_!# '
54220 for ac_last_try in false false false false false :; do
54221   cat >conf$$subs.sed <<_ACEOF
54222 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54223 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54224 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54225 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54226 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54227 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54228 DEREZ!$DEREZ$ac_delim
54229 SHARED!$SHARED$ac_delim
54230 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54231 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54232 USE_GUI!$USE_GUI$ac_delim
54233 AFMINSTALL!$AFMINSTALL$ac_delim
54234 WIN32INSTALL!$WIN32INSTALL$ac_delim
54235 TOOLKIT!$TOOLKIT$ac_delim
54236 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54237 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54238 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54239 cross_compiling!$cross_compiling$ac_delim
54240 WIDGET_SET!$WIDGET_SET$ac_delim
54241 WX_RELEASE!$WX_RELEASE$ac_delim
54242 WX_VERSION!$WX_VERSION$ac_delim
54243 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54244 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54245 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54246 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54247 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54248 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54249 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54250 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54251 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54252 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54253 GUIDIST!$GUIDIST$ac_delim
54254 DISTDIR!$DISTDIR$ac_delim
54255 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54256 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54257 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54258 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54259 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54260 RESCOMP!$RESCOMP$ac_delim
54261 RESFLAGS!$RESFLAGS$ac_delim
54262 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54263 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54264 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54265 LIBWXMACRES!$LIBWXMACRES$ac_delim
54266 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54267 MACSETFILE!$MACSETFILE$ac_delim
54268 GCC!$GCC$ac_delim
54269 DLLTOOL!$DLLTOOL$ac_delim
54270 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54271 LIBOBJS!$LIBOBJS$ac_delim
54272 LTLIBOBJS!$LTLIBOBJS$ac_delim
54273 _ACEOF
54274
54275   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
54276     break
54277   elif $ac_last_try; then
54278     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54279 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54280    { (exit 1); exit 1; }; }
54281   else
54282     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54283   fi
54284 done
54285
54286 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54287 if test -n "$ac_eof"; then
54288   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54289   ac_eof=`expr $ac_eof + 1`
54290 fi
54291
54292 cat >>$CONFIG_STATUS <<_ACEOF
54293 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54295 _ACEOF
54296 sed '
54297 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54298 s/^/s,@/; s/!/@,|#_!!_#|/
54299 :n
54300 t n
54301 s/'"$ac_delim"'$/,g/; t
54302 s/$/\\/; p
54303 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54304 ' >>$CONFIG_STATUS <conf$$subs.sed
54305 rm -f conf$$subs.sed
54306 cat >>$CONFIG_STATUS <<_ACEOF
54307 :end
54308 s/|#_!!_#|//g
54309 CEOF$ac_eof
54310 _ACEOF
54311
54312
54313 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54314 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54315 # trailing colons and then remove the whole line if VPATH becomes empty
54316 # (actually we leave an empty line to preserve line numbers).
54317 if test "x$srcdir" = x.; then
54318   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54319 s/:*\$(srcdir):*/:/
54320 s/:*\${srcdir}:*/:/
54321 s/:*@srcdir@:*/:/
54322 s/^\([^=]*=[     ]*\):*/\1/
54323 s/:*$//
54324 s/^[^=]*=[       ]*$//
54325 }'
54326 fi
54327
54328 cat >>$CONFIG_STATUS <<\_ACEOF
54329 fi # test -n "$CONFIG_FILES"
54330
54331
54332 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54333 do
54334   case $ac_tag in
54335   :[FHLC]) ac_mode=$ac_tag; continue;;
54336   esac
54337   case $ac_mode$ac_tag in
54338   :[FHL]*:*);;
54339   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54340 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54341    { (exit 1); exit 1; }; };;
54342   :[FH]-) ac_tag=-:-;;
54343   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54344   esac
54345   ac_save_IFS=$IFS
54346   IFS=:
54347   set x $ac_tag
54348   IFS=$ac_save_IFS
54349   shift
54350   ac_file=$1
54351   shift
54352
54353   case $ac_mode in
54354   :L) ac_source=$1;;
54355   :[FH])
54356     ac_file_inputs=
54357     for ac_f
54358     do
54359       case $ac_f in
54360       -) ac_f="$tmp/stdin";;
54361       *) # Look for the file first in the build tree, then in the source tree
54362          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54363          # because $ac_f cannot contain `:'.
54364          test -f "$ac_f" ||
54365            case $ac_f in
54366            [\\/$]*) false;;
54367            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54368            esac ||
54369            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54370 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54371    { (exit 1); exit 1; }; };;
54372       esac
54373       ac_file_inputs="$ac_file_inputs $ac_f"
54374     done
54375
54376     # Let's still pretend it is `configure' which instantiates (i.e., don't
54377     # use $as_me), people would be surprised to read:
54378     #    /* config.h.  Generated by config.status.  */
54379     configure_input="Generated from "`IFS=:
54380           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54381     if test x"$ac_file" != x-; then
54382       configure_input="$ac_file.  $configure_input"
54383       { echo "$as_me:$LINENO: creating $ac_file" >&5
54384 echo "$as_me: creating $ac_file" >&6;}
54385     fi
54386
54387     case $ac_tag in
54388     *:-:* | *:-) cat >"$tmp/stdin";;
54389     esac
54390     ;;
54391   esac
54392
54393   ac_dir=`$as_dirname -- "$ac_file" ||
54394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54395          X"$ac_file" : 'X\(//\)[^/]' \| \
54396          X"$ac_file" : 'X\(//\)$' \| \
54397          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54398 echo X"$ac_file" |
54399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54400             s//\1/
54401             q
54402           }
54403           /^X\(\/\/\)[^/].*/{
54404             s//\1/
54405             q
54406           }
54407           /^X\(\/\/\)$/{
54408             s//\1/
54409             q
54410           }
54411           /^X\(\/\).*/{
54412             s//\1/
54413             q
54414           }
54415           s/.*/./; q'`
54416   { as_dir="$ac_dir"
54417   case $as_dir in #(
54418   -*) as_dir=./$as_dir;;
54419   esac
54420   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54421     as_dirs=
54422     while :; do
54423       case $as_dir in #(
54424       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54425       *) as_qdir=$as_dir;;
54426       esac
54427       as_dirs="'$as_qdir' $as_dirs"
54428       as_dir=`$as_dirname -- "$as_dir" ||
54429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54430          X"$as_dir" : 'X\(//\)[^/]' \| \
54431          X"$as_dir" : 'X\(//\)$' \| \
54432          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54433 echo X"$as_dir" |
54434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54435             s//\1/
54436             q
54437           }
54438           /^X\(\/\/\)[^/].*/{
54439             s//\1/
54440             q
54441           }
54442           /^X\(\/\/\)$/{
54443             s//\1/
54444             q
54445           }
54446           /^X\(\/\).*/{
54447             s//\1/
54448             q
54449           }
54450           s/.*/./; q'`
54451       test -d "$as_dir" && break
54452     done
54453     test -z "$as_dirs" || eval "mkdir $as_dirs"
54454   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54455 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54456    { (exit 1); exit 1; }; }; }
54457   ac_builddir=.
54458
54459 case "$ac_dir" in
54460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54461 *)
54462   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54463   # A ".." for each directory in $ac_dir_suffix.
54464   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54465   case $ac_top_builddir_sub in
54466   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54467   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54468   esac ;;
54469 esac
54470 ac_abs_top_builddir=$ac_pwd
54471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54472 # for backward compatibility:
54473 ac_top_builddir=$ac_top_build_prefix
54474
54475 case $srcdir in
54476   .)  # We are building in place.
54477     ac_srcdir=.
54478     ac_top_srcdir=$ac_top_builddir_sub
54479     ac_abs_top_srcdir=$ac_pwd ;;
54480   [\\/]* | ?:[\\/]* )  # Absolute name.
54481     ac_srcdir=$srcdir$ac_dir_suffix;
54482     ac_top_srcdir=$srcdir
54483     ac_abs_top_srcdir=$srcdir ;;
54484   *) # Relative name.
54485     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54486     ac_top_srcdir=$ac_top_build_prefix$srcdir
54487     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54488 esac
54489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54490
54491
54492   case $ac_mode in
54493   :F)
54494   #
54495   # CONFIG_FILE
54496   #
54497
54498   case $INSTALL in
54499   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54500   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54501   esac
54502 _ACEOF
54503
54504 cat >>$CONFIG_STATUS <<\_ACEOF
54505 # If the template does not know about datarootdir, expand it.
54506 # FIXME: This hack should be removed a few years after 2.60.
54507 ac_datarootdir_hack=; ac_datarootdir_seen=
54508
54509 case `sed -n '/datarootdir/ {
54510   p
54511   q
54512 }
54513 /@datadir@/p
54514 /@docdir@/p
54515 /@infodir@/p
54516 /@localedir@/p
54517 /@mandir@/p
54518 ' $ac_file_inputs` in
54519 *datarootdir*) ac_datarootdir_seen=yes;;
54520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54521   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54522 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54523 _ACEOF
54524 cat >>$CONFIG_STATUS <<_ACEOF
54525   ac_datarootdir_hack='
54526   s&@datadir@&$datadir&g
54527   s&@docdir@&$docdir&g
54528   s&@infodir@&$infodir&g
54529   s&@localedir@&$localedir&g
54530   s&@mandir@&$mandir&g
54531     s&\\\${datarootdir}&$datarootdir&g' ;;
54532 esac
54533 _ACEOF
54534
54535 # Neutralize VPATH when `$srcdir' = `.'.
54536 # Shell code in configure.ac might set extrasub.
54537 # FIXME: do we really want to maintain this feature?
54538 cat >>$CONFIG_STATUS <<_ACEOF
54539   sed "$ac_vpsub
54540 $extrasub
54541 _ACEOF
54542 cat >>$CONFIG_STATUS <<\_ACEOF
54543 :t
54544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54545 s&@configure_input@&$configure_input&;t t
54546 s&@top_builddir@&$ac_top_builddir_sub&;t t
54547 s&@srcdir@&$ac_srcdir&;t t
54548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54549 s&@top_srcdir@&$ac_top_srcdir&;t t
54550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54551 s&@builddir@&$ac_builddir&;t t
54552 s&@abs_builddir@&$ac_abs_builddir&;t t
54553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54554 s&@INSTALL@&$ac_INSTALL&;t t
54555 $ac_datarootdir_hack
54556 " $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
54557
54558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54559   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54560   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54561   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54562 which seems to be undefined.  Please make sure it is defined." >&5
54563 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54564 which seems to be undefined.  Please make sure it is defined." >&2;}
54565
54566   rm -f "$tmp/stdin"
54567   case $ac_file in
54568   -) cat "$tmp/out"; rm -f "$tmp/out";;
54569   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54570   esac
54571  ;;
54572   :H)
54573   #
54574   # CONFIG_HEADER
54575   #
54576 _ACEOF
54577
54578 # Transform confdefs.h into a sed script `conftest.defines', that
54579 # substitutes the proper values into config.h.in to produce config.h.
54580 rm -f conftest.defines conftest.tail
54581 # First, append a space to every undef/define line, to ease matching.
54582 echo 's/$/ /' >conftest.defines
54583 # Then, protect against being on the right side of a sed subst, or in
54584 # an unquoted here document, in config.status.  If some macros were
54585 # called several times there might be several #defines for the same
54586 # symbol, which is useless.  But do not sort them, since the last
54587 # AC_DEFINE must be honored.
54588 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54589 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54590 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54591 # PARAMS is the parameter list in the macro definition--in most cases, it's
54592 # just an empty string.
54593 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54594 ac_dB='\\)[      (].*,\\1define\\2'
54595 ac_dC=' '
54596 ac_dD=' ,'
54597
54598 uniq confdefs.h |
54599   sed -n '
54600         t rset
54601         :rset
54602         s/^[     ]*#[    ]*define[       ][      ]*//
54603         t ok
54604         d
54605         :ok
54606         s/[\\&,]/\\&/g
54607         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54608         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54609   ' >>conftest.defines
54610
54611 # Remove the space that was appended to ease matching.
54612 # Then replace #undef with comments.  This is necessary, for
54613 # example, in the case of _POSIX_SOURCE, which is predefined and required
54614 # on some systems where configure will not decide to define it.
54615 # (The regexp can be short, since the line contains either #define or #undef.)
54616 echo 's/ $//
54617 s,^[     #]*u.*,/* & */,' >>conftest.defines
54618
54619 # Break up conftest.defines:
54620 ac_max_sed_lines=50
54621
54622 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54623 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54624 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54625 # et cetera.
54626 ac_in='$ac_file_inputs'
54627 ac_out='"$tmp/out1"'
54628 ac_nxt='"$tmp/out2"'
54629
54630 while :
54631 do
54632   # Write a here document:
54633     cat >>$CONFIG_STATUS <<_ACEOF
54634     # First, check the format of the line:
54635     cat >"\$tmp/defines.sed" <<\\CEOF
54636 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54637 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54638 b
54639 :def
54640 _ACEOF
54641   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54642   echo 'CEOF
54643     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54644   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54645   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54646   grep . conftest.tail >/dev/null || break
54647   rm -f conftest.defines
54648   mv conftest.tail conftest.defines
54649 done
54650 rm -f conftest.defines conftest.tail
54651
54652 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54653 cat >>$CONFIG_STATUS <<\_ACEOF
54654   if test x"$ac_file" != x-; then
54655     echo "/* $configure_input  */" >"$tmp/config.h"
54656     cat "$ac_result" >>"$tmp/config.h"
54657     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54658       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54659 echo "$as_me: $ac_file is unchanged" >&6;}
54660     else
54661       rm -f $ac_file
54662       mv "$tmp/config.h" $ac_file
54663     fi
54664   else
54665     echo "/* $configure_input  */"
54666     cat "$ac_result"
54667   fi
54668   rm -f "$tmp/out12"
54669  ;;
54670
54671   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54672 echo "$as_me: executing $ac_file commands" >&6;}
54673  ;;
54674   esac
54675
54676
54677   case $ac_file$ac_mode in
54678     "rcdefs.h":C)
54679             mkdir -p $outdir &&
54680             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54681          ;;
54682     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54683     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54684     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
54685     "wx-config":C)  rm -f wx-config
54686                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54687                     ;;
54688
54689   esac
54690 done # for ac_tag
54691
54692
54693 { (exit 0); exit 0; }
54694 _ACEOF
54695 chmod +x $CONFIG_STATUS
54696 ac_clean_files=$ac_clean_files_save
54697
54698
54699 # configure is writing to config.log, and then calls config.status.
54700 # config.status does its own redirection, appending to config.log.
54701 # Unfortunately, on DOS this fails, as config.log is still kept open
54702 # by configure, so config.status won't be able to write to it; its
54703 # output is simply discarded.  So we exec the FD to /dev/null,
54704 # effectively closing config.log, so it can be properly (re)opened and
54705 # appended to by config.status.  When coming back to configure, we
54706 # need to make the FD available again.
54707 if test "$no_create" != yes; then
54708   ac_cs_success=:
54709   ac_config_status_args=
54710   test "$silent" = yes &&
54711     ac_config_status_args="$ac_config_status_args --quiet"
54712   exec 5>/dev/null
54713   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54714   exec 5>>config.log
54715   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54716   # would make configure fail if this is the last instruction.
54717   $ac_cs_success || { (exit 1); exit 1; }
54718 fi
54719
54720 #
54721 # CONFIG_SUBDIRS section.
54722 #
54723 if test "$no_recursion" != yes; then
54724
54725   # Remove --cache-file and --srcdir arguments so they do not pile up.
54726   ac_sub_configure_args=
54727   ac_prev=
54728   eval "set x $ac_configure_args"
54729   shift
54730   for ac_arg
54731   do
54732     if test -n "$ac_prev"; then
54733       ac_prev=
54734       continue
54735     fi
54736     case $ac_arg in
54737     -cache-file | --cache-file | --cache-fil | --cache-fi \
54738     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54739       ac_prev=cache_file ;;
54740     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54741     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54742     | --c=*)
54743       ;;
54744     --config-cache | -C)
54745       ;;
54746     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54747       ac_prev=srcdir ;;
54748     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54749       ;;
54750     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54751       ac_prev=prefix ;;
54752     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54753       ;;
54754     *)
54755       case $ac_arg in
54756       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54757       esac
54758       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54759     esac
54760   done
54761
54762   # Always prepend --prefix to ensure using the same prefix
54763   # in subdir configurations.
54764   ac_arg="--prefix=$prefix"
54765   case $ac_arg in
54766   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54767   esac
54768   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54769
54770   # Pass --silent
54771   if test "$silent" = yes; then
54772     ac_sub_configure_args="--silent $ac_sub_configure_args"
54773   fi
54774
54775   ac_popdir=`pwd`
54776   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54777
54778     # Do not complain, so a configure script can configure whichever
54779     # parts of a large source tree are present.
54780     test -d "$srcdir/$ac_dir" || continue
54781
54782     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54783     echo "$as_me:$LINENO: $ac_msg" >&5
54784     echo "$ac_msg" >&6
54785     { as_dir="$ac_dir"
54786   case $as_dir in #(
54787   -*) as_dir=./$as_dir;;
54788   esac
54789   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54790     as_dirs=
54791     while :; do
54792       case $as_dir in #(
54793       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54794       *) as_qdir=$as_dir;;
54795       esac
54796       as_dirs="'$as_qdir' $as_dirs"
54797       as_dir=`$as_dirname -- "$as_dir" ||
54798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54799          X"$as_dir" : 'X\(//\)[^/]' \| \
54800          X"$as_dir" : 'X\(//\)$' \| \
54801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54802 echo X"$as_dir" |
54803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54804             s//\1/
54805             q
54806           }
54807           /^X\(\/\/\)[^/].*/{
54808             s//\1/
54809             q
54810           }
54811           /^X\(\/\/\)$/{
54812             s//\1/
54813             q
54814           }
54815           /^X\(\/\).*/{
54816             s//\1/
54817             q
54818           }
54819           s/.*/./; q'`
54820       test -d "$as_dir" && break
54821     done
54822     test -z "$as_dirs" || eval "mkdir $as_dirs"
54823   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54825    { (exit 1); exit 1; }; }; }
54826     ac_builddir=.
54827
54828 case "$ac_dir" in
54829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54830 *)
54831   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54832   # A ".." for each directory in $ac_dir_suffix.
54833   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54834   case $ac_top_builddir_sub in
54835   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54836   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54837   esac ;;
54838 esac
54839 ac_abs_top_builddir=$ac_pwd
54840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54841 # for backward compatibility:
54842 ac_top_builddir=$ac_top_build_prefix
54843
54844 case $srcdir in
54845   .)  # We are building in place.
54846     ac_srcdir=.
54847     ac_top_srcdir=$ac_top_builddir_sub
54848     ac_abs_top_srcdir=$ac_pwd ;;
54849   [\\/]* | ?:[\\/]* )  # Absolute name.
54850     ac_srcdir=$srcdir$ac_dir_suffix;
54851     ac_top_srcdir=$srcdir
54852     ac_abs_top_srcdir=$srcdir ;;
54853   *) # Relative name.
54854     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54855     ac_top_srcdir=$ac_top_build_prefix$srcdir
54856     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54857 esac
54858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54859
54860
54861     cd "$ac_dir"
54862
54863     # Check for guested configure; otherwise get Cygnus style configure.
54864     if test -f "$ac_srcdir/configure.gnu"; then
54865       ac_sub_configure=$ac_srcdir/configure.gnu
54866     elif test -f "$ac_srcdir/configure"; then
54867       ac_sub_configure=$ac_srcdir/configure
54868     elif test -f "$ac_srcdir/configure.in"; then
54869       # This should be Cygnus configure.
54870       ac_sub_configure=$ac_aux_dir/configure
54871     else
54872       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54873 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54874       ac_sub_configure=
54875     fi
54876
54877     # The recursion is here.
54878     if test -n "$ac_sub_configure"; then
54879       # Make the cache file name correct relative to the subdirectory.
54880       case $cache_file in
54881       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54882       *) # Relative name.
54883         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54884       esac
54885
54886       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54887 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54888       # The eval makes quoting arguments work.
54889       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54890            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54891         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54892 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54893    { (exit 1); exit 1; }; }
54894     fi
54895
54896     cd "$ac_popdir"
54897   done
54898 fi
54899
54900
54901 echo
54902 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54903 echo ""
54904 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54905 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54906 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54907 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
54908 if test "$wxUSE_UNICODE" = "yes"; then
54909     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54910         echo " (using UTF-8)"
54911     else
54912         echo " (using wchar_t)"
54913     fi
54914 else
54915     echo
54916 fi
54917
54918 echo "  What level of wxWidgets compatibility should be enabled?"
54919 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54920 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54921
54922 echo "  Which libraries should wxWidgets use?"
54923 echo "                                       STL                ${wxUSE_STL}"
54924 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54925 echo "                                       png                ${wxUSE_LIBPNG-none}"
54926 echo "                                       regex              ${wxUSE_REGEX}"
54927 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54928 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54929 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54930 fi
54931 echo "                                       zlib               ${wxUSE_ZLIB}"
54932 echo "                                       expat              ${wxUSE_EXPAT}"
54933 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54934 echo "                                       sdl                ${wxUSE_LIBSDL}"
54935
54936 echo ""
54937