merged docvwmdi sample into docview one to avoid having 2 almost identical samples...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 55576 2008-09-12 20:57:41Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 AR
683 subdirs
684 PKG_CONFIG
685 GTK_CFLAGS
686 GTK_LIBS
687 GTK_CONFIG
688 DIRECTFB_CFLAGS
689 DIRECTFB_LIBS
690 XMKMF
691 X_CFLAGS
692 X_PRE_LIBS
693 X_LIBS
694 X_EXTRA_LIBS
695 PANGOX_CFLAGS
696 PANGOX_LIBS
697 PANGOFT2_CFLAGS
698 PANGOFT2_LIBS
699 PANGOXFT_CFLAGS
700 PANGOXFT_LIBS
701 CFLAGS_VISIBILITY
702 CXXFLAGS_VISIBILITY
703 LIBICONV
704 SDL_CONFIG
705 SDL_CFLAGS
706 SDL_LIBS
707 GTKPRINT_CFLAGS
708 GTKPRINT_LIBS
709 LIBGNOMEPRINTUI_CFLAGS
710 LIBGNOMEPRINTUI_LIBS
711 GNOMEVFS_CFLAGS
712 GNOMEVFS_LIBS
713 HILDON_CFLAGS
714 HILDON_LIBS
715 CAIRO_CFLAGS
716 CAIRO_LIBS
717 GST_CFLAGS
718 GST_LIBS
719 ALL_WX_LIBS
720 BUILT_WX_LIBS
721 STD_BASE_LIBS
722 STD_GUI_LIBS
723 wxUSE_ZLIB
724 wxUSE_REGEX
725 wxUSE_EXPAT
726 wxUSE_LIBJPEG
727 wxUSE_LIBPNG
728 wxUSE_LIBTIFF
729 VENDOR
730 OFFICIAL_BUILD
731 WX_FLAVOUR
732 WX_LIB_FLAVOUR
733 WXUNIV
734 MONOLITHIC
735 USE_PLUGINS
736 CXXWARNINGS
737 EXTRALIBS
738 EXTRALIBS_XML
739 EXTRALIBS_HTML
740 EXTRALIBS_MEDIA
741 EXTRALIBS_GUI
742 EXTRALIBS_OPENGL
743 EXTRALIBS_SDL
744 EXTRALIBS_STC
745 WITH_PLUGIN_SDL
746 EXTRALIBS_GTKPRINT
747 EXTRALIBS_GNOMEPRINT
748 EXTRALIBS_GNOMEVFS
749 EXTRALIBS_HILDON
750 UNICODE
751 BUILD
752 DEBUG_INFO
753 DEBUG_FLAG
754 TOOLKIT_LOWERCASE
755 TOOLKIT_VERSION
756 SAMPLES_RPATH_FLAG
757 SAMPLES_RPATH_POSTLINK
758 HOST_SUFFIX
759 CPPUNIT_CFLAGS
760 CPPUNIT_LIBS
761 RANLIB
762 INSTALL_PROGRAM
763 INSTALL_SCRIPT
764 INSTALL_DATA
765 LN_S
766 SET_MAKE
767 MAKE_SET
768 AROPTIONS
769 STRIP
770 NM
771 INSTALL_DIR
772 LDFLAGS_GUI
773 IF_GNU_MAKE
774 PLATFORM_UNIX
775 PLATFORM_WIN32
776 PLATFORM_MSDOS
777 PLATFORM_MAC
778 PLATFORM_MACOS
779 PLATFORM_MACOSX
780 PLATFORM_OS2
781 PLATFORM_BEOS
782 SO_SUFFIX
783 SO_SUFFIX_MODULE
784 DLLIMP_SUFFIX
785 LIBPREFIX
786 LIBEXT
787 DLLPREFIX
788 DLLPREFIX_MODULE
789 dlldir
790 AIX_CXX_LD
791 SHARED_LD_CC
792 SHARED_LD_CXX
793 SHARED_LD_MODULE_CC
794 SHARED_LD_MODULE_CXX
795 PIC_FLAG
796 WINDOWS_IMPLIB
797 USE_SOVERSION
798 USE_SOVERLINUX
799 USE_SOVERSOLARIS
800 USE_SOVERCYGWIN
801 USE_MACVERSION
802 USE_SOSYMLINKS
803 SONAME_FLAG
804 DEPS_TRACKING
805 BK_DEPS
806 WINDRES
807 REZ
808 SETFILE
809 GCC_PCH
810 ICC_PCH
811 BK_MAKE_PCH
812 COND_BUILD_DEBUG
813 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
814 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
815 COND_BUILD_DEBUG_UNICODE_0
816 COND_BUILD_DEBUG_UNICODE_1
817 COND_BUILD_RELEASE
818 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
819 COND_BUILD_RELEASE_UNICODE_0
820 COND_BUILD_RELEASE_UNICODE_1
821 COND_DEBUG_FLAG_1
822 COND_DEBUG_INFO_0
823 COND_DEBUG_INFO_1
824 COND_DEPS_TRACKING_0
825 COND_DEPS_TRACKING_1
826 COND_GCC_PCH_1
827 COND_ICC_PCH_1
828 COND_MONOLITHIC_0
829 COND_MONOLITHIC_0_SHARED_0
830 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
836 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
837 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
838 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
839 COND_MONOLITHIC_0_SHARED_1
840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
845 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
846 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
847 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
848 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
849 COND_MONOLITHIC_0_USE_AUI_1
850 COND_MONOLITHIC_0_USE_GUI_1
851 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
852 COND_MONOLITHIC_0_USE_HTML_1
853 COND_MONOLITHIC_0_USE_MEDIA_1
854 COND_MONOLITHIC_0_USE_PROPGRID_1
855 COND_MONOLITHIC_0_USE_QA_1
856 COND_MONOLITHIC_0_USE_RICHTEXT_1
857 COND_MONOLITHIC_0_USE_STC_1
858 COND_MONOLITHIC_0_USE_XRC_1
859 COND_MONOLITHIC_1
860 COND_MONOLITHIC_1_SHARED_0
861 COND_MONOLITHIC_1_SHARED_1
862 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
863 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
864 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
865 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
866 COND_PLATFORM_MACOSX_1
867 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
868 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
870 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
871 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
872 COND_PLATFORM_MACOSX_1_USE_GUI_1
873 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
874 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
875 COND_PLATFORM_MACOS_1
876 COND_PLATFORM_MAC_0
877 COND_PLATFORM_MAC_1
878 COND_PLATFORM_MSDOS_0
879 COND_PLATFORM_MSDOS_1
880 COND_PLATFORM_OS2_1
881 COND_PLATFORM_UNIX_0
882 COND_PLATFORM_UNIX_1
883 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
884 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
885 COND_PLATFORM_UNIX_1_USE_GUI_1
886 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
887 COND_PLATFORM_WIN32_0
888 COND_PLATFORM_WIN32_1
889 COND_SHARED_0
890 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
891 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
892 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
893 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
894 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
895 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
897 COND_SHARED_0_USE_STC_1
898 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
899 COND_SHARED_0_WXUSE_REGEX_BUILTIN
900 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
901 COND_SHARED_1
902 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
903 COND_TOOLKIT_
904 COND_TOOLKIT_COCOA
905 COND_TOOLKIT_COCOA_USE_GUI_1
906 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
907 COND_TOOLKIT_DFB
908 COND_TOOLKIT_DFB_USE_GUI_1
909 COND_TOOLKIT_GTK
910 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
911 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
912 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
913 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
914 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_GTK_USE_GUI_1
918 COND_TOOLKIT_MAC
919 COND_TOOLKIT_MGL
920 COND_TOOLKIT_MGL_USE_GUI_1
921 COND_TOOLKIT_MOTIF
922 COND_TOOLKIT_MOTIF_USE_GUI_1
923 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
924 COND_TOOLKIT_MSW
925 COND_TOOLKIT_MSW_USE_GUI_1
926 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
927 COND_TOOLKIT_MSW_WXUNIV_0
928 COND_TOOLKIT_OSX_CARBON
929 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
930 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_OSX_COCOA
932 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
933 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_OSX_IPHONE
935 COND_TOOLKIT_PM
936 COND_TOOLKIT_PM_USE_GUI_1
937 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
938 COND_TOOLKIT_WINCE
939 COND_TOOLKIT_WINCE_USE_GUI_1
940 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_WINCE_WXUNIV_0
942 COND_TOOLKIT_X11
943 COND_TOOLKIT_X11_USE_GUI_1
944 COND_UNICODE_1
945 COND_USE_EXCEPTIONS_0
946 COND_USE_EXCEPTIONS_1
947 COND_USE_GUI_0
948 COND_USE_GUI_1
949 COND_USE_GUI_1_USE_OPENGL_1
950 COND_USE_GUI_1_WXUNIV_0
951 COND_USE_GUI_1_WXUNIV_1
952 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
954 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
955 COND_USE_OPENGL_1
956 COND_USE_PCH_1
957 COND_USE_PLUGINS_0
958 COND_USE_RTTI_0
959 COND_USE_RTTI_1
960 COND_USE_SOSYMLINKS_1
961 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
962 COND_USE_SOVERLINUX_1
963 COND_USE_SOVERSION_0
964 COND_USE_SOVERSOLARIS_1
965 COND_USE_STC_1
966 COND_USE_THREADS_0
967 COND_USE_THREADS_1
968 COND_USE_XRC_1
969 COND_WINDOWS_IMPLIB_1
970 COND_WITH_PLUGIN_SDL_1
971 COND_WXUNIV_0
972 COND_WXUNIV_1
973 COND_WXUSE_EXPAT_BUILTIN
974 COND_WXUSE_LIBJPEG_BUILTIN
975 COND_WXUSE_LIBPNG_BUILTIN
976 COND_WXUSE_LIBTIFF_BUILTIN
977 COND_WXUSE_REGEX_BUILTIN
978 COND_WXUSE_ZLIB_BUILTIN
979 DEREZ
980 SHARED
981 WX_LIBRARY_BASENAME_NOGUI
982 WX_LIBRARY_BASENAME_GUI
983 USE_GUI
984 AFMINSTALL
985 WIN32INSTALL
986 TOOLKIT
987 TOOLKIT_DIR
988 TOOLCHAIN_NAME
989 TOOLCHAIN_FULLNAME
990 cross_compiling
991 WIDGET_SET
992 WX_RELEASE
993 WX_VERSION
994 WX_SUBVERSION
995 WX_CHARTYPE
996 WX_DEBUGTYPE
997 WXCONFIG_CPPFLAGS
998 WXCONFIG_CFLAGS
999 WXCONFIG_CXXFLAGS
1000 WXCONFIG_LIBS
1001 WXCONFIG_RPATH
1002 WXCONFIG_LDFLAGS_GUI
1003 WXCONFIG_RESFLAGS
1004 GUIDIST
1005 DISTDIR
1006 SAMPLES_SUBDIRS
1007 LDFLAGS_GL
1008 OPENGL_LIBS
1009 DMALLOC_LIBS
1010 WX_VERSION_TAG
1011 RESCOMP
1012 RESFLAGS
1013 RESPROGRAMOBJ
1014 WX_RESOURCES_MACOSX_ASCII
1015 WX_RESOURCES_MACOSX_DATA
1016 LIBWXMACRES
1017 POSTLINK_COMMAND
1018 MACSETFILE
1019 GCC
1020 DLLTOOL
1021 CPPUNIT_CONFIG
1022 LIBOBJS
1023 LTLIBOBJS'
1024 ac_subst_files=''
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CPP
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 PKG_CONFIG
1038 DIRECTFB_CFLAGS
1039 DIRECTFB_LIBS
1040 XMKMF
1041 PANGOX_CFLAGS
1042 PANGOX_LIBS
1043 PANGOFT2_CFLAGS
1044 PANGOFT2_LIBS
1045 PANGOXFT_CFLAGS
1046 PANGOXFT_LIBS
1047 GTKPRINT_CFLAGS
1048 GTKPRINT_LIBS
1049 LIBGNOMEPRINTUI_CFLAGS
1050 LIBGNOMEPRINTUI_LIBS
1051 GNOMEVFS_CFLAGS
1052 GNOMEVFS_LIBS
1053 HILDON_CFLAGS
1054 HILDON_LIBS
1055 CAIRO_CFLAGS
1056 CAIRO_LIBS
1057 GST_CFLAGS
1058 GST_LIBS'
1059 ac_subdirs_all='src/tiff
1060 src/expat'
1061
1062 # Initialize some variables set by options.
1063 ac_init_help=
1064 ac_init_version=false
1065 # The variables have the same names as the options, with
1066 # dashes changed to underlines.
1067 cache_file=/dev/null
1068 exec_prefix=NONE
1069 no_create=
1070 no_recursion=
1071 prefix=NONE
1072 program_prefix=NONE
1073 program_suffix=NONE
1074 program_transform_name=s,x,x,
1075 silent=
1076 site=
1077 srcdir=
1078 verbose=
1079 x_includes=NONE
1080 x_libraries=NONE
1081
1082 # Installation directory options.
1083 # These are left unexpanded so users can "make install exec_prefix=/foo"
1084 # and all the variables that are supposed to be based on exec_prefix
1085 # by default will actually change.
1086 # Use braces instead of parens because sh, perl, etc. also accept them.
1087 # (The list follows the same order as the GNU Coding Standards.)
1088 bindir='${exec_prefix}/bin'
1089 sbindir='${exec_prefix}/sbin'
1090 libexecdir='${exec_prefix}/libexec'
1091 datarootdir='${prefix}/share'
1092 datadir='${datarootdir}'
1093 sysconfdir='${prefix}/etc'
1094 sharedstatedir='${prefix}/com'
1095 localstatedir='${prefix}/var'
1096 includedir='${prefix}/include'
1097 oldincludedir='/usr/include'
1098 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1099 infodir='${datarootdir}/info'
1100 htmldir='${docdir}'
1101 dvidir='${docdir}'
1102 pdfdir='${docdir}'
1103 psdir='${docdir}'
1104 libdir='${exec_prefix}/lib'
1105 localedir='${datarootdir}/locale'
1106 mandir='${datarootdir}/man'
1107
1108 ac_prev=
1109 ac_dashdash=
1110 for ac_option
1111 do
1112   # If the previous option needs an argument, assign it.
1113   if test -n "$ac_prev"; then
1114     eval $ac_prev=\$ac_option
1115     ac_prev=
1116     continue
1117   fi
1118
1119   case $ac_option in
1120   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1121   *)    ac_optarg=yes ;;
1122   esac
1123
1124   # Accept the important Cygnus configure options, so we can diagnose typos.
1125
1126   case $ac_dashdash$ac_option in
1127   --)
1128     ac_dashdash=yes ;;
1129
1130   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1131     ac_prev=bindir ;;
1132   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1133     bindir=$ac_optarg ;;
1134
1135   -build | --build | --buil | --bui | --bu)
1136     ac_prev=build_alias ;;
1137   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1138     build_alias=$ac_optarg ;;
1139
1140   -cache-file | --cache-file | --cache-fil | --cache-fi \
1141   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1142     ac_prev=cache_file ;;
1143   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1144   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1145     cache_file=$ac_optarg ;;
1146
1147   --config-cache | -C)
1148     cache_file=config.cache ;;
1149
1150   -datadir | --datadir | --datadi | --datad)
1151     ac_prev=datadir ;;
1152   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1153     datadir=$ac_optarg ;;
1154
1155   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1156   | --dataroo | --dataro | --datar)
1157     ac_prev=datarootdir ;;
1158   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1159   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1160     datarootdir=$ac_optarg ;;
1161
1162   -disable-* | --disable-*)
1163     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1169     eval enable_$ac_feature=no ;;
1170
1171   -docdir | --docdir | --docdi | --doc | --do)
1172     ac_prev=docdir ;;
1173   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174     docdir=$ac_optarg ;;
1175
1176   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177     ac_prev=dvidir ;;
1178   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179     dvidir=$ac_optarg ;;
1180
1181   -enable-* | --enable-*)
1182     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1188     eval enable_$ac_feature=\$ac_optarg ;;
1189
1190   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1191   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1192   | --exec | --exe | --ex)
1193     ac_prev=exec_prefix ;;
1194   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1195   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1196   | --exec=* | --exe=* | --ex=*)
1197     exec_prefix=$ac_optarg ;;
1198
1199   -gas | --gas | --ga | --g)
1200     # Obsolete; use --with-gas.
1201     with_gas=yes ;;
1202
1203   -help | --help | --hel | --he | -h)
1204     ac_init_help=long ;;
1205   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1206     ac_init_help=recursive ;;
1207   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1208     ac_init_help=short ;;
1209
1210   -host | --host | --hos | --ho)
1211     ac_prev=host_alias ;;
1212   -host=* | --host=* | --hos=* | --ho=*)
1213     host_alias=$ac_optarg ;;
1214
1215   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1216     ac_prev=htmldir ;;
1217   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1218   | --ht=*)
1219     htmldir=$ac_optarg ;;
1220
1221   -includedir | --includedir | --includedi | --included | --include \
1222   | --includ | --inclu | --incl | --inc)
1223     ac_prev=includedir ;;
1224   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1225   | --includ=* | --inclu=* | --incl=* | --inc=*)
1226     includedir=$ac_optarg ;;
1227
1228   -infodir | --infodir | --infodi | --infod | --info | --inf)
1229     ac_prev=infodir ;;
1230   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1231     infodir=$ac_optarg ;;
1232
1233   -libdir | --libdir | --libdi | --libd)
1234     ac_prev=libdir ;;
1235   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1236     libdir=$ac_optarg ;;
1237
1238   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1239   | --libexe | --libex | --libe)
1240     ac_prev=libexecdir ;;
1241   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1242   | --libexe=* | --libex=* | --libe=*)
1243     libexecdir=$ac_optarg ;;
1244
1245   -localedir | --localedir | --localedi | --localed | --locale)
1246     ac_prev=localedir ;;
1247   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1248     localedir=$ac_optarg ;;
1249
1250   -localstatedir | --localstatedir | --localstatedi | --localstated \
1251   | --localstate | --localstat | --localsta | --localst | --locals)
1252     ac_prev=localstatedir ;;
1253   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1254   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1255     localstatedir=$ac_optarg ;;
1256
1257   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1258     ac_prev=mandir ;;
1259   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1260     mandir=$ac_optarg ;;
1261
1262   -nfp | --nfp | --nf)
1263     # Obsolete; use --without-fp.
1264     with_fp=no ;;
1265
1266   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1267   | --no-cr | --no-c | -n)
1268     no_create=yes ;;
1269
1270   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1271   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1272     no_recursion=yes ;;
1273
1274   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1275   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1276   | --oldin | --oldi | --old | --ol | --o)
1277     ac_prev=oldincludedir ;;
1278   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1279   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1280   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1281     oldincludedir=$ac_optarg ;;
1282
1283   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1284     ac_prev=prefix ;;
1285   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1286     prefix=$ac_optarg ;;
1287
1288   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1289   | --program-pre | --program-pr | --program-p)
1290     ac_prev=program_prefix ;;
1291   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1292   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1293     program_prefix=$ac_optarg ;;
1294
1295   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1296   | --program-suf | --program-su | --program-s)
1297     ac_prev=program_suffix ;;
1298   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1299   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1300     program_suffix=$ac_optarg ;;
1301
1302   -program-transform-name | --program-transform-name \
1303   | --program-transform-nam | --program-transform-na \
1304   | --program-transform-n | --program-transform- \
1305   | --program-transform | --program-transfor \
1306   | --program-transfo | --program-transf \
1307   | --program-trans | --program-tran \
1308   | --progr-tra | --program-tr | --program-t)
1309     ac_prev=program_transform_name ;;
1310   -program-transform-name=* | --program-transform-name=* \
1311   | --program-transform-nam=* | --program-transform-na=* \
1312   | --program-transform-n=* | --program-transform-=* \
1313   | --program-transform=* | --program-transfor=* \
1314   | --program-transfo=* | --program-transf=* \
1315   | --program-trans=* | --program-tran=* \
1316   | --progr-tra=* | --program-tr=* | --program-t=*)
1317     program_transform_name=$ac_optarg ;;
1318
1319   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1320     ac_prev=pdfdir ;;
1321   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1322     pdfdir=$ac_optarg ;;
1323
1324   -psdir | --psdir | --psdi | --psd | --ps)
1325     ac_prev=psdir ;;
1326   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1327     psdir=$ac_optarg ;;
1328
1329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330   | -silent | --silent | --silen | --sile | --sil)
1331     silent=yes ;;
1332
1333   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334     ac_prev=sbindir ;;
1335   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336   | --sbi=* | --sb=*)
1337     sbindir=$ac_optarg ;;
1338
1339   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341   | --sharedst | --shareds | --shared | --share | --shar \
1342   | --sha | --sh)
1343     ac_prev=sharedstatedir ;;
1344   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347   | --sha=* | --sh=*)
1348     sharedstatedir=$ac_optarg ;;
1349
1350   -site | --site | --sit)
1351     ac_prev=site ;;
1352   -site=* | --site=* | --sit=*)
1353     site=$ac_optarg ;;
1354
1355   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356     ac_prev=srcdir ;;
1357   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358     srcdir=$ac_optarg ;;
1359
1360   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361   | --syscon | --sysco | --sysc | --sys | --sy)
1362     ac_prev=sysconfdir ;;
1363   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365     sysconfdir=$ac_optarg ;;
1366
1367   -target | --target | --targe | --targ | --tar | --ta | --t)
1368     ac_prev=target_alias ;;
1369   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370     target_alias=$ac_optarg ;;
1371
1372   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373     verbose=yes ;;
1374
1375   -version | --version | --versio | --versi | --vers | -V)
1376     ac_init_version=: ;;
1377
1378   -with-* | --with-*)
1379     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382       { echo "$as_me: error: invalid package name: $ac_package" >&2
1383    { (exit 1); exit 1; }; }
1384     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1385     eval with_$ac_package=\$ac_optarg ;;
1386
1387   -without-* | --without-*)
1388     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391       { echo "$as_me: error: invalid package name: $ac_package" >&2
1392    { (exit 1); exit 1; }; }
1393     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394     eval with_$ac_package=no ;;
1395
1396   --x)
1397     # Obsolete; use --with-x.
1398     with_x=yes ;;
1399
1400   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401   | --x-incl | --x-inc | --x-in | --x-i)
1402     ac_prev=x_includes ;;
1403   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405     x_includes=$ac_optarg ;;
1406
1407   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409     ac_prev=x_libraries ;;
1410   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412     x_libraries=$ac_optarg ;;
1413
1414   -*) { echo "$as_me: error: unrecognized option: $ac_option
1415 Try \`$0 --help' for more information." >&2
1416    { (exit 1); exit 1; }; }
1417     ;;
1418
1419   *=*)
1420     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421     # Reject names that are not valid shell variable names.
1422     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1423       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1424    { (exit 1); exit 1; }; }
1425     eval $ac_envvar=\$ac_optarg
1426     export $ac_envvar ;;
1427
1428   *)
1429     # FIXME: should be removed in autoconf 3.0.
1430     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1434     ;;
1435
1436   esac
1437 done
1438
1439 if test -n "$ac_prev"; then
1440   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441   { echo "$as_me: error: missing argument to $ac_option" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444
1445 # Be sure to have absolute directory names.
1446 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447                 datadir sysconfdir sharedstatedir localstatedir includedir \
1448                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449                 libdir localedir mandir
1450 do
1451   eval ac_val=\$$ac_var
1452   case $ac_val in
1453     [\\/$]* | ?:[\\/]* )  continue;;
1454     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1455   esac
1456   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1457    { (exit 1); exit 1; }; }
1458 done
1459
1460 # There might be people who depend on the old broken behavior: `$host'
1461 # used to hold the argument of --host etc.
1462 # FIXME: To remove some day.
1463 build=$build_alias
1464 host=$host_alias
1465 target=$target_alias
1466
1467 # FIXME: To remove some day.
1468 if test "x$host_alias" != x; then
1469   if test "x$build_alias" = x; then
1470     cross_compiling=maybe
1471     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1472     If a cross compiler is detected then cross compile mode will be used." >&2
1473   elif test "x$build_alias" != "x$host_alias"; then
1474     cross_compiling=yes
1475   fi
1476 fi
1477
1478 ac_tool_prefix=
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480
1481 test "$silent" = yes && exec 6>/dev/null
1482
1483
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487   { echo "$as_me: error: Working directory cannot be determined" >&2
1488    { (exit 1); exit 1; }; }
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490   { echo "$as_me: error: pwd does not report name of working directory" >&2
1491    { (exit 1); exit 1; }; }
1492
1493
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496   ac_srcdir_defaulted=yes
1497   # Try the directory containing this script, then the parent directory.
1498   ac_confdir=`$as_dirname -- "$0" ||
1499 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500          X"$0" : 'X\(//\)[^/]' \| \
1501          X"$0" : 'X\(//\)$' \| \
1502          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1503 echo X"$0" |
1504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)[^/].*/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\/\)$/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\).*/{
1517             s//\1/
1518             q
1519           }
1520           s/.*/./; q'`
1521   srcdir=$ac_confdir
1522   if test ! -r "$srcdir/$ac_unique_file"; then
1523     srcdir=..
1524   fi
1525 else
1526   ac_srcdir_defaulted=no
1527 fi
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1531    { (exit 1); exit 1; }; }
1532 fi
1533 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1534 ac_abs_confdir=`(
1535         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1536    { (exit 1); exit 1; }; }
1537         pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540   srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_env_${ac_var}_value=\$${ac_var}
1551   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559   # Omit some internal or obsolete options to make the list less imposing.
1560   # This message is too long to be a string in the A/UX 3.1 sh.
1561   cat <<_ACEOF
1562 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE.  See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572   -h, --help              display this help and exit
1573       --help=short        display options specific to this package
1574       --help=recursive    display the short help of all the included packages
1575   -V, --version           display version information and exit
1576   -q, --quiet, --silent   do not print \`checking...' messages
1577       --cache-file=FILE   cache test results in FILE [disabled]
1578   -C, --config-cache      alias for \`--cache-file=config.cache'
1579   -n, --no-create         do not create output files
1580       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583   --prefix=PREFIX         install architecture-independent files in PREFIX
1584                           [$ac_default_prefix]
1585   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1586                           [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596   --bindir=DIR           user executables [EPREFIX/bin]
1597   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1598   --libexecdir=DIR       program executables [EPREFIX/libexec]
1599   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1600   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1601   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1602   --libdir=DIR           object code libraries [EPREFIX/lib]
1603   --includedir=DIR       C header files [PREFIX/include]
1604   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR          info documentation [DATAROOTDIR/info]
1608   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR           man documentation [DATAROOTDIR/man]
1610   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1611   --htmldir=DIR          html documentation [DOCDIR]
1612   --dvidir=DIR           dvi documentation [DOCDIR]
1613   --pdfdir=DIR           pdf documentation [DOCDIR]
1614   --psdir=DIR            ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 X features:
1620   --x-includes=DIR    X include files are in DIR
1621   --x-libraries=DIR   X library files are in DIR
1622
1623 System types:
1624   --build=BUILD     configure for building on BUILD [guessed]
1625   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1626   --target=TARGET   configure for building compilers for TARGET [HOST]
1627 _ACEOF
1628 fi
1629
1630 if test -n "$ac_init_help"; then
1631   case $ac_init_help in
1632      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1633    esac
1634   cat <<\_ACEOF
1635
1636 Optional Features:
1637   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1638   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1639   --disable-gui           don't build GUI parts of the library
1640   --enable-monolithic     build wxWidgets as single library
1641   --enable-plugins        build parts of wxWidgets as loadable components
1642   --enable-official_build official build of wxWidgets (win32 DLL only)
1643   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1644   --disable-all-features  disable all optional features to build minimal library
1645   --enable-universal      use wxWidgets GUI controls instead of native ones
1646   --enable-nanox          use NanoX
1647   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1648   --enable-gpe            use GNOME PDA Environment features if possible
1649   --disable-shared        create static library instead of shared
1650   --enable-debug          same as debug_flag and debug_info
1651   --enable-stl            use STL for containers
1652   --enable-std_iostreams  use standard C++ stream classes
1653   --enable-std_string     use standard C++ string classes
1654   --disable-unicode       compile without Unicode support
1655   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1656   --enable-utf8           use UTF-8 representation for strings (Unix only)
1657   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1658   --enable-extended_rtti  use extended RTTI (XTI)
1659   --enable-omf            use OMF object format
1660   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1661   --enable-debug_info     create code with debugging information
1662   --disable-optimise      compile without optimisations
1663   --enable-debug_gdb      create code with extra GDB debugging information
1664   --enable-debug_cntxt    use wxDebugContext
1665   --enable-mem_tracing    create code with memory tracing
1666   --enable-profile        create code with profiling information
1667   --enable-no_rtti        create code without RTTI information
1668   --enable-no_exceptions  create code without C++ exceptions handling
1669   --enable-permissive     compile code disregarding strict ANSI
1670   --enable-no_deps        create code without dependency information
1671   --disable-vararg_macros don't use vararg macros, even if they are supported
1672   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1673   --enable-compat26       enable wxWidgets 2.6 compatibility
1674   --disable-compat28      disable wxWidgets 2.8 compatibility
1675   --disable-rpath         disable use of rpath for uninstalled builds
1676   --enable-objc_uniquifying enable Objective-C class name uniquifying
1677   --disable-visibility    disable use of ELF symbols visibility even if supported
1678   --enable-intl           use internationalization system
1679   --enable-xlocale        use x-locale support (requires wxLocale)
1680   --enable-config         use wxConfig (and derived) classes
1681   --enable-protocols      use wxProtocol and derived classes
1682   --enable-ftp            use wxFTP (requires wxProtocol
1683   --enable-http           use wxHTTP (requires wxProtocol
1684   --enable-fileproto      use wxFileProto class (requires wxProtocol
1685   --enable-sockets        use socket/network classes
1686   --enable-ipv6           enable IPv6 support in wxSocket
1687   --enable-ole            use OLE classes (Win32 only)
1688   --enable-dataobj        use data object classes
1689   --enable-ipc            use interprocess communication (wxSocket etc.)
1690   --enable-baseevtloop    use event loop in console programs too
1691   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1692   --enable-selectloop     use wxSelectDispatcher class
1693   --enable-apple_ieee     use the Apple IEEE codec
1694   --enable-arcstream      use wxArchive streams
1695   --enable-base64         use base64 encoding/decoding functions
1696   --enable-backtrace      use wxStackWalker class for getting backtraces
1697   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1698   --enable-cmdline        use wxCmdLineParser class
1699   --enable-datetime       use wxDateTime class
1700   --enable-debugreport    use wxDebugReport class
1701   --enable-dialupman      use dialup network classes
1702   --enable-dynlib         use wxLibrary class for DLL loading
1703   --enable-dynamicloader  use (new) wxDynamicLibrary class
1704   --enable-exceptions     build exception-safe library
1705   --enable-ffile          use wxFFile class
1706   --enable-file           use wxFile class
1707   --enable-filesystem     use virtual file systems classes
1708   --enable-fontenum       use wxFontEnumerator class
1709   --enable-fontmap        use font encodings conversion classes
1710   --enable-fs_archive     use virtual archive filesystems
1711   --enable-fs_inet        use virtual HTTP/FTP filesystems
1712   --enable-fs_zip         now replaced by fs_archive
1713   --enable-geometry       use geometry class
1714   --enable-log            use logging system
1715   --enable-longlong       use wxLongLong class
1716   --enable-mimetype       use wxMimeTypesManager
1717   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1718   --enable-snglinst       use wxSingleInstanceChecker class
1719   --enable-sound          use wxSound class
1720   --enable-stdpaths       use wxStandardPaths class
1721   --enable-stopwatch      use wxStopWatch class
1722   --enable-streams        use wxStream etc classes
1723   --enable-sysoptions     use wxSystemOptions
1724   --enable-tarstream      use wxTar streams
1725   --enable-textbuf        use wxTextBuffer class
1726   --enable-textfile       use wxTextFile class
1727   --enable-timer          use wxTimer class
1728   --enable-variant        use wxVariant class
1729   --enable-zipstream      use wxZip streams
1730   --enable-url            use wxURL class
1731   --enable-protocol       use wxProtocol class
1732   --enable-protocol-http  HTTP support in wxProtocol
1733   --enable-protocol-ftp   FTP support in wxProtocol
1734   --enable-protocol-file  FILE support in wxProtocol
1735   --enable-threads        use threads
1736   --enable-iniconf        use wxIniConfig (Win32 only)
1737   --enable-regkey         use wxRegKey class (Win32 only)
1738   --enable-docview        use document view architecture
1739   --enable-help           use help subsystem
1740   --enable-mshtmlhelp     use MS HTML Help (win32)
1741   --enable-html           use wxHTML sub-library
1742   --enable-htmlhelp       use wxHTML-based help
1743   --enable-xrc            use XRC resources sub-library
1744   --enable-aui            use AUI docking library
1745   --enable-propgrid       use wxPropertyGrid library
1746   --enable-stc            use wxStyledTextCtrl library
1747   --enable-constraints    use layout-constraints system
1748   --enable-loggui         use standard GUI logger
1749   --enable-logwin         use wxLogWindow
1750   --enable-logdialog      use wxLogDialog
1751   --enable-mdi            use multiple document interface architecture
1752   --enable-mdidoc         use docview architecture with MDI
1753   --enable-mediactrl      use wxMediaCtrl class
1754   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1755   --enable-webkit         use wxWebKitCtrl (Mac)
1756   --enable-richtext       use wxRichTextCtrl
1757   --enable-graphics_ctx   use graphics context 2D drawing API
1758   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1759   --enable-printarch      use printing architecture
1760   --enable-svg            use wxSVGFileDC device context
1761   --enable-clipboard      use wxClipboard class
1762   --enable-dnd            use Drag'n'Drop classes
1763   --enable-metafile       use win32 metafiles
1764   --disable-controls      disable compilation of all standard controls
1765   --enable-accel          use accelerators
1766   --enable-animatectrl    use wxAnimationCtrl class
1767   --enable-button         use wxButton class
1768   --enable-bmpbutton      use wxBitmapButton class
1769   --enable-bmpcombobox    use wxBitmapComboBox class
1770   --enable-calendar       use wxCalendarCtrl class
1771   --enable-caret          use wxCaret class
1772   --enable-checkbox       use wxCheckBox class
1773   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1774   --enable-choice         use wxChoice class
1775   --enable-choicebook     use wxChoicebook class
1776   --enable-collpane       use wxCollapsiblePane class
1777   --enable-colourpicker   use wxColourPickerCtrl class
1778   --enable-combobox       use wxComboBox class
1779   --enable-comboctrl      use wxComboCtrl class
1780   --enable-datepick       use wxDatePickerCtrl class
1781   --enable-dirpicker      use wxDirPickerCtrl class
1782   --enable-display        use wxDisplay class
1783   --enable-detect_sm      use code to detect X11 session manager
1784   --enable-editablebox    use wxEditableListBox class
1785   --enable-filepicker     use wxFilePickerCtrl class
1786   --enable-filectrl       use wxFileCtrl class
1787   --enable-fontpicker     use wxFontPickerCtrl class
1788   --enable-gauge          use wxGauge class
1789   --enable-grid           use wxGrid class
1790   --enable-dataviewctrl   use wxDataViewCtrl class
1791   --enable-hyperlink      use wxHyperlinkCtrl class
1792   --enable-imaglist       use wxImageList class
1793   --enable-listbook       use wxListbook class
1794   --enable-listbox        use wxListBox class
1795   --enable-listctrl       use wxListCtrl class
1796   --enable-notebook       use wxNotebook class
1797   --enable-notifmsg       use wxNotificationMessage class
1798   --enable-odcombobox     use wxOwnerDrawnComboBox class
1799   --enable-radiobox       use wxRadioBox class
1800   --enable-radiobtn       use wxRadioButton class
1801   --enable-sash           use wxSashWindow class
1802   --enable-scrollbar      use wxScrollBar class and scrollable windows
1803   --enable-searchctrl     use wxSearchCtrl class
1804   --enable-slider         use wxSlider class
1805   --enable-spinbtn        use wxSpinButton class
1806   --enable-spinctrl       use wxSpinCtrl class
1807   --enable-splitter       use wxSplitterWindow class
1808   --enable-statbmp        use wxStaticBitmap class
1809   --enable-statbox        use wxStaticBox class
1810   --enable-statline       use wxStaticLine class
1811   --enable-stattext       use wxStaticText class
1812   --enable-statusbar      use wxStatusBar class
1813   --enable-tabdialog      use wxTabControl class
1814   --enable-taskbaricon    use wxTaskBarIcon class
1815   --enable-textctrl       use wxTextCtrl class
1816   --enable-togglebtn      use wxToggleButton class
1817   --enable-toolbar        use wxToolBar class
1818   --enable-tbarnative     use native wxToolBar class
1819   --enable-treebook       use wxTreebook class
1820   --enable-toolbook       use wxToolbook class
1821   --enable-treectrl       use wxTreeCtrl class
1822   --enable-tipwindow      use wxTipWindow class
1823   --enable-popupwin       use wxPopUpWindow class
1824   --enable-commondlg      use all common dialogs
1825   --enable-aboutdlg       use wxAboutBox
1826   --enable-choicedlg      use wxChoiceDialog
1827   --enable-coldlg         use wxColourDialog
1828   --enable-filedlg        use wxFileDialog
1829   --enable-finddlg        use wxFindReplaceDialog
1830   --enable-fontdlg        use wxFontDialog
1831   --enable-dirdlg         use wxDirDialog
1832   --enable-msgdlg         use wxMessageDialog
1833   --enable-numberdlg      use wxNumberEntryDialog
1834   --enable-splash         use wxSplashScreen
1835   --enable-textdlg        use wxTextDialog
1836   --enable-tipdlg         use startup tips
1837   --enable-progressdlg    use wxProgressDialog
1838   --enable-wizarddlg      use wxWizard
1839   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1840   --enable-miniframe      use wxMiniFrame class
1841   --enable-tooltips       use wxToolTip class
1842   --enable-splines        use spline drawing code
1843   --enable-mousewheel     use mousewheel
1844   --enable-validators     use wxValidator and derived classes
1845   --enable-busyinfo       use wxBusyInfo
1846   --enable-joystick       use wxJoystick
1847   --enable-metafiles      use wxMetaFile (Win32 only)
1848   --enable-dragimage      use wxDragImage
1849   --enable-accessibility  enable accessibility support
1850   --enable-palette        use wxPalette class
1851   --enable-image          use wxImage class
1852   --enable-gif            use gif images (GIF file format)
1853   --enable-pcx            use pcx images (PCX file format)
1854   --enable-tga            use tga images (TGA file format)
1855   --enable-iff            use iff images (IFF file format)
1856   --enable-pnm            use pnm images (PNM file format)
1857   --enable-xpm            use xpm images (XPM file format)
1858   --enable-ico_cur        use Windows ICO and CUR formats
1859   --enable-dccache        cache temporary wxDC objects (Win32 only)
1860   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1861   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1862   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1863   --enable-wxdib          use wxDIB class (Win32 only)
1864   --enable-autoidman      use automatic ids management
1865   --disable-largefile     omit support for large files
1866   --disable-gtktest       do not try to compile and run a test GTK+ program
1867   --disable-gtktest       Do not try to compile and run a test GTK program
1868   --disable-sdltest       Do not try to compile and run a test SDL program
1869   --enable-omf            use OMF object format (OS/2)
1870   --disable-dependency-tracking
1871                           don't use dependency tracking even if the compiler
1872                           can
1873   --disable-precomp-headers
1874                           don't use precompiled headers even if compiler can
1875
1876 Optional Packages:
1877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1879   --without-subdirs       don't generate makefiles for samples/demos/...
1880   --with-flavour=NAME     specify a name to identify this build
1881   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1882   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1883   --with-motif            use Motif/Lesstif
1884   --with-osx_carbon       use Mac OS X (Carbon)
1885   --with-osx_cocoa        use Mac OS X (Cocoa)
1886   --with-mac              use Mac OS X (Default)
1887   --with-cocoa            use Cocoa
1888   --with-wine             use Wine
1889   --with-msw              use MS-Windows
1890   --with-pm               use OS/2 Presentation Manager
1891   --with-mgl              use SciTech MGL
1892   --with-directfb         use DirectFB
1893   --with-microwin         use MicroWindows
1894   --with-x11              use X11
1895   --with-libpng           use libpng (PNG image format)
1896   --with-libjpeg          use libjpeg (JPEG file format)
1897   --with-libtiff          use libtiff (TIFF file format)
1898   --with-libxpm           use libxpm (XPM file format)
1899   --with-libiconv         use libiconv (character conversion)
1900   --with-libmspack        use libmspack (CHM help files loading)
1901   --without-gtkprint      don't use GTK printing support
1902   --without-gnomeprint    don't use GNOME printing libraries
1903   --with-gnomevfs         use GNOME VFS for associating MIME types
1904   --with-hildon           use Hildon framework for Nokia 770
1905   --with-opengl           use OpenGL (or Mesa)
1906   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1907   --with-sdl              use SDL for audio on Unix
1908   --with-regex            enable support for wxRegEx class
1909   --with-zlib             use zlib for LZW compression
1910   --with-expat            enable XML support using expat parser
1911   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1912   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1913   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1914   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1915   --with-x                use the X Window System
1916   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1917   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1918   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1919   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1920   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1921
1922 Some influential environment variables:
1923   CC          C compiler command
1924   CFLAGS      C compiler flags
1925   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1926               nonstandard directory <lib dir>
1927   LIBS        libraries to pass to the linker, e.g. -l<library>
1928   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1929               you have headers in a nonstandard directory <include dir>
1930   CPP         C preprocessor
1931   CXX         C++ compiler command
1932   CXXFLAGS    C++ compiler flags
1933   PKG_CONFIG  path to pkg-config utility
1934   DIRECTFB_CFLAGS
1935               C compiler flags for DIRECTFB, overriding pkg-config
1936   DIRECTFB_LIBS
1937               linker flags for DIRECTFB, overriding pkg-config
1938   XMKMF       Path to xmkmf, Makefile generator for X Window System
1939   PANGOX_CFLAGS
1940               C compiler flags for PANGOX, overriding pkg-config
1941   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1942   PANGOFT2_CFLAGS
1943               C compiler flags for PANGOFT2, overriding pkg-config
1944   PANGOFT2_LIBS
1945               linker flags for PANGOFT2, overriding pkg-config
1946   PANGOXFT_CFLAGS
1947               C compiler flags for PANGOXFT, overriding pkg-config
1948   PANGOXFT_LIBS
1949               linker flags for PANGOXFT, overriding pkg-config
1950   GTKPRINT_CFLAGS
1951               C compiler flags for GTKPRINT, overriding pkg-config
1952   GTKPRINT_LIBS
1953               linker flags for GTKPRINT, overriding pkg-config
1954   LIBGNOMEPRINTUI_CFLAGS
1955               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1956   LIBGNOMEPRINTUI_LIBS
1957               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1958   GNOMEVFS_CFLAGS
1959               C compiler flags for GNOMEVFS, overriding pkg-config
1960   GNOMEVFS_LIBS
1961               linker flags for GNOMEVFS, overriding pkg-config
1962   HILDON_CFLAGS
1963               C compiler flags for HILDON, overriding pkg-config
1964   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1965   CAIRO_CFLAGS
1966               C compiler flags for CAIRO, overriding pkg-config
1967   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1968   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1969   GST_LIBS    linker flags for GST, overriding pkg-config
1970
1971 Use these variables to override the choices made by `configure' or to help
1972 it to find libraries and programs with nonstandard names/locations.
1973
1974 Report bugs to <wx-dev@lists.wxwidgets.org>.
1975 _ACEOF
1976 ac_status=$?
1977 fi
1978
1979 if test "$ac_init_help" = "recursive"; then
1980   # If there are subdirs, report their specific --help.
1981   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1982     test -d "$ac_dir" || continue
1983     ac_builddir=.
1984
1985 case "$ac_dir" in
1986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1987 *)
1988   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1989   # A ".." for each directory in $ac_dir_suffix.
1990   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1991   case $ac_top_builddir_sub in
1992   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1993   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1994   esac ;;
1995 esac
1996 ac_abs_top_builddir=$ac_pwd
1997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1998 # for backward compatibility:
1999 ac_top_builddir=$ac_top_build_prefix
2000
2001 case $srcdir in
2002   .)  # We are building in place.
2003     ac_srcdir=.
2004     ac_top_srcdir=$ac_top_builddir_sub
2005     ac_abs_top_srcdir=$ac_pwd ;;
2006   [\\/]* | ?:[\\/]* )  # Absolute name.
2007     ac_srcdir=$srcdir$ac_dir_suffix;
2008     ac_top_srcdir=$srcdir
2009     ac_abs_top_srcdir=$srcdir ;;
2010   *) # Relative name.
2011     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2012     ac_top_srcdir=$ac_top_build_prefix$srcdir
2013     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2014 esac
2015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2016
2017     cd "$ac_dir" || { ac_status=$?; continue; }
2018     # Check for guested configure.
2019     if test -f "$ac_srcdir/configure.gnu"; then
2020       echo &&
2021       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2022     elif test -f "$ac_srcdir/configure"; then
2023       echo &&
2024       $SHELL "$ac_srcdir/configure" --help=recursive
2025     else
2026       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2027     fi || ac_status=$?
2028     cd "$ac_pwd" || { ac_status=$?; break; }
2029   done
2030 fi
2031
2032 test -n "$ac_init_help" && exit $ac_status
2033 if $ac_init_version; then
2034   cat <<\_ACEOF
2035 wxWidgets configure 2.9.0
2036 generated by GNU Autoconf 2.61
2037
2038 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2039 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2040 This configure script is free software; the Free Software Foundation
2041 gives unlimited permission to copy, distribute and modify it.
2042 _ACEOF
2043   exit
2044 fi
2045 cat >config.log <<_ACEOF
2046 This file contains any messages produced by compilers while
2047 running configure, to aid debugging if configure makes a mistake.
2048
2049 It was created by wxWidgets $as_me 2.9.0, which was
2050 generated by GNU Autoconf 2.61.  Invocation command line was
2051
2052   $ $0 $@
2053
2054 _ACEOF
2055 exec 5>>config.log
2056 {
2057 cat <<_ASUNAME
2058 ## --------- ##
2059 ## Platform. ##
2060 ## --------- ##
2061
2062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2067
2068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2069 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2070
2071 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2072 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2074 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2075 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2076 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2077 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2078
2079 _ASUNAME
2080
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   echo "PATH: $as_dir"
2087 done
2088 IFS=$as_save_IFS
2089
2090 } >&5
2091
2092 cat >&5 <<_ACEOF
2093
2094
2095 ## ----------- ##
2096 ## Core tests. ##
2097 ## ----------- ##
2098
2099 _ACEOF
2100
2101
2102 # Keep a trace of the command line.
2103 # Strip out --no-create and --no-recursion so they do not pile up.
2104 # Strip out --silent because we don't want to record it for future runs.
2105 # Also quote any args containing shell meta-characters.
2106 # Make two passes to allow for proper duplicate-argument suppression.
2107 ac_configure_args=
2108 ac_configure_args0=
2109 ac_configure_args1=
2110 ac_must_keep_next=false
2111 for ac_pass in 1 2
2112 do
2113   for ac_arg
2114   do
2115     case $ac_arg in
2116     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2117     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2118     | -silent | --silent | --silen | --sile | --sil)
2119       continue ;;
2120     *\'*)
2121       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2122     esac
2123     case $ac_pass in
2124     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2125     2)
2126       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2127       if test $ac_must_keep_next = true; then
2128         ac_must_keep_next=false # Got value, back to normal.
2129       else
2130         case $ac_arg in
2131           *=* | --config-cache | -C | -disable-* | --disable-* \
2132           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2133           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2134           | -with-* | --with-* | -without-* | --without-* | --x)
2135             case "$ac_configure_args0 " in
2136               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2137             esac
2138             ;;
2139           -* ) ac_must_keep_next=true ;;
2140         esac
2141       fi
2142       ac_configure_args="$ac_configure_args '$ac_arg'"
2143       ;;
2144     esac
2145   done
2146 done
2147 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2148 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2149
2150 # When interrupted or exit'd, cleanup temporary files, and complete
2151 # config.log.  We remove comments because anyway the quotes in there
2152 # would cause problems or look ugly.
2153 # WARNING: Use '\'' to represent an apostrophe within the trap.
2154 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2155 trap 'exit_status=$?
2156   # Save into config.log some information that might help in debugging.
2157   {
2158     echo
2159
2160     cat <<\_ASBOX
2161 ## ---------------- ##
2162 ## Cache variables. ##
2163 ## ---------------- ##
2164 _ASBOX
2165     echo
2166     # The following way of writing the cache mishandles newlines in values,
2167 (
2168   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169     eval ac_val=\$$ac_var
2170     case $ac_val in #(
2171     *${as_nl}*)
2172       case $ac_var in #(
2173       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2174 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2175       esac
2176       case $ac_var in #(
2177       _ | IFS | as_nl) ;; #(
2178       *) $as_unset $ac_var ;;
2179       esac ;;
2180     esac
2181   done
2182   (set) 2>&1 |
2183     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184     *${as_nl}ac_space=\ *)
2185       sed -n \
2186         "s/'\''/'\''\\\\'\'''\''/g;
2187           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188       ;; #(
2189     *)
2190       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191       ;;
2192     esac |
2193     sort
2194 )
2195     echo
2196
2197     cat <<\_ASBOX
2198 ## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##
2201 _ASBOX
2202     echo
2203     for ac_var in $ac_subst_vars
2204     do
2205       eval ac_val=\$$ac_var
2206       case $ac_val in
2207       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208       esac
2209       echo "$ac_var='\''$ac_val'\''"
2210     done | sort
2211     echo
2212
2213     if test -n "$ac_subst_files"; then
2214       cat <<\_ASBOX
2215 ## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##
2218 _ASBOX
2219       echo
2220       for ac_var in $ac_subst_files
2221       do
2222         eval ac_val=\$$ac_var
2223         case $ac_val in
2224         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225         esac
2226         echo "$ac_var='\''$ac_val'\''"
2227       done | sort
2228       echo
2229     fi
2230
2231     if test -s confdefs.h; then
2232       cat <<\_ASBOX
2233 ## ----------- ##
2234 ## confdefs.h. ##
2235 ## ----------- ##
2236 _ASBOX
2237       echo
2238       cat confdefs.h
2239       echo
2240     fi
2241     test "$ac_signal" != 0 &&
2242       echo "$as_me: caught signal $ac_signal"
2243     echo "$as_me: exit $exit_status"
2244   } >&5
2245   rm -f core *.core core.conftest.* &&
2246     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247     exit $exit_status
2248 ' 0
2249 for ac_signal in 1 2 13 15; do
2250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2251 done
2252 ac_signal=0
2253
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2256
2257 # Predefined preprocessor variables.
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2261 _ACEOF
2262
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2266 _ACEOF
2267
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 _ACEOF
2272
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_STRING "$PACKAGE_STRING"
2276 _ACEOF
2277
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281 _ACEOF
2282
2283
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer explicitly selected file to automatically selected ones.
2286 if test -n "$CONFIG_SITE"; then
2287   set x "$CONFIG_SITE"
2288 elif test "x$prefix" != xNONE; then
2289   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2290 else
2291   set x "$ac_default_prefix/share/config.site" \
2292         "$ac_default_prefix/etc/config.site"
2293 fi
2294 shift
2295 for ac_site_file
2296 do
2297   if test -r "$ac_site_file"; then
2298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2299 echo "$as_me: loading site script $ac_site_file" >&6;}
2300     sed 's/^/| /' "$ac_site_file" >&5
2301     . "$ac_site_file"
2302   fi
2303 done
2304
2305 if test -r "$cache_file"; then
2306   # Some versions of bash will fail to source /dev/null (special
2307   # files actually), so we avoid doing that.
2308   if test -f "$cache_file"; then
2309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2310 echo "$as_me: loading cache $cache_file" >&6;}
2311     case $cache_file in
2312       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2313       *)                      . "./$cache_file";;
2314     esac
2315   fi
2316 else
2317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2318 echo "$as_me: creating cache $cache_file" >&6;}
2319   >$cache_file
2320 fi
2321
2322 # Check that the precious variables saved in the cache have kept the same
2323 # value.
2324 ac_cache_corrupted=false
2325 for ac_var in $ac_precious_vars; do
2326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2327   eval ac_new_set=\$ac_env_${ac_var}_set
2328   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2329   eval ac_new_val=\$ac_env_${ac_var}_value
2330   case $ac_old_set,$ac_new_set in
2331     set,)
2332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2334       ac_cache_corrupted=: ;;
2335     ,set)
2336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2338       ac_cache_corrupted=: ;;
2339     ,);;
2340     *)
2341       if test "x$ac_old_val" != "x$ac_new_val"; then
2342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2345 echo "$as_me:   former value:  $ac_old_val" >&2;}
2346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2347 echo "$as_me:   current value: $ac_new_val" >&2;}
2348         ac_cache_corrupted=:
2349       fi;;
2350   esac
2351   # Pass precious variables to config.status.
2352   if test "$ac_new_set" = set; then
2353     case $ac_new_val in
2354     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2355     *) ac_arg=$ac_var=$ac_new_val ;;
2356     esac
2357     case " $ac_configure_args " in
2358       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2359       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2360     esac
2361   fi
2362 done
2363 if $ac_cache_corrupted; then
2364   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2365 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2366   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2367 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2368    { (exit 1); exit 1; }; }
2369 fi
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402
2403
2404
2405 ac_aux_dir=
2406 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2407   if test -f "$ac_dir/install-sh"; then
2408     ac_aux_dir=$ac_dir
2409     ac_install_sh="$ac_aux_dir/install-sh -c"
2410     break
2411   elif test -f "$ac_dir/install.sh"; then
2412     ac_aux_dir=$ac_dir
2413     ac_install_sh="$ac_aux_dir/install.sh -c"
2414     break
2415   elif test -f "$ac_dir/shtool"; then
2416     ac_aux_dir=$ac_dir
2417     ac_install_sh="$ac_aux_dir/shtool install -c"
2418     break
2419   fi
2420 done
2421 if test -z "$ac_aux_dir"; then
2422   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2423 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2434
2435
2436 # Make sure we can run config.sub.
2437 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2438   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2439 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2440    { (exit 1); exit 1; }; }
2441
2442 { echo "$as_me:$LINENO: checking build system type" >&5
2443 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2444 if test "${ac_cv_build+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   ac_build_alias=$build_alias
2448 test "x$ac_build_alias" = x &&
2449   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2450 test "x$ac_build_alias" = x &&
2451   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2452 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2453    { (exit 1); exit 1; }; }
2454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2455   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2456 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2457    { (exit 1); exit 1; }; }
2458
2459 fi
2460 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2461 echo "${ECHO_T}$ac_cv_build" >&6; }
2462 case $ac_cv_build in
2463 *-*-*) ;;
2464 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2465 echo "$as_me: error: invalid value of canonical build" >&2;}
2466    { (exit 1); exit 1; }; };;
2467 esac
2468 build=$ac_cv_build
2469 ac_save_IFS=$IFS; IFS='-'
2470 set x $ac_cv_build
2471 shift
2472 build_cpu=$1
2473 build_vendor=$2
2474 shift; shift
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2477 build_os=$*
2478 IFS=$ac_save_IFS
2479 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480
2481
2482 { echo "$as_me:$LINENO: checking host system type" >&5
2483 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2484 if test "${ac_cv_host+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test "x$host_alias" = x; then
2488   ac_cv_host=$ac_cv_build
2489 else
2490   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2492 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2493    { (exit 1); exit 1; }; }
2494 fi
2495
2496 fi
2497 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2498 echo "${ECHO_T}$ac_cv_host" >&6; }
2499 case $ac_cv_host in
2500 *-*-*) ;;
2501 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2502 echo "$as_me: error: invalid value of canonical host" >&2;}
2503    { (exit 1); exit 1; }; };;
2504 esac
2505 host=$ac_cv_host
2506 ac_save_IFS=$IFS; IFS='-'
2507 set x $ac_cv_host
2508 shift
2509 host_cpu=$1
2510 host_vendor=$2
2511 shift; shift
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2514 host_os=$*
2515 IFS=$ac_save_IFS
2516 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2517
2518
2519 { echo "$as_me:$LINENO: checking target system type" >&5
2520 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2521 if test "${ac_cv_target+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   if test "x$target_alias" = x; then
2525   ac_cv_target=$ac_cv_host
2526 else
2527   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2528     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2529 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 fi
2534 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2535 echo "${ECHO_T}$ac_cv_target" >&6; }
2536 case $ac_cv_target in
2537 *-*-*) ;;
2538 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2539 echo "$as_me: error: invalid value of canonical target" >&2;}
2540    { (exit 1); exit 1; }; };;
2541 esac
2542 target=$ac_cv_target
2543 ac_save_IFS=$IFS; IFS='-'
2544 set x $ac_cv_target
2545 shift
2546 target_cpu=$1
2547 target_vendor=$2
2548 shift; shift
2549 # Remember, the first character of IFS is used to create $*,
2550 # except with old shells:
2551 target_os=$*
2552 IFS=$ac_save_IFS
2553 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554
2555
2556 # The aliases save the names the user supplied, while $host etc.
2557 # will get canonicalized.
2558 test -n "$target_alias" &&
2559   test "$program_prefix$program_suffix$program_transform_name" = \
2560     NONENONEs,x,x, &&
2561   program_prefix=${target_alias}-
2562
2563
2564
2565 wx_major_version_number=2
2566 wx_minor_version_number=9
2567 wx_release_number=0
2568 wx_subrelease_number=0
2569
2570 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2571 WX_VERSION=$WX_RELEASE.$wx_release_number
2572 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2573
2574 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2575
2576
2577 wx_top_builddir="`pwd`"
2578
2579
2580
2581
2582 USE_UNIX=1
2583 USE_OS2=0
2584 USE_WIN32=0
2585 USE_DOS=0
2586 USE_BEOS=0
2587 USE_MAC=0
2588
2589 USE_AIX=
2590 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2591 USE_GNU=                            USE_HPUX=
2592 USE_LINUX=
2593 USE_NETBSD=
2594 USE_OPENBSD=
2595 USE_OSF=                            USE_SGI=
2596 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2597 USE_ULTRIX=
2598 USE_UNIXWARE=
2599
2600 USE_ALPHA=
2601
2602 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2603
2604 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2605
2606 DEFAULT_wxUSE_COCOA=0
2607 DEFAULT_wxUSE_GTK=0
2608 DEFAULT_wxUSE_OSX_CARBON=0
2609 DEFAULT_wxUSE_OSX_COCOA=0
2610 DEFAULT_wxUSE_MGL=0
2611 DEFAULT_wxUSE_MICROWIN=0
2612 DEFAULT_wxUSE_MOTIF=0
2613 DEFAULT_wxUSE_MSW=0
2614 DEFAULT_wxUSE_PM=0
2615 DEFAULT_wxUSE_X11=0
2616 DEFAULT_wxUSE_DFB=0
2617
2618 DEFAULT_DEFAULT_wxUSE_COCOA=0
2619 DEFAULT_DEFAULT_wxUSE_GTK=0
2620 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2621 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2622 DEFAULT_DEFAULT_wxUSE_MGL=0
2623 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2624 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2625 DEFAULT_DEFAULT_wxUSE_MSW=0
2626 DEFAULT_DEFAULT_wxUSE_PM=0
2627 DEFAULT_DEFAULT_wxUSE_X11=0
2628 DEFAULT_DEFAULT_wxUSE_DFB=0
2629
2630 PROGRAM_EXT=
2631 SO_SUFFIX=so
2632 SAMPLES_RPATH_FLAG=
2633 SAMPLES_RPATH_POSTLINK=
2634
2635 DEFAULT_STD_FLAG=yes
2636
2637 case "${host}" in
2638   *-hp-hpux* )
2639     USE_HPUX=1
2640     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2641     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2642     SO_SUFFIX=sl
2643     cat >>confdefs.h <<\_ACEOF
2644 #define __HPUX__ 1
2645 _ACEOF
2646
2647
2648             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2649   ;;
2650   *-*-linux* )
2651     USE_LINUX=1
2652     cat >>confdefs.h <<\_ACEOF
2653 #define __LINUX__ 1
2654 _ACEOF
2655
2656     TMP=`uname -m`
2657     if test "x$TMP" = "xalpha"; then
2658       USE_ALPHA=1
2659       cat >>confdefs.h <<\_ACEOF
2660 #define __ALPHA__ 1
2661 _ACEOF
2662
2663     fi
2664     DEFAULT_DEFAULT_wxUSE_GTK=1
2665   ;;
2666   *-*-gnu* | *-*-k*bsd*-gnu )
2667     USE_GNU=1
2668     TMP=`uname -m`
2669     if test "x$TMP" = "xalpha"; then
2670       USE_ALPHA=1
2671       cat >>confdefs.h <<\_ACEOF
2672 #define __ALPHA__ 1
2673 _ACEOF
2674
2675     fi
2676     DEFAULT_DEFAULT_wxUSE_GTK=1
2677   ;;
2678   *-*-irix5* | *-*-irix6* )
2679     USE_SGI=1
2680     USE_SVR4=1
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __SGI__ 1
2683 _ACEOF
2684
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SVR4__ 1
2687 _ACEOF
2688
2689     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2690   ;;
2691   *-*-solaris2* )
2692     USE_SUN=1
2693     USE_SOLARIS=1
2694     USE_SVR4=1
2695     cat >>confdefs.h <<\_ACEOF
2696 #define __SUN__ 1
2697 _ACEOF
2698
2699     cat >>confdefs.h <<\_ACEOF
2700 #define __SOLARIS__ 1
2701 _ACEOF
2702
2703     cat >>confdefs.h <<\_ACEOF
2704 #define __SVR4__ 1
2705 _ACEOF
2706
2707     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2708     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2709   ;;
2710   *-*-sunos4* )
2711     USE_SUN=1
2712     USE_SUNOS=1
2713     USE_BSD=1
2714     cat >>confdefs.h <<\_ACEOF
2715 #define __SUN__ 1
2716 _ACEOF
2717
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __SUNOS__ 1
2720 _ACEOF
2721
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __BSD__ 1
2724 _ACEOF
2725
2726     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2727   ;;
2728   *-*-freebsd*)
2729     USE_BSD=1
2730     USE_FREEBSD=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __FREEBSD__ 1
2733 _ACEOF
2734
2735     cat >>confdefs.h <<\_ACEOF
2736 #define __BSD__ 1
2737 _ACEOF
2738
2739     DEFAULT_DEFAULT_wxUSE_GTK=1
2740   ;;
2741   *-*-openbsd*|*-*-mirbsd*)
2742     USE_BSD=1
2743     USE_OPENBSD=1
2744     cat >>confdefs.h <<\_ACEOF
2745 #define __OPENBSD__ 1
2746 _ACEOF
2747
2748     cat >>confdefs.h <<\_ACEOF
2749 #define __BSD__ 1
2750 _ACEOF
2751
2752     DEFAULT_DEFAULT_wxUSE_GTK=1
2753   ;;
2754   *-*-netbsd*)
2755     USE_BSD=1
2756     USE_NETBSD=1
2757     cat >>confdefs.h <<\_ACEOF
2758 #define __NETBSD__ 1
2759 _ACEOF
2760
2761     cat >>confdefs.h <<\_ACEOF
2762 #define __BSD__ 1
2763 _ACEOF
2764
2765     DEFAULT_DEFAULT_wxUSE_GTK=1
2766     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2767
2768             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2769   ;;
2770   *-*-osf* )
2771     USE_ALPHA=1
2772     USE_OSF=1
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __ALPHA__ 1
2775 _ACEOF
2776
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __OSF__ 1
2779 _ACEOF
2780
2781     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2782     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2783   ;;
2784   *-*-dgux5* )
2785     USE_ALPHA=1
2786     USE_SVR4=1
2787     cat >>confdefs.h <<\_ACEOF
2788 #define __ALPHA__ 1
2789 _ACEOF
2790
2791     cat >>confdefs.h <<\_ACEOF
2792 #define __SVR4__ 1
2793 _ACEOF
2794
2795     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2796   ;;
2797   *-*-sysv5* )
2798     USE_SYSV=1
2799     USE_SVR4=1
2800     cat >>confdefs.h <<\_ACEOF
2801 #define __SYSV__ 1
2802 _ACEOF
2803
2804     cat >>confdefs.h <<\_ACEOF
2805 #define __SVR4__ 1
2806 _ACEOF
2807
2808     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2809   ;;
2810   *-*-aix* )
2811     USE_AIX=1
2812     USE_SYSV=1
2813     USE_SVR4=1
2814                         SO_SUFFIX=a
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __AIX__ 1
2817 _ACEOF
2818
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __SYSV__ 1
2821 _ACEOF
2822
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __SVR4__ 1
2825 _ACEOF
2826
2827     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2828   ;;
2829
2830   *-*-*UnixWare*)
2831     USE_SYSV=1
2832     USE_SVR4=1
2833     USE_UNIXWARE=1
2834     cat >>confdefs.h <<\_ACEOF
2835 #define __UNIXWARE__ 1
2836 _ACEOF
2837
2838   ;;
2839
2840   *-*-cygwin* | *-*-mingw32* )
2841                 SO_SUFFIX=dll
2842     PROGRAM_EXT=".exe"
2843     DEFAULT_DEFAULT_wxUSE_MSW=1
2844   ;;
2845
2846   *-pc-msdosdjgpp )
2847     USE_UNIX=0
2848     USE_DOS=1
2849     cat >>confdefs.h <<\_ACEOF
2850 #define __DOS__ 1
2851 _ACEOF
2852
2853     PROGRAM_EXT=".exe"
2854     DEFAULT_DEFAULT_wxUSE_MGL=1
2855   ;;
2856
2857   *-pc-os2_emx | *-pc-os2-emx )
2858     cat >>confdefs.h <<\_ACEOF
2859 #define __EMX__ 1
2860 _ACEOF
2861
2862     USE_OS2=1
2863     cat >>confdefs.h <<\_ACEOF
2864 #define __OS2__ 1
2865 _ACEOF
2866
2867     PROGRAM_EXT=".exe"
2868     DEFAULT_DEFAULT_wxUSE_PM=1
2869         CXX=gcc
2870     LDFLAGS="$LDFLAGS -Zcrtdll"
2871                         ac_executable_extensions=".exe"
2872     export ac_executable_extensions
2873             ac_save_IFS="$IFS"
2874     IFS='\\'
2875     ac_TEMP_PATH=
2876     for ac_dir in $PATH; do
2877       IFS=$ac_save_IFS
2878       if test -z "$ac_TEMP_PATH"; then
2879         ac_TEMP_PATH="$ac_dir"
2880       else
2881         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2882       fi
2883     done
2884     export PATH="$ac_TEMP_PATH"
2885     unset ac_TEMP_PATH
2886     DEFAULT_STD_FLAG=no
2887   ;;
2888
2889   *-*-darwin* )
2890         USE_BSD=1
2891     USE_DARWIN=1
2892     SO_SUFFIX=dylib
2893     cat >>confdefs.h <<\_ACEOF
2894 #define __BSD__ 1
2895 _ACEOF
2896
2897     cat >>confdefs.h <<\_ACEOF
2898 #define __DARWIN__ 1
2899 _ACEOF
2900
2901     cat >>confdefs.h <<\_ACEOF
2902 #define TARGET_CARBON 1
2903 _ACEOF
2904
2905     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2906     DEFAULT_STD_FLAG=no
2907   ;;
2908   powerpc-apple-macos* )
2909         USE_UNIX=0
2910             ac_cv_c_bigendian=yes
2911     SO_SUFFIX=shlib
2912             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2913     DEFAULT_STD_FLAG=no
2914   ;;
2915
2916   *-*-beos* )
2917         USE_BEOS=1
2918     cat >>confdefs.h <<\_ACEOF
2919 #define __BEOS__ 1
2920 _ACEOF
2921
2922   ;;
2923
2924   *)
2925     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2926 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2927     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2928 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2929
2930     DEFAULT_DEFAULT_wxUSE_X11=1
2931     DEFAULT_wxUSE_SHARED=no
2932 esac
2933
2934
2935
2936 DEFAULT_wxUSE_ALL_FEATURES=yes
2937
2938 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2939 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2940
2941 DEFAULT_wxUSE_DMALLOC=no
2942 DEFAULT_wxUSE_LIBGNOMEVFS=no
2943 DEFAULT_wxUSE_LIBHILDON=no
2944 DEFAULT_wxUSE_LIBMSPACK=no
2945 DEFAULT_wxUSE_LIBSDL=no
2946 DEFAULT_wxUSE_OPENGL=no
2947
2948 DEFAULT_wxUSE_ACCESSIBILITY=no
2949 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2950 DEFAULT_wxUSE_IPV6=no
2951 DEFAULT_wxUSE_MEDIACTRL=no
2952 DEFAULT_wxUSE_TAB_DIALOG=no
2953 DEFAULT_wxUSE_GSTREAMER8=no
2954
2955 DEFAULT_wxUSE_UNICODE_UTF8=auto
2956 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2957
2958 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2959
2960 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2961
2962 DEFAULT_wxUSE_GTK2=yes
2963
2964 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2965
2966
2967
2968
2969
2970           enablestring=disable
2971           defaultval=
2972           if test -z "$defaultval"; then
2973               if test x"$enablestring" = xdisable; then
2974                   defaultval=yes
2975               else
2976                   defaultval=no
2977               fi
2978           fi
2979
2980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2981 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2982           # Check whether --enable-gui was given.
2983 if test "${enable_gui+set}" = set; then
2984   enableval=$enable_gui;
2985                           if test "$enableval" = yes; then
2986                             wx_cv_use_gui='wxUSE_GUI=yes'
2987                           else
2988                             wx_cv_use_gui='wxUSE_GUI=no'
2989                           fi
2990
2991 else
2992
2993                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2994
2995 fi
2996
2997
2998           eval "$wx_cv_use_gui"
2999
3000           if test x"$enablestring" = xdisable; then
3001             if test $wxUSE_GUI = yes; then
3002               result=no
3003             else
3004               result=yes
3005             fi
3006           else
3007             result=$wxUSE_GUI
3008           fi
3009
3010           { echo "$as_me:$LINENO: result: $result" >&5
3011 echo "${ECHO_T}$result" >&6; }
3012
3013
3014           enablestring=
3015           defaultval=
3016           if test -z "$defaultval"; then
3017               if test x"$enablestring" = xdisable; then
3018                   defaultval=yes
3019               else
3020                   defaultval=no
3021               fi
3022           fi
3023
3024           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3025 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3026           # Check whether --enable-monolithic was given.
3027 if test "${enable_monolithic+set}" = set; then
3028   enableval=$enable_monolithic;
3029                           if test "$enableval" = yes; then
3030                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3031                           else
3032                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3033                           fi
3034
3035 else
3036
3037                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3038
3039 fi
3040
3041
3042           eval "$wx_cv_use_monolithic"
3043
3044           if test x"$enablestring" = xdisable; then
3045             if test $wxUSE_MONOLITHIC = yes; then
3046               result=no
3047             else
3048               result=yes
3049             fi
3050           else
3051             result=$wxUSE_MONOLITHIC
3052           fi
3053
3054           { echo "$as_me:$LINENO: result: $result" >&5
3055 echo "${ECHO_T}$result" >&6; }
3056
3057
3058           enablestring=
3059           defaultval=
3060           if test -z "$defaultval"; then
3061               if test x"$enablestring" = xdisable; then
3062                   defaultval=yes
3063               else
3064                   defaultval=no
3065               fi
3066           fi
3067
3068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3069 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3070           # Check whether --enable-plugins was given.
3071 if test "${enable_plugins+set}" = set; then
3072   enableval=$enable_plugins;
3073                           if test "$enableval" = yes; then
3074                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3075                           else
3076                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3077                           fi
3078
3079 else
3080
3081                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3082
3083 fi
3084
3085
3086           eval "$wx_cv_use_plugins"
3087
3088           if test x"$enablestring" = xdisable; then
3089             if test $wxUSE_PLUGINS = yes; then
3090               result=no
3091             else
3092               result=yes
3093             fi
3094           else
3095             result=$wxUSE_PLUGINS
3096           fi
3097
3098           { echo "$as_me:$LINENO: result: $result" >&5
3099 echo "${ECHO_T}$result" >&6; }
3100
3101
3102           withstring=without
3103           defaultval=$wxUSE_ALL_FEATURES
3104           if test -z "$defaultval"; then
3105               if test x"$withstring" = xwithout; then
3106                   defaultval=yes
3107               else
3108                   defaultval=no
3109               fi
3110           fi
3111           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3112 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3113
3114 # Check whether --with-subdirs was given.
3115 if test "${with_subdirs+set}" = set; then
3116   withval=$with_subdirs;
3117                         if test "$withval" = yes; then
3118                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3119                         else
3120                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3121                         fi
3122
3123 else
3124
3125                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3126
3127 fi
3128
3129
3130           eval "$wx_cv_use_subdirs"
3131
3132           if test x"$withstring" = xwithout; then
3133             if test $wxWITH_SUBDIRS = yes; then
3134               result=no
3135             else
3136               result=yes
3137             fi
3138           else
3139             result=$wxWITH_SUBDIRS
3140           fi
3141
3142           { echo "$as_me:$LINENO: result: $result" >&5
3143 echo "${ECHO_T}$result" >&6; }
3144
3145
3146 # Check whether --with-flavour was given.
3147 if test "${with_flavour+set}" = set; then
3148   withval=$with_flavour; WX_FLAVOUR="$withval"
3149 fi
3150
3151
3152           enablestring=
3153           defaultval=
3154           if test -z "$defaultval"; then
3155               if test x"$enablestring" = xdisable; then
3156                   defaultval=yes
3157               else
3158                   defaultval=no
3159               fi
3160           fi
3161
3162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3163 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3164           # Check whether --enable-official_build was given.
3165 if test "${enable_official_build+set}" = set; then
3166   enableval=$enable_official_build;
3167                           if test "$enableval" = yes; then
3168                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3169                           else
3170                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3171                           fi
3172
3173 else
3174
3175                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3176
3177 fi
3178
3179
3180           eval "$wx_cv_use_official_build"
3181
3182           if test x"$enablestring" = xdisable; then
3183             if test $wxUSE_OFFICIAL_BUILD = yes; then
3184               result=no
3185             else
3186               result=yes
3187             fi
3188           else
3189             result=$wxUSE_OFFICIAL_BUILD
3190           fi
3191
3192           { echo "$as_me:$LINENO: result: $result" >&5
3193 echo "${ECHO_T}$result" >&6; }
3194
3195 # Check whether --enable-vendor was given.
3196 if test "${enable_vendor+set}" = set; then
3197   enableval=$enable_vendor; VENDOR="$enableval"
3198 fi
3199
3200 if test "x$VENDOR" = "x"; then
3201     VENDOR="custom"
3202 fi
3203
3204
3205           enablestring=disable
3206           defaultval=
3207           if test -z "$defaultval"; then
3208               if test x"$enablestring" = xdisable; then
3209                   defaultval=yes
3210               else
3211                   defaultval=no
3212               fi
3213           fi
3214
3215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3216 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3217           # Check whether --enable-all-features was given.
3218 if test "${enable_all_features+set}" = set; then
3219   enableval=$enable_all_features;
3220                           if test "$enableval" = yes; then
3221                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3222                           else
3223                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3224                           fi
3225
3226 else
3227
3228                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3229
3230 fi
3231
3232
3233           eval "$wx_cv_use_all_features"
3234
3235           if test x"$enablestring" = xdisable; then
3236             if test $wxUSE_ALL_FEATURES = yes; then
3237               result=no
3238             else
3239               result=yes
3240             fi
3241           else
3242             result=$wxUSE_ALL_FEATURES
3243           fi
3244
3245           { echo "$as_me:$LINENO: result: $result" >&5
3246 echo "${ECHO_T}$result" >&6; }
3247
3248
3249
3250 if test "$wxUSE_GUI" = "yes"; then
3251
3252
3253           enablestring=
3254           defaultval=
3255           if test -z "$defaultval"; then
3256               if test x"$enablestring" = xdisable; then
3257                   defaultval=yes
3258               else
3259                   defaultval=no
3260               fi
3261           fi
3262
3263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3264 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3265           # Check whether --enable-universal was given.
3266 if test "${enable_universal+set}" = set; then
3267   enableval=$enable_universal;
3268                           if test "$enableval" = yes; then
3269                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3270                           else
3271                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3272                           fi
3273
3274 else
3275
3276                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3277
3278 fi
3279
3280
3281           eval "$wx_cv_use_universal"
3282
3283           if test x"$enablestring" = xdisable; then
3284             if test $wxUSE_UNIVERSAL = yes; then
3285               result=no
3286             else
3287               result=yes
3288             fi
3289           else
3290             result=$wxUSE_UNIVERSAL
3291           fi
3292
3293           { echo "$as_me:$LINENO: result: $result" >&5
3294 echo "${ECHO_T}$result" >&6; }
3295
3296 if test "$wxUSE_UNIVERSAL" = "yes"; then
3297
3298 # Check whether --with-themes was given.
3299 if test "${with_themes+set}" = set; then
3300   withval=$with_themes; wxUNIV_THEMES="$withval"
3301 fi
3302
3303 fi
3304
3305
3306 # Check whether --with-gtk was given.
3307 if test "${with_gtk+set}" = set; then
3308   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3309 fi
3310
3311
3312 # Check whether --with-motif was given.
3313 if test "${with_motif+set}" = set; then
3314   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3315 fi
3316
3317
3318 # Check whether --with-osx_carbon was given.
3319 if test "${with_osx_carbon+set}" = set; then
3320   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3321 fi
3322
3323
3324 # Check whether --with-osx_cocoa was given.
3325 if test "${with_osx_cocoa+set}" = set; then
3326   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3327 fi
3328
3329
3330 # Check whether --with-mac was given.
3331 if test "${with_mac+set}" = set; then
3332   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3333 fi
3334
3335
3336 # Check whether --with-cocoa was given.
3337 if test "${with_cocoa+set}" = set; then
3338   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3339 fi
3340
3341
3342 # Check whether --with-wine was given.
3343 if test "${with_wine+set}" = set; then
3344   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3345 fi
3346
3347
3348 # Check whether --with-msw was given.
3349 if test "${with_msw+set}" = set; then
3350   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3351 fi
3352
3353
3354 # Check whether --with-pm was given.
3355 if test "${with_pm+set}" = set; then
3356   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360 # Check whether --with-mgl was given.
3361 if test "${with_mgl+set}" = set; then
3362   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3363 fi
3364
3365
3366 # Check whether --with-directfb was given.
3367 if test "${with_directfb+set}" = set; then
3368   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-microwin was given.
3373 if test "${with_microwin+set}" = set; then
3374   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-x11 was given.
3379 if test "${with_x11+set}" = set; then
3380   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384           enablestring=
3385           defaultval=
3386           if test -z "$defaultval"; then
3387               if test x"$enablestring" = xdisable; then
3388                   defaultval=yes
3389               else
3390                   defaultval=no
3391               fi
3392           fi
3393
3394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3395 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3396           # Check whether --enable-nanox was given.
3397 if test "${enable_nanox+set}" = set; then
3398   enableval=$enable_nanox;
3399                           if test "$enableval" = yes; then
3400                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3401                           else
3402                             wx_cv_use_nanox='wxUSE_NANOX=no'
3403                           fi
3404
3405 else
3406
3407                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3408
3409 fi
3410
3411
3412           eval "$wx_cv_use_nanox"
3413
3414           if test x"$enablestring" = xdisable; then
3415             if test $wxUSE_NANOX = yes; then
3416               result=no
3417             else
3418               result=yes
3419             fi
3420           else
3421             result=$wxUSE_NANOX
3422           fi
3423
3424           { echo "$as_me:$LINENO: result: $result" >&5
3425 echo "${ECHO_T}$result" >&6; }
3426
3427
3428 # Check whether --enable-gtk2 was given.
3429 if test "${enable_gtk2+set}" = set; then
3430   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3431 fi
3432
3433
3434           enablestring=
3435           defaultval=
3436           if test -z "$defaultval"; then
3437               if test x"$enablestring" = xdisable; then
3438                   defaultval=yes
3439               else
3440                   defaultval=no
3441               fi
3442           fi
3443
3444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3445 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3446           # Check whether --enable-gpe was given.
3447 if test "${enable_gpe+set}" = set; then
3448   enableval=$enable_gpe;
3449                           if test "$enableval" = yes; then
3450                             wx_cv_use_gpe='wxUSE_GPE=yes'
3451                           else
3452                             wx_cv_use_gpe='wxUSE_GPE=no'
3453                           fi
3454
3455 else
3456
3457                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3458
3459 fi
3460
3461
3462           eval "$wx_cv_use_gpe"
3463
3464           if test x"$enablestring" = xdisable; then
3465             if test $wxUSE_GPE = yes; then
3466               result=no
3467             else
3468               result=yes
3469             fi
3470           else
3471             result=$wxUSE_GPE
3472           fi
3473
3474           { echo "$as_me:$LINENO: result: $result" >&5
3475 echo "${ECHO_T}$result" >&6; }
3476
3477
3478
3479 { echo "$as_me:$LINENO: checking for toolkit" >&5
3480 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3481
3482
3483
3484 # In Wine, we need to default to MSW, not GTK or MOTIF
3485 if test "$wxUSE_WINE" = "yes"; then
3486     DEFAULT_DEFAULT_wxUSE_GTK=0
3487     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3488     DEFAULT_DEFAULT_wxUSE_MSW=1
3489     wxUSE_SHARED=no
3490     CC=${CC:-winegcc}
3491     CXX=${CXX:-wineg++}
3492 fi
3493
3494
3495 if test "$wxUSE_GUI" = "yes"; then
3496
3497     if test "$USE_BEOS" = 1; then
3498         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3499 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3500    { (exit 1); exit 1; }; }
3501     fi
3502
3503     if test "$TOOLKIT_GIVEN" = 1; then
3504             for toolkit in $ALL_TOOLKITS; do
3505         var=wxUSE_$toolkit
3506         eval "value=\$${var}"
3507         if test "x$value" = "xno"; then
3508           eval "$var=0"
3509         elif test "x$value" != "x"; then
3510           eval "$var=1"
3511         fi
3512
3513         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3514           eval "wx${toolkit}_VERSION=$value"
3515         fi
3516       done
3517     else
3518             for toolkit in $ALL_TOOLKITS; do
3519         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3520         eval "wxUSE_$toolkit=\$${var}"
3521       done
3522     fi
3523
3524             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3525                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3526                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3527
3528         case "${host}" in
3529       *-pc-os2_emx | *-pc-os2-emx )
3530         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3531     esac
3532
3533     case "$NUM_TOOLKITS" in
3534       1)
3535       ;;
3536       0)
3537         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3538 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3539    { (exit 1); exit 1; }; }
3540       ;;
3541       *)
3542         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3543 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3544    { (exit 1); exit 1; }; }
3545     esac
3546
3547     # to be removed when --disable-gtk2 isn't needed
3548     if test "x$wxUSE_GTK2" = "xyes"; then
3549         wxGTK_VERSION=2
3550     elif test "x$wxUSE_GTK2" = "xno"; then
3551         wxGTK_VERSION=1
3552     fi
3553
3554     for toolkit in $ALL_TOOLKITS; do
3555         var=wxUSE_$toolkit
3556         eval "value=\$${var}"
3557         if test "$value" = 1; then
3558           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3559           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3560 echo "${ECHO_T}$toolkit_echo" >&6; }
3561         fi
3562     done
3563 else
3564     if test "x$host_alias" != "x"; then
3565         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3566 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3567     else
3568         { echo "$as_me:$LINENO: result: base only" >&5
3569 echo "${ECHO_T}base only" >&6; }
3570     fi
3571 fi
3572
3573 wxUSE_MAC=0
3574 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3575     wxUSE_MAC=1
3576 fi
3577
3578
3579
3580           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3581 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3582
3583 # Check whether --with-libpng was given.
3584 if test "${with_libpng+set}" = set; then
3585   withval=$with_libpng;
3586                         if test "$withval" = yes; then
3587                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3588                         elif test "$withval" = no; then
3589                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3590                         elif test "$withval" = sys; then
3591                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3592                         elif test "$withval" = builtin; then
3593                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3594                         else
3595                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3596 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3597    { (exit 1); exit 1; }; }
3598                         fi
3599
3600 else
3601
3602                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3603
3604 fi
3605
3606
3607           eval "$wx_cv_use_libpng"
3608
3609           if test "$wxUSE_LIBPNG" = yes; then
3610             { echo "$as_me:$LINENO: result: yes" >&5
3611 echo "${ECHO_T}yes" >&6; }
3612           elif test "$wxUSE_LIBPNG" = no; then
3613             { echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6; }
3615           elif test "$wxUSE_LIBPNG" = sys; then
3616             { echo "$as_me:$LINENO: result: system version" >&5
3617 echo "${ECHO_T}system version" >&6; }
3618           elif test "$wxUSE_LIBPNG" = builtin; then
3619             { echo "$as_me:$LINENO: result: builtin version" >&5
3620 echo "${ECHO_T}builtin version" >&6; }
3621           else
3622             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3623 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3624    { (exit 1); exit 1; }; }
3625           fi
3626
3627
3628           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3629 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3630
3631 # Check whether --with-libjpeg was given.
3632 if test "${with_libjpeg+set}" = set; then
3633   withval=$with_libjpeg;
3634                         if test "$withval" = yes; then
3635                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3636                         elif test "$withval" = no; then
3637                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3638                         elif test "$withval" = sys; then
3639                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3640                         elif test "$withval" = builtin; then
3641                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3642                         else
3643                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3644 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3645    { (exit 1); exit 1; }; }
3646                         fi
3647
3648 else
3649
3650                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3651
3652 fi
3653
3654
3655           eval "$wx_cv_use_libjpeg"
3656
3657           if test "$wxUSE_LIBJPEG" = yes; then
3658             { echo "$as_me:$LINENO: result: yes" >&5
3659 echo "${ECHO_T}yes" >&6; }
3660           elif test "$wxUSE_LIBJPEG" = no; then
3661             { echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6; }
3663           elif test "$wxUSE_LIBJPEG" = sys; then
3664             { echo "$as_me:$LINENO: result: system version" >&5
3665 echo "${ECHO_T}system version" >&6; }
3666           elif test "$wxUSE_LIBJPEG" = builtin; then
3667             { echo "$as_me:$LINENO: result: builtin version" >&5
3668 echo "${ECHO_T}builtin version" >&6; }
3669           else
3670             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3671 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3672    { (exit 1); exit 1; }; }
3673           fi
3674
3675
3676           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3677 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3678
3679 # Check whether --with-libtiff was given.
3680 if test "${with_libtiff+set}" = set; then
3681   withval=$with_libtiff;
3682                         if test "$withval" = yes; then
3683                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3684                         elif test "$withval" = no; then
3685                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3686                         elif test "$withval" = sys; then
3687                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3688                         elif test "$withval" = builtin; then
3689                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3690                         else
3691                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3692 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3693    { (exit 1); exit 1; }; }
3694                         fi
3695
3696 else
3697
3698                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3699
3700 fi
3701
3702
3703           eval "$wx_cv_use_libtiff"
3704
3705           if test "$wxUSE_LIBTIFF" = yes; then
3706             { echo "$as_me:$LINENO: result: yes" >&5
3707 echo "${ECHO_T}yes" >&6; }
3708           elif test "$wxUSE_LIBTIFF" = no; then
3709             { echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6; }
3711           elif test "$wxUSE_LIBTIFF" = sys; then
3712             { echo "$as_me:$LINENO: result: system version" >&5
3713 echo "${ECHO_T}system version" >&6; }
3714           elif test "$wxUSE_LIBTIFF" = builtin; then
3715             { echo "$as_me:$LINENO: result: builtin version" >&5
3716 echo "${ECHO_T}builtin version" >&6; }
3717           else
3718             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3719 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3720    { (exit 1); exit 1; }; }
3721           fi
3722
3723
3724           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3725 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3726
3727 # Check whether --with-libxpm was given.
3728 if test "${with_libxpm+set}" = set; then
3729   withval=$with_libxpm;
3730                         if test "$withval" = yes; then
3731                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3732                         elif test "$withval" = no; then
3733                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3734                         elif test "$withval" = sys; then
3735                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3736                         elif test "$withval" = builtin; then
3737                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3738                         else
3739                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3740 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3741    { (exit 1); exit 1; }; }
3742                         fi
3743
3744 else
3745
3746                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3747
3748 fi
3749
3750
3751           eval "$wx_cv_use_libxpm"
3752
3753           if test "$wxUSE_LIBXPM" = yes; then
3754             { echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6; }
3756           elif test "$wxUSE_LIBXPM" = no; then
3757             { echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6; }
3759           elif test "$wxUSE_LIBXPM" = sys; then
3760             { echo "$as_me:$LINENO: result: system version" >&5
3761 echo "${ECHO_T}system version" >&6; }
3762           elif test "$wxUSE_LIBXPM" = builtin; then
3763             { echo "$as_me:$LINENO: result: builtin version" >&5
3764 echo "${ECHO_T}builtin version" >&6; }
3765           else
3766             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3767 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3768    { (exit 1); exit 1; }; }
3769           fi
3770
3771
3772           withstring=
3773           defaultval=$wxUSE_ALL_FEATURES
3774           if test -z "$defaultval"; then
3775               if test x"$withstring" = xwithout; then
3776                   defaultval=yes
3777               else
3778                   defaultval=no
3779               fi
3780           fi
3781           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3782 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3783
3784 # Check whether --with-libiconv was given.
3785 if test "${with_libiconv+set}" = set; then
3786   withval=$with_libiconv;
3787                         if test "$withval" = yes; then
3788                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3789                         else
3790                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3791                         fi
3792
3793 else
3794
3795                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3796
3797 fi
3798
3799
3800           eval "$wx_cv_use_libiconv"
3801
3802           if test x"$withstring" = xwithout; then
3803             if test $wxUSE_LIBICONV = yes; then
3804               result=no
3805             else
3806               result=yes
3807             fi
3808           else
3809             result=$wxUSE_LIBICONV
3810           fi
3811
3812           { echo "$as_me:$LINENO: result: $result" >&5
3813 echo "${ECHO_T}$result" >&6; }
3814
3815
3816           withstring=
3817           defaultval=$wxUSE_ALL_FEATURES
3818           if test -z "$defaultval"; then
3819               if test x"$withstring" = xwithout; then
3820                   defaultval=yes
3821               else
3822                   defaultval=no
3823               fi
3824           fi
3825           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3826 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3827
3828 # Check whether --with-libmspack was given.
3829 if test "${with_libmspack+set}" = set; then
3830   withval=$with_libmspack;
3831                         if test "$withval" = yes; then
3832                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3833                         else
3834                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3835                         fi
3836
3837 else
3838
3839                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3840
3841 fi
3842
3843
3844           eval "$wx_cv_use_libmspack"
3845
3846           if test x"$withstring" = xwithout; then
3847             if test $wxUSE_LIBMSPACK = yes; then
3848               result=no
3849             else
3850               result=yes
3851             fi
3852           else
3853             result=$wxUSE_LIBMSPACK
3854           fi
3855
3856           { echo "$as_me:$LINENO: result: $result" >&5
3857 echo "${ECHO_T}$result" >&6; }
3858
3859
3860           withstring=without
3861           defaultval=$wxUSE_ALL_FEATURES
3862           if test -z "$defaultval"; then
3863               if test x"$withstring" = xwithout; then
3864                   defaultval=yes
3865               else
3866                   defaultval=no
3867               fi
3868           fi
3869           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3870 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3871
3872 # Check whether --with-gtkprint was given.
3873 if test "${with_gtkprint+set}" = set; then
3874   withval=$with_gtkprint;
3875                         if test "$withval" = yes; then
3876                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3877                         else
3878                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3879                         fi
3880
3881 else
3882
3883                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3884
3885 fi
3886
3887
3888           eval "$wx_cv_use_gtkprint"
3889
3890           if test x"$withstring" = xwithout; then
3891             if test $wxUSE_GTKPRINT = yes; then
3892               result=no
3893             else
3894               result=yes
3895             fi
3896           else
3897             result=$wxUSE_GTKPRINT
3898           fi
3899
3900           { echo "$as_me:$LINENO: result: $result" >&5
3901 echo "${ECHO_T}$result" >&6; }
3902
3903
3904           withstring=without
3905           defaultval=$wxUSE_ALL_FEATURES
3906           if test -z "$defaultval"; then
3907               if test x"$withstring" = xwithout; then
3908                   defaultval=yes
3909               else
3910                   defaultval=no
3911               fi
3912           fi
3913           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3914 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3915
3916 # Check whether --with-gnomeprint was given.
3917 if test "${with_gnomeprint+set}" = set; then
3918   withval=$with_gnomeprint;
3919                         if test "$withval" = yes; then
3920                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3921                         else
3922                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3923                         fi
3924
3925 else
3926
3927                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3928
3929 fi
3930
3931
3932           eval "$wx_cv_use_gnomeprint"
3933
3934           if test x"$withstring" = xwithout; then
3935             if test $wxUSE_LIBGNOMEPRINT = yes; then
3936               result=no
3937             else
3938               result=yes
3939             fi
3940           else
3941             result=$wxUSE_LIBGNOMEPRINT
3942           fi
3943
3944           { echo "$as_me:$LINENO: result: $result" >&5
3945 echo "${ECHO_T}$result" >&6; }
3946
3947
3948           withstring=
3949           defaultval=$wxUSE_ALL_FEATURES
3950           if test -z "$defaultval"; then
3951               if test x"$withstring" = xwithout; then
3952                   defaultval=yes
3953               else
3954                   defaultval=no
3955               fi
3956           fi
3957           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3958 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3959
3960 # Check whether --with-gnomevfs was given.
3961 if test "${with_gnomevfs+set}" = set; then
3962   withval=$with_gnomevfs;
3963                         if test "$withval" = yes; then
3964                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3965                         else
3966                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3967                         fi
3968
3969 else
3970
3971                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3972
3973 fi
3974
3975
3976           eval "$wx_cv_use_gnomevfs"
3977
3978           if test x"$withstring" = xwithout; then
3979             if test $wxUSE_LIBGNOMEVFS = yes; then
3980               result=no
3981             else
3982               result=yes
3983             fi
3984           else
3985             result=$wxUSE_LIBGNOMEVFS
3986           fi
3987
3988           { echo "$as_me:$LINENO: result: $result" >&5
3989 echo "${ECHO_T}$result" >&6; }
3990
3991
3992           withstring=
3993           defaultval=$wxUSE_ALL_FEATURES
3994           if test -z "$defaultval"; then
3995               if test x"$withstring" = xwithout; then
3996                   defaultval=yes
3997               else
3998                   defaultval=no
3999               fi
4000           fi
4001           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4002 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4003
4004 # Check whether --with-hildon was given.
4005 if test "${with_hildon+set}" = set; then
4006   withval=$with_hildon;
4007                         if test "$withval" = yes; then
4008                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4009                         else
4010                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4011                         fi
4012
4013 else
4014
4015                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4016
4017 fi
4018
4019
4020           eval "$wx_cv_use_hildon"
4021
4022           if test x"$withstring" = xwithout; then
4023             if test $wxUSE_LIBHILDON = yes; then
4024               result=no
4025             else
4026               result=yes
4027             fi
4028           else
4029             result=$wxUSE_LIBHILDON
4030           fi
4031
4032           { echo "$as_me:$LINENO: result: $result" >&5
4033 echo "${ECHO_T}$result" >&6; }
4034
4035
4036           withstring=
4037           defaultval=$wxUSE_ALL_FEATURES
4038           if test -z "$defaultval"; then
4039               if test x"$withstring" = xwithout; then
4040                   defaultval=yes
4041               else
4042                   defaultval=no
4043               fi
4044           fi
4045           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4046 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4047
4048 # Check whether --with-opengl was given.
4049 if test "${with_opengl+set}" = set; then
4050   withval=$with_opengl;
4051                         if test "$withval" = yes; then
4052                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4053                         else
4054                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4055                         fi
4056
4057 else
4058
4059                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4060
4061 fi
4062
4063
4064           eval "$wx_cv_use_opengl"
4065
4066           if test x"$withstring" = xwithout; then
4067             if test $wxUSE_OPENGL = yes; then
4068               result=no
4069             else
4070               result=yes
4071             fi
4072           else
4073             result=$wxUSE_OPENGL
4074           fi
4075
4076           { echo "$as_me:$LINENO: result: $result" >&5
4077 echo "${ECHO_T}$result" >&6; }
4078
4079
4080 fi
4081
4082
4083           withstring=
4084           defaultval=$wxUSE_ALL_FEATURES
4085           if test -z "$defaultval"; then
4086               if test x"$withstring" = xwithout; then
4087                   defaultval=yes
4088               else
4089                   defaultval=no
4090               fi
4091           fi
4092           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4093 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4094
4095 # Check whether --with-dmalloc was given.
4096 if test "${with_dmalloc+set}" = set; then
4097   withval=$with_dmalloc;
4098                         if test "$withval" = yes; then
4099                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4100                         else
4101                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4102                         fi
4103
4104 else
4105
4106                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4107
4108 fi
4109
4110
4111           eval "$wx_cv_use_dmalloc"
4112
4113           if test x"$withstring" = xwithout; then
4114             if test $wxUSE_DMALLOC = yes; then
4115               result=no
4116             else
4117               result=yes
4118             fi
4119           else
4120             result=$wxUSE_DMALLOC
4121           fi
4122
4123           { echo "$as_me:$LINENO: result: $result" >&5
4124 echo "${ECHO_T}$result" >&6; }
4125
4126
4127           withstring=
4128           defaultval=$wxUSE_ALL_FEATURES
4129           if test -z "$defaultval"; then
4130               if test x"$withstring" = xwithout; then
4131                   defaultval=yes
4132               else
4133                   defaultval=no
4134               fi
4135           fi
4136           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4137 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4138
4139 # Check whether --with-sdl was given.
4140 if test "${with_sdl+set}" = set; then
4141   withval=$with_sdl;
4142                         if test "$withval" = yes; then
4143                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4144                         else
4145                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4146                         fi
4147
4148 else
4149
4150                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4151
4152 fi
4153
4154
4155           eval "$wx_cv_use_sdl"
4156
4157           if test x"$withstring" = xwithout; then
4158             if test $wxUSE_LIBSDL = yes; then
4159               result=no
4160             else
4161               result=yes
4162             fi
4163           else
4164             result=$wxUSE_LIBSDL
4165           fi
4166
4167           { echo "$as_me:$LINENO: result: $result" >&5
4168 echo "${ECHO_T}$result" >&6; }
4169
4170
4171           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4172 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4173
4174 # Check whether --with-regex was given.
4175 if test "${with_regex+set}" = set; then
4176   withval=$with_regex;
4177                         if test "$withval" = yes; then
4178                           wx_cv_use_regex='wxUSE_REGEX=yes'
4179                         elif test "$withval" = no; then
4180                           wx_cv_use_regex='wxUSE_REGEX=no'
4181                         elif test "$withval" = sys; then
4182                           wx_cv_use_regex='wxUSE_REGEX=sys'
4183                         elif test "$withval" = builtin; then
4184                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4185                         else
4186                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4187 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4188    { (exit 1); exit 1; }; }
4189                         fi
4190
4191 else
4192
4193                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4194
4195 fi
4196
4197
4198           eval "$wx_cv_use_regex"
4199
4200           if test "$wxUSE_REGEX" = yes; then
4201             { echo "$as_me:$LINENO: result: yes" >&5
4202 echo "${ECHO_T}yes" >&6; }
4203           elif test "$wxUSE_REGEX" = no; then
4204             { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4206           elif test "$wxUSE_REGEX" = sys; then
4207             { echo "$as_me:$LINENO: result: system version" >&5
4208 echo "${ECHO_T}system version" >&6; }
4209           elif test "$wxUSE_REGEX" = builtin; then
4210             { echo "$as_me:$LINENO: result: builtin version" >&5
4211 echo "${ECHO_T}builtin version" >&6; }
4212           else
4213             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4214 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4215    { (exit 1); exit 1; }; }
4216           fi
4217
4218
4219           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4220 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4221
4222 # Check whether --with-zlib was given.
4223 if test "${with_zlib+set}" = set; then
4224   withval=$with_zlib;
4225                         if test "$withval" = yes; then
4226                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4227                         elif test "$withval" = no; then
4228                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4229                         elif test "$withval" = sys; then
4230                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4231                         elif test "$withval" = builtin; then
4232                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4233                         else
4234                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4235 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4236    { (exit 1); exit 1; }; }
4237                         fi
4238
4239 else
4240
4241                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4242
4243 fi
4244
4245
4246           eval "$wx_cv_use_zlib"
4247
4248           if test "$wxUSE_ZLIB" = yes; then
4249             { echo "$as_me:$LINENO: result: yes" >&5
4250 echo "${ECHO_T}yes" >&6; }
4251           elif test "$wxUSE_ZLIB" = no; then
4252             { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4254           elif test "$wxUSE_ZLIB" = sys; then
4255             { echo "$as_me:$LINENO: result: system version" >&5
4256 echo "${ECHO_T}system version" >&6; }
4257           elif test "$wxUSE_ZLIB" = builtin; then
4258             { echo "$as_me:$LINENO: result: builtin version" >&5
4259 echo "${ECHO_T}builtin version" >&6; }
4260           else
4261             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4262 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4263    { (exit 1); exit 1; }; }
4264           fi
4265
4266
4267           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4268 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4269
4270 # Check whether --with-expat was given.
4271 if test "${with_expat+set}" = set; then
4272   withval=$with_expat;
4273                         if test "$withval" = yes; then
4274                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4275                         elif test "$withval" = no; then
4276                           wx_cv_use_expat='wxUSE_EXPAT=no'
4277                         elif test "$withval" = sys; then
4278                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4279                         elif test "$withval" = builtin; then
4280                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4281                         else
4282                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4283 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4284    { (exit 1); exit 1; }; }
4285                         fi
4286
4287 else
4288
4289                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4290
4291 fi
4292
4293
4294           eval "$wx_cv_use_expat"
4295
4296           if test "$wxUSE_EXPAT" = yes; then
4297             { echo "$as_me:$LINENO: result: yes" >&5
4298 echo "${ECHO_T}yes" >&6; }
4299           elif test "$wxUSE_EXPAT" = no; then
4300             { echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6; }
4302           elif test "$wxUSE_EXPAT" = sys; then
4303             { echo "$as_me:$LINENO: result: system version" >&5
4304 echo "${ECHO_T}system version" >&6; }
4305           elif test "$wxUSE_EXPAT" = builtin; then
4306             { echo "$as_me:$LINENO: result: builtin version" >&5
4307 echo "${ECHO_T}builtin version" >&6; }
4308           else
4309             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4310 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4311    { (exit 1); exit 1; }; }
4312           fi
4313
4314
4315 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4316 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4317
4318 # Check whether --with-macosx-sdk was given.
4319 if test "${with_macosx_sdk+set}" = set; then
4320   withval=$with_macosx_sdk;
4321         wxUSE_MACOSX_SDK=$withval
4322         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4323
4324 fi
4325
4326 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4327 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4328
4329 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4330 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4331
4332 # Check whether --with-macosx-version-min was given.
4333 if test "${with_macosx_version_min+set}" = set; then
4334   withval=$with_macosx_version_min;
4335         wxUSE_MACOSX_VERSION_MIN=$withval
4336         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4337
4338 fi
4339
4340 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4341 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4342
4343
4344
4345           enablestring=disable
4346           defaultval=
4347           if test -z "$defaultval"; then
4348               if test x"$enablestring" = xdisable; then
4349                   defaultval=yes
4350               else
4351                   defaultval=no
4352               fi
4353           fi
4354
4355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4356 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4357           # Check whether --enable-shared was given.
4358 if test "${enable_shared+set}" = set; then
4359   enableval=$enable_shared;
4360                           if test "$enableval" = yes; then
4361                             wx_cv_use_shared='wxUSE_SHARED=yes'
4362                           else
4363                             wx_cv_use_shared='wxUSE_SHARED=no'
4364                           fi
4365
4366 else
4367
4368                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4369
4370 fi
4371
4372
4373           eval "$wx_cv_use_shared"
4374
4375           if test x"$enablestring" = xdisable; then
4376             if test $wxUSE_SHARED = yes; then
4377               result=no
4378             else
4379               result=yes
4380             fi
4381           else
4382             result=$wxUSE_SHARED
4383           fi
4384
4385           { echo "$as_me:$LINENO: result: $result" >&5
4386 echo "${ECHO_T}$result" >&6; }
4387
4388
4389           enablestring=
4390           defaultval=
4391           if test -z "$defaultval"; then
4392               if test x"$enablestring" = xdisable; then
4393                   defaultval=yes
4394               else
4395                   defaultval=no
4396               fi
4397           fi
4398
4399           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4400 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4401           # Check whether --enable-debug was given.
4402 if test "${enable_debug+set}" = set; then
4403   enableval=$enable_debug;
4404                           if test "$enableval" = yes; then
4405                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4406                           else
4407                             wx_cv_use_debug='wxUSE_DEBUG=no'
4408                           fi
4409
4410 else
4411
4412                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4413
4414 fi
4415
4416
4417           eval "$wx_cv_use_debug"
4418
4419           if test x"$enablestring" = xdisable; then
4420             if test $wxUSE_DEBUG = yes; then
4421               result=no
4422             else
4423               result=yes
4424             fi
4425           else
4426             result=$wxUSE_DEBUG
4427           fi
4428
4429           { echo "$as_me:$LINENO: result: $result" >&5
4430 echo "${ECHO_T}$result" >&6; }
4431
4432
4433           enablestring=
4434           defaultval=
4435           if test -z "$defaultval"; then
4436               if test x"$enablestring" = xdisable; then
4437                   defaultval=yes
4438               else
4439                   defaultval=no
4440               fi
4441           fi
4442
4443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4444 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4445           # Check whether --enable-stl was given.
4446 if test "${enable_stl+set}" = set; then
4447   enableval=$enable_stl;
4448                           if test "$enableval" = yes; then
4449                             wx_cv_use_stl='wxUSE_STL=yes'
4450                           else
4451                             wx_cv_use_stl='wxUSE_STL=no'
4452                           fi
4453
4454 else
4455
4456                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4457
4458 fi
4459
4460
4461           eval "$wx_cv_use_stl"
4462
4463           if test x"$enablestring" = xdisable; then
4464             if test $wxUSE_STL = yes; then
4465               result=no
4466             else
4467               result=yes
4468             fi
4469           else
4470             result=$wxUSE_STL
4471           fi
4472
4473           { echo "$as_me:$LINENO: result: $result" >&5
4474 echo "${ECHO_T}$result" >&6; }
4475
4476
4477           enablestring=
4478           defaultval=
4479           if test -z "$defaultval"; then
4480               if test x"$enablestring" = xdisable; then
4481                   defaultval=yes
4482               else
4483                   defaultval=no
4484               fi
4485           fi
4486
4487           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4488 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4489           # Check whether --enable-std_iostreams was given.
4490 if test "${enable_std_iostreams+set}" = set; then
4491   enableval=$enable_std_iostreams;
4492                           if test "$enableval" = yes; then
4493                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4494                           else
4495                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4496                           fi
4497
4498 else
4499
4500                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4501
4502 fi
4503
4504
4505           eval "$wx_cv_use_std_iostreams"
4506
4507           if test x"$enablestring" = xdisable; then
4508             if test $wxUSE_STD_IOSTREAM = yes; then
4509               result=no
4510             else
4511               result=yes
4512             fi
4513           else
4514             result=$wxUSE_STD_IOSTREAM
4515           fi
4516
4517           { echo "$as_me:$LINENO: result: $result" >&5
4518 echo "${ECHO_T}$result" >&6; }
4519
4520
4521           enablestring=
4522           defaultval=
4523           if test -z "$defaultval"; then
4524               if test x"$enablestring" = xdisable; then
4525                   defaultval=yes
4526               else
4527                   defaultval=no
4528               fi
4529           fi
4530
4531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4532 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4533           # Check whether --enable-std_string was given.
4534 if test "${enable_std_string+set}" = set; then
4535   enableval=$enable_std_string;
4536                           if test "$enableval" = yes; then
4537                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4538                           else
4539                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4540                           fi
4541
4542 else
4543
4544                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4545
4546 fi
4547
4548
4549           eval "$wx_cv_use_std_string"
4550
4551           if test x"$enablestring" = xdisable; then
4552             if test $wxUSE_STD_STRING = yes; then
4553               result=no
4554             else
4555               result=yes
4556             fi
4557           else
4558             result=$wxUSE_STD_STRING
4559           fi
4560
4561           { echo "$as_me:$LINENO: result: $result" >&5
4562 echo "${ECHO_T}$result" >&6; }
4563
4564
4565           enablestring=disable
4566           defaultval=
4567           if test -z "$defaultval"; then
4568               if test x"$enablestring" = xdisable; then
4569                   defaultval=yes
4570               else
4571                   defaultval=no
4572               fi
4573           fi
4574
4575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4576 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4577           # Check whether --enable-unicode was given.
4578 if test "${enable_unicode+set}" = set; then
4579   enableval=$enable_unicode;
4580                           if test "$enableval" = yes; then
4581                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4582                           else
4583                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4584                           fi
4585
4586 else
4587
4588                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4589
4590 fi
4591
4592
4593           eval "$wx_cv_use_unicode"
4594
4595           if test x"$enablestring" = xdisable; then
4596             if test $wxUSE_UNICODE = yes; then
4597               result=no
4598             else
4599               result=yes
4600             fi
4601           else
4602             result=$wxUSE_UNICODE
4603           fi
4604
4605           { echo "$as_me:$LINENO: result: $result" >&5
4606 echo "${ECHO_T}$result" >&6; }
4607
4608
4609           enablestring=
4610           defaultval=
4611           if test -z "$defaultval"; then
4612               if test x"$enablestring" = xdisable; then
4613                   defaultval=yes
4614               else
4615                   defaultval=no
4616               fi
4617           fi
4618
4619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4620 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4621           # Check whether --enable-mslu was given.
4622 if test "${enable_mslu+set}" = set; then
4623   enableval=$enable_mslu;
4624                           if test "$enableval" = yes; then
4625                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4626                           else
4627                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4628                           fi
4629
4630 else
4631
4632                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4633
4634 fi
4635
4636
4637           eval "$wx_cv_use_mslu"
4638
4639           if test x"$enablestring" = xdisable; then
4640             if test $wxUSE_UNICODE_MSLU = yes; then
4641               result=no
4642             else
4643               result=yes
4644             fi
4645           else
4646             result=$wxUSE_UNICODE_MSLU
4647           fi
4648
4649           { echo "$as_me:$LINENO: result: $result" >&5
4650 echo "${ECHO_T}$result" >&6; }
4651
4652
4653           enablestring=
4654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4655 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4656           # Check whether --enable-utf8 was given.
4657 if test "${enable_utf8+set}" = set; then
4658   enableval=$enable_utf8;
4659                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4660
4661 else
4662
4663                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4664
4665 fi
4666
4667
4668           eval "$wx_cv_use_utf8"
4669
4670           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4671 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4672
4673
4674           enablestring=
4675           defaultval=
4676           if test -z "$defaultval"; then
4677               if test x"$enablestring" = xdisable; then
4678                   defaultval=yes
4679               else
4680                   defaultval=no
4681               fi
4682           fi
4683
4684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4685 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4686           # Check whether --enable-utf8only was given.
4687 if test "${enable_utf8only+set}" = set; then
4688   enableval=$enable_utf8only;
4689                           if test "$enableval" = yes; then
4690                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4691                           else
4692                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4693                           fi
4694
4695 else
4696
4697                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4698
4699 fi
4700
4701
4702           eval "$wx_cv_use_utf8only"
4703
4704           if test x"$enablestring" = xdisable; then
4705             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4706               result=no
4707             else
4708               result=yes
4709             fi
4710           else
4711             result=$wxUSE_UNICODE_UTF8_LOCALE
4712           fi
4713
4714           { echo "$as_me:$LINENO: result: $result" >&5
4715 echo "${ECHO_T}$result" >&6; }
4716
4717
4718           enablestring=
4719           defaultval=
4720           if test -z "$defaultval"; then
4721               if test x"$enablestring" = xdisable; then
4722                   defaultval=yes
4723               else
4724                   defaultval=no
4725               fi
4726           fi
4727
4728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4729 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4730           # Check whether --enable-extended_rtti was given.
4731 if test "${enable_extended_rtti+set}" = set; then
4732   enableval=$enable_extended_rtti;
4733                           if test "$enableval" = yes; then
4734                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4735                           else
4736                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4737                           fi
4738
4739 else
4740
4741                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4742
4743 fi
4744
4745
4746           eval "$wx_cv_use_extended_rtti"
4747
4748           if test x"$enablestring" = xdisable; then
4749             if test $wxUSE_EXTENDED_RTTI = yes; then
4750               result=no
4751             else
4752               result=yes
4753             fi
4754           else
4755             result=$wxUSE_EXTENDED_RTTI
4756           fi
4757
4758           { echo "$as_me:$LINENO: result: $result" >&5
4759 echo "${ECHO_T}$result" >&6; }
4760
4761 if test "$USE_OS2" = 1; then
4762     DEFAULT_wxUSE_OMF=no
4763
4764           enablestring=
4765           defaultval=
4766           if test -z "$defaultval"; then
4767               if test x"$enablestring" = xdisable; then
4768                   defaultval=yes
4769               else
4770                   defaultval=no
4771               fi
4772           fi
4773
4774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4775 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4776           # Check whether --enable-omf was given.
4777 if test "${enable_omf+set}" = set; then
4778   enableval=$enable_omf;
4779                           if test "$enableval" = yes; then
4780                             wx_cv_use_omf='wxUSE_OMF=yes'
4781                           else
4782                             wx_cv_use_omf='wxUSE_OMF=no'
4783                           fi
4784
4785 else
4786
4787                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4788
4789 fi
4790
4791
4792           eval "$wx_cv_use_omf"
4793
4794           if test x"$enablestring" = xdisable; then
4795             if test $wxUSE_OMF = yes; then
4796               result=no
4797             else
4798               result=yes
4799             fi
4800           else
4801             result=$wxUSE_OMF
4802           fi
4803
4804           { echo "$as_me:$LINENO: result: $result" >&5
4805 echo "${ECHO_T}$result" >&6; }
4806
4807 fi
4808
4809 if test "$wxUSE_DEBUG" = "yes"; then
4810     DEFAULT_wxUSE_DEBUG_FLAG=yes
4811     DEFAULT_wxUSE_DEBUG_INFO=yes
4812     BUILD=debug
4813 elif test "$wxUSE_DEBUG" = "no"; then
4814     DEFAULT_wxUSE_DEBUG_FLAG=no
4815     DEFAULT_wxUSE_DEBUG_INFO=no
4816     BUILD=release
4817 fi
4818
4819
4820           enablestring=
4821           defaultval=
4822           if test -z "$defaultval"; then
4823               if test x"$enablestring" = xdisable; then
4824                   defaultval=yes
4825               else
4826                   defaultval=no
4827               fi
4828           fi
4829
4830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4831 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4832           # Check whether --enable-debug_flag was given.
4833 if test "${enable_debug_flag+set}" = set; then
4834   enableval=$enable_debug_flag;
4835                           if test "$enableval" = yes; then
4836                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4837                           else
4838                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4839                           fi
4840
4841 else
4842
4843                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4844
4845 fi
4846
4847
4848           eval "$wx_cv_use_debug_flag"
4849
4850           if test x"$enablestring" = xdisable; then
4851             if test $wxUSE_DEBUG_FLAG = yes; then
4852               result=no
4853             else
4854               result=yes
4855             fi
4856           else
4857             result=$wxUSE_DEBUG_FLAG
4858           fi
4859
4860           { echo "$as_me:$LINENO: result: $result" >&5
4861 echo "${ECHO_T}$result" >&6; }
4862
4863
4864           enablestring=
4865           defaultval=
4866           if test -z "$defaultval"; then
4867               if test x"$enablestring" = xdisable; then
4868                   defaultval=yes
4869               else
4870                   defaultval=no
4871               fi
4872           fi
4873
4874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4875 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4876           # Check whether --enable-debug_info was given.
4877 if test "${enable_debug_info+set}" = set; then
4878   enableval=$enable_debug_info;
4879                           if test "$enableval" = yes; then
4880                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4881                           else
4882                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4883                           fi
4884
4885 else
4886
4887                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4888
4889 fi
4890
4891
4892           eval "$wx_cv_use_debug_info"
4893
4894           if test x"$enablestring" = xdisable; then
4895             if test $wxUSE_DEBUG_INFO = yes; then
4896               result=no
4897             else
4898               result=yes
4899             fi
4900           else
4901             result=$wxUSE_DEBUG_INFO
4902           fi
4903
4904           { echo "$as_me:$LINENO: result: $result" >&5
4905 echo "${ECHO_T}$result" >&6; }
4906
4907
4908 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4909     wxUSE_DEBUG=yes
4910     BUILD=debug
4911 fi
4912
4913 if test "$wxUSE_DEBUG" = "yes"; then
4914     DEFAULT_wxUSE_OPTIMISE=no
4915 fi
4916
4917
4918           enablestring=disable
4919           defaultval=
4920           if test -z "$defaultval"; then
4921               if test x"$enablestring" = xdisable; then
4922                   defaultval=yes
4923               else
4924                   defaultval=no
4925               fi
4926           fi
4927
4928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4929 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4930           # Check whether --enable-optimise was given.
4931 if test "${enable_optimise+set}" = set; then
4932   enableval=$enable_optimise;
4933                           if test "$enableval" = yes; then
4934                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4935                           else
4936                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4937                           fi
4938
4939 else
4940
4941                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4942
4943 fi
4944
4945
4946           eval "$wx_cv_use_optimise"
4947
4948           if test x"$enablestring" = xdisable; then
4949             if test $wxUSE_OPTIMISE = yes; then
4950               result=no
4951             else
4952               result=yes
4953             fi
4954           else
4955             result=$wxUSE_OPTIMISE
4956           fi
4957
4958           { echo "$as_me:$LINENO: result: $result" >&5
4959 echo "${ECHO_T}$result" >&6; }
4960
4961
4962
4963           enablestring=
4964           defaultval=
4965           if test -z "$defaultval"; then
4966               if test x"$enablestring" = xdisable; then
4967                   defaultval=yes
4968               else
4969                   defaultval=no
4970               fi
4971           fi
4972
4973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4974 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4975           # Check whether --enable-debug_gdb was given.
4976 if test "${enable_debug_gdb+set}" = set; then
4977   enableval=$enable_debug_gdb;
4978                           if test "$enableval" = yes; then
4979                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4980                           else
4981                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4982                           fi
4983
4984 else
4985
4986                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4987
4988 fi
4989
4990
4991           eval "$wx_cv_use_debug_gdb"
4992
4993           if test x"$enablestring" = xdisable; then
4994             if test $wxUSE_DEBUG_GDB = yes; then
4995               result=no
4996             else
4997               result=yes
4998             fi
4999           else
5000             result=$wxUSE_DEBUG_GDB
5001           fi
5002
5003           { echo "$as_me:$LINENO: result: $result" >&5
5004 echo "${ECHO_T}$result" >&6; }
5005
5006
5007           enablestring=
5008           defaultval=
5009           if test -z "$defaultval"; then
5010               if test x"$enablestring" = xdisable; then
5011                   defaultval=yes
5012               else
5013                   defaultval=no
5014               fi
5015           fi
5016
5017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5018 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5019           # Check whether --enable-debug_cntxt was given.
5020 if test "${enable_debug_cntxt+set}" = set; then
5021   enableval=$enable_debug_cntxt;
5022                           if test "$enableval" = yes; then
5023                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5024                           else
5025                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5026                           fi
5027
5028 else
5029
5030                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5031
5032 fi
5033
5034
5035           eval "$wx_cv_use_debug_cntxt"
5036
5037           if test x"$enablestring" = xdisable; then
5038             if test $wxUSE_DEBUG_CONTEXT = yes; then
5039               result=no
5040             else
5041               result=yes
5042             fi
5043           else
5044             result=$wxUSE_DEBUG_CONTEXT
5045           fi
5046
5047           { echo "$as_me:$LINENO: result: $result" >&5
5048 echo "${ECHO_T}$result" >&6; }
5049
5050
5051           enablestring=
5052           defaultval=
5053           if test -z "$defaultval"; then
5054               if test x"$enablestring" = xdisable; then
5055                   defaultval=yes
5056               else
5057                   defaultval=no
5058               fi
5059           fi
5060
5061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5062 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5063           # Check whether --enable-mem_tracing was given.
5064 if test "${enable_mem_tracing+set}" = set; then
5065   enableval=$enable_mem_tracing;
5066                           if test "$enableval" = yes; then
5067                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5068                           else
5069                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5070                           fi
5071
5072 else
5073
5074                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5075
5076 fi
5077
5078
5079           eval "$wx_cv_use_mem_tracing"
5080
5081           if test x"$enablestring" = xdisable; then
5082             if test $wxUSE_MEM_TRACING = yes; then
5083               result=no
5084             else
5085               result=yes
5086             fi
5087           else
5088             result=$wxUSE_MEM_TRACING
5089           fi
5090
5091           { echo "$as_me:$LINENO: result: $result" >&5
5092 echo "${ECHO_T}$result" >&6; }
5093
5094
5095           enablestring=
5096           defaultval=
5097           if test -z "$defaultval"; then
5098               if test x"$enablestring" = xdisable; then
5099                   defaultval=yes
5100               else
5101                   defaultval=no
5102               fi
5103           fi
5104
5105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5106 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5107           # Check whether --enable-profile was given.
5108 if test "${enable_profile+set}" = set; then
5109   enableval=$enable_profile;
5110                           if test "$enableval" = yes; then
5111                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5112                           else
5113                             wx_cv_use_profile='wxUSE_PROFILE=no'
5114                           fi
5115
5116 else
5117
5118                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5119
5120 fi
5121
5122
5123           eval "$wx_cv_use_profile"
5124
5125           if test x"$enablestring" = xdisable; then
5126             if test $wxUSE_PROFILE = yes; then
5127               result=no
5128             else
5129               result=yes
5130             fi
5131           else
5132             result=$wxUSE_PROFILE
5133           fi
5134
5135           { echo "$as_me:$LINENO: result: $result" >&5
5136 echo "${ECHO_T}$result" >&6; }
5137
5138
5139           enablestring=
5140           defaultval=
5141           if test -z "$defaultval"; then
5142               if test x"$enablestring" = xdisable; then
5143                   defaultval=yes
5144               else
5145                   defaultval=no
5146               fi
5147           fi
5148
5149           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5150 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5151           # Check whether --enable-no_rtti was given.
5152 if test "${enable_no_rtti+set}" = set; then
5153   enableval=$enable_no_rtti;
5154                           if test "$enableval" = yes; then
5155                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5156                           else
5157                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5158                           fi
5159
5160 else
5161
5162                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5163
5164 fi
5165
5166
5167           eval "$wx_cv_use_no_rtti"
5168
5169           if test x"$enablestring" = xdisable; then
5170             if test $wxUSE_NO_RTTI = yes; then
5171               result=no
5172             else
5173               result=yes
5174             fi
5175           else
5176             result=$wxUSE_NO_RTTI
5177           fi
5178
5179           { echo "$as_me:$LINENO: result: $result" >&5
5180 echo "${ECHO_T}$result" >&6; }
5181
5182
5183           enablestring=
5184           defaultval=
5185           if test -z "$defaultval"; then
5186               if test x"$enablestring" = xdisable; then
5187                   defaultval=yes
5188               else
5189                   defaultval=no
5190               fi
5191           fi
5192
5193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5194 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5195           # Check whether --enable-no_exceptions was given.
5196 if test "${enable_no_exceptions+set}" = set; then
5197   enableval=$enable_no_exceptions;
5198                           if test "$enableval" = yes; then
5199                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5200                           else
5201                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5202                           fi
5203
5204 else
5205
5206                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5207
5208 fi
5209
5210
5211           eval "$wx_cv_use_no_exceptions"
5212
5213           if test x"$enablestring" = xdisable; then
5214             if test $wxUSE_NO_EXCEPTIONS = yes; then
5215               result=no
5216             else
5217               result=yes
5218             fi
5219           else
5220             result=$wxUSE_NO_EXCEPTIONS
5221           fi
5222
5223           { echo "$as_me:$LINENO: result: $result" >&5
5224 echo "${ECHO_T}$result" >&6; }
5225
5226
5227           enablestring=
5228           defaultval=
5229           if test -z "$defaultval"; then
5230               if test x"$enablestring" = xdisable; then
5231                   defaultval=yes
5232               else
5233                   defaultval=no
5234               fi
5235           fi
5236
5237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5238 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5239           # Check whether --enable-permissive was given.
5240 if test "${enable_permissive+set}" = set; then
5241   enableval=$enable_permissive;
5242                           if test "$enableval" = yes; then
5243                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5244                           else
5245                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5246                           fi
5247
5248 else
5249
5250                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5251
5252 fi
5253
5254
5255           eval "$wx_cv_use_permissive"
5256
5257           if test x"$enablestring" = xdisable; then
5258             if test $wxUSE_PERMISSIVE = yes; then
5259               result=no
5260             else
5261               result=yes
5262             fi
5263           else
5264             result=$wxUSE_PERMISSIVE
5265           fi
5266
5267           { echo "$as_me:$LINENO: result: $result" >&5
5268 echo "${ECHO_T}$result" >&6; }
5269
5270
5271           enablestring=
5272           defaultval=
5273           if test -z "$defaultval"; then
5274               if test x"$enablestring" = xdisable; then
5275                   defaultval=yes
5276               else
5277                   defaultval=no
5278               fi
5279           fi
5280
5281           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5282 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5283           # Check whether --enable-no_deps was given.
5284 if test "${enable_no_deps+set}" = set; then
5285   enableval=$enable_no_deps;
5286                           if test "$enableval" = yes; then
5287                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5288                           else
5289                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5290                           fi
5291
5292 else
5293
5294                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5295
5296 fi
5297
5298
5299           eval "$wx_cv_use_no_deps"
5300
5301           if test x"$enablestring" = xdisable; then
5302             if test $wxUSE_NO_DEPS = yes; then
5303               result=no
5304             else
5305               result=yes
5306             fi
5307           else
5308             result=$wxUSE_NO_DEPS
5309           fi
5310
5311           { echo "$as_me:$LINENO: result: $result" >&5
5312 echo "${ECHO_T}$result" >&6; }
5313
5314
5315           enablestring=disable
5316           defaultval=
5317           if test -z "$defaultval"; then
5318               if test x"$enablestring" = xdisable; then
5319                   defaultval=yes
5320               else
5321                   defaultval=no
5322               fi
5323           fi
5324
5325           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5326 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5327           # Check whether --enable-vararg_macros was given.
5328 if test "${enable_vararg_macros+set}" = set; then
5329   enableval=$enable_vararg_macros;
5330                           if test "$enableval" = yes; then
5331                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5332                           else
5333                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5334                           fi
5335
5336 else
5337
5338                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5339
5340 fi
5341
5342
5343           eval "$wx_cv_use_vararg_macros"
5344
5345           if test x"$enablestring" = xdisable; then
5346             if test $wxUSE_VARARG_MACROS = yes; then
5347               result=no
5348             else
5349               result=yes
5350             fi
5351           else
5352             result=$wxUSE_VARARG_MACROS
5353           fi
5354
5355           { echo "$as_me:$LINENO: result: $result" >&5
5356 echo "${ECHO_T}$result" >&6; }
5357
5358
5359           enablestring=
5360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5361 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5362           # Check whether --enable-universal_binary was given.
5363 if test "${enable_universal_binary+set}" = set; then
5364   enableval=$enable_universal_binary;
5365                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5366
5367 else
5368
5369                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5370
5371 fi
5372
5373
5374           eval "$wx_cv_use_universal_binary"
5375
5376           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5377 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5378
5379
5380
5381           enablestring=
5382           defaultval=
5383           if test -z "$defaultval"; then
5384               if test x"$enablestring" = xdisable; then
5385                   defaultval=yes
5386               else
5387                   defaultval=no
5388               fi
5389           fi
5390
5391           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5392 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5393           # Check whether --enable-compat26 was given.
5394 if test "${enable_compat26+set}" = set; then
5395   enableval=$enable_compat26;
5396                           if test "$enableval" = yes; then
5397                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5398                           else
5399                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5400                           fi
5401
5402 else
5403
5404                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5405
5406 fi
5407
5408
5409           eval "$wx_cv_use_compat26"
5410
5411           if test x"$enablestring" = xdisable; then
5412             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5413               result=no
5414             else
5415               result=yes
5416             fi
5417           else
5418             result=$WXWIN_COMPATIBILITY_2_6
5419           fi
5420
5421           { echo "$as_me:$LINENO: result: $result" >&5
5422 echo "${ECHO_T}$result" >&6; }
5423
5424
5425           enablestring=disable
5426           defaultval=
5427           if test -z "$defaultval"; then
5428               if test x"$enablestring" = xdisable; then
5429                   defaultval=yes
5430               else
5431                   defaultval=no
5432               fi
5433           fi
5434
5435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5436 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5437           # Check whether --enable-compat28 was given.
5438 if test "${enable_compat28+set}" = set; then
5439   enableval=$enable_compat28;
5440                           if test "$enableval" = yes; then
5441                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5442                           else
5443                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5444                           fi
5445
5446 else
5447
5448                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5449
5450 fi
5451
5452
5453           eval "$wx_cv_use_compat28"
5454
5455           if test x"$enablestring" = xdisable; then
5456             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5457               result=no
5458             else
5459               result=yes
5460             fi
5461           else
5462             result=$WXWIN_COMPATIBILITY_2_8
5463           fi
5464
5465           { echo "$as_me:$LINENO: result: $result" >&5
5466 echo "${ECHO_T}$result" >&6; }
5467
5468
5469
5470           enablestring=disable
5471           defaultval=
5472           if test -z "$defaultval"; then
5473               if test x"$enablestring" = xdisable; then
5474                   defaultval=yes
5475               else
5476                   defaultval=no
5477               fi
5478           fi
5479
5480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5481 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5482           # Check whether --enable-rpath was given.
5483 if test "${enable_rpath+set}" = set; then
5484   enableval=$enable_rpath;
5485                           if test "$enableval" = yes; then
5486                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5487                           else
5488                             wx_cv_use_rpath='wxUSE_RPATH=no'
5489                           fi
5490
5491 else
5492
5493                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5494
5495 fi
5496
5497
5498           eval "$wx_cv_use_rpath"
5499
5500           if test x"$enablestring" = xdisable; then
5501             if test $wxUSE_RPATH = yes; then
5502               result=no
5503             else
5504               result=yes
5505             fi
5506           else
5507             result=$wxUSE_RPATH
5508           fi
5509
5510           { echo "$as_me:$LINENO: result: $result" >&5
5511 echo "${ECHO_T}$result" >&6; }
5512
5513
5514
5515           enablestring=
5516           defaultval=
5517           if test -z "$defaultval"; then
5518               if test x"$enablestring" = xdisable; then
5519                   defaultval=yes
5520               else
5521                   defaultval=no
5522               fi
5523           fi
5524
5525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5526 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5527           # Check whether --enable-objc_uniquifying was given.
5528 if test "${enable_objc_uniquifying+set}" = set; then
5529   enableval=$enable_objc_uniquifying;
5530                           if test "$enableval" = yes; then
5531                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5532                           else
5533                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5534                           fi
5535
5536 else
5537
5538                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5539
5540 fi
5541
5542
5543           eval "$wx_cv_use_objc_uniquifying"
5544
5545           if test x"$enablestring" = xdisable; then
5546             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5547               result=no
5548             else
5549               result=yes
5550             fi
5551           else
5552             result=$wxUSE_OBJC_UNIQUIFYING
5553           fi
5554
5555           { echo "$as_me:$LINENO: result: $result" >&5
5556 echo "${ECHO_T}$result" >&6; }
5557
5558
5559
5560           enablestring=disable
5561           defaultval=
5562           if test -z "$defaultval"; then
5563               if test x"$enablestring" = xdisable; then
5564                   defaultval=yes
5565               else
5566                   defaultval=no
5567               fi
5568           fi
5569
5570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5571 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5572           # Check whether --enable-visibility was given.
5573 if test "${enable_visibility+set}" = set; then
5574   enableval=$enable_visibility;
5575                           if test "$enableval" = yes; then
5576                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5577                           else
5578                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5579                           fi
5580
5581 else
5582
5583                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5584
5585 fi
5586
5587
5588           eval "$wx_cv_use_visibility"
5589
5590           if test x"$enablestring" = xdisable; then
5591             if test $wxUSE_VISIBILITY = yes; then
5592               result=no
5593             else
5594               result=yes
5595             fi
5596           else
5597             result=$wxUSE_VISIBILITY
5598           fi
5599
5600           { echo "$as_me:$LINENO: result: $result" >&5
5601 echo "${ECHO_T}$result" >&6; }
5602
5603
5604
5605
5606           enablestring=
5607           defaultval=$wxUSE_ALL_FEATURES
5608           if test -z "$defaultval"; then
5609               if test x"$enablestring" = xdisable; then
5610                   defaultval=yes
5611               else
5612                   defaultval=no
5613               fi
5614           fi
5615
5616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5617 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5618           # Check whether --enable-intl was given.
5619 if test "${enable_intl+set}" = set; then
5620   enableval=$enable_intl;
5621                           if test "$enableval" = yes; then
5622                             wx_cv_use_intl='wxUSE_INTL=yes'
5623                           else
5624                             wx_cv_use_intl='wxUSE_INTL=no'
5625                           fi
5626
5627 else
5628
5629                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5630
5631 fi
5632
5633
5634           eval "$wx_cv_use_intl"
5635
5636           if test x"$enablestring" = xdisable; then
5637             if test $wxUSE_INTL = yes; then
5638               result=no
5639             else
5640               result=yes
5641             fi
5642           else
5643             result=$wxUSE_INTL
5644           fi
5645
5646           { echo "$as_me:$LINENO: result: $result" >&5
5647 echo "${ECHO_T}$result" >&6; }
5648
5649
5650           enablestring=
5651           defaultval=$wxUSE_ALL_FEATURES
5652           if test -z "$defaultval"; then
5653               if test x"$enablestring" = xdisable; then
5654                   defaultval=yes
5655               else
5656                   defaultval=no
5657               fi
5658           fi
5659
5660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5661 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5662           # Check whether --enable-xlocale was given.
5663 if test "${enable_xlocale+set}" = set; then
5664   enableval=$enable_xlocale;
5665                           if test "$enableval" = yes; then
5666                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5667                           else
5668                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5669                           fi
5670
5671 else
5672
5673                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5674
5675 fi
5676
5677
5678           eval "$wx_cv_use_xlocale"
5679
5680           if test x"$enablestring" = xdisable; then
5681             if test $wxUSE_XLOCALE = yes; then
5682               result=no
5683             else
5684               result=yes
5685             fi
5686           else
5687             result=$wxUSE_XLOCALE
5688           fi
5689
5690           { echo "$as_me:$LINENO: result: $result" >&5
5691 echo "${ECHO_T}$result" >&6; }
5692
5693
5694           enablestring=
5695           defaultval=$wxUSE_ALL_FEATURES
5696           if test -z "$defaultval"; then
5697               if test x"$enablestring" = xdisable; then
5698                   defaultval=yes
5699               else
5700                   defaultval=no
5701               fi
5702           fi
5703
5704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5705 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5706           # Check whether --enable-config was given.
5707 if test "${enable_config+set}" = set; then
5708   enableval=$enable_config;
5709                           if test "$enableval" = yes; then
5710                             wx_cv_use_config='wxUSE_CONFIG=yes'
5711                           else
5712                             wx_cv_use_config='wxUSE_CONFIG=no'
5713                           fi
5714
5715 else
5716
5717                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5718
5719 fi
5720
5721
5722           eval "$wx_cv_use_config"
5723
5724           if test x"$enablestring" = xdisable; then
5725             if test $wxUSE_CONFIG = yes; then
5726               result=no
5727             else
5728               result=yes
5729             fi
5730           else
5731             result=$wxUSE_CONFIG
5732           fi
5733
5734           { echo "$as_me:$LINENO: result: $result" >&5
5735 echo "${ECHO_T}$result" >&6; }
5736
5737
5738
5739           enablestring=
5740           defaultval=$wxUSE_ALL_FEATURES
5741           if test -z "$defaultval"; then
5742               if test x"$enablestring" = xdisable; then
5743                   defaultval=yes
5744               else
5745                   defaultval=no
5746               fi
5747           fi
5748
5749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5750 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5751           # Check whether --enable-protocols was given.
5752 if test "${enable_protocols+set}" = set; then
5753   enableval=$enable_protocols;
5754                           if test "$enableval" = yes; then
5755                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5756                           else
5757                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5758                           fi
5759
5760 else
5761
5762                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5763
5764 fi
5765
5766
5767           eval "$wx_cv_use_protocols"
5768
5769           if test x"$enablestring" = xdisable; then
5770             if test $wxUSE_PROTOCOL = yes; then
5771               result=no
5772             else
5773               result=yes
5774             fi
5775           else
5776             result=$wxUSE_PROTOCOL
5777           fi
5778
5779           { echo "$as_me:$LINENO: result: $result" >&5
5780 echo "${ECHO_T}$result" >&6; }
5781
5782
5783           enablestring=
5784           defaultval=$wxUSE_ALL_FEATURES
5785           if test -z "$defaultval"; then
5786               if test x"$enablestring" = xdisable; then
5787                   defaultval=yes
5788               else
5789                   defaultval=no
5790               fi
5791           fi
5792
5793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5794 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5795           # Check whether --enable-ftp was given.
5796 if test "${enable_ftp+set}" = set; then
5797   enableval=$enable_ftp;
5798                           if test "$enableval" = yes; then
5799                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5800                           else
5801                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5802                           fi
5803
5804 else
5805
5806                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5807
5808 fi
5809
5810
5811           eval "$wx_cv_use_ftp"
5812
5813           if test x"$enablestring" = xdisable; then
5814             if test $wxUSE_PROTOCOL_FTP = yes; then
5815               result=no
5816             else
5817               result=yes
5818             fi
5819           else
5820             result=$wxUSE_PROTOCOL_FTP
5821           fi
5822
5823           { echo "$as_me:$LINENO: result: $result" >&5
5824 echo "${ECHO_T}$result" >&6; }
5825
5826
5827           enablestring=
5828           defaultval=$wxUSE_ALL_FEATURES
5829           if test -z "$defaultval"; then
5830               if test x"$enablestring" = xdisable; then
5831                   defaultval=yes
5832               else
5833                   defaultval=no
5834               fi
5835           fi
5836
5837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5838 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5839           # Check whether --enable-http was given.
5840 if test "${enable_http+set}" = set; then
5841   enableval=$enable_http;
5842                           if test "$enableval" = yes; then
5843                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5844                           else
5845                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5846                           fi
5847
5848 else
5849
5850                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5851
5852 fi
5853
5854
5855           eval "$wx_cv_use_http"
5856
5857           if test x"$enablestring" = xdisable; then
5858             if test $wxUSE_PROTOCOL_HTTP = yes; then
5859               result=no
5860             else
5861               result=yes
5862             fi
5863           else
5864             result=$wxUSE_PROTOCOL_HTTP
5865           fi
5866
5867           { echo "$as_me:$LINENO: result: $result" >&5
5868 echo "${ECHO_T}$result" >&6; }
5869
5870
5871           enablestring=
5872           defaultval=$wxUSE_ALL_FEATURES
5873           if test -z "$defaultval"; then
5874               if test x"$enablestring" = xdisable; then
5875                   defaultval=yes
5876               else
5877                   defaultval=no
5878               fi
5879           fi
5880
5881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5882 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5883           # Check whether --enable-fileproto was given.
5884 if test "${enable_fileproto+set}" = set; then
5885   enableval=$enable_fileproto;
5886                           if test "$enableval" = yes; then
5887                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5888                           else
5889                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5890                           fi
5891
5892 else
5893
5894                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5895
5896 fi
5897
5898
5899           eval "$wx_cv_use_fileproto"
5900
5901           if test x"$enablestring" = xdisable; then
5902             if test $wxUSE_PROTOCOL_FILE = yes; then
5903               result=no
5904             else
5905               result=yes
5906             fi
5907           else
5908             result=$wxUSE_PROTOCOL_FILE
5909           fi
5910
5911           { echo "$as_me:$LINENO: result: $result" >&5
5912 echo "${ECHO_T}$result" >&6; }
5913
5914
5915           enablestring=
5916           defaultval=$wxUSE_ALL_FEATURES
5917           if test -z "$defaultval"; then
5918               if test x"$enablestring" = xdisable; then
5919                   defaultval=yes
5920               else
5921                   defaultval=no
5922               fi
5923           fi
5924
5925           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5926 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5927           # Check whether --enable-sockets was given.
5928 if test "${enable_sockets+set}" = set; then
5929   enableval=$enable_sockets;
5930                           if test "$enableval" = yes; then
5931                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5932                           else
5933                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5934                           fi
5935
5936 else
5937
5938                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5939
5940 fi
5941
5942
5943           eval "$wx_cv_use_sockets"
5944
5945           if test x"$enablestring" = xdisable; then
5946             if test $wxUSE_SOCKETS = yes; then
5947               result=no
5948             else
5949               result=yes
5950             fi
5951           else
5952             result=$wxUSE_SOCKETS
5953           fi
5954
5955           { echo "$as_me:$LINENO: result: $result" >&5
5956 echo "${ECHO_T}$result" >&6; }
5957
5958
5959           enablestring=
5960           defaultval=$wxUSE_ALL_FEATURES
5961           if test -z "$defaultval"; then
5962               if test x"$enablestring" = xdisable; then
5963                   defaultval=yes
5964               else
5965                   defaultval=no
5966               fi
5967           fi
5968
5969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5970 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5971           # Check whether --enable-ipv6 was given.
5972 if test "${enable_ipv6+set}" = set; then
5973   enableval=$enable_ipv6;
5974                           if test "$enableval" = yes; then
5975                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5976                           else
5977                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5978                           fi
5979
5980 else
5981
5982                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5983
5984 fi
5985
5986
5987           eval "$wx_cv_use_ipv6"
5988
5989           if test x"$enablestring" = xdisable; then
5990             if test $wxUSE_IPV6 = yes; then
5991               result=no
5992             else
5993               result=yes
5994             fi
5995           else
5996             result=$wxUSE_IPV6
5997           fi
5998
5999           { echo "$as_me:$LINENO: result: $result" >&5
6000 echo "${ECHO_T}$result" >&6; }
6001
6002
6003           enablestring=
6004           defaultval=$wxUSE_ALL_FEATURES
6005           if test -z "$defaultval"; then
6006               if test x"$enablestring" = xdisable; then
6007                   defaultval=yes
6008               else
6009                   defaultval=no
6010               fi
6011           fi
6012
6013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6014 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6015           # Check whether --enable-ole was given.
6016 if test "${enable_ole+set}" = set; then
6017   enableval=$enable_ole;
6018                           if test "$enableval" = yes; then
6019                             wx_cv_use_ole='wxUSE_OLE=yes'
6020                           else
6021                             wx_cv_use_ole='wxUSE_OLE=no'
6022                           fi
6023
6024 else
6025
6026                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6027
6028 fi
6029
6030
6031           eval "$wx_cv_use_ole"
6032
6033           if test x"$enablestring" = xdisable; then
6034             if test $wxUSE_OLE = yes; then
6035               result=no
6036             else
6037               result=yes
6038             fi
6039           else
6040             result=$wxUSE_OLE
6041           fi
6042
6043           { echo "$as_me:$LINENO: result: $result" >&5
6044 echo "${ECHO_T}$result" >&6; }
6045
6046
6047           enablestring=
6048           defaultval=$wxUSE_ALL_FEATURES
6049           if test -z "$defaultval"; then
6050               if test x"$enablestring" = xdisable; then
6051                   defaultval=yes
6052               else
6053                   defaultval=no
6054               fi
6055           fi
6056
6057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6058 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6059           # Check whether --enable-dataobj was given.
6060 if test "${enable_dataobj+set}" = set; then
6061   enableval=$enable_dataobj;
6062                           if test "$enableval" = yes; then
6063                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6064                           else
6065                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6066                           fi
6067
6068 else
6069
6070                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6071
6072 fi
6073
6074
6075           eval "$wx_cv_use_dataobj"
6076
6077           if test x"$enablestring" = xdisable; then
6078             if test $wxUSE_DATAOBJ = yes; then
6079               result=no
6080             else
6081               result=yes
6082             fi
6083           else
6084             result=$wxUSE_DATAOBJ
6085           fi
6086
6087           { echo "$as_me:$LINENO: result: $result" >&5
6088 echo "${ECHO_T}$result" >&6; }
6089
6090
6091
6092           enablestring=
6093           defaultval=$wxUSE_ALL_FEATURES
6094           if test -z "$defaultval"; then
6095               if test x"$enablestring" = xdisable; then
6096                   defaultval=yes
6097               else
6098                   defaultval=no
6099               fi
6100           fi
6101
6102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6103 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6104           # Check whether --enable-ipc was given.
6105 if test "${enable_ipc+set}" = set; then
6106   enableval=$enable_ipc;
6107                           if test "$enableval" = yes; then
6108                             wx_cv_use_ipc='wxUSE_IPC=yes'
6109                           else
6110                             wx_cv_use_ipc='wxUSE_IPC=no'
6111                           fi
6112
6113 else
6114
6115                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6116
6117 fi
6118
6119
6120           eval "$wx_cv_use_ipc"
6121
6122           if test x"$enablestring" = xdisable; then
6123             if test $wxUSE_IPC = yes; then
6124               result=no
6125             else
6126               result=yes
6127             fi
6128           else
6129             result=$wxUSE_IPC
6130           fi
6131
6132           { echo "$as_me:$LINENO: result: $result" >&5
6133 echo "${ECHO_T}$result" >&6; }
6134
6135
6136
6137           enablestring=
6138           defaultval=$wxUSE_ALL_FEATURES
6139           if test -z "$defaultval"; then
6140               if test x"$enablestring" = xdisable; then
6141                   defaultval=yes
6142               else
6143                   defaultval=no
6144               fi
6145           fi
6146
6147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6148 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6149           # Check whether --enable-baseevtloop was given.
6150 if test "${enable_baseevtloop+set}" = set; then
6151   enableval=$enable_baseevtloop;
6152                           if test "$enableval" = yes; then
6153                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6154                           else
6155                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6156                           fi
6157
6158 else
6159
6160                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6161
6162 fi
6163
6164
6165           eval "$wx_cv_use_baseevtloop"
6166
6167           if test x"$enablestring" = xdisable; then
6168             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6169               result=no
6170             else
6171               result=yes
6172             fi
6173           else
6174             result=$wxUSE_CONSOLE_EVENTLOOP
6175           fi
6176
6177           { echo "$as_me:$LINENO: result: $result" >&5
6178 echo "${ECHO_T}$result" >&6; }
6179
6180
6181           enablestring=
6182           defaultval=$wxUSE_ALL_FEATURES
6183           if test -z "$defaultval"; then
6184               if test x"$enablestring" = xdisable; then
6185                   defaultval=yes
6186               else
6187                   defaultval=no
6188               fi
6189           fi
6190
6191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6192 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6193           # Check whether --enable-epollloop was given.
6194 if test "${enable_epollloop+set}" = set; then
6195   enableval=$enable_epollloop;
6196                           if test "$enableval" = yes; then
6197                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6198                           else
6199                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6200                           fi
6201
6202 else
6203
6204                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6205
6206 fi
6207
6208
6209           eval "$wx_cv_use_epollloop"
6210
6211           if test x"$enablestring" = xdisable; then
6212             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6213               result=no
6214             else
6215               result=yes
6216             fi
6217           else
6218             result=$wxUSE_EPOLL_DISPATCHER
6219           fi
6220
6221           { echo "$as_me:$LINENO: result: $result" >&5
6222 echo "${ECHO_T}$result" >&6; }
6223
6224
6225           enablestring=
6226           defaultval=$wxUSE_ALL_FEATURES
6227           if test -z "$defaultval"; then
6228               if test x"$enablestring" = xdisable; then
6229                   defaultval=yes
6230               else
6231                   defaultval=no
6232               fi
6233           fi
6234
6235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6236 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6237           # Check whether --enable-selectloop was given.
6238 if test "${enable_selectloop+set}" = set; then
6239   enableval=$enable_selectloop;
6240                           if test "$enableval" = yes; then
6241                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6242                           else
6243                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6244                           fi
6245
6246 else
6247
6248                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6249
6250 fi
6251
6252
6253           eval "$wx_cv_use_selectloop"
6254
6255           if test x"$enablestring" = xdisable; then
6256             if test $wxUSE_SELECT_DISPATCHER = yes; then
6257               result=no
6258             else
6259               result=yes
6260             fi
6261           else
6262             result=$wxUSE_SELECT_DISPATCHER
6263           fi
6264
6265           { echo "$as_me:$LINENO: result: $result" >&5
6266 echo "${ECHO_T}$result" >&6; }
6267
6268
6269
6270           enablestring=
6271           defaultval=$wxUSE_ALL_FEATURES
6272           if test -z "$defaultval"; then
6273               if test x"$enablestring" = xdisable; then
6274                   defaultval=yes
6275               else
6276                   defaultval=no
6277               fi
6278           fi
6279
6280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6281 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6282           # Check whether --enable-apple_ieee was given.
6283 if test "${enable_apple_ieee+set}" = set; then
6284   enableval=$enable_apple_ieee;
6285                           if test "$enableval" = yes; then
6286                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6287                           else
6288                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6289                           fi
6290
6291 else
6292
6293                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6294
6295 fi
6296
6297
6298           eval "$wx_cv_use_apple_ieee"
6299
6300           if test x"$enablestring" = xdisable; then
6301             if test $wxUSE_APPLE_IEEE = yes; then
6302               result=no
6303             else
6304               result=yes
6305             fi
6306           else
6307             result=$wxUSE_APPLE_IEEE
6308           fi
6309
6310           { echo "$as_me:$LINENO: result: $result" >&5
6311 echo "${ECHO_T}$result" >&6; }
6312
6313
6314           enablestring=
6315           defaultval=$wxUSE_ALL_FEATURES
6316           if test -z "$defaultval"; then
6317               if test x"$enablestring" = xdisable; then
6318                   defaultval=yes
6319               else
6320                   defaultval=no
6321               fi
6322           fi
6323
6324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6325 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6326           # Check whether --enable-arcstream was given.
6327 if test "${enable_arcstream+set}" = set; then
6328   enableval=$enable_arcstream;
6329                           if test "$enableval" = yes; then
6330                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6331                           else
6332                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6333                           fi
6334
6335 else
6336
6337                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6338
6339 fi
6340
6341
6342           eval "$wx_cv_use_arcstream"
6343
6344           if test x"$enablestring" = xdisable; then
6345             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6346               result=no
6347             else
6348               result=yes
6349             fi
6350           else
6351             result=$wxUSE_ARCHIVE_STREAMS
6352           fi
6353
6354           { echo "$as_me:$LINENO: result: $result" >&5
6355 echo "${ECHO_T}$result" >&6; }
6356
6357
6358           enablestring=
6359           defaultval=$wxUSE_ALL_FEATURES
6360           if test -z "$defaultval"; then
6361               if test x"$enablestring" = xdisable; then
6362                   defaultval=yes
6363               else
6364                   defaultval=no
6365               fi
6366           fi
6367
6368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6369 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6370           # Check whether --enable-base64 was given.
6371 if test "${enable_base64+set}" = set; then
6372   enableval=$enable_base64;
6373                           if test "$enableval" = yes; then
6374                             wx_cv_use_base64='wxUSE_BASE64=yes'
6375                           else
6376                             wx_cv_use_base64='wxUSE_BASE64=no'
6377                           fi
6378
6379 else
6380
6381                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6382
6383 fi
6384
6385
6386           eval "$wx_cv_use_base64"
6387
6388           if test x"$enablestring" = xdisable; then
6389             if test $wxUSE_BASE64 = yes; then
6390               result=no
6391             else
6392               result=yes
6393             fi
6394           else
6395             result=$wxUSE_BASE64
6396           fi
6397
6398           { echo "$as_me:$LINENO: result: $result" >&5
6399 echo "${ECHO_T}$result" >&6; }
6400
6401
6402           enablestring=
6403           defaultval=$wxUSE_ALL_FEATURES
6404           if test -z "$defaultval"; then
6405               if test x"$enablestring" = xdisable; then
6406                   defaultval=yes
6407               else
6408                   defaultval=no
6409               fi
6410           fi
6411
6412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6413 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6414           # Check whether --enable-backtrace was given.
6415 if test "${enable_backtrace+set}" = set; then
6416   enableval=$enable_backtrace;
6417                           if test "$enableval" = yes; then
6418                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6419                           else
6420                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6421                           fi
6422
6423 else
6424
6425                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6426
6427 fi
6428
6429
6430           eval "$wx_cv_use_backtrace"
6431
6432           if test x"$enablestring" = xdisable; then
6433             if test $wxUSE_STACKWALKER = yes; then
6434               result=no
6435             else
6436               result=yes
6437             fi
6438           else
6439             result=$wxUSE_STACKWALKER
6440           fi
6441
6442           { echo "$as_me:$LINENO: result: $result" >&5
6443 echo "${ECHO_T}$result" >&6; }
6444
6445
6446           enablestring=
6447           defaultval=$wxUSE_ALL_FEATURES
6448           if test -z "$defaultval"; then
6449               if test x"$enablestring" = xdisable; then
6450                   defaultval=yes
6451               else
6452                   defaultval=no
6453               fi
6454           fi
6455
6456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6457 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6458           # Check whether --enable-catch_segvs was given.
6459 if test "${enable_catch_segvs+set}" = set; then
6460   enableval=$enable_catch_segvs;
6461                           if test "$enableval" = yes; then
6462                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6463                           else
6464                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6465                           fi
6466
6467 else
6468
6469                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6470
6471 fi
6472
6473
6474           eval "$wx_cv_use_catch_segvs"
6475
6476           if test x"$enablestring" = xdisable; then
6477             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6478               result=no
6479             else
6480               result=yes
6481             fi
6482           else
6483             result=$wxUSE_ON_FATAL_EXCEPTION
6484           fi
6485
6486           { echo "$as_me:$LINENO: result: $result" >&5
6487 echo "${ECHO_T}$result" >&6; }
6488
6489
6490           enablestring=
6491           defaultval=$wxUSE_ALL_FEATURES
6492           if test -z "$defaultval"; then
6493               if test x"$enablestring" = xdisable; then
6494                   defaultval=yes
6495               else
6496                   defaultval=no
6497               fi
6498           fi
6499
6500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6501 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6502           # Check whether --enable-cmdline was given.
6503 if test "${enable_cmdline+set}" = set; then
6504   enableval=$enable_cmdline;
6505                           if test "$enableval" = yes; then
6506                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6507                           else
6508                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6509                           fi
6510
6511 else
6512
6513                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6514
6515 fi
6516
6517
6518           eval "$wx_cv_use_cmdline"
6519
6520           if test x"$enablestring" = xdisable; then
6521             if test $wxUSE_CMDLINE_PARSER = yes; then
6522               result=no
6523             else
6524               result=yes
6525             fi
6526           else
6527             result=$wxUSE_CMDLINE_PARSER
6528           fi
6529
6530           { echo "$as_me:$LINENO: result: $result" >&5
6531 echo "${ECHO_T}$result" >&6; }
6532
6533
6534           enablestring=
6535           defaultval=$wxUSE_ALL_FEATURES
6536           if test -z "$defaultval"; then
6537               if test x"$enablestring" = xdisable; then
6538                   defaultval=yes
6539               else
6540                   defaultval=no
6541               fi
6542           fi
6543
6544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6545 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6546           # Check whether --enable-datetime was given.
6547 if test "${enable_datetime+set}" = set; then
6548   enableval=$enable_datetime;
6549                           if test "$enableval" = yes; then
6550                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6551                           else
6552                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6553                           fi
6554
6555 else
6556
6557                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6558
6559 fi
6560
6561
6562           eval "$wx_cv_use_datetime"
6563
6564           if test x"$enablestring" = xdisable; then
6565             if test $wxUSE_DATETIME = yes; then
6566               result=no
6567             else
6568               result=yes
6569             fi
6570           else
6571             result=$wxUSE_DATETIME
6572           fi
6573
6574           { echo "$as_me:$LINENO: result: $result" >&5
6575 echo "${ECHO_T}$result" >&6; }
6576
6577
6578           enablestring=
6579           defaultval=$wxUSE_ALL_FEATURES
6580           if test -z "$defaultval"; then
6581               if test x"$enablestring" = xdisable; then
6582                   defaultval=yes
6583               else
6584                   defaultval=no
6585               fi
6586           fi
6587
6588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6589 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6590           # Check whether --enable-debugreport was given.
6591 if test "${enable_debugreport+set}" = set; then
6592   enableval=$enable_debugreport;
6593                           if test "$enableval" = yes; then
6594                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6595                           else
6596                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6597                           fi
6598
6599 else
6600
6601                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6602
6603 fi
6604
6605
6606           eval "$wx_cv_use_debugreport"
6607
6608           if test x"$enablestring" = xdisable; then
6609             if test $wxUSE_DEBUGREPORT = yes; then
6610               result=no
6611             else
6612               result=yes
6613             fi
6614           else
6615             result=$wxUSE_DEBUGREPORT
6616           fi
6617
6618           { echo "$as_me:$LINENO: result: $result" >&5
6619 echo "${ECHO_T}$result" >&6; }
6620
6621
6622           enablestring=
6623           defaultval=$wxUSE_ALL_FEATURES
6624           if test -z "$defaultval"; then
6625               if test x"$enablestring" = xdisable; then
6626                   defaultval=yes
6627               else
6628                   defaultval=no
6629               fi
6630           fi
6631
6632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6633 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6634           # Check whether --enable-dialupman was given.
6635 if test "${enable_dialupman+set}" = set; then
6636   enableval=$enable_dialupman;
6637                           if test "$enableval" = yes; then
6638                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6639                           else
6640                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6641                           fi
6642
6643 else
6644
6645                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6646
6647 fi
6648
6649
6650           eval "$wx_cv_use_dialupman"
6651
6652           if test x"$enablestring" = xdisable; then
6653             if test $wxUSE_DIALUP_MANAGER = yes; then
6654               result=no
6655             else
6656               result=yes
6657             fi
6658           else
6659             result=$wxUSE_DIALUP_MANAGER
6660           fi
6661
6662           { echo "$as_me:$LINENO: result: $result" >&5
6663 echo "${ECHO_T}$result" >&6; }
6664
6665
6666           enablestring=
6667           defaultval=$wxUSE_ALL_FEATURES
6668           if test -z "$defaultval"; then
6669               if test x"$enablestring" = xdisable; then
6670                   defaultval=yes
6671               else
6672                   defaultval=no
6673               fi
6674           fi
6675
6676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6677 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6678           # Check whether --enable-dynlib was given.
6679 if test "${enable_dynlib+set}" = set; then
6680   enableval=$enable_dynlib;
6681                           if test "$enableval" = yes; then
6682                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6683                           else
6684                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6685                           fi
6686
6687 else
6688
6689                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6690
6691 fi
6692
6693
6694           eval "$wx_cv_use_dynlib"
6695
6696           if test x"$enablestring" = xdisable; then
6697             if test $wxUSE_DYNLIB_CLASS = yes; then
6698               result=no
6699             else
6700               result=yes
6701             fi
6702           else
6703             result=$wxUSE_DYNLIB_CLASS
6704           fi
6705
6706           { echo "$as_me:$LINENO: result: $result" >&5
6707 echo "${ECHO_T}$result" >&6; }
6708
6709
6710           enablestring=
6711           defaultval=$wxUSE_ALL_FEATURES
6712           if test -z "$defaultval"; then
6713               if test x"$enablestring" = xdisable; then
6714                   defaultval=yes
6715               else
6716                   defaultval=no
6717               fi
6718           fi
6719
6720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6721 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6722           # Check whether --enable-dynamicloader was given.
6723 if test "${enable_dynamicloader+set}" = set; then
6724   enableval=$enable_dynamicloader;
6725                           if test "$enableval" = yes; then
6726                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6727                           else
6728                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6729                           fi
6730
6731 else
6732
6733                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6734
6735 fi
6736
6737
6738           eval "$wx_cv_use_dynamicloader"
6739
6740           if test x"$enablestring" = xdisable; then
6741             if test $wxUSE_DYNAMIC_LOADER = yes; then
6742               result=no
6743             else
6744               result=yes
6745             fi
6746           else
6747             result=$wxUSE_DYNAMIC_LOADER
6748           fi
6749
6750           { echo "$as_me:$LINENO: result: $result" >&5
6751 echo "${ECHO_T}$result" >&6; }
6752
6753
6754           enablestring=
6755           defaultval=$wxUSE_ALL_FEATURES
6756           if test -z "$defaultval"; then
6757               if test x"$enablestring" = xdisable; then
6758                   defaultval=yes
6759               else
6760                   defaultval=no
6761               fi
6762           fi
6763
6764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6765 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6766           # Check whether --enable-exceptions was given.
6767 if test "${enable_exceptions+set}" = set; then
6768   enableval=$enable_exceptions;
6769                           if test "$enableval" = yes; then
6770                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6771                           else
6772                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6773                           fi
6774
6775 else
6776
6777                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6778
6779 fi
6780
6781
6782           eval "$wx_cv_use_exceptions"
6783
6784           if test x"$enablestring" = xdisable; then
6785             if test $wxUSE_EXCEPTIONS = yes; then
6786               result=no
6787             else
6788               result=yes
6789             fi
6790           else
6791             result=$wxUSE_EXCEPTIONS
6792           fi
6793
6794           { echo "$as_me:$LINENO: result: $result" >&5
6795 echo "${ECHO_T}$result" >&6; }
6796
6797
6798           enablestring=
6799           defaultval=$wxUSE_ALL_FEATURES
6800           if test -z "$defaultval"; then
6801               if test x"$enablestring" = xdisable; then
6802                   defaultval=yes
6803               else
6804                   defaultval=no
6805               fi
6806           fi
6807
6808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6809 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6810           # Check whether --enable-ffile was given.
6811 if test "${enable_ffile+set}" = set; then
6812   enableval=$enable_ffile;
6813                           if test "$enableval" = yes; then
6814                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6815                           else
6816                             wx_cv_use_ffile='wxUSE_FFILE=no'
6817                           fi
6818
6819 else
6820
6821                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6822
6823 fi
6824
6825
6826           eval "$wx_cv_use_ffile"
6827
6828           if test x"$enablestring" = xdisable; then
6829             if test $wxUSE_FFILE = yes; then
6830               result=no
6831             else
6832               result=yes
6833             fi
6834           else
6835             result=$wxUSE_FFILE
6836           fi
6837
6838           { echo "$as_me:$LINENO: result: $result" >&5
6839 echo "${ECHO_T}$result" >&6; }
6840
6841
6842           enablestring=
6843           defaultval=$wxUSE_ALL_FEATURES
6844           if test -z "$defaultval"; then
6845               if test x"$enablestring" = xdisable; then
6846                   defaultval=yes
6847               else
6848                   defaultval=no
6849               fi
6850           fi
6851
6852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6853 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6854           # Check whether --enable-file was given.
6855 if test "${enable_file+set}" = set; then
6856   enableval=$enable_file;
6857                           if test "$enableval" = yes; then
6858                             wx_cv_use_file='wxUSE_FILE=yes'
6859                           else
6860                             wx_cv_use_file='wxUSE_FILE=no'
6861                           fi
6862
6863 else
6864
6865                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6866
6867 fi
6868
6869
6870           eval "$wx_cv_use_file"
6871
6872           if test x"$enablestring" = xdisable; then
6873             if test $wxUSE_FILE = yes; then
6874               result=no
6875             else
6876               result=yes
6877             fi
6878           else
6879             result=$wxUSE_FILE
6880           fi
6881
6882           { echo "$as_me:$LINENO: result: $result" >&5
6883 echo "${ECHO_T}$result" >&6; }
6884
6885
6886           enablestring=
6887           defaultval=$wxUSE_ALL_FEATURES
6888           if test -z "$defaultval"; then
6889               if test x"$enablestring" = xdisable; then
6890                   defaultval=yes
6891               else
6892                   defaultval=no
6893               fi
6894           fi
6895
6896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6897 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6898           # Check whether --enable-filesystem was given.
6899 if test "${enable_filesystem+set}" = set; then
6900   enableval=$enable_filesystem;
6901                           if test "$enableval" = yes; then
6902                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6903                           else
6904                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6905                           fi
6906
6907 else
6908
6909                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6910
6911 fi
6912
6913
6914           eval "$wx_cv_use_filesystem"
6915
6916           if test x"$enablestring" = xdisable; then
6917             if test $wxUSE_FILESYSTEM = yes; then
6918               result=no
6919             else
6920               result=yes
6921             fi
6922           else
6923             result=$wxUSE_FILESYSTEM
6924           fi
6925
6926           { echo "$as_me:$LINENO: result: $result" >&5
6927 echo "${ECHO_T}$result" >&6; }
6928
6929
6930           enablestring=
6931           defaultval=$wxUSE_ALL_FEATURES
6932           if test -z "$defaultval"; then
6933               if test x"$enablestring" = xdisable; then
6934                   defaultval=yes
6935               else
6936                   defaultval=no
6937               fi
6938           fi
6939
6940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6941 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6942           # Check whether --enable-fontenum was given.
6943 if test "${enable_fontenum+set}" = set; then
6944   enableval=$enable_fontenum;
6945                           if test "$enableval" = yes; then
6946                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6947                           else
6948                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6949                           fi
6950
6951 else
6952
6953                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6954
6955 fi
6956
6957
6958           eval "$wx_cv_use_fontenum"
6959
6960           if test x"$enablestring" = xdisable; then
6961             if test $wxUSE_FONTENUM = yes; then
6962               result=no
6963             else
6964               result=yes
6965             fi
6966           else
6967             result=$wxUSE_FONTENUM
6968           fi
6969
6970           { echo "$as_me:$LINENO: result: $result" >&5
6971 echo "${ECHO_T}$result" >&6; }
6972
6973
6974           enablestring=
6975           defaultval=$wxUSE_ALL_FEATURES
6976           if test -z "$defaultval"; then
6977               if test x"$enablestring" = xdisable; then
6978                   defaultval=yes
6979               else
6980                   defaultval=no
6981               fi
6982           fi
6983
6984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6985 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6986           # Check whether --enable-fontmap was given.
6987 if test "${enable_fontmap+set}" = set; then
6988   enableval=$enable_fontmap;
6989                           if test "$enableval" = yes; then
6990                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6991                           else
6992                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6993                           fi
6994
6995 else
6996
6997                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6998
6999 fi
7000
7001
7002           eval "$wx_cv_use_fontmap"
7003
7004           if test x"$enablestring" = xdisable; then
7005             if test $wxUSE_FONTMAP = yes; then
7006               result=no
7007             else
7008               result=yes
7009             fi
7010           else
7011             result=$wxUSE_FONTMAP
7012           fi
7013
7014           { echo "$as_me:$LINENO: result: $result" >&5
7015 echo "${ECHO_T}$result" >&6; }
7016
7017
7018           enablestring=
7019           defaultval=$wxUSE_ALL_FEATURES
7020           if test -z "$defaultval"; then
7021               if test x"$enablestring" = xdisable; then
7022                   defaultval=yes
7023               else
7024                   defaultval=no
7025               fi
7026           fi
7027
7028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7029 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7030           # Check whether --enable-fs_archive was given.
7031 if test "${enable_fs_archive+set}" = set; then
7032   enableval=$enable_fs_archive;
7033                           if test "$enableval" = yes; then
7034                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7035                           else
7036                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7037                           fi
7038
7039 else
7040
7041                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7042
7043 fi
7044
7045
7046           eval "$wx_cv_use_fs_archive"
7047
7048           if test x"$enablestring" = xdisable; then
7049             if test $wxUSE_FS_ARCHIVE = yes; then
7050               result=no
7051             else
7052               result=yes
7053             fi
7054           else
7055             result=$wxUSE_FS_ARCHIVE
7056           fi
7057
7058           { echo "$as_me:$LINENO: result: $result" >&5
7059 echo "${ECHO_T}$result" >&6; }
7060
7061
7062           enablestring=
7063           defaultval=$wxUSE_ALL_FEATURES
7064           if test -z "$defaultval"; then
7065               if test x"$enablestring" = xdisable; then
7066                   defaultval=yes
7067               else
7068                   defaultval=no
7069               fi
7070           fi
7071
7072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7073 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7074           # Check whether --enable-fs_inet was given.
7075 if test "${enable_fs_inet+set}" = set; then
7076   enableval=$enable_fs_inet;
7077                           if test "$enableval" = yes; then
7078                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7079                           else
7080                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7081                           fi
7082
7083 else
7084
7085                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7086
7087 fi
7088
7089
7090           eval "$wx_cv_use_fs_inet"
7091
7092           if test x"$enablestring" = xdisable; then
7093             if test $wxUSE_FS_INET = yes; then
7094               result=no
7095             else
7096               result=yes
7097             fi
7098           else
7099             result=$wxUSE_FS_INET
7100           fi
7101
7102           { echo "$as_me:$LINENO: result: $result" >&5
7103 echo "${ECHO_T}$result" >&6; }
7104
7105
7106           enablestring=
7107           defaultval=$wxUSE_ALL_FEATURES
7108           if test -z "$defaultval"; then
7109               if test x"$enablestring" = xdisable; then
7110                   defaultval=yes
7111               else
7112                   defaultval=no
7113               fi
7114           fi
7115
7116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7117 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7118           # Check whether --enable-fs_zip was given.
7119 if test "${enable_fs_zip+set}" = set; then
7120   enableval=$enable_fs_zip;
7121                           if test "$enableval" = yes; then
7122                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7123                           else
7124                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7125                           fi
7126
7127 else
7128
7129                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7130
7131 fi
7132
7133
7134           eval "$wx_cv_use_fs_zip"
7135
7136           if test x"$enablestring" = xdisable; then
7137             if test $wxUSE_FS_ZIP = yes; then
7138               result=no
7139             else
7140               result=yes
7141             fi
7142           else
7143             result=$wxUSE_FS_ZIP
7144           fi
7145
7146           { echo "$as_me:$LINENO: result: $result" >&5
7147 echo "${ECHO_T}$result" >&6; }
7148
7149
7150           enablestring=
7151           defaultval=$wxUSE_ALL_FEATURES
7152           if test -z "$defaultval"; then
7153               if test x"$enablestring" = xdisable; then
7154                   defaultval=yes
7155               else
7156                   defaultval=no
7157               fi
7158           fi
7159
7160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7161 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7162           # Check whether --enable-geometry was given.
7163 if test "${enable_geometry+set}" = set; then
7164   enableval=$enable_geometry;
7165                           if test "$enableval" = yes; then
7166                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7167                           else
7168                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7169                           fi
7170
7171 else
7172
7173                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7174
7175 fi
7176
7177
7178           eval "$wx_cv_use_geometry"
7179
7180           if test x"$enablestring" = xdisable; then
7181             if test $wxUSE_GEOMETRY = yes; then
7182               result=no
7183             else
7184               result=yes
7185             fi
7186           else
7187             result=$wxUSE_GEOMETRY
7188           fi
7189
7190           { echo "$as_me:$LINENO: result: $result" >&5
7191 echo "${ECHO_T}$result" >&6; }
7192
7193
7194           enablestring=
7195           defaultval=$wxUSE_ALL_FEATURES
7196           if test -z "$defaultval"; then
7197               if test x"$enablestring" = xdisable; then
7198                   defaultval=yes
7199               else
7200                   defaultval=no
7201               fi
7202           fi
7203
7204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7205 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7206           # Check whether --enable-log was given.
7207 if test "${enable_log+set}" = set; then
7208   enableval=$enable_log;
7209                           if test "$enableval" = yes; then
7210                             wx_cv_use_log='wxUSE_LOG=yes'
7211                           else
7212                             wx_cv_use_log='wxUSE_LOG=no'
7213                           fi
7214
7215 else
7216
7217                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7218
7219 fi
7220
7221
7222           eval "$wx_cv_use_log"
7223
7224           if test x"$enablestring" = xdisable; then
7225             if test $wxUSE_LOG = yes; then
7226               result=no
7227             else
7228               result=yes
7229             fi
7230           else
7231             result=$wxUSE_LOG
7232           fi
7233
7234           { echo "$as_me:$LINENO: result: $result" >&5
7235 echo "${ECHO_T}$result" >&6; }
7236
7237
7238           enablestring=
7239           defaultval=$wxUSE_ALL_FEATURES
7240           if test -z "$defaultval"; then
7241               if test x"$enablestring" = xdisable; then
7242                   defaultval=yes
7243               else
7244                   defaultval=no
7245               fi
7246           fi
7247
7248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7249 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7250           # Check whether --enable-longlong was given.
7251 if test "${enable_longlong+set}" = set; then
7252   enableval=$enable_longlong;
7253                           if test "$enableval" = yes; then
7254                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7255                           else
7256                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7257                           fi
7258
7259 else
7260
7261                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7262
7263 fi
7264
7265
7266           eval "$wx_cv_use_longlong"
7267
7268           if test x"$enablestring" = xdisable; then
7269             if test $wxUSE_LONGLONG = yes; then
7270               result=no
7271             else
7272               result=yes
7273             fi
7274           else
7275             result=$wxUSE_LONGLONG
7276           fi
7277
7278           { echo "$as_me:$LINENO: result: $result" >&5
7279 echo "${ECHO_T}$result" >&6; }
7280
7281
7282           enablestring=
7283           defaultval=$wxUSE_ALL_FEATURES
7284           if test -z "$defaultval"; then
7285               if test x"$enablestring" = xdisable; then
7286                   defaultval=yes
7287               else
7288                   defaultval=no
7289               fi
7290           fi
7291
7292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7293 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7294           # Check whether --enable-mimetype was given.
7295 if test "${enable_mimetype+set}" = set; then
7296   enableval=$enable_mimetype;
7297                           if test "$enableval" = yes; then
7298                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7299                           else
7300                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7301                           fi
7302
7303 else
7304
7305                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7306
7307 fi
7308
7309
7310           eval "$wx_cv_use_mimetype"
7311
7312           if test x"$enablestring" = xdisable; then
7313             if test $wxUSE_MIMETYPE = yes; then
7314               result=no
7315             else
7316               result=yes
7317             fi
7318           else
7319             result=$wxUSE_MIMETYPE
7320           fi
7321
7322           { echo "$as_me:$LINENO: result: $result" >&5
7323 echo "${ECHO_T}$result" >&6; }
7324
7325
7326           enablestring=
7327           defaultval=$wxUSE_ALL_FEATURES
7328           if test -z "$defaultval"; then
7329               if test x"$enablestring" = xdisable; then
7330                   defaultval=yes
7331               else
7332                   defaultval=no
7333               fi
7334           fi
7335
7336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7337 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7338           # Check whether --enable-printfposparam was given.
7339 if test "${enable_printfposparam+set}" = set; then
7340   enableval=$enable_printfposparam;
7341                           if test "$enableval" = yes; then
7342                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7343                           else
7344                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7345                           fi
7346
7347 else
7348
7349                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7350
7351 fi
7352
7353
7354           eval "$wx_cv_use_printfposparam"
7355
7356           if test x"$enablestring" = xdisable; then
7357             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7358               result=no
7359             else
7360               result=yes
7361             fi
7362           else
7363             result=$wxUSE_PRINTF_POS_PARAMS
7364           fi
7365
7366           { echo "$as_me:$LINENO: result: $result" >&5
7367 echo "${ECHO_T}$result" >&6; }
7368
7369
7370           enablestring=
7371           defaultval=$wxUSE_ALL_FEATURES
7372           if test -z "$defaultval"; then
7373               if test x"$enablestring" = xdisable; then
7374                   defaultval=yes
7375               else
7376                   defaultval=no
7377               fi
7378           fi
7379
7380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7381 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7382           # Check whether --enable-snglinst was given.
7383 if test "${enable_snglinst+set}" = set; then
7384   enableval=$enable_snglinst;
7385                           if test "$enableval" = yes; then
7386                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7387                           else
7388                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7389                           fi
7390
7391 else
7392
7393                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7394
7395 fi
7396
7397
7398           eval "$wx_cv_use_snglinst"
7399
7400           if test x"$enablestring" = xdisable; then
7401             if test $wxUSE_SNGLINST_CHECKER = yes; then
7402               result=no
7403             else
7404               result=yes
7405             fi
7406           else
7407             result=$wxUSE_SNGLINST_CHECKER
7408           fi
7409
7410           { echo "$as_me:$LINENO: result: $result" >&5
7411 echo "${ECHO_T}$result" >&6; }
7412
7413
7414           enablestring=
7415           defaultval=$wxUSE_ALL_FEATURES
7416           if test -z "$defaultval"; then
7417               if test x"$enablestring" = xdisable; then
7418                   defaultval=yes
7419               else
7420                   defaultval=no
7421               fi
7422           fi
7423
7424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7425 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7426           # Check whether --enable-sound was given.
7427 if test "${enable_sound+set}" = set; then
7428   enableval=$enable_sound;
7429                           if test "$enableval" = yes; then
7430                             wx_cv_use_sound='wxUSE_SOUND=yes'
7431                           else
7432                             wx_cv_use_sound='wxUSE_SOUND=no'
7433                           fi
7434
7435 else
7436
7437                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7438
7439 fi
7440
7441
7442           eval "$wx_cv_use_sound"
7443
7444           if test x"$enablestring" = xdisable; then
7445             if test $wxUSE_SOUND = yes; then
7446               result=no
7447             else
7448               result=yes
7449             fi
7450           else
7451             result=$wxUSE_SOUND
7452           fi
7453
7454           { echo "$as_me:$LINENO: result: $result" >&5
7455 echo "${ECHO_T}$result" >&6; }
7456
7457
7458           enablestring=
7459           defaultval=$wxUSE_ALL_FEATURES
7460           if test -z "$defaultval"; then
7461               if test x"$enablestring" = xdisable; then
7462                   defaultval=yes
7463               else
7464                   defaultval=no
7465               fi
7466           fi
7467
7468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7469 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7470           # Check whether --enable-stdpaths was given.
7471 if test "${enable_stdpaths+set}" = set; then
7472   enableval=$enable_stdpaths;
7473                           if test "$enableval" = yes; then
7474                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7475                           else
7476                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7477                           fi
7478
7479 else
7480
7481                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7482
7483 fi
7484
7485
7486           eval "$wx_cv_use_stdpaths"
7487
7488           if test x"$enablestring" = xdisable; then
7489             if test $wxUSE_STDPATHS = yes; then
7490               result=no
7491             else
7492               result=yes
7493             fi
7494           else
7495             result=$wxUSE_STDPATHS
7496           fi
7497
7498           { echo "$as_me:$LINENO: result: $result" >&5
7499 echo "${ECHO_T}$result" >&6; }
7500
7501
7502           enablestring=
7503           defaultval=$wxUSE_ALL_FEATURES
7504           if test -z "$defaultval"; then
7505               if test x"$enablestring" = xdisable; then
7506                   defaultval=yes
7507               else
7508                   defaultval=no
7509               fi
7510           fi
7511
7512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7513 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7514           # Check whether --enable-stopwatch was given.
7515 if test "${enable_stopwatch+set}" = set; then
7516   enableval=$enable_stopwatch;
7517                           if test "$enableval" = yes; then
7518                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7519                           else
7520                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7521                           fi
7522
7523 else
7524
7525                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7526
7527 fi
7528
7529
7530           eval "$wx_cv_use_stopwatch"
7531
7532           if test x"$enablestring" = xdisable; then
7533             if test $wxUSE_STOPWATCH = yes; then
7534               result=no
7535             else
7536               result=yes
7537             fi
7538           else
7539             result=$wxUSE_STOPWATCH
7540           fi
7541
7542           { echo "$as_me:$LINENO: result: $result" >&5
7543 echo "${ECHO_T}$result" >&6; }
7544
7545
7546           enablestring=
7547           defaultval=$wxUSE_ALL_FEATURES
7548           if test -z "$defaultval"; then
7549               if test x"$enablestring" = xdisable; then
7550                   defaultval=yes
7551               else
7552                   defaultval=no
7553               fi
7554           fi
7555
7556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7557 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7558           # Check whether --enable-streams was given.
7559 if test "${enable_streams+set}" = set; then
7560   enableval=$enable_streams;
7561                           if test "$enableval" = yes; then
7562                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7563                           else
7564                             wx_cv_use_streams='wxUSE_STREAMS=no'
7565                           fi
7566
7567 else
7568
7569                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7570
7571 fi
7572
7573
7574           eval "$wx_cv_use_streams"
7575
7576           if test x"$enablestring" = xdisable; then
7577             if test $wxUSE_STREAMS = yes; then
7578               result=no
7579             else
7580               result=yes
7581             fi
7582           else
7583             result=$wxUSE_STREAMS
7584           fi
7585
7586           { echo "$as_me:$LINENO: result: $result" >&5
7587 echo "${ECHO_T}$result" >&6; }
7588
7589
7590           enablestring=
7591           defaultval=$wxUSE_ALL_FEATURES
7592           if test -z "$defaultval"; then
7593               if test x"$enablestring" = xdisable; then
7594                   defaultval=yes
7595               else
7596                   defaultval=no
7597               fi
7598           fi
7599
7600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7601 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7602           # Check whether --enable-system_options was given.
7603 if test "${enable_system_options+set}" = set; then
7604   enableval=$enable_system_options;
7605                           if test "$enableval" = yes; then
7606                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7607                           else
7608                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7609                           fi
7610
7611 else
7612
7613                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7614
7615 fi
7616
7617
7618           eval "$wx_cv_use_system_options"
7619
7620           if test x"$enablestring" = xdisable; then
7621             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7622               result=no
7623             else
7624               result=yes
7625             fi
7626           else
7627             result=$wxUSE_SYSTEM_OPTIONS
7628           fi
7629
7630           { echo "$as_me:$LINENO: result: $result" >&5
7631 echo "${ECHO_T}$result" >&6; }
7632
7633
7634           enablestring=
7635           defaultval=$wxUSE_ALL_FEATURES
7636           if test -z "$defaultval"; then
7637               if test x"$enablestring" = xdisable; then
7638                   defaultval=yes
7639               else
7640                   defaultval=no
7641               fi
7642           fi
7643
7644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7645 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7646           # Check whether --enable-tarstream was given.
7647 if test "${enable_tarstream+set}" = set; then
7648   enableval=$enable_tarstream;
7649                           if test "$enableval" = yes; then
7650                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7651                           else
7652                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7653                           fi
7654
7655 else
7656
7657                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7658
7659 fi
7660
7661
7662           eval "$wx_cv_use_tarstream"
7663
7664           if test x"$enablestring" = xdisable; then
7665             if test $wxUSE_TARSTREAM = yes; then
7666               result=no
7667             else
7668               result=yes
7669             fi
7670           else
7671             result=$wxUSE_TARSTREAM
7672           fi
7673
7674           { echo "$as_me:$LINENO: result: $result" >&5
7675 echo "${ECHO_T}$result" >&6; }
7676
7677
7678           enablestring=
7679           defaultval=$wxUSE_ALL_FEATURES
7680           if test -z "$defaultval"; then
7681               if test x"$enablestring" = xdisable; then
7682                   defaultval=yes
7683               else
7684                   defaultval=no
7685               fi
7686           fi
7687
7688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7689 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7690           # Check whether --enable-textbuf was given.
7691 if test "${enable_textbuf+set}" = set; then
7692   enableval=$enable_textbuf;
7693                           if test "$enableval" = yes; then
7694                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7695                           else
7696                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7697                           fi
7698
7699 else
7700
7701                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7702
7703 fi
7704
7705
7706           eval "$wx_cv_use_textbuf"
7707
7708           if test x"$enablestring" = xdisable; then
7709             if test $wxUSE_TEXTBUFFER = yes; then
7710               result=no
7711             else
7712               result=yes
7713             fi
7714           else
7715             result=$wxUSE_TEXTBUFFER
7716           fi
7717
7718           { echo "$as_me:$LINENO: result: $result" >&5
7719 echo "${ECHO_T}$result" >&6; }
7720
7721
7722           enablestring=
7723           defaultval=$wxUSE_ALL_FEATURES
7724           if test -z "$defaultval"; then
7725               if test x"$enablestring" = xdisable; then
7726                   defaultval=yes
7727               else
7728                   defaultval=no
7729               fi
7730           fi
7731
7732           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7733 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7734           # Check whether --enable-textfile was given.
7735 if test "${enable_textfile+set}" = set; then
7736   enableval=$enable_textfile;
7737                           if test "$enableval" = yes; then
7738                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7739                           else
7740                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7741                           fi
7742
7743 else
7744
7745                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7746
7747 fi
7748
7749
7750           eval "$wx_cv_use_textfile"
7751
7752           if test x"$enablestring" = xdisable; then
7753             if test $wxUSE_TEXTFILE = yes; then
7754               result=no
7755             else
7756               result=yes
7757             fi
7758           else
7759             result=$wxUSE_TEXTFILE
7760           fi
7761
7762           { echo "$as_me:$LINENO: result: $result" >&5
7763 echo "${ECHO_T}$result" >&6; }
7764
7765
7766           enablestring=
7767           defaultval=$wxUSE_ALL_FEATURES
7768           if test -z "$defaultval"; then
7769               if test x"$enablestring" = xdisable; then
7770                   defaultval=yes
7771               else
7772                   defaultval=no
7773               fi
7774           fi
7775
7776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7777 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7778           # Check whether --enable-timer was given.
7779 if test "${enable_timer+set}" = set; then
7780   enableval=$enable_timer;
7781                           if test "$enableval" = yes; then
7782                             wx_cv_use_timer='wxUSE_TIMER=yes'
7783                           else
7784                             wx_cv_use_timer='wxUSE_TIMER=no'
7785                           fi
7786
7787 else
7788
7789                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7790
7791 fi
7792
7793
7794           eval "$wx_cv_use_timer"
7795
7796           if test x"$enablestring" = xdisable; then
7797             if test $wxUSE_TIMER = yes; then
7798               result=no
7799             else
7800               result=yes
7801             fi
7802           else
7803             result=$wxUSE_TIMER
7804           fi
7805
7806           { echo "$as_me:$LINENO: result: $result" >&5
7807 echo "${ECHO_T}$result" >&6; }
7808
7809
7810           enablestring=
7811           defaultval=$wxUSE_ALL_FEATURES
7812           if test -z "$defaultval"; then
7813               if test x"$enablestring" = xdisable; then
7814                   defaultval=yes
7815               else
7816                   defaultval=no
7817               fi
7818           fi
7819
7820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7821 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7822           # Check whether --enable-variant was given.
7823 if test "${enable_variant+set}" = set; then
7824   enableval=$enable_variant;
7825                           if test "$enableval" = yes; then
7826                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7827                           else
7828                             wx_cv_use_variant='wxUSE_VARIANT=no'
7829                           fi
7830
7831 else
7832
7833                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7834
7835 fi
7836
7837
7838           eval "$wx_cv_use_variant"
7839
7840           if test x"$enablestring" = xdisable; then
7841             if test $wxUSE_VARIANT = yes; then
7842               result=no
7843             else
7844               result=yes
7845             fi
7846           else
7847             result=$wxUSE_VARIANT
7848           fi
7849
7850           { echo "$as_me:$LINENO: result: $result" >&5
7851 echo "${ECHO_T}$result" >&6; }
7852
7853
7854           enablestring=
7855           defaultval=$wxUSE_ALL_FEATURES
7856           if test -z "$defaultval"; then
7857               if test x"$enablestring" = xdisable; then
7858                   defaultval=yes
7859               else
7860                   defaultval=no
7861               fi
7862           fi
7863
7864           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7865 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7866           # Check whether --enable-zipstream was given.
7867 if test "${enable_zipstream+set}" = set; then
7868   enableval=$enable_zipstream;
7869                           if test "$enableval" = yes; then
7870                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7871                           else
7872                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7873                           fi
7874
7875 else
7876
7877                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7878
7879 fi
7880
7881
7882           eval "$wx_cv_use_zipstream"
7883
7884           if test x"$enablestring" = xdisable; then
7885             if test $wxUSE_ZIPSTREAM = yes; then
7886               result=no
7887             else
7888               result=yes
7889             fi
7890           else
7891             result=$wxUSE_ZIPSTREAM
7892           fi
7893
7894           { echo "$as_me:$LINENO: result: $result" >&5
7895 echo "${ECHO_T}$result" >&6; }
7896
7897
7898
7899           enablestring=
7900           defaultval=$wxUSE_ALL_FEATURES
7901           if test -z "$defaultval"; then
7902               if test x"$enablestring" = xdisable; then
7903                   defaultval=yes
7904               else
7905                   defaultval=no
7906               fi
7907           fi
7908
7909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7910 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7911           # Check whether --enable-url was given.
7912 if test "${enable_url+set}" = set; then
7913   enableval=$enable_url;
7914                           if test "$enableval" = yes; then
7915                             wx_cv_use_url='wxUSE_URL=yes'
7916                           else
7917                             wx_cv_use_url='wxUSE_URL=no'
7918                           fi
7919
7920 else
7921
7922                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7923
7924 fi
7925
7926
7927           eval "$wx_cv_use_url"
7928
7929           if test x"$enablestring" = xdisable; then
7930             if test $wxUSE_URL = yes; then
7931               result=no
7932             else
7933               result=yes
7934             fi
7935           else
7936             result=$wxUSE_URL
7937           fi
7938
7939           { echo "$as_me:$LINENO: result: $result" >&5
7940 echo "${ECHO_T}$result" >&6; }
7941
7942
7943           enablestring=
7944           defaultval=$wxUSE_ALL_FEATURES
7945           if test -z "$defaultval"; then
7946               if test x"$enablestring" = xdisable; then
7947                   defaultval=yes
7948               else
7949                   defaultval=no
7950               fi
7951           fi
7952
7953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7954 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7955           # Check whether --enable-protocol was given.
7956 if test "${enable_protocol+set}" = set; then
7957   enableval=$enable_protocol;
7958                           if test "$enableval" = yes; then
7959                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7960                           else
7961                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7962                           fi
7963
7964 else
7965
7966                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7967
7968 fi
7969
7970
7971           eval "$wx_cv_use_protocol"
7972
7973           if test x"$enablestring" = xdisable; then
7974             if test $wxUSE_PROTOCOL = yes; then
7975               result=no
7976             else
7977               result=yes
7978             fi
7979           else
7980             result=$wxUSE_PROTOCOL
7981           fi
7982
7983           { echo "$as_me:$LINENO: result: $result" >&5
7984 echo "${ECHO_T}$result" >&6; }
7985
7986
7987           enablestring=
7988           defaultval=$wxUSE_ALL_FEATURES
7989           if test -z "$defaultval"; then
7990               if test x"$enablestring" = xdisable; then
7991                   defaultval=yes
7992               else
7993                   defaultval=no
7994               fi
7995           fi
7996
7997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7998 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7999           # Check whether --enable-protocol_http was given.
8000 if test "${enable_protocol_http+set}" = set; then
8001   enableval=$enable_protocol_http;
8002                           if test "$enableval" = yes; then
8003                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8004                           else
8005                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8006                           fi
8007
8008 else
8009
8010                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8011
8012 fi
8013
8014
8015           eval "$wx_cv_use_protocol_http"
8016
8017           if test x"$enablestring" = xdisable; then
8018             if test $wxUSE_PROTOCOL_HTTP = yes; then
8019               result=no
8020             else
8021               result=yes
8022             fi
8023           else
8024             result=$wxUSE_PROTOCOL_HTTP
8025           fi
8026
8027           { echo "$as_me:$LINENO: result: $result" >&5
8028 echo "${ECHO_T}$result" >&6; }
8029
8030
8031           enablestring=
8032           defaultval=$wxUSE_ALL_FEATURES
8033           if test -z "$defaultval"; then
8034               if test x"$enablestring" = xdisable; then
8035                   defaultval=yes
8036               else
8037                   defaultval=no
8038               fi
8039           fi
8040
8041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8042 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8043           # Check whether --enable-protocol_ftp was given.
8044 if test "${enable_protocol_ftp+set}" = set; then
8045   enableval=$enable_protocol_ftp;
8046                           if test "$enableval" = yes; then
8047                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8048                           else
8049                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8050                           fi
8051
8052 else
8053
8054                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8055
8056 fi
8057
8058
8059           eval "$wx_cv_use_protocol_ftp"
8060
8061           if test x"$enablestring" = xdisable; then
8062             if test $wxUSE_PROTOCOL_FTP = yes; then
8063               result=no
8064             else
8065               result=yes
8066             fi
8067           else
8068             result=$wxUSE_PROTOCOL_FTP
8069           fi
8070
8071           { echo "$as_me:$LINENO: result: $result" >&5
8072 echo "${ECHO_T}$result" >&6; }
8073
8074
8075           enablestring=
8076           defaultval=$wxUSE_ALL_FEATURES
8077           if test -z "$defaultval"; then
8078               if test x"$enablestring" = xdisable; then
8079                   defaultval=yes
8080               else
8081                   defaultval=no
8082               fi
8083           fi
8084
8085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8086 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8087           # Check whether --enable-protocol_file was given.
8088 if test "${enable_protocol_file+set}" = set; then
8089   enableval=$enable_protocol_file;
8090                           if test "$enableval" = yes; then
8091                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8092                           else
8093                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8094                           fi
8095
8096 else
8097
8098                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8099
8100 fi
8101
8102
8103           eval "$wx_cv_use_protocol_file"
8104
8105           if test x"$enablestring" = xdisable; then
8106             if test $wxUSE_PROTOCOL_FILE = yes; then
8107               result=no
8108             else
8109               result=yes
8110             fi
8111           else
8112             result=$wxUSE_PROTOCOL_FILE
8113           fi
8114
8115           { echo "$as_me:$LINENO: result: $result" >&5
8116 echo "${ECHO_T}$result" >&6; }
8117
8118
8119
8120           enablestring=
8121           defaultval=$wxUSE_ALL_FEATURES
8122           if test -z "$defaultval"; then
8123               if test x"$enablestring" = xdisable; then
8124                   defaultval=yes
8125               else
8126                   defaultval=no
8127               fi
8128           fi
8129
8130           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8131 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8132           # Check whether --enable-threads was given.
8133 if test "${enable_threads+set}" = set; then
8134   enableval=$enable_threads;
8135                           if test "$enableval" = yes; then
8136                             wx_cv_use_threads='wxUSE_THREADS=yes'
8137                           else
8138                             wx_cv_use_threads='wxUSE_THREADS=no'
8139                           fi
8140
8141 else
8142
8143                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8144
8145 fi
8146
8147
8148           eval "$wx_cv_use_threads"
8149
8150           if test x"$enablestring" = xdisable; then
8151             if test $wxUSE_THREADS = yes; then
8152               result=no
8153             else
8154               result=yes
8155             fi
8156           else
8157             result=$wxUSE_THREADS
8158           fi
8159
8160           { echo "$as_me:$LINENO: result: $result" >&5
8161 echo "${ECHO_T}$result" >&6; }
8162
8163
8164
8165           enablestring=
8166           defaultval=
8167           if test -z "$defaultval"; then
8168               if test x"$enablestring" = xdisable; then
8169                   defaultval=yes
8170               else
8171                   defaultval=no
8172               fi
8173           fi
8174
8175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8176 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8177           # Check whether --enable-iniconf was given.
8178 if test "${enable_iniconf+set}" = set; then
8179   enableval=$enable_iniconf;
8180                           if test "$enableval" = yes; then
8181                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8182                           else
8183                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8184                           fi
8185
8186 else
8187
8188                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8189
8190 fi
8191
8192
8193           eval "$wx_cv_use_iniconf"
8194
8195           if test x"$enablestring" = xdisable; then
8196             if test $wxUSE_INICONF = yes; then
8197               result=no
8198             else
8199               result=yes
8200             fi
8201           else
8202             result=$wxUSE_INICONF
8203           fi
8204
8205           { echo "$as_me:$LINENO: result: $result" >&5
8206 echo "${ECHO_T}$result" >&6; }
8207
8208
8209           enablestring=
8210           defaultval=$wxUSE_ALL_FEATURES
8211           if test -z "$defaultval"; then
8212               if test x"$enablestring" = xdisable; then
8213                   defaultval=yes
8214               else
8215                   defaultval=no
8216               fi
8217           fi
8218
8219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8220 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8221           # Check whether --enable-regkey was given.
8222 if test "${enable_regkey+set}" = set; then
8223   enableval=$enable_regkey;
8224                           if test "$enableval" = yes; then
8225                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8226                           else
8227                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8228                           fi
8229
8230 else
8231
8232                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8233
8234 fi
8235
8236
8237           eval "$wx_cv_use_regkey"
8238
8239           if test x"$enablestring" = xdisable; then
8240             if test $wxUSE_REGKEY = yes; then
8241               result=no
8242             else
8243               result=yes
8244             fi
8245           else
8246             result=$wxUSE_REGKEY
8247           fi
8248
8249           { echo "$as_me:$LINENO: result: $result" >&5
8250 echo "${ECHO_T}$result" >&6; }
8251
8252
8253 if test "$wxUSE_GUI" = "yes"; then
8254
8255
8256
8257           enablestring=
8258           defaultval=$wxUSE_ALL_FEATURES
8259           if test -z "$defaultval"; then
8260               if test x"$enablestring" = xdisable; then
8261                   defaultval=yes
8262               else
8263                   defaultval=no
8264               fi
8265           fi
8266
8267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8268 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8269           # Check whether --enable-docview was given.
8270 if test "${enable_docview+set}" = set; then
8271   enableval=$enable_docview;
8272                           if test "$enableval" = yes; then
8273                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8274                           else
8275                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8276                           fi
8277
8278 else
8279
8280                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8281
8282 fi
8283
8284
8285           eval "$wx_cv_use_docview"
8286
8287           if test x"$enablestring" = xdisable; then
8288             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8289               result=no
8290             else
8291               result=yes
8292             fi
8293           else
8294             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8295           fi
8296
8297           { echo "$as_me:$LINENO: result: $result" >&5
8298 echo "${ECHO_T}$result" >&6; }
8299
8300
8301           enablestring=
8302           defaultval=$wxUSE_ALL_FEATURES
8303           if test -z "$defaultval"; then
8304               if test x"$enablestring" = xdisable; then
8305                   defaultval=yes
8306               else
8307                   defaultval=no
8308               fi
8309           fi
8310
8311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8312 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8313           # Check whether --enable-help was given.
8314 if test "${enable_help+set}" = set; then
8315   enableval=$enable_help;
8316                           if test "$enableval" = yes; then
8317                             wx_cv_use_help='wxUSE_HELP=yes'
8318                           else
8319                             wx_cv_use_help='wxUSE_HELP=no'
8320                           fi
8321
8322 else
8323
8324                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8325
8326 fi
8327
8328
8329           eval "$wx_cv_use_help"
8330
8331           if test x"$enablestring" = xdisable; then
8332             if test $wxUSE_HELP = yes; then
8333               result=no
8334             else
8335               result=yes
8336             fi
8337           else
8338             result=$wxUSE_HELP
8339           fi
8340
8341           { echo "$as_me:$LINENO: result: $result" >&5
8342 echo "${ECHO_T}$result" >&6; }
8343
8344
8345           enablestring=
8346           defaultval=$wxUSE_ALL_FEATURES
8347           if test -z "$defaultval"; then
8348               if test x"$enablestring" = xdisable; then
8349                   defaultval=yes
8350               else
8351                   defaultval=no
8352               fi
8353           fi
8354
8355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8356 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8357           # Check whether --enable-mshtmlhelp was given.
8358 if test "${enable_mshtmlhelp+set}" = set; then
8359   enableval=$enable_mshtmlhelp;
8360                           if test "$enableval" = yes; then
8361                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8362                           else
8363                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8364                           fi
8365
8366 else
8367
8368                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8369
8370 fi
8371
8372
8373           eval "$wx_cv_use_mshtmlhelp"
8374
8375           if test x"$enablestring" = xdisable; then
8376             if test $wxUSE_MS_HTML_HELP = yes; then
8377               result=no
8378             else
8379               result=yes
8380             fi
8381           else
8382             result=$wxUSE_MS_HTML_HELP
8383           fi
8384
8385           { echo "$as_me:$LINENO: result: $result" >&5
8386 echo "${ECHO_T}$result" >&6; }
8387
8388
8389           enablestring=
8390           defaultval=$wxUSE_ALL_FEATURES
8391           if test -z "$defaultval"; then
8392               if test x"$enablestring" = xdisable; then
8393                   defaultval=yes
8394               else
8395                   defaultval=no
8396               fi
8397           fi
8398
8399           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8400 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8401           # Check whether --enable-html was given.
8402 if test "${enable_html+set}" = set; then
8403   enableval=$enable_html;
8404                           if test "$enableval" = yes; then
8405                             wx_cv_use_html='wxUSE_HTML=yes'
8406                           else
8407                             wx_cv_use_html='wxUSE_HTML=no'
8408                           fi
8409
8410 else
8411
8412                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8413
8414 fi
8415
8416
8417           eval "$wx_cv_use_html"
8418
8419           if test x"$enablestring" = xdisable; then
8420             if test $wxUSE_HTML = yes; then
8421               result=no
8422             else
8423               result=yes
8424             fi
8425           else
8426             result=$wxUSE_HTML
8427           fi
8428
8429           { echo "$as_me:$LINENO: result: $result" >&5
8430 echo "${ECHO_T}$result" >&6; }
8431
8432
8433           enablestring=
8434           defaultval=$wxUSE_ALL_FEATURES
8435           if test -z "$defaultval"; then
8436               if test x"$enablestring" = xdisable; then
8437                   defaultval=yes
8438               else
8439                   defaultval=no
8440               fi
8441           fi
8442
8443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8444 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8445           # Check whether --enable-htmlhelp was given.
8446 if test "${enable_htmlhelp+set}" = set; then
8447   enableval=$enable_htmlhelp;
8448                           if test "$enableval" = yes; then
8449                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8450                           else
8451                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8452                           fi
8453
8454 else
8455
8456                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8457
8458 fi
8459
8460
8461           eval "$wx_cv_use_htmlhelp"
8462
8463           if test x"$enablestring" = xdisable; then
8464             if test $wxUSE_WXHTML_HELP = yes; then
8465               result=no
8466             else
8467               result=yes
8468             fi
8469           else
8470             result=$wxUSE_WXHTML_HELP
8471           fi
8472
8473           { echo "$as_me:$LINENO: result: $result" >&5
8474 echo "${ECHO_T}$result" >&6; }
8475
8476
8477           enablestring=
8478           defaultval=$wxUSE_ALL_FEATURES
8479           if test -z "$defaultval"; then
8480               if test x"$enablestring" = xdisable; then
8481                   defaultval=yes
8482               else
8483                   defaultval=no
8484               fi
8485           fi
8486
8487           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8488 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8489           # Check whether --enable-xrc was given.
8490 if test "${enable_xrc+set}" = set; then
8491   enableval=$enable_xrc;
8492                           if test "$enableval" = yes; then
8493                             wx_cv_use_xrc='wxUSE_XRC=yes'
8494                           else
8495                             wx_cv_use_xrc='wxUSE_XRC=no'
8496                           fi
8497
8498 else
8499
8500                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8501
8502 fi
8503
8504
8505           eval "$wx_cv_use_xrc"
8506
8507           if test x"$enablestring" = xdisable; then
8508             if test $wxUSE_XRC = yes; then
8509               result=no
8510             else
8511               result=yes
8512             fi
8513           else
8514             result=$wxUSE_XRC
8515           fi
8516
8517           { echo "$as_me:$LINENO: result: $result" >&5
8518 echo "${ECHO_T}$result" >&6; }
8519
8520
8521           enablestring=
8522           defaultval=$wxUSE_ALL_FEATURES
8523           if test -z "$defaultval"; then
8524               if test x"$enablestring" = xdisable; then
8525                   defaultval=yes
8526               else
8527                   defaultval=no
8528               fi
8529           fi
8530
8531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8532 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8533           # Check whether --enable-aui was given.
8534 if test "${enable_aui+set}" = set; then
8535   enableval=$enable_aui;
8536                           if test "$enableval" = yes; then
8537                             wx_cv_use_aui='wxUSE_AUI=yes'
8538                           else
8539                             wx_cv_use_aui='wxUSE_AUI=no'
8540                           fi
8541
8542 else
8543
8544                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8545
8546 fi
8547
8548
8549           eval "$wx_cv_use_aui"
8550
8551           if test x"$enablestring" = xdisable; then
8552             if test $wxUSE_AUI = yes; then
8553               result=no
8554             else
8555               result=yes
8556             fi
8557           else
8558             result=$wxUSE_AUI
8559           fi
8560
8561           { echo "$as_me:$LINENO: result: $result" >&5
8562 echo "${ECHO_T}$result" >&6; }
8563
8564
8565           enablestring=
8566           defaultval=$wxUSE_ALL_FEATURES
8567           if test -z "$defaultval"; then
8568               if test x"$enablestring" = xdisable; then
8569                   defaultval=yes
8570               else
8571                   defaultval=no
8572               fi
8573           fi
8574
8575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8576 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8577           # Check whether --enable-propgrid was given.
8578 if test "${enable_propgrid+set}" = set; then
8579   enableval=$enable_propgrid;
8580                           if test "$enableval" = yes; then
8581                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8582                           else
8583                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8584                           fi
8585
8586 else
8587
8588                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8589
8590 fi
8591
8592
8593           eval "$wx_cv_use_propgrid"
8594
8595           if test x"$enablestring" = xdisable; then
8596             if test $wxUSE_PROPGRID = yes; then
8597               result=no
8598             else
8599               result=yes
8600             fi
8601           else
8602             result=$wxUSE_PROPGRID
8603           fi
8604
8605           { echo "$as_me:$LINENO: result: $result" >&5
8606 echo "${ECHO_T}$result" >&6; }
8607
8608
8609           enablestring=
8610           defaultval=$wxUSE_ALL_FEATURES
8611           if test -z "$defaultval"; then
8612               if test x"$enablestring" = xdisable; then
8613                   defaultval=yes
8614               else
8615                   defaultval=no
8616               fi
8617           fi
8618
8619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8620 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8621           # Check whether --enable-stc was given.
8622 if test "${enable_stc+set}" = set; then
8623   enableval=$enable_stc;
8624                           if test "$enableval" = yes; then
8625                             wx_cv_use_stc='wxUSE_STC=yes'
8626                           else
8627                             wx_cv_use_stc='wxUSE_STC=no'
8628                           fi
8629
8630 else
8631
8632                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8633
8634 fi
8635
8636
8637           eval "$wx_cv_use_stc"
8638
8639           if test x"$enablestring" = xdisable; then
8640             if test $wxUSE_STC = yes; then
8641               result=no
8642             else
8643               result=yes
8644             fi
8645           else
8646             result=$wxUSE_STC
8647           fi
8648
8649           { echo "$as_me:$LINENO: result: $result" >&5
8650 echo "${ECHO_T}$result" >&6; }
8651
8652
8653           enablestring=
8654           defaultval=$wxUSE_ALL_FEATURES
8655           if test -z "$defaultval"; then
8656               if test x"$enablestring" = xdisable; then
8657                   defaultval=yes
8658               else
8659                   defaultval=no
8660               fi
8661           fi
8662
8663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8664 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8665           # Check whether --enable-constraints was given.
8666 if test "${enable_constraints+set}" = set; then
8667   enableval=$enable_constraints;
8668                           if test "$enableval" = yes; then
8669                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8670                           else
8671                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8672                           fi
8673
8674 else
8675
8676                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8677
8678 fi
8679
8680
8681           eval "$wx_cv_use_constraints"
8682
8683           if test x"$enablestring" = xdisable; then
8684             if test $wxUSE_CONSTRAINTS = yes; then
8685               result=no
8686             else
8687               result=yes
8688             fi
8689           else
8690             result=$wxUSE_CONSTRAINTS
8691           fi
8692
8693           { echo "$as_me:$LINENO: result: $result" >&5
8694 echo "${ECHO_T}$result" >&6; }
8695
8696
8697           enablestring=
8698           defaultval=$wxUSE_ALL_FEATURES
8699           if test -z "$defaultval"; then
8700               if test x"$enablestring" = xdisable; then
8701                   defaultval=yes
8702               else
8703                   defaultval=no
8704               fi
8705           fi
8706
8707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8708 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8709           # Check whether --enable-loggui was given.
8710 if test "${enable_loggui+set}" = set; then
8711   enableval=$enable_loggui;
8712                           if test "$enableval" = yes; then
8713                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8714                           else
8715                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8716                           fi
8717
8718 else
8719
8720                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8721
8722 fi
8723
8724
8725           eval "$wx_cv_use_loggui"
8726
8727           if test x"$enablestring" = xdisable; then
8728             if test $wxUSE_LOGGUI = yes; then
8729               result=no
8730             else
8731               result=yes
8732             fi
8733           else
8734             result=$wxUSE_LOGGUI
8735           fi
8736
8737           { echo "$as_me:$LINENO: result: $result" >&5
8738 echo "${ECHO_T}$result" >&6; }
8739
8740
8741           enablestring=
8742           defaultval=$wxUSE_ALL_FEATURES
8743           if test -z "$defaultval"; then
8744               if test x"$enablestring" = xdisable; then
8745                   defaultval=yes
8746               else
8747                   defaultval=no
8748               fi
8749           fi
8750
8751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8752 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8753           # Check whether --enable-logwin was given.
8754 if test "${enable_logwin+set}" = set; then
8755   enableval=$enable_logwin;
8756                           if test "$enableval" = yes; then
8757                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8758                           else
8759                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8760                           fi
8761
8762 else
8763
8764                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8765
8766 fi
8767
8768
8769           eval "$wx_cv_use_logwin"
8770
8771           if test x"$enablestring" = xdisable; then
8772             if test $wxUSE_LOGWINDOW = yes; then
8773               result=no
8774             else
8775               result=yes
8776             fi
8777           else
8778             result=$wxUSE_LOGWINDOW
8779           fi
8780
8781           { echo "$as_me:$LINENO: result: $result" >&5
8782 echo "${ECHO_T}$result" >&6; }
8783
8784
8785           enablestring=
8786           defaultval=$wxUSE_ALL_FEATURES
8787           if test -z "$defaultval"; then
8788               if test x"$enablestring" = xdisable; then
8789                   defaultval=yes
8790               else
8791                   defaultval=no
8792               fi
8793           fi
8794
8795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8796 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8797           # Check whether --enable-logdialog was given.
8798 if test "${enable_logdialog+set}" = set; then
8799   enableval=$enable_logdialog;
8800                           if test "$enableval" = yes; then
8801                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8802                           else
8803                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8804                           fi
8805
8806 else
8807
8808                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8809
8810 fi
8811
8812
8813           eval "$wx_cv_use_logdialog"
8814
8815           if test x"$enablestring" = xdisable; then
8816             if test $wxUSE_LOGDIALOG = yes; then
8817               result=no
8818             else
8819               result=yes
8820             fi
8821           else
8822             result=$wxUSE_LOGDIALOG
8823           fi
8824
8825           { echo "$as_me:$LINENO: result: $result" >&5
8826 echo "${ECHO_T}$result" >&6; }
8827
8828
8829           enablestring=
8830           defaultval=$wxUSE_ALL_FEATURES
8831           if test -z "$defaultval"; then
8832               if test x"$enablestring" = xdisable; then
8833                   defaultval=yes
8834               else
8835                   defaultval=no
8836               fi
8837           fi
8838
8839           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8840 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8841           # Check whether --enable-mdi was given.
8842 if test "${enable_mdi+set}" = set; then
8843   enableval=$enable_mdi;
8844                           if test "$enableval" = yes; then
8845                             wx_cv_use_mdi='wxUSE_MDI=yes'
8846                           else
8847                             wx_cv_use_mdi='wxUSE_MDI=no'
8848                           fi
8849
8850 else
8851
8852                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8853
8854 fi
8855
8856
8857           eval "$wx_cv_use_mdi"
8858
8859           if test x"$enablestring" = xdisable; then
8860             if test $wxUSE_MDI = yes; then
8861               result=no
8862             else
8863               result=yes
8864             fi
8865           else
8866             result=$wxUSE_MDI
8867           fi
8868
8869           { echo "$as_me:$LINENO: result: $result" >&5
8870 echo "${ECHO_T}$result" >&6; }
8871
8872
8873           enablestring=
8874           defaultval=$wxUSE_ALL_FEATURES
8875           if test -z "$defaultval"; then
8876               if test x"$enablestring" = xdisable; then
8877                   defaultval=yes
8878               else
8879                   defaultval=no
8880               fi
8881           fi
8882
8883           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8884 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8885           # Check whether --enable-mdidoc was given.
8886 if test "${enable_mdidoc+set}" = set; then
8887   enableval=$enable_mdidoc;
8888                           if test "$enableval" = yes; then
8889                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8890                           else
8891                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8892                           fi
8893
8894 else
8895
8896                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8897
8898 fi
8899
8900
8901           eval "$wx_cv_use_mdidoc"
8902
8903           if test x"$enablestring" = xdisable; then
8904             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8905               result=no
8906             else
8907               result=yes
8908             fi
8909           else
8910             result=$wxUSE_MDI_ARCHITECTURE
8911           fi
8912
8913           { echo "$as_me:$LINENO: result: $result" >&5
8914 echo "${ECHO_T}$result" >&6; }
8915
8916
8917           enablestring=
8918           defaultval=$wxUSE_ALL_FEATURES
8919           if test -z "$defaultval"; then
8920               if test x"$enablestring" = xdisable; then
8921                   defaultval=yes
8922               else
8923                   defaultval=no
8924               fi
8925           fi
8926
8927           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8928 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8929           # Check whether --enable-mediactrl was given.
8930 if test "${enable_mediactrl+set}" = set; then
8931   enableval=$enable_mediactrl;
8932                           if test "$enableval" = yes; then
8933                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8934                           else
8935                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8936                           fi
8937
8938 else
8939
8940                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8941
8942 fi
8943
8944
8945           eval "$wx_cv_use_mediactrl"
8946
8947           if test x"$enablestring" = xdisable; then
8948             if test $wxUSE_MEDIACTRL = yes; then
8949               result=no
8950             else
8951               result=yes
8952             fi
8953           else
8954             result=$wxUSE_MEDIACTRL
8955           fi
8956
8957           { echo "$as_me:$LINENO: result: $result" >&5
8958 echo "${ECHO_T}$result" >&6; }
8959
8960
8961           enablestring=
8962           defaultval=$wxUSE_ALL_FEATURES
8963           if test -z "$defaultval"; then
8964               if test x"$enablestring" = xdisable; then
8965                   defaultval=yes
8966               else
8967                   defaultval=no
8968               fi
8969           fi
8970
8971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8972 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8973           # Check whether --enable-gstreamer8 was given.
8974 if test "${enable_gstreamer8+set}" = set; then
8975   enableval=$enable_gstreamer8;
8976                           if test "$enableval" = yes; then
8977                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8978                           else
8979                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8980                           fi
8981
8982 else
8983
8984                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8985
8986 fi
8987
8988
8989           eval "$wx_cv_use_gstreamer8"
8990
8991           if test x"$enablestring" = xdisable; then
8992             if test $wxUSE_GSTREAMER8 = yes; then
8993               result=no
8994             else
8995               result=yes
8996             fi
8997           else
8998             result=$wxUSE_GSTREAMER8
8999           fi
9000
9001           { echo "$as_me:$LINENO: result: $result" >&5
9002 echo "${ECHO_T}$result" >&6; }
9003
9004
9005           enablestring=
9006           defaultval=$wxUSE_ALL_FEATURES
9007           if test -z "$defaultval"; then
9008               if test x"$enablestring" = xdisable; then
9009                   defaultval=yes
9010               else
9011                   defaultval=no
9012               fi
9013           fi
9014
9015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9016 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9017           # Check whether --enable-webkit was given.
9018 if test "${enable_webkit+set}" = set; then
9019   enableval=$enable_webkit;
9020                           if test "$enableval" = yes; then
9021                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9022                           else
9023                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9024                           fi
9025
9026 else
9027
9028                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9029
9030 fi
9031
9032
9033           eval "$wx_cv_use_webkit"
9034
9035           if test x"$enablestring" = xdisable; then
9036             if test $wxUSE_WEBKIT = yes; then
9037               result=no
9038             else
9039               result=yes
9040             fi
9041           else
9042             result=$wxUSE_WEBKIT
9043           fi
9044
9045           { echo "$as_me:$LINENO: result: $result" >&5
9046 echo "${ECHO_T}$result" >&6; }
9047
9048
9049           enablestring=
9050           defaultval=$wxUSE_ALL_FEATURES
9051           if test -z "$defaultval"; then
9052               if test x"$enablestring" = xdisable; then
9053                   defaultval=yes
9054               else
9055                   defaultval=no
9056               fi
9057           fi
9058
9059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9060 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9061           # Check whether --enable-richtext was given.
9062 if test "${enable_richtext+set}" = set; then
9063   enableval=$enable_richtext;
9064                           if test "$enableval" = yes; then
9065                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9066                           else
9067                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9068                           fi
9069
9070 else
9071
9072                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9073
9074 fi
9075
9076
9077           eval "$wx_cv_use_richtext"
9078
9079           if test x"$enablestring" = xdisable; then
9080             if test $wxUSE_RICHTEXT = yes; then
9081               result=no
9082             else
9083               result=yes
9084             fi
9085           else
9086             result=$wxUSE_RICHTEXT
9087           fi
9088
9089           { echo "$as_me:$LINENO: result: $result" >&5
9090 echo "${ECHO_T}$result" >&6; }
9091
9092
9093           enablestring=
9094           defaultval=$wxUSE_ALL_FEATURES
9095           if test -z "$defaultval"; then
9096               if test x"$enablestring" = xdisable; then
9097                   defaultval=yes
9098               else
9099                   defaultval=no
9100               fi
9101           fi
9102
9103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9104 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9105           # Check whether --enable-graphics_ctx was given.
9106 if test "${enable_graphics_ctx+set}" = set; then
9107   enableval=$enable_graphics_ctx;
9108                           if test "$enableval" = yes; then
9109                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9110                           else
9111                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9112                           fi
9113
9114 else
9115
9116                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9117
9118 fi
9119
9120
9121           eval "$wx_cv_use_graphics_ctx"
9122
9123           if test x"$enablestring" = xdisable; then
9124             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9125               result=no
9126             else
9127               result=yes
9128             fi
9129           else
9130             result=$wxUSE_GRAPHICS_CONTEXT
9131           fi
9132
9133           { echo "$as_me:$LINENO: result: $result" >&5
9134 echo "${ECHO_T}$result" >&6; }
9135
9136
9137           enablestring=
9138           defaultval=$wxUSE_ALL_FEATURES
9139           if test -z "$defaultval"; then
9140               if test x"$enablestring" = xdisable; then
9141                   defaultval=yes
9142               else
9143                   defaultval=no
9144               fi
9145           fi
9146
9147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9148 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9149           # Check whether --enable-postscript was given.
9150 if test "${enable_postscript+set}" = set; then
9151   enableval=$enable_postscript;
9152                           if test "$enableval" = yes; then
9153                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9154                           else
9155                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9156                           fi
9157
9158 else
9159
9160                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9161
9162 fi
9163
9164
9165           eval "$wx_cv_use_postscript"
9166
9167           if test x"$enablestring" = xdisable; then
9168             if test $wxUSE_POSTSCRIPT = yes; then
9169               result=no
9170             else
9171               result=yes
9172             fi
9173           else
9174             result=$wxUSE_POSTSCRIPT
9175           fi
9176
9177           { echo "$as_me:$LINENO: result: $result" >&5
9178 echo "${ECHO_T}$result" >&6; }
9179
9180
9181           enablestring=
9182           defaultval=$wxUSE_ALL_FEATURES
9183           if test -z "$defaultval"; then
9184               if test x"$enablestring" = xdisable; then
9185                   defaultval=yes
9186               else
9187                   defaultval=no
9188               fi
9189           fi
9190
9191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9192 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9193           # Check whether --enable-printarch was given.
9194 if test "${enable_printarch+set}" = set; then
9195   enableval=$enable_printarch;
9196                           if test "$enableval" = yes; then
9197                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9198                           else
9199                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9200                           fi
9201
9202 else
9203
9204                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9205
9206 fi
9207
9208
9209           eval "$wx_cv_use_printarch"
9210
9211           if test x"$enablestring" = xdisable; then
9212             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9213               result=no
9214             else
9215               result=yes
9216             fi
9217           else
9218             result=$wxUSE_PRINTING_ARCHITECTURE
9219           fi
9220
9221           { echo "$as_me:$LINENO: result: $result" >&5
9222 echo "${ECHO_T}$result" >&6; }
9223
9224
9225           enablestring=
9226           defaultval=$wxUSE_ALL_FEATURES
9227           if test -z "$defaultval"; then
9228               if test x"$enablestring" = xdisable; then
9229                   defaultval=yes
9230               else
9231                   defaultval=no
9232               fi
9233           fi
9234
9235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9236 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9237           # Check whether --enable-svg was given.
9238 if test "${enable_svg+set}" = set; then
9239   enableval=$enable_svg;
9240                           if test "$enableval" = yes; then
9241                             wx_cv_use_svg='wxUSE_SVG=yes'
9242                           else
9243                             wx_cv_use_svg='wxUSE_SVG=no'
9244                           fi
9245
9246 else
9247
9248                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9249
9250 fi
9251
9252
9253           eval "$wx_cv_use_svg"
9254
9255           if test x"$enablestring" = xdisable; then
9256             if test $wxUSE_SVG = yes; then
9257               result=no
9258             else
9259               result=yes
9260             fi
9261           else
9262             result=$wxUSE_SVG
9263           fi
9264
9265           { echo "$as_me:$LINENO: result: $result" >&5
9266 echo "${ECHO_T}$result" >&6; }
9267
9268
9269
9270
9271           enablestring=
9272           defaultval=$wxUSE_ALL_FEATURES
9273           if test -z "$defaultval"; then
9274               if test x"$enablestring" = xdisable; then
9275                   defaultval=yes
9276               else
9277                   defaultval=no
9278               fi
9279           fi
9280
9281           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9282 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9283           # Check whether --enable-clipboard was given.
9284 if test "${enable_clipboard+set}" = set; then
9285   enableval=$enable_clipboard;
9286                           if test "$enableval" = yes; then
9287                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9288                           else
9289                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9290                           fi
9291
9292 else
9293
9294                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9295
9296 fi
9297
9298
9299           eval "$wx_cv_use_clipboard"
9300
9301           if test x"$enablestring" = xdisable; then
9302             if test $wxUSE_CLIPBOARD = yes; then
9303               result=no
9304             else
9305               result=yes
9306             fi
9307           else
9308             result=$wxUSE_CLIPBOARD
9309           fi
9310
9311           { echo "$as_me:$LINENO: result: $result" >&5
9312 echo "${ECHO_T}$result" >&6; }
9313
9314
9315           enablestring=
9316           defaultval=$wxUSE_ALL_FEATURES
9317           if test -z "$defaultval"; then
9318               if test x"$enablestring" = xdisable; then
9319                   defaultval=yes
9320               else
9321                   defaultval=no
9322               fi
9323           fi
9324
9325           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9326 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9327           # Check whether --enable-dnd was given.
9328 if test "${enable_dnd+set}" = set; then
9329   enableval=$enable_dnd;
9330                           if test "$enableval" = yes; then
9331                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9332                           else
9333                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9334                           fi
9335
9336 else
9337
9338                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9339
9340 fi
9341
9342
9343           eval "$wx_cv_use_dnd"
9344
9345           if test x"$enablestring" = xdisable; then
9346             if test $wxUSE_DRAG_AND_DROP = yes; then
9347               result=no
9348             else
9349               result=yes
9350             fi
9351           else
9352             result=$wxUSE_DRAG_AND_DROP
9353           fi
9354
9355           { echo "$as_me:$LINENO: result: $result" >&5
9356 echo "${ECHO_T}$result" >&6; }
9357
9358
9359           enablestring=
9360           defaultval=$wxUSE_ALL_FEATURES
9361           if test -z "$defaultval"; then
9362               if test x"$enablestring" = xdisable; then
9363                   defaultval=yes
9364               else
9365                   defaultval=no
9366               fi
9367           fi
9368
9369           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9370 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9371           # Check whether --enable-metafile was given.
9372 if test "${enable_metafile+set}" = set; then
9373   enableval=$enable_metafile;
9374                           if test "$enableval" = yes; then
9375                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9376                           else
9377                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9378                           fi
9379
9380 else
9381
9382                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9383
9384 fi
9385
9386
9387           eval "$wx_cv_use_metafile"
9388
9389           if test x"$enablestring" = xdisable; then
9390             if test $wxUSE_METAFILE = yes; then
9391               result=no
9392             else
9393               result=yes
9394             fi
9395           else
9396             result=$wxUSE_METAFILE
9397           fi
9398
9399           { echo "$as_me:$LINENO: result: $result" >&5
9400 echo "${ECHO_T}$result" >&6; }
9401
9402
9403
9404 DEFAULT_wxUSE_CONTROLS=none
9405
9406           enablestring=disable
9407           defaultval=
9408           if test -z "$defaultval"; then
9409               if test x"$enablestring" = xdisable; then
9410                   defaultval=yes
9411               else
9412                   defaultval=no
9413               fi
9414           fi
9415
9416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9417 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9418           # Check whether --enable-controls was given.
9419 if test "${enable_controls+set}" = set; then
9420   enableval=$enable_controls;
9421                           if test "$enableval" = yes; then
9422                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9423                           else
9424                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9425                           fi
9426
9427 else
9428
9429                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9430
9431 fi
9432
9433
9434           eval "$wx_cv_use_controls"
9435
9436           if test x"$enablestring" = xdisable; then
9437             if test $wxUSE_CONTROLS = yes; then
9438               result=no
9439             else
9440               result=yes
9441             fi
9442           else
9443             result=$wxUSE_CONTROLS
9444           fi
9445
9446           { echo "$as_me:$LINENO: result: $result" >&5
9447 echo "${ECHO_T}$result" >&6; }
9448
9449
9450 if test "$wxUSE_CONTROLS" = "yes"; then
9451   DEFAULT_wxUSE_ACCEL=yes
9452   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9453   DEFAULT_wxUSE_BMPBUTTON=yes
9454   DEFAULT_wxUSE_BUTTON=yes
9455   DEFAULT_wxUSE_CALCTRL=yes
9456   DEFAULT_wxUSE_CARET=yes
9457   DEFAULT_wxUSE_COMBOBOX=yes
9458   DEFAULT_wxUSE_CHECKBOX=yes
9459   DEFAULT_wxUSE_CHECKLISTBOX=yes
9460   DEFAULT_wxUSE_CHOICE=yes
9461   DEFAULT_wxUSE_CHOICEBOOK=yes
9462   DEFAULT_wxUSE_COLLPANE=yes
9463   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9464   DEFAULT_wxUSE_COMBOBOX=yes
9465   DEFAULT_wxUSE_DATEPICKCTRL=yes
9466   DEFAULT_wxUSE_DISPLAY=yes
9467   DEFAULT_wxUSE_DETECT_SM=yes
9468   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9469   DEFAULT_wxUSE_FILECTRL=yes
9470   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9471   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9472   DEFAULT_wxUSE_GAUGE=yes
9473   DEFAULT_wxUSE_GRID=yes
9474   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9475   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9476   DEFAULT_wxUSE_IMAGLIST=yes
9477   DEFAULT_wxUSE_LISTBOOK=yes
9478   DEFAULT_wxUSE_LISTBOX=yes
9479   DEFAULT_wxUSE_LISTCTRL=yes
9480   DEFAULT_wxUSE_NOTEBOOK=yes
9481   DEFAULT_wxUSE_RADIOBOX=yes
9482   DEFAULT_wxUSE_RADIOBTN=yes
9483   DEFAULT_wxUSE_SASH=yes
9484   DEFAULT_wxUSE_SCROLLBAR=yes
9485   DEFAULT_wxUSE_SEARCHCTRL=yes
9486   DEFAULT_wxUSE_SLIDER=yes
9487   DEFAULT_wxUSE_SPINBTN=yes
9488   DEFAULT_wxUSE_SPINCTRL=yes
9489   DEFAULT_wxUSE_SPLITTER=yes
9490   DEFAULT_wxUSE_STATBMP=yes
9491   DEFAULT_wxUSE_STATBOX=yes
9492   DEFAULT_wxUSE_STATLINE=yes
9493   DEFAULT_wxUSE_STATUSBAR=yes
9494   DEFAULT_wxUSE_TAB_DIALOG=yes
9495   DEFAULT_wxUSE_TOGGLEBTN=yes
9496   DEFAULT_wxUSE_TOOLBAR=yes
9497   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9498   DEFAULT_wxUSE_TOOLTIPS=yes
9499   DEFAULT_wxUSE_TREEBOOK=yes
9500   DEFAULT_wxUSE_TOOLBOOK=yes
9501   DEFAULT_wxUSE_TREECTRL=yes
9502   DEFAULT_wxUSE_POPUPWIN=yes
9503   DEFAULT_wxUSE_TIPWINDOW=yes
9504 elif test "$wxUSE_CONTROLS" = "no"; then
9505   DEFAULT_wxUSE_ACCEL=no
9506   DEFAULT_wxUSE_ANIMATIONCTRL=no
9507   DEFAULT_wxUSE_BMPBUTTON=no
9508   DEFAULT_wxUSE_BUTTON=no
9509   DEFAULT_wxUSE_CALCTRL=no
9510   DEFAULT_wxUSE_CARET=no
9511   DEFAULT_wxUSE_COLLPANE=no
9512   DEFAULT_wxUSE_COMBOBOX=no
9513   DEFAULT_wxUSE_CHECKBOX=no
9514   DEFAULT_wxUSE_CHECKLISTBOX=no
9515   DEFAULT_wxUSE_CHOICE=no
9516   DEFAULT_wxUSE_CHOICEBOOK=no
9517   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9518   DEFAULT_wxUSE_COMBOBOX=no
9519   DEFAULT_wxUSE_DATEPICKCTRL=no
9520   DEFAULT_wxUSE_DISPLAY=no
9521   DEFAULT_wxUSE_DETECT_SM=no
9522   DEFAULT_wxUSE_DIRPICKERCTRL=no
9523   DEFAULT_wxUSE_FILECTRL=no
9524   DEFAULT_wxUSE_FILEPICKERCTRL=no
9525   DEFAULT_wxUSE_FONTPICKERCTRL=no
9526   DEFAULT_wxUSE_GAUGE=no
9527   DEFAULT_wxUSE_GRID=no
9528   DEFAULT_wxUSE_HYPERLINKCTRL=no
9529   DEFAULT_wxUSE_DATAVIEWCTRL=no
9530   DEFAULT_wxUSE_IMAGLIST=no
9531   DEFAULT_wxUSE_LISTBOOK=no
9532   DEFAULT_wxUSE_LISTBOX=no
9533   DEFAULT_wxUSE_LISTCTRL=no
9534   DEFAULT_wxUSE_NOTEBOOK=no
9535   DEFAULT_wxUSE_RADIOBOX=no
9536   DEFAULT_wxUSE_RADIOBTN=no
9537   DEFAULT_wxUSE_SASH=no
9538   DEFAULT_wxUSE_SCROLLBAR=no
9539   DEFAULT_wxUSE_SEARCHCTRL=no
9540   DEFAULT_wxUSE_SLIDER=no
9541   DEFAULT_wxUSE_SPINBTN=no
9542   DEFAULT_wxUSE_SPINCTRL=no
9543   DEFAULT_wxUSE_SPLITTER=no
9544   DEFAULT_wxUSE_STATBMP=no
9545   DEFAULT_wxUSE_STATBOX=no
9546   DEFAULT_wxUSE_STATLINE=no
9547   DEFAULT_wxUSE_STATUSBAR=no
9548   DEFAULT_wxUSE_TAB_DIALOG=no
9549   DEFAULT_wxUSE_TOGGLEBTN=no
9550   DEFAULT_wxUSE_TOOLBAR=no
9551   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9552   DEFAULT_wxUSE_TOOLTIPS=no
9553   DEFAULT_wxUSE_TREEBOOK=no
9554   DEFAULT_wxUSE_TOOLBOOK=no
9555   DEFAULT_wxUSE_TREECTRL=no
9556   DEFAULT_wxUSE_POPUPWIN=no
9557   DEFAULT_wxUSE_TIPWINDOW=no
9558 fi
9559
9560
9561           enablestring=
9562           defaultval=$wxUSE_ALL_FEATURES
9563           if test -z "$defaultval"; then
9564               if test x"$enablestring" = xdisable; then
9565                   defaultval=yes
9566               else
9567                   defaultval=no
9568               fi
9569           fi
9570
9571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9572 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9573           # Check whether --enable-accel was given.
9574 if test "${enable_accel+set}" = set; then
9575   enableval=$enable_accel;
9576                           if test "$enableval" = yes; then
9577                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9578                           else
9579                             wx_cv_use_accel='wxUSE_ACCEL=no'
9580                           fi
9581
9582 else
9583
9584                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9585
9586 fi
9587
9588
9589           eval "$wx_cv_use_accel"
9590
9591           if test x"$enablestring" = xdisable; then
9592             if test $wxUSE_ACCEL = yes; then
9593               result=no
9594             else
9595               result=yes
9596             fi
9597           else
9598             result=$wxUSE_ACCEL
9599           fi
9600
9601           { echo "$as_me:$LINENO: result: $result" >&5
9602 echo "${ECHO_T}$result" >&6; }
9603
9604
9605           enablestring=
9606           defaultval=$wxUSE_ALL_FEATURES
9607           if test -z "$defaultval"; then
9608               if test x"$enablestring" = xdisable; then
9609                   defaultval=yes
9610               else
9611                   defaultval=no
9612               fi
9613           fi
9614
9615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9616 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9617           # Check whether --enable-animatectrl was given.
9618 if test "${enable_animatectrl+set}" = set; then
9619   enableval=$enable_animatectrl;
9620                           if test "$enableval" = yes; then
9621                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9622                           else
9623                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9624                           fi
9625
9626 else
9627
9628                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9629
9630 fi
9631
9632
9633           eval "$wx_cv_use_animatectrl"
9634
9635           if test x"$enablestring" = xdisable; then
9636             if test $wxUSE_ANIMATIONCTRL = yes; then
9637               result=no
9638             else
9639               result=yes
9640             fi
9641           else
9642             result=$wxUSE_ANIMATIONCTRL
9643           fi
9644
9645           { echo "$as_me:$LINENO: result: $result" >&5
9646 echo "${ECHO_T}$result" >&6; }
9647
9648
9649           enablestring=
9650           defaultval=$wxUSE_ALL_FEATURES
9651           if test -z "$defaultval"; then
9652               if test x"$enablestring" = xdisable; then
9653                   defaultval=yes
9654               else
9655                   defaultval=no
9656               fi
9657           fi
9658
9659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9660 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9661           # Check whether --enable-button was given.
9662 if test "${enable_button+set}" = set; then
9663   enableval=$enable_button;
9664                           if test "$enableval" = yes; then
9665                             wx_cv_use_button='wxUSE_BUTTON=yes'
9666                           else
9667                             wx_cv_use_button='wxUSE_BUTTON=no'
9668                           fi
9669
9670 else
9671
9672                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9673
9674 fi
9675
9676
9677           eval "$wx_cv_use_button"
9678
9679           if test x"$enablestring" = xdisable; then
9680             if test $wxUSE_BUTTON = yes; then
9681               result=no
9682             else
9683               result=yes
9684             fi
9685           else
9686             result=$wxUSE_BUTTON
9687           fi
9688
9689           { echo "$as_me:$LINENO: result: $result" >&5
9690 echo "${ECHO_T}$result" >&6; }
9691
9692
9693           enablestring=
9694           defaultval=$wxUSE_ALL_FEATURES
9695           if test -z "$defaultval"; then
9696               if test x"$enablestring" = xdisable; then
9697                   defaultval=yes
9698               else
9699                   defaultval=no
9700               fi
9701           fi
9702
9703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9704 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9705           # Check whether --enable-bmpbutton was given.
9706 if test "${enable_bmpbutton+set}" = set; then
9707   enableval=$enable_bmpbutton;
9708                           if test "$enableval" = yes; then
9709                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9710                           else
9711                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9712                           fi
9713
9714 else
9715
9716                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9717
9718 fi
9719
9720
9721           eval "$wx_cv_use_bmpbutton"
9722
9723           if test x"$enablestring" = xdisable; then
9724             if test $wxUSE_BMPBUTTON = yes; then
9725               result=no
9726             else
9727               result=yes
9728             fi
9729           else
9730             result=$wxUSE_BMPBUTTON
9731           fi
9732
9733           { echo "$as_me:$LINENO: result: $result" >&5
9734 echo "${ECHO_T}$result" >&6; }
9735
9736
9737           enablestring=
9738           defaultval=$wxUSE_ALL_FEATURES
9739           if test -z "$defaultval"; then
9740               if test x"$enablestring" = xdisable; then
9741                   defaultval=yes
9742               else
9743                   defaultval=no
9744               fi
9745           fi
9746
9747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9748 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9749           # Check whether --enable-bmpcombobox was given.
9750 if test "${enable_bmpcombobox+set}" = set; then
9751   enableval=$enable_bmpcombobox;
9752                           if test "$enableval" = yes; then
9753                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9754                           else
9755                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9756                           fi
9757
9758 else
9759
9760                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9761
9762 fi
9763
9764
9765           eval "$wx_cv_use_bmpcombobox"
9766
9767           if test x"$enablestring" = xdisable; then
9768             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9769               result=no
9770             else
9771               result=yes
9772             fi
9773           else
9774             result=$wxUSE_BITMAPCOMBOBOX
9775           fi
9776
9777           { echo "$as_me:$LINENO: result: $result" >&5
9778 echo "${ECHO_T}$result" >&6; }
9779
9780
9781           enablestring=
9782           defaultval=$wxUSE_ALL_FEATURES
9783           if test -z "$defaultval"; then
9784               if test x"$enablestring" = xdisable; then
9785                   defaultval=yes
9786               else
9787                   defaultval=no
9788               fi
9789           fi
9790
9791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9792 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9793           # Check whether --enable-calendar was given.
9794 if test "${enable_calendar+set}" = set; then
9795   enableval=$enable_calendar;
9796                           if test "$enableval" = yes; then
9797                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9798                           else
9799                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9800                           fi
9801
9802 else
9803
9804                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9805
9806 fi
9807
9808
9809           eval "$wx_cv_use_calendar"
9810
9811           if test x"$enablestring" = xdisable; then
9812             if test $wxUSE_CALCTRL = yes; then
9813               result=no
9814             else
9815               result=yes
9816             fi
9817           else
9818             result=$wxUSE_CALCTRL
9819           fi
9820
9821           { echo "$as_me:$LINENO: result: $result" >&5
9822 echo "${ECHO_T}$result" >&6; }
9823
9824
9825           enablestring=
9826           defaultval=$wxUSE_ALL_FEATURES
9827           if test -z "$defaultval"; then
9828               if test x"$enablestring" = xdisable; then
9829                   defaultval=yes
9830               else
9831                   defaultval=no
9832               fi
9833           fi
9834
9835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9836 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9837           # Check whether --enable-caret was given.
9838 if test "${enable_caret+set}" = set; then
9839   enableval=$enable_caret;
9840                           if test "$enableval" = yes; then
9841                             wx_cv_use_caret='wxUSE_CARET=yes'
9842                           else
9843                             wx_cv_use_caret='wxUSE_CARET=no'
9844                           fi
9845
9846 else
9847
9848                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9849
9850 fi
9851
9852
9853           eval "$wx_cv_use_caret"
9854
9855           if test x"$enablestring" = xdisable; then
9856             if test $wxUSE_CARET = yes; then
9857               result=no
9858             else
9859               result=yes
9860             fi
9861           else
9862             result=$wxUSE_CARET
9863           fi
9864
9865           { echo "$as_me:$LINENO: result: $result" >&5
9866 echo "${ECHO_T}$result" >&6; }
9867
9868
9869           enablestring=
9870           defaultval=$wxUSE_ALL_FEATURES
9871           if test -z "$defaultval"; then
9872               if test x"$enablestring" = xdisable; then
9873                   defaultval=yes
9874               else
9875                   defaultval=no
9876               fi
9877           fi
9878
9879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9880 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9881           # Check whether --enable-checkbox was given.
9882 if test "${enable_checkbox+set}" = set; then
9883   enableval=$enable_checkbox;
9884                           if test "$enableval" = yes; then
9885                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9886                           else
9887                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9888                           fi
9889
9890 else
9891
9892                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9893
9894 fi
9895
9896
9897           eval "$wx_cv_use_checkbox"
9898
9899           if test x"$enablestring" = xdisable; then
9900             if test $wxUSE_CHECKBOX = yes; then
9901               result=no
9902             else
9903               result=yes
9904             fi
9905           else
9906             result=$wxUSE_CHECKBOX
9907           fi
9908
9909           { echo "$as_me:$LINENO: result: $result" >&5
9910 echo "${ECHO_T}$result" >&6; }
9911
9912
9913           enablestring=
9914           defaultval=$wxUSE_ALL_FEATURES
9915           if test -z "$defaultval"; then
9916               if test x"$enablestring" = xdisable; then
9917                   defaultval=yes
9918               else
9919                   defaultval=no
9920               fi
9921           fi
9922
9923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9924 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9925           # Check whether --enable-checklst was given.
9926 if test "${enable_checklst+set}" = set; then
9927   enableval=$enable_checklst;
9928                           if test "$enableval" = yes; then
9929                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9930                           else
9931                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9932                           fi
9933
9934 else
9935
9936                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9937
9938 fi
9939
9940
9941           eval "$wx_cv_use_checklst"
9942
9943           if test x"$enablestring" = xdisable; then
9944             if test $wxUSE_CHECKLST = yes; then
9945               result=no
9946             else
9947               result=yes
9948             fi
9949           else
9950             result=$wxUSE_CHECKLST
9951           fi
9952
9953           { echo "$as_me:$LINENO: result: $result" >&5
9954 echo "${ECHO_T}$result" >&6; }
9955
9956
9957           enablestring=
9958           defaultval=$wxUSE_ALL_FEATURES
9959           if test -z "$defaultval"; then
9960               if test x"$enablestring" = xdisable; then
9961                   defaultval=yes
9962               else
9963                   defaultval=no
9964               fi
9965           fi
9966
9967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9968 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9969           # Check whether --enable-choice was given.
9970 if test "${enable_choice+set}" = set; then
9971   enableval=$enable_choice;
9972                           if test "$enableval" = yes; then
9973                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9974                           else
9975                             wx_cv_use_choice='wxUSE_CHOICE=no'
9976                           fi
9977
9978 else
9979
9980                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9981
9982 fi
9983
9984
9985           eval "$wx_cv_use_choice"
9986
9987           if test x"$enablestring" = xdisable; then
9988             if test $wxUSE_CHOICE = yes; then
9989               result=no
9990             else
9991               result=yes
9992             fi
9993           else
9994             result=$wxUSE_CHOICE
9995           fi
9996
9997           { echo "$as_me:$LINENO: result: $result" >&5
9998 echo "${ECHO_T}$result" >&6; }
9999
10000
10001           enablestring=
10002           defaultval=$wxUSE_ALL_FEATURES
10003           if test -z "$defaultval"; then
10004               if test x"$enablestring" = xdisable; then
10005                   defaultval=yes
10006               else
10007                   defaultval=no
10008               fi
10009           fi
10010
10011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10012 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10013           # Check whether --enable-choicebook was given.
10014 if test "${enable_choicebook+set}" = set; then
10015   enableval=$enable_choicebook;
10016                           if test "$enableval" = yes; then
10017                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10018                           else
10019                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10020                           fi
10021
10022 else
10023
10024                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10025
10026 fi
10027
10028
10029           eval "$wx_cv_use_choicebook"
10030
10031           if test x"$enablestring" = xdisable; then
10032             if test $wxUSE_CHOICEBOOK = yes; then
10033               result=no
10034             else
10035               result=yes
10036             fi
10037           else
10038             result=$wxUSE_CHOICEBOOK
10039           fi
10040
10041           { echo "$as_me:$LINENO: result: $result" >&5
10042 echo "${ECHO_T}$result" >&6; }
10043
10044
10045           enablestring=
10046           defaultval=$wxUSE_ALL_FEATURES
10047           if test -z "$defaultval"; then
10048               if test x"$enablestring" = xdisable; then
10049                   defaultval=yes
10050               else
10051                   defaultval=no
10052               fi
10053           fi
10054
10055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10056 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10057           # Check whether --enable-collpane was given.
10058 if test "${enable_collpane+set}" = set; then
10059   enableval=$enable_collpane;
10060                           if test "$enableval" = yes; then
10061                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10062                           else
10063                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10064                           fi
10065
10066 else
10067
10068                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10069
10070 fi
10071
10072
10073           eval "$wx_cv_use_collpane"
10074
10075           if test x"$enablestring" = xdisable; then
10076             if test $wxUSE_COLLPANE = yes; then
10077               result=no
10078             else
10079               result=yes
10080             fi
10081           else
10082             result=$wxUSE_COLLPANE
10083           fi
10084
10085           { echo "$as_me:$LINENO: result: $result" >&5
10086 echo "${ECHO_T}$result" >&6; }
10087
10088
10089           enablestring=
10090           defaultval=$wxUSE_ALL_FEATURES
10091           if test -z "$defaultval"; then
10092               if test x"$enablestring" = xdisable; then
10093                   defaultval=yes
10094               else
10095                   defaultval=no
10096               fi
10097           fi
10098
10099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10100 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10101           # Check whether --enable-colourpicker was given.
10102 if test "${enable_colourpicker+set}" = set; then
10103   enableval=$enable_colourpicker;
10104                           if test "$enableval" = yes; then
10105                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10106                           else
10107                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10108                           fi
10109
10110 else
10111
10112                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10113
10114 fi
10115
10116
10117           eval "$wx_cv_use_colourpicker"
10118
10119           if test x"$enablestring" = xdisable; then
10120             if test $wxUSE_COLOURPICKERCTRL = yes; then
10121               result=no
10122             else
10123               result=yes
10124             fi
10125           else
10126             result=$wxUSE_COLOURPICKERCTRL
10127           fi
10128
10129           { echo "$as_me:$LINENO: result: $result" >&5
10130 echo "${ECHO_T}$result" >&6; }
10131
10132
10133           enablestring=
10134           defaultval=$wxUSE_ALL_FEATURES
10135           if test -z "$defaultval"; then
10136               if test x"$enablestring" = xdisable; then
10137                   defaultval=yes
10138               else
10139                   defaultval=no
10140               fi
10141           fi
10142
10143           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10144 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10145           # Check whether --enable-combobox was given.
10146 if test "${enable_combobox+set}" = set; then
10147   enableval=$enable_combobox;
10148                           if test "$enableval" = yes; then
10149                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10150                           else
10151                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10152                           fi
10153
10154 else
10155
10156                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10157
10158 fi
10159
10160
10161           eval "$wx_cv_use_combobox"
10162
10163           if test x"$enablestring" = xdisable; then
10164             if test $wxUSE_COMBOBOX = yes; then
10165               result=no
10166             else
10167               result=yes
10168             fi
10169           else
10170             result=$wxUSE_COMBOBOX
10171           fi
10172
10173           { echo "$as_me:$LINENO: result: $result" >&5
10174 echo "${ECHO_T}$result" >&6; }
10175
10176
10177           enablestring=
10178           defaultval=$wxUSE_ALL_FEATURES
10179           if test -z "$defaultval"; then
10180               if test x"$enablestring" = xdisable; then
10181                   defaultval=yes
10182               else
10183                   defaultval=no
10184               fi
10185           fi
10186
10187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10188 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10189           # Check whether --enable-comboctrl was given.
10190 if test "${enable_comboctrl+set}" = set; then
10191   enableval=$enable_comboctrl;
10192                           if test "$enableval" = yes; then
10193                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10194                           else
10195                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10196                           fi
10197
10198 else
10199
10200                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10201
10202 fi
10203
10204
10205           eval "$wx_cv_use_comboctrl"
10206
10207           if test x"$enablestring" = xdisable; then
10208             if test $wxUSE_COMBOCTRL = yes; then
10209               result=no
10210             else
10211               result=yes
10212             fi
10213           else
10214             result=$wxUSE_COMBOCTRL
10215           fi
10216
10217           { echo "$as_me:$LINENO: result: $result" >&5
10218 echo "${ECHO_T}$result" >&6; }
10219
10220
10221           enablestring=
10222           defaultval=$wxUSE_ALL_FEATURES
10223           if test -z "$defaultval"; then
10224               if test x"$enablestring" = xdisable; then
10225                   defaultval=yes
10226               else
10227                   defaultval=no
10228               fi
10229           fi
10230
10231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10232 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10233           # Check whether --enable-datepick was given.
10234 if test "${enable_datepick+set}" = set; then
10235   enableval=$enable_datepick;
10236                           if test "$enableval" = yes; then
10237                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10238                           else
10239                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10240                           fi
10241
10242 else
10243
10244                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10245
10246 fi
10247
10248
10249           eval "$wx_cv_use_datepick"
10250
10251           if test x"$enablestring" = xdisable; then
10252             if test $wxUSE_DATEPICKCTRL = yes; then
10253               result=no
10254             else
10255               result=yes
10256             fi
10257           else
10258             result=$wxUSE_DATEPICKCTRL
10259           fi
10260
10261           { echo "$as_me:$LINENO: result: $result" >&5
10262 echo "${ECHO_T}$result" >&6; }
10263
10264
10265           enablestring=
10266           defaultval=$wxUSE_ALL_FEATURES
10267           if test -z "$defaultval"; then
10268               if test x"$enablestring" = xdisable; then
10269                   defaultval=yes
10270               else
10271                   defaultval=no
10272               fi
10273           fi
10274
10275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10276 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10277           # Check whether --enable-dirpicker was given.
10278 if test "${enable_dirpicker+set}" = set; then
10279   enableval=$enable_dirpicker;
10280                           if test "$enableval" = yes; then
10281                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10282                           else
10283                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10284                           fi
10285
10286 else
10287
10288                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10289
10290 fi
10291
10292
10293           eval "$wx_cv_use_dirpicker"
10294
10295           if test x"$enablestring" = xdisable; then
10296             if test $wxUSE_DIRPICKERCTRL = yes; then
10297               result=no
10298             else
10299               result=yes
10300             fi
10301           else
10302             result=$wxUSE_DIRPICKERCTRL
10303           fi
10304
10305           { echo "$as_me:$LINENO: result: $result" >&5
10306 echo "${ECHO_T}$result" >&6; }
10307
10308
10309           enablestring=
10310           defaultval=$wxUSE_ALL_FEATURES
10311           if test -z "$defaultval"; then
10312               if test x"$enablestring" = xdisable; then
10313                   defaultval=yes
10314               else
10315                   defaultval=no
10316               fi
10317           fi
10318
10319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10320 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10321           # Check whether --enable-display was given.
10322 if test "${enable_display+set}" = set; then
10323   enableval=$enable_display;
10324                           if test "$enableval" = yes; then
10325                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10326                           else
10327                             wx_cv_use_display='wxUSE_DISPLAY=no'
10328                           fi
10329
10330 else
10331
10332                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10333
10334 fi
10335
10336
10337           eval "$wx_cv_use_display"
10338
10339           if test x"$enablestring" = xdisable; then
10340             if test $wxUSE_DISPLAY = yes; then
10341               result=no
10342             else
10343               result=yes
10344             fi
10345           else
10346             result=$wxUSE_DISPLAY
10347           fi
10348
10349           { echo "$as_me:$LINENO: result: $result" >&5
10350 echo "${ECHO_T}$result" >&6; }
10351
10352
10353           enablestring=
10354           defaultval=$wxUSE_ALL_FEATURES
10355           if test -z "$defaultval"; then
10356               if test x"$enablestring" = xdisable; then
10357                   defaultval=yes
10358               else
10359                   defaultval=no
10360               fi
10361           fi
10362
10363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10364 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10365           # Check whether --enable-detect_sm was given.
10366 if test "${enable_detect_sm+set}" = set; then
10367   enableval=$enable_detect_sm;
10368                           if test "$enableval" = yes; then
10369                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10370                           else
10371                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10372                           fi
10373
10374 else
10375
10376                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10377
10378 fi
10379
10380
10381           eval "$wx_cv_use_detect_sm"
10382
10383           if test x"$enablestring" = xdisable; then
10384             if test $wxUSE_DETECT_SM = yes; then
10385               result=no
10386             else
10387               result=yes
10388             fi
10389           else
10390             result=$wxUSE_DETECT_SM
10391           fi
10392
10393           { echo "$as_me:$LINENO: result: $result" >&5
10394 echo "${ECHO_T}$result" >&6; }
10395
10396
10397           enablestring=
10398           defaultval=$wxUSE_ALL_FEATURES
10399           if test -z "$defaultval"; then
10400               if test x"$enablestring" = xdisable; then
10401                   defaultval=yes
10402               else
10403                   defaultval=no
10404               fi
10405           fi
10406
10407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10408 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10409           # Check whether --enable-editablebox was given.
10410 if test "${enable_editablebox+set}" = set; then
10411   enableval=$enable_editablebox;
10412                           if test "$enableval" = yes; then
10413                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10414                           else
10415                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10416                           fi
10417
10418 else
10419
10420                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10421
10422 fi
10423
10424
10425           eval "$wx_cv_use_editablebox"
10426
10427           if test x"$enablestring" = xdisable; then
10428             if test $wxUSE_EDITABLELISTBOX = yes; then
10429               result=no
10430             else
10431               result=yes
10432             fi
10433           else
10434             result=$wxUSE_EDITABLELISTBOX
10435           fi
10436
10437           { echo "$as_me:$LINENO: result: $result" >&5
10438 echo "${ECHO_T}$result" >&6; }
10439
10440
10441           enablestring=
10442           defaultval=$wxUSE_ALL_FEATURES
10443           if test -z "$defaultval"; then
10444               if test x"$enablestring" = xdisable; then
10445                   defaultval=yes
10446               else
10447                   defaultval=no
10448               fi
10449           fi
10450
10451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10452 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10453           # Check whether --enable-filepicker was given.
10454 if test "${enable_filepicker+set}" = set; then
10455   enableval=$enable_filepicker;
10456                           if test "$enableval" = yes; then
10457                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10458                           else
10459                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10460                           fi
10461
10462 else
10463
10464                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10465
10466 fi
10467
10468
10469           eval "$wx_cv_use_filepicker"
10470
10471           if test x"$enablestring" = xdisable; then
10472             if test $wxUSE_FILEPICKERCTRL = yes; then
10473               result=no
10474             else
10475               result=yes
10476             fi
10477           else
10478             result=$wxUSE_FILEPICKERCTRL
10479           fi
10480
10481           { echo "$as_me:$LINENO: result: $result" >&5
10482 echo "${ECHO_T}$result" >&6; }
10483
10484
10485           enablestring=
10486           defaultval=$wxUSE_ALL_FEATURES
10487           if test -z "$defaultval"; then
10488               if test x"$enablestring" = xdisable; then
10489                   defaultval=yes
10490               else
10491                   defaultval=no
10492               fi
10493           fi
10494
10495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10496 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10497           # Check whether --enable-filectrl was given.
10498 if test "${enable_filectrl+set}" = set; then
10499   enableval=$enable_filectrl;
10500                           if test "$enableval" = yes; then
10501                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10502                           else
10503                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10504                           fi
10505
10506 else
10507
10508                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10509
10510 fi
10511
10512
10513           eval "$wx_cv_use_filectrl"
10514
10515           if test x"$enablestring" = xdisable; then
10516             if test $wxUSE_FILECTRL = yes; then
10517               result=no
10518             else
10519               result=yes
10520             fi
10521           else
10522             result=$wxUSE_FILECTRL
10523           fi
10524
10525           { echo "$as_me:$LINENO: result: $result" >&5
10526 echo "${ECHO_T}$result" >&6; }
10527
10528
10529           enablestring=
10530           defaultval=$wxUSE_ALL_FEATURES
10531           if test -z "$defaultval"; then
10532               if test x"$enablestring" = xdisable; then
10533                   defaultval=yes
10534               else
10535                   defaultval=no
10536               fi
10537           fi
10538
10539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10540 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10541           # Check whether --enable-fontpicker was given.
10542 if test "${enable_fontpicker+set}" = set; then
10543   enableval=$enable_fontpicker;
10544                           if test "$enableval" = yes; then
10545                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10546                           else
10547                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10548                           fi
10549
10550 else
10551
10552                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10553
10554 fi
10555
10556
10557           eval "$wx_cv_use_fontpicker"
10558
10559           if test x"$enablestring" = xdisable; then
10560             if test $wxUSE_FONTPICKERCTRL = yes; then
10561               result=no
10562             else
10563               result=yes
10564             fi
10565           else
10566             result=$wxUSE_FONTPICKERCTRL
10567           fi
10568
10569           { echo "$as_me:$LINENO: result: $result" >&5
10570 echo "${ECHO_T}$result" >&6; }
10571
10572
10573           enablestring=
10574           defaultval=$wxUSE_ALL_FEATURES
10575           if test -z "$defaultval"; then
10576               if test x"$enablestring" = xdisable; then
10577                   defaultval=yes
10578               else
10579                   defaultval=no
10580               fi
10581           fi
10582
10583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10584 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10585           # Check whether --enable-gauge was given.
10586 if test "${enable_gauge+set}" = set; then
10587   enableval=$enable_gauge;
10588                           if test "$enableval" = yes; then
10589                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10590                           else
10591                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10592                           fi
10593
10594 else
10595
10596                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10597
10598 fi
10599
10600
10601           eval "$wx_cv_use_gauge"
10602
10603           if test x"$enablestring" = xdisable; then
10604             if test $wxUSE_GAUGE = yes; then
10605               result=no
10606             else
10607               result=yes
10608             fi
10609           else
10610             result=$wxUSE_GAUGE
10611           fi
10612
10613           { echo "$as_me:$LINENO: result: $result" >&5
10614 echo "${ECHO_T}$result" >&6; }
10615
10616
10617           enablestring=
10618           defaultval=$wxUSE_ALL_FEATURES
10619           if test -z "$defaultval"; then
10620               if test x"$enablestring" = xdisable; then
10621                   defaultval=yes
10622               else
10623                   defaultval=no
10624               fi
10625           fi
10626
10627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10628 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10629           # Check whether --enable-grid was given.
10630 if test "${enable_grid+set}" = set; then
10631   enableval=$enable_grid;
10632                           if test "$enableval" = yes; then
10633                             wx_cv_use_grid='wxUSE_GRID=yes'
10634                           else
10635                             wx_cv_use_grid='wxUSE_GRID=no'
10636                           fi
10637
10638 else
10639
10640                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10641
10642 fi
10643
10644
10645           eval "$wx_cv_use_grid"
10646
10647           if test x"$enablestring" = xdisable; then
10648             if test $wxUSE_GRID = yes; then
10649               result=no
10650             else
10651               result=yes
10652             fi
10653           else
10654             result=$wxUSE_GRID
10655           fi
10656
10657           { echo "$as_me:$LINENO: result: $result" >&5
10658 echo "${ECHO_T}$result" >&6; }
10659
10660
10661           enablestring=
10662           defaultval=$wxUSE_ALL_FEATURES
10663           if test -z "$defaultval"; then
10664               if test x"$enablestring" = xdisable; then
10665                   defaultval=yes
10666               else
10667                   defaultval=no
10668               fi
10669           fi
10670
10671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10672 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10673           # Check whether --enable-dataviewctrl was given.
10674 if test "${enable_dataviewctrl+set}" = set; then
10675   enableval=$enable_dataviewctrl;
10676                           if test "$enableval" = yes; then
10677                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10678                           else
10679                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10680                           fi
10681
10682 else
10683
10684                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10685
10686 fi
10687
10688
10689           eval "$wx_cv_use_dataviewctrl"
10690
10691           if test x"$enablestring" = xdisable; then
10692             if test $wxUSE_DATAVIEWCTRL = yes; then
10693               result=no
10694             else
10695               result=yes
10696             fi
10697           else
10698             result=$wxUSE_DATAVIEWCTRL
10699           fi
10700
10701           { echo "$as_me:$LINENO: result: $result" >&5
10702 echo "${ECHO_T}$result" >&6; }
10703
10704
10705           enablestring=
10706           defaultval=$wxUSE_ALL_FEATURES
10707           if test -z "$defaultval"; then
10708               if test x"$enablestring" = xdisable; then
10709                   defaultval=yes
10710               else
10711                   defaultval=no
10712               fi
10713           fi
10714
10715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10716 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10717           # Check whether --enable-hyperlink was given.
10718 if test "${enable_hyperlink+set}" = set; then
10719   enableval=$enable_hyperlink;
10720                           if test "$enableval" = yes; then
10721                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10722                           else
10723                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10724                           fi
10725
10726 else
10727
10728                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10729
10730 fi
10731
10732
10733           eval "$wx_cv_use_hyperlink"
10734
10735           if test x"$enablestring" = xdisable; then
10736             if test $wxUSE_HYPERLINKCTRL = yes; then
10737               result=no
10738             else
10739               result=yes
10740             fi
10741           else
10742             result=$wxUSE_HYPERLINKCTRL
10743           fi
10744
10745           { echo "$as_me:$LINENO: result: $result" >&5
10746 echo "${ECHO_T}$result" >&6; }
10747
10748
10749           enablestring=
10750           defaultval=$wxUSE_ALL_FEATURES
10751           if test -z "$defaultval"; then
10752               if test x"$enablestring" = xdisable; then
10753                   defaultval=yes
10754               else
10755                   defaultval=no
10756               fi
10757           fi
10758
10759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10760 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10761           # Check whether --enable-imaglist was given.
10762 if test "${enable_imaglist+set}" = set; then
10763   enableval=$enable_imaglist;
10764                           if test "$enableval" = yes; then
10765                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10766                           else
10767                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10768                           fi
10769
10770 else
10771
10772                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10773
10774 fi
10775
10776
10777           eval "$wx_cv_use_imaglist"
10778
10779           if test x"$enablestring" = xdisable; then
10780             if test $wxUSE_IMAGLIST = yes; then
10781               result=no
10782             else
10783               result=yes
10784             fi
10785           else
10786             result=$wxUSE_IMAGLIST
10787           fi
10788
10789           { echo "$as_me:$LINENO: result: $result" >&5
10790 echo "${ECHO_T}$result" >&6; }
10791
10792
10793           enablestring=
10794           defaultval=$wxUSE_ALL_FEATURES
10795           if test -z "$defaultval"; then
10796               if test x"$enablestring" = xdisable; then
10797                   defaultval=yes
10798               else
10799                   defaultval=no
10800               fi
10801           fi
10802
10803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10804 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10805           # Check whether --enable-listbook was given.
10806 if test "${enable_listbook+set}" = set; then
10807   enableval=$enable_listbook;
10808                           if test "$enableval" = yes; then
10809                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10810                           else
10811                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10812                           fi
10813
10814 else
10815
10816                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10817
10818 fi
10819
10820
10821           eval "$wx_cv_use_listbook"
10822
10823           if test x"$enablestring" = xdisable; then
10824             if test $wxUSE_LISTBOOK = yes; then
10825               result=no
10826             else
10827               result=yes
10828             fi
10829           else
10830             result=$wxUSE_LISTBOOK
10831           fi
10832
10833           { echo "$as_me:$LINENO: result: $result" >&5
10834 echo "${ECHO_T}$result" >&6; }
10835
10836
10837           enablestring=
10838           defaultval=$wxUSE_ALL_FEATURES
10839           if test -z "$defaultval"; then
10840               if test x"$enablestring" = xdisable; then
10841                   defaultval=yes
10842               else
10843                   defaultval=no
10844               fi
10845           fi
10846
10847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10848 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10849           # Check whether --enable-listbox was given.
10850 if test "${enable_listbox+set}" = set; then
10851   enableval=$enable_listbox;
10852                           if test "$enableval" = yes; then
10853                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10854                           else
10855                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10856                           fi
10857
10858 else
10859
10860                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10861
10862 fi
10863
10864
10865           eval "$wx_cv_use_listbox"
10866
10867           if test x"$enablestring" = xdisable; then
10868             if test $wxUSE_LISTBOX = yes; then
10869               result=no
10870             else
10871               result=yes
10872             fi
10873           else
10874             result=$wxUSE_LISTBOX
10875           fi
10876
10877           { echo "$as_me:$LINENO: result: $result" >&5
10878 echo "${ECHO_T}$result" >&6; }
10879
10880
10881           enablestring=
10882           defaultval=$wxUSE_ALL_FEATURES
10883           if test -z "$defaultval"; then
10884               if test x"$enablestring" = xdisable; then
10885                   defaultval=yes
10886               else
10887                   defaultval=no
10888               fi
10889           fi
10890
10891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10892 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10893           # Check whether --enable-listctrl was given.
10894 if test "${enable_listctrl+set}" = set; then
10895   enableval=$enable_listctrl;
10896                           if test "$enableval" = yes; then
10897                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10898                           else
10899                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10900                           fi
10901
10902 else
10903
10904                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10905
10906 fi
10907
10908
10909           eval "$wx_cv_use_listctrl"
10910
10911           if test x"$enablestring" = xdisable; then
10912             if test $wxUSE_LISTCTRL = yes; then
10913               result=no
10914             else
10915               result=yes
10916             fi
10917           else
10918             result=$wxUSE_LISTCTRL
10919           fi
10920
10921           { echo "$as_me:$LINENO: result: $result" >&5
10922 echo "${ECHO_T}$result" >&6; }
10923
10924
10925           enablestring=
10926           defaultval=$wxUSE_ALL_FEATURES
10927           if test -z "$defaultval"; then
10928               if test x"$enablestring" = xdisable; then
10929                   defaultval=yes
10930               else
10931                   defaultval=no
10932               fi
10933           fi
10934
10935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10936 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10937           # Check whether --enable-notebook was given.
10938 if test "${enable_notebook+set}" = set; then
10939   enableval=$enable_notebook;
10940                           if test "$enableval" = yes; then
10941                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10942                           else
10943                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10944                           fi
10945
10946 else
10947
10948                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10949
10950 fi
10951
10952
10953           eval "$wx_cv_use_notebook"
10954
10955           if test x"$enablestring" = xdisable; then
10956             if test $wxUSE_NOTEBOOK = yes; then
10957               result=no
10958             else
10959               result=yes
10960             fi
10961           else
10962             result=$wxUSE_NOTEBOOK
10963           fi
10964
10965           { echo "$as_me:$LINENO: result: $result" >&5
10966 echo "${ECHO_T}$result" >&6; }
10967
10968
10969           enablestring=
10970           defaultval=$wxUSE_ALL_FEATURES
10971           if test -z "$defaultval"; then
10972               if test x"$enablestring" = xdisable; then
10973                   defaultval=yes
10974               else
10975                   defaultval=no
10976               fi
10977           fi
10978
10979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10980 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10981           # Check whether --enable-notifmsg was given.
10982 if test "${enable_notifmsg+set}" = set; then
10983   enableval=$enable_notifmsg;
10984                           if test "$enableval" = yes; then
10985                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10986                           else
10987                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10988                           fi
10989
10990 else
10991
10992                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10993
10994 fi
10995
10996
10997           eval "$wx_cv_use_notifmsg"
10998
10999           if test x"$enablestring" = xdisable; then
11000             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
11001               result=no
11002             else
11003               result=yes
11004             fi
11005           else
11006             result=$wxUSE_NOTIFICATION_MESSAGE
11007           fi
11008
11009           { echo "$as_me:$LINENO: result: $result" >&5
11010 echo "${ECHO_T}$result" >&6; }
11011
11012
11013           enablestring=
11014           defaultval=$wxUSE_ALL_FEATURES
11015           if test -z "$defaultval"; then
11016               if test x"$enablestring" = xdisable; then
11017                   defaultval=yes
11018               else
11019                   defaultval=no
11020               fi
11021           fi
11022
11023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11024 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11025           # Check whether --enable-odcombobox was given.
11026 if test "${enable_odcombobox+set}" = set; then
11027   enableval=$enable_odcombobox;
11028                           if test "$enableval" = yes; then
11029                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11030                           else
11031                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11032                           fi
11033
11034 else
11035
11036                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11037
11038 fi
11039
11040
11041           eval "$wx_cv_use_odcombobox"
11042
11043           if test x"$enablestring" = xdisable; then
11044             if test $wxUSE_ODCOMBOBOX = yes; then
11045               result=no
11046             else
11047               result=yes
11048             fi
11049           else
11050             result=$wxUSE_ODCOMBOBOX
11051           fi
11052
11053           { echo "$as_me:$LINENO: result: $result" >&5
11054 echo "${ECHO_T}$result" >&6; }
11055
11056
11057           enablestring=
11058           defaultval=$wxUSE_ALL_FEATURES
11059           if test -z "$defaultval"; then
11060               if test x"$enablestring" = xdisable; then
11061                   defaultval=yes
11062               else
11063                   defaultval=no
11064               fi
11065           fi
11066
11067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11068 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11069           # Check whether --enable-radiobox was given.
11070 if test "${enable_radiobox+set}" = set; then
11071   enableval=$enable_radiobox;
11072                           if test "$enableval" = yes; then
11073                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11074                           else
11075                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11076                           fi
11077
11078 else
11079
11080                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11081
11082 fi
11083
11084
11085           eval "$wx_cv_use_radiobox"
11086
11087           if test x"$enablestring" = xdisable; then
11088             if test $wxUSE_RADIOBOX = yes; then
11089               result=no
11090             else
11091               result=yes
11092             fi
11093           else
11094             result=$wxUSE_RADIOBOX
11095           fi
11096
11097           { echo "$as_me:$LINENO: result: $result" >&5
11098 echo "${ECHO_T}$result" >&6; }
11099
11100
11101           enablestring=
11102           defaultval=$wxUSE_ALL_FEATURES
11103           if test -z "$defaultval"; then
11104               if test x"$enablestring" = xdisable; then
11105                   defaultval=yes
11106               else
11107                   defaultval=no
11108               fi
11109           fi
11110
11111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11112 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11113           # Check whether --enable-radiobtn was given.
11114 if test "${enable_radiobtn+set}" = set; then
11115   enableval=$enable_radiobtn;
11116                           if test "$enableval" = yes; then
11117                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11118                           else
11119                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11120                           fi
11121
11122 else
11123
11124                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11125
11126 fi
11127
11128
11129           eval "$wx_cv_use_radiobtn"
11130
11131           if test x"$enablestring" = xdisable; then
11132             if test $wxUSE_RADIOBTN = yes; then
11133               result=no
11134             else
11135               result=yes
11136             fi
11137           else
11138             result=$wxUSE_RADIOBTN
11139           fi
11140
11141           { echo "$as_me:$LINENO: result: $result" >&5
11142 echo "${ECHO_T}$result" >&6; }
11143
11144
11145           enablestring=
11146           defaultval=$wxUSE_ALL_FEATURES
11147           if test -z "$defaultval"; then
11148               if test x"$enablestring" = xdisable; then
11149                   defaultval=yes
11150               else
11151                   defaultval=no
11152               fi
11153           fi
11154
11155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11156 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11157           # Check whether --enable-sash was given.
11158 if test "${enable_sash+set}" = set; then
11159   enableval=$enable_sash;
11160                           if test "$enableval" = yes; then
11161                             wx_cv_use_sash='wxUSE_SASH=yes'
11162                           else
11163                             wx_cv_use_sash='wxUSE_SASH=no'
11164                           fi
11165
11166 else
11167
11168                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11169
11170 fi
11171
11172
11173           eval "$wx_cv_use_sash"
11174
11175           if test x"$enablestring" = xdisable; then
11176             if test $wxUSE_SASH = yes; then
11177               result=no
11178             else
11179               result=yes
11180             fi
11181           else
11182             result=$wxUSE_SASH
11183           fi
11184
11185           { echo "$as_me:$LINENO: result: $result" >&5
11186 echo "${ECHO_T}$result" >&6; }
11187
11188
11189           enablestring=
11190           defaultval=$wxUSE_ALL_FEATURES
11191           if test -z "$defaultval"; then
11192               if test x"$enablestring" = xdisable; then
11193                   defaultval=yes
11194               else
11195                   defaultval=no
11196               fi
11197           fi
11198
11199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11200 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11201           # Check whether --enable-scrollbar was given.
11202 if test "${enable_scrollbar+set}" = set; then
11203   enableval=$enable_scrollbar;
11204                           if test "$enableval" = yes; then
11205                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11206                           else
11207                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11208                           fi
11209
11210 else
11211
11212                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11213
11214 fi
11215
11216
11217           eval "$wx_cv_use_scrollbar"
11218
11219           if test x"$enablestring" = xdisable; then
11220             if test $wxUSE_SCROLLBAR = yes; then
11221               result=no
11222             else
11223               result=yes
11224             fi
11225           else
11226             result=$wxUSE_SCROLLBAR
11227           fi
11228
11229           { echo "$as_me:$LINENO: result: $result" >&5
11230 echo "${ECHO_T}$result" >&6; }
11231
11232
11233           enablestring=
11234           defaultval=$wxUSE_ALL_FEATURES
11235           if test -z "$defaultval"; then
11236               if test x"$enablestring" = xdisable; then
11237                   defaultval=yes
11238               else
11239                   defaultval=no
11240               fi
11241           fi
11242
11243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11244 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11245           # Check whether --enable-searchctrl was given.
11246 if test "${enable_searchctrl+set}" = set; then
11247   enableval=$enable_searchctrl;
11248                           if test "$enableval" = yes; then
11249                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11250                           else
11251                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11252                           fi
11253
11254 else
11255
11256                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11257
11258 fi
11259
11260
11261           eval "$wx_cv_use_searchctrl"
11262
11263           if test x"$enablestring" = xdisable; then
11264             if test $wxUSE_SEARCHCTRL = yes; then
11265               result=no
11266             else
11267               result=yes
11268             fi
11269           else
11270             result=$wxUSE_SEARCHCTRL
11271           fi
11272
11273           { echo "$as_me:$LINENO: result: $result" >&5
11274 echo "${ECHO_T}$result" >&6; }
11275
11276
11277           enablestring=
11278           defaultval=$wxUSE_ALL_FEATURES
11279           if test -z "$defaultval"; then
11280               if test x"$enablestring" = xdisable; then
11281                   defaultval=yes
11282               else
11283                   defaultval=no
11284               fi
11285           fi
11286
11287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11288 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11289           # Check whether --enable-slider was given.
11290 if test "${enable_slider+set}" = set; then
11291   enableval=$enable_slider;
11292                           if test "$enableval" = yes; then
11293                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11294                           else
11295                             wx_cv_use_slider='wxUSE_SLIDER=no'
11296                           fi
11297
11298 else
11299
11300                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11301
11302 fi
11303
11304
11305           eval "$wx_cv_use_slider"
11306
11307           if test x"$enablestring" = xdisable; then
11308             if test $wxUSE_SLIDER = yes; then
11309               result=no
11310             else
11311               result=yes
11312             fi
11313           else
11314             result=$wxUSE_SLIDER
11315           fi
11316
11317           { echo "$as_me:$LINENO: result: $result" >&5
11318 echo "${ECHO_T}$result" >&6; }
11319
11320
11321           enablestring=
11322           defaultval=$wxUSE_ALL_FEATURES
11323           if test -z "$defaultval"; then
11324               if test x"$enablestring" = xdisable; then
11325                   defaultval=yes
11326               else
11327                   defaultval=no
11328               fi
11329           fi
11330
11331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11332 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11333           # Check whether --enable-spinbtn was given.
11334 if test "${enable_spinbtn+set}" = set; then
11335   enableval=$enable_spinbtn;
11336                           if test "$enableval" = yes; then
11337                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11338                           else
11339                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11340                           fi
11341
11342 else
11343
11344                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11345
11346 fi
11347
11348
11349           eval "$wx_cv_use_spinbtn"
11350
11351           if test x"$enablestring" = xdisable; then
11352             if test $wxUSE_SPINBTN = yes; then
11353               result=no
11354             else
11355               result=yes
11356             fi
11357           else
11358             result=$wxUSE_SPINBTN
11359           fi
11360
11361           { echo "$as_me:$LINENO: result: $result" >&5
11362 echo "${ECHO_T}$result" >&6; }
11363
11364
11365           enablestring=
11366           defaultval=$wxUSE_ALL_FEATURES
11367           if test -z "$defaultval"; then
11368               if test x"$enablestring" = xdisable; then
11369                   defaultval=yes
11370               else
11371                   defaultval=no
11372               fi
11373           fi
11374
11375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11376 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11377           # Check whether --enable-spinctrl was given.
11378 if test "${enable_spinctrl+set}" = set; then
11379   enableval=$enable_spinctrl;
11380                           if test "$enableval" = yes; then
11381                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11382                           else
11383                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11384                           fi
11385
11386 else
11387
11388                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11389
11390 fi
11391
11392
11393           eval "$wx_cv_use_spinctrl"
11394
11395           if test x"$enablestring" = xdisable; then
11396             if test $wxUSE_SPINCTRL = yes; then
11397               result=no
11398             else
11399               result=yes
11400             fi
11401           else
11402             result=$wxUSE_SPINCTRL
11403           fi
11404
11405           { echo "$as_me:$LINENO: result: $result" >&5
11406 echo "${ECHO_T}$result" >&6; }
11407
11408
11409           enablestring=
11410           defaultval=$wxUSE_ALL_FEATURES
11411           if test -z "$defaultval"; then
11412               if test x"$enablestring" = xdisable; then
11413                   defaultval=yes
11414               else
11415                   defaultval=no
11416               fi
11417           fi
11418
11419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11420 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11421           # Check whether --enable-splitter was given.
11422 if test "${enable_splitter+set}" = set; then
11423   enableval=$enable_splitter;
11424                           if test "$enableval" = yes; then
11425                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11426                           else
11427                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11428                           fi
11429
11430 else
11431
11432                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11433
11434 fi
11435
11436
11437           eval "$wx_cv_use_splitter"
11438
11439           if test x"$enablestring" = xdisable; then
11440             if test $wxUSE_SPLITTER = yes; then
11441               result=no
11442             else
11443               result=yes
11444             fi
11445           else
11446             result=$wxUSE_SPLITTER
11447           fi
11448
11449           { echo "$as_me:$LINENO: result: $result" >&5
11450 echo "${ECHO_T}$result" >&6; }
11451
11452
11453           enablestring=
11454           defaultval=$wxUSE_ALL_FEATURES
11455           if test -z "$defaultval"; then
11456               if test x"$enablestring" = xdisable; then
11457                   defaultval=yes
11458               else
11459                   defaultval=no
11460               fi
11461           fi
11462
11463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11464 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11465           # Check whether --enable-statbmp was given.
11466 if test "${enable_statbmp+set}" = set; then
11467   enableval=$enable_statbmp;
11468                           if test "$enableval" = yes; then
11469                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11470                           else
11471                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11472                           fi
11473
11474 else
11475
11476                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11477
11478 fi
11479
11480
11481           eval "$wx_cv_use_statbmp"
11482
11483           if test x"$enablestring" = xdisable; then
11484             if test $wxUSE_STATBMP = yes; then
11485               result=no
11486             else
11487               result=yes
11488             fi
11489           else
11490             result=$wxUSE_STATBMP
11491           fi
11492
11493           { echo "$as_me:$LINENO: result: $result" >&5
11494 echo "${ECHO_T}$result" >&6; }
11495
11496
11497           enablestring=
11498           defaultval=$wxUSE_ALL_FEATURES
11499           if test -z "$defaultval"; then
11500               if test x"$enablestring" = xdisable; then
11501                   defaultval=yes
11502               else
11503                   defaultval=no
11504               fi
11505           fi
11506
11507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11508 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11509           # Check whether --enable-statbox was given.
11510 if test "${enable_statbox+set}" = set; then
11511   enableval=$enable_statbox;
11512                           if test "$enableval" = yes; then
11513                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11514                           else
11515                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11516                           fi
11517
11518 else
11519
11520                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11521
11522 fi
11523
11524
11525           eval "$wx_cv_use_statbox"
11526
11527           if test x"$enablestring" = xdisable; then
11528             if test $wxUSE_STATBOX = yes; then
11529               result=no
11530             else
11531               result=yes
11532             fi
11533           else
11534             result=$wxUSE_STATBOX
11535           fi
11536
11537           { echo "$as_me:$LINENO: result: $result" >&5
11538 echo "${ECHO_T}$result" >&6; }
11539
11540
11541           enablestring=
11542           defaultval=$wxUSE_ALL_FEATURES
11543           if test -z "$defaultval"; then
11544               if test x"$enablestring" = xdisable; then
11545                   defaultval=yes
11546               else
11547                   defaultval=no
11548               fi
11549           fi
11550
11551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11552 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11553           # Check whether --enable-statline was given.
11554 if test "${enable_statline+set}" = set; then
11555   enableval=$enable_statline;
11556                           if test "$enableval" = yes; then
11557                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11558                           else
11559                             wx_cv_use_statline='wxUSE_STATLINE=no'
11560                           fi
11561
11562 else
11563
11564                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11565
11566 fi
11567
11568
11569           eval "$wx_cv_use_statline"
11570
11571           if test x"$enablestring" = xdisable; then
11572             if test $wxUSE_STATLINE = yes; then
11573               result=no
11574             else
11575               result=yes
11576             fi
11577           else
11578             result=$wxUSE_STATLINE
11579           fi
11580
11581           { echo "$as_me:$LINENO: result: $result" >&5
11582 echo "${ECHO_T}$result" >&6; }
11583
11584
11585           enablestring=
11586           defaultval=$wxUSE_ALL_FEATURES
11587           if test -z "$defaultval"; then
11588               if test x"$enablestring" = xdisable; then
11589                   defaultval=yes
11590               else
11591                   defaultval=no
11592               fi
11593           fi
11594
11595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11596 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11597           # Check whether --enable-stattext was given.
11598 if test "${enable_stattext+set}" = set; then
11599   enableval=$enable_stattext;
11600                           if test "$enableval" = yes; then
11601                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11602                           else
11603                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11604                           fi
11605
11606 else
11607
11608                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11609
11610 fi
11611
11612
11613           eval "$wx_cv_use_stattext"
11614
11615           if test x"$enablestring" = xdisable; then
11616             if test $wxUSE_STATTEXT = yes; then
11617               result=no
11618             else
11619               result=yes
11620             fi
11621           else
11622             result=$wxUSE_STATTEXT
11623           fi
11624
11625           { echo "$as_me:$LINENO: result: $result" >&5
11626 echo "${ECHO_T}$result" >&6; }
11627
11628
11629           enablestring=
11630           defaultval=$wxUSE_ALL_FEATURES
11631           if test -z "$defaultval"; then
11632               if test x"$enablestring" = xdisable; then
11633                   defaultval=yes
11634               else
11635                   defaultval=no
11636               fi
11637           fi
11638
11639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11640 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11641           # Check whether --enable-statusbar was given.
11642 if test "${enable_statusbar+set}" = set; then
11643   enableval=$enable_statusbar;
11644                           if test "$enableval" = yes; then
11645                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11646                           else
11647                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11648                           fi
11649
11650 else
11651
11652                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11653
11654 fi
11655
11656
11657           eval "$wx_cv_use_statusbar"
11658
11659           if test x"$enablestring" = xdisable; then
11660             if test $wxUSE_STATUSBAR = yes; then
11661               result=no
11662             else
11663               result=yes
11664             fi
11665           else
11666             result=$wxUSE_STATUSBAR
11667           fi
11668
11669           { echo "$as_me:$LINENO: result: $result" >&5
11670 echo "${ECHO_T}$result" >&6; }
11671
11672
11673           enablestring=
11674           defaultval=$wxUSE_ALL_FEATURES
11675           if test -z "$defaultval"; then
11676               if test x"$enablestring" = xdisable; then
11677                   defaultval=yes
11678               else
11679                   defaultval=no
11680               fi
11681           fi
11682
11683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11684 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11685           # Check whether --enable-tabdialog was given.
11686 if test "${enable_tabdialog+set}" = set; then
11687   enableval=$enable_tabdialog;
11688                           if test "$enableval" = yes; then
11689                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11690                           else
11691                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11692                           fi
11693
11694 else
11695
11696                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11697
11698 fi
11699
11700
11701           eval "$wx_cv_use_tabdialog"
11702
11703           if test x"$enablestring" = xdisable; then
11704             if test $wxUSE_TAB_DIALOG = yes; then
11705               result=no
11706             else
11707               result=yes
11708             fi
11709           else
11710             result=$wxUSE_TAB_DIALOG
11711           fi
11712
11713           { echo "$as_me:$LINENO: result: $result" >&5
11714 echo "${ECHO_T}$result" >&6; }
11715
11716
11717           enablestring=
11718           defaultval=$wxUSE_ALL_FEATURES
11719           if test -z "$defaultval"; then
11720               if test x"$enablestring" = xdisable; then
11721                   defaultval=yes
11722               else
11723                   defaultval=no
11724               fi
11725           fi
11726
11727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11728 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11729           # Check whether --enable-taskbaricon was given.
11730 if test "${enable_taskbaricon+set}" = set; then
11731   enableval=$enable_taskbaricon;
11732                           if test "$enableval" = yes; then
11733                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11734                           else
11735                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11736                           fi
11737
11738 else
11739
11740                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11741
11742 fi
11743
11744
11745           eval "$wx_cv_use_taskbaricon"
11746
11747           if test x"$enablestring" = xdisable; then
11748             if test $wxUSE_TASKBARICON = yes; then
11749               result=no
11750             else
11751               result=yes
11752             fi
11753           else
11754             result=$wxUSE_TASKBARICON
11755           fi
11756
11757           { echo "$as_me:$LINENO: result: $result" >&5
11758 echo "${ECHO_T}$result" >&6; }
11759
11760
11761           enablestring=
11762           defaultval=$wxUSE_ALL_FEATURES
11763           if test -z "$defaultval"; then
11764               if test x"$enablestring" = xdisable; then
11765                   defaultval=yes
11766               else
11767                   defaultval=no
11768               fi
11769           fi
11770
11771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11772 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11773           # Check whether --enable-textctrl was given.
11774 if test "${enable_textctrl+set}" = set; then
11775   enableval=$enable_textctrl;
11776                           if test "$enableval" = yes; then
11777                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11778                           else
11779                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11780                           fi
11781
11782 else
11783
11784                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11785
11786 fi
11787
11788
11789           eval "$wx_cv_use_textctrl"
11790
11791           if test x"$enablestring" = xdisable; then
11792             if test $wxUSE_TEXTCTRL = yes; then
11793               result=no
11794             else
11795               result=yes
11796             fi
11797           else
11798             result=$wxUSE_TEXTCTRL
11799           fi
11800
11801           { echo "$as_me:$LINENO: result: $result" >&5
11802 echo "${ECHO_T}$result" >&6; }
11803
11804
11805           enablestring=
11806           defaultval=$wxUSE_ALL_FEATURES
11807           if test -z "$defaultval"; then
11808               if test x"$enablestring" = xdisable; then
11809                   defaultval=yes
11810               else
11811                   defaultval=no
11812               fi
11813           fi
11814
11815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11816 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11817           # Check whether --enable-togglebtn was given.
11818 if test "${enable_togglebtn+set}" = set; then
11819   enableval=$enable_togglebtn;
11820                           if test "$enableval" = yes; then
11821                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11822                           else
11823                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11824                           fi
11825
11826 else
11827
11828                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11829
11830 fi
11831
11832
11833           eval "$wx_cv_use_togglebtn"
11834
11835           if test x"$enablestring" = xdisable; then
11836             if test $wxUSE_TOGGLEBTN = yes; then
11837               result=no
11838             else
11839               result=yes
11840             fi
11841           else
11842             result=$wxUSE_TOGGLEBTN
11843           fi
11844
11845           { echo "$as_me:$LINENO: result: $result" >&5
11846 echo "${ECHO_T}$result" >&6; }
11847
11848
11849           enablestring=
11850           defaultval=$wxUSE_ALL_FEATURES
11851           if test -z "$defaultval"; then
11852               if test x"$enablestring" = xdisable; then
11853                   defaultval=yes
11854               else
11855                   defaultval=no
11856               fi
11857           fi
11858
11859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11860 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11861           # Check whether --enable-toolbar was given.
11862 if test "${enable_toolbar+set}" = set; then
11863   enableval=$enable_toolbar;
11864                           if test "$enableval" = yes; then
11865                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11866                           else
11867                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11868                           fi
11869
11870 else
11871
11872                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11873
11874 fi
11875
11876
11877           eval "$wx_cv_use_toolbar"
11878
11879           if test x"$enablestring" = xdisable; then
11880             if test $wxUSE_TOOLBAR = yes; then
11881               result=no
11882             else
11883               result=yes
11884             fi
11885           else
11886             result=$wxUSE_TOOLBAR
11887           fi
11888
11889           { echo "$as_me:$LINENO: result: $result" >&5
11890 echo "${ECHO_T}$result" >&6; }
11891
11892
11893           enablestring=
11894           defaultval=$wxUSE_ALL_FEATURES
11895           if test -z "$defaultval"; then
11896               if test x"$enablestring" = xdisable; then
11897                   defaultval=yes
11898               else
11899                   defaultval=no
11900               fi
11901           fi
11902
11903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11904 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11905           # Check whether --enable-tbarnative was given.
11906 if test "${enable_tbarnative+set}" = set; then
11907   enableval=$enable_tbarnative;
11908                           if test "$enableval" = yes; then
11909                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11910                           else
11911                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11912                           fi
11913
11914 else
11915
11916                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11917
11918 fi
11919
11920
11921           eval "$wx_cv_use_tbarnative"
11922
11923           if test x"$enablestring" = xdisable; then
11924             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11925               result=no
11926             else
11927               result=yes
11928             fi
11929           else
11930             result=$wxUSE_TOOLBAR_NATIVE
11931           fi
11932
11933           { echo "$as_me:$LINENO: result: $result" >&5
11934 echo "${ECHO_T}$result" >&6; }
11935
11936
11937           enablestring=
11938           defaultval=$wxUSE_ALL_FEATURES
11939           if test -z "$defaultval"; then
11940               if test x"$enablestring" = xdisable; then
11941                   defaultval=yes
11942               else
11943                   defaultval=no
11944               fi
11945           fi
11946
11947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11948 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11949           # Check whether --enable-treebook was given.
11950 if test "${enable_treebook+set}" = set; then
11951   enableval=$enable_treebook;
11952                           if test "$enableval" = yes; then
11953                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11954                           else
11955                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11956                           fi
11957
11958 else
11959
11960                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11961
11962 fi
11963
11964
11965           eval "$wx_cv_use_treebook"
11966
11967           if test x"$enablestring" = xdisable; then
11968             if test $wxUSE_TREEBOOK = yes; then
11969               result=no
11970             else
11971               result=yes
11972             fi
11973           else
11974             result=$wxUSE_TREEBOOK
11975           fi
11976
11977           { echo "$as_me:$LINENO: result: $result" >&5
11978 echo "${ECHO_T}$result" >&6; }
11979
11980
11981           enablestring=
11982           defaultval=$wxUSE_ALL_FEATURES
11983           if test -z "$defaultval"; then
11984               if test x"$enablestring" = xdisable; then
11985                   defaultval=yes
11986               else
11987                   defaultval=no
11988               fi
11989           fi
11990
11991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11992 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11993           # Check whether --enable-toolbook was given.
11994 if test "${enable_toolbook+set}" = set; then
11995   enableval=$enable_toolbook;
11996                           if test "$enableval" = yes; then
11997                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11998                           else
11999                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12000                           fi
12001
12002 else
12003
12004                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12005
12006 fi
12007
12008
12009           eval "$wx_cv_use_toolbook"
12010
12011           if test x"$enablestring" = xdisable; then
12012             if test $wxUSE_TOOLBOOK = yes; then
12013               result=no
12014             else
12015               result=yes
12016             fi
12017           else
12018             result=$wxUSE_TOOLBOOK
12019           fi
12020
12021           { echo "$as_me:$LINENO: result: $result" >&5
12022 echo "${ECHO_T}$result" >&6; }
12023
12024
12025           enablestring=
12026           defaultval=$wxUSE_ALL_FEATURES
12027           if test -z "$defaultval"; then
12028               if test x"$enablestring" = xdisable; then
12029                   defaultval=yes
12030               else
12031                   defaultval=no
12032               fi
12033           fi
12034
12035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12036 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12037           # Check whether --enable-treectrl was given.
12038 if test "${enable_treectrl+set}" = set; then
12039   enableval=$enable_treectrl;
12040                           if test "$enableval" = yes; then
12041                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12042                           else
12043                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12044                           fi
12045
12046 else
12047
12048                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12049
12050 fi
12051
12052
12053           eval "$wx_cv_use_treectrl"
12054
12055           if test x"$enablestring" = xdisable; then
12056             if test $wxUSE_TREECTRL = yes; then
12057               result=no
12058             else
12059               result=yes
12060             fi
12061           else
12062             result=$wxUSE_TREECTRL
12063           fi
12064
12065           { echo "$as_me:$LINENO: result: $result" >&5
12066 echo "${ECHO_T}$result" >&6; }
12067
12068
12069           enablestring=
12070           defaultval=$wxUSE_ALL_FEATURES
12071           if test -z "$defaultval"; then
12072               if test x"$enablestring" = xdisable; then
12073                   defaultval=yes
12074               else
12075                   defaultval=no
12076               fi
12077           fi
12078
12079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12080 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12081           # Check whether --enable-tipwindow was given.
12082 if test "${enable_tipwindow+set}" = set; then
12083   enableval=$enable_tipwindow;
12084                           if test "$enableval" = yes; then
12085                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12086                           else
12087                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12088                           fi
12089
12090 else
12091
12092                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12093
12094 fi
12095
12096
12097           eval "$wx_cv_use_tipwindow"
12098
12099           if test x"$enablestring" = xdisable; then
12100             if test $wxUSE_TIPWINDOW = yes; then
12101               result=no
12102             else
12103               result=yes
12104             fi
12105           else
12106             result=$wxUSE_TIPWINDOW
12107           fi
12108
12109           { echo "$as_me:$LINENO: result: $result" >&5
12110 echo "${ECHO_T}$result" >&6; }
12111
12112
12113           enablestring=
12114           defaultval=$wxUSE_ALL_FEATURES
12115           if test -z "$defaultval"; then
12116               if test x"$enablestring" = xdisable; then
12117                   defaultval=yes
12118               else
12119                   defaultval=no
12120               fi
12121           fi
12122
12123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
12124 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
12125           # Check whether --enable-popupwin was given.
12126 if test "${enable_popupwin+set}" = set; then
12127   enableval=$enable_popupwin;
12128                           if test "$enableval" = yes; then
12129                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12130                           else
12131                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
12132                           fi
12133
12134 else
12135
12136                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12137
12138 fi
12139
12140
12141           eval "$wx_cv_use_popupwin"
12142
12143           if test x"$enablestring" = xdisable; then
12144             if test $wxUSE_POPUPWIN = yes; then
12145               result=no
12146             else
12147               result=yes
12148             fi
12149           else
12150             result=$wxUSE_POPUPWIN
12151           fi
12152
12153           { echo "$as_me:$LINENO: result: $result" >&5
12154 echo "${ECHO_T}$result" >&6; }
12155
12156
12157
12158
12159           enablestring=
12160           defaultval=$wxUSE_ALL_FEATURES
12161           if test -z "$defaultval"; then
12162               if test x"$enablestring" = xdisable; then
12163                   defaultval=yes
12164               else
12165                   defaultval=no
12166               fi
12167           fi
12168
12169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12170 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12171           # Check whether --enable-commondlg was given.
12172 if test "${enable_commondlg+set}" = set; then
12173   enableval=$enable_commondlg;
12174                           if test "$enableval" = yes; then
12175                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12176                           else
12177                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12178                           fi
12179
12180 else
12181
12182                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12183
12184 fi
12185
12186
12187           eval "$wx_cv_use_commondlg"
12188
12189           if test x"$enablestring" = xdisable; then
12190             if test $wxUSE_COMMONDLGS = yes; then
12191               result=no
12192             else
12193               result=yes
12194             fi
12195           else
12196             result=$wxUSE_COMMONDLGS
12197           fi
12198
12199           { echo "$as_me:$LINENO: result: $result" >&5
12200 echo "${ECHO_T}$result" >&6; }
12201
12202
12203           enablestring=
12204           defaultval=$wxUSE_ALL_FEATURES
12205           if test -z "$defaultval"; then
12206               if test x"$enablestring" = xdisable; then
12207                   defaultval=yes
12208               else
12209                   defaultval=no
12210               fi
12211           fi
12212
12213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12214 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12215           # Check whether --enable-aboutdlg was given.
12216 if test "${enable_aboutdlg+set}" = set; then
12217   enableval=$enable_aboutdlg;
12218                           if test "$enableval" = yes; then
12219                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12220                           else
12221                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12222                           fi
12223
12224 else
12225
12226                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12227
12228 fi
12229
12230
12231           eval "$wx_cv_use_aboutdlg"
12232
12233           if test x"$enablestring" = xdisable; then
12234             if test $wxUSE_ABOUTDLG = yes; then
12235               result=no
12236             else
12237               result=yes
12238             fi
12239           else
12240             result=$wxUSE_ABOUTDLG
12241           fi
12242
12243           { echo "$as_me:$LINENO: result: $result" >&5
12244 echo "${ECHO_T}$result" >&6; }
12245
12246
12247           enablestring=
12248           defaultval=$wxUSE_ALL_FEATURES
12249           if test -z "$defaultval"; then
12250               if test x"$enablestring" = xdisable; then
12251                   defaultval=yes
12252               else
12253                   defaultval=no
12254               fi
12255           fi
12256
12257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12258 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12259           # Check whether --enable-choicedlg was given.
12260 if test "${enable_choicedlg+set}" = set; then
12261   enableval=$enable_choicedlg;
12262                           if test "$enableval" = yes; then
12263                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12264                           else
12265                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12266                           fi
12267
12268 else
12269
12270                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12271
12272 fi
12273
12274
12275           eval "$wx_cv_use_choicedlg"
12276
12277           if test x"$enablestring" = xdisable; then
12278             if test $wxUSE_CHOICEDLG = yes; then
12279               result=no
12280             else
12281               result=yes
12282             fi
12283           else
12284             result=$wxUSE_CHOICEDLG
12285           fi
12286
12287           { echo "$as_me:$LINENO: result: $result" >&5
12288 echo "${ECHO_T}$result" >&6; }
12289
12290
12291           enablestring=
12292           defaultval=$wxUSE_ALL_FEATURES
12293           if test -z "$defaultval"; then
12294               if test x"$enablestring" = xdisable; then
12295                   defaultval=yes
12296               else
12297                   defaultval=no
12298               fi
12299           fi
12300
12301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12302 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12303           # Check whether --enable-coldlg was given.
12304 if test "${enable_coldlg+set}" = set; then
12305   enableval=$enable_coldlg;
12306                           if test "$enableval" = yes; then
12307                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12308                           else
12309                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12310                           fi
12311
12312 else
12313
12314                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12315
12316 fi
12317
12318
12319           eval "$wx_cv_use_coldlg"
12320
12321           if test x"$enablestring" = xdisable; then
12322             if test $wxUSE_COLOURDLG = yes; then
12323               result=no
12324             else
12325               result=yes
12326             fi
12327           else
12328             result=$wxUSE_COLOURDLG
12329           fi
12330
12331           { echo "$as_me:$LINENO: result: $result" >&5
12332 echo "${ECHO_T}$result" >&6; }
12333
12334
12335           enablestring=
12336           defaultval=$wxUSE_ALL_FEATURES
12337           if test -z "$defaultval"; then
12338               if test x"$enablestring" = xdisable; then
12339                   defaultval=yes
12340               else
12341                   defaultval=no
12342               fi
12343           fi
12344
12345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12346 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12347           # Check whether --enable-filedlg was given.
12348 if test "${enable_filedlg+set}" = set; then
12349   enableval=$enable_filedlg;
12350                           if test "$enableval" = yes; then
12351                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12352                           else
12353                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12354                           fi
12355
12356 else
12357
12358                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12359
12360 fi
12361
12362
12363           eval "$wx_cv_use_filedlg"
12364
12365           if test x"$enablestring" = xdisable; then
12366             if test $wxUSE_FILEDLG = yes; then
12367               result=no
12368             else
12369               result=yes
12370             fi
12371           else
12372             result=$wxUSE_FILEDLG
12373           fi
12374
12375           { echo "$as_me:$LINENO: result: $result" >&5
12376 echo "${ECHO_T}$result" >&6; }
12377
12378
12379           enablestring=
12380           defaultval=$wxUSE_ALL_FEATURES
12381           if test -z "$defaultval"; then
12382               if test x"$enablestring" = xdisable; then
12383                   defaultval=yes
12384               else
12385                   defaultval=no
12386               fi
12387           fi
12388
12389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12390 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12391           # Check whether --enable-finddlg was given.
12392 if test "${enable_finddlg+set}" = set; then
12393   enableval=$enable_finddlg;
12394                           if test "$enableval" = yes; then
12395                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12396                           else
12397                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12398                           fi
12399
12400 else
12401
12402                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12403
12404 fi
12405
12406
12407           eval "$wx_cv_use_finddlg"
12408
12409           if test x"$enablestring" = xdisable; then
12410             if test $wxUSE_FINDREPLDLG = yes; then
12411               result=no
12412             else
12413               result=yes
12414             fi
12415           else
12416             result=$wxUSE_FINDREPLDLG
12417           fi
12418
12419           { echo "$as_me:$LINENO: result: $result" >&5
12420 echo "${ECHO_T}$result" >&6; }
12421
12422
12423           enablestring=
12424           defaultval=$wxUSE_ALL_FEATURES
12425           if test -z "$defaultval"; then
12426               if test x"$enablestring" = xdisable; then
12427                   defaultval=yes
12428               else
12429                   defaultval=no
12430               fi
12431           fi
12432
12433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12434 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12435           # Check whether --enable-fontdlg was given.
12436 if test "${enable_fontdlg+set}" = set; then
12437   enableval=$enable_fontdlg;
12438                           if test "$enableval" = yes; then
12439                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12440                           else
12441                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12442                           fi
12443
12444 else
12445
12446                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12447
12448 fi
12449
12450
12451           eval "$wx_cv_use_fontdlg"
12452
12453           if test x"$enablestring" = xdisable; then
12454             if test $wxUSE_FONTDLG = yes; then
12455               result=no
12456             else
12457               result=yes
12458             fi
12459           else
12460             result=$wxUSE_FONTDLG
12461           fi
12462
12463           { echo "$as_me:$LINENO: result: $result" >&5
12464 echo "${ECHO_T}$result" >&6; }
12465
12466
12467           enablestring=
12468           defaultval=$wxUSE_ALL_FEATURES
12469           if test -z "$defaultval"; then
12470               if test x"$enablestring" = xdisable; then
12471                   defaultval=yes
12472               else
12473                   defaultval=no
12474               fi
12475           fi
12476
12477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12478 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12479           # Check whether --enable-dirdlg was given.
12480 if test "${enable_dirdlg+set}" = set; then
12481   enableval=$enable_dirdlg;
12482                           if test "$enableval" = yes; then
12483                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12484                           else
12485                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12486                           fi
12487
12488 else
12489
12490                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12491
12492 fi
12493
12494
12495           eval "$wx_cv_use_dirdlg"
12496
12497           if test x"$enablestring" = xdisable; then
12498             if test $wxUSE_DIRDLG = yes; then
12499               result=no
12500             else
12501               result=yes
12502             fi
12503           else
12504             result=$wxUSE_DIRDLG
12505           fi
12506
12507           { echo "$as_me:$LINENO: result: $result" >&5
12508 echo "${ECHO_T}$result" >&6; }
12509
12510
12511           enablestring=
12512           defaultval=$wxUSE_ALL_FEATURES
12513           if test -z "$defaultval"; then
12514               if test x"$enablestring" = xdisable; then
12515                   defaultval=yes
12516               else
12517                   defaultval=no
12518               fi
12519           fi
12520
12521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12522 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12523           # Check whether --enable-msgdlg was given.
12524 if test "${enable_msgdlg+set}" = set; then
12525   enableval=$enable_msgdlg;
12526                           if test "$enableval" = yes; then
12527                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12528                           else
12529                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12530                           fi
12531
12532 else
12533
12534                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12535
12536 fi
12537
12538
12539           eval "$wx_cv_use_msgdlg"
12540
12541           if test x"$enablestring" = xdisable; then
12542             if test $wxUSE_MSGDLG = yes; then
12543               result=no
12544             else
12545               result=yes
12546             fi
12547           else
12548             result=$wxUSE_MSGDLG
12549           fi
12550
12551           { echo "$as_me:$LINENO: result: $result" >&5
12552 echo "${ECHO_T}$result" >&6; }
12553
12554
12555           enablestring=
12556           defaultval=$wxUSE_ALL_FEATURES
12557           if test -z "$defaultval"; then
12558               if test x"$enablestring" = xdisable; then
12559                   defaultval=yes
12560               else
12561                   defaultval=no
12562               fi
12563           fi
12564
12565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12566 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12567           # Check whether --enable-numberdlg was given.
12568 if test "${enable_numberdlg+set}" = set; then
12569   enableval=$enable_numberdlg;
12570                           if test "$enableval" = yes; then
12571                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12572                           else
12573                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12574                           fi
12575
12576 else
12577
12578                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12579
12580 fi
12581
12582
12583           eval "$wx_cv_use_numberdlg"
12584
12585           if test x"$enablestring" = xdisable; then
12586             if test $wxUSE_NUMBERDLG = yes; then
12587               result=no
12588             else
12589               result=yes
12590             fi
12591           else
12592             result=$wxUSE_NUMBERDLG
12593           fi
12594
12595           { echo "$as_me:$LINENO: result: $result" >&5
12596 echo "${ECHO_T}$result" >&6; }
12597
12598
12599           enablestring=
12600           defaultval=$wxUSE_ALL_FEATURES
12601           if test -z "$defaultval"; then
12602               if test x"$enablestring" = xdisable; then
12603                   defaultval=yes
12604               else
12605                   defaultval=no
12606               fi
12607           fi
12608
12609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12610 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12611           # Check whether --enable-splash was given.
12612 if test "${enable_splash+set}" = set; then
12613   enableval=$enable_splash;
12614                           if test "$enableval" = yes; then
12615                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12616                           else
12617                             wx_cv_use_splash='wxUSE_SPLASH=no'
12618                           fi
12619
12620 else
12621
12622                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12623
12624 fi
12625
12626
12627           eval "$wx_cv_use_splash"
12628
12629           if test x"$enablestring" = xdisable; then
12630             if test $wxUSE_SPLASH = yes; then
12631               result=no
12632             else
12633               result=yes
12634             fi
12635           else
12636             result=$wxUSE_SPLASH
12637           fi
12638
12639           { echo "$as_me:$LINENO: result: $result" >&5
12640 echo "${ECHO_T}$result" >&6; }
12641
12642
12643           enablestring=
12644           defaultval=$wxUSE_ALL_FEATURES
12645           if test -z "$defaultval"; then
12646               if test x"$enablestring" = xdisable; then
12647                   defaultval=yes
12648               else
12649                   defaultval=no
12650               fi
12651           fi
12652
12653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12654 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12655           # Check whether --enable-textdlg was given.
12656 if test "${enable_textdlg+set}" = set; then
12657   enableval=$enable_textdlg;
12658                           if test "$enableval" = yes; then
12659                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12660                           else
12661                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12662                           fi
12663
12664 else
12665
12666                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12667
12668 fi
12669
12670
12671           eval "$wx_cv_use_textdlg"
12672
12673           if test x"$enablestring" = xdisable; then
12674             if test $wxUSE_TEXTDLG = yes; then
12675               result=no
12676             else
12677               result=yes
12678             fi
12679           else
12680             result=$wxUSE_TEXTDLG
12681           fi
12682
12683           { echo "$as_me:$LINENO: result: $result" >&5
12684 echo "${ECHO_T}$result" >&6; }
12685
12686
12687           enablestring=
12688           defaultval=$wxUSE_ALL_FEATURES
12689           if test -z "$defaultval"; then
12690               if test x"$enablestring" = xdisable; then
12691                   defaultval=yes
12692               else
12693                   defaultval=no
12694               fi
12695           fi
12696
12697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12698 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12699           # Check whether --enable-tipdlg was given.
12700 if test "${enable_tipdlg+set}" = set; then
12701   enableval=$enable_tipdlg;
12702                           if test "$enableval" = yes; then
12703                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12704                           else
12705                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12706                           fi
12707
12708 else
12709
12710                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12711
12712 fi
12713
12714
12715           eval "$wx_cv_use_tipdlg"
12716
12717           if test x"$enablestring" = xdisable; then
12718             if test $wxUSE_STARTUP_TIPS = yes; then
12719               result=no
12720             else
12721               result=yes
12722             fi
12723           else
12724             result=$wxUSE_STARTUP_TIPS
12725           fi
12726
12727           { echo "$as_me:$LINENO: result: $result" >&5
12728 echo "${ECHO_T}$result" >&6; }
12729
12730
12731           enablestring=
12732           defaultval=$wxUSE_ALL_FEATURES
12733           if test -z "$defaultval"; then
12734               if test x"$enablestring" = xdisable; then
12735                   defaultval=yes
12736               else
12737                   defaultval=no
12738               fi
12739           fi
12740
12741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12742 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12743           # Check whether --enable-progressdlg was given.
12744 if test "${enable_progressdlg+set}" = set; then
12745   enableval=$enable_progressdlg;
12746                           if test "$enableval" = yes; then
12747                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12748                           else
12749                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12750                           fi
12751
12752 else
12753
12754                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12755
12756 fi
12757
12758
12759           eval "$wx_cv_use_progressdlg"
12760
12761           if test x"$enablestring" = xdisable; then
12762             if test $wxUSE_PROGRESSDLG = yes; then
12763               result=no
12764             else
12765               result=yes
12766             fi
12767           else
12768             result=$wxUSE_PROGRESSDLG
12769           fi
12770
12771           { echo "$as_me:$LINENO: result: $result" >&5
12772 echo "${ECHO_T}$result" >&6; }
12773
12774
12775           enablestring=
12776           defaultval=$wxUSE_ALL_FEATURES
12777           if test -z "$defaultval"; then
12778               if test x"$enablestring" = xdisable; then
12779                   defaultval=yes
12780               else
12781                   defaultval=no
12782               fi
12783           fi
12784
12785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12786 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12787           # Check whether --enable-wizarddlg was given.
12788 if test "${enable_wizarddlg+set}" = set; then
12789   enableval=$enable_wizarddlg;
12790                           if test "$enableval" = yes; then
12791                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12792                           else
12793                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12794                           fi
12795
12796 else
12797
12798                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12799
12800 fi
12801
12802
12803           eval "$wx_cv_use_wizarddlg"
12804
12805           if test x"$enablestring" = xdisable; then
12806             if test $wxUSE_WIZARDDLG = yes; then
12807               result=no
12808             else
12809               result=yes
12810             fi
12811           else
12812             result=$wxUSE_WIZARDDLG
12813           fi
12814
12815           { echo "$as_me:$LINENO: result: $result" >&5
12816 echo "${ECHO_T}$result" >&6; }
12817
12818
12819
12820
12821           enablestring=
12822           defaultval=$wxUSE_ALL_FEATURES
12823           if test -z "$defaultval"; then
12824               if test x"$enablestring" = xdisable; then
12825                   defaultval=yes
12826               else
12827                   defaultval=no
12828               fi
12829           fi
12830
12831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12832 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12833           # Check whether --enable-menus was given.
12834 if test "${enable_menus+set}" = set; then
12835   enableval=$enable_menus;
12836                           if test "$enableval" = yes; then
12837                             wx_cv_use_menus='wxUSE_MENUS=yes'
12838                           else
12839                             wx_cv_use_menus='wxUSE_MENUS=no'
12840                           fi
12841
12842 else
12843
12844                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12845
12846 fi
12847
12848
12849           eval "$wx_cv_use_menus"
12850
12851           if test x"$enablestring" = xdisable; then
12852             if test $wxUSE_MENUS = yes; then
12853               result=no
12854             else
12855               result=yes
12856             fi
12857           else
12858             result=$wxUSE_MENUS
12859           fi
12860
12861           { echo "$as_me:$LINENO: result: $result" >&5
12862 echo "${ECHO_T}$result" >&6; }
12863
12864
12865           enablestring=
12866           defaultval=$wxUSE_ALL_FEATURES
12867           if test -z "$defaultval"; then
12868               if test x"$enablestring" = xdisable; then
12869                   defaultval=yes
12870               else
12871                   defaultval=no
12872               fi
12873           fi
12874
12875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12876 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12877           # Check whether --enable-miniframe was given.
12878 if test "${enable_miniframe+set}" = set; then
12879   enableval=$enable_miniframe;
12880                           if test "$enableval" = yes; then
12881                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12882                           else
12883                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12884                           fi
12885
12886 else
12887
12888                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12889
12890 fi
12891
12892
12893           eval "$wx_cv_use_miniframe"
12894
12895           if test x"$enablestring" = xdisable; then
12896             if test $wxUSE_MINIFRAME = yes; then
12897               result=no
12898             else
12899               result=yes
12900             fi
12901           else
12902             result=$wxUSE_MINIFRAME
12903           fi
12904
12905           { echo "$as_me:$LINENO: result: $result" >&5
12906 echo "${ECHO_T}$result" >&6; }
12907
12908
12909           enablestring=
12910           defaultval=$wxUSE_ALL_FEATURES
12911           if test -z "$defaultval"; then
12912               if test x"$enablestring" = xdisable; then
12913                   defaultval=yes
12914               else
12915                   defaultval=no
12916               fi
12917           fi
12918
12919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12920 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12921           # Check whether --enable-tooltips was given.
12922 if test "${enable_tooltips+set}" = set; then
12923   enableval=$enable_tooltips;
12924                           if test "$enableval" = yes; then
12925                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12926                           else
12927                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12928                           fi
12929
12930 else
12931
12932                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12933
12934 fi
12935
12936
12937           eval "$wx_cv_use_tooltips"
12938
12939           if test x"$enablestring" = xdisable; then
12940             if test $wxUSE_TOOLTIPS = yes; then
12941               result=no
12942             else
12943               result=yes
12944             fi
12945           else
12946             result=$wxUSE_TOOLTIPS
12947           fi
12948
12949           { echo "$as_me:$LINENO: result: $result" >&5
12950 echo "${ECHO_T}$result" >&6; }
12951
12952
12953           enablestring=
12954           defaultval=$wxUSE_ALL_FEATURES
12955           if test -z "$defaultval"; then
12956               if test x"$enablestring" = xdisable; then
12957                   defaultval=yes
12958               else
12959                   defaultval=no
12960               fi
12961           fi
12962
12963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12964 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12965           # Check whether --enable-splines was given.
12966 if test "${enable_splines+set}" = set; then
12967   enableval=$enable_splines;
12968                           if test "$enableval" = yes; then
12969                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12970                           else
12971                             wx_cv_use_splines='wxUSE_SPLINES=no'
12972                           fi
12973
12974 else
12975
12976                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12977
12978 fi
12979
12980
12981           eval "$wx_cv_use_splines"
12982
12983           if test x"$enablestring" = xdisable; then
12984             if test $wxUSE_SPLINES = yes; then
12985               result=no
12986             else
12987               result=yes
12988             fi
12989           else
12990             result=$wxUSE_SPLINES
12991           fi
12992
12993           { echo "$as_me:$LINENO: result: $result" >&5
12994 echo "${ECHO_T}$result" >&6; }
12995
12996
12997           enablestring=
12998           defaultval=$wxUSE_ALL_FEATURES
12999           if test -z "$defaultval"; then
13000               if test x"$enablestring" = xdisable; then
13001                   defaultval=yes
13002               else
13003                   defaultval=no
13004               fi
13005           fi
13006
13007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13008 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13009           # Check whether --enable-mousewheel was given.
13010 if test "${enable_mousewheel+set}" = set; then
13011   enableval=$enable_mousewheel;
13012                           if test "$enableval" = yes; then
13013                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13014                           else
13015                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13016                           fi
13017
13018 else
13019
13020                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13021
13022 fi
13023
13024
13025           eval "$wx_cv_use_mousewheel"
13026
13027           if test x"$enablestring" = xdisable; then
13028             if test $wxUSE_MOUSEWHEEL = yes; then
13029               result=no
13030             else
13031               result=yes
13032             fi
13033           else
13034             result=$wxUSE_MOUSEWHEEL
13035           fi
13036
13037           { echo "$as_me:$LINENO: result: $result" >&5
13038 echo "${ECHO_T}$result" >&6; }
13039
13040
13041           enablestring=
13042           defaultval=$wxUSE_ALL_FEATURES
13043           if test -z "$defaultval"; then
13044               if test x"$enablestring" = xdisable; then
13045                   defaultval=yes
13046               else
13047                   defaultval=no
13048               fi
13049           fi
13050
13051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13052 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13053           # Check whether --enable-validators was given.
13054 if test "${enable_validators+set}" = set; then
13055   enableval=$enable_validators;
13056                           if test "$enableval" = yes; then
13057                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13058                           else
13059                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13060                           fi
13061
13062 else
13063
13064                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13065
13066 fi
13067
13068
13069           eval "$wx_cv_use_validators"
13070
13071           if test x"$enablestring" = xdisable; then
13072             if test $wxUSE_VALIDATORS = yes; then
13073               result=no
13074             else
13075               result=yes
13076             fi
13077           else
13078             result=$wxUSE_VALIDATORS
13079           fi
13080
13081           { echo "$as_me:$LINENO: result: $result" >&5
13082 echo "${ECHO_T}$result" >&6; }
13083
13084
13085           enablestring=
13086           defaultval=$wxUSE_ALL_FEATURES
13087           if test -z "$defaultval"; then
13088               if test x"$enablestring" = xdisable; then
13089                   defaultval=yes
13090               else
13091                   defaultval=no
13092               fi
13093           fi
13094
13095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13096 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13097           # Check whether --enable-busyinfo was given.
13098 if test "${enable_busyinfo+set}" = set; then
13099   enableval=$enable_busyinfo;
13100                           if test "$enableval" = yes; then
13101                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13102                           else
13103                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13104                           fi
13105
13106 else
13107
13108                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13109
13110 fi
13111
13112
13113           eval "$wx_cv_use_busyinfo"
13114
13115           if test x"$enablestring" = xdisable; then
13116             if test $wxUSE_BUSYINFO = yes; then
13117               result=no
13118             else
13119               result=yes
13120             fi
13121           else
13122             result=$wxUSE_BUSYINFO
13123           fi
13124
13125           { echo "$as_me:$LINENO: result: $result" >&5
13126 echo "${ECHO_T}$result" >&6; }
13127
13128
13129           enablestring=
13130           defaultval=$wxUSE_ALL_FEATURES
13131           if test -z "$defaultval"; then
13132               if test x"$enablestring" = xdisable; then
13133                   defaultval=yes
13134               else
13135                   defaultval=no
13136               fi
13137           fi
13138
13139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13140 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13141           # Check whether --enable-joystick was given.
13142 if test "${enable_joystick+set}" = set; then
13143   enableval=$enable_joystick;
13144                           if test "$enableval" = yes; then
13145                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13146                           else
13147                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13148                           fi
13149
13150 else
13151
13152                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13153
13154 fi
13155
13156
13157           eval "$wx_cv_use_joystick"
13158
13159           if test x"$enablestring" = xdisable; then
13160             if test $wxUSE_JOYSTICK = yes; then
13161               result=no
13162             else
13163               result=yes
13164             fi
13165           else
13166             result=$wxUSE_JOYSTICK
13167           fi
13168
13169           { echo "$as_me:$LINENO: result: $result" >&5
13170 echo "${ECHO_T}$result" >&6; }
13171
13172
13173           enablestring=
13174           defaultval=$wxUSE_ALL_FEATURES
13175           if test -z "$defaultval"; then
13176               if test x"$enablestring" = xdisable; then
13177                   defaultval=yes
13178               else
13179                   defaultval=no
13180               fi
13181           fi
13182
13183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13184 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13185           # Check whether --enable-metafile was given.
13186 if test "${enable_metafile+set}" = set; then
13187   enableval=$enable_metafile;
13188                           if test "$enableval" = yes; then
13189                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13190                           else
13191                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13192                           fi
13193
13194 else
13195
13196                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13197
13198 fi
13199
13200
13201           eval "$wx_cv_use_metafile"
13202
13203           if test x"$enablestring" = xdisable; then
13204             if test $wxUSE_METAFILE = yes; then
13205               result=no
13206             else
13207               result=yes
13208             fi
13209           else
13210             result=$wxUSE_METAFILE
13211           fi
13212
13213           { echo "$as_me:$LINENO: result: $result" >&5
13214 echo "${ECHO_T}$result" >&6; }
13215
13216
13217           enablestring=
13218           defaultval=$wxUSE_ALL_FEATURES
13219           if test -z "$defaultval"; then
13220               if test x"$enablestring" = xdisable; then
13221                   defaultval=yes
13222               else
13223                   defaultval=no
13224               fi
13225           fi
13226
13227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13228 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13229           # Check whether --enable-dragimage was given.
13230 if test "${enable_dragimage+set}" = set; then
13231   enableval=$enable_dragimage;
13232                           if test "$enableval" = yes; then
13233                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13234                           else
13235                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13236                           fi
13237
13238 else
13239
13240                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13241
13242 fi
13243
13244
13245           eval "$wx_cv_use_dragimage"
13246
13247           if test x"$enablestring" = xdisable; then
13248             if test $wxUSE_DRAGIMAGE = yes; then
13249               result=no
13250             else
13251               result=yes
13252             fi
13253           else
13254             result=$wxUSE_DRAGIMAGE
13255           fi
13256
13257           { echo "$as_me:$LINENO: result: $result" >&5
13258 echo "${ECHO_T}$result" >&6; }
13259
13260
13261           enablestring=
13262           defaultval=$wxUSE_ALL_FEATURES
13263           if test -z "$defaultval"; then
13264               if test x"$enablestring" = xdisable; then
13265                   defaultval=yes
13266               else
13267                   defaultval=no
13268               fi
13269           fi
13270
13271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13272 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13273           # Check whether --enable-accessibility was given.
13274 if test "${enable_accessibility+set}" = set; then
13275   enableval=$enable_accessibility;
13276                           if test "$enableval" = yes; then
13277                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13278                           else
13279                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13280                           fi
13281
13282 else
13283
13284                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13285
13286 fi
13287
13288
13289           eval "$wx_cv_use_accessibility"
13290
13291           if test x"$enablestring" = xdisable; then
13292             if test $wxUSE_ACCESSIBILITY = yes; then
13293               result=no
13294             else
13295               result=yes
13296             fi
13297           else
13298             result=$wxUSE_ACCESSIBILITY
13299           fi
13300
13301           { echo "$as_me:$LINENO: result: $result" >&5
13302 echo "${ECHO_T}$result" >&6; }
13303
13304
13305
13306
13307           enablestring=
13308           defaultval=$wxUSE_ALL_FEATURES
13309           if test -z "$defaultval"; then
13310               if test x"$enablestring" = xdisable; then
13311                   defaultval=yes
13312               else
13313                   defaultval=no
13314               fi
13315           fi
13316
13317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13318 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13319           # Check whether --enable-palette was given.
13320 if test "${enable_palette+set}" = set; then
13321   enableval=$enable_palette;
13322                           if test "$enableval" = yes; then
13323                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13324                           else
13325                             wx_cv_use_palette='wxUSE_PALETTE=no'
13326                           fi
13327
13328 else
13329
13330                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13331
13332 fi
13333
13334
13335           eval "$wx_cv_use_palette"
13336
13337           if test x"$enablestring" = xdisable; then
13338             if test $wxUSE_PALETTE = yes; then
13339               result=no
13340             else
13341               result=yes
13342             fi
13343           else
13344             result=$wxUSE_PALETTE
13345           fi
13346
13347           { echo "$as_me:$LINENO: result: $result" >&5
13348 echo "${ECHO_T}$result" >&6; }
13349
13350
13351           enablestring=
13352           defaultval=$wxUSE_ALL_FEATURES
13353           if test -z "$defaultval"; then
13354               if test x"$enablestring" = xdisable; then
13355                   defaultval=yes
13356               else
13357                   defaultval=no
13358               fi
13359           fi
13360
13361           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13362 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13363           # Check whether --enable-image was given.
13364 if test "${enable_image+set}" = set; then
13365   enableval=$enable_image;
13366                           if test "$enableval" = yes; then
13367                             wx_cv_use_image='wxUSE_IMAGE=yes'
13368                           else
13369                             wx_cv_use_image='wxUSE_IMAGE=no'
13370                           fi
13371
13372 else
13373
13374                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13375
13376 fi
13377
13378
13379           eval "$wx_cv_use_image"
13380
13381           if test x"$enablestring" = xdisable; then
13382             if test $wxUSE_IMAGE = yes; then
13383               result=no
13384             else
13385               result=yes
13386             fi
13387           else
13388             result=$wxUSE_IMAGE
13389           fi
13390
13391           { echo "$as_me:$LINENO: result: $result" >&5
13392 echo "${ECHO_T}$result" >&6; }
13393
13394
13395           enablestring=
13396           defaultval=$wxUSE_ALL_FEATURES
13397           if test -z "$defaultval"; then
13398               if test x"$enablestring" = xdisable; then
13399                   defaultval=yes
13400               else
13401                   defaultval=no
13402               fi
13403           fi
13404
13405           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13406 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13407           # Check whether --enable-gif was given.
13408 if test "${enable_gif+set}" = set; then
13409   enableval=$enable_gif;
13410                           if test "$enableval" = yes; then
13411                             wx_cv_use_gif='wxUSE_GIF=yes'
13412                           else
13413                             wx_cv_use_gif='wxUSE_GIF=no'
13414                           fi
13415
13416 else
13417
13418                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13419
13420 fi
13421
13422
13423           eval "$wx_cv_use_gif"
13424
13425           if test x"$enablestring" = xdisable; then
13426             if test $wxUSE_GIF = yes; then
13427               result=no
13428             else
13429               result=yes
13430             fi
13431           else
13432             result=$wxUSE_GIF
13433           fi
13434
13435           { echo "$as_me:$LINENO: result: $result" >&5
13436 echo "${ECHO_T}$result" >&6; }
13437
13438
13439           enablestring=
13440           defaultval=$wxUSE_ALL_FEATURES
13441           if test -z "$defaultval"; then
13442               if test x"$enablestring" = xdisable; then
13443                   defaultval=yes
13444               else
13445                   defaultval=no
13446               fi
13447           fi
13448
13449           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13450 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13451           # Check whether --enable-pcx was given.
13452 if test "${enable_pcx+set}" = set; then
13453   enableval=$enable_pcx;
13454                           if test "$enableval" = yes; then
13455                             wx_cv_use_pcx='wxUSE_PCX=yes'
13456                           else
13457                             wx_cv_use_pcx='wxUSE_PCX=no'
13458                           fi
13459
13460 else
13461
13462                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13463
13464 fi
13465
13466
13467           eval "$wx_cv_use_pcx"
13468
13469           if test x"$enablestring" = xdisable; then
13470             if test $wxUSE_PCX = yes; then
13471               result=no
13472             else
13473               result=yes
13474             fi
13475           else
13476             result=$wxUSE_PCX
13477           fi
13478
13479           { echo "$as_me:$LINENO: result: $result" >&5
13480 echo "${ECHO_T}$result" >&6; }
13481
13482
13483           enablestring=
13484           defaultval=$wxUSE_ALL_FEATURES
13485           if test -z "$defaultval"; then
13486               if test x"$enablestring" = xdisable; then
13487                   defaultval=yes
13488               else
13489                   defaultval=no
13490               fi
13491           fi
13492
13493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13494 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13495           # Check whether --enable-tga was given.
13496 if test "${enable_tga+set}" = set; then
13497   enableval=$enable_tga;
13498                           if test "$enableval" = yes; then
13499                             wx_cv_use_tga='wxUSE_TGA=yes'
13500                           else
13501                             wx_cv_use_tga='wxUSE_TGA=no'
13502                           fi
13503
13504 else
13505
13506                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13507
13508 fi
13509
13510
13511           eval "$wx_cv_use_tga"
13512
13513           if test x"$enablestring" = xdisable; then
13514             if test $wxUSE_TGA = yes; then
13515               result=no
13516             else
13517               result=yes
13518             fi
13519           else
13520             result=$wxUSE_TGA
13521           fi
13522
13523           { echo "$as_me:$LINENO: result: $result" >&5
13524 echo "${ECHO_T}$result" >&6; }
13525
13526
13527           enablestring=
13528           defaultval=$wxUSE_ALL_FEATURES
13529           if test -z "$defaultval"; then
13530               if test x"$enablestring" = xdisable; then
13531                   defaultval=yes
13532               else
13533                   defaultval=no
13534               fi
13535           fi
13536
13537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13538 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13539           # Check whether --enable-iff was given.
13540 if test "${enable_iff+set}" = set; then
13541   enableval=$enable_iff;
13542                           if test "$enableval" = yes; then
13543                             wx_cv_use_iff='wxUSE_IFF=yes'
13544                           else
13545                             wx_cv_use_iff='wxUSE_IFF=no'
13546                           fi
13547
13548 else
13549
13550                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13551
13552 fi
13553
13554
13555           eval "$wx_cv_use_iff"
13556
13557           if test x"$enablestring" = xdisable; then
13558             if test $wxUSE_IFF = yes; then
13559               result=no
13560             else
13561               result=yes
13562             fi
13563           else
13564             result=$wxUSE_IFF
13565           fi
13566
13567           { echo "$as_me:$LINENO: result: $result" >&5
13568 echo "${ECHO_T}$result" >&6; }
13569
13570
13571           enablestring=
13572           defaultval=$wxUSE_ALL_FEATURES
13573           if test -z "$defaultval"; then
13574               if test x"$enablestring" = xdisable; then
13575                   defaultval=yes
13576               else
13577                   defaultval=no
13578               fi
13579           fi
13580
13581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13582 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13583           # Check whether --enable-pnm was given.
13584 if test "${enable_pnm+set}" = set; then
13585   enableval=$enable_pnm;
13586                           if test "$enableval" = yes; then
13587                             wx_cv_use_pnm='wxUSE_PNM=yes'
13588                           else
13589                             wx_cv_use_pnm='wxUSE_PNM=no'
13590                           fi
13591
13592 else
13593
13594                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13595
13596 fi
13597
13598
13599           eval "$wx_cv_use_pnm"
13600
13601           if test x"$enablestring" = xdisable; then
13602             if test $wxUSE_PNM = yes; then
13603               result=no
13604             else
13605               result=yes
13606             fi
13607           else
13608             result=$wxUSE_PNM
13609           fi
13610
13611           { echo "$as_me:$LINENO: result: $result" >&5
13612 echo "${ECHO_T}$result" >&6; }
13613
13614
13615           enablestring=
13616           defaultval=$wxUSE_ALL_FEATURES
13617           if test -z "$defaultval"; then
13618               if test x"$enablestring" = xdisable; then
13619                   defaultval=yes
13620               else
13621                   defaultval=no
13622               fi
13623           fi
13624
13625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13626 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13627           # Check whether --enable-xpm was given.
13628 if test "${enable_xpm+set}" = set; then
13629   enableval=$enable_xpm;
13630                           if test "$enableval" = yes; then
13631                             wx_cv_use_xpm='wxUSE_XPM=yes'
13632                           else
13633                             wx_cv_use_xpm='wxUSE_XPM=no'
13634                           fi
13635
13636 else
13637
13638                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13639
13640 fi
13641
13642
13643           eval "$wx_cv_use_xpm"
13644
13645           if test x"$enablestring" = xdisable; then
13646             if test $wxUSE_XPM = yes; then
13647               result=no
13648             else
13649               result=yes
13650             fi
13651           else
13652             result=$wxUSE_XPM
13653           fi
13654
13655           { echo "$as_me:$LINENO: result: $result" >&5
13656 echo "${ECHO_T}$result" >&6; }
13657
13658
13659           enablestring=
13660           defaultval=$wxUSE_ALL_FEATURES
13661           if test -z "$defaultval"; then
13662               if test x"$enablestring" = xdisable; then
13663                   defaultval=yes
13664               else
13665                   defaultval=no
13666               fi
13667           fi
13668
13669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13670 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13671           # Check whether --enable-ico_cur was given.
13672 if test "${enable_ico_cur+set}" = set; then
13673   enableval=$enable_ico_cur;
13674                           if test "$enableval" = yes; then
13675                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13676                           else
13677                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13678                           fi
13679
13680 else
13681
13682                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13683
13684 fi
13685
13686
13687           eval "$wx_cv_use_ico_cur"
13688
13689           if test x"$enablestring" = xdisable; then
13690             if test $wxUSE_ICO_CUR = yes; then
13691               result=no
13692             else
13693               result=yes
13694             fi
13695           else
13696             result=$wxUSE_ICO_CUR
13697           fi
13698
13699           { echo "$as_me:$LINENO: result: $result" >&5
13700 echo "${ECHO_T}$result" >&6; }
13701
13702
13703
13704
13705           enablestring=
13706           defaultval=$wxUSE_ALL_FEATURES
13707           if test -z "$defaultval"; then
13708               if test x"$enablestring" = xdisable; then
13709                   defaultval=yes
13710               else
13711                   defaultval=no
13712               fi
13713           fi
13714
13715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13716 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13717           # Check whether --enable-dccache was given.
13718 if test "${enable_dccache+set}" = set; then
13719   enableval=$enable_dccache;
13720                           if test "$enableval" = yes; then
13721                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13722                           else
13723                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13724                           fi
13725
13726 else
13727
13728                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13729
13730 fi
13731
13732
13733           eval "$wx_cv_use_dccache"
13734
13735           if test x"$enablestring" = xdisable; then
13736             if test $wxUSE_DC_CACHEING = yes; then
13737               result=no
13738             else
13739               result=yes
13740             fi
13741           else
13742             result=$wxUSE_DC_CACHEING
13743           fi
13744
13745           { echo "$as_me:$LINENO: result: $result" >&5
13746 echo "${ECHO_T}$result" >&6; }
13747
13748
13749           enablestring=
13750           defaultval=$wxUSE_ALL_FEATURES
13751           if test -z "$defaultval"; then
13752               if test x"$enablestring" = xdisable; then
13753                   defaultval=yes
13754               else
13755                   defaultval=no
13756               fi
13757           fi
13758
13759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13760 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13761           # Check whether --enable-ps-in-msw was given.
13762 if test "${enable_ps_in_msw+set}" = set; then
13763   enableval=$enable_ps_in_msw;
13764                           if test "$enableval" = yes; then
13765                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13766                           else
13767                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13768                           fi
13769
13770 else
13771
13772                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13773
13774 fi
13775
13776
13777           eval "$wx_cv_use_ps_in_msw"
13778
13779           if test x"$enablestring" = xdisable; then
13780             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13781               result=no
13782             else
13783               result=yes
13784             fi
13785           else
13786             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13787           fi
13788
13789           { echo "$as_me:$LINENO: result: $result" >&5
13790 echo "${ECHO_T}$result" >&6; }
13791
13792
13793           enablestring=
13794           defaultval=$wxUSE_ALL_FEATURES
13795           if test -z "$defaultval"; then
13796               if test x"$enablestring" = xdisable; then
13797                   defaultval=yes
13798               else
13799                   defaultval=no
13800               fi
13801           fi
13802
13803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13804 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13805           # Check whether --enable-ownerdrawn was given.
13806 if test "${enable_ownerdrawn+set}" = set; then
13807   enableval=$enable_ownerdrawn;
13808                           if test "$enableval" = yes; then
13809                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13810                           else
13811                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13812                           fi
13813
13814 else
13815
13816                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13817
13818 fi
13819
13820
13821           eval "$wx_cv_use_ownerdrawn"
13822
13823           if test x"$enablestring" = xdisable; then
13824             if test $wxUSE_OWNER_DRAWN = yes; then
13825               result=no
13826             else
13827               result=yes
13828             fi
13829           else
13830             result=$wxUSE_OWNER_DRAWN
13831           fi
13832
13833           { echo "$as_me:$LINENO: result: $result" >&5
13834 echo "${ECHO_T}$result" >&6; }
13835
13836
13837           enablestring=
13838           defaultval=$wxUSE_ALL_FEATURES
13839           if test -z "$defaultval"; then
13840               if test x"$enablestring" = xdisable; then
13841                   defaultval=yes
13842               else
13843                   defaultval=no
13844               fi
13845           fi
13846
13847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13848 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13849           # Check whether --enable-uxtheme was given.
13850 if test "${enable_uxtheme+set}" = set; then
13851   enableval=$enable_uxtheme;
13852                           if test "$enableval" = yes; then
13853                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13854                           else
13855                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13856                           fi
13857
13858 else
13859
13860                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13861
13862 fi
13863
13864
13865           eval "$wx_cv_use_uxtheme"
13866
13867           if test x"$enablestring" = xdisable; then
13868             if test $wxUSE_UXTHEME = yes; then
13869               result=no
13870             else
13871               result=yes
13872             fi
13873           else
13874             result=$wxUSE_UXTHEME
13875           fi
13876
13877           { echo "$as_me:$LINENO: result: $result" >&5
13878 echo "${ECHO_T}$result" >&6; }
13879
13880
13881           enablestring=
13882           defaultval=$wxUSE_ALL_FEATURES
13883           if test -z "$defaultval"; then
13884               if test x"$enablestring" = xdisable; then
13885                   defaultval=yes
13886               else
13887                   defaultval=no
13888               fi
13889           fi
13890
13891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13892 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13893           # Check whether --enable-wxdib was given.
13894 if test "${enable_wxdib+set}" = set; then
13895   enableval=$enable_wxdib;
13896                           if test "$enableval" = yes; then
13897                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13898                           else
13899                             wx_cv_use_wxdib='wxUSE_DIB=no'
13900                           fi
13901
13902 else
13903
13904                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13905
13906 fi
13907
13908
13909           eval "$wx_cv_use_wxdib"
13910
13911           if test x"$enablestring" = xdisable; then
13912             if test $wxUSE_DIB = yes; then
13913               result=no
13914             else
13915               result=yes
13916             fi
13917           else
13918             result=$wxUSE_DIB
13919           fi
13920
13921           { echo "$as_me:$LINENO: result: $result" >&5
13922 echo "${ECHO_T}$result" >&6; }
13923
13924
13925 if test "$wxUSE_MSW" != 1; then
13926     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13927 fi
13928
13929
13930           enablestring=
13931           defaultval=$wxUSE_ALL_FEATURES
13932           if test -z "$defaultval"; then
13933               if test x"$enablestring" = xdisable; then
13934                   defaultval=yes
13935               else
13936                   defaultval=no
13937               fi
13938           fi
13939
13940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13941 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13942           # Check whether --enable-autoidman was given.
13943 if test "${enable_autoidman+set}" = set; then
13944   enableval=$enable_autoidman;
13945                           if test "$enableval" = yes; then
13946                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13947                           else
13948                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13949                           fi
13950
13951 else
13952
13953                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13954
13955 fi
13956
13957
13958           eval "$wx_cv_use_autoidman"
13959
13960           if test x"$enablestring" = xdisable; then
13961             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13962               result=no
13963             else
13964               result=yes
13965             fi
13966           else
13967             result=$wxUSE_AUTOID_MANAGEMENT
13968           fi
13969
13970           { echo "$as_me:$LINENO: result: $result" >&5
13971 echo "${ECHO_T}$result" >&6; }
13972
13973
13974 fi
13975
13976
13977 cat >confcache <<\_ACEOF
13978 # This file is a shell script that caches the results of configure
13979 # tests run on this system so they can be shared between configure
13980 # scripts and configure runs, see configure's option --config-cache.
13981 # It is not useful on other systems.  If it contains results you don't
13982 # want to keep, you may remove or edit it.
13983 #
13984 # config.status only pays attention to the cache file if you give it
13985 # the --recheck option to rerun configure.
13986 #
13987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13989 # following values.
13990
13991 _ACEOF
13992
13993 # The following way of writing the cache mishandles newlines in values,
13994 # but we know of no workaround that is simple, portable, and efficient.
13995 # So, we kill variables containing newlines.
13996 # Ultrix sh set writes to stderr and can't be redirected directly,
13997 # and sets the high bit in the cache file unless we assign to the vars.
13998 (
13999   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14000     eval ac_val=\$$ac_var
14001     case $ac_val in #(
14002     *${as_nl}*)
14003       case $ac_var in #(
14004       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14005 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14006       esac
14007       case $ac_var in #(
14008       _ | IFS | as_nl) ;; #(
14009       *) $as_unset $ac_var ;;
14010       esac ;;
14011     esac
14012   done
14013
14014   (set) 2>&1 |
14015     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14016     *${as_nl}ac_space=\ *)
14017       # `set' does not quote correctly, so add quotes (double-quote
14018       # substitution turns \\\\ into \\, and sed turns \\ into \).
14019       sed -n \
14020         "s/'/'\\\\''/g;
14021           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14022       ;; #(
14023     *)
14024       # `set' quotes correctly as required by POSIX, so do not add quotes.
14025       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14026       ;;
14027     esac |
14028     sort
14029 ) |
14030   sed '
14031      /^ac_cv_env_/b end
14032      t clear
14033      :clear
14034      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14035      t end
14036      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14037      :end' >>confcache
14038 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14039   if test -w "$cache_file"; then
14040     test "x$cache_file" != "x/dev/null" &&
14041       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14042 echo "$as_me: updating cache $cache_file" >&6;}
14043     cat confcache >$cache_file
14044   else
14045     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14046 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14047   fi
14048 fi
14049 rm -f confcache
14050
14051 CFLAGS=${CFLAGS:=}
14052
14053
14054
14055     ac_ext=c
14056 ac_cpp='$CPP $CPPFLAGS'
14057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14060 if test -n "$ac_tool_prefix"; then
14061   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14065 if test "${ac_cv_prog_CC+set}" = set; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068   if test -n "$CC"; then
14069   ac_cv_prog_CC="$CC" # Let the user override the test.
14070 else
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14073 do
14074   IFS=$as_save_IFS
14075   test -z "$as_dir" && as_dir=.
14076   for ac_exec_ext in '' $ac_executable_extensions; do
14077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14078     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14080     break 2
14081   fi
14082 done
14083 done
14084 IFS=$as_save_IFS
14085
14086 fi
14087 fi
14088 CC=$ac_cv_prog_CC
14089 if test -n "$CC"; then
14090   { echo "$as_me:$LINENO: result: $CC" >&5
14091 echo "${ECHO_T}$CC" >&6; }
14092 else
14093   { echo "$as_me:$LINENO: result: no" >&5
14094 echo "${ECHO_T}no" >&6; }
14095 fi
14096
14097
14098 fi
14099 if test -z "$ac_cv_prog_CC"; then
14100   ac_ct_CC=$CC
14101   # Extract the first word of "gcc", so it can be a program name with args.
14102 set dummy gcc; ac_word=$2
14103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   if test -n "$ac_ct_CC"; then
14109   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14113 do
14114   IFS=$as_save_IFS
14115   test -z "$as_dir" && as_dir=.
14116   for ac_exec_ext in '' $ac_executable_extensions; do
14117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118     ac_cv_prog_ac_ct_CC="gcc"
14119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14120     break 2
14121   fi
14122 done
14123 done
14124 IFS=$as_save_IFS
14125
14126 fi
14127 fi
14128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14129 if test -n "$ac_ct_CC"; then
14130   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14131 echo "${ECHO_T}$ac_ct_CC" >&6; }
14132 else
14133   { echo "$as_me:$LINENO: result: no" >&5
14134 echo "${ECHO_T}no" >&6; }
14135 fi
14136
14137   if test "x$ac_ct_CC" = x; then
14138     CC=""
14139   else
14140     case $cross_compiling:$ac_tool_warned in
14141 yes:)
14142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14143 whose name does not start with the host triplet.  If you think this
14144 configuration is useful to you, please write to autoconf@gnu.org." >&5
14145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14146 whose name does not start with the host triplet.  If you think this
14147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14148 ac_tool_warned=yes ;;
14149 esac
14150     CC=$ac_ct_CC
14151   fi
14152 else
14153   CC="$ac_cv_prog_CC"
14154 fi
14155
14156 if test -z "$CC"; then
14157           if test -n "$ac_tool_prefix"; then
14158     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14159 set dummy ${ac_tool_prefix}cc; ac_word=$2
14160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14162 if test "${ac_cv_prog_CC+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   if test -n "$CC"; then
14166   ac_cv_prog_CC="$CC" # Let the user override the test.
14167 else
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14170 do
14171   IFS=$as_save_IFS
14172   test -z "$as_dir" && as_dir=.
14173   for ac_exec_ext in '' $ac_executable_extensions; do
14174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14175     ac_cv_prog_CC="${ac_tool_prefix}cc"
14176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14177     break 2
14178   fi
14179 done
14180 done
14181 IFS=$as_save_IFS
14182
14183 fi
14184 fi
14185 CC=$ac_cv_prog_CC
14186 if test -n "$CC"; then
14187   { echo "$as_me:$LINENO: result: $CC" >&5
14188 echo "${ECHO_T}$CC" >&6; }
14189 else
14190   { echo "$as_me:$LINENO: result: no" >&5
14191 echo "${ECHO_T}no" >&6; }
14192 fi
14193
14194
14195   fi
14196 fi
14197 if test -z "$CC"; then
14198   # Extract the first word of "cc", so it can be a program name with args.
14199 set dummy cc; ac_word=$2
14200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14202 if test "${ac_cv_prog_CC+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   if test -n "$CC"; then
14206   ac_cv_prog_CC="$CC" # Let the user override the test.
14207 else
14208   ac_prog_rejected=no
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14211 do
14212   IFS=$as_save_IFS
14213   test -z "$as_dir" && as_dir=.
14214   for ac_exec_ext in '' $ac_executable_extensions; do
14215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14216     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14217        ac_prog_rejected=yes
14218        continue
14219      fi
14220     ac_cv_prog_CC="cc"
14221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14222     break 2
14223   fi
14224 done
14225 done
14226 IFS=$as_save_IFS
14227
14228 if test $ac_prog_rejected = yes; then
14229   # We found a bogon in the path, so make sure we never use it.
14230   set dummy $ac_cv_prog_CC
14231   shift
14232   if test $# != 0; then
14233     # We chose a different compiler from the bogus one.
14234     # However, it has the same basename, so the bogon will be chosen
14235     # first if we set CC to just the basename; use the full file name.
14236     shift
14237     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14238   fi
14239 fi
14240 fi
14241 fi
14242 CC=$ac_cv_prog_CC
14243 if test -n "$CC"; then
14244   { echo "$as_me:$LINENO: result: $CC" >&5
14245 echo "${ECHO_T}$CC" >&6; }
14246 else
14247   { echo "$as_me:$LINENO: result: no" >&5
14248 echo "${ECHO_T}no" >&6; }
14249 fi
14250
14251
14252 fi
14253 if test -z "$CC"; then
14254   if test -n "$ac_tool_prefix"; then
14255   for ac_prog in cl.exe
14256   do
14257     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14261 if test "${ac_cv_prog_CC+set}" = set; then
14262   echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264   if test -n "$CC"; then
14265   ac_cv_prog_CC="$CC" # Let the user override the test.
14266 else
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270   IFS=$as_save_IFS
14271   test -z "$as_dir" && as_dir=.
14272   for ac_exec_ext in '' $ac_executable_extensions; do
14273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14274     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14276     break 2
14277   fi
14278 done
14279 done
14280 IFS=$as_save_IFS
14281
14282 fi
14283 fi
14284 CC=$ac_cv_prog_CC
14285 if test -n "$CC"; then
14286   { echo "$as_me:$LINENO: result: $CC" >&5
14287 echo "${ECHO_T}$CC" >&6; }
14288 else
14289   { echo "$as_me:$LINENO: result: no" >&5
14290 echo "${ECHO_T}no" >&6; }
14291 fi
14292
14293
14294     test -n "$CC" && break
14295   done
14296 fi
14297 if test -z "$CC"; then
14298   ac_ct_CC=$CC
14299   for ac_prog in cl.exe
14300 do
14301   # Extract the first word of "$ac_prog", so it can be a program name with args.
14302 set dummy $ac_prog; ac_word=$2
14303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   if test -n "$ac_ct_CC"; then
14309   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14310 else
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14313 do
14314   IFS=$as_save_IFS
14315   test -z "$as_dir" && as_dir=.
14316   for ac_exec_ext in '' $ac_executable_extensions; do
14317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14318     ac_cv_prog_ac_ct_CC="$ac_prog"
14319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14320     break 2
14321   fi
14322 done
14323 done
14324 IFS=$as_save_IFS
14325
14326 fi
14327 fi
14328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14329 if test -n "$ac_ct_CC"; then
14330   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14331 echo "${ECHO_T}$ac_ct_CC" >&6; }
14332 else
14333   { echo "$as_me:$LINENO: result: no" >&5
14334 echo "${ECHO_T}no" >&6; }
14335 fi
14336
14337
14338   test -n "$ac_ct_CC" && break
14339 done
14340
14341   if test "x$ac_ct_CC" = x; then
14342     CC=""
14343   else
14344     case $cross_compiling:$ac_tool_warned in
14345 yes:)
14346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14347 whose name does not start with the host triplet.  If you think this
14348 configuration is useful to you, please write to autoconf@gnu.org." >&5
14349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14350 whose name does not start with the host triplet.  If you think this
14351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14352 ac_tool_warned=yes ;;
14353 esac
14354     CC=$ac_ct_CC
14355   fi
14356 fi
14357
14358 fi
14359
14360
14361 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14362 See \`config.log' for more details." >&5
14363 echo "$as_me: error: no acceptable C compiler found in \$PATH
14364 See \`config.log' for more details." >&2;}
14365    { (exit 1); exit 1; }; }
14366
14367 # Provide some information about the compiler.
14368 echo "$as_me:$LINENO: checking for C compiler version" >&5
14369 ac_compiler=`set X $ac_compile; echo $2`
14370 { (ac_try="$ac_compiler --version >&5"
14371 case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_compiler --version >&5") 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }
14380 { (ac_try="$ac_compiler -v >&5"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_compiler -v >&5") 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }
14390 { (ac_try="$ac_compiler -V >&5"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_compiler -V >&5") 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }
14400
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h.  */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h.  */
14407
14408 int
14409 main ()
14410 {
14411
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 ac_clean_files_save=$ac_clean_files
14417 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14418 # Try to create an executable without -o first, disregard a.out.
14419 # It will help us diagnose broken compilers, and finding out an intuition
14420 # of exeext.
14421 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14422 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14423 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14424 #
14425 # List of possible output files, starting from the most likely.
14426 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14427 # only as a last resort.  b.out is created by i960 compilers.
14428 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14429 #
14430 # The IRIX 6 linker writes into existing files which may not be
14431 # executable, retaining their permissions.  Remove them first so a
14432 # subsequent execution test works.
14433 ac_rmfiles=
14434 for ac_file in $ac_files
14435 do
14436   case $ac_file in
14437     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14438     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14439   esac
14440 done
14441 rm -f $ac_rmfiles
14442
14443 if { (ac_try="$ac_link_default"
14444 case "(($ac_try" in
14445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446   *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449   (eval "$ac_link_default") 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; then
14453   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14455 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14456 # so that the user can short-circuit this test for compilers unknown to
14457 # Autoconf.
14458 for ac_file in $ac_files ''
14459 do
14460   test -f "$ac_file" || continue
14461   case $ac_file in
14462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14463         ;;
14464     [ab].out )
14465         # We found the default executable, but exeext='' is most
14466         # certainly right.
14467         break;;
14468     *.* )
14469         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14470         then :; else
14471            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14472         fi
14473         # We set ac_cv_exeext here because the later test for it is not
14474         # safe: cross compilers may not add the suffix if given an `-o'
14475         # argument, so we may need to know it at that point already.
14476         # Even if this section looks crufty: it has the advantage of
14477         # actually working.
14478         break;;
14479     * )
14480         break;;
14481   esac
14482 done
14483 test "$ac_cv_exeext" = no && ac_cv_exeext=
14484
14485 else
14486   ac_file=''
14487 fi
14488
14489 { echo "$as_me:$LINENO: result: $ac_file" >&5
14490 echo "${ECHO_T}$ac_file" >&6; }
14491 if test -z "$ac_file"; then
14492   echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14496 See \`config.log' for more details." >&5
14497 echo "$as_me: error: C compiler cannot create executables
14498 See \`config.log' for more details." >&2;}
14499    { (exit 77); exit 77; }; }
14500 fi
14501
14502 ac_exeext=$ac_cv_exeext
14503
14504 # Check that the compiler produces executables we can run.  If not, either
14505 # the compiler is broken, or we cross compile.
14506 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14509 # If not cross compiling, check that we can run a simple program.
14510 if test "$cross_compiling" != yes; then
14511   if { ac_try='./$ac_file'
14512   { (case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_try") 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521     cross_compiling=no
14522   else
14523     if test "$cross_compiling" = maybe; then
14524         cross_compiling=yes
14525     else
14526         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14527 If you meant to cross compile, use \`--host'.
14528 See \`config.log' for more details." >&5
14529 echo "$as_me: error: cannot run C compiled programs.
14530 If you meant to cross compile, use \`--host'.
14531 See \`config.log' for more details." >&2;}
14532    { (exit 1); exit 1; }; }
14533     fi
14534   fi
14535 fi
14536 { echo "$as_me:$LINENO: result: yes" >&5
14537 echo "${ECHO_T}yes" >&6; }
14538
14539 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14540 ac_clean_files=$ac_clean_files_save
14541 # Check that the compiler produces executables we can run.  If not, either
14542 # the compiler is broken, or we cross compile.
14543 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14544 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14545 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14546 echo "${ECHO_T}$cross_compiling" >&6; }
14547
14548 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14549 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14550 if { (ac_try="$ac_link"
14551 case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_link") 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; then
14560   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14561 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14562 # work properly (i.e., refer to `conftest.exe'), while it won't with
14563 # `rm'.
14564 for ac_file in conftest.exe conftest conftest.*; do
14565   test -f "$ac_file" || continue
14566   case $ac_file in
14567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14568     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14569           break;;
14570     * ) break;;
14571   esac
14572 done
14573 else
14574   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14575 See \`config.log' for more details." >&5
14576 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14577 See \`config.log' for more details." >&2;}
14578    { (exit 1); exit 1; }; }
14579 fi
14580
14581 rm -f conftest$ac_cv_exeext
14582 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14583 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14584
14585 rm -f conftest.$ac_ext
14586 EXEEXT=$ac_cv_exeext
14587 ac_exeext=$EXEEXT
14588 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14589 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14590 if test "${ac_cv_objext+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599
14600 int
14601 main ()
14602 {
14603
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.o conftest.obj
14609 if { (ac_try="$ac_compile"
14610 case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_compile") 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; then
14619   for ac_file in conftest.o conftest.obj conftest.*; do
14620   test -f "$ac_file" || continue;
14621   case $ac_file in
14622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14623     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14624        break;;
14625   esac
14626 done
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14632 See \`config.log' for more details." >&5
14633 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14634 See \`config.log' for more details." >&2;}
14635    { (exit 1); exit 1; }; }
14636 fi
14637
14638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14639 fi
14640 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14641 echo "${ECHO_T}$ac_cv_objext" >&6; }
14642 OBJEXT=$ac_cv_objext
14643 ac_objext=$OBJEXT
14644 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14645 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14646 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649   cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655
14656 int
14657 main ()
14658 {
14659 #ifndef __GNUC__
14660        choke me
14661 #endif
14662
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_compile") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && {
14681          test -z "$ac_c_werror_flag" ||
14682          test ! -s conftest.err
14683        } && test -s conftest.$ac_objext; then
14684   ac_compiler_gnu=yes
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689         ac_compiler_gnu=no
14690 fi
14691
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14694
14695 fi
14696 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14697 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14698 GCC=`test $ac_compiler_gnu = yes && echo yes`
14699 ac_test_CFLAGS=${CFLAGS+set}
14700 ac_save_CFLAGS=$CFLAGS
14701 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14702 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14703 if test "${ac_cv_prog_cc_g+set}" = set; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   ac_save_c_werror_flag=$ac_c_werror_flag
14707    ac_c_werror_flag=yes
14708    ac_cv_prog_cc_g=no
14709    CFLAGS="-g"
14710    cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716
14717 int
14718 main ()
14719 {
14720
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_compile") 2>conftest.er1
14733   ac_status=$?
14734   grep -v '^ *+' conftest.er1 >conftest.err
14735   rm -f conftest.er1
14736   cat conftest.err >&5
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); } && {
14739          test -z "$ac_c_werror_flag" ||
14740          test ! -s conftest.err
14741        } && test -s conftest.$ac_objext; then
14742   ac_cv_prog_cc_g=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747         CFLAGS=""
14748       cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754
14755 int
14756 main ()
14757 {
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767   *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770   (eval "$ac_compile") 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } && {
14777          test -z "$ac_c_werror_flag" ||
14778          test ! -s conftest.err
14779        } && test -s conftest.$ac_objext; then
14780   :
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785         ac_c_werror_flag=$ac_save_c_werror_flag
14786          CFLAGS="-g"
14787          cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793
14794 int
14795 main ()
14796 {
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806   *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809   (eval "$ac_compile") 2>conftest.er1
14810   ac_status=$?
14811   grep -v '^ *+' conftest.er1 >conftest.err
14812   rm -f conftest.er1
14813   cat conftest.err >&5
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } && {
14816          test -z "$ac_c_werror_flag" ||
14817          test ! -s conftest.err
14818        } && test -s conftest.$ac_objext; then
14819   ac_cv_prog_cc_g=yes
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 fi
14832
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834    ac_c_werror_flag=$ac_save_c_werror_flag
14835 fi
14836 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14837 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14838 if test "$ac_test_CFLAGS" = set; then
14839   CFLAGS=$ac_save_CFLAGS
14840 elif test $ac_cv_prog_cc_g = yes; then
14841   if test "$GCC" = yes; then
14842     CFLAGS="-g -O2"
14843   else
14844     CFLAGS="-g"
14845   fi
14846 else
14847   if test "$GCC" = yes; then
14848     CFLAGS="-O2"
14849   else
14850     CFLAGS=
14851   fi
14852 fi
14853 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14854 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14855 if test "${ac_cv_prog_cc_c89+set}" = set; then
14856   echo $ECHO_N "(cached) $ECHO_C" >&6
14857 else
14858   ac_cv_prog_cc_c89=no
14859 ac_save_CC=$CC
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <stdarg.h>
14867 #include <stdio.h>
14868 #include <sys/types.h>
14869 #include <sys/stat.h>
14870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14871 struct buf { int x; };
14872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14873 static char *e (p, i)
14874      char **p;
14875      int i;
14876 {
14877   return p[i];
14878 }
14879 static char *f (char * (*g) (char **, int), char **p, ...)
14880 {
14881   char *s;
14882   va_list v;
14883   va_start (v,p);
14884   s = g (p, va_arg (v,int));
14885   va_end (v);
14886   return s;
14887 }
14888
14889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14890    function prototypes and stuff, but not '\xHH' hex character constants.
14891    These don't provoke an error unfortunately, instead are silently treated
14892    as 'x'.  The following induces an error, until -std is added to get
14893    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14894    array size at least.  It's necessary to write '\x00'==0 to get something
14895    that's true only with -std.  */
14896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14897
14898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14899    inside strings and character constants.  */
14900 #define FOO(x) 'x'
14901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14902
14903 int test (int i, double x);
14904 struct s1 {int (*f) (int a);};
14905 struct s2 {int (*f) (double a);};
14906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14907 int argc;
14908 char **argv;
14909 int
14910 main ()
14911 {
14912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14918         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14919 do
14920   CC="$ac_save_CC $ac_arg"
14921   rm -f conftest.$ac_objext
14922 if { (ac_try="$ac_compile"
14923 case "(($ac_try" in
14924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925   *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928   (eval "$ac_compile") 2>conftest.er1
14929   ac_status=$?
14930   grep -v '^ *+' conftest.er1 >conftest.err
14931   rm -f conftest.er1
14932   cat conftest.err >&5
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); } && {
14935          test -z "$ac_c_werror_flag" ||
14936          test ! -s conftest.err
14937        } && test -s conftest.$ac_objext; then
14938   ac_cv_prog_cc_c89=$ac_arg
14939 else
14940   echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943
14944 fi
14945
14946 rm -f core conftest.err conftest.$ac_objext
14947   test "x$ac_cv_prog_cc_c89" != "xno" && break
14948 done
14949 rm -f conftest.$ac_ext
14950 CC=$ac_save_CC
14951
14952 fi
14953 # AC_CACHE_VAL
14954 case "x$ac_cv_prog_cc_c89" in
14955   x)
14956     { echo "$as_me:$LINENO: result: none needed" >&5
14957 echo "${ECHO_T}none needed" >&6; } ;;
14958   xno)
14959     { echo "$as_me:$LINENO: result: unsupported" >&5
14960 echo "${ECHO_T}unsupported" >&6; } ;;
14961   *)
14962     CC="$CC $ac_cv_prog_cc_c89"
14963     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14964 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14965 esac
14966
14967
14968 ac_ext=c
14969 ac_cpp='$CPP $CPPFLAGS'
14970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14973
14974
14975
14976
14977     ac_ext=c
14978 ac_cpp='$CPP $CPPFLAGS'
14979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14982
14983     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14984 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14985 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14986   echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988   cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994
14995 int
14996 main ()
14997 {
14998
14999              #ifndef __INTEL_COMPILER
15000                 choke me
15001              #endif
15002
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (ac_try="$ac_compile"
15009 case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014   (eval "$ac_compile") 2>conftest.er1
15015   ac_status=$?
15016   grep -v '^ *+' conftest.er1 >conftest.err
15017   rm -f conftest.er1
15018   cat conftest.err >&5
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); } && {
15021          test -z "$ac_c_werror_flag" ||
15022          test ! -s conftest.err
15023        } && test -s conftest.$ac_objext; then
15024   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029         bakefile_cv_c_compiler___INTEL_COMPILER=no
15030
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034
15035
15036 fi
15037 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15038 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15039     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15040         :; INTELCC=yes
15041     else
15042         :;
15043     fi
15044     ac_ext=c
15045 ac_cpp='$CPP $CPPFLAGS'
15046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15049
15050
15051
15052
15053         if test "x$GCC" != "xyes"; then
15054         if test "xCC" = "xC"; then
15055             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15056 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15057 if test "${bakefile_cv_c_exto+set}" = set; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060   cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h.  */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h.  */
15066
15067 int
15068 main ()
15069 {
15070
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 rm -f conftest.$ac_objext conftest.$ac_ext.o
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077   (eval $ac_compile) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; then
15081   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15082     case $ac_file in
15083         conftest.$ac_ext.o)
15084             bakefile_cv_c_exto="-ext o"
15085             ;;
15086         *)
15087             ;;
15088     esac
15089 done
15090 else
15091   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15092 See \`config.log' for more details." >&5
15093 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15094 See \`config.log' for more details." >&2;}
15095    { (exit 1); exit 1; }; }
15096
15097 fi
15098
15099 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15100
15101 fi
15102 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15103 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15104 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15105     if test "c" = "c"; then
15106         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15107     fi
15108     if test "c" = "cxx"; then
15109         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15110     fi
15111 fi
15112
15113             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15114                 unset ac_cv_prog_cc_g
15115                 ac_test_CFLAGS=${CFLAGS+set}
15116 ac_save_CFLAGS=$CFLAGS
15117 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15119 if test "${ac_cv_prog_cc_g+set}" = set; then
15120   echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122   ac_save_c_werror_flag=$ac_c_werror_flag
15123    ac_c_werror_flag=yes
15124    ac_cv_prog_cc_g=no
15125    CFLAGS="-g"
15126    cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132
15133 int
15134 main ()
15135 {
15136
15137   ;
15138   return 0;
15139 }
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (ac_try="$ac_compile"
15143 case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_compile") 2>conftest.er1
15149   ac_status=$?
15150   grep -v '^ *+' conftest.er1 >conftest.err
15151   rm -f conftest.er1
15152   cat conftest.err >&5
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } && {
15155          test -z "$ac_c_werror_flag" ||
15156          test ! -s conftest.err
15157        } && test -s conftest.$ac_objext; then
15158   ac_cv_prog_cc_g=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163         CFLAGS=""
15164       cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h.  */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h.  */
15170
15171 int
15172 main ()
15173 {
15174
15175   ;
15176   return 0;
15177 }
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (ac_try="$ac_compile"
15181 case "(($ac_try" in
15182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183   *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186   (eval "$ac_compile") 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } && {
15193          test -z "$ac_c_werror_flag" ||
15194          test ! -s conftest.err
15195        } && test -s conftest.$ac_objext; then
15196   :
15197 else
15198   echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201         ac_c_werror_flag=$ac_save_c_werror_flag
15202          CFLAGS="-g"
15203          cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209
15210 int
15211 main ()
15212 {
15213
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (ac_try="$ac_compile"
15220 case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225   (eval "$ac_compile") 2>conftest.er1
15226   ac_status=$?
15227   grep -v '^ *+' conftest.er1 >conftest.err
15228   rm -f conftest.er1
15229   cat conftest.err >&5
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); } && {
15232          test -z "$ac_c_werror_flag" ||
15233          test ! -s conftest.err
15234        } && test -s conftest.$ac_objext; then
15235   ac_cv_prog_cc_g=yes
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240
15241 fi
15242
15243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 fi
15245
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 fi
15248
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250    ac_c_werror_flag=$ac_save_c_werror_flag
15251 fi
15252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15254 if test "$ac_test_CFLAGS" = set; then
15255   CFLAGS=$ac_save_CFLAGS
15256 elif test $ac_cv_prog_cc_g = yes; then
15257   if test "$GCC" = yes; then
15258     CFLAGS="-g -O2"
15259   else
15260     CFLAGS="-g"
15261   fi
15262 else
15263   if test "$GCC" = yes; then
15264     CFLAGS="-O2"
15265   else
15266     CFLAGS=
15267   fi
15268 fi
15269             fi
15270         fi
15271
15272                         case `uname -s` in
15273             AIX*)
15274
15275
15276     ac_ext=c
15277 ac_cpp='$CPP $CPPFLAGS'
15278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281
15282     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15283 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15284 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293
15294 int
15295 main ()
15296 {
15297
15298              #ifndef __xlC__
15299                 choke me
15300              #endif
15301
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (ac_try="$ac_compile"
15308 case "(($ac_try" in
15309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310   *) ac_try_echo=$ac_try;;
15311 esac
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313   (eval "$ac_compile") 2>conftest.er1
15314   ac_status=$?
15315   grep -v '^ *+' conftest.er1 >conftest.err
15316   rm -f conftest.er1
15317   cat conftest.err >&5
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } && {
15320          test -z "$ac_c_werror_flag" ||
15321          test ! -s conftest.err
15322        } && test -s conftest.$ac_objext; then
15323   bakefile_cv_c_compiler___xlC__=yes
15324 else
15325   echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15327
15328         bakefile_cv_c_compiler___xlC__=no
15329
15330 fi
15331
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15333
15334
15335 fi
15336 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15337 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15338     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15339         :; XLCC=yes
15340     else
15341         :;
15342     fi
15343     ac_ext=c
15344 ac_cpp='$CPP $CPPFLAGS'
15345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348
15349
15350
15351                 ;;
15352
15353             Darwin)
15354
15355
15356     ac_ext=c
15357 ac_cpp='$CPP $CPPFLAGS'
15358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15361
15362     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15363 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15364 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h.  */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h.  */
15373
15374 int
15375 main ()
15376 {
15377
15378              #ifndef __MWERKS__
15379                 choke me
15380              #endif
15381
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext
15387 if { (ac_try="$ac_compile"
15388 case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393   (eval "$ac_compile") 2>conftest.er1
15394   ac_status=$?
15395   grep -v '^ *+' conftest.er1 >conftest.err
15396   rm -f conftest.er1
15397   cat conftest.err >&5
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); } && {
15400          test -z "$ac_c_werror_flag" ||
15401          test ! -s conftest.err
15402        } && test -s conftest.$ac_objext; then
15403   bakefile_cv_c_compiler___MWERKS__=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408         bakefile_cv_c_compiler___MWERKS__=no
15409
15410 fi
15411
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413
15414
15415 fi
15416 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15417 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15418     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15419         :; MWCC=yes
15420     else
15421         :;
15422     fi
15423     ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429
15430
15431
15432
15433     ac_ext=c
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438
15439     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15440 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15441 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444   cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h.  */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h.  */
15450
15451 int
15452 main ()
15453 {
15454
15455              #ifndef __xlC__
15456                 choke me
15457              #endif
15458
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest.$ac_objext
15464 if { (ac_try="$ac_compile"
15465 case "(($ac_try" in
15466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467   *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470   (eval "$ac_compile") 2>conftest.er1
15471   ac_status=$?
15472   grep -v '^ *+' conftest.er1 >conftest.err
15473   rm -f conftest.er1
15474   cat conftest.err >&5
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); } && {
15477          test -z "$ac_c_werror_flag" ||
15478          test ! -s conftest.err
15479        } && test -s conftest.$ac_objext; then
15480   bakefile_cv_c_compiler___xlC__=yes
15481 else
15482   echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485         bakefile_cv_c_compiler___xlC__=no
15486
15487 fi
15488
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490
15491
15492 fi
15493 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15494 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15495     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15496         :; XLCC=yes
15497     else
15498         :;
15499     fi
15500     ac_ext=c
15501 ac_cpp='$CPP $CPPFLAGS'
15502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15505
15506
15507
15508                 ;;
15509
15510             IRIX*)
15511
15512
15513     ac_ext=c
15514 ac_cpp='$CPP $CPPFLAGS'
15515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15518
15519     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15520 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15521 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15522   echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524   cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h.  */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h.  */
15530
15531 int
15532 main ()
15533 {
15534
15535              #ifndef _SGI_COMPILER_VERSION
15536                 choke me
15537              #endif
15538
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_compile") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } && {
15557          test -z "$ac_c_werror_flag" ||
15558          test ! -s conftest.err
15559        } && test -s conftest.$ac_objext; then
15560   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15566
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570
15571
15572 fi
15573 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15574 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15575     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15576         :; SGICC=yes
15577     else
15578         :;
15579     fi
15580     ac_ext=c
15581 ac_cpp='$CPP $CPPFLAGS'
15582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15585
15586
15587
15588                 ;;
15589
15590             Linux*)
15591
15592
15593     ac_ext=c
15594 ac_cpp='$CPP $CPPFLAGS'
15595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15598
15599     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15600 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15601 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15602   echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604   cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h.  */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h.  */
15610
15611 int
15612 main ()
15613 {
15614
15615              #ifndef __SUNPRO_C
15616                 choke me
15617              #endif
15618
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext
15624 if { (ac_try="$ac_compile"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_compile") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } && {
15637          test -z "$ac_c_werror_flag" ||
15638          test ! -s conftest.err
15639        } && test -s conftest.$ac_objext; then
15640   bakefile_cv_c_compiler___SUNPRO_C=yes
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645         bakefile_cv_c_compiler___SUNPRO_C=no
15646
15647 fi
15648
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650
15651
15652 fi
15653 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15654 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15655     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15656         :; SUNCC=yes
15657     else
15658         :;
15659     fi
15660     ac_ext=c
15661 ac_cpp='$CPP $CPPFLAGS'
15662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15665
15666
15667
15668                 ;;
15669
15670             HP-UX*)
15671
15672
15673     ac_ext=c
15674 ac_cpp='$CPP $CPPFLAGS'
15675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15678
15679     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15680 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15681 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684   cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690
15691 int
15692 main ()
15693 {
15694
15695              #ifndef __HP_cc
15696                 choke me
15697              #endif
15698
15699   ;
15700   return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest.$ac_objext
15704 if { (ac_try="$ac_compile"
15705 case "(($ac_try" in
15706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707   *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710   (eval "$ac_compile") 2>conftest.er1
15711   ac_status=$?
15712   grep -v '^ *+' conftest.er1 >conftest.err
15713   rm -f conftest.er1
15714   cat conftest.err >&5
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); } && {
15717          test -z "$ac_c_werror_flag" ||
15718          test ! -s conftest.err
15719        } && test -s conftest.$ac_objext; then
15720   bakefile_cv_c_compiler___HP_cc=yes
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725         bakefile_cv_c_compiler___HP_cc=no
15726
15727 fi
15728
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730
15731
15732 fi
15733 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15734 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15735     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15736         :; HPCC=yes
15737     else
15738         :;
15739     fi
15740     ac_ext=c
15741 ac_cpp='$CPP $CPPFLAGS'
15742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15745
15746
15747
15748                 ;;
15749
15750             OSF1)
15751
15752
15753     ac_ext=c
15754 ac_cpp='$CPP $CPPFLAGS'
15755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15758
15759     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15760 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15761 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764   cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770
15771 int
15772 main ()
15773 {
15774
15775              #ifndef __DECC
15776                 choke me
15777              #endif
15778
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787   *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790   (eval "$ac_compile") 2>conftest.er1
15791   ac_status=$?
15792   grep -v '^ *+' conftest.er1 >conftest.err
15793   rm -f conftest.er1
15794   cat conftest.err >&5
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } && {
15797          test -z "$ac_c_werror_flag" ||
15798          test ! -s conftest.err
15799        } && test -s conftest.$ac_objext; then
15800   bakefile_cv_c_compiler___DECC=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805         bakefile_cv_c_compiler___DECC=no
15806
15807 fi
15808
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810
15811
15812 fi
15813 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15814 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15815     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15816         :; COMPAQCC=yes
15817     else
15818         :;
15819     fi
15820     ac_ext=c
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15825
15826
15827
15828                 ;;
15829
15830             SunOS)
15831
15832
15833     ac_ext=c
15834 ac_cpp='$CPP $CPPFLAGS'
15835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15838
15839     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15840 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15841 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850
15851 int
15852 main ()
15853 {
15854
15855              #ifndef __SUNPRO_C
15856                 choke me
15857              #endif
15858
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_compile") 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } && {
15877          test -z "$ac_c_werror_flag" ||
15878          test ! -s conftest.err
15879        } && test -s conftest.$ac_objext; then
15880   bakefile_cv_c_compiler___SUNPRO_C=yes
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885         bakefile_cv_c_compiler___SUNPRO_C=no
15886
15887 fi
15888
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890
15891
15892 fi
15893 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15894 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15895     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15896         :; SUNCC=yes
15897     else
15898         :;
15899     fi
15900     ac_ext=c
15901 ac_cpp='$CPP $CPPFLAGS'
15902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15905
15906
15907
15908                 ;;
15909         esac
15910     fi
15911
15912
15913
15914 ac_ext=c
15915 ac_cpp='$CPP $CPPFLAGS'
15916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15919 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15921 # On Suns, sometimes $CPP names a directory.
15922 if test -n "$CPP" && test -d "$CPP"; then
15923   CPP=
15924 fi
15925 if test -z "$CPP"; then
15926   if test "${ac_cv_prog_CPP+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929       # Double quotes because CPP needs to be expanded
15930     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15931     do
15932       ac_preproc_ok=false
15933 for ac_c_preproc_warn_flag in '' yes
15934 do
15935   # Use a header file that comes with gcc, so configuring glibc
15936   # with a fresh cross-compiler works.
15937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15938   # <limits.h> exists even on freestanding compilers.
15939   # On the NeXT, cc -E runs the code through the compiler's parser,
15940   # not just through cpp. "Syntax error" is here to catch this case.
15941   cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947 #ifdef __STDC__
15948 # include <limits.h>
15949 #else
15950 # include <assert.h>
15951 #endif
15952                      Syntax error
15953 _ACEOF
15954 if { (ac_try="$ac_cpp conftest.$ac_ext"
15955 case "(($ac_try" in
15956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957   *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15961   ac_status=$?
15962   grep -v '^ *+' conftest.er1 >conftest.err
15963   rm -f conftest.er1
15964   cat conftest.err >&5
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } >/dev/null && {
15967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15968          test ! -s conftest.err
15969        }; then
15970   :
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975   # Broken: fails on valid input.
15976 continue
15977 fi
15978
15979 rm -f conftest.err conftest.$ac_ext
15980
15981   # OK, works on sane cases.  Now check whether nonexistent headers
15982   # can be detected and how.
15983   cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989 #include <ac_nonexistent.h>
15990 _ACEOF
15991 if { (ac_try="$ac_cpp conftest.$ac_ext"
15992 case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998   ac_status=$?
15999   grep -v '^ *+' conftest.er1 >conftest.err
16000   rm -f conftest.er1
16001   cat conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } >/dev/null && {
16004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16005          test ! -s conftest.err
16006        }; then
16007   # Broken: success on invalid input.
16008 continue
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013   # Passes both tests.
16014 ac_preproc_ok=:
16015 break
16016 fi
16017
16018 rm -f conftest.err conftest.$ac_ext
16019
16020 done
16021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16022 rm -f conftest.err conftest.$ac_ext
16023 if $ac_preproc_ok; then
16024   break
16025 fi
16026
16027     done
16028     ac_cv_prog_CPP=$CPP
16029
16030 fi
16031   CPP=$ac_cv_prog_CPP
16032 else
16033   ac_cv_prog_CPP=$CPP
16034 fi
16035 { echo "$as_me:$LINENO: result: $CPP" >&5
16036 echo "${ECHO_T}$CPP" >&6; }
16037 ac_preproc_ok=false
16038 for ac_c_preproc_warn_flag in '' yes
16039 do
16040   # Use a header file that comes with gcc, so configuring glibc
16041   # with a fresh cross-compiler works.
16042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16043   # <limits.h> exists even on freestanding compilers.
16044   # On the NeXT, cc -E runs the code through the compiler's parser,
16045   # not just through cpp. "Syntax error" is here to catch this case.
16046   cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052 #ifdef __STDC__
16053 # include <limits.h>
16054 #else
16055 # include <assert.h>
16056 #endif
16057                      Syntax error
16058 _ACEOF
16059 if { (ac_try="$ac_cpp conftest.$ac_ext"
16060 case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066   ac_status=$?
16067   grep -v '^ *+' conftest.er1 >conftest.err
16068   rm -f conftest.er1
16069   cat conftest.err >&5
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } >/dev/null && {
16072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16073          test ! -s conftest.err
16074        }; then
16075   :
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080   # Broken: fails on valid input.
16081 continue
16082 fi
16083
16084 rm -f conftest.err conftest.$ac_ext
16085
16086   # OK, works on sane cases.  Now check whether nonexistent headers
16087   # can be detected and how.
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 #include <ac_nonexistent.h>
16095 _ACEOF
16096 if { (ac_try="$ac_cpp conftest.$ac_ext"
16097 case "(($ac_try" in
16098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099   *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16103   ac_status=$?
16104   grep -v '^ *+' conftest.er1 >conftest.err
16105   rm -f conftest.er1
16106   cat conftest.err >&5
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); } >/dev/null && {
16109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16110          test ! -s conftest.err
16111        }; then
16112   # Broken: success on invalid input.
16113 continue
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118   # Passes both tests.
16119 ac_preproc_ok=:
16120 break
16121 fi
16122
16123 rm -f conftest.err conftest.$ac_ext
16124
16125 done
16126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16127 rm -f conftest.err conftest.$ac_ext
16128 if $ac_preproc_ok; then
16129   :
16130 else
16131   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16132 See \`config.log' for more details." >&5
16133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16134 See \`config.log' for more details." >&2;}
16135    { (exit 1); exit 1; }; }
16136 fi
16137
16138 ac_ext=c
16139 ac_cpp='$CPP $CPPFLAGS'
16140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16143
16144
16145 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16146 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16147 if test "${ac_cv_path_GREP+set}" = set; then
16148   echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150   # Extract the first word of "grep ggrep" to use in msg output
16151 if test -z "$GREP"; then
16152 set dummy grep ggrep; ac_prog_name=$2
16153 if test "${ac_cv_path_GREP+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   ac_path_GREP_found=false
16157 # Loop through the user's path and test for each of PROGNAME-LIST
16158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16160 do
16161   IFS=$as_save_IFS
16162   test -z "$as_dir" && as_dir=.
16163   for ac_prog in grep ggrep; do
16164   for ac_exec_ext in '' $ac_executable_extensions; do
16165     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16166     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16167     # Check for GNU ac_path_GREP and select it if it is found.
16168   # Check for GNU $ac_path_GREP
16169 case `"$ac_path_GREP" --version 2>&1` in
16170 *GNU*)
16171   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16172 *)
16173   ac_count=0
16174   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16175   while :
16176   do
16177     cat "conftest.in" "conftest.in" >"conftest.tmp"
16178     mv "conftest.tmp" "conftest.in"
16179     cp "conftest.in" "conftest.nl"
16180     echo 'GREP' >> "conftest.nl"
16181     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16182     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16183     ac_count=`expr $ac_count + 1`
16184     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16185       # Best one so far, save it but keep looking for a better one
16186       ac_cv_path_GREP="$ac_path_GREP"
16187       ac_path_GREP_max=$ac_count
16188     fi
16189     # 10*(2^10) chars as input seems more than enough
16190     test $ac_count -gt 10 && break
16191   done
16192   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16193 esac
16194
16195
16196     $ac_path_GREP_found && break 3
16197   done
16198 done
16199
16200 done
16201 IFS=$as_save_IFS
16202
16203
16204 fi
16205
16206 GREP="$ac_cv_path_GREP"
16207 if test -z "$GREP"; then
16208   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16210    { (exit 1); exit 1; }; }
16211 fi
16212
16213 else
16214   ac_cv_path_GREP=$GREP
16215 fi
16216
16217
16218 fi
16219 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16220 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16221  GREP="$ac_cv_path_GREP"
16222
16223
16224 { echo "$as_me:$LINENO: checking for egrep" >&5
16225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16226 if test "${ac_cv_path_EGREP+set}" = set; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16230    then ac_cv_path_EGREP="$GREP -E"
16231    else
16232      # Extract the first word of "egrep" to use in msg output
16233 if test -z "$EGREP"; then
16234 set dummy egrep; ac_prog_name=$2
16235 if test "${ac_cv_path_EGREP+set}" = set; then
16236   echo $ECHO_N "(cached) $ECHO_C" >&6
16237 else
16238   ac_path_EGREP_found=false
16239 # Loop through the user's path and test for each of PROGNAME-LIST
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16242 do
16243   IFS=$as_save_IFS
16244   test -z "$as_dir" && as_dir=.
16245   for ac_prog in egrep; do
16246   for ac_exec_ext in '' $ac_executable_extensions; do
16247     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16248     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16249     # Check for GNU ac_path_EGREP and select it if it is found.
16250   # Check for GNU $ac_path_EGREP
16251 case `"$ac_path_EGREP" --version 2>&1` in
16252 *GNU*)
16253   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16254 *)
16255   ac_count=0
16256   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16257   while :
16258   do
16259     cat "conftest.in" "conftest.in" >"conftest.tmp"
16260     mv "conftest.tmp" "conftest.in"
16261     cp "conftest.in" "conftest.nl"
16262     echo 'EGREP' >> "conftest.nl"
16263     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16264     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16265     ac_count=`expr $ac_count + 1`
16266     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16267       # Best one so far, save it but keep looking for a better one
16268       ac_cv_path_EGREP="$ac_path_EGREP"
16269       ac_path_EGREP_max=$ac_count
16270     fi
16271     # 10*(2^10) chars as input seems more than enough
16272     test $ac_count -gt 10 && break
16273   done
16274   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16275 esac
16276
16277
16278     $ac_path_EGREP_found && break 3
16279   done
16280 done
16281
16282 done
16283 IFS=$as_save_IFS
16284
16285
16286 fi
16287
16288 EGREP="$ac_cv_path_EGREP"
16289 if test -z "$EGREP"; then
16290   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16291 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16292    { (exit 1); exit 1; }; }
16293 fi
16294
16295 else
16296   ac_cv_path_EGREP=$EGREP
16297 fi
16298
16299
16300    fi
16301 fi
16302 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16303 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16304  EGREP="$ac_cv_path_EGREP"
16305
16306
16307 if test $ac_cv_c_compiler_gnu = yes; then
16308     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16309 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16310 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313     ac_pattern="Autoconf.*'x'"
16314   cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320 #include <sgtty.h>
16321 Autoconf TIOCGETP
16322 _ACEOF
16323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16325   ac_cv_prog_gcc_traditional=yes
16326 else
16327   ac_cv_prog_gcc_traditional=no
16328 fi
16329 rm -f conftest*
16330
16331
16332   if test $ac_cv_prog_gcc_traditional = no; then
16333     cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339 #include <termio.h>
16340 Autoconf TCGETA
16341 _ACEOF
16342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16343   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16344   ac_cv_prog_gcc_traditional=yes
16345 fi
16346 rm -f conftest*
16347
16348   fi
16349 fi
16350 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16351 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16352   if test $ac_cv_prog_gcc_traditional = yes; then
16353     CC="$CC -traditional"
16354   fi
16355 fi
16356
16357
16358 CXXFLAGS=${CXXFLAGS:=}
16359
16360
16361
16362     ac_ext=cpp
16363 ac_cpp='$CXXCPP $CPPFLAGS'
16364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16367 if test -z "$CXX"; then
16368   if test -n "$CCC"; then
16369     CXX=$CCC
16370   else
16371     if test -n "$ac_tool_prefix"; then
16372   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16373   do
16374     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16378 if test "${ac_cv_prog_CXX+set}" = set; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381   if test -n "$CXX"; then
16382   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16383 else
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16385 for as_dir in $PATH
16386 do
16387   IFS=$as_save_IFS
16388   test -z "$as_dir" && as_dir=.
16389   for ac_exec_ext in '' $ac_executable_extensions; do
16390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16391     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16393     break 2
16394   fi
16395 done
16396 done
16397 IFS=$as_save_IFS
16398
16399 fi
16400 fi
16401 CXX=$ac_cv_prog_CXX
16402 if test -n "$CXX"; then
16403   { echo "$as_me:$LINENO: result: $CXX" >&5
16404 echo "${ECHO_T}$CXX" >&6; }
16405 else
16406   { echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6; }
16408 fi
16409
16410
16411     test -n "$CXX" && break
16412   done
16413 fi
16414 if test -z "$CXX"; then
16415   ac_ct_CXX=$CXX
16416   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16417 do
16418   # Extract the first word of "$ac_prog", so it can be a program name with args.
16419 set dummy $ac_prog; ac_word=$2
16420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16422 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425   if test -n "$ac_ct_CXX"; then
16426   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16427 else
16428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16429 for as_dir in $PATH
16430 do
16431   IFS=$as_save_IFS
16432   test -z "$as_dir" && as_dir=.
16433   for ac_exec_ext in '' $ac_executable_extensions; do
16434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16435     ac_cv_prog_ac_ct_CXX="$ac_prog"
16436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16437     break 2
16438   fi
16439 done
16440 done
16441 IFS=$as_save_IFS
16442
16443 fi
16444 fi
16445 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16446 if test -n "$ac_ct_CXX"; then
16447   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16448 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16449 else
16450   { echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6; }
16452 fi
16453
16454
16455   test -n "$ac_ct_CXX" && break
16456 done
16457
16458   if test "x$ac_ct_CXX" = x; then
16459     CXX="g++"
16460   else
16461     case $cross_compiling:$ac_tool_warned in
16462 yes:)
16463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16464 whose name does not start with the host triplet.  If you think this
16465 configuration is useful to you, please write to autoconf@gnu.org." >&5
16466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16467 whose name does not start with the host triplet.  If you think this
16468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16469 ac_tool_warned=yes ;;
16470 esac
16471     CXX=$ac_ct_CXX
16472   fi
16473 fi
16474
16475   fi
16476 fi
16477 # Provide some information about the compiler.
16478 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16479 ac_compiler=`set X $ac_compile; echo $2`
16480 { (ac_try="$ac_compiler --version >&5"
16481 case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_compiler --version >&5") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }
16490 { (ac_try="$ac_compiler -v >&5"
16491 case "(($ac_try" in
16492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493   *) ac_try_echo=$ac_try;;
16494 esac
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496   (eval "$ac_compiler -v >&5") 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }
16500 { (ac_try="$ac_compiler -V >&5"
16501 case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_compiler -V >&5") 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }
16510
16511 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16512 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16514   echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516   cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522
16523 int
16524 main ()
16525 {
16526 #ifndef __GNUC__
16527        choke me
16528 #endif
16529
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_compile") 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } && {
16548          test -z "$ac_cxx_werror_flag" ||
16549          test ! -s conftest.err
16550        } && test -s conftest.$ac_objext; then
16551   ac_compiler_gnu=yes
16552 else
16553   echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556         ac_compiler_gnu=no
16557 fi
16558
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16561
16562 fi
16563 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16564 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16565 GXX=`test $ac_compiler_gnu = yes && echo yes`
16566 ac_test_CXXFLAGS=${CXXFLAGS+set}
16567 ac_save_CXXFLAGS=$CXXFLAGS
16568 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16569 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16570 if test "${ac_cv_prog_cxx_g+set}" = set; then
16571   echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16574    ac_cxx_werror_flag=yes
16575    ac_cv_prog_cxx_g=no
16576    CXXFLAGS="-g"
16577    cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583
16584 int
16585 main ()
16586 {
16587
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_compile") 2>conftest.er1
16600   ac_status=$?
16601   grep -v '^ *+' conftest.er1 >conftest.err
16602   rm -f conftest.er1
16603   cat conftest.err >&5
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } && {
16606          test -z "$ac_cxx_werror_flag" ||
16607          test ! -s conftest.err
16608        } && test -s conftest.$ac_objext; then
16609   ac_cv_prog_cxx_g=yes
16610 else
16611   echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614         CXXFLAGS=""
16615       cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621
16622 int
16623 main ()
16624 {
16625
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_compile") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } && {
16644          test -z "$ac_cxx_werror_flag" ||
16645          test ! -s conftest.err
16646        } && test -s conftest.$ac_objext; then
16647   :
16648 else
16649   echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16653          CXXFLAGS="-g"
16654          cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660
16661 int
16662 main ()
16663 {
16664
16665   ;
16666   return 0;
16667 }
16668 _ACEOF
16669 rm -f conftest.$ac_objext
16670 if { (ac_try="$ac_compile"
16671 case "(($ac_try" in
16672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673   *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676   (eval "$ac_compile") 2>conftest.er1
16677   ac_status=$?
16678   grep -v '^ *+' conftest.er1 >conftest.err
16679   rm -f conftest.er1
16680   cat conftest.err >&5
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); } && {
16683          test -z "$ac_cxx_werror_flag" ||
16684          test ! -s conftest.err
16685        } && test -s conftest.$ac_objext; then
16686   ac_cv_prog_cxx_g=yes
16687 else
16688   echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691
16692 fi
16693
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 fi
16696
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 fi
16699
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16702 fi
16703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16704 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16705 if test "$ac_test_CXXFLAGS" = set; then
16706   CXXFLAGS=$ac_save_CXXFLAGS
16707 elif test $ac_cv_prog_cxx_g = yes; then
16708   if test "$GXX" = yes; then
16709     CXXFLAGS="-g -O2"
16710   else
16711     CXXFLAGS="-g"
16712   fi
16713 else
16714   if test "$GXX" = yes; then
16715     CXXFLAGS="-O2"
16716   else
16717     CXXFLAGS=
16718   fi
16719 fi
16720 ac_ext=c
16721 ac_cpp='$CPP $CPPFLAGS'
16722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16725
16726
16727
16728
16729     ac_ext=cpp
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734
16735     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16736 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16737 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746
16747 int
16748 main ()
16749 {
16750
16751              #ifndef __INTEL_COMPILER
16752                 choke me
16753              #endif
16754
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 rm -f conftest.$ac_objext
16760 if { (ac_try="$ac_compile"
16761 case "(($ac_try" in
16762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763   *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766   (eval "$ac_compile") 2>conftest.er1
16767   ac_status=$?
16768   grep -v '^ *+' conftest.er1 >conftest.err
16769   rm -f conftest.er1
16770   cat conftest.err >&5
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } && {
16773          test -z "$ac_cxx_werror_flag" ||
16774          test ! -s conftest.err
16775        } && test -s conftest.$ac_objext; then
16776   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16777 else
16778   echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16782
16783 fi
16784
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786
16787
16788 fi
16789 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16790 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16791     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16792         :; INTELCXX=yes
16793     else
16794         :;
16795     fi
16796     ac_ext=c
16797 ac_cpp='$CPP $CPPFLAGS'
16798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16801
16802
16803
16804
16805         if test "x$GCXX" != "xyes"; then
16806         if test "xCXX" = "xC"; then
16807             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16808 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16809 if test "${bakefile_cv_c_exto+set}" = set; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818
16819 int
16820 main ()
16821 {
16822
16823   ;
16824   return 0;
16825 }
16826 _ACEOF
16827 rm -f conftest.$ac_objext conftest.$ac_ext.o
16828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16829   (eval $ac_compile) 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; then
16833   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16834     case $ac_file in
16835         conftest.$ac_ext.o)
16836             bakefile_cv_c_exto="-ext o"
16837             ;;
16838         *)
16839             ;;
16840     esac
16841 done
16842 else
16843   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16844 See \`config.log' for more details." >&5
16845 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16846 See \`config.log' for more details." >&2;}
16847    { (exit 1); exit 1; }; }
16848
16849 fi
16850
16851 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16852
16853 fi
16854 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16855 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16856 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16857     if test "c" = "c"; then
16858         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16859     fi
16860     if test "c" = "cxx"; then
16861         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16862     fi
16863 fi
16864
16865             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16866                 unset ac_cv_prog_cc_g
16867                 ac_test_CFLAGS=${CFLAGS+set}
16868 ac_save_CFLAGS=$CFLAGS
16869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16871 if test "${ac_cv_prog_cc_g+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   ac_save_c_werror_flag=$ac_c_werror_flag
16875    ac_c_werror_flag=yes
16876    ac_cv_prog_cc_g=no
16877    CFLAGS="-g"
16878    cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h.  */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h.  */
16884
16885 int
16886 main ()
16887 {
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_compile") 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } && {
16907          test -z "$ac_c_werror_flag" ||
16908          test ! -s conftest.err
16909        } && test -s conftest.$ac_objext; then
16910   ac_cv_prog_cc_g=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         CFLAGS=""
16916       cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922
16923 int
16924 main ()
16925 {
16926
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_compile") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } && {
16945          test -z "$ac_c_werror_flag" ||
16946          test ! -s conftest.err
16947        } && test -s conftest.$ac_objext; then
16948   :
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953         ac_c_werror_flag=$ac_save_c_werror_flag
16954          CFLAGS="-g"
16955          cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 int
16963 main ()
16964 {
16965
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 rm -f conftest.$ac_objext
16971 if { (ac_try="$ac_compile"
16972 case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_compile") 2>conftest.er1
16978   ac_status=$?
16979   grep -v '^ *+' conftest.er1 >conftest.err
16980   rm -f conftest.er1
16981   cat conftest.err >&5
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } && {
16984          test -z "$ac_c_werror_flag" ||
16985          test ! -s conftest.err
16986        } && test -s conftest.$ac_objext; then
16987   ac_cv_prog_cc_g=yes
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992
16993 fi
16994
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 fi
16997
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999 fi
17000
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002    ac_c_werror_flag=$ac_save_c_werror_flag
17003 fi
17004 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17005 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17006 if test "$ac_test_CFLAGS" = set; then
17007   CFLAGS=$ac_save_CFLAGS
17008 elif test $ac_cv_prog_cc_g = yes; then
17009   if test "$GCC" = yes; then
17010     CFLAGS="-g -O2"
17011   else
17012     CFLAGS="-g"
17013   fi
17014 else
17015   if test "$GCC" = yes; then
17016     CFLAGS="-O2"
17017   else
17018     CFLAGS=
17019   fi
17020 fi
17021             fi
17022         fi
17023
17024                         case `uname -s` in
17025             AIX*)
17026
17027
17028     ac_ext=cpp
17029 ac_cpp='$CXXCPP $CPPFLAGS'
17030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17033
17034     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17035 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17036 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17037   echo $ECHO_N "(cached) $ECHO_C" >&6
17038 else
17039   cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045
17046 int
17047 main ()
17048 {
17049
17050              #ifndef __xlC__
17051                 choke me
17052              #endif
17053
17054   ;
17055   return 0;
17056 }
17057 _ACEOF
17058 rm -f conftest.$ac_objext
17059 if { (ac_try="$ac_compile"
17060 case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_compile") 2>conftest.er1
17066   ac_status=$?
17067   grep -v '^ *+' conftest.er1 >conftest.err
17068   rm -f conftest.er1
17069   cat conftest.err >&5
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); } && {
17072          test -z "$ac_cxx_werror_flag" ||
17073          test ! -s conftest.err
17074        } && test -s conftest.$ac_objext; then
17075   bakefile_cv_cxx_compiler___xlC__=yes
17076 else
17077   echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080         bakefile_cv_cxx_compiler___xlC__=no
17081
17082 fi
17083
17084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085
17086
17087 fi
17088 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17089 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17090     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17091         :; XLCXX=yes
17092     else
17093         :;
17094     fi
17095     ac_ext=c
17096 ac_cpp='$CPP $CPPFLAGS'
17097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17100
17101
17102
17103                 ;;
17104
17105             Darwin)
17106
17107
17108     ac_ext=cpp
17109 ac_cpp='$CXXCPP $CPPFLAGS'
17110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17113
17114     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17115 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17116 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17117   echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119   cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125
17126 int
17127 main ()
17128 {
17129
17130              #ifndef __MWERKS__
17131                 choke me
17132              #endif
17133
17134   ;
17135   return 0;
17136 }
17137 _ACEOF
17138 rm -f conftest.$ac_objext
17139 if { (ac_try="$ac_compile"
17140 case "(($ac_try" in
17141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142   *) ac_try_echo=$ac_try;;
17143 esac
17144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17145   (eval "$ac_compile") 2>conftest.er1
17146   ac_status=$?
17147   grep -v '^ *+' conftest.er1 >conftest.err
17148   rm -f conftest.er1
17149   cat conftest.err >&5
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); } && {
17152          test -z "$ac_cxx_werror_flag" ||
17153          test ! -s conftest.err
17154        } && test -s conftest.$ac_objext; then
17155   bakefile_cv_cxx_compiler___MWERKS__=yes
17156 else
17157   echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160         bakefile_cv_cxx_compiler___MWERKS__=no
17161
17162 fi
17163
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165
17166
17167 fi
17168 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17169 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17170     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17171         :; MWCXX=yes
17172     else
17173         :;
17174     fi
17175     ac_ext=c
17176 ac_cpp='$CPP $CPPFLAGS'
17177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17180
17181
17182
17183
17184
17185     ac_ext=cpp
17186 ac_cpp='$CXXCPP $CPPFLAGS'
17187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17190
17191     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17192 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17193 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17194   echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196   cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h.  */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h.  */
17202
17203 int
17204 main ()
17205 {
17206
17207              #ifndef __xlC__
17208                 choke me
17209              #endif
17210
17211   ;
17212   return 0;
17213 }
17214 _ACEOF
17215 rm -f conftest.$ac_objext
17216 if { (ac_try="$ac_compile"
17217 case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222   (eval "$ac_compile") 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } && {
17229          test -z "$ac_cxx_werror_flag" ||
17230          test ! -s conftest.err
17231        } && test -s conftest.$ac_objext; then
17232   bakefile_cv_cxx_compiler___xlC__=yes
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237         bakefile_cv_cxx_compiler___xlC__=no
17238
17239 fi
17240
17241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17242
17243
17244 fi
17245 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17246 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17247     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17248         :; XLCXX=yes
17249     else
17250         :;
17251     fi
17252     ac_ext=c
17253 ac_cpp='$CPP $CPPFLAGS'
17254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17257
17258
17259
17260                 ;;
17261
17262             IRIX*)
17263
17264
17265     ac_ext=cpp
17266 ac_cpp='$CXXCPP $CPPFLAGS'
17267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17270
17271     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17272 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17273 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282
17283 int
17284 main ()
17285 {
17286
17287              #ifndef _SGI_COMPILER_VERSION
17288                 choke me
17289              #endif
17290
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (ac_try="$ac_compile"
17297 case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_compile") 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } && {
17309          test -z "$ac_cxx_werror_flag" ||
17310          test ! -s conftest.err
17311        } && test -s conftest.$ac_objext; then
17312   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17318
17319 fi
17320
17321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17322
17323
17324 fi
17325 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17326 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17327     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17328         :; SGICXX=yes
17329     else
17330         :;
17331     fi
17332     ac_ext=c
17333 ac_cpp='$CPP $CPPFLAGS'
17334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17337
17338
17339
17340                 ;;
17341
17342             Linux*)
17343
17344
17345     ac_ext=cpp
17346 ac_cpp='$CXXCPP $CPPFLAGS'
17347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17350
17351     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17352 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17353 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17354   echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356   cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h.  */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h.  */
17362
17363 int
17364 main ()
17365 {
17366
17367              #ifndef __SUNPRO_CC
17368                 choke me
17369              #endif
17370
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest.$ac_objext
17376 if { (ac_try="$ac_compile"
17377 case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_compile") 2>conftest.er1
17383   ac_status=$?
17384   grep -v '^ *+' conftest.er1 >conftest.err
17385   rm -f conftest.er1
17386   cat conftest.err >&5
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } && {
17389          test -z "$ac_cxx_werror_flag" ||
17390          test ! -s conftest.err
17391        } && test -s conftest.$ac_objext; then
17392   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17393 else
17394   echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17398
17399 fi
17400
17401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17402
17403
17404 fi
17405 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17406 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17407     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17408         :; SUNCXX=yes
17409     else
17410         :;
17411     fi
17412     ac_ext=c
17413 ac_cpp='$CPP $CPPFLAGS'
17414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17417
17418
17419
17420                 ;;
17421
17422             HP-UX*)
17423
17424
17425     ac_ext=cpp
17426 ac_cpp='$CXXCPP $CPPFLAGS'
17427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17430
17431     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17432 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17433 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442
17443 int
17444 main ()
17445 {
17446
17447              #ifndef __HP_aCC
17448                 choke me
17449              #endif
17450
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext
17456 if { (ac_try="$ac_compile"
17457 case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462   (eval "$ac_compile") 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } && {
17469          test -z "$ac_cxx_werror_flag" ||
17470          test ! -s conftest.err
17471        } && test -s conftest.$ac_objext; then
17472   bakefile_cv_cxx_compiler___HP_aCC=yes
17473 else
17474   echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477         bakefile_cv_cxx_compiler___HP_aCC=no
17478
17479 fi
17480
17481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482
17483
17484 fi
17485 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17486 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17487     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17488         :; HPCXX=yes
17489     else
17490         :;
17491     fi
17492     ac_ext=c
17493 ac_cpp='$CPP $CPPFLAGS'
17494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17497
17498
17499
17500                 ;;
17501
17502             OSF1)
17503
17504
17505     ac_ext=cpp
17506 ac_cpp='$CXXCPP $CPPFLAGS'
17507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17510
17511     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17512 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17513 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17514   echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516   cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h.  */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h.  */
17522
17523 int
17524 main ()
17525 {
17526
17527              #ifndef __DECCXX
17528                 choke me
17529              #endif
17530
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_compile") 2>conftest.er1
17543   ac_status=$?
17544   grep -v '^ *+' conftest.er1 >conftest.err
17545   rm -f conftest.er1
17546   cat conftest.err >&5
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } && {
17549          test -z "$ac_cxx_werror_flag" ||
17550          test ! -s conftest.err
17551        } && test -s conftest.$ac_objext; then
17552   bakefile_cv_cxx_compiler___DECCXX=yes
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557         bakefile_cv_cxx_compiler___DECCXX=no
17558
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562
17563
17564 fi
17565 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17566 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17567     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17568         :; COMPAQCXX=yes
17569     else
17570         :;
17571     fi
17572     ac_ext=c
17573 ac_cpp='$CPP $CPPFLAGS'
17574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17577
17578
17579
17580                 ;;
17581
17582             SunOS)
17583
17584
17585     ac_ext=cpp
17586 ac_cpp='$CXXCPP $CPPFLAGS'
17587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17590
17591     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17592 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17593 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596   cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602
17603 int
17604 main ()
17605 {
17606
17607              #ifndef __SUNPRO_CC
17608                 choke me
17609              #endif
17610
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 rm -f conftest.$ac_objext
17616 if { (ac_try="$ac_compile"
17617 case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_compile") 2>conftest.er1
17623   ac_status=$?
17624   grep -v '^ *+' conftest.er1 >conftest.err
17625   rm -f conftest.er1
17626   cat conftest.err >&5
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } && {
17629          test -z "$ac_cxx_werror_flag" ||
17630          test ! -s conftest.err
17631        } && test -s conftest.$ac_objext; then
17632   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17638
17639 fi
17640
17641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642
17643
17644 fi
17645 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17646 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17647     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17648         :; SUNCXX=yes
17649     else
17650         :;
17651     fi
17652     ac_ext=c
17653 ac_cpp='$CPP $CPPFLAGS'
17654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17657
17658
17659
17660                 ;;
17661         esac
17662     fi
17663
17664
17665
17666 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17667     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17668 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17669    { (exit 1); exit 1; }; }
17670 fi
17671
17672 if test "x$SUNCXX" != xyes; then
17673     if test -n "$ac_tool_prefix"; then
17674   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17675 set dummy ${ac_tool_prefix}ar; ac_word=$2
17676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17678 if test "${ac_cv_prog_AR+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681   if test -n "$AR"; then
17682   ac_cv_prog_AR="$AR" # Let the user override the test.
17683 else
17684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17685 for as_dir in $PATH
17686 do
17687   IFS=$as_save_IFS
17688   test -z "$as_dir" && as_dir=.
17689   for ac_exec_ext in '' $ac_executable_extensions; do
17690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17691     ac_cv_prog_AR="${ac_tool_prefix}ar"
17692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17693     break 2
17694   fi
17695 done
17696 done
17697 IFS=$as_save_IFS
17698
17699 fi
17700 fi
17701 AR=$ac_cv_prog_AR
17702 if test -n "$AR"; then
17703   { echo "$as_me:$LINENO: result: $AR" >&5
17704 echo "${ECHO_T}$AR" >&6; }
17705 else
17706   { echo "$as_me:$LINENO: result: no" >&5
17707 echo "${ECHO_T}no" >&6; }
17708 fi
17709
17710
17711 fi
17712 if test -z "$ac_cv_prog_AR"; then
17713   ac_ct_AR=$AR
17714   # Extract the first word of "ar", so it can be a program name with args.
17715 set dummy ar; ac_word=$2
17716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17718 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17719   echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721   if test -n "$ac_ct_AR"; then
17722   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17723 else
17724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725 for as_dir in $PATH
17726 do
17727   IFS=$as_save_IFS
17728   test -z "$as_dir" && as_dir=.
17729   for ac_exec_ext in '' $ac_executable_extensions; do
17730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17731     ac_cv_prog_ac_ct_AR="ar"
17732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17733     break 2
17734   fi
17735 done
17736 done
17737 IFS=$as_save_IFS
17738
17739 fi
17740 fi
17741 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17742 if test -n "$ac_ct_AR"; then
17743   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17744 echo "${ECHO_T}$ac_ct_AR" >&6; }
17745 else
17746   { echo "$as_me:$LINENO: result: no" >&5
17747 echo "${ECHO_T}no" >&6; }
17748 fi
17749
17750   if test "x$ac_ct_AR" = x; then
17751     AR=""
17752   else
17753     case $cross_compiling:$ac_tool_warned in
17754 yes:)
17755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17756 whose name does not start with the host triplet.  If you think this
17757 configuration is useful to you, please write to autoconf@gnu.org." >&5
17758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17759 whose name does not start with the host triplet.  If you think this
17760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17761 ac_tool_warned=yes ;;
17762 esac
17763     AR=$ac_ct_AR
17764   fi
17765 else
17766   AR="$ac_cv_prog_AR"
17767 fi
17768
17769     if test "x$AR" = "x" ; then
17770         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17771 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17772    { (exit 1); exit 1; }; }
17773     fi
17774 fi
17775
17776 retest_macosx_linking=no
17777
17778 #if test "$wxUSE_MAC" = 1; then
17779     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17780                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17781             # Implicitly turn on the new --with-macosx-sdk using the default
17782             # SDK which provides the behavior this option has always had.
17783             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17784                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17785 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17786                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17787 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17788                 wxUSE_MACOSX_SDK=yes
17789             fi
17790         else
17791             # Complain to user if he specified an argument to --enable-universal_binary
17792             # and also 1) specified --with-macosx-sdk using the default (yes) or
17793             # 2) specified --with-macosx-sdk using a path or 3) specified
17794             # --without-macosx-sdk (no).
17795             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17796                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17797 See \`config.log' for more details." >&5
17798 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17799 See \`config.log' for more details." >&2;}
17800    { (exit 1); exit 1; }; }
17801             else
17802                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17803                 # special-case the empty string because the below test simply
17804                 # converts "no" to the empty string anyway.
17805                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17806                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17807 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17808             fi
17809         fi
17810                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17811         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17812         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17813         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
17814         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
17815         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17816                                                                                                                 retest_macosx_linking=yes
17817
17818                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17819 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17820         bk_use_pch=no
17821     fi
17822 #fi
17823
17824 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17825     wxUSE_MACOSX_SDK=
17826 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17827     # TODO: Search for most recent SDK and use it.
17828     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17829 fi
17830
17831
17832 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17833     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17834 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17835     if ! test -d "$wxUSE_MACOSX_SDK"; then
17836         { { echo "$as_me:$LINENO: error: not found
17837 See \`config.log' for more details." >&5
17838 echo "$as_me: error: not found
17839 See \`config.log' for more details." >&2;}
17840    { (exit 1); exit 1; }; }
17841     else
17842         { echo "$as_me:$LINENO: result: exists" >&5
17843 echo "${ECHO_T}exists" >&6; }
17844     fi
17845     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17846     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17847     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17848     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17849     retest_macosx_linking=yes
17850             fi
17851
17852 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17853     wxUSE_MACOSX_VERSION_MIN=
17854 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17855     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17856         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17857 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17858
17859         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/'`
17860
17861         # If that failed, try again with the new key
17862         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17863
17864             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/'`
17865
17866         fi
17867
17868         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17869             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17870             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17871 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17872         else
17873             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17874 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17875             wxUSE_MACOSX_VERSION_MIN=
17876         fi
17877     else
17878         wxUSE_MACOSX_VERSION_MIN=
17879     fi
17880 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
17881     if test "$wxUSE_MAC" = 1; then
17882         # otherwise configure stops on leopard for universal_binary
17883         wxUSE_MACOSX_VERSION_MIN=10.4
17884     fi
17885 fi
17886
17887 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17888     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17889     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17890     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17891     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17892     retest_macosx_linking=yes
17893 fi
17894
17895 if test "x$retest_macosx_linking" = "xyes"; then
17896     ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901
17902     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17903 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17904     cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h.  */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h.  */
17910
17911 int
17912 main ()
17913 {
17914
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923   *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926   (eval "$ac_link") 2>conftest.er1
17927   ac_status=$?
17928   grep -v '^ *+' conftest.er1 >conftest.err
17929   rm -f conftest.er1
17930   cat conftest.err >&5
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); } && {
17933          test -z "$ac_c_werror_flag" ||
17934          test ! -s conftest.err
17935        } && test -s conftest$ac_exeext &&
17936        $as_test_x conftest$ac_exeext; then
17937   { echo "$as_me:$LINENO: result: yes" >&5
17938 echo "${ECHO_T}yes" >&6; }
17939 else
17940   echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17942
17943         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17944 See \`config.log' for more details." >&5
17945 echo "$as_me: error: no.  Try a different SDK
17946 See \`config.log' for more details." >&2;}
17947    { (exit 1); exit 1; }; }; exit 1
17948 fi
17949
17950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17951       conftest$ac_exeext conftest.$ac_ext
17952     ac_ext=c
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17957
17958
17959     ac_ext=cpp
17960 ac_cpp='$CXXCPP $CPPFLAGS'
17961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17964
17965     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17966 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17967     cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h.  */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h.  */
17973
17974 int
17975 main ()
17976 {
17977
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (ac_try="$ac_link"
17984 case "(($ac_try" in
17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986   *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989   (eval "$ac_link") 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } && {
17996          test -z "$ac_cxx_werror_flag" ||
17997          test ! -s conftest.err
17998        } && test -s conftest$ac_exeext &&
17999        $as_test_x conftest$ac_exeext; then
18000   { echo "$as_me:$LINENO: result: yes" >&5
18001 echo "${ECHO_T}yes" >&6; }
18002 else
18003   echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18007 See \`config.log' for more details." >&5
18008 echo "$as_me: error: no.  Try a different SDK
18009 See \`config.log' for more details." >&2;}
18010    { (exit 1); exit 1; }; }; exit 1
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18014       conftest$ac_exeext conftest.$ac_ext
18015     ac_ext=c
18016 ac_cpp='$CPP $CPPFLAGS'
18017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18020
18021 fi
18022
18023
18024 case "${host}" in
18025
18026                 *-*-darwin* )
18027         INSTALL_PROGRAM="cp -fp"
18028         INSTALL_DATA="cp -fp"
18029         ;;
18030     *)
18031         ;;
18032 esac
18033
18034
18035 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18036     CXXFLAGS="-qunique $CXXFLAGS"
18037 fi
18038
18039 case "${host}" in
18040   powerpc-*-darwin* )
18041     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18042 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18043     cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049
18050 int
18051 main ()
18052 {
18053 #ifndef __POWERPC__
18054         choke me for lack of PowerPC
18055 #endif
18056
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 rm -f conftest.$ac_objext
18062 if { (ac_try="$ac_compile"
18063 case "(($ac_try" in
18064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065   *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068   (eval "$ac_compile") 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } && {
18075          test -z "$ac_c_werror_flag" ||
18076          test ! -s conftest.err
18077        } && test -s conftest.$ac_objext; then
18078   { echo "$as_me:$LINENO: result: yes" >&5
18079 echo "${ECHO_T}yes" >&6; }
18080 else
18081   echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084         { echo "$as_me:$LINENO: result: no" >&5
18085 echo "${ECHO_T}no" >&6; }
18086         cat >>confdefs.h <<\_ACEOF
18087 #define __POWERPC__ 1
18088 _ACEOF
18089
18090
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094   ;;
18095 esac
18096
18097 case "${host}" in
18098   *-*-darwin* )
18099     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18100 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18101     cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 #include <CoreFoundation/CFBase.h>
18108
18109 int
18110 main ()
18111 {
18112
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (ac_try="$ac_compile"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_compile") 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } && {
18131          test -z "$ac_c_werror_flag" ||
18132          test ! -s conftest.err
18133        } && test -s conftest.$ac_objext; then
18134   { echo "$as_me:$LINENO: result: yes" >&5
18135 echo "${ECHO_T}yes" >&6; }
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140         { echo "$as_me:$LINENO: result: no" >&5
18141 echo "${ECHO_T}no" >&6; }
18142         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18143 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18144         cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150 #define __CF_USE_FRAMEWORK_INCLUDES__
18151 #include <CoreFoundation/CFBase.h>
18152
18153 int
18154 main ()
18155 {
18156
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (ac_try="$ac_compile"
18163 case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168   (eval "$ac_compile") 2>conftest.er1
18169   ac_status=$?
18170   grep -v '^ *+' conftest.er1 >conftest.err
18171   rm -f conftest.er1
18172   cat conftest.err >&5
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } && {
18175          test -z "$ac_c_werror_flag" ||
18176          test ! -s conftest.err
18177        } && test -s conftest.$ac_objext; then
18178   { echo "$as_me:$LINENO: result: yes" >&5
18179 echo "${ECHO_T}yes" >&6; }
18180                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18186 See \`config.log' for more details." >&5
18187 echo "$as_me: error: no.  CoreFoundation not available.
18188 See \`config.log' for more details." >&2;}
18189    { (exit 1); exit 1; }; }
18190
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194
18195
18196 fi
18197
18198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18199   ;;
18200 esac
18201
18202 wants_win32=0
18203 doesnt_want_win32=0
18204 case "${host}" in
18205   *-*-cygwin*)
18206       if test "$wxUSE_MSW" = 1 ; then
18207         wants_win32=1
18208       else
18209                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18210 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18211 if test "${wx_cv_nocygwin+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214
18215                 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221
18222 int
18223 main ()
18224 {
18225
18226                         #ifdef __MINGW32__
18227                             choke me
18228                         #endif
18229
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238   *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241   (eval "$ac_compile") 2>conftest.er1
18242   ac_status=$?
18243   grep -v '^ *+' conftest.er1 >conftest.err
18244   rm -f conftest.er1
18245   cat conftest.err >&5
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); } && {
18248          test -z "$ac_c_werror_flag" ||
18249          test ! -s conftest.err
18250        } && test -s conftest.$ac_objext; then
18251   wx_cv_nocygwin=no
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256         wx_cv_nocygwin=yes
18257
18258 fi
18259
18260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261
18262
18263 fi
18264 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18265 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18266
18267         if test "$wx_cv_nocygwin" = "yes"; then
18268             wants_win32=1
18269         else
18270             doesnt_want_win32=1
18271         fi
18272       fi
18273       if test "$wants_win32" = 1 ; then
18274         BAKEFILE_FORCE_PLATFORM=win32
18275       fi
18276   ;;
18277   *-*-mingw*)
18278       wants_win32=1
18279   ;;
18280 esac
18281
18282 if test "$wxUSE_WINE" = "yes"; then
18283     wants_win32=1
18284     LDFLAGS_GUI="-mwindows"
18285 fi
18286
18287 if test "$wants_win32" = 1 ; then
18288     USE_UNIX=0
18289     USE_WIN32=1
18290     cat >>confdefs.h <<\_ACEOF
18291 #define __WIN32__ 1
18292 _ACEOF
18293
18294     cat >>confdefs.h <<\_ACEOF
18295 #define __WIN95__ 1
18296 _ACEOF
18297
18298     cat >>confdefs.h <<\_ACEOF
18299 #define __WINDOWS__ 1
18300 _ACEOF
18301
18302     cat >>confdefs.h <<\_ACEOF
18303 #define __GNUWIN32__ 1
18304 _ACEOF
18305
18306     cat >>confdefs.h <<\_ACEOF
18307 #define STRICT 1
18308 _ACEOF
18309
18310 fi
18311 if test "$doesnt_want_win32" = 1 ; then
18312     USE_UNIX=1
18313     USE_WIN32=0
18314 fi
18315
18316 if test "$USE_UNIX" = 1 ; then
18317     wxUSE_UNIX=yes
18318     cat >>confdefs.h <<\_ACEOF
18319 #define __UNIX__ 1
18320 _ACEOF
18321
18322 fi
18323
18324 case "${host}" in
18325   *-pc-os2_emx | *-pc-os2-emx )
18326                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18327                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18328 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18329 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18330   echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332   ac_check_lib_save_LIBS=$LIBS
18333 LIBS="-lcExt  $LIBS"
18334 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340
18341 /* Override any GCC internal prototype to avoid an error.
18342    Use char because int might match the return type of a GCC
18343    builtin and then its argument prototype would still apply.  */
18344 #ifdef __cplusplus
18345 extern "C"
18346 #endif
18347 char drand48 ();
18348 int
18349 main ()
18350 {
18351 return drand48 ();
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (ac_try="$ac_link"
18358 case "(($ac_try" in
18359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360   *) ac_try_echo=$ac_try;;
18361 esac
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363   (eval "$ac_link") 2>conftest.er1
18364   ac_status=$?
18365   grep -v '^ *+' conftest.er1 >conftest.err
18366   rm -f conftest.er1
18367   cat conftest.err >&5
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } && {
18370          test -z "$ac_c_werror_flag" ||
18371          test ! -s conftest.err
18372        } && test -s conftest$ac_exeext &&
18373        $as_test_x conftest$ac_exeext; then
18374   ac_cv_lib_cExt_drand48=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379         ac_cv_lib_cExt_drand48=no
18380 fi
18381
18382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18383       conftest$ac_exeext conftest.$ac_ext
18384 LIBS=$ac_check_lib_save_LIBS
18385 fi
18386 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18387 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18388 if test $ac_cv_lib_cExt_drand48 = yes; then
18389   LIBS="$LIBS -lcExt"
18390 fi
18391
18392       else
18393                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18394       fi
18395                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18396 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18397 if test "${wx_cv_gccversion+set}" = set; then
18398   echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400
18401           if test "$cross_compiling" = yes; then
18402                 wx_cv_gccversion="EMX2"
18403
18404 else
18405   cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412                   #include <stdio.h>
18413
18414                   int main()
18415                   {
18416                       FILE *f=fopen("conftestval", "w");
18417                       if (!f) exit(1);
18418                       fprintf(f,
18419                   #if (__GNUC__ < 3)
18420                               "EMX2"
18421                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18422                               "EMX3"
18423                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18424                               "Innotek5"
18425                   #else
18426                               "Innotek6"
18427                   #endif
18428                       );
18429                       exit(0);
18430                   }
18431
18432 _ACEOF
18433 rm -f conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_link") 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18444   { (case "(($ac_try" in
18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446   *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449   (eval "$ac_try") 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; }; then
18453   wx_cv_gccversion=`cat conftestval`
18454 else
18455   echo "$as_me: program exited with status $ac_status" >&5
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ( exit $ac_status )
18460 wx_cv_gccversion="EMX2"
18461 fi
18462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18463 fi
18464
18465
18466
18467 fi
18468 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18469 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18470       if test "$wx_cv_gccversion" = "EMX2"; then
18471           LIBS="$LIBS -lstdcpp"
18472           LDFLAGS="$LDFLAGS -Zsysv-signals"
18473       else
18474           if test "$wx_cv_gccversion" = "EMX3"; then
18475               LIBS="$LIBS -lstdcxx -lgcc"
18476               LDFLAGS="$LDFLAGS -Zsysv-signals"
18477           else
18478               LIBS="$LIBS -lstdc++"
18479           fi
18480       fi
18481       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18482         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18483 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18484         wxUSE_OMF=yes
18485         enable_omf=yes
18486       fi
18487         ;;
18488   *)
18489
18490       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18491 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18492 if test "${ac_cv_string_strcasecmp+set}" = set; then
18493   echo $ECHO_N "(cached) $ECHO_C" >&6
18494 else
18495
18496           cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502
18503               #include <string.h>
18504
18505 int
18506 main ()
18507 {
18508
18509                   strcasecmp("foo", "bar");
18510
18511   ;
18512   return 0;
18513 }
18514 _ACEOF
18515 rm -f conftest.$ac_objext conftest$ac_exeext
18516 if { (ac_try="$ac_link"
18517 case "(($ac_try" in
18518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519   *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522   (eval "$ac_link") 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } && {
18529          test -z "$ac_c_werror_flag" ||
18530          test ! -s conftest.err
18531        } && test -s conftest$ac_exeext &&
18532        $as_test_x conftest$ac_exeext; then
18533   ac_cv_string_strcasecmp=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538         ac_cv_string_strcasecmp=no
18539
18540 fi
18541
18542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18543       conftest$ac_exeext conftest.$ac_ext
18544
18545 fi
18546 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18547 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18548
18549       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18550           cat >>confdefs.h <<\_ACEOF
18551 #define HAVE_STRCASECMP_IN_STRING_H 1
18552 _ACEOF
18553
18554       else
18555           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18556 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18557 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18558   echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560
18561               cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567
18568                   #include <strings.h>
18569
18570 int
18571 main ()
18572 {
18573
18574                       strcasecmp("foo", "bar");
18575
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (ac_try="$ac_link"
18582 case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_link") 2>conftest.er1
18588   ac_status=$?
18589   grep -v '^ *+' conftest.er1 >conftest.err
18590   rm -f conftest.er1
18591   cat conftest.err >&5
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); } && {
18594          test -z "$ac_c_werror_flag" ||
18595          test ! -s conftest.err
18596        } && test -s conftest$ac_exeext &&
18597        $as_test_x conftest$ac_exeext; then
18598   ac_cv_strings_strcasecmp=yes
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603         ac_cv_strings_strcasecmp=no
18604
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18608       conftest$ac_exeext conftest.$ac_ext
18609
18610 fi
18611 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18612 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18613
18614           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18615               cat >>confdefs.h <<\_ACEOF
18616 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18617 _ACEOF
18618
18619           else
18620               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18621 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18622    { (exit 1); exit 1; }; }
18623           fi
18624       fi
18625
18626         ;;
18627 esac
18628
18629
18630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18632 if test "${ac_cv_header_stdc+set}" = set; then
18633   echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635   cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h.  */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h.  */
18641 #include <stdlib.h>
18642 #include <stdarg.h>
18643 #include <string.h>
18644 #include <float.h>
18645
18646 int
18647 main ()
18648 {
18649
18650   ;
18651   return 0;
18652 }
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (ac_try="$ac_compile"
18656 case "(($ac_try" in
18657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658   *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661   (eval "$ac_compile") 2>conftest.er1
18662   ac_status=$?
18663   grep -v '^ *+' conftest.er1 >conftest.err
18664   rm -f conftest.er1
18665   cat conftest.err >&5
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } && {
18668          test -z "$ac_c_werror_flag" ||
18669          test ! -s conftest.err
18670        } && test -s conftest.$ac_objext; then
18671   ac_cv_header_stdc=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676         ac_cv_header_stdc=no
18677 fi
18678
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680
18681 if test $ac_cv_header_stdc = yes; then
18682   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18683   cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h.  */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h.  */
18689 #include <string.h>
18690
18691 _ACEOF
18692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18693   $EGREP "memchr" >/dev/null 2>&1; then
18694   :
18695 else
18696   ac_cv_header_stdc=no
18697 fi
18698 rm -f conftest*
18699
18700 fi
18701
18702 if test $ac_cv_header_stdc = yes; then
18703   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18704   cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710 #include <stdlib.h>
18711
18712 _ACEOF
18713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18714   $EGREP "free" >/dev/null 2>&1; then
18715   :
18716 else
18717   ac_cv_header_stdc=no
18718 fi
18719 rm -f conftest*
18720
18721 fi
18722
18723 if test $ac_cv_header_stdc = yes; then
18724   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18725   if test "$cross_compiling" = yes; then
18726   :
18727 else
18728   cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734 #include <ctype.h>
18735 #include <stdlib.h>
18736 #if ((' ' & 0x0FF) == 0x020)
18737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18739 #else
18740 # define ISLOWER(c) \
18741                    (('a' <= (c) && (c) <= 'i') \
18742                      || ('j' <= (c) && (c) <= 'r') \
18743                      || ('s' <= (c) && (c) <= 'z'))
18744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18745 #endif
18746
18747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18748 int
18749 main ()
18750 {
18751   int i;
18752   for (i = 0; i < 256; i++)
18753     if (XOR (islower (i), ISLOWER (i))
18754         || toupper (i) != TOUPPER (i))
18755       return 2;
18756   return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763   *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766   (eval "$ac_link") 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18770   { (case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_try") 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; }; then
18779   :
18780 else
18781   echo "$as_me: program exited with status $ac_status" >&5
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 ( exit $ac_status )
18786 ac_cv_header_stdc=no
18787 fi
18788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18789 fi
18790
18791
18792 fi
18793 fi
18794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18796 if test $ac_cv_header_stdc = yes; then
18797
18798 cat >>confdefs.h <<\_ACEOF
18799 #define STDC_HEADERS 1
18800 _ACEOF
18801
18802 fi
18803
18804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18815                   inttypes.h stdint.h unistd.h
18816 do
18817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 $ac_includes_default
18830
18831 #include <$ac_header>
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_compile") 2>conftest.er1
18841   ac_status=$?
18842   grep -v '^ *+' conftest.er1 >conftest.err
18843   rm -f conftest.er1
18844   cat conftest.err >&5
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); } && {
18847          test -z "$ac_c_werror_flag" ||
18848          test ! -s conftest.err
18849        } && test -s conftest.$ac_objext; then
18850   eval "$as_ac_Header=yes"
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855         eval "$as_ac_Header=no"
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859 fi
18860 ac_res=`eval echo '${'$as_ac_Header'}'`
18861                { echo "$as_me:$LINENO: result: $ac_res" >&5
18862 echo "${ECHO_T}$ac_res" >&6; }
18863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18864   cat >>confdefs.h <<_ACEOF
18865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18866 _ACEOF
18867
18868 fi
18869
18870 done
18871
18872
18873
18874
18875 for ac_header in langinfo.h wchar.h
18876 do
18877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18881   echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883   cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889 $ac_includes_default
18890
18891 #include <$ac_header>
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_compile") 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && {
18907          test -z "$ac_c_werror_flag" ||
18908          test ! -s conftest.err
18909        } && test -s conftest.$ac_objext; then
18910   eval "$as_ac_Header=yes"
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915         eval "$as_ac_Header=no"
18916 fi
18917
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 fi
18920 ac_res=`eval echo '${'$as_ac_Header'}'`
18921                { echo "$as_me:$LINENO: result: $ac_res" >&5
18922 echo "${ECHO_T}$ac_res" >&6; }
18923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18924   cat >>confdefs.h <<_ACEOF
18925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18926 _ACEOF
18927
18928 fi
18929
18930 done
18931
18932
18933 if test "$ac_cv_header_wchar_h" != "yes"; then
18934
18935 for ac_header in wcstr.h
18936 do
18937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h.  */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h.  */
18949 $ac_includes_default
18950
18951 #include <$ac_header>
18952 _ACEOF
18953 rm -f conftest.$ac_objext
18954 if { (ac_try="$ac_compile"
18955 case "(($ac_try" in
18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957   *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960   (eval "$ac_compile") 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } && {
18967          test -z "$ac_c_werror_flag" ||
18968          test ! -s conftest.err
18969        } && test -s conftest.$ac_objext; then
18970   eval "$as_ac_Header=yes"
18971 else
18972   echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975         eval "$as_ac_Header=no"
18976 fi
18977
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979 fi
18980 ac_res=`eval echo '${'$as_ac_Header'}'`
18981                { echo "$as_me:$LINENO: result: $ac_res" >&5
18982 echo "${ECHO_T}$ac_res" >&6; }
18983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18984   cat >>confdefs.h <<_ACEOF
18985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18986 _ACEOF
18987
18988 fi
18989
18990 done
18991
18992 fi
18993
18994 case "${host}" in
18995   *-pc-os2_emx | *-pc-os2-emx )
18996                   if test $ac_cv_header_langinfo_h = "yes" \
18997                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18998                      -o "$wx_cv_gccversion" = "EMX3" \
18999                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19000           LIBS="$LIBS -lintl"
19001       fi
19002   ;;
19003 esac
19004
19005 if test "$USE_UNIX" = 1 ; then
19006
19007 for ac_header in sys/select.h
19008 do
19009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h.  */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h.  */
19021 $ac_includes_default
19022
19023 #include <$ac_header>
19024 _ACEOF
19025 rm -f conftest.$ac_objext
19026 if { (ac_try="$ac_compile"
19027 case "(($ac_try" in
19028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029   *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032   (eval "$ac_compile") 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } && {
19039          test -z "$ac_c_werror_flag" ||
19040          test ! -s conftest.err
19041        } && test -s conftest.$ac_objext; then
19042   eval "$as_ac_Header=yes"
19043 else
19044   echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047         eval "$as_ac_Header=no"
19048 fi
19049
19050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19051 fi
19052 ac_res=`eval echo '${'$as_ac_Header'}'`
19053                { echo "$as_me:$LINENO: result: $ac_res" >&5
19054 echo "${ECHO_T}$ac_res" >&6; }
19055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19056   cat >>confdefs.h <<_ACEOF
19057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19058 _ACEOF
19059
19060 fi
19061
19062 done
19063
19064 fi
19065
19066
19067 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19068 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19069 if test "${ac_cv_c_const+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 int
19080 main ()
19081 {
19082 /* FIXME: Include the comments suggested by Paul. */
19083 #ifndef __cplusplus
19084   /* Ultrix mips cc rejects this.  */
19085   typedef int charset[2];
19086   const charset cs;
19087   /* SunOS 4.1.1 cc rejects this.  */
19088   char const *const *pcpcc;
19089   char **ppc;
19090   /* NEC SVR4.0.2 mips cc rejects this.  */
19091   struct point {int x, y;};
19092   static struct point const zero = {0,0};
19093   /* AIX XL C 1.02.0.0 rejects this.
19094      It does not let you subtract one const X* pointer from another in
19095      an arm of an if-expression whose if-part is not a constant
19096      expression */
19097   const char *g = "string";
19098   pcpcc = &g + (g ? g-g : 0);
19099   /* HPUX 7.0 cc rejects these. */
19100   ++pcpcc;
19101   ppc = (char**) pcpcc;
19102   pcpcc = (char const *const *) ppc;
19103   { /* SCO 3.2v4 cc rejects this.  */
19104     char *t;
19105     char const *s = 0 ? (char *) 0 : (char const *) 0;
19106
19107     *t++ = 0;
19108     if (s) return 0;
19109   }
19110   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19111     int x[] = {25, 17};
19112     const int *foo = &x[0];
19113     ++foo;
19114   }
19115   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19116     typedef const int *iptr;
19117     iptr p = 0;
19118     ++p;
19119   }
19120   { /* AIX XL C 1.02.0.0 rejects this saying
19121        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19122     struct s { int j; const int *ap[3]; };
19123     struct s *b; b->j = 5;
19124   }
19125   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19126     const int foo = 10;
19127     if (!foo) return 0;
19128   }
19129   return !cs[0] && !zero.x;
19130 #endif
19131
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && {
19150          test -z "$ac_c_werror_flag" ||
19151          test ! -s conftest.err
19152        } && test -s conftest.$ac_objext; then
19153   ac_cv_c_const=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         ac_cv_c_const=no
19159 fi
19160
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162 fi
19163 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19164 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19165 if test $ac_cv_c_const = no; then
19166
19167 cat >>confdefs.h <<\_ACEOF
19168 #define const
19169 _ACEOF
19170
19171 fi
19172
19173 { echo "$as_me:$LINENO: checking for inline" >&5
19174 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19175 if test "${ac_cv_c_inline+set}" = set; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178   ac_cv_c_inline=no
19179 for ac_kw in inline __inline__ __inline; do
19180   cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 #ifndef __cplusplus
19187 typedef int foo_t;
19188 static $ac_kw foo_t static_foo () {return 0; }
19189 $ac_kw foo_t foo () {return 0; }
19190 #endif
19191
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_compile") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } && {
19207          test -z "$ac_c_werror_flag" ||
19208          test ! -s conftest.err
19209        } && test -s conftest.$ac_objext; then
19210   ac_cv_c_inline=$ac_kw
19211 else
19212   echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219   test "$ac_cv_c_inline" != no && break
19220 done
19221
19222 fi
19223 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19224 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19225
19226
19227 case $ac_cv_c_inline in
19228   inline | yes) ;;
19229   *)
19230     case $ac_cv_c_inline in
19231       no) ac_val=;;
19232       *) ac_val=$ac_cv_c_inline;;
19233     esac
19234     cat >>confdefs.h <<_ACEOF
19235 #ifndef __cplusplus
19236 #define inline $ac_val
19237 #endif
19238 _ACEOF
19239     ;;
19240 esac
19241
19242
19243 { echo "$as_me:$LINENO: checking for short" >&5
19244 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19245 if test "${ac_cv_type_short+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 $ac_includes_default
19255 typedef short ac__type_new_;
19256 int
19257 main ()
19258 {
19259 if ((ac__type_new_ *) 0)
19260   return 0;
19261 if (sizeof (ac__type_new_))
19262   return 0;
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext
19268 if { (ac_try="$ac_compile"
19269 case "(($ac_try" in
19270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271   *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274   (eval "$ac_compile") 2>conftest.er1
19275   ac_status=$?
19276   grep -v '^ *+' conftest.er1 >conftest.err
19277   rm -f conftest.er1
19278   cat conftest.err >&5
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); } && {
19281          test -z "$ac_c_werror_flag" ||
19282          test ! -s conftest.err
19283        } && test -s conftest.$ac_objext; then
19284   ac_cv_type_short=yes
19285 else
19286   echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289         ac_cv_type_short=no
19290 fi
19291
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293 fi
19294 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19295 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19296
19297 # The cast to long int works around a bug in the HP C Compiler
19298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19300 # This bug is HP SR number 8606223364.
19301 { echo "$as_me:$LINENO: checking size of short" >&5
19302 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19303 if test "${ac_cv_sizeof_short+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   if test "$cross_compiling" = yes; then
19307   # Depending upon the size, compute the lo and hi bounds.
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19314 $ac_includes_default
19315    typedef short ac__type_sizeof_;
19316 int
19317 main ()
19318 {
19319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19320 test_array [0] = 0
19321
19322   ;
19323   return 0;
19324 }
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_compile") 2>conftest.er1
19334   ac_status=$?
19335   grep -v '^ *+' conftest.er1 >conftest.err
19336   rm -f conftest.er1
19337   cat conftest.err >&5
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); } && {
19340          test -z "$ac_c_werror_flag" ||
19341          test ! -s conftest.err
19342        } && test -s conftest.$ac_objext; then
19343   ac_lo=0 ac_mid=0
19344   while :; do
19345     cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h.  */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h.  */
19351 $ac_includes_default
19352    typedef short ac__type_sizeof_;
19353 int
19354 main ()
19355 {
19356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19357 test_array [0] = 0
19358
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext
19364 if { (ac_try="$ac_compile"
19365 case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_compile") 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } && {
19377          test -z "$ac_c_werror_flag" ||
19378          test ! -s conftest.err
19379        } && test -s conftest.$ac_objext; then
19380   ac_hi=$ac_mid; break
19381 else
19382   echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19384
19385         ac_lo=`expr $ac_mid + 1`
19386                         if test $ac_lo -le $ac_mid; then
19387                           ac_lo= ac_hi=
19388                           break
19389                         fi
19390                         ac_mid=`expr 2 '*' $ac_mid + 1`
19391 fi
19392
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394   done
19395 else
19396   echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399         cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 $ac_includes_default
19406    typedef short ac__type_sizeof_;
19407 int
19408 main ()
19409 {
19410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19411 test_array [0] = 0
19412
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 rm -f conftest.$ac_objext
19418 if { (ac_try="$ac_compile"
19419 case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_compile") 2>conftest.er1
19425   ac_status=$?
19426   grep -v '^ *+' conftest.er1 >conftest.err
19427   rm -f conftest.er1
19428   cat conftest.err >&5
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } && {
19431          test -z "$ac_c_werror_flag" ||
19432          test ! -s conftest.err
19433        } && test -s conftest.$ac_objext; then
19434   ac_hi=-1 ac_mid=-1
19435   while :; do
19436     cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 $ac_includes_default
19443    typedef short ac__type_sizeof_;
19444 int
19445 main ()
19446 {
19447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19448 test_array [0] = 0
19449
19450   ;
19451   return 0;
19452 }
19453 _ACEOF
19454 rm -f conftest.$ac_objext
19455 if { (ac_try="$ac_compile"
19456 case "(($ac_try" in
19457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458   *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461   (eval "$ac_compile") 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } && {
19468          test -z "$ac_c_werror_flag" ||
19469          test ! -s conftest.err
19470        } && test -s conftest.$ac_objext; then
19471   ac_lo=$ac_mid; break
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476         ac_hi=`expr '(' $ac_mid ')' - 1`
19477                         if test $ac_mid -le $ac_hi; then
19478                           ac_lo= ac_hi=
19479                           break
19480                         fi
19481                         ac_mid=`expr 2 '*' $ac_mid`
19482 fi
19483
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485   done
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490         ac_lo= ac_hi=
19491 fi
19492
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494 fi
19495
19496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497 # Binary search between lo and hi bounds.
19498 while test "x$ac_lo" != "x$ac_hi"; do
19499   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19500   cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506 $ac_includes_default
19507    typedef short ac__type_sizeof_;
19508 int
19509 main ()
19510 {
19511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19512 test_array [0] = 0
19513
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest.$ac_objext
19519 if { (ac_try="$ac_compile"
19520 case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_compile") 2>conftest.er1
19526   ac_status=$?
19527   grep -v '^ *+' conftest.er1 >conftest.err
19528   rm -f conftest.er1
19529   cat conftest.err >&5
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); } && {
19532          test -z "$ac_c_werror_flag" ||
19533          test ! -s conftest.err
19534        } && test -s conftest.$ac_objext; then
19535   ac_hi=$ac_mid
19536 else
19537   echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540         ac_lo=`expr '(' $ac_mid ')' + 1`
19541 fi
19542
19543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 done
19545 case $ac_lo in
19546 ?*) ac_cv_sizeof_short=$ac_lo;;
19547 '') if test "$ac_cv_type_short" = yes; then
19548      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19549 See \`config.log' for more details." >&5
19550 echo "$as_me: error: cannot compute sizeof (short)
19551 See \`config.log' for more details." >&2;}
19552    { (exit 77); exit 77; }; }
19553    else
19554      ac_cv_sizeof_short=0
19555    fi ;;
19556 esac
19557 else
19558   cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564 $ac_includes_default
19565    typedef short ac__type_sizeof_;
19566 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19567 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19568 #include <stdio.h>
19569 #include <stdlib.h>
19570 int
19571 main ()
19572 {
19573
19574   FILE *f = fopen ("conftest.val", "w");
19575   if (! f)
19576     return 1;
19577   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19578     {
19579       long int i = longval ();
19580       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19581         return 1;
19582       fprintf (f, "%ld\n", i);
19583     }
19584   else
19585     {
19586       unsigned long int i = ulongval ();
19587       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19588         return 1;
19589       fprintf (f, "%lu\n", i);
19590     }
19591   return ferror (f) || fclose (f) != 0;
19592
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_link") 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19608   { (case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613   (eval "$ac_try") 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; }; then
19617   ac_cv_sizeof_short=`cat conftest.val`
19618 else
19619   echo "$as_me: program exited with status $ac_status" >&5
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ( exit $ac_status )
19624 if test "$ac_cv_type_short" = yes; then
19625      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19626 See \`config.log' for more details." >&5
19627 echo "$as_me: error: cannot compute sizeof (short)
19628 See \`config.log' for more details." >&2;}
19629    { (exit 77); exit 77; }; }
19630    else
19631      ac_cv_sizeof_short=0
19632    fi
19633 fi
19634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19635 fi
19636 rm -f conftest.val
19637 fi
19638 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19639 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19640
19641
19642
19643 cat >>confdefs.h <<_ACEOF
19644 #define SIZEOF_SHORT $ac_cv_sizeof_short
19645 _ACEOF
19646
19647
19648 { echo "$as_me:$LINENO: checking for void *" >&5
19649 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19650 if test "${ac_cv_type_void_p+set}" = set; then
19651   echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19653   cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h.  */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h.  */
19659 $ac_includes_default
19660 typedef void * ac__type_new_;
19661 int
19662 main ()
19663 {
19664 if ((ac__type_new_ *) 0)
19665   return 0;
19666 if (sizeof (ac__type_new_))
19667   return 0;
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext
19673 if { (ac_try="$ac_compile"
19674 case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679   (eval "$ac_compile") 2>conftest.er1
19680   ac_status=$?
19681   grep -v '^ *+' conftest.er1 >conftest.err
19682   rm -f conftest.er1
19683   cat conftest.err >&5
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } && {
19686          test -z "$ac_c_werror_flag" ||
19687          test ! -s conftest.err
19688        } && test -s conftest.$ac_objext; then
19689   ac_cv_type_void_p=yes
19690 else
19691   echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694         ac_cv_type_void_p=no
19695 fi
19696
19697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19698 fi
19699 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19700 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19701
19702 # The cast to long int works around a bug in the HP C Compiler
19703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19705 # This bug is HP SR number 8606223364.
19706 { echo "$as_me:$LINENO: checking size of void *" >&5
19707 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19708 if test "${ac_cv_sizeof_void_p+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   if test "$cross_compiling" = yes; then
19712   # Depending upon the size, compute the lo and hi bounds.
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 $ac_includes_default
19720    typedef void * ac__type_sizeof_;
19721 int
19722 main ()
19723 {
19724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19725 test_array [0] = 0
19726
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_compile") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest.$ac_objext; then
19748   ac_lo=0 ac_mid=0
19749   while :; do
19750     cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h.  */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h.  */
19756 $ac_includes_default
19757    typedef void * ac__type_sizeof_;
19758 int
19759 main ()
19760 {
19761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19762 test_array [0] = 0
19763
19764   ;
19765   return 0;
19766 }
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_compile") 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } && {
19782          test -z "$ac_c_werror_flag" ||
19783          test ! -s conftest.err
19784        } && test -s conftest.$ac_objext; then
19785   ac_hi=$ac_mid; break
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790         ac_lo=`expr $ac_mid + 1`
19791                         if test $ac_lo -le $ac_mid; then
19792                           ac_lo= ac_hi=
19793                           break
19794                         fi
19795                         ac_mid=`expr 2 '*' $ac_mid + 1`
19796 fi
19797
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19799   done
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804         cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 $ac_includes_default
19811    typedef void * ac__type_sizeof_;
19812 int
19813 main ()
19814 {
19815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19816 test_array [0] = 0
19817
19818   ;
19819   return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826   *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829   (eval "$ac_compile") 2>conftest.er1
19830   ac_status=$?
19831   grep -v '^ *+' conftest.er1 >conftest.err
19832   rm -f conftest.er1
19833   cat conftest.err >&5
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } && {
19836          test -z "$ac_c_werror_flag" ||
19837          test ! -s conftest.err
19838        } && test -s conftest.$ac_objext; then
19839   ac_hi=-1 ac_mid=-1
19840   while :; do
19841     cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847 $ac_includes_default
19848    typedef void * ac__type_sizeof_;
19849 int
19850 main ()
19851 {
19852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19853 test_array [0] = 0
19854
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863   *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866   (eval "$ac_compile") 2>conftest.er1
19867   ac_status=$?
19868   grep -v '^ *+' conftest.er1 >conftest.err
19869   rm -f conftest.er1
19870   cat conftest.err >&5
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } && {
19873          test -z "$ac_c_werror_flag" ||
19874          test ! -s conftest.err
19875        } && test -s conftest.$ac_objext; then
19876   ac_lo=$ac_mid; break
19877 else
19878   echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881         ac_hi=`expr '(' $ac_mid ')' - 1`
19882                         if test $ac_mid -le $ac_hi; then
19883                           ac_lo= ac_hi=
19884                           break
19885                         fi
19886                         ac_mid=`expr 2 '*' $ac_mid`
19887 fi
19888
19889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19890   done
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895         ac_lo= ac_hi=
19896 fi
19897
19898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 fi
19900
19901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902 # Binary search between lo and hi bounds.
19903 while test "x$ac_lo" != "x$ac_hi"; do
19904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19905   cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911 $ac_includes_default
19912    typedef void * ac__type_sizeof_;
19913 int
19914 main ()
19915 {
19916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19917 test_array [0] = 0
19918
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext
19924 if { (ac_try="$ac_compile"
19925 case "(($ac_try" in
19926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927   *) ac_try_echo=$ac_try;;
19928 esac
19929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930   (eval "$ac_compile") 2>conftest.er1
19931   ac_status=$?
19932   grep -v '^ *+' conftest.er1 >conftest.err
19933   rm -f conftest.er1
19934   cat conftest.err >&5
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); } && {
19937          test -z "$ac_c_werror_flag" ||
19938          test ! -s conftest.err
19939        } && test -s conftest.$ac_objext; then
19940   ac_hi=$ac_mid
19941 else
19942   echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945         ac_lo=`expr '(' $ac_mid ')' + 1`
19946 fi
19947
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 done
19950 case $ac_lo in
19951 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19952 '') if test "$ac_cv_type_void_p" = yes; then
19953      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19954 See \`config.log' for more details." >&5
19955 echo "$as_me: error: cannot compute sizeof (void *)
19956 See \`config.log' for more details." >&2;}
19957    { (exit 77); exit 77; }; }
19958    else
19959      ac_cv_sizeof_void_p=0
19960    fi ;;
19961 esac
19962 else
19963   cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 $ac_includes_default
19970    typedef void * ac__type_sizeof_;
19971 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19972 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19973 #include <stdio.h>
19974 #include <stdlib.h>
19975 int
19976 main ()
19977 {
19978
19979   FILE *f = fopen ("conftest.val", "w");
19980   if (! f)
19981     return 1;
19982   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19983     {
19984       long int i = longval ();
19985       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19986         return 1;
19987       fprintf (f, "%ld\n", i);
19988     }
19989   else
19990     {
19991       unsigned long int i = ulongval ();
19992       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19993         return 1;
19994       fprintf (f, "%lu\n", i);
19995     }
19996   return ferror (f) || fclose (f) != 0;
19997
19998   ;
19999   return 0;
20000 }
20001 _ACEOF
20002 rm -f conftest$ac_exeext
20003 if { (ac_try="$ac_link"
20004 case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_link") 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); }; }; then
20022   ac_cv_sizeof_void_p=`cat conftest.val`
20023 else
20024   echo "$as_me: program exited with status $ac_status" >&5
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 ( exit $ac_status )
20029 if test "$ac_cv_type_void_p" = yes; then
20030      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20031 See \`config.log' for more details." >&5
20032 echo "$as_me: error: cannot compute sizeof (void *)
20033 See \`config.log' for more details." >&2;}
20034    { (exit 77); exit 77; }; }
20035    else
20036      ac_cv_sizeof_void_p=0
20037    fi
20038 fi
20039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20040 fi
20041 rm -f conftest.val
20042 fi
20043 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20044 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20045
20046
20047
20048 cat >>confdefs.h <<_ACEOF
20049 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20050 _ACEOF
20051
20052
20053 { echo "$as_me:$LINENO: checking for int" >&5
20054 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20055 if test "${ac_cv_type_int+set}" = set; then
20056   echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058   cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 $ac_includes_default
20065 typedef int ac__type_new_;
20066 int
20067 main ()
20068 {
20069 if ((ac__type_new_ *) 0)
20070   return 0;
20071 if (sizeof (ac__type_new_))
20072   return 0;
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext
20078 if { (ac_try="$ac_compile"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_compile") 2>conftest.er1
20085   ac_status=$?
20086   grep -v '^ *+' conftest.er1 >conftest.err
20087   rm -f conftest.er1
20088   cat conftest.err >&5
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } && {
20091          test -z "$ac_c_werror_flag" ||
20092          test ! -s conftest.err
20093        } && test -s conftest.$ac_objext; then
20094   ac_cv_type_int=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099         ac_cv_type_int=no
20100 fi
20101
20102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20103 fi
20104 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20105 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20106
20107 # The cast to long int works around a bug in the HP C Compiler
20108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20110 # This bug is HP SR number 8606223364.
20111 { echo "$as_me:$LINENO: checking size of int" >&5
20112 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20113 if test "${ac_cv_sizeof_int+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116   if test "$cross_compiling" = yes; then
20117   # Depending upon the size, compute the lo and hi bounds.
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 $ac_includes_default
20125    typedef int ac__type_sizeof_;
20126 int
20127 main ()
20128 {
20129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20130 test_array [0] = 0
20131
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_compile") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } && {
20150          test -z "$ac_c_werror_flag" ||
20151          test ! -s conftest.err
20152        } && test -s conftest.$ac_objext; then
20153   ac_lo=0 ac_mid=0
20154   while :; do
20155     cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161 $ac_includes_default
20162    typedef int ac__type_sizeof_;
20163 int
20164 main ()
20165 {
20166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20167 test_array [0] = 0
20168
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_compile") 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } && {
20187          test -z "$ac_c_werror_flag" ||
20188          test ! -s conftest.err
20189        } && test -s conftest.$ac_objext; then
20190   ac_hi=$ac_mid; break
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195         ac_lo=`expr $ac_mid + 1`
20196                         if test $ac_lo -le $ac_mid; then
20197                           ac_lo= ac_hi=
20198                           break
20199                         fi
20200                         ac_mid=`expr 2 '*' $ac_mid + 1`
20201 fi
20202
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204   done
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209         cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 $ac_includes_default
20216    typedef int ac__type_sizeof_;
20217 int
20218 main ()
20219 {
20220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20221 test_array [0] = 0
20222
20223   ;
20224   return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (ac_try="$ac_compile"
20229 case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_compile") 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } && {
20241          test -z "$ac_c_werror_flag" ||
20242          test ! -s conftest.err
20243        } && test -s conftest.$ac_objext; then
20244   ac_hi=-1 ac_mid=-1
20245   while :; do
20246     cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 $ac_includes_default
20253    typedef int ac__type_sizeof_;
20254 int
20255 main ()
20256 {
20257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20258 test_array [0] = 0
20259
20260   ;
20261   return 0;
20262 }
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268   *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271   (eval "$ac_compile") 2>conftest.er1
20272   ac_status=$?
20273   grep -v '^ *+' conftest.er1 >conftest.err
20274   rm -f conftest.er1
20275   cat conftest.err >&5
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); } && {
20278          test -z "$ac_c_werror_flag" ||
20279          test ! -s conftest.err
20280        } && test -s conftest.$ac_objext; then
20281   ac_lo=$ac_mid; break
20282 else
20283   echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20285
20286         ac_hi=`expr '(' $ac_mid ')' - 1`
20287                         if test $ac_mid -le $ac_hi; then
20288                           ac_lo= ac_hi=
20289                           break
20290                         fi
20291                         ac_mid=`expr 2 '*' $ac_mid`
20292 fi
20293
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295   done
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         ac_lo= ac_hi=
20301 fi
20302
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 fi
20305
20306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20307 # Binary search between lo and hi bounds.
20308 while test "x$ac_lo" != "x$ac_hi"; do
20309   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20310   cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 $ac_includes_default
20317    typedef int ac__type_sizeof_;
20318 int
20319 main ()
20320 {
20321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20322 test_array [0] = 0
20323
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_compile") 2>conftest.er1
20336   ac_status=$?
20337   grep -v '^ *+' conftest.er1 >conftest.err
20338   rm -f conftest.er1
20339   cat conftest.err >&5
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); } && {
20342          test -z "$ac_c_werror_flag" ||
20343          test ! -s conftest.err
20344        } && test -s conftest.$ac_objext; then
20345   ac_hi=$ac_mid
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350         ac_lo=`expr '(' $ac_mid ')' + 1`
20351 fi
20352
20353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354 done
20355 case $ac_lo in
20356 ?*) ac_cv_sizeof_int=$ac_lo;;
20357 '') if test "$ac_cv_type_int" = yes; then
20358      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20359 See \`config.log' for more details." >&5
20360 echo "$as_me: error: cannot compute sizeof (int)
20361 See \`config.log' for more details." >&2;}
20362    { (exit 77); exit 77; }; }
20363    else
20364      ac_cv_sizeof_int=0
20365    fi ;;
20366 esac
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374 $ac_includes_default
20375    typedef int ac__type_sizeof_;
20376 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20377 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20378 #include <stdio.h>
20379 #include <stdlib.h>
20380 int
20381 main ()
20382 {
20383
20384   FILE *f = fopen ("conftest.val", "w");
20385   if (! f)
20386     return 1;
20387   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20388     {
20389       long int i = longval ();
20390       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20391         return 1;
20392       fprintf (f, "%ld\n", i);
20393     }
20394   else
20395     {
20396       unsigned long int i = ulongval ();
20397       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20398         return 1;
20399       fprintf (f, "%lu\n", i);
20400     }
20401   return ferror (f) || fclose (f) != 0;
20402
20403   ;
20404   return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_link") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418   { (case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_try") 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_cv_sizeof_int=`cat conftest.val`
20428 else
20429   echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ( exit $ac_status )
20434 if test "$ac_cv_type_int" = yes; then
20435      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20436 See \`config.log' for more details." >&5
20437 echo "$as_me: error: cannot compute sizeof (int)
20438 See \`config.log' for more details." >&2;}
20439    { (exit 77); exit 77; }; }
20440    else
20441      ac_cv_sizeof_int=0
20442    fi
20443 fi
20444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 rm -f conftest.val
20447 fi
20448 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20449 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20450
20451
20452
20453 cat >>confdefs.h <<_ACEOF
20454 #define SIZEOF_INT $ac_cv_sizeof_int
20455 _ACEOF
20456
20457
20458 { echo "$as_me:$LINENO: checking for long" >&5
20459 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20460 if test "${ac_cv_type_long+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463   cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h.  */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h.  */
20469 $ac_includes_default
20470 typedef long ac__type_new_;
20471 int
20472 main ()
20473 {
20474 if ((ac__type_new_ *) 0)
20475   return 0;
20476 if (sizeof (ac__type_new_))
20477   return 0;
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (ac_try="$ac_compile"
20484 case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_compile") 2>conftest.er1
20490   ac_status=$?
20491   grep -v '^ *+' conftest.er1 >conftest.err
20492   rm -f conftest.er1
20493   cat conftest.err >&5
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } && {
20496          test -z "$ac_c_werror_flag" ||
20497          test ! -s conftest.err
20498        } && test -s conftest.$ac_objext; then
20499   ac_cv_type_long=yes
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504         ac_cv_type_long=no
20505 fi
20506
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 fi
20509 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20510 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20511
20512 # The cast to long int works around a bug in the HP C Compiler
20513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20515 # This bug is HP SR number 8606223364.
20516 { echo "$as_me:$LINENO: checking size of long" >&5
20517 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20518 if test "${ac_cv_sizeof_long+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   if test "$cross_compiling" = yes; then
20522   # Depending upon the size, compute the lo and hi bounds.
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 long ac__type_sizeof_;
20531 int
20532 main ()
20533 {
20534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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_lo=0 ac_mid=0
20559   while :; do
20560     cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 $ac_includes_default
20567    typedef long ac__type_sizeof_;
20568 int
20569 main ()
20570 {
20571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20572 test_array [0] = 0
20573
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (ac_try="$ac_compile"
20580 case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_compile") 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } && {
20592          test -z "$ac_c_werror_flag" ||
20593          test ! -s conftest.err
20594        } && test -s conftest.$ac_objext; then
20595   ac_hi=$ac_mid; break
20596 else
20597   echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600         ac_lo=`expr $ac_mid + 1`
20601                         if test $ac_lo -le $ac_mid; then
20602                           ac_lo= ac_hi=
20603                           break
20604                         fi
20605                         ac_mid=`expr 2 '*' $ac_mid + 1`
20606 fi
20607
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609   done
20610 else
20611   echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
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 long ac__type_sizeof_;
20622 int
20623 main ()
20624 {
20625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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_hi=-1 ac_mid=-1
20650   while :; do
20651     cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 $ac_includes_default
20658    typedef long ac__type_sizeof_;
20659 int
20660 main ()
20661 {
20662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20663 test_array [0] = 0
20664
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 rm -f conftest.$ac_objext
20670 if { (ac_try="$ac_compile"
20671 case "(($ac_try" in
20672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673   *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676   (eval "$ac_compile") 2>conftest.er1
20677   ac_status=$?
20678   grep -v '^ *+' conftest.er1 >conftest.err
20679   rm -f conftest.er1
20680   cat conftest.err >&5
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); } && {
20683          test -z "$ac_c_werror_flag" ||
20684          test ! -s conftest.err
20685        } && test -s conftest.$ac_objext; then
20686   ac_lo=$ac_mid; break
20687 else
20688   echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691         ac_hi=`expr '(' $ac_mid ')' - 1`
20692                         if test $ac_mid -le $ac_hi; then
20693                           ac_lo= ac_hi=
20694                           break
20695                         fi
20696                         ac_mid=`expr 2 '*' $ac_mid`
20697 fi
20698
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700   done
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705         ac_lo= ac_hi=
20706 fi
20707
20708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709 fi
20710
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712 # Binary search between lo and hi bounds.
20713 while test "x$ac_lo" != "x$ac_hi"; do
20714   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20715   cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721 $ac_includes_default
20722    typedef long ac__type_sizeof_;
20723 int
20724 main ()
20725 {
20726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20727 test_array [0] = 0
20728
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (ac_try="$ac_compile"
20735 case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_compile") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } && {
20747          test -z "$ac_c_werror_flag" ||
20748          test ! -s conftest.err
20749        } && test -s conftest.$ac_objext; then
20750   ac_hi=$ac_mid
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         ac_lo=`expr '(' $ac_mid ')' + 1`
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 done
20760 case $ac_lo in
20761 ?*) ac_cv_sizeof_long=$ac_lo;;
20762 '') if test "$ac_cv_type_long" = yes; then
20763      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20764 See \`config.log' for more details." >&5
20765 echo "$as_me: error: cannot compute sizeof (long)
20766 See \`config.log' for more details." >&2;}
20767    { (exit 77); exit 77; }; }
20768    else
20769      ac_cv_sizeof_long=0
20770    fi ;;
20771 esac
20772 else
20773   cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779 $ac_includes_default
20780    typedef long ac__type_sizeof_;
20781 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20782 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20783 #include <stdio.h>
20784 #include <stdlib.h>
20785 int
20786 main ()
20787 {
20788
20789   FILE *f = fopen ("conftest.val", "w");
20790   if (! f)
20791     return 1;
20792   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20793     {
20794       long int i = longval ();
20795       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20796         return 1;
20797       fprintf (f, "%ld\n", i);
20798     }
20799   else
20800     {
20801       unsigned long int i = ulongval ();
20802       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20803         return 1;
20804       fprintf (f, "%lu\n", i);
20805     }
20806   return ferror (f) || fclose (f) != 0;
20807
20808   ;
20809   return 0;
20810 }
20811 _ACEOF
20812 rm -f conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816   *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819   (eval "$ac_link") 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20823   { (case "(($ac_try" in
20824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825   *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828   (eval "$ac_try") 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; }; then
20832   ac_cv_sizeof_long=`cat conftest.val`
20833 else
20834   echo "$as_me: program exited with status $ac_status" >&5
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838 ( exit $ac_status )
20839 if test "$ac_cv_type_long" = yes; then
20840      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20841 See \`config.log' for more details." >&5
20842 echo "$as_me: error: cannot compute sizeof (long)
20843 See \`config.log' for more details." >&2;}
20844    { (exit 77); exit 77; }; }
20845    else
20846      ac_cv_sizeof_long=0
20847    fi
20848 fi
20849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20850 fi
20851 rm -f conftest.val
20852 fi
20853 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20854 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20855
20856
20857
20858 cat >>confdefs.h <<_ACEOF
20859 #define SIZEOF_LONG $ac_cv_sizeof_long
20860 _ACEOF
20861
20862
20863 { echo "$as_me:$LINENO: checking for size_t" >&5
20864 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20865 if test "${ac_cv_type_size_t+set}" = set; then
20866   echo $ECHO_N "(cached) $ECHO_C" >&6
20867 else
20868   cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 $ac_includes_default
20875 typedef size_t ac__type_new_;
20876 int
20877 main ()
20878 {
20879 if ((ac__type_new_ *) 0)
20880   return 0;
20881 if (sizeof (ac__type_new_))
20882   return 0;
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891   *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894   (eval "$ac_compile") 2>conftest.er1
20895   ac_status=$?
20896   grep -v '^ *+' conftest.er1 >conftest.err
20897   rm -f conftest.er1
20898   cat conftest.err >&5
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } && {
20901          test -z "$ac_c_werror_flag" ||
20902          test ! -s conftest.err
20903        } && test -s conftest.$ac_objext; then
20904   ac_cv_type_size_t=yes
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         ac_cv_type_size_t=no
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 fi
20914 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20915 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20916
20917 # The cast to long int works around a bug in the HP C Compiler
20918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20920 # This bug is HP SR number 8606223364.
20921 { echo "$as_me:$LINENO: checking size of size_t" >&5
20922 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20923 if test "${ac_cv_sizeof_size_t+set}" = set; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926   if test "$cross_compiling" = yes; then
20927   # Depending upon the size, compute the lo and hi bounds.
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 size_t ac__type_sizeof_;
20936 int
20937 main ()
20938 {
20939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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_lo=0 ac_mid=0
20964   while :; do
20965     cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 $ac_includes_default
20972    typedef size_t ac__type_sizeof_;
20973 int
20974 main ()
20975 {
20976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20977 test_array [0] = 0
20978
20979   ;
20980   return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987   *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990   (eval "$ac_compile") 2>conftest.er1
20991   ac_status=$?
20992   grep -v '^ *+' conftest.er1 >conftest.err
20993   rm -f conftest.er1
20994   cat conftest.err >&5
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); } && {
20997          test -z "$ac_c_werror_flag" ||
20998          test ! -s conftest.err
20999        } && test -s conftest.$ac_objext; then
21000   ac_hi=$ac_mid; break
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005         ac_lo=`expr $ac_mid + 1`
21006                         if test $ac_lo -le $ac_mid; then
21007                           ac_lo= ac_hi=
21008                           break
21009                         fi
21010                         ac_mid=`expr 2 '*' $ac_mid + 1`
21011 fi
21012
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014   done
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
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 size_t ac__type_sizeof_;
21027 int
21028 main ()
21029 {
21030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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_hi=-1 ac_mid=-1
21055   while :; do
21056     cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062 $ac_includes_default
21063    typedef size_t ac__type_sizeof_;
21064 int
21065 main ()
21066 {
21067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21068 test_array [0] = 0
21069
21070   ;
21071   return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_compile") 2>conftest.er1
21082   ac_status=$?
21083   grep -v '^ *+' conftest.er1 >conftest.err
21084   rm -f conftest.er1
21085   cat conftest.err >&5
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } && {
21088          test -z "$ac_c_werror_flag" ||
21089          test ! -s conftest.err
21090        } && test -s conftest.$ac_objext; then
21091   ac_lo=$ac_mid; break
21092 else
21093   echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096         ac_hi=`expr '(' $ac_mid ')' - 1`
21097                         if test $ac_mid -le $ac_hi; then
21098                           ac_lo= ac_hi=
21099                           break
21100                         fi
21101                         ac_mid=`expr 2 '*' $ac_mid`
21102 fi
21103
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105   done
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110         ac_lo= ac_hi=
21111 fi
21112
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 fi
21115
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 # Binary search between lo and hi bounds.
21118 while test "x$ac_lo" != "x$ac_hi"; do
21119   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 $ac_includes_default
21127    typedef size_t ac__type_sizeof_;
21128 int
21129 main ()
21130 {
21131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21132 test_array [0] = 0
21133
21134   ;
21135   return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142   *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145   (eval "$ac_compile") 2>conftest.er1
21146   ac_status=$?
21147   grep -v '^ *+' conftest.er1 >conftest.err
21148   rm -f conftest.er1
21149   cat conftest.err >&5
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } && {
21152          test -z "$ac_c_werror_flag" ||
21153          test ! -s conftest.err
21154        } && test -s conftest.$ac_objext; then
21155   ac_hi=$ac_mid
21156 else
21157   echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160         ac_lo=`expr '(' $ac_mid ')' + 1`
21161 fi
21162
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 done
21165 case $ac_lo in
21166 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21167 '') if test "$ac_cv_type_size_t" = yes; then
21168      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21169 See \`config.log' for more details." >&5
21170 echo "$as_me: error: cannot compute sizeof (size_t)
21171 See \`config.log' for more details." >&2;}
21172    { (exit 77); exit 77; }; }
21173    else
21174      ac_cv_sizeof_size_t=0
21175    fi ;;
21176 esac
21177 else
21178   cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 $ac_includes_default
21185    typedef size_t ac__type_sizeof_;
21186 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21187 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21188 #include <stdio.h>
21189 #include <stdlib.h>
21190 int
21191 main ()
21192 {
21193
21194   FILE *f = fopen ("conftest.val", "w");
21195   if (! f)
21196     return 1;
21197   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21198     {
21199       long int i = longval ();
21200       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21201         return 1;
21202       fprintf (f, "%ld\n", i);
21203     }
21204   else
21205     {
21206       unsigned long int i = ulongval ();
21207       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21208         return 1;
21209       fprintf (f, "%lu\n", i);
21210     }
21211   return ferror (f) || fclose (f) != 0;
21212
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 rm -f conftest$ac_exeext
21218 if { (ac_try="$ac_link"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_link") 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21228   { (case "(($ac_try" in
21229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230   *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233   (eval "$ac_try") 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   ac_cv_sizeof_size_t=`cat conftest.val`
21238 else
21239   echo "$as_me: program exited with status $ac_status" >&5
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243 ( exit $ac_status )
21244 if test "$ac_cv_type_size_t" = yes; then
21245      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21246 See \`config.log' for more details." >&5
21247 echo "$as_me: error: cannot compute sizeof (size_t)
21248 See \`config.log' for more details." >&2;}
21249    { (exit 77); exit 77; }; }
21250    else
21251      ac_cv_sizeof_size_t=0
21252    fi
21253 fi
21254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21255 fi
21256 rm -f conftest.val
21257 fi
21258 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21259 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21260
21261
21262
21263 cat >>confdefs.h <<_ACEOF
21264 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21265 _ACEOF
21266
21267
21268
21269 case "${host}" in
21270     arm-*-linux* )
21271         { echo "$as_me:$LINENO: checking for long long" >&5
21272 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21273 if test "${ac_cv_type_long_long+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276   cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282 $ac_includes_default
21283 typedef long long ac__type_new_;
21284 int
21285 main ()
21286 {
21287 if ((ac__type_new_ *) 0)
21288   return 0;
21289 if (sizeof (ac__type_new_))
21290   return 0;
21291   ;
21292   return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299   *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302   (eval "$ac_compile") 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } && {
21309          test -z "$ac_c_werror_flag" ||
21310          test ! -s conftest.err
21311        } && test -s conftest.$ac_objext; then
21312   ac_cv_type_long_long=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317         ac_cv_type_long_long=no
21318 fi
21319
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 fi
21322 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21323 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21324
21325 # The cast to long int works around a bug in the HP C Compiler
21326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21328 # This bug is HP SR number 8606223364.
21329 { echo "$as_me:$LINENO: checking size of long long" >&5
21330 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21331 if test "${ac_cv_sizeof_long_long+set}" = set; then
21332   echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334   if test "$cross_compiling" = yes; then
21335   # Depending upon the size, compute the lo and hi bounds.
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342 $ac_includes_default
21343    typedef long long ac__type_sizeof_;
21344 int
21345 main ()
21346 {
21347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21348 test_array [0] = 0
21349
21350   ;
21351   return 0;
21352 }
21353 _ACEOF
21354 rm -f conftest.$ac_objext
21355 if { (ac_try="$ac_compile"
21356 case "(($ac_try" in
21357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358   *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361   (eval "$ac_compile") 2>conftest.er1
21362   ac_status=$?
21363   grep -v '^ *+' conftest.er1 >conftest.err
21364   rm -f conftest.er1
21365   cat conftest.err >&5
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } && {
21368          test -z "$ac_c_werror_flag" ||
21369          test ! -s conftest.err
21370        } && test -s conftest.$ac_objext; then
21371   ac_lo=0 ac_mid=0
21372   while :; do
21373     cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379 $ac_includes_default
21380    typedef long long ac__type_sizeof_;
21381 int
21382 main ()
21383 {
21384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21385 test_array [0] = 0
21386
21387   ;
21388   return 0;
21389 }
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_compile") 2>conftest.er1
21399   ac_status=$?
21400   grep -v '^ *+' conftest.er1 >conftest.err
21401   rm -f conftest.er1
21402   cat conftest.err >&5
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); } && {
21405          test -z "$ac_c_werror_flag" ||
21406          test ! -s conftest.err
21407        } && test -s conftest.$ac_objext; then
21408   ac_hi=$ac_mid; break
21409 else
21410   echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21412
21413         ac_lo=`expr $ac_mid + 1`
21414                         if test $ac_lo -le $ac_mid; then
21415                           ac_lo= ac_hi=
21416                           break
21417                         fi
21418                         ac_mid=`expr 2 '*' $ac_mid + 1`
21419 fi
21420
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422   done
21423 else
21424   echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426
21427         cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 $ac_includes_default
21434    typedef long long ac__type_sizeof_;
21435 int
21436 main ()
21437 {
21438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21439 test_array [0] = 0
21440
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_compile") 2>conftest.er1
21453   ac_status=$?
21454   grep -v '^ *+' conftest.er1 >conftest.err
21455   rm -f conftest.er1
21456   cat conftest.err >&5
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } && {
21459          test -z "$ac_c_werror_flag" ||
21460          test ! -s conftest.err
21461        } && test -s conftest.$ac_objext; then
21462   ac_hi=-1 ac_mid=-1
21463   while :; do
21464     cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h.  */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h.  */
21470 $ac_includes_default
21471    typedef long long ac__type_sizeof_;
21472 int
21473 main ()
21474 {
21475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21476 test_array [0] = 0
21477
21478   ;
21479   return 0;
21480 }
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (ac_try="$ac_compile"
21484 case "(($ac_try" in
21485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486   *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489   (eval "$ac_compile") 2>conftest.er1
21490   ac_status=$?
21491   grep -v '^ *+' conftest.er1 >conftest.err
21492   rm -f conftest.er1
21493   cat conftest.err >&5
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); } && {
21496          test -z "$ac_c_werror_flag" ||
21497          test ! -s conftest.err
21498        } && test -s conftest.$ac_objext; then
21499   ac_lo=$ac_mid; break
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504         ac_hi=`expr '(' $ac_mid ')' - 1`
21505                         if test $ac_mid -le $ac_hi; then
21506                           ac_lo= ac_hi=
21507                           break
21508                         fi
21509                         ac_mid=`expr 2 '*' $ac_mid`
21510 fi
21511
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513   done
21514 else
21515   echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21517
21518         ac_lo= ac_hi=
21519 fi
21520
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522 fi
21523
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 # Binary search between lo and hi bounds.
21526 while test "x$ac_lo" != "x$ac_hi"; do
21527   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 $ac_includes_default
21535    typedef long long ac__type_sizeof_;
21536 int
21537 main ()
21538 {
21539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21540 test_array [0] = 0
21541
21542   ;
21543   return 0;
21544 }
21545 _ACEOF
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550   *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553   (eval "$ac_compile") 2>conftest.er1
21554   ac_status=$?
21555   grep -v '^ *+' conftest.er1 >conftest.err
21556   rm -f conftest.er1
21557   cat conftest.err >&5
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); } && {
21560          test -z "$ac_c_werror_flag" ||
21561          test ! -s conftest.err
21562        } && test -s conftest.$ac_objext; then
21563   ac_hi=$ac_mid
21564 else
21565   echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568         ac_lo=`expr '(' $ac_mid ')' + 1`
21569 fi
21570
21571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21572 done
21573 case $ac_lo in
21574 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21575 '') if test "$ac_cv_type_long_long" = yes; then
21576      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21577 See \`config.log' for more details." >&5
21578 echo "$as_me: error: cannot compute sizeof (long long)
21579 See \`config.log' for more details." >&2;}
21580    { (exit 77); exit 77; }; }
21581    else
21582      ac_cv_sizeof_long_long=0
21583    fi ;;
21584 esac
21585 else
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 $ac_includes_default
21593    typedef long long ac__type_sizeof_;
21594 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21595 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21596 #include <stdio.h>
21597 #include <stdlib.h>
21598 int
21599 main ()
21600 {
21601
21602   FILE *f = fopen ("conftest.val", "w");
21603   if (! f)
21604     return 1;
21605   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21606     {
21607       long int i = longval ();
21608       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21609         return 1;
21610       fprintf (f, "%ld\n", i);
21611     }
21612   else
21613     {
21614       unsigned long int i = ulongval ();
21615       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21616         return 1;
21617       fprintf (f, "%lu\n", i);
21618     }
21619   return ferror (f) || fclose (f) != 0;
21620
21621   ;
21622   return 0;
21623 }
21624 _ACEOF
21625 rm -f conftest$ac_exeext
21626 if { (ac_try="$ac_link"
21627 case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_link") 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636   { (case "(($ac_try" in
21637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638   *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641   (eval "$ac_try") 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); }; }; then
21645   ac_cv_sizeof_long_long=`cat conftest.val`
21646 else
21647   echo "$as_me: program exited with status $ac_status" >&5
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 ( exit $ac_status )
21652 if test "$ac_cv_type_long_long" = yes; then
21653      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21654 See \`config.log' for more details." >&5
21655 echo "$as_me: error: cannot compute sizeof (long long)
21656 See \`config.log' for more details." >&2;}
21657    { (exit 77); exit 77; }; }
21658    else
21659      ac_cv_sizeof_long_long=0
21660    fi
21661 fi
21662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21663 fi
21664 rm -f conftest.val
21665 fi
21666 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21667 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21668
21669
21670
21671 cat >>confdefs.h <<_ACEOF
21672 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21673 _ACEOF
21674
21675
21676     ;;
21677     *-hp-hpux* )
21678         { echo "$as_me:$LINENO: checking for long long" >&5
21679 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21680 if test "${ac_cv_type_long_long+set}" = set; then
21681   echo $ECHO_N "(cached) $ECHO_C" >&6
21682 else
21683   cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689 $ac_includes_default
21690 typedef long long ac__type_new_;
21691 int
21692 main ()
21693 {
21694 if ((ac__type_new_ *) 0)
21695   return 0;
21696 if (sizeof (ac__type_new_))
21697   return 0;
21698   ;
21699   return 0;
21700 }
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (ac_try="$ac_compile"
21704 case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_compile") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && {
21716          test -z "$ac_c_werror_flag" ||
21717          test ! -s conftest.err
21718        } && test -s conftest.$ac_objext; then
21719   ac_cv_type_long_long=yes
21720 else
21721   echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724         ac_cv_type_long_long=no
21725 fi
21726
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 fi
21729 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21730 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21731
21732 # The cast to long int works around a bug in the HP C Compiler
21733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21735 # This bug is HP SR number 8606223364.
21736 { echo "$as_me:$LINENO: checking size of long long" >&5
21737 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21738 if test "${ac_cv_sizeof_long_long+set}" = set; then
21739   echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741   if test "$cross_compiling" = yes; then
21742   # Depending upon the size, compute the lo and hi bounds.
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 $ac_includes_default
21750    typedef long long ac__type_sizeof_;
21751 int
21752 main ()
21753 {
21754 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21755 test_array [0] = 0
21756
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765   *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768   (eval "$ac_compile") 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } && {
21775          test -z "$ac_c_werror_flag" ||
21776          test ! -s conftest.err
21777        } && test -s conftest.$ac_objext; then
21778   ac_lo=0 ac_mid=0
21779   while :; do
21780     cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 $ac_includes_default
21787    typedef long long ac__type_sizeof_;
21788 int
21789 main ()
21790 {
21791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21792 test_array [0] = 0
21793
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_compile") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } && {
21812          test -z "$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        } && test -s conftest.$ac_objext; then
21815   ac_hi=$ac_mid; break
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820         ac_lo=`expr $ac_mid + 1`
21821                         if test $ac_lo -le $ac_mid; then
21822                           ac_lo= ac_hi=
21823                           break
21824                         fi
21825                         ac_mid=`expr 2 '*' $ac_mid + 1`
21826 fi
21827
21828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829   done
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834         cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840 $ac_includes_default
21841    typedef long long ac__type_sizeof_;
21842 int
21843 main ()
21844 {
21845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21846 test_array [0] = 0
21847
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 rm -f conftest.$ac_objext
21853 if { (ac_try="$ac_compile"
21854 case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_compile") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } && {
21866          test -z "$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        } && test -s conftest.$ac_objext; then
21869   ac_hi=-1 ac_mid=-1
21870   while :; do
21871     cat >conftest.$ac_ext <<_ACEOF
21872 /* confdefs.h.  */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h.  */
21877 $ac_includes_default
21878    typedef long long ac__type_sizeof_;
21879 int
21880 main ()
21881 {
21882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21883 test_array [0] = 0
21884
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (ac_try="$ac_compile"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896   (eval "$ac_compile") 2>conftest.er1
21897   ac_status=$?
21898   grep -v '^ *+' conftest.er1 >conftest.err
21899   rm -f conftest.er1
21900   cat conftest.err >&5
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } && {
21903          test -z "$ac_c_werror_flag" ||
21904          test ! -s conftest.err
21905        } && test -s conftest.$ac_objext; then
21906   ac_lo=$ac_mid; break
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911         ac_hi=`expr '(' $ac_mid ')' - 1`
21912                         if test $ac_mid -le $ac_hi; then
21913                           ac_lo= ac_hi=
21914                           break
21915                         fi
21916                         ac_mid=`expr 2 '*' $ac_mid`
21917 fi
21918
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21920   done
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925         ac_lo= ac_hi=
21926 fi
21927
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929 fi
21930
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 # Binary search between lo and hi bounds.
21933 while test "x$ac_lo" != "x$ac_hi"; do
21934   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21935   cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941 $ac_includes_default
21942    typedef long long ac__type_sizeof_;
21943 int
21944 main ()
21945 {
21946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21947 test_array [0] = 0
21948
21949   ;
21950   return 0;
21951 }
21952 _ACEOF
21953 rm -f conftest.$ac_objext
21954 if { (ac_try="$ac_compile"
21955 case "(($ac_try" in
21956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957   *) ac_try_echo=$ac_try;;
21958 esac
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960   (eval "$ac_compile") 2>conftest.er1
21961   ac_status=$?
21962   grep -v '^ *+' conftest.er1 >conftest.err
21963   rm -f conftest.er1
21964   cat conftest.err >&5
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); } && {
21967          test -z "$ac_c_werror_flag" ||
21968          test ! -s conftest.err
21969        } && test -s conftest.$ac_objext; then
21970   ac_hi=$ac_mid
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975         ac_lo=`expr '(' $ac_mid ')' + 1`
21976 fi
21977
21978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21979 done
21980 case $ac_lo in
21981 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21982 '') if test "$ac_cv_type_long_long" = yes; then
21983      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21984 See \`config.log' for more details." >&5
21985 echo "$as_me: error: cannot compute sizeof (long long)
21986 See \`config.log' for more details." >&2;}
21987    { (exit 77); exit 77; }; }
21988    else
21989      ac_cv_sizeof_long_long=0
21990    fi ;;
21991 esac
21992 else
21993   cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 $ac_includes_default
22000    typedef long long ac__type_sizeof_;
22001 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22002 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22003 #include <stdio.h>
22004 #include <stdlib.h>
22005 int
22006 main ()
22007 {
22008
22009   FILE *f = fopen ("conftest.val", "w");
22010   if (! f)
22011     return 1;
22012   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22013     {
22014       long int i = longval ();
22015       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22016         return 1;
22017       fprintf (f, "%ld\n", i);
22018     }
22019   else
22020     {
22021       unsigned long int i = ulongval ();
22022       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22023         return 1;
22024       fprintf (f, "%lu\n", i);
22025     }
22026   return ferror (f) || fclose (f) != 0;
22027
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest$ac_exeext
22033 if { (ac_try="$ac_link"
22034 case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_link") 2>&5
22040   ac_status=$?
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22043   { (case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048   (eval "$ac_try") 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); }; }; then
22052   ac_cv_sizeof_long_long=`cat conftest.val`
22053 else
22054   echo "$as_me: program exited with status $ac_status" >&5
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 ( exit $ac_status )
22059 if test "$ac_cv_type_long_long" = yes; then
22060      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22061 See \`config.log' for more details." >&5
22062 echo "$as_me: error: cannot compute sizeof (long long)
22063 See \`config.log' for more details." >&2;}
22064    { (exit 77); exit 77; }; }
22065    else
22066      ac_cv_sizeof_long_long=0
22067    fi
22068 fi
22069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22070 fi
22071 rm -f conftest.val
22072 fi
22073 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22074 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22075
22076
22077
22078 cat >>confdefs.h <<_ACEOF
22079 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22080 _ACEOF
22081
22082
22083         if test "$ac_cv_sizeof_long_long" != 0; then
22084                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22085         fi
22086     ;;
22087     * )
22088         { echo "$as_me:$LINENO: checking for long long" >&5
22089 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22090 if test "${ac_cv_type_long_long+set}" = set; then
22091   echo $ECHO_N "(cached) $ECHO_C" >&6
22092 else
22093   cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h.  */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h.  */
22099 $ac_includes_default
22100 typedef long long ac__type_new_;
22101 int
22102 main ()
22103 {
22104 if ((ac__type_new_ *) 0)
22105   return 0;
22106 if (sizeof (ac__type_new_))
22107   return 0;
22108   ;
22109   return 0;
22110 }
22111 _ACEOF
22112 rm -f conftest.$ac_objext
22113 if { (ac_try="$ac_compile"
22114 case "(($ac_try" in
22115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116   *) ac_try_echo=$ac_try;;
22117 esac
22118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22119   (eval "$ac_compile") 2>conftest.er1
22120   ac_status=$?
22121   grep -v '^ *+' conftest.er1 >conftest.err
22122   rm -f conftest.er1
22123   cat conftest.err >&5
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); } && {
22126          test -z "$ac_c_werror_flag" ||
22127          test ! -s conftest.err
22128        } && test -s conftest.$ac_objext; then
22129   ac_cv_type_long_long=yes
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134         ac_cv_type_long_long=no
22135 fi
22136
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138 fi
22139 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22140 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22141
22142 # The cast to long int works around a bug in the HP C Compiler
22143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22145 # This bug is HP SR number 8606223364.
22146 { echo "$as_me:$LINENO: checking size of long long" >&5
22147 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22148 if test "${ac_cv_sizeof_long_long+set}" = set; then
22149   echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151   if test "$cross_compiling" = yes; then
22152   # Depending upon the size, compute the lo and hi bounds.
22153 cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h.  */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h.  */
22159 $ac_includes_default
22160    typedef long long ac__type_sizeof_;
22161 int
22162 main ()
22163 {
22164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22165 test_array [0] = 0
22166
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175   *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178   (eval "$ac_compile") 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } && {
22185          test -z "$ac_c_werror_flag" ||
22186          test ! -s conftest.err
22187        } && test -s conftest.$ac_objext; then
22188   ac_lo=0 ac_mid=0
22189   while :; do
22190     cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h.  */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h.  */
22196 $ac_includes_default
22197    typedef long long ac__type_sizeof_;
22198 int
22199 main ()
22200 {
22201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22202 test_array [0] = 0
22203
22204   ;
22205   return 0;
22206 }
22207 _ACEOF
22208 rm -f conftest.$ac_objext
22209 if { (ac_try="$ac_compile"
22210 case "(($ac_try" in
22211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212   *) ac_try_echo=$ac_try;;
22213 esac
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215   (eval "$ac_compile") 2>conftest.er1
22216   ac_status=$?
22217   grep -v '^ *+' conftest.er1 >conftest.err
22218   rm -f conftest.er1
22219   cat conftest.err >&5
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); } && {
22222          test -z "$ac_c_werror_flag" ||
22223          test ! -s conftest.err
22224        } && test -s conftest.$ac_objext; then
22225   ac_hi=$ac_mid; break
22226 else
22227   echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230         ac_lo=`expr $ac_mid + 1`
22231                         if test $ac_lo -le $ac_mid; then
22232                           ac_lo= ac_hi=
22233                           break
22234                         fi
22235                         ac_mid=`expr 2 '*' $ac_mid + 1`
22236 fi
22237
22238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239   done
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244         cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h.  */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h.  */
22250 $ac_includes_default
22251    typedef long long ac__type_sizeof_;
22252 int
22253 main ()
22254 {
22255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22256 test_array [0] = 0
22257
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266   *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269   (eval "$ac_compile") 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } && {
22276          test -z "$ac_c_werror_flag" ||
22277          test ! -s conftest.err
22278        } && test -s conftest.$ac_objext; then
22279   ac_hi=-1 ac_mid=-1
22280   while :; do
22281     cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h.  */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h.  */
22287 $ac_includes_default
22288    typedef long long ac__type_sizeof_;
22289 int
22290 main ()
22291 {
22292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22293 test_array [0] = 0
22294
22295   ;
22296   return 0;
22297 }
22298 _ACEOF
22299 rm -f conftest.$ac_objext
22300 if { (ac_try="$ac_compile"
22301 case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_compile") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } && {
22313          test -z "$ac_c_werror_flag" ||
22314          test ! -s conftest.err
22315        } && test -s conftest.$ac_objext; then
22316   ac_lo=$ac_mid; break
22317 else
22318   echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321         ac_hi=`expr '(' $ac_mid ')' - 1`
22322                         if test $ac_mid -le $ac_hi; then
22323                           ac_lo= ac_hi=
22324                           break
22325                         fi
22326                         ac_mid=`expr 2 '*' $ac_mid`
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330   done
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335         ac_lo= ac_hi=
22336 fi
22337
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 fi
22340
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 # Binary search between lo and hi bounds.
22343 while test "x$ac_lo" != "x$ac_hi"; do
22344   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22345   cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 $ac_includes_default
22352    typedef long long ac__type_sizeof_;
22353 int
22354 main ()
22355 {
22356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22357 test_array [0] = 0
22358
22359   ;
22360   return 0;
22361 }
22362 _ACEOF
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367   *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370   (eval "$ac_compile") 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } && {
22377          test -z "$ac_c_werror_flag" ||
22378          test ! -s conftest.err
22379        } && test -s conftest.$ac_objext; then
22380   ac_hi=$ac_mid
22381 else
22382   echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22384
22385         ac_lo=`expr '(' $ac_mid ')' + 1`
22386 fi
22387
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 done
22390 case $ac_lo in
22391 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22392 '') if test "$ac_cv_type_long_long" = yes; then
22393      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22394 See \`config.log' for more details." >&5
22395 echo "$as_me: error: cannot compute sizeof (long long)
22396 See \`config.log' for more details." >&2;}
22397    { (exit 77); exit 77; }; }
22398    else
22399      ac_cv_sizeof_long_long=0
22400    fi ;;
22401 esac
22402 else
22403   cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 $ac_includes_default
22410    typedef long long ac__type_sizeof_;
22411 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22412 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22413 #include <stdio.h>
22414 #include <stdlib.h>
22415 int
22416 main ()
22417 {
22418
22419   FILE *f = fopen ("conftest.val", "w");
22420   if (! f)
22421     return 1;
22422   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22423     {
22424       long int i = longval ();
22425       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22426         return 1;
22427       fprintf (f, "%ld\n", i);
22428     }
22429   else
22430     {
22431       unsigned long int i = ulongval ();
22432       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22433         return 1;
22434       fprintf (f, "%lu\n", i);
22435     }
22436   return ferror (f) || fclose (f) != 0;
22437
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_link") 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453   { (case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458   (eval "$ac_try") 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }; then
22462   ac_cv_sizeof_long_long=`cat conftest.val`
22463 else
22464   echo "$as_me: program exited with status $ac_status" >&5
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ( exit $ac_status )
22469 if test "$ac_cv_type_long_long" = yes; then
22470      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22471 See \`config.log' for more details." >&5
22472 echo "$as_me: error: cannot compute sizeof (long long)
22473 See \`config.log' for more details." >&2;}
22474    { (exit 77); exit 77; }; }
22475    else
22476      ac_cv_sizeof_long_long=0
22477    fi
22478 fi
22479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22480 fi
22481 rm -f conftest.val
22482 fi
22483 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22484 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22485
22486
22487
22488 cat >>confdefs.h <<_ACEOF
22489 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22490 _ACEOF
22491
22492
22493 esac
22494
22495 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22496 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22497 if test "${ac_cv_type_wchar_t+set}" = set; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500   cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h.  */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h.  */
22506
22507         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22508         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22509         #  error "fake wchar_t"
22510         #endif
22511         #ifdef HAVE_WCHAR_H
22512         #  ifdef __CYGWIN__
22513         #    include <stddef.h>
22514         #  endif
22515         #  include <wchar.h>
22516         #endif
22517         #ifdef HAVE_STDLIB_H
22518         #  include <stdlib.h>
22519         #endif
22520         #include <stdio.h>
22521
22522
22523
22524 typedef wchar_t ac__type_new_;
22525 int
22526 main ()
22527 {
22528 if ((ac__type_new_ *) 0)
22529   return 0;
22530 if (sizeof (ac__type_new_))
22531   return 0;
22532   ;
22533   return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543   (eval "$ac_compile") 2>conftest.er1
22544   ac_status=$?
22545   grep -v '^ *+' conftest.er1 >conftest.err
22546   rm -f conftest.er1
22547   cat conftest.err >&5
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } && {
22550          test -z "$ac_c_werror_flag" ||
22551          test ! -s conftest.err
22552        } && test -s conftest.$ac_objext; then
22553   ac_cv_type_wchar_t=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558         ac_cv_type_wchar_t=no
22559 fi
22560
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 fi
22563 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22564 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22565
22566 # The cast to long int works around a bug in the HP C Compiler
22567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22569 # This bug is HP SR number 8606223364.
22570 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22571 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22572 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22573   echo $ECHO_N "(cached) $ECHO_C" >&6
22574 else
22575   if test "$cross_compiling" = yes; then
22576   # Depending upon the size, compute the lo and hi bounds.
22577 cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h.  */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h.  */
22583
22584         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22585         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22586         #  error "fake wchar_t"
22587         #endif
22588         #ifdef HAVE_WCHAR_H
22589         #  ifdef __CYGWIN__
22590         #    include <stddef.h>
22591         #  endif
22592         #  include <wchar.h>
22593         #endif
22594         #ifdef HAVE_STDLIB_H
22595         #  include <stdlib.h>
22596         #endif
22597         #include <stdio.h>
22598
22599
22600
22601    typedef wchar_t ac__type_sizeof_;
22602 int
22603 main ()
22604 {
22605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22606 test_array [0] = 0
22607
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616   *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619   (eval "$ac_compile") 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } && {
22626          test -z "$ac_c_werror_flag" ||
22627          test ! -s conftest.err
22628        } && test -s conftest.$ac_objext; then
22629   ac_lo=0 ac_mid=0
22630   while :; do
22631     cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h.  */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h.  */
22637
22638         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22639         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22640         #  error "fake wchar_t"
22641         #endif
22642         #ifdef HAVE_WCHAR_H
22643         #  ifdef __CYGWIN__
22644         #    include <stddef.h>
22645         #  endif
22646         #  include <wchar.h>
22647         #endif
22648         #ifdef HAVE_STDLIB_H
22649         #  include <stdlib.h>
22650         #endif
22651         #include <stdio.h>
22652
22653
22654
22655    typedef wchar_t ac__type_sizeof_;
22656 int
22657 main ()
22658 {
22659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22660 test_array [0] = 0
22661
22662   ;
22663   return 0;
22664 }
22665 _ACEOF
22666 rm -f conftest.$ac_objext
22667 if { (ac_try="$ac_compile"
22668 case "(($ac_try" in
22669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670   *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673   (eval "$ac_compile") 2>conftest.er1
22674   ac_status=$?
22675   grep -v '^ *+' conftest.er1 >conftest.err
22676   rm -f conftest.er1
22677   cat conftest.err >&5
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); } && {
22680          test -z "$ac_c_werror_flag" ||
22681          test ! -s conftest.err
22682        } && test -s conftest.$ac_objext; then
22683   ac_hi=$ac_mid; break
22684 else
22685   echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688         ac_lo=`expr $ac_mid + 1`
22689                         if test $ac_lo -le $ac_mid; then
22690                           ac_lo= ac_hi=
22691                           break
22692                         fi
22693                         ac_mid=`expr 2 '*' $ac_mid + 1`
22694 fi
22695
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697   done
22698 else
22699   echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702         cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708
22709         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22710         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22711         #  error "fake wchar_t"
22712         #endif
22713         #ifdef HAVE_WCHAR_H
22714         #  ifdef __CYGWIN__
22715         #    include <stddef.h>
22716         #  endif
22717         #  include <wchar.h>
22718         #endif
22719         #ifdef HAVE_STDLIB_H
22720         #  include <stdlib.h>
22721         #endif
22722         #include <stdio.h>
22723
22724
22725
22726    typedef wchar_t ac__type_sizeof_;
22727 int
22728 main ()
22729 {
22730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22731 test_array [0] = 0
22732
22733   ;
22734   return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741   *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744   (eval "$ac_compile") 2>conftest.er1
22745   ac_status=$?
22746   grep -v '^ *+' conftest.er1 >conftest.err
22747   rm -f conftest.er1
22748   cat conftest.err >&5
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && {
22751          test -z "$ac_c_werror_flag" ||
22752          test ! -s conftest.err
22753        } && test -s conftest.$ac_objext; then
22754   ac_hi=-1 ac_mid=-1
22755   while :; do
22756     cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h.  */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h.  */
22762
22763         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22764         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22765         #  error "fake wchar_t"
22766         #endif
22767         #ifdef HAVE_WCHAR_H
22768         #  ifdef __CYGWIN__
22769         #    include <stddef.h>
22770         #  endif
22771         #  include <wchar.h>
22772         #endif
22773         #ifdef HAVE_STDLIB_H
22774         #  include <stdlib.h>
22775         #endif
22776         #include <stdio.h>
22777
22778
22779
22780    typedef wchar_t ac__type_sizeof_;
22781 int
22782 main ()
22783 {
22784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22785 test_array [0] = 0
22786
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 rm -f conftest.$ac_objext
22792 if { (ac_try="$ac_compile"
22793 case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798   (eval "$ac_compile") 2>conftest.er1
22799   ac_status=$?
22800   grep -v '^ *+' conftest.er1 >conftest.err
22801   rm -f conftest.er1
22802   cat conftest.err >&5
22803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804   (exit $ac_status); } && {
22805          test -z "$ac_c_werror_flag" ||
22806          test ! -s conftest.err
22807        } && test -s conftest.$ac_objext; then
22808   ac_lo=$ac_mid; break
22809 else
22810   echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813         ac_hi=`expr '(' $ac_mid ')' - 1`
22814                         if test $ac_mid -le $ac_hi; then
22815                           ac_lo= ac_hi=
22816                           break
22817                         fi
22818                         ac_mid=`expr 2 '*' $ac_mid`
22819 fi
22820
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822   done
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         ac_lo= ac_hi=
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 fi
22832
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834 # Binary search between lo and hi bounds.
22835 while test "x$ac_lo" != "x$ac_hi"; do
22836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22837   cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843
22844         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22845         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22846         #  error "fake wchar_t"
22847         #endif
22848         #ifdef HAVE_WCHAR_H
22849         #  ifdef __CYGWIN__
22850         #    include <stddef.h>
22851         #  endif
22852         #  include <wchar.h>
22853         #endif
22854         #ifdef HAVE_STDLIB_H
22855         #  include <stdlib.h>
22856         #endif
22857         #include <stdio.h>
22858
22859
22860
22861    typedef wchar_t ac__type_sizeof_;
22862 int
22863 main ()
22864 {
22865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22866 test_array [0] = 0
22867
22868   ;
22869   return 0;
22870 }
22871 _ACEOF
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_compile") 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } && {
22886          test -z "$ac_c_werror_flag" ||
22887          test ! -s conftest.err
22888        } && test -s conftest.$ac_objext; then
22889   ac_hi=$ac_mid
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894         ac_lo=`expr '(' $ac_mid ')' + 1`
22895 fi
22896
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 done
22899 case $ac_lo in
22900 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22901 '') if test "$ac_cv_type_wchar_t" = yes; then
22902      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22903 See \`config.log' for more details." >&5
22904 echo "$as_me: error: cannot compute sizeof (wchar_t)
22905 See \`config.log' for more details." >&2;}
22906    { (exit 77); exit 77; }; }
22907    else
22908      ac_cv_sizeof_wchar_t=0
22909    fi ;;
22910 esac
22911 else
22912   cat >conftest.$ac_ext <<_ACEOF
22913 /* confdefs.h.  */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h.  */
22918
22919         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22920         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22921         #  error "fake wchar_t"
22922         #endif
22923         #ifdef HAVE_WCHAR_H
22924         #  ifdef __CYGWIN__
22925         #    include <stddef.h>
22926         #  endif
22927         #  include <wchar.h>
22928         #endif
22929         #ifdef HAVE_STDLIB_H
22930         #  include <stdlib.h>
22931         #endif
22932         #include <stdio.h>
22933
22934
22935
22936    typedef wchar_t ac__type_sizeof_;
22937 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22938 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22939 #include <stdio.h>
22940 #include <stdlib.h>
22941 int
22942 main ()
22943 {
22944
22945   FILE *f = fopen ("conftest.val", "w");
22946   if (! f)
22947     return 1;
22948   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22949     {
22950       long int i = longval ();
22951       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22952         return 1;
22953       fprintf (f, "%ld\n", i);
22954     }
22955   else
22956     {
22957       unsigned long int i = ulongval ();
22958       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22959         return 1;
22960       fprintf (f, "%lu\n", i);
22961     }
22962   return ferror (f) || fclose (f) != 0;
22963
22964   ;
22965   return 0;
22966 }
22967 _ACEOF
22968 rm -f conftest$ac_exeext
22969 if { (ac_try="$ac_link"
22970 case "(($ac_try" in
22971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972   *) ac_try_echo=$ac_try;;
22973 esac
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975   (eval "$ac_link") 2>&5
22976   ac_status=$?
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22979   { (case "(($ac_try" in
22980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981   *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984   (eval "$ac_try") 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); }; }; then
22988   ac_cv_sizeof_wchar_t=`cat conftest.val`
22989 else
22990   echo "$as_me: program exited with status $ac_status" >&5
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 ( exit $ac_status )
22995 if test "$ac_cv_type_wchar_t" = yes; then
22996      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22997 See \`config.log' for more details." >&5
22998 echo "$as_me: error: cannot compute sizeof (wchar_t)
22999 See \`config.log' for more details." >&2;}
23000    { (exit 77); exit 77; }; }
23001    else
23002      ac_cv_sizeof_wchar_t=0
23003    fi
23004 fi
23005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23006 fi
23007 rm -f conftest.val
23008 fi
23009 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23010 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23011
23012
23013
23014 cat >>confdefs.h <<_ACEOF
23015 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23016 _ACEOF
23017
23018
23019 if test "$ac_cv_sizeof_wchar_t" != 0; then
23020     wxUSE_WCHAR_T=yes
23021 else
23022     wxUSE_WCHAR_T=no
23023 fi
23024
23025 { echo "$as_me:$LINENO: checking for va_copy" >&5
23026 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23027 if test "${wx_cv_func_va_copy+set}" = set; then
23028   echo $ECHO_N "(cached) $ECHO_C" >&6
23029 else
23030
23031         ac_ext=cpp
23032 ac_cpp='$CXXCPP $CPPFLAGS'
23033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23036
23037         cat >conftest.$ac_ext <<_ACEOF
23038
23039             #include <stdarg.h>
23040             void foo(char *f, ...)
23041             {
23042                 va_list ap1, ap2;
23043                 va_start(ap1, f);
23044                 va_copy(ap2, ap1);
23045                 va_end(ap2);
23046                 va_end(ap1);
23047             }
23048             int main()
23049             {
23050                 foo("hi", 17);
23051                 return 0;
23052             }
23053 _ACEOF
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (ac_try="$ac_link"
23056 case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_link") 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && {
23068          test -z "$ac_cxx_werror_flag" ||
23069          test ! -s conftest.err
23070        } && test -s conftest$ac_exeext &&
23071        $as_test_x conftest$ac_exeext; then
23072   wx_cv_func_va_copy=yes
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077         wx_cv_func_va_copy=no
23078
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23082       conftest$ac_exeext conftest.$ac_ext
23083         ac_ext=c
23084 ac_cpp='$CPP $CPPFLAGS'
23085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23088
23089
23090
23091 fi
23092 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23093 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23094
23095 if test $wx_cv_func_va_copy = "yes"; then
23096     cat >>confdefs.h <<\_ACEOF
23097 #define HAVE_VA_COPY 1
23098 _ACEOF
23099
23100 else
23101         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23102 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23103 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106
23107             if test "$cross_compiling" = yes; then
23108                   wx_cv_type_va_list_lvalue=yes
23109
23110 else
23111   cat >conftest.$ac_ext <<_ACEOF
23112
23113                 #include <stdarg.h>
23114                 int foo(char *f, ...)
23115                 {
23116                     va_list ap1, ap2;
23117                     va_start(ap1, f);
23118                     ap2 = ap1;
23119                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23120                         return 1;
23121                     va_end(ap2);
23122                     va_end(ap1);
23123                     return 0;
23124                 }
23125                 int main()
23126                 {
23127                     return foo("hi", 17);
23128                 }
23129 _ACEOF
23130 rm -f conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_link") 2>&5
23138   ac_status=$?
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23141   { (case "(($ac_try" in
23142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143   *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146   (eval "$ac_try") 2>&5
23147   ac_status=$?
23148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149   (exit $ac_status); }; }; then
23150   wx_cv_type_va_list_lvalue=yes
23151 else
23152   echo "$as_me: program exited with status $ac_status" >&5
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 ( exit $ac_status )
23157 wx_cv_type_va_list_lvalue=no
23158 fi
23159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23160 fi
23161
23162
23163
23164
23165 fi
23166 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23167 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23168
23169     if test $wx_cv_type_va_list_lvalue != "yes"; then
23170                         cat >>confdefs.h <<\_ACEOF
23171 #define VA_LIST_IS_ARRAY 1
23172 _ACEOF
23173
23174     fi
23175 fi
23176
23177 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23178
23179 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23180 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23181 if test "${wx_cv_have_variadic_macros+set}" = set; then
23182   echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184
23185                         ac_ext=cpp
23186 ac_cpp='$CXXCPP $CPPFLAGS'
23187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23190
23191         cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h.  */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h.  */
23197
23198                     #include <stdio.h>
23199                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23200
23201 int
23202 main ()
23203 {
23204
23205                     test("%s %d %p", "test", 1, 0);
23206
23207
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext
23213 if { (ac_try="$ac_compile"
23214 case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_compile") 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } && {
23226          test -z "$ac_cxx_werror_flag" ||
23227          test ! -s conftest.err
23228        } && test -s conftest.$ac_objext; then
23229   wx_cv_have_variadic_macros=yes
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234         wx_cv_have_variadic_macros=no
23235
23236 fi
23237
23238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239         ac_ext=c
23240 ac_cpp='$CPP $CPPFLAGS'
23241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23244
23245
23246
23247 fi
23248 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23249 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23250
23251 if test $wx_cv_have_variadic_macros = "yes"; then
23252     cat >>confdefs.h <<\_ACEOF
23253 #define HAVE_VARIADIC_MACROS 1
23254 _ACEOF
23255
23256 fi
23257
23258 fi
23259 # Check whether --enable-largefile was given.
23260 if test "${enable_largefile+set}" = set; then
23261   enableval=$enable_largefile;
23262 fi
23263
23264 if test "$enable_largefile" != no; then
23265             wx_largefile=no
23266
23267     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23268 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23269 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272
23273           cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279 #define _FILE_OFFSET_BITS 64
23280                           #include <sys/types.h>
23281 int
23282 main ()
23283 {
23284 typedef struct {
23285     unsigned int field: sizeof(off_t) == 8;
23286 } wxlf;
23287
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext
23293 if { (ac_try="$ac_compile"
23294 case "(($ac_try" in
23295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296   *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299   (eval "$ac_compile") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && {
23306          test -z "$ac_c_werror_flag" ||
23307          test ! -s conftest.err
23308        } && test -s conftest.$ac_objext; then
23309   ac_cv_sys_file_offset_bits=64
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314         ac_cv_sys_file_offset_bits=no
23315 fi
23316
23317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318
23319
23320 fi
23321 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23322 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23323
23324     if test "$ac_cv_sys_file_offset_bits" != no; then
23325         wx_largefile=yes
23326         cat >>confdefs.h <<_ACEOF
23327 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23328 _ACEOF
23329
23330     fi
23331
23332     if test "x$wx_largefile" != "xyes"; then
23333
23334     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23335 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23336 if test "${ac_cv_sys_large_files+set}" = set; then
23337   echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339
23340           cat >conftest.$ac_ext <<_ACEOF
23341 /* confdefs.h.  */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h.  */
23346 #define _LARGE_FILES 1
23347                           #include <sys/types.h>
23348 int
23349 main ()
23350 {
23351 typedef struct {
23352     unsigned int field: sizeof(off_t) == 8;
23353 } wxlf;
23354
23355   ;
23356   return 0;
23357 }
23358 _ACEOF
23359 rm -f conftest.$ac_objext
23360 if { (ac_try="$ac_compile"
23361 case "(($ac_try" in
23362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363   *) ac_try_echo=$ac_try;;
23364 esac
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366   (eval "$ac_compile") 2>conftest.er1
23367   ac_status=$?
23368   grep -v '^ *+' conftest.er1 >conftest.err
23369   rm -f conftest.er1
23370   cat conftest.err >&5
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && {
23373          test -z "$ac_c_werror_flag" ||
23374          test ! -s conftest.err
23375        } && test -s conftest.$ac_objext; then
23376   ac_cv_sys_large_files=1
23377 else
23378   echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23380
23381         ac_cv_sys_large_files=no
23382 fi
23383
23384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385
23386
23387 fi
23388 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23389 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23390
23391     if test "$ac_cv_sys_large_files" != no; then
23392         wx_largefile=yes
23393         cat >>confdefs.h <<_ACEOF
23394 #define _LARGE_FILES $ac_cv_sys_large_files
23395 _ACEOF
23396
23397     fi
23398
23399     fi
23400
23401     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23402 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23403     if test "x$wx_largefile" = "xyes"; then
23404         cat >>confdefs.h <<\_ACEOF
23405 #define HAVE_LARGEFILE_SUPPORT 1
23406 _ACEOF
23407
23408     fi
23409     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23410 echo "${ECHO_T}$wx_largefile" >&6; }
23411 fi
23412
23413
23414 if test "x$wx_largefile" = "xyes"; then
23415     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23416         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23417
23418                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23419             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23420 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23421 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424
23425                     ac_ext=cpp
23426 ac_cpp='$CXXCPP $CPPFLAGS'
23427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23430
23431                     cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437
23438 int
23439 main ()
23440 {
23441
23442                             #ifndef __STDC_EXT__
23443                                 choke me
23444                             #endif
23445
23446   ;
23447   return 0;
23448 }
23449 _ACEOF
23450 rm -f conftest.$ac_objext
23451 if { (ac_try="$ac_compile"
23452 case "(($ac_try" in
23453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454   *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457   (eval "$ac_compile") 2>conftest.er1
23458   ac_status=$?
23459   grep -v '^ *+' conftest.er1 >conftest.err
23460   rm -f conftest.er1
23461   cat conftest.err >&5
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); } && {
23464          test -z "$ac_cxx_werror_flag" ||
23465          test ! -s conftest.err
23466        } && test -s conftest.$ac_objext; then
23467   wx_cv_STDC_EXT_required=no
23468 else
23469   echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472         wx_cv_STDC_EXT_required=yes
23473
23474 fi
23475
23476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23477                     ac_ext=c
23478 ac_cpp='$CPP $CPPFLAGS'
23479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23482
23483
23484
23485 fi
23486 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23487 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23488             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23489                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23490             fi
23491         fi
23492     else
23493         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23494     fi
23495         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23496 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23497 if test "${ac_cv_sys_largefile_source+set}" = set; then
23498   echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23500   while :; do
23501   cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h.  */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h.  */
23507 #include <sys/types.h> /* for off_t */
23508      #include <stdio.h>
23509 int
23510 main ()
23511 {
23512 int (*fp) (FILE *, off_t, int) = fseeko;
23513      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23514   ;
23515   return 0;
23516 }
23517 _ACEOF
23518 rm -f conftest.$ac_objext conftest$ac_exeext
23519 if { (ac_try="$ac_link"
23520 case "(($ac_try" in
23521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522   *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525   (eval "$ac_link") 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } && {
23532          test -z "$ac_c_werror_flag" ||
23533          test ! -s conftest.err
23534        } && test -s conftest$ac_exeext &&
23535        $as_test_x conftest$ac_exeext; then
23536   ac_cv_sys_largefile_source=no; break
23537 else
23538   echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23540
23541
23542 fi
23543
23544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23545       conftest$ac_exeext conftest.$ac_ext
23546   cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h.  */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h.  */
23552 #define _LARGEFILE_SOURCE 1
23553 #include <sys/types.h> /* for off_t */
23554      #include <stdio.h>
23555 int
23556 main ()
23557 {
23558 int (*fp) (FILE *, off_t, int) = fseeko;
23559      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (ac_try="$ac_link"
23566 case "(($ac_try" in
23567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568   *) ac_try_echo=$ac_try;;
23569 esac
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571   (eval "$ac_link") 2>conftest.er1
23572   ac_status=$?
23573   grep -v '^ *+' conftest.er1 >conftest.err
23574   rm -f conftest.er1
23575   cat conftest.err >&5
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); } && {
23578          test -z "$ac_c_werror_flag" ||
23579          test ! -s conftest.err
23580        } && test -s conftest$ac_exeext &&
23581        $as_test_x conftest$ac_exeext; then
23582   ac_cv_sys_largefile_source=1; break
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587
23588 fi
23589
23590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23591       conftest$ac_exeext conftest.$ac_ext
23592   ac_cv_sys_largefile_source=unknown
23593   break
23594 done
23595 fi
23596 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23597 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23598 case $ac_cv_sys_largefile_source in #(
23599   no | unknown) ;;
23600   *)
23601 cat >>confdefs.h <<_ACEOF
23602 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23603 _ACEOF
23604 ;;
23605 esac
23606 rm -f conftest*
23607
23608 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23609 # in glibc 2.1.3, but that breaks too many other things.
23610 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23611 if test $ac_cv_sys_largefile_source != unknown; then
23612
23613 cat >>confdefs.h <<\_ACEOF
23614 #define HAVE_FSEEKO 1
23615 _ACEOF
23616
23617 fi
23618
23619     if test "$ac_cv_sys_largefile_source" != no; then
23620         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23621     fi
23622 fi
23623
23624 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23625 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23626 if test "${ac_cv_c_bigendian+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629   ac_cv_c_bigendian=unknown
23630 # See if sys/param.h defines the BYTE_ORDER macro.
23631 cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h.  */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h.  */
23637 #include <sys/types.h>
23638 #include <sys/param.h>
23639 int
23640 main ()
23641 {
23642
23643 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23644  bogus endian macros
23645 #endif
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext
23651 if { (ac_try="$ac_compile"
23652 case "(($ac_try" in
23653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654   *) ac_try_echo=$ac_try;;
23655 esac
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657   (eval "$ac_compile") 2>conftest.er1
23658   ac_status=$?
23659   grep -v '^ *+' conftest.er1 >conftest.err
23660   rm -f conftest.er1
23661   cat conftest.err >&5
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); } && {
23664          test -z "$ac_c_werror_flag" ||
23665          test ! -s conftest.err
23666        } && test -s conftest.$ac_objext; then
23667   # It does; now see whether it defined to BIG_ENDIAN or not.
23668 cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h.  */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h.  */
23674 #include <sys/types.h>
23675 #include <sys/param.h>
23676 int
23677 main ()
23678 {
23679
23680 #if BYTE_ORDER != BIG_ENDIAN
23681  not big endian
23682 #endif
23683   ;
23684   return 0;
23685 }
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691   *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694   (eval "$ac_compile") 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && {
23701          test -z "$ac_c_werror_flag" ||
23702          test ! -s conftest.err
23703        } && test -s conftest.$ac_objext; then
23704   ac_cv_c_bigendian=yes
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709         ac_cv_c_bigendian=no
23710 fi
23711
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713 else
23714   echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717
23718 fi
23719
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721 if test $ac_cv_c_bigendian = unknown; then
23722 if test "$cross_compiling" = yes; then
23723   ac_cv_c_bigendian=unknown
23724 else
23725   cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h.  */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h.  */
23731 main () {
23732   /* Are we little or big endian?  From Harbison&Steele.  */
23733   union
23734   {
23735     long l;
23736     char c[sizeof (long)];
23737   } u;
23738   u.l = 1;
23739   exit (u.c[sizeof (long) - 1] == 1);
23740 }
23741 _ACEOF
23742 rm -f conftest$ac_exeext
23743 if { (ac_try="$ac_link"
23744 case "(($ac_try" in
23745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746   *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749   (eval "$ac_link") 2>&5
23750   ac_status=$?
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23753   { (case "(($ac_try" in
23754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755   *) ac_try_echo=$ac_try;;
23756 esac
23757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758   (eval "$ac_try") 2>&5
23759   ac_status=$?
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); }; }; then
23762   ac_cv_c_bigendian=no
23763 else
23764   echo "$as_me: program exited with status $ac_status" >&5
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23767
23768 ( exit $ac_status )
23769 ac_cv_c_bigendian=yes
23770 fi
23771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23772 fi
23773
23774
23775 fi
23776 fi
23777 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23778 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23779 if test $ac_cv_c_bigendian = unknown; then
23780   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
23781 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
23782 fi
23783 if test $ac_cv_c_bigendian = yes; then
23784   cat >>confdefs.h <<\_ACEOF
23785 #define WORDS_BIGENDIAN 1
23786 _ACEOF
23787
23788 fi
23789
23790
23791
23792
23793     ac_ext=cpp
23794 ac_cpp='$CXXCPP $CPPFLAGS'
23795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798
23799
23800
23801 for ac_header in iostream
23802 do
23803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23807   echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
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
23817 #include <$ac_header>
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_compile") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_cxx_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest.$ac_objext; then
23836   eval "$as_ac_Header=yes"
23837 else
23838   echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841         eval "$as_ac_Header=no"
23842 fi
23843
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23845 fi
23846 ac_res=`eval echo '${'$as_ac_Header'}'`
23847                { echo "$as_me:$LINENO: result: $ac_res" >&5
23848 echo "${ECHO_T}$ac_res" >&6; }
23849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23850   cat >>confdefs.h <<_ACEOF
23851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23852 _ACEOF
23853
23854 fi
23855
23856 done
23857
23858
23859     if test "$ac_cv_header_iostream" = "yes" ; then
23860       :
23861     else
23862       cat >>confdefs.h <<\_ACEOF
23863 #define wxUSE_IOSTREAMH 1
23864 _ACEOF
23865
23866     fi
23867
23868     ac_ext=c
23869 ac_cpp='$CPP $CPPFLAGS'
23870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23873
23874
23875
23876
23877   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23878 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23879 if test "${wx_cv_cpp_bool+set}" = set; then
23880   echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882
23883
23884     ac_ext=cpp
23885 ac_cpp='$CXXCPP $CPPFLAGS'
23886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23889
23890
23891     cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h.  */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h.  */
23897
23898
23899 int
23900 main ()
23901 {
23902
23903         bool b = true;
23904
23905         return 0;
23906
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 rm -f conftest.$ac_objext
23912 if { (ac_try="$ac_compile"
23913 case "(($ac_try" in
23914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915   *) ac_try_echo=$ac_try;;
23916 esac
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918   (eval "$ac_compile") 2>conftest.er1
23919   ac_status=$?
23920   grep -v '^ *+' conftest.er1 >conftest.err
23921   rm -f conftest.er1
23922   cat conftest.err >&5
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } && {
23925          test -z "$ac_cxx_werror_flag" ||
23926          test ! -s conftest.err
23927        } && test -s conftest.$ac_objext; then
23928
23929         wx_cv_cpp_bool=yes
23930
23931 else
23932   echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935
23936         wx_cv_cpp_bool=no
23937
23938
23939 fi
23940
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942
23943     ac_ext=c
23944 ac_cpp='$CPP $CPPFLAGS'
23945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23948
23949
23950 fi
23951 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23952 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23953
23954   if test "$wx_cv_cpp_bool" = "yes"; then
23955     cat >>confdefs.h <<\_ACEOF
23956 #define HAVE_BOOL 1
23957 _ACEOF
23958
23959   fi
23960
23961
23962
23963   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23964 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23965 if test "${wx_cv_explicit+set}" = set; then
23966   echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23968
23969
23970     ac_ext=cpp
23971 ac_cpp='$CXXCPP $CPPFLAGS'
23972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23975
23976
23977             cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h.  */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h.  */
23983
23984         class Foo { public: explicit Foo(int) {} };
23985
23986 int
23987 main ()
23988 {
23989
23990         return 0;
23991
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (ac_try="$ac_compile"
23998 case "(($ac_try" in
23999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000   *) ac_try_echo=$ac_try;;
24001 esac
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003   (eval "$ac_compile") 2>conftest.er1
24004   ac_status=$?
24005   grep -v '^ *+' conftest.er1 >conftest.err
24006   rm -f conftest.er1
24007   cat conftest.err >&5
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); } && {
24010          test -z "$ac_cxx_werror_flag" ||
24011          test ! -s conftest.err
24012        } && test -s conftest.$ac_objext; then
24013
24014         cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020
24021                 class Foo { public: explicit Foo(int) {} };
24022                 static void TakeFoo(const Foo& foo) { }
24023
24024 int
24025 main ()
24026 {
24027
24028                 TakeFoo(17);
24029                 return 0;
24030
24031   ;
24032   return 0;
24033 }
24034 _ACEOF
24035 rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039   *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042   (eval "$ac_compile") 2>conftest.er1
24043   ac_status=$?
24044   grep -v '^ *+' conftest.er1 >conftest.err
24045   rm -f conftest.er1
24046   cat conftest.err >&5
24047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048   (exit $ac_status); } && {
24049          test -z "$ac_cxx_werror_flag" ||
24050          test ! -s conftest.err
24051        } && test -s conftest.$ac_objext; then
24052   wx_cv_explicit=no
24053 else
24054   echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24056
24057         wx_cv_explicit=yes
24058
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062
24063 else
24064   echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24066
24067         wx_cv_explicit=no
24068
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072
24073     ac_ext=c
24074 ac_cpp='$CPP $CPPFLAGS'
24075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078
24079
24080 fi
24081 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24082 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24083
24084   if test "$wx_cv_explicit" = "yes"; then
24085     cat >>confdefs.h <<\_ACEOF
24086 #define HAVE_EXPLICIT 1
24087 _ACEOF
24088
24089   fi
24090
24091
24092 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
24093 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
24094 if test "${ac_cv_cxx_const_cast+set}" = set; then
24095   echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24097
24098  ac_ext=cpp
24099 ac_cpp='$CXXCPP $CPPFLAGS'
24100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24103
24104  cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h.  */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h.  */
24110
24111 int
24112 main ()
24113 {
24114 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
24115   ;
24116   return 0;
24117 }
24118 _ACEOF
24119 rm -f conftest.$ac_objext
24120 if { (ac_try="$ac_compile"
24121 case "(($ac_try" in
24122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123   *) ac_try_echo=$ac_try;;
24124 esac
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126   (eval "$ac_compile") 2>conftest.er1
24127   ac_status=$?
24128   grep -v '^ *+' conftest.er1 >conftest.err
24129   rm -f conftest.er1
24130   cat conftest.err >&5
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); } && {
24133          test -z "$ac_cxx_werror_flag" ||
24134          test ! -s conftest.err
24135        } && test -s conftest.$ac_objext; then
24136   ac_cv_cxx_const_cast=yes
24137 else
24138   echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141         ac_cv_cxx_const_cast=no
24142 fi
24143
24144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145  ac_ext=c
24146 ac_cpp='$CPP $CPPFLAGS'
24147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24150
24151
24152 fi
24153 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
24154 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
24155 if test "$ac_cv_cxx_const_cast" = yes; then
24156
24157 cat >>confdefs.h <<\_ACEOF
24158 #define HAVE_CONST_CAST
24159 _ACEOF
24160
24161 fi
24162
24163 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
24164 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
24165 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
24166   echo $ECHO_N "(cached) $ECHO_C" >&6
24167 else
24168
24169  ac_ext=cpp
24170 ac_cpp='$CXXCPP $CPPFLAGS'
24171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24174
24175  cat >conftest.$ac_ext <<_ACEOF
24176 /* confdefs.h.  */
24177 _ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h.  */
24181 #include <typeinfo>
24182 class Base { public : Base () {} virtual void f () = 0;};
24183 class Derived : public Base { public : Derived () {} virtual void f () {} };
24184 class Unrelated { public : Unrelated () {} };
24185 int g (Unrelated&) { return 0; }
24186 int
24187 main ()
24188 {
24189
24190 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
24191   ;
24192   return 0;
24193 }
24194 _ACEOF
24195 rm -f conftest.$ac_objext
24196 if { (ac_try="$ac_compile"
24197 case "(($ac_try" in
24198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199   *) ac_try_echo=$ac_try;;
24200 esac
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202   (eval "$ac_compile") 2>conftest.er1
24203   ac_status=$?
24204   grep -v '^ *+' conftest.er1 >conftest.err
24205   rm -f conftest.er1
24206   cat conftest.err >&5
24207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208   (exit $ac_status); } && {
24209          test -z "$ac_cxx_werror_flag" ||
24210          test ! -s conftest.err
24211        } && test -s conftest.$ac_objext; then
24212   ac_cv_cxx_reinterpret_cast=yes
24213 else
24214   echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24216
24217         ac_cv_cxx_reinterpret_cast=no
24218 fi
24219
24220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221  ac_ext=c
24222 ac_cpp='$CPP $CPPFLAGS'
24223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24226
24227
24228 fi
24229 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
24230 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
24231 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
24232
24233 cat >>confdefs.h <<\_ACEOF
24234 #define HAVE_REINTERPRET_CAST
24235 _ACEOF
24236
24237 fi
24238
24239 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
24240 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
24241 if test "${ac_cv_cxx_static_cast+set}" = set; then
24242   echo $ECHO_N "(cached) $ECHO_C" >&6
24243 else
24244
24245  ac_ext=cpp
24246 ac_cpp='$CXXCPP $CPPFLAGS'
24247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24250
24251  cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24257 #include <typeinfo>
24258 class Base { public : Base () {} virtual void f () = 0; };
24259 class Derived : public Base { public : Derived () {} virtual void f () {} };
24260 int g (Derived&) { return 0; }
24261 int
24262 main ()
24263 {
24264
24265 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
24266   ;
24267   return 0;
24268 }
24269 _ACEOF
24270 rm -f conftest.$ac_objext
24271 if { (ac_try="$ac_compile"
24272 case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277   (eval "$ac_compile") 2>conftest.er1
24278   ac_status=$?
24279   grep -v '^ *+' conftest.er1 >conftest.err
24280   rm -f conftest.er1
24281   cat conftest.err >&5
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); } && {
24284          test -z "$ac_cxx_werror_flag" ||
24285          test ! -s conftest.err
24286        } && test -s conftest.$ac_objext; then
24287   ac_cv_cxx_static_cast=yes
24288 else
24289   echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24291
24292         ac_cv_cxx_static_cast=no
24293 fi
24294
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296  ac_ext=c
24297 ac_cpp='$CPP $CPPFLAGS'
24298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24301
24302
24303 fi
24304 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24305 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24306 if test "$ac_cv_cxx_static_cast" = yes; then
24307
24308 cat >>confdefs.h <<\_ACEOF
24309 #define HAVE_STATIC_CAST
24310 _ACEOF
24311
24312 fi
24313
24314
24315 if test "x$SUNCXX" = xyes; then
24316     CXXFLAGS="-features=tmplife $CXXFLAGS"
24317 fi
24318
24319 if test "x$SUNCC" = xyes; then
24320     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24321 fi
24322
24323 if test "x$SGICC" = "xyes"; then
24324     CFLAGS="-woff 3970 $CFLAGS"
24325 fi
24326 if test "x$SGICXX" = "xyes"; then
24327     CXXFLAGS="-woff 3970 $CXXFLAGS"
24328 fi
24329
24330 if test "x$HPCC" = "xyes"; then
24331                     CFLAGS="+W 2011,2450 $CFLAGS"
24332 fi
24333 if test "x$HPCXX" = "xyes"; then
24334             CXXFLAGS="+W 2340 $CXXFLAGS"
24335 fi
24336
24337 if test "x$COMPAQCXX" = "xyes"; then
24338                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24339 fi
24340
24341 ac_ext=cpp
24342 ac_cpp='$CXXCPP $CPPFLAGS'
24343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24346
24347
24348 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24349     if test "$wxUSE_UNICODE" = "yes"; then
24350         std_string="std::wstring"
24351         char_type="wchar_t"
24352     else
24353         std_string="std::string"
24354         char_type="char"
24355     fi
24356
24357         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24358 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24359 if test "${wx_cv_class_stdstring+set}" = set; then
24360   echo $ECHO_N "(cached) $ECHO_C" >&6
24361 else
24362
24363             cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h.  */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h.  */
24369 #include <string>
24370 int
24371 main ()
24372 {
24373 $std_string foo;
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext
24379 if { (ac_try="$ac_compile"
24380 case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385   (eval "$ac_compile") 2>conftest.er1
24386   ac_status=$?
24387   grep -v '^ *+' conftest.er1 >conftest.err
24388   rm -f conftest.er1
24389   cat conftest.err >&5
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); } && {
24392          test -z "$ac_cxx_werror_flag" ||
24393          test ! -s conftest.err
24394        } && test -s conftest.$ac_objext; then
24395   wx_cv_class_stdstring=yes
24396 else
24397   echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24399
24400         wx_cv_class_stdstring=no
24401
24402 fi
24403
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405
24406
24407 fi
24408 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24409 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24410
24411     if test "$wx_cv_class_stdstring" = yes; then
24412         if test "$wxUSE_UNICODE" = "yes"; then
24413             cat >>confdefs.h <<\_ACEOF
24414 #define HAVE_STD_WSTRING 1
24415 _ACEOF
24416
24417         fi
24418                     else
24419         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24420 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24421 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24422   echo $ECHO_N "(cached) $ECHO_C" >&6
24423 else
24424
24425                 cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h.  */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h.  */
24431
24432                     #ifdef HAVE_WCHAR_H
24433                     #  ifdef __CYGWIN__
24434                     #    include <stddef.h>
24435                     #  endif
24436                     #  include <wchar.h>
24437                     #endif
24438                     #ifdef HAVE_STDLIB_H
24439                     #  include <stdlib.h>
24440                     #endif
24441                     #include <stdio.h>
24442                     #include <string>
24443
24444 int
24445 main ()
24446 {
24447 std::basic_string<$char_type> foo;
24448                      const $char_type* dummy = foo.c_str();
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext
24454 if { (ac_try="$ac_compile"
24455 case "(($ac_try" in
24456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457   *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460   (eval "$ac_compile") 2>conftest.er1
24461   ac_status=$?
24462   grep -v '^ *+' conftest.er1 >conftest.err
24463   rm -f conftest.er1
24464   cat conftest.err >&5
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); } && {
24467          test -z "$ac_cxx_werror_flag" ||
24468          test ! -s conftest.err
24469        } && test -s conftest.$ac_objext; then
24470   wx_cv_class_stdbasicstring=yes
24471 else
24472   echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24474
24475         wx_cv_class_stdbasicstring=no
24476
24477 fi
24478
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480
24481
24482 fi
24483 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24484 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24485
24486         if test "$wx_cv_class_stdbasicstring" != yes; then
24487             if test "$wxUSE_STL" = "yes"; then
24488                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24489 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24490    { (exit 1); exit 1; }; }
24491             elif test "$wxUSE_STD_STRING" = "yes"; then
24492                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24493 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24494    { (exit 1); exit 1; }; }
24495             else
24496                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24497 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24498                 wxUSE_STD_STRING=no
24499             fi
24500         fi
24501     fi
24502 fi
24503
24504 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24505     { echo "$as_me:$LINENO: checking for std::istream" >&5
24506 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24507 if test "${ac_cv_type_std__istream+set}" = set; then
24508   echo $ECHO_N "(cached) $ECHO_C" >&6
24509 else
24510   cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516 #include <iostream>
24517
24518 typedef std::istream ac__type_new_;
24519 int
24520 main ()
24521 {
24522 if ((ac__type_new_ *) 0)
24523   return 0;
24524 if (sizeof (ac__type_new_))
24525   return 0;
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534   *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537   (eval "$ac_compile") 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && {
24544          test -z "$ac_cxx_werror_flag" ||
24545          test ! -s conftest.err
24546        } && test -s conftest.$ac_objext; then
24547   ac_cv_type_std__istream=yes
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552         ac_cv_type_std__istream=no
24553 fi
24554
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556 fi
24557 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24558 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24559 if test $ac_cv_type_std__istream = yes; then
24560
24561 cat >>confdefs.h <<_ACEOF
24562 #define HAVE_STD__ISTREAM 1
24563 _ACEOF
24564
24565
24566 else
24567   wxUSE_STD_IOSTREAM=no
24568 fi
24569 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24570 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24571 if test "${ac_cv_type_std__ostream+set}" = set; then
24572   echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574   cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580 #include <iostream>
24581
24582 typedef std::ostream ac__type_new_;
24583 int
24584 main ()
24585 {
24586 if ((ac__type_new_ *) 0)
24587   return 0;
24588 if (sizeof (ac__type_new_))
24589   return 0;
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598   *) ac_try_echo=$ac_try;;
24599 esac
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601   (eval "$ac_compile") 2>conftest.er1
24602   ac_status=$?
24603   grep -v '^ *+' conftest.er1 >conftest.err
24604   rm -f conftest.er1
24605   cat conftest.err >&5
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); } && {
24608          test -z "$ac_cxx_werror_flag" ||
24609          test ! -s conftest.err
24610        } && test -s conftest.$ac_objext; then
24611   ac_cv_type_std__ostream=yes
24612 else
24613   echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616         ac_cv_type_std__ostream=no
24617 fi
24618
24619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24620 fi
24621 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24622 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24623 if test $ac_cv_type_std__ostream = yes; then
24624
24625 cat >>confdefs.h <<_ACEOF
24626 #define HAVE_STD__OSTREAM 1
24627 _ACEOF
24628
24629
24630 else
24631   wxUSE_STD_IOSTREAM=no
24632 fi
24633
24634
24635     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24636         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24637             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24638 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24639    { (exit 1); exit 1; }; }
24640         else
24641             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24642 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24643         fi
24644     fi
24645 fi
24646
24647 if test "$wxUSE_STL" = "yes"; then
24648         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24649 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24650 if test "${wx_cv_lib_stl+set}" = set; then
24651   echo $ECHO_N "(cached) $ECHO_C" >&6
24652 else
24653   cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659 #include <string>
24660             #include <functional>
24661             #include <algorithm>
24662             #include <vector>
24663             #include <list>
24664 int
24665 main ()
24666 {
24667 std::vector<int> moo;
24668              std::list<int> foo;
24669              std::vector<int>::iterator it =
24670                  std::find_if(moo.begin(), moo.end(),
24671                               std::bind2nd(std::less<int>(), 3));
24672   ;
24673   return 0;
24674 }
24675 _ACEOF
24676 rm -f conftest.$ac_objext
24677 if { (ac_try="$ac_compile"
24678 case "(($ac_try" in
24679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680   *) ac_try_echo=$ac_try;;
24681 esac
24682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24683   (eval "$ac_compile") 2>conftest.er1
24684   ac_status=$?
24685   grep -v '^ *+' conftest.er1 >conftest.err
24686   rm -f conftest.er1
24687   cat conftest.err >&5
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); } && {
24690          test -z "$ac_cxx_werror_flag" ||
24691          test ! -s conftest.err
24692        } && test -s conftest.$ac_objext; then
24693   wx_cv_lib_stl=yes
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698         wx_cv_lib_stl=no
24699
24700 fi
24701
24702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24703
24704 fi
24705 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24706 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24707
24708     if test "$wx_cv_lib_stl" != yes; then
24709          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24710 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24711    { (exit 1); exit 1; }; }
24712     fi
24713
24714         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24715 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24716 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24717   echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719   cat >conftest.$ac_ext <<_ACEOF
24720 /* confdefs.h.  */
24721 _ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h.  */
24725 #include <string>
24726 int
24727 main ()
24728 {
24729 std::string foo, bar;
24730             foo.compare(bar);
24731             foo.compare(1, 1, bar);
24732             foo.compare(1, 1, bar, 1, 1);
24733             foo.compare("");
24734             foo.compare(1, 1, "");
24735             foo.compare(1, 1, "", 2);
24736   ;
24737   return 0;
24738 }
24739 _ACEOF
24740 rm -f conftest.$ac_objext
24741 if { (ac_try="$ac_compile"
24742 case "(($ac_try" in
24743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744   *) ac_try_echo=$ac_try;;
24745 esac
24746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747   (eval "$ac_compile") 2>conftest.er1
24748   ac_status=$?
24749   grep -v '^ *+' conftest.er1 >conftest.err
24750   rm -f conftest.er1
24751   cat conftest.err >&5
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); } && {
24754          test -z "$ac_cxx_werror_flag" ||
24755          test ! -s conftest.err
24756        } && test -s conftest.$ac_objext; then
24757   wx_cv_func_stdstring_compare=yes
24758 else
24759   echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24761
24762         wx_cv_func_stdstring_compare=no
24763
24764 fi
24765
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767
24768 fi
24769 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24770 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24771
24772     if test "$wx_cv_func_stdstring_compare" = yes; then
24773         cat >>confdefs.h <<\_ACEOF
24774 #define HAVE_STD_STRING_COMPARE 1
24775 _ACEOF
24776
24777     fi
24778
24779     if test "$wx_cv_class_gnuhashmapset" = yes; then
24780          cat >>confdefs.h <<\_ACEOF
24781 #define HAVE_EXT_HASH_MAP 1
24782 _ACEOF
24783
24784          cat >>confdefs.h <<\_ACEOF
24785 #define HAVE_GNU_CXX_HASH_MAP 1
24786 _ACEOF
24787
24788     fi
24789
24790     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24791 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24792 if test "${ac_cv_header_unordered_map+set}" = set; then
24793   echo $ECHO_N "(cached) $ECHO_C" >&6
24794 else
24795   cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h.  */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h.  */
24801
24802
24803
24804 #include <unordered_map>
24805 _ACEOF
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810   *) ac_try_echo=$ac_try;;
24811 esac
24812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813   (eval "$ac_compile") 2>conftest.er1
24814   ac_status=$?
24815   grep -v '^ *+' conftest.er1 >conftest.err
24816   rm -f conftest.er1
24817   cat conftest.err >&5
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); } && {
24820          test -z "$ac_cxx_werror_flag" ||
24821          test ! -s conftest.err
24822        } && test -s conftest.$ac_objext; then
24823   ac_cv_header_unordered_map=yes
24824 else
24825   echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828         ac_cv_header_unordered_map=no
24829 fi
24830
24831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832 fi
24833 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24834 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24835 if test $ac_cv_header_unordered_map = yes; then
24836   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24837 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24838 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847 #include <unordered_map>
24848                 #include <unordered_set>
24849 int
24850 main ()
24851 {
24852 std::unordered_map<double*, char*> test1;
24853                  std::unordered_set<char*> test2;
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext
24859 if { (ac_try="$ac_compile"
24860 case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865   (eval "$ac_compile") 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } && {
24872          test -z "$ac_cxx_werror_flag" ||
24873          test ! -s conftest.err
24874        } && test -s conftest.$ac_objext; then
24875   wx_cv_class_stdunorderedmapset=yes
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         wx_cv_class_stdunorderedmapset=no
24881 fi
24882
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884
24885
24886 fi
24887 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24888 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24889 fi
24890
24891
24892
24893     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24894          cat >>confdefs.h <<\_ACEOF
24895 #define HAVE_STD_UNORDERED_MAP 1
24896 _ACEOF
24897
24898          cat >>confdefs.h <<\_ACEOF
24899 #define HAVE_STD_UNORDERED_SET 1
24900 _ACEOF
24901
24902     else
24903         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24904 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24905 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908   cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914
24915
24916
24917 #include <tr1/unordered_map>
24918 _ACEOF
24919 rm -f conftest.$ac_objext
24920 if { (ac_try="$ac_compile"
24921 case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926   (eval "$ac_compile") 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } && {
24933          test -z "$ac_cxx_werror_flag" ||
24934          test ! -s conftest.err
24935        } && test -s conftest.$ac_objext; then
24936   ac_cv_header_tr1_unordered_map=yes
24937 else
24938   echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941         ac_cv_header_tr1_unordered_map=no
24942 fi
24943
24944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945 fi
24946 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24947 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24948 if test $ac_cv_header_tr1_unordered_map = yes; then
24949   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24950 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24951 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24952   echo $ECHO_N "(cached) $ECHO_C" >&6
24953 else
24954   cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h.  */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h.  */
24960 #include <tr1/unordered_map>
24961                     #include <tr1/unordered_set>
24962 int
24963 main ()
24964 {
24965 std::tr1::unordered_map<double*, char*> test1;
24966                      std::tr1::unordered_set<char*> test2;
24967             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24968             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24969             #endif
24970   ;
24971   return 0;
24972 }
24973 _ACEOF
24974 rm -f conftest.$ac_objext
24975 if { (ac_try="$ac_compile"
24976 case "(($ac_try" in
24977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978   *) ac_try_echo=$ac_try;;
24979 esac
24980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981   (eval "$ac_compile") 2>conftest.er1
24982   ac_status=$?
24983   grep -v '^ *+' conftest.er1 >conftest.err
24984   rm -f conftest.er1
24985   cat conftest.err >&5
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); } && {
24988          test -z "$ac_cxx_werror_flag" ||
24989          test ! -s conftest.err
24990        } && test -s conftest.$ac_objext; then
24991   wx_cv_class_tr1unorderedmapset=yes
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996         wx_cv_class_tr1unorderedmapset=no
24997 fi
24998
24999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000
25001
25002 fi
25003 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25004 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25005 fi
25006
25007
25008
25009         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25010             cat >>confdefs.h <<\_ACEOF
25011 #define HAVE_TR1_UNORDERED_MAP 1
25012 _ACEOF
25013
25014             cat >>confdefs.h <<\_ACEOF
25015 #define HAVE_TR1_UNORDERED_SET 1
25016 _ACEOF
25017
25018         else
25019                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25020 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25021 if test "${ac_cv_header_hash_map+set}" = set; then
25022   echo $ECHO_N "(cached) $ECHO_C" >&6
25023 else
25024   cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h.  */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h.  */
25030
25031
25032
25033 #include <hash_map>
25034 _ACEOF
25035 rm -f conftest.$ac_objext
25036 if { (ac_try="$ac_compile"
25037 case "(($ac_try" in
25038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039   *) ac_try_echo=$ac_try;;
25040 esac
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042   (eval "$ac_compile") 2>conftest.er1
25043   ac_status=$?
25044   grep -v '^ *+' conftest.er1 >conftest.err
25045   rm -f conftest.er1
25046   cat conftest.err >&5
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); } && {
25049          test -z "$ac_cxx_werror_flag" ||
25050          test ! -s conftest.err
25051        } && test -s conftest.$ac_objext; then
25052   ac_cv_header_hash_map=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057         ac_cv_header_hash_map=no
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 fi
25062 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25063 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25064 if test $ac_cv_header_hash_map = yes; then
25065   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25066 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25067 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25068   echo $ECHO_N "(cached) $ECHO_C" >&6
25069 else
25070   cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h.  */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h.  */
25076 #include <hash_map>
25077                         #include <hash_set>
25078 int
25079 main ()
25080 {
25081 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25082                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest.$ac_objext
25088 if { (ac_try="$ac_compile"
25089 case "(($ac_try" in
25090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091   *) ac_try_echo=$ac_try;;
25092 esac
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094   (eval "$ac_compile") 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } && {
25101          test -z "$ac_cxx_werror_flag" ||
25102          test ! -s conftest.err
25103        } && test -s conftest.$ac_objext; then
25104   wx_cv_class_stdhashmapset=yes
25105 else
25106   echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25108
25109         wx_cv_class_stdhashmapset=no
25110 fi
25111
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113
25114
25115 fi
25116 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25117 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25118 fi
25119
25120
25121
25122             if test "$wx_cv_class_stdhashmapset" = yes; then
25123                 cat >>confdefs.h <<\_ACEOF
25124 #define HAVE_HASH_MAP 1
25125 _ACEOF
25126
25127                 cat >>confdefs.h <<\_ACEOF
25128 #define HAVE_STD_HASH_MAP 1
25129 _ACEOF
25130
25131             fi
25132
25133             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25134 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25135 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138   cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144
25145
25146
25147 #include <ext/hash_map>
25148 _ACEOF
25149 rm -f conftest.$ac_objext
25150 if { (ac_try="$ac_compile"
25151 case "(($ac_try" in
25152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153   *) ac_try_echo=$ac_try;;
25154 esac
25155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25156   (eval "$ac_compile") 2>conftest.er1
25157   ac_status=$?
25158   grep -v '^ *+' conftest.er1 >conftest.err
25159   rm -f conftest.er1
25160   cat conftest.err >&5
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); } && {
25163          test -z "$ac_cxx_werror_flag" ||
25164          test ! -s conftest.err
25165        } && test -s conftest.$ac_objext; then
25166   ac_cv_header_ext_hash_map=yes
25167 else
25168   echo "$as_me: failed program was:" >&5
25169 sed 's/^/| /' conftest.$ac_ext >&5
25170
25171         ac_cv_header_ext_hash_map=no
25172 fi
25173
25174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25175 fi
25176 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25177 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25178 if test $ac_cv_header_ext_hash_map = yes; then
25179   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25180 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25181 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25182   echo $ECHO_N "(cached) $ECHO_C" >&6
25183 else
25184   cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 #include <ext/hash_map>
25191                         #include <ext/hash_set>
25192 int
25193 main ()
25194 {
25195 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25196                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25197   ;
25198   return 0;
25199 }
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205   *) ac_try_echo=$ac_try;;
25206 esac
25207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208   (eval "$ac_compile") 2>conftest.er1
25209   ac_status=$?
25210   grep -v '^ *+' conftest.er1 >conftest.err
25211   rm -f conftest.er1
25212   cat conftest.err >&5
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); } && {
25215          test -z "$ac_cxx_werror_flag" ||
25216          test ! -s conftest.err
25217        } && test -s conftest.$ac_objext; then
25218   wx_cv_class_gnuhashmapset=yes
25219 else
25220   echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25222
25223         wx_cv_class_gnuhashmapset=no
25224 fi
25225
25226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25227
25228
25229 fi
25230 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25231 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25232 fi
25233
25234
25235
25236         fi
25237     fi
25238 fi
25239
25240
25241
25242   if test -n "$GCC"; then
25243     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25244 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25245     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25246   echo $ECHO_N "(cached) $ECHO_C" >&6
25247 else
25248
25249       cat >conftest.$ac_ext <<_ACEOF
25250 /* confdefs.h.  */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h.  */
25255
25256 int
25257 main ()
25258 {
25259
25260           unsigned int value=0;
25261           /* wxAtomicInc doesn't use return value here */
25262           __sync_fetch_and_add(&value, 2);
25263           __sync_sub_and_fetch(&value, 1);
25264           /* but wxAtomicDec does, so mimic that: */
25265           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25266
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext conftest$ac_exeext
25272 if { (ac_try="$ac_link"
25273 case "(($ac_try" in
25274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275   *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278   (eval "$ac_link") 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } && {
25285          test -z "$ac_cxx_werror_flag" ||
25286          test ! -s conftest.err
25287        } && test -s conftest$ac_exeext &&
25288        $as_test_x conftest$ac_exeext; then
25289   wx_cv_cc_gcc_atomic_builtins=yes
25290 else
25291   echo "$as_me: failed program was:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25293
25294         wx_cv_cc_gcc_atomic_builtins=no
25295 fi
25296
25297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25298       conftest$ac_exeext conftest.$ac_ext
25299
25300 fi
25301
25302     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25303 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25304     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25305       cat >>confdefs.h <<\_ACEOF
25306 #define HAVE_GCC_ATOMIC_BUILTINS 1
25307 _ACEOF
25308
25309     fi
25310   fi
25311
25312
25313 ac_ext=c
25314 ac_cpp='$CPP $CPPFLAGS'
25315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25318
25319
25320
25321 SEARCH_INCLUDE="\
25322     /usr/local/include        \
25323     /usr/local/X11/include    \
25324     /usr/local/include/X11    \
25325     /usr/local/X11R6/include  \
25326     /usr/local/include/X11R6  \
25327                               \
25328     /usr/Motif-2.1/include    \
25329     /usr/Motif-1.2/include    \
25330     /usr/include/Motif1.2     \
25331                               \
25332     /usr/dt/include           \
25333     /usr/openwin/include      \
25334                               \
25335     /usr/include/Xm           \
25336                               \
25337     /usr/X11R6/include        \
25338     /usr/X11R6.4/include      \
25339                               \
25340     /usr/include/X11R6        \
25341                               \
25342     /usr/X11/include          \
25343     /usr/include/X11          \
25344                               \
25345     /usr/XFree86/include/X11  \
25346     /usr/pkg/include          \
25347                               \
25348     /usr/local/X1R5/include  \
25349     /usr/local/include/X11R5  \
25350     /usr/X11R5/include        \
25351     /usr/include/X11R5        \
25352                               \
25353     /usr/local/X11R4/include  \
25354     /usr/local/include/X11R4  \
25355     /usr/X11R4/include        \
25356     /usr/include/X11R4        \
25357                               \
25358     /usr/openwin/share/include"
25359
25360 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25361 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25362
25363 case "${host}" in
25364     *-*-irix6* )
25365         if test "${wx_cv_std_libpath+set}" = set; then
25366   echo $ECHO_N "(cached) $ECHO_C" >&6
25367 else
25368
25369                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25370                     for e in a so sl dylib dll.a; do
25371                         libc="$d/libc.$e"
25372                         if test -f $libc; then
25373                             save_LIBS="$LIBS"
25374                             LIBS="$libc"
25375                             cat >conftest.$ac_ext <<_ACEOF
25376 int main() { return 0; }
25377 _ACEOF
25378 rm -f conftest.$ac_objext conftest$ac_exeext
25379 if { (ac_try="$ac_link"
25380 case "(($ac_try" in
25381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382   *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385   (eval "$ac_link") 2>conftest.er1
25386   ac_status=$?
25387   grep -v '^ *+' conftest.er1 >conftest.err
25388   rm -f conftest.er1
25389   cat conftest.err >&5
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); } && {
25392          test -z "$ac_c_werror_flag" ||
25393          test ! -s conftest.err
25394        } && test -s conftest$ac_exeext &&
25395        $as_test_x conftest$ac_exeext; then
25396   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25397 else
25398   echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25400
25401
25402 fi
25403
25404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25405       conftest$ac_exeext conftest.$ac_ext
25406                             LIBS="$save_LIBS"
25407                             if test "x$wx_cv_std_libpath" != "x"; then
25408                                 break 2
25409                             fi
25410                         fi
25411                     done
25412                 done
25413                 if test "x$wx_cv_std_libpath" = "x"; then
25414                     wx_cv_std_libpath="lib"
25415                 fi
25416
25417
25418 fi
25419
25420         ;;
25421
25422     *-*-solaris2* )
25423                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25424             wx_cv_std_libpath="lib/64"
25425         else
25426             wx_cv_std_libpath="lib"
25427         fi
25428         ;;
25429
25430     *-*-linux* )
25431                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25432                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25433             wx_cv_std_libpath="lib64"
25434         else
25435             wx_cv_std_libpath="lib"
25436         fi
25437         ;;
25438
25439     *)
25440         wx_cv_std_libpath="lib";
25441         ;;
25442 esac
25443
25444 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25445 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25446
25447 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25448
25449 if test "$build" != "$host" -a "$GCC" = yes; then
25450                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25451         cross_root=`dirname $cross_root`
25452         cross_root=`dirname $cross_root`
25453
25454                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25455         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25456         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25457
25458                 if test -z "$PKG_CONFIG_PATH"; then
25459             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25460             export PKG_CONFIG_PATH
25461         fi
25462
25463                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25464
25465 ac_find_includes=
25466 for ac_dir in $SEARCH_INCLUDE /usr/include;
25467   do
25468     if test -f "$ac_dir/X11/Intrinsic.h"; then
25469       ac_find_includes=$ac_dir
25470       break
25471     fi
25472   done
25473
25474             x_includes=$ac_find_includes
25475         fi
25476         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25477
25478   ac_find_libraries=
25479   for ac_dir in $SEARCH_LIB;
25480   do
25481     for ac_extension in a so sl dylib dll.a; do
25482       if test -f "$ac_dir/libXt.$ac_extension"; then
25483         ac_find_libraries=$ac_dir
25484         break 2
25485       fi
25486     done
25487   done
25488
25489             x_libraries=$ac_find_libraries
25490         fi
25491     fi
25492 fi
25493
25494
25495 cat >confcache <<\_ACEOF
25496 # This file is a shell script that caches the results of configure
25497 # tests run on this system so they can be shared between configure
25498 # scripts and configure runs, see configure's option --config-cache.
25499 # It is not useful on other systems.  If it contains results you don't
25500 # want to keep, you may remove or edit it.
25501 #
25502 # config.status only pays attention to the cache file if you give it
25503 # the --recheck option to rerun configure.
25504 #
25505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25507 # following values.
25508
25509 _ACEOF
25510
25511 # The following way of writing the cache mishandles newlines in values,
25512 # but we know of no workaround that is simple, portable, and efficient.
25513 # So, we kill variables containing newlines.
25514 # Ultrix sh set writes to stderr and can't be redirected directly,
25515 # and sets the high bit in the cache file unless we assign to the vars.
25516 (
25517   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25518     eval ac_val=\$$ac_var
25519     case $ac_val in #(
25520     *${as_nl}*)
25521       case $ac_var in #(
25522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25524       esac
25525       case $ac_var in #(
25526       _ | IFS | as_nl) ;; #(
25527       *) $as_unset $ac_var ;;
25528       esac ;;
25529     esac
25530   done
25531
25532   (set) 2>&1 |
25533     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25534     *${as_nl}ac_space=\ *)
25535       # `set' does not quote correctly, so add quotes (double-quote
25536       # substitution turns \\\\ into \\, and sed turns \\ into \).
25537       sed -n \
25538         "s/'/'\\\\''/g;
25539           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25540       ;; #(
25541     *)
25542       # `set' quotes correctly as required by POSIX, so do not add quotes.
25543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25544       ;;
25545     esac |
25546     sort
25547 ) |
25548   sed '
25549      /^ac_cv_env_/b end
25550      t clear
25551      :clear
25552      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25553      t end
25554      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25555      :end' >>confcache
25556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25557   if test -w "$cache_file"; then
25558     test "x$cache_file" != "x/dev/null" &&
25559       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25560 echo "$as_me: updating cache $cache_file" >&6;}
25561     cat confcache >$cache_file
25562   else
25563     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25564 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25565   fi
25566 fi
25567 rm -f confcache
25568
25569 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25570     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25571 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25572 if test "${wx_cv_lib_glibc21+set}" = set; then
25573   echo $ECHO_N "(cached) $ECHO_C" >&6
25574 else
25575
25576         cat >conftest.$ac_ext <<_ACEOF
25577 /* confdefs.h.  */
25578 _ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h.  */
25582 #include <features.h>
25583 int
25584 main ()
25585 {
25586
25587                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25588                 not glibc 2.1
25589                 #endif
25590
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext
25596 if { (ac_try="$ac_compile"
25597 case "(($ac_try" in
25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599   *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602   (eval "$ac_compile") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && {
25609          test -z "$ac_c_werror_flag" ||
25610          test ! -s conftest.err
25611        } && test -s conftest.$ac_objext; then
25612
25613                 wx_cv_lib_glibc21=yes
25614
25615 else
25616   echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25618
25619
25620                 wx_cv_lib_glibc21=no
25621
25622
25623 fi
25624
25625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25626
25627 fi
25628 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25629 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25630     if test "$wx_cv_lib_glibc21" = "yes"; then
25631         cat >>confdefs.h <<\_ACEOF
25632 #define wxHAVE_GLIBC2 1
25633 _ACEOF
25634
25635     fi
25636 fi
25637
25638 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25639     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25640         cat >>confdefs.h <<\_ACEOF
25641 #define _GNU_SOURCE 1
25642 _ACEOF
25643
25644     fi
25645 fi
25646
25647 have_cos=0
25648 have_floor=0
25649
25650 for ac_func in cos
25651 do
25652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25656   echo $ECHO_N "(cached) $ECHO_C" >&6
25657 else
25658   cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25666 #define $ac_func innocuous_$ac_func
25667
25668 /* System header to define __stub macros and hopefully few prototypes,
25669     which can conflict with char $ac_func (); below.
25670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25671     <limits.h> exists even on freestanding compilers.  */
25672
25673 #ifdef __STDC__
25674 # include <limits.h>
25675 #else
25676 # include <assert.h>
25677 #endif
25678
25679 #undef $ac_func
25680
25681 /* Override any GCC internal prototype to avoid an error.
25682    Use char because int might match the return type of a GCC
25683    builtin and then its argument prototype would still apply.  */
25684 #ifdef __cplusplus
25685 extern "C"
25686 #endif
25687 char $ac_func ();
25688 /* The GNU C library defines this for functions which it implements
25689     to always fail with ENOSYS.  Some functions are actually named
25690     something starting with __ and the normal name is an alias.  */
25691 #if defined __stub_$ac_func || defined __stub___$ac_func
25692 choke me
25693 #endif
25694
25695 int
25696 main ()
25697 {
25698 return $ac_func ();
25699   ;
25700   return 0;
25701 }
25702 _ACEOF
25703 rm -f conftest.$ac_objext conftest$ac_exeext
25704 if { (ac_try="$ac_link"
25705 case "(($ac_try" in
25706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707   *) ac_try_echo=$ac_try;;
25708 esac
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710   (eval "$ac_link") 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } && {
25717          test -z "$ac_c_werror_flag" ||
25718          test ! -s conftest.err
25719        } && test -s conftest$ac_exeext &&
25720        $as_test_x conftest$ac_exeext; then
25721   eval "$as_ac_var=yes"
25722 else
25723   echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726         eval "$as_ac_var=no"
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25730       conftest$ac_exeext conftest.$ac_ext
25731 fi
25732 ac_res=`eval echo '${'$as_ac_var'}'`
25733                { echo "$as_me:$LINENO: result: $ac_res" >&5
25734 echo "${ECHO_T}$ac_res" >&6; }
25735 if test `eval echo '${'$as_ac_var'}'` = yes; then
25736   cat >>confdefs.h <<_ACEOF
25737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25738 _ACEOF
25739  have_cos=1
25740 fi
25741 done
25742
25743
25744 for ac_func in floor
25745 do
25746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25750   echo $ECHO_N "(cached) $ECHO_C" >&6
25751 else
25752   cat >conftest.$ac_ext <<_ACEOF
25753 /* confdefs.h.  */
25754 _ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h.  */
25758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25760 #define $ac_func innocuous_$ac_func
25761
25762 /* System header to define __stub macros and hopefully few prototypes,
25763     which can conflict with char $ac_func (); below.
25764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25765     <limits.h> exists even on freestanding compilers.  */
25766
25767 #ifdef __STDC__
25768 # include <limits.h>
25769 #else
25770 # include <assert.h>
25771 #endif
25772
25773 #undef $ac_func
25774
25775 /* Override any GCC internal prototype to avoid an error.
25776    Use char because int might match the return type of a GCC
25777    builtin and then its argument prototype would still apply.  */
25778 #ifdef __cplusplus
25779 extern "C"
25780 #endif
25781 char $ac_func ();
25782 /* The GNU C library defines this for functions which it implements
25783     to always fail with ENOSYS.  Some functions are actually named
25784     something starting with __ and the normal name is an alias.  */
25785 #if defined __stub_$ac_func || defined __stub___$ac_func
25786 choke me
25787 #endif
25788
25789 int
25790 main ()
25791 {
25792 return $ac_func ();
25793   ;
25794   return 0;
25795 }
25796 _ACEOF
25797 rm -f conftest.$ac_objext conftest$ac_exeext
25798 if { (ac_try="$ac_link"
25799 case "(($ac_try" in
25800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801   *) ac_try_echo=$ac_try;;
25802 esac
25803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25804   (eval "$ac_link") 2>conftest.er1
25805   ac_status=$?
25806   grep -v '^ *+' conftest.er1 >conftest.err
25807   rm -f conftest.er1
25808   cat conftest.err >&5
25809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); } && {
25811          test -z "$ac_c_werror_flag" ||
25812          test ! -s conftest.err
25813        } && test -s conftest$ac_exeext &&
25814        $as_test_x conftest$ac_exeext; then
25815   eval "$as_ac_var=yes"
25816 else
25817   echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820         eval "$as_ac_var=no"
25821 fi
25822
25823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25824       conftest$ac_exeext conftest.$ac_ext
25825 fi
25826 ac_res=`eval echo '${'$as_ac_var'}'`
25827                { echo "$as_me:$LINENO: result: $ac_res" >&5
25828 echo "${ECHO_T}$ac_res" >&6; }
25829 if test `eval echo '${'$as_ac_var'}'` = yes; then
25830   cat >>confdefs.h <<_ACEOF
25831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25832 _ACEOF
25833  have_floor=1
25834 fi
25835 done
25836
25837 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25838 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25839 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25840     { echo "$as_me:$LINENO: result: yes" >&5
25841 echo "${ECHO_T}yes" >&6; }
25842 else
25843     { echo "$as_me:$LINENO: result: no" >&5
25844 echo "${ECHO_T}no" >&6; }
25845     LIBS="$LIBS -lm"
25846     # use different functions to avoid configure caching
25847     have_sin=0
25848     have_ceil=0
25849
25850 for ac_func in sin
25851 do
25852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25856   echo $ECHO_N "(cached) $ECHO_C" >&6
25857 else
25858   cat >conftest.$ac_ext <<_ACEOF
25859 /* confdefs.h.  */
25860 _ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h.  */
25864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25866 #define $ac_func innocuous_$ac_func
25867
25868 /* System header to define __stub macros and hopefully few prototypes,
25869     which can conflict with char $ac_func (); below.
25870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25871     <limits.h> exists even on freestanding compilers.  */
25872
25873 #ifdef __STDC__
25874 # include <limits.h>
25875 #else
25876 # include <assert.h>
25877 #endif
25878
25879 #undef $ac_func
25880
25881 /* Override any GCC internal prototype to avoid an error.
25882    Use char because int might match the return type of a GCC
25883    builtin and then its argument prototype would still apply.  */
25884 #ifdef __cplusplus
25885 extern "C"
25886 #endif
25887 char $ac_func ();
25888 /* The GNU C library defines this for functions which it implements
25889     to always fail with ENOSYS.  Some functions are actually named
25890     something starting with __ and the normal name is an alias.  */
25891 #if defined __stub_$ac_func || defined __stub___$ac_func
25892 choke me
25893 #endif
25894
25895 int
25896 main ()
25897 {
25898 return $ac_func ();
25899   ;
25900   return 0;
25901 }
25902 _ACEOF
25903 rm -f conftest.$ac_objext conftest$ac_exeext
25904 if { (ac_try="$ac_link"
25905 case "(($ac_try" in
25906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907   *) ac_try_echo=$ac_try;;
25908 esac
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910   (eval "$ac_link") 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } && {
25917          test -z "$ac_c_werror_flag" ||
25918          test ! -s conftest.err
25919        } && test -s conftest$ac_exeext &&
25920        $as_test_x conftest$ac_exeext; then
25921   eval "$as_ac_var=yes"
25922 else
25923   echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25925
25926         eval "$as_ac_var=no"
25927 fi
25928
25929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25930       conftest$ac_exeext conftest.$ac_ext
25931 fi
25932 ac_res=`eval echo '${'$as_ac_var'}'`
25933                { echo "$as_me:$LINENO: result: $ac_res" >&5
25934 echo "${ECHO_T}$ac_res" >&6; }
25935 if test `eval echo '${'$as_ac_var'}'` = yes; then
25936   cat >>confdefs.h <<_ACEOF
25937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25938 _ACEOF
25939  have_sin=1
25940 fi
25941 done
25942
25943
25944 for ac_func in ceil
25945 do
25946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25950   echo $ECHO_N "(cached) $ECHO_C" >&6
25951 else
25952   cat >conftest.$ac_ext <<_ACEOF
25953 /* confdefs.h.  */
25954 _ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h.  */
25958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25960 #define $ac_func innocuous_$ac_func
25961
25962 /* System header to define __stub macros and hopefully few prototypes,
25963     which can conflict with char $ac_func (); below.
25964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25965     <limits.h> exists even on freestanding compilers.  */
25966
25967 #ifdef __STDC__
25968 # include <limits.h>
25969 #else
25970 # include <assert.h>
25971 #endif
25972
25973 #undef $ac_func
25974
25975 /* Override any GCC internal prototype to avoid an error.
25976    Use char because int might match the return type of a GCC
25977    builtin and then its argument prototype would still apply.  */
25978 #ifdef __cplusplus
25979 extern "C"
25980 #endif
25981 char $ac_func ();
25982 /* The GNU C library defines this for functions which it implements
25983     to always fail with ENOSYS.  Some functions are actually named
25984     something starting with __ and the normal name is an alias.  */
25985 #if defined __stub_$ac_func || defined __stub___$ac_func
25986 choke me
25987 #endif
25988
25989 int
25990 main ()
25991 {
25992 return $ac_func ();
25993   ;
25994   return 0;
25995 }
25996 _ACEOF
25997 rm -f conftest.$ac_objext conftest$ac_exeext
25998 if { (ac_try="$ac_link"
25999 case "(($ac_try" in
26000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001   *) ac_try_echo=$ac_try;;
26002 esac
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004   (eval "$ac_link") 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } && {
26011          test -z "$ac_c_werror_flag" ||
26012          test ! -s conftest.err
26013        } && test -s conftest$ac_exeext &&
26014        $as_test_x conftest$ac_exeext; then
26015   eval "$as_ac_var=yes"
26016 else
26017   echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26019
26020         eval "$as_ac_var=no"
26021 fi
26022
26023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26024       conftest$ac_exeext conftest.$ac_ext
26025 fi
26026 ac_res=`eval echo '${'$as_ac_var'}'`
26027                { echo "$as_me:$LINENO: result: $ac_res" >&5
26028 echo "${ECHO_T}$ac_res" >&6; }
26029 if test `eval echo '${'$as_ac_var'}'` = yes; then
26030   cat >>confdefs.h <<_ACEOF
26031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26032 _ACEOF
26033  have_ceil=1
26034 fi
26035 done
26036
26037     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26038 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26039     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26040         { echo "$as_me:$LINENO: result: yes" >&5
26041 echo "${ECHO_T}yes" >&6; }
26042     else
26043         { echo "$as_me:$LINENO: result: no" >&5
26044 echo "${ECHO_T}no" >&6; }
26045         # not sure we should warn the user, crash, etc.
26046     fi
26047 fi
26048
26049 ac_ext=cpp
26050 ac_cpp='$CXXCPP $CPPFLAGS'
26051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26054
26055 if test "wxUSE_UNICODE" = "yes"; then
26056
26057   for wx_func in wcstoull
26058   do
26059     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26060 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26061 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064
26065         cat >conftest.$ac_ext <<_ACEOF
26066
26067             /* confdefs.h.  */
26068 _ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h.  */
26072
26073
26074                 $ac_includes_default
26075
26076 int
26077 main ()
26078 {
26079
26080                 #ifndef $wx_func
26081                   &$wx_func;
26082                 #endif
26083
26084
26085   ;
26086   return 0;
26087 }
26088
26089 _ACEOF
26090 rm -f conftest.$ac_objext conftest$ac_exeext
26091 if { (ac_try="$ac_link"
26092 case "(($ac_try" in
26093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094   *) ac_try_echo=$ac_try;;
26095 esac
26096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26097   (eval "$ac_link") 2>conftest.er1
26098   ac_status=$?
26099   grep -v '^ *+' conftest.er1 >conftest.err
26100   rm -f conftest.er1
26101   cat conftest.err >&5
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); } && {
26104          test -z "$ac_cxx_werror_flag" ||
26105          test ! -s conftest.err
26106        } && test -s conftest$ac_exeext &&
26107        $as_test_x conftest$ac_exeext; then
26108   eval wx_cv_func_$wx_func=yes
26109 else
26110   echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26112
26113         eval wx_cv_func_$wx_func=no
26114 fi
26115
26116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26117       conftest$ac_exeext conftest.$ac_ext
26118
26119 fi
26120 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26121                { echo "$as_me:$LINENO: result: $ac_res" >&5
26122 echo "${ECHO_T}$ac_res" >&6; }
26123
26124     if eval test \$wx_cv_func_$wx_func = yes
26125     then
26126       cat >>confdefs.h <<_ACEOF
26127 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26128 _ACEOF
26129
26130
26131     else
26132       :
26133
26134     fi
26135   done
26136
26137 else
26138
26139   for wx_func in strtoull
26140   do
26141     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26142 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26143 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26144   echo $ECHO_N "(cached) $ECHO_C" >&6
26145 else
26146
26147         cat >conftest.$ac_ext <<_ACEOF
26148
26149             /* confdefs.h.  */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h.  */
26154
26155
26156                 $ac_includes_default
26157
26158 int
26159 main ()
26160 {
26161
26162                 #ifndef $wx_func
26163                   &$wx_func;
26164                 #endif
26165
26166
26167   ;
26168   return 0;
26169 }
26170
26171 _ACEOF
26172 rm -f conftest.$ac_objext conftest$ac_exeext
26173 if { (ac_try="$ac_link"
26174 case "(($ac_try" in
26175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26176   *) ac_try_echo=$ac_try;;
26177 esac
26178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26179   (eval "$ac_link") 2>conftest.er1
26180   ac_status=$?
26181   grep -v '^ *+' conftest.er1 >conftest.err
26182   rm -f conftest.er1
26183   cat conftest.err >&5
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); } && {
26186          test -z "$ac_cxx_werror_flag" ||
26187          test ! -s conftest.err
26188        } && test -s conftest$ac_exeext &&
26189        $as_test_x conftest$ac_exeext; then
26190   eval wx_cv_func_$wx_func=yes
26191 else
26192   echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26194
26195         eval wx_cv_func_$wx_func=no
26196 fi
26197
26198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26199       conftest$ac_exeext conftest.$ac_ext
26200
26201 fi
26202 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26203                { echo "$as_me:$LINENO: result: $ac_res" >&5
26204 echo "${ECHO_T}$ac_res" >&6; }
26205
26206     if eval test \$wx_cv_func_$wx_func = yes
26207     then
26208       cat >>confdefs.h <<_ACEOF
26209 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26210 _ACEOF
26211
26212
26213     else
26214       :
26215
26216     fi
26217   done
26218
26219 fi
26220 ac_ext=c
26221 ac_cpp='$CPP $CPPFLAGS'
26222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26225
26226
26227
26228
26229 if test "$wxUSE_REGEX" != "no"; then
26230     cat >>confdefs.h <<\_ACEOF
26231 #define wxUSE_REGEX 1
26232 _ACEOF
26233
26234
26235     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26236         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26237 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26238         wxUSE_REGEX=builtin
26239     fi
26240
26241     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26242                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26243 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26244 if test "${ac_cv_header_regex_h+set}" = set; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   cat >conftest.$ac_ext <<_ACEOF
26248 /* confdefs.h.  */
26249 _ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h.  */
26253
26254
26255 #include <regex.h>
26256 _ACEOF
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261   *) ac_try_echo=$ac_try;;
26262 esac
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264   (eval "$ac_compile") 2>conftest.er1
26265   ac_status=$?
26266   grep -v '^ *+' conftest.er1 >conftest.err
26267   rm -f conftest.er1
26268   cat conftest.err >&5
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); } && {
26271          test -z "$ac_c_werror_flag" ||
26272          test ! -s conftest.err
26273        } && test -s conftest.$ac_objext; then
26274   ac_cv_header_regex_h=yes
26275 else
26276   echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279         ac_cv_header_regex_h=no
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 fi
26284 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26285 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26286 if test $ac_cv_header_regex_h = yes; then
26287
26288
26289 for ac_func in regcomp re_search
26290 do
26291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26295   echo $ECHO_N "(cached) $ECHO_C" >&6
26296 else
26297   cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26305 #define $ac_func innocuous_$ac_func
26306
26307 /* System header to define __stub macros and hopefully few prototypes,
26308     which can conflict with char $ac_func (); below.
26309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26310     <limits.h> exists even on freestanding compilers.  */
26311
26312 #ifdef __STDC__
26313 # include <limits.h>
26314 #else
26315 # include <assert.h>
26316 #endif
26317
26318 #undef $ac_func
26319
26320 /* Override any GCC internal prototype to avoid an error.
26321    Use char because int might match the return type of a GCC
26322    builtin and then its argument prototype would still apply.  */
26323 #ifdef __cplusplus
26324 extern "C"
26325 #endif
26326 char $ac_func ();
26327 /* The GNU C library defines this for functions which it implements
26328     to always fail with ENOSYS.  Some functions are actually named
26329     something starting with __ and the normal name is an alias.  */
26330 #if defined __stub_$ac_func || defined __stub___$ac_func
26331 choke me
26332 #endif
26333
26334 int
26335 main ()
26336 {
26337 return $ac_func ();
26338   ;
26339   return 0;
26340 }
26341 _ACEOF
26342 rm -f conftest.$ac_objext conftest$ac_exeext
26343 if { (ac_try="$ac_link"
26344 case "(($ac_try" in
26345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346   *) ac_try_echo=$ac_try;;
26347 esac
26348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26349   (eval "$ac_link") 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } && {
26356          test -z "$ac_c_werror_flag" ||
26357          test ! -s conftest.err
26358        } && test -s conftest$ac_exeext &&
26359        $as_test_x conftest$ac_exeext; then
26360   eval "$as_ac_var=yes"
26361 else
26362   echo "$as_me: failed program was:" >&5
26363 sed 's/^/| /' conftest.$ac_ext >&5
26364
26365         eval "$as_ac_var=no"
26366 fi
26367
26368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26369       conftest$ac_exeext conftest.$ac_ext
26370 fi
26371 ac_res=`eval echo '${'$as_ac_var'}'`
26372                { echo "$as_me:$LINENO: result: $ac_res" >&5
26373 echo "${ECHO_T}$ac_res" >&6; }
26374 if test `eval echo '${'$as_ac_var'}'` = yes; then
26375   cat >>confdefs.h <<_ACEOF
26376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26377 _ACEOF
26378
26379 fi
26380 done
26381
26382 fi
26383
26384
26385
26386         if test "x$ac_cv_func_regcomp" != "xyes"; then
26387             if test "$wxUSE_REGEX" = "sys" ; then
26388                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26389 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26390    { (exit 1); exit 1; }; }
26391             else
26392                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26393 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26394                 wxUSE_REGEX=builtin
26395             fi
26396         else
26397                         wxUSE_REGEX=sys
26398                         cat >>confdefs.h <<\_ACEOF
26399 #define WX_NO_REGEX_ADVANCED 1
26400 _ACEOF
26401
26402         fi
26403     fi
26404 fi
26405
26406
26407 ZLIB_LINK=
26408 if test "$wxUSE_ZLIB" != "no" ; then
26409     cat >>confdefs.h <<\_ACEOF
26410 #define wxUSE_ZLIB 1
26411 _ACEOF
26412
26413
26414     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26415                                                 if test "$USE_DARWIN" = 1; then
26416             system_zlib_h_ok="yes"
26417         else
26418                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26419 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26420 if test "${ac_cv_header_zlib_h+set}" = set; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423   if test "$cross_compiling" = yes; then
26424                       unset ac_cv_header_zlib_h
26425
26426 else
26427   cat >conftest.$ac_ext <<_ACEOF
26428 /* confdefs.h.  */
26429 _ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h.  */
26433
26434                         #include <zlib.h>
26435                         #include <stdio.h>
26436
26437                         int main()
26438                         {
26439                             FILE *f=fopen("conftestval", "w");
26440                             if (!f) exit(1);
26441                             fprintf(f, "%s",
26442                                     ZLIB_VERSION[0] == '1' &&
26443                                     (ZLIB_VERSION[2] > '1' ||
26444                                     (ZLIB_VERSION[2] == '1' &&
26445                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26446                             exit(0);
26447                         }
26448
26449 _ACEOF
26450 rm -f conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_link") 2>&5
26458   ac_status=$?
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26461   { (case "(($ac_try" in
26462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463   *) ac_try_echo=$ac_try;;
26464 esac
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466   (eval "$ac_try") 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; }; then
26470   ac_cv_header_zlib_h=`cat conftestval`
26471 else
26472   echo "$as_me: program exited with status $ac_status" >&5
26473 echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26475
26476 ( exit $ac_status )
26477 ac_cv_header_zlib_h=no
26478 fi
26479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26480 fi
26481
26482
26483
26484 fi
26485 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26486 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26487                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26488 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26489 if test "${ac_cv_header_zlib_h+set}" = set; then
26490   echo $ECHO_N "(cached) $ECHO_C" >&6
26491 else
26492   cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498
26499
26500 #include <zlib.h>
26501 _ACEOF
26502 rm -f conftest.$ac_objext
26503 if { (ac_try="$ac_compile"
26504 case "(($ac_try" in
26505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26506   *) ac_try_echo=$ac_try;;
26507 esac
26508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26509   (eval "$ac_compile") 2>conftest.er1
26510   ac_status=$?
26511   grep -v '^ *+' conftest.er1 >conftest.err
26512   rm -f conftest.er1
26513   cat conftest.err >&5
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); } && {
26516          test -z "$ac_c_werror_flag" ||
26517          test ! -s conftest.err
26518        } && test -s conftest.$ac_objext; then
26519   ac_cv_header_zlib_h=yes
26520 else
26521   echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524         ac_cv_header_zlib_h=no
26525 fi
26526
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528 fi
26529 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26530 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26531
26532
26533
26534             system_zlib_h_ok=$ac_cv_header_zlib_h
26535         fi
26536
26537         if test "$system_zlib_h_ok" = "yes"; then
26538             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26539 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26540 if test "${ac_cv_lib_z_deflate+set}" = set; then
26541   echo $ECHO_N "(cached) $ECHO_C" >&6
26542 else
26543   ac_check_lib_save_LIBS=$LIBS
26544 LIBS="-lz  $LIBS"
26545 cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551
26552 /* Override any GCC internal prototype to avoid an error.
26553    Use char because int might match the return type of a GCC
26554    builtin and then its argument prototype would still apply.  */
26555 #ifdef __cplusplus
26556 extern "C"
26557 #endif
26558 char deflate ();
26559 int
26560 main ()
26561 {
26562 return deflate ();
26563   ;
26564   return 0;
26565 }
26566 _ACEOF
26567 rm -f conftest.$ac_objext conftest$ac_exeext
26568 if { (ac_try="$ac_link"
26569 case "(($ac_try" in
26570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571   *) ac_try_echo=$ac_try;;
26572 esac
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574   (eval "$ac_link") 2>conftest.er1
26575   ac_status=$?
26576   grep -v '^ *+' conftest.er1 >conftest.err
26577   rm -f conftest.er1
26578   cat conftest.err >&5
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); } && {
26581          test -z "$ac_c_werror_flag" ||
26582          test ! -s conftest.err
26583        } && test -s conftest$ac_exeext &&
26584        $as_test_x conftest$ac_exeext; then
26585   ac_cv_lib_z_deflate=yes
26586 else
26587   echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26589
26590         ac_cv_lib_z_deflate=no
26591 fi
26592
26593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26594       conftest$ac_exeext conftest.$ac_ext
26595 LIBS=$ac_check_lib_save_LIBS
26596 fi
26597 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26598 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26599 if test $ac_cv_lib_z_deflate = yes; then
26600   ZLIB_LINK=" -lz"
26601 fi
26602
26603         fi
26604
26605         if test "x$ZLIB_LINK" = "x" ; then
26606             if test "$wxUSE_ZLIB" = "sys" ; then
26607                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26608 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26609    { (exit 1); exit 1; }; }
26610             else
26611                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26612 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26613                 wxUSE_ZLIB=builtin
26614             fi
26615         else
26616                         wxUSE_ZLIB=sys
26617         fi
26618     fi
26619 fi
26620
26621
26622 PNG_LINK=
26623 if test "$wxUSE_LIBPNG" != "no" ; then
26624     cat >>confdefs.h <<\_ACEOF
26625 #define wxUSE_LIBPNG 1
26626 _ACEOF
26627
26628
26629     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26630         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26631 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26632         wxUSE_LIBPNG=sys
26633     fi
26634
26635                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26636         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26637 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26638         wxUSE_LIBPNG=builtin
26639     fi
26640
26641     if test "$wxUSE_MGL" != 1 ; then
26642                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26643                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26644 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26645 if test "${ac_cv_header_png_h+set}" = set; then
26646   echo $ECHO_N "(cached) $ECHO_C" >&6
26647 else
26648   if test "$cross_compiling" = yes; then
26649                       unset ac_cv_header_png_h
26650
26651 else
26652   cat >conftest.$ac_ext <<_ACEOF
26653 /* confdefs.h.  */
26654 _ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h.  */
26658
26659                         #include <png.h>
26660                         #include <stdio.h>
26661
26662                         int main()
26663                         {
26664                             FILE *f=fopen("conftestval", "w");
26665                             if (!f) exit(1);
26666                             fprintf(f, "%s",
26667                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26668                             exit(0);
26669                         }
26670
26671 _ACEOF
26672 rm -f conftest$ac_exeext
26673 if { (ac_try="$ac_link"
26674 case "(($ac_try" in
26675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676   *) ac_try_echo=$ac_try;;
26677 esac
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679   (eval "$ac_link") 2>&5
26680   ac_status=$?
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26683   { (case "(($ac_try" in
26684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685   *) ac_try_echo=$ac_try;;
26686 esac
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688   (eval "$ac_try") 2>&5
26689   ac_status=$?
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); }; }; then
26692   ac_cv_header_png_h=`cat conftestval`
26693 else
26694   echo "$as_me: program exited with status $ac_status" >&5
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698 ( exit $ac_status )
26699 ac_cv_header_png_h=no
26700 fi
26701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26702 fi
26703
26704
26705
26706 fi
26707 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26708 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26709             { echo "$as_me:$LINENO: checking for png.h" >&5
26710 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26711 if test "${ac_cv_header_png_h+set}" = set; then
26712   echo $ECHO_N "(cached) $ECHO_C" >&6
26713 else
26714   cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h.  */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h.  */
26720
26721
26722 #include <png.h>
26723 _ACEOF
26724 rm -f conftest.$ac_objext
26725 if { (ac_try="$ac_compile"
26726 case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_compile") 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } && {
26738          test -z "$ac_c_werror_flag" ||
26739          test ! -s conftest.err
26740        } && test -s conftest.$ac_objext; then
26741   ac_cv_header_png_h=yes
26742 else
26743   echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746         ac_cv_header_png_h=no
26747 fi
26748
26749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26750 fi
26751 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26752 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26753
26754
26755
26756             if test "$ac_cv_header_png_h" = "yes"; then
26757                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26758 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26759 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   ac_check_lib_save_LIBS=$LIBS
26763 LIBS="-lpng -lz -lm $LIBS"
26764 cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770
26771 /* Override any GCC internal prototype to avoid an error.
26772    Use char because int might match the return type of a GCC
26773    builtin and then its argument prototype would still apply.  */
26774 #ifdef __cplusplus
26775 extern "C"
26776 #endif
26777 char png_check_sig ();
26778 int
26779 main ()
26780 {
26781 return png_check_sig ();
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 rm -f conftest.$ac_objext conftest$ac_exeext
26787 if { (ac_try="$ac_link"
26788 case "(($ac_try" in
26789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790   *) ac_try_echo=$ac_try;;
26791 esac
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793   (eval "$ac_link") 2>conftest.er1
26794   ac_status=$?
26795   grep -v '^ *+' conftest.er1 >conftest.err
26796   rm -f conftest.er1
26797   cat conftest.err >&5
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); } && {
26800          test -z "$ac_c_werror_flag" ||
26801          test ! -s conftest.err
26802        } && test -s conftest$ac_exeext &&
26803        $as_test_x conftest$ac_exeext; then
26804   ac_cv_lib_png_png_check_sig=yes
26805 else
26806   echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26808
26809         ac_cv_lib_png_png_check_sig=no
26810 fi
26811
26812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26813       conftest$ac_exeext conftest.$ac_ext
26814 LIBS=$ac_check_lib_save_LIBS
26815 fi
26816 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26817 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26818 if test $ac_cv_lib_png_png_check_sig = yes; then
26819   PNG_LINK=" -lpng -lz"
26820 fi
26821
26822             fi
26823
26824             if test "x$PNG_LINK" = "x" ; then
26825                 if test "$wxUSE_LIBPNG" = "sys" ; then
26826                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26827 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26828    { (exit 1); exit 1; }; }
26829                 else
26830                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26831 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26832                     wxUSE_LIBPNG=builtin
26833                 fi
26834             else
26835                                 wxUSE_LIBPNG=sys
26836             fi
26837         fi
26838     fi
26839 fi
26840
26841
26842 JPEG_LINK=
26843 if test "$wxUSE_LIBJPEG" != "no" ; then
26844     cat >>confdefs.h <<\_ACEOF
26845 #define wxUSE_LIBJPEG 1
26846 _ACEOF
26847
26848
26849     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26850         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26851 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26852         wxUSE_LIBJPEG=sys
26853     fi
26854
26855     if test "$wxUSE_MGL" != 1 ; then
26856                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26857                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26858 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26859             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26860   echo $ECHO_N "(cached) $ECHO_C" >&6
26861 else
26862   cat >conftest.$ac_ext <<_ACEOF
26863 /* confdefs.h.  */
26864 _ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h.  */
26868
26869                         #undef HAVE_STDLIB_H
26870                         #include <stdio.h>
26871                         #include <jpeglib.h>
26872
26873 int
26874 main ()
26875 {
26876
26877
26878   ;
26879   return 0;
26880 }
26881 _ACEOF
26882 rm -f conftest.$ac_objext
26883 if { (ac_try="$ac_compile"
26884 case "(($ac_try" in
26885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886   *) ac_try_echo=$ac_try;;
26887 esac
26888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26889   (eval "$ac_compile") 2>conftest.er1
26890   ac_status=$?
26891   grep -v '^ *+' conftest.er1 >conftest.err
26892   rm -f conftest.er1
26893   cat conftest.err >&5
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); } && {
26896          test -z "$ac_c_werror_flag" ||
26897          test ! -s conftest.err
26898        } && test -s conftest.$ac_objext; then
26899   ac_cv_header_jpeglib_h=yes
26900 else
26901   echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26903
26904         ac_cv_header_jpeglib_h=no
26905
26906 fi
26907
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909
26910 fi
26911
26912             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26913 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26914
26915             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26916                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26917 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26918 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26919   echo $ECHO_N "(cached) $ECHO_C" >&6
26920 else
26921   ac_check_lib_save_LIBS=$LIBS
26922 LIBS="-ljpeg  $LIBS"
26923 cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929
26930 /* Override any GCC internal prototype to avoid an error.
26931    Use char because int might match the return type of a GCC
26932    builtin and then its argument prototype would still apply.  */
26933 #ifdef __cplusplus
26934 extern "C"
26935 #endif
26936 char jpeg_read_header ();
26937 int
26938 main ()
26939 {
26940 return jpeg_read_header ();
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 rm -f conftest.$ac_objext conftest$ac_exeext
26946 if { (ac_try="$ac_link"
26947 case "(($ac_try" in
26948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949   *) ac_try_echo=$ac_try;;
26950 esac
26951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26952   (eval "$ac_link") 2>conftest.er1
26953   ac_status=$?
26954   grep -v '^ *+' conftest.er1 >conftest.err
26955   rm -f conftest.er1
26956   cat conftest.err >&5
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); } && {
26959          test -z "$ac_c_werror_flag" ||
26960          test ! -s conftest.err
26961        } && test -s conftest$ac_exeext &&
26962        $as_test_x conftest$ac_exeext; then
26963   ac_cv_lib_jpeg_jpeg_read_header=yes
26964 else
26965   echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968         ac_cv_lib_jpeg_jpeg_read_header=no
26969 fi
26970
26971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26972       conftest$ac_exeext conftest.$ac_ext
26973 LIBS=$ac_check_lib_save_LIBS
26974 fi
26975 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26976 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26977 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26978   JPEG_LINK=" -ljpeg"
26979 fi
26980
26981             fi
26982
26983             if test "x$JPEG_LINK" = "x" ; then
26984                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26985                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26986 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26987    { (exit 1); exit 1; }; }
26988                 else
26989                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26990 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26991                     wxUSE_LIBJPEG=builtin
26992                 fi
26993             else
26994                                 wxUSE_LIBJPEG=sys
26995
26996                 if test "$wxUSE_MSW" = 1; then
26997                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26998 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26999 if test "${ac_cv_type_boolean+set}" = set; then
27000   echo $ECHO_N "(cached) $ECHO_C" >&6
27001 else
27002   cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 #include <windows.h>
27009
27010 typedef boolean ac__type_new_;
27011 int
27012 main ()
27013 {
27014 if ((ac__type_new_ *) 0)
27015   return 0;
27016 if (sizeof (ac__type_new_))
27017   return 0;
27018   ;
27019   return 0;
27020 }
27021 _ACEOF
27022 rm -f conftest.$ac_objext
27023 if { (ac_try="$ac_compile"
27024 case "(($ac_try" in
27025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27026   *) ac_try_echo=$ac_try;;
27027 esac
27028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27029   (eval "$ac_compile") 2>conftest.er1
27030   ac_status=$?
27031   grep -v '^ *+' conftest.er1 >conftest.err
27032   rm -f conftest.er1
27033   cat conftest.err >&5
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); } && {
27036          test -z "$ac_c_werror_flag" ||
27037          test ! -s conftest.err
27038        } && test -s conftest.$ac_objext; then
27039   ac_cv_type_boolean=yes
27040 else
27041   echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044         ac_cv_type_boolean=no
27045 fi
27046
27047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048 fi
27049 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27050 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27051 if test $ac_cv_type_boolean = yes; then
27052
27053 cat >>confdefs.h <<_ACEOF
27054 #define HAVE_BOOLEAN 1
27055 _ACEOF
27056
27057
27058                             { echo "$as_me:$LINENO: checking for boolean" >&5
27059 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27060 if test "${ac_cv_type_boolean+set}" = set; then
27061   echo $ECHO_N "(cached) $ECHO_C" >&6
27062 else
27063   cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069
27070                                     #undef HAVE_BOOLEAN
27071                                     #include <stdio.h>
27072                                     #include <jpeglib.h>
27073
27074
27075 typedef boolean ac__type_new_;
27076 int
27077 main ()
27078 {
27079 if ((ac__type_new_ *) 0)
27080   return 0;
27081 if (sizeof (ac__type_new_))
27082   return 0;
27083   ;
27084   return 0;
27085 }
27086 _ACEOF
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091   *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094   (eval "$ac_compile") 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } && {
27101          test -z "$ac_c_werror_flag" ||
27102          test ! -s conftest.err
27103        } && test -s conftest.$ac_objext; then
27104   ac_cv_type_boolean=yes
27105 else
27106   echo "$as_me: failed program was:" >&5
27107 sed 's/^/| /' conftest.$ac_ext >&5
27108
27109         ac_cv_type_boolean=no
27110 fi
27111
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 fi
27114 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27115 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27116
27117 # The cast to long int works around a bug in the HP C Compiler
27118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27120 # This bug is HP SR number 8606223364.
27121 { echo "$as_me:$LINENO: checking size of boolean" >&5
27122 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27123 if test "${ac_cv_sizeof_boolean+set}" = set; then
27124   echo $ECHO_N "(cached) $ECHO_C" >&6
27125 else
27126   if test "$cross_compiling" = yes; then
27127   # Depending upon the size, compute the lo and hi bounds.
27128 cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134
27135                                     #undef HAVE_BOOLEAN
27136                                     #include <stdio.h>
27137                                     #include <jpeglib.h>
27138
27139
27140    typedef boolean ac__type_sizeof_;
27141 int
27142 main ()
27143 {
27144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27145 test_array [0] = 0
27146
27147   ;
27148   return 0;
27149 }
27150 _ACEOF
27151 rm -f conftest.$ac_objext
27152 if { (ac_try="$ac_compile"
27153 case "(($ac_try" in
27154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27155   *) ac_try_echo=$ac_try;;
27156 esac
27157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27158   (eval "$ac_compile") 2>conftest.er1
27159   ac_status=$?
27160   grep -v '^ *+' conftest.er1 >conftest.err
27161   rm -f conftest.er1
27162   cat conftest.err >&5
27163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164   (exit $ac_status); } && {
27165          test -z "$ac_c_werror_flag" ||
27166          test ! -s conftest.err
27167        } && test -s conftest.$ac_objext; then
27168   ac_lo=0 ac_mid=0
27169   while :; do
27170     cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176
27177                                     #undef HAVE_BOOLEAN
27178                                     #include <stdio.h>
27179                                     #include <jpeglib.h>
27180
27181
27182    typedef boolean ac__type_sizeof_;
27183 int
27184 main ()
27185 {
27186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27187 test_array [0] = 0
27188
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_compile") 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } && {
27207          test -z "$ac_c_werror_flag" ||
27208          test ! -s conftest.err
27209        } && test -s conftest.$ac_objext; then
27210   ac_hi=$ac_mid; break
27211 else
27212   echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27214
27215         ac_lo=`expr $ac_mid + 1`
27216                         if test $ac_lo -le $ac_mid; then
27217                           ac_lo= ac_hi=
27218                           break
27219                         fi
27220                         ac_mid=`expr 2 '*' $ac_mid + 1`
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27224   done
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229         cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235
27236                                     #undef HAVE_BOOLEAN
27237                                     #include <stdio.h>
27238                                     #include <jpeglib.h>
27239
27240
27241    typedef boolean ac__type_sizeof_;
27242 int
27243 main ()
27244 {
27245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27246 test_array [0] = 0
27247
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 rm -f conftest.$ac_objext
27253 if { (ac_try="$ac_compile"
27254 case "(($ac_try" in
27255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256   *) ac_try_echo=$ac_try;;
27257 esac
27258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27259   (eval "$ac_compile") 2>conftest.er1
27260   ac_status=$?
27261   grep -v '^ *+' conftest.er1 >conftest.err
27262   rm -f conftest.er1
27263   cat conftest.err >&5
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); } && {
27266          test -z "$ac_c_werror_flag" ||
27267          test ! -s conftest.err
27268        } && test -s conftest.$ac_objext; then
27269   ac_hi=-1 ac_mid=-1
27270   while :; do
27271     cat >conftest.$ac_ext <<_ACEOF
27272 /* confdefs.h.  */
27273 _ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h.  */
27277
27278                                     #undef HAVE_BOOLEAN
27279                                     #include <stdio.h>
27280                                     #include <jpeglib.h>
27281
27282
27283    typedef boolean ac__type_sizeof_;
27284 int
27285 main ()
27286 {
27287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27288 test_array [0] = 0
27289
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (ac_try="$ac_compile"
27296 case "(($ac_try" in
27297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298   *) ac_try_echo=$ac_try;;
27299 esac
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301   (eval "$ac_compile") 2>conftest.er1
27302   ac_status=$?
27303   grep -v '^ *+' conftest.er1 >conftest.err
27304   rm -f conftest.er1
27305   cat conftest.err >&5
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); } && {
27308          test -z "$ac_c_werror_flag" ||
27309          test ! -s conftest.err
27310        } && test -s conftest.$ac_objext; then
27311   ac_lo=$ac_mid; break
27312 else
27313   echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27315
27316         ac_hi=`expr '(' $ac_mid ')' - 1`
27317                         if test $ac_mid -le $ac_hi; then
27318                           ac_lo= ac_hi=
27319                           break
27320                         fi
27321                         ac_mid=`expr 2 '*' $ac_mid`
27322 fi
27323
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325   done
27326 else
27327   echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27329
27330         ac_lo= ac_hi=
27331 fi
27332
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27334 fi
27335
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337 # Binary search between lo and hi bounds.
27338 while test "x$ac_lo" != "x$ac_hi"; do
27339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27340   cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346
27347                                     #undef HAVE_BOOLEAN
27348                                     #include <stdio.h>
27349                                     #include <jpeglib.h>
27350
27351
27352    typedef boolean ac__type_sizeof_;
27353 int
27354 main ()
27355 {
27356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27357 test_array [0] = 0
27358
27359   ;
27360   return 0;
27361 }
27362 _ACEOF
27363 rm -f conftest.$ac_objext
27364 if { (ac_try="$ac_compile"
27365 case "(($ac_try" in
27366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367   *) ac_try_echo=$ac_try;;
27368 esac
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370   (eval "$ac_compile") 2>conftest.er1
27371   ac_status=$?
27372   grep -v '^ *+' conftest.er1 >conftest.err
27373   rm -f conftest.er1
27374   cat conftest.err >&5
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); } && {
27377          test -z "$ac_c_werror_flag" ||
27378          test ! -s conftest.err
27379        } && test -s conftest.$ac_objext; then
27380   ac_hi=$ac_mid
27381 else
27382   echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27384
27385         ac_lo=`expr '(' $ac_mid ')' + 1`
27386 fi
27387
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389 done
27390 case $ac_lo in
27391 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27392 '') if test "$ac_cv_type_boolean" = yes; then
27393      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27394 See \`config.log' for more details." >&5
27395 echo "$as_me: error: cannot compute sizeof (boolean)
27396 See \`config.log' for more details." >&2;}
27397    { (exit 77); exit 77; }; }
27398    else
27399      ac_cv_sizeof_boolean=0
27400    fi ;;
27401 esac
27402 else
27403   cat >conftest.$ac_ext <<_ACEOF
27404 /* confdefs.h.  */
27405 _ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h.  */
27409
27410                                     #undef HAVE_BOOLEAN
27411                                     #include <stdio.h>
27412                                     #include <jpeglib.h>
27413
27414
27415    typedef boolean ac__type_sizeof_;
27416 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27417 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27418 #include <stdio.h>
27419 #include <stdlib.h>
27420 int
27421 main ()
27422 {
27423
27424   FILE *f = fopen ("conftest.val", "w");
27425   if (! f)
27426     return 1;
27427   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27428     {
27429       long int i = longval ();
27430       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27431         return 1;
27432       fprintf (f, "%ld\n", i);
27433     }
27434   else
27435     {
27436       unsigned long int i = ulongval ();
27437       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27438         return 1;
27439       fprintf (f, "%lu\n", i);
27440     }
27441   return ferror (f) || fclose (f) != 0;
27442
27443   ;
27444   return 0;
27445 }
27446 _ACEOF
27447 rm -f conftest$ac_exeext
27448 if { (ac_try="$ac_link"
27449 case "(($ac_try" in
27450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451   *) ac_try_echo=$ac_try;;
27452 esac
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454   (eval "$ac_link") 2>&5
27455   ac_status=$?
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27458   { (case "(($ac_try" in
27459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460   *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463   (eval "$ac_try") 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   ac_cv_sizeof_boolean=`cat conftest.val`
27468 else
27469   echo "$as_me: program exited with status $ac_status" >&5
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27472
27473 ( exit $ac_status )
27474 if test "$ac_cv_type_boolean" = yes; then
27475      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27476 See \`config.log' for more details." >&5
27477 echo "$as_me: error: cannot compute sizeof (boolean)
27478 See \`config.log' for more details." >&2;}
27479    { (exit 77); exit 77; }; }
27480    else
27481      ac_cv_sizeof_boolean=0
27482    fi
27483 fi
27484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27485 fi
27486 rm -f conftest.val
27487 fi
27488 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27489 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27490
27491
27492
27493 cat >>confdefs.h <<_ACEOF
27494 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27495 _ACEOF
27496
27497
27498                             cat >>confdefs.h <<_ACEOF
27499 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27500 _ACEOF
27501
27502
27503 fi
27504
27505                 fi
27506             fi
27507         fi
27508     fi
27509 fi
27510
27511
27512 TIFF_LINK=
27513 TIFF_PREREQ_LINKS=-lm
27514 if test "$wxUSE_LIBTIFF" != "no" ; then
27515     cat >>confdefs.h <<\_ACEOF
27516 #define wxUSE_LIBTIFF 1
27517 _ACEOF
27518
27519
27520     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27521                         if test "$wxUSE_LIBJPEG" = "sys"; then
27522             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27523         fi
27524         if test "$wxUSE_ZLIB" = "sys"; then
27525             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27526         fi
27527         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27528 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27529 if test "${ac_cv_header_tiffio_h+set}" = set; then
27530   echo $ECHO_N "(cached) $ECHO_C" >&6
27531 else
27532   cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538
27539
27540
27541 #include <tiffio.h>
27542 _ACEOF
27543 rm -f conftest.$ac_objext
27544 if { (ac_try="$ac_compile"
27545 case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_compile") 2>conftest.er1
27551   ac_status=$?
27552   grep -v '^ *+' conftest.er1 >conftest.err
27553   rm -f conftest.er1
27554   cat conftest.err >&5
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); } && {
27557          test -z "$ac_c_werror_flag" ||
27558          test ! -s conftest.err
27559        } && test -s conftest.$ac_objext; then
27560   ac_cv_header_tiffio_h=yes
27561 else
27562   echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27564
27565         ac_cv_header_tiffio_h=no
27566 fi
27567
27568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27569 fi
27570 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27571 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27572 if test $ac_cv_header_tiffio_h = yes; then
27573
27574                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27575 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27576 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27577   echo $ECHO_N "(cached) $ECHO_C" >&6
27578 else
27579   ac_check_lib_save_LIBS=$LIBS
27580 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27581 cat >conftest.$ac_ext <<_ACEOF
27582 /* confdefs.h.  */
27583 _ACEOF
27584 cat confdefs.h >>conftest.$ac_ext
27585 cat >>conftest.$ac_ext <<_ACEOF
27586 /* end confdefs.h.  */
27587
27588 /* Override any GCC internal prototype to avoid an error.
27589    Use char because int might match the return type of a GCC
27590    builtin and then its argument prototype would still apply.  */
27591 #ifdef __cplusplus
27592 extern "C"
27593 #endif
27594 char TIFFError ();
27595 int
27596 main ()
27597 {
27598 return TIFFError ();
27599   ;
27600   return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest.$ac_objext conftest$ac_exeext
27604 if { (ac_try="$ac_link"
27605 case "(($ac_try" in
27606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607   *) ac_try_echo=$ac_try;;
27608 esac
27609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610   (eval "$ac_link") 2>conftest.er1
27611   ac_status=$?
27612   grep -v '^ *+' conftest.er1 >conftest.err
27613   rm -f conftest.er1
27614   cat conftest.err >&5
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); } && {
27617          test -z "$ac_c_werror_flag" ||
27618          test ! -s conftest.err
27619        } && test -s conftest$ac_exeext &&
27620        $as_test_x conftest$ac_exeext; then
27621   ac_cv_lib_tiff_TIFFError=yes
27622 else
27623   echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27625
27626         ac_cv_lib_tiff_TIFFError=no
27627 fi
27628
27629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27630       conftest$ac_exeext conftest.$ac_ext
27631 LIBS=$ac_check_lib_save_LIBS
27632 fi
27633 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27634 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27635 if test $ac_cv_lib_tiff_TIFFError = yes; then
27636   TIFF_LINK=" -ltiff"
27637 fi
27638
27639
27640 fi
27641
27642
27643
27644         if test "x$TIFF_LINK" = "x" ; then
27645             if test "$wxUSE_LIBTIFF" = "sys" ; then
27646                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27647 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27648    { (exit 1); exit 1; }; }
27649             else
27650                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27651 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27652                 wxUSE_LIBTIFF=builtin
27653             fi
27654         else
27655                         wxUSE_LIBTIFF=sys
27656         fi
27657     fi
27658     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27659         if test "$wxUSE_LIBJPEG" = "no"; then
27660                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27661         fi
27662         subdirs="$subdirs src/tiff"
27663
27664     fi
27665 fi
27666
27667
27668 if test "$wxUSE_WCHAR_T" != "yes"; then
27669     if test "$wxUSE_EXPAT" != "no"; then
27670         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27671 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27672         wxUSE_EXPAT=no
27673     fi
27674     if test "$wxUSE_XML" != "no"; then
27675         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27676 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27677         wxUSE_XML=no
27678     fi
27679 fi
27680
27681 if test "$wxUSE_EXPAT" != "no"; then
27682     wxUSE_XML=yes
27683     cat >>confdefs.h <<\_ACEOF
27684 #define wxUSE_EXPAT 1
27685 _ACEOF
27686
27687     cat >>confdefs.h <<\_ACEOF
27688 #define wxUSE_XML 1
27689 _ACEOF
27690
27691
27692     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27693         { echo "$as_me:$LINENO: checking for expat.h" >&5
27694 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27695 if test "${ac_cv_header_expat_h+set}" = set; then
27696   echo $ECHO_N "(cached) $ECHO_C" >&6
27697 else
27698   cat >conftest.$ac_ext <<_ACEOF
27699 /* confdefs.h.  */
27700 _ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h.  */
27704
27705
27706 #include <expat.h>
27707 _ACEOF
27708 rm -f conftest.$ac_objext
27709 if { (ac_try="$ac_compile"
27710 case "(($ac_try" in
27711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712   *) ac_try_echo=$ac_try;;
27713 esac
27714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715   (eval "$ac_compile") 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } && {
27722          test -z "$ac_c_werror_flag" ||
27723          test ! -s conftest.err
27724        } && test -s conftest.$ac_objext; then
27725   ac_cv_header_expat_h=yes
27726 else
27727   echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730         ac_cv_header_expat_h=no
27731 fi
27732
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 fi
27735 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27736 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27737 if test $ac_cv_header_expat_h = yes; then
27738   found_expat_h=1
27739 fi
27740
27741
27742         if test "x$found_expat_h" = "x1"; then
27743                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27744 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27745 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27746   echo $ECHO_N "(cached) $ECHO_C" >&6
27747 else
27748
27749                 ac_ext=cpp
27750 ac_cpp='$CXXCPP $CPPFLAGS'
27751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27754
27755                 cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761 #include <expat.h>
27762 int
27763 main ()
27764 {
27765
27766   ;
27767   return 0;
27768 }
27769 _ACEOF
27770 rm -f conftest.$ac_objext
27771 if { (ac_try="$ac_compile"
27772 case "(($ac_try" in
27773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774   *) ac_try_echo=$ac_try;;
27775 esac
27776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777   (eval "$ac_compile") 2>conftest.er1
27778   ac_status=$?
27779   grep -v '^ *+' conftest.er1 >conftest.err
27780   rm -f conftest.er1
27781   cat conftest.err >&5
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); } && {
27784          test -z "$ac_cxx_werror_flag" ||
27785          test ! -s conftest.err
27786        } && test -s conftest.$ac_objext; then
27787   wx_cv_expat_is_not_broken=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27791
27792         wx_cv_expat_is_not_broken=no
27793
27794 fi
27795
27796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27797                 ac_ext=c
27798 ac_cpp='$CPP $CPPFLAGS'
27799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27802
27803
27804
27805 fi
27806 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27807 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27808             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27809                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27810 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27811 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27812   echo $ECHO_N "(cached) $ECHO_C" >&6
27813 else
27814   ac_check_lib_save_LIBS=$LIBS
27815 LIBS="-lexpat  $LIBS"
27816 cat >conftest.$ac_ext <<_ACEOF
27817 /* confdefs.h.  */
27818 _ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h.  */
27822
27823 /* Override any GCC internal prototype to avoid an error.
27824    Use char because int might match the return type of a GCC
27825    builtin and then its argument prototype would still apply.  */
27826 #ifdef __cplusplus
27827 extern "C"
27828 #endif
27829 char XML_ParserCreate ();
27830 int
27831 main ()
27832 {
27833 return XML_ParserCreate ();
27834   ;
27835   return 0;
27836 }
27837 _ACEOF
27838 rm -f conftest.$ac_objext conftest$ac_exeext
27839 if { (ac_try="$ac_link"
27840 case "(($ac_try" in
27841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842   *) ac_try_echo=$ac_try;;
27843 esac
27844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845   (eval "$ac_link") 2>conftest.er1
27846   ac_status=$?
27847   grep -v '^ *+' conftest.er1 >conftest.err
27848   rm -f conftest.er1
27849   cat conftest.err >&5
27850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851   (exit $ac_status); } && {
27852          test -z "$ac_c_werror_flag" ||
27853          test ! -s conftest.err
27854        } && test -s conftest$ac_exeext &&
27855        $as_test_x conftest$ac_exeext; then
27856   ac_cv_lib_expat_XML_ParserCreate=yes
27857 else
27858   echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861         ac_cv_lib_expat_XML_ParserCreate=no
27862 fi
27863
27864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27865       conftest$ac_exeext conftest.$ac_ext
27866 LIBS=$ac_check_lib_save_LIBS
27867 fi
27868 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27869 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27870 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27871   EXPAT_LINK=" -lexpat"
27872 fi
27873
27874             fi
27875         fi
27876         if test "x$EXPAT_LINK" = "x" ; then
27877             if test "$wxUSE_EXPAT" = "sys" ; then
27878                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27879 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27880    { (exit 1); exit 1; }; }
27881             else
27882                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27883 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27884                 wxUSE_EXPAT=builtin
27885             fi
27886         else
27887                         wxUSE_EXPAT=sys
27888         fi
27889     fi
27890     if test "$wxUSE_EXPAT" = "builtin" ; then
27891                 subdirs="$subdirs src/expat"
27892
27893     fi
27894 fi
27895
27896
27897
27898 if test "$wxUSE_LIBMSPACK" != "no"; then
27899     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27900 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27901 if test "${ac_cv_header_mspack_h+set}" = set; then
27902   echo $ECHO_N "(cached) $ECHO_C" >&6
27903 else
27904   cat >conftest.$ac_ext <<_ACEOF
27905 /* confdefs.h.  */
27906 _ACEOF
27907 cat confdefs.h >>conftest.$ac_ext
27908 cat >>conftest.$ac_ext <<_ACEOF
27909 /* end confdefs.h.  */
27910
27911
27912 #include <mspack.h>
27913 _ACEOF
27914 rm -f conftest.$ac_objext
27915 if { (ac_try="$ac_compile"
27916 case "(($ac_try" in
27917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27918   *) ac_try_echo=$ac_try;;
27919 esac
27920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27921   (eval "$ac_compile") 2>conftest.er1
27922   ac_status=$?
27923   grep -v '^ *+' conftest.er1 >conftest.err
27924   rm -f conftest.er1
27925   cat conftest.err >&5
27926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927   (exit $ac_status); } && {
27928          test -z "$ac_c_werror_flag" ||
27929          test ! -s conftest.err
27930        } && test -s conftest.$ac_objext; then
27931   ac_cv_header_mspack_h=yes
27932 else
27933   echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27935
27936         ac_cv_header_mspack_h=no
27937 fi
27938
27939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27940 fi
27941 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27942 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27943 if test $ac_cv_header_mspack_h = yes; then
27944   found_mspack_h=1
27945 fi
27946
27947
27948     if test "x$found_mspack_h" = "x1"; then
27949         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27950 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27951 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27952   echo $ECHO_N "(cached) $ECHO_C" >&6
27953 else
27954   ac_check_lib_save_LIBS=$LIBS
27955 LIBS="-lmspack  $LIBS"
27956 cat >conftest.$ac_ext <<_ACEOF
27957 /* confdefs.h.  */
27958 _ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h.  */
27962
27963 /* Override any GCC internal prototype to avoid an error.
27964    Use char because int might match the return type of a GCC
27965    builtin and then its argument prototype would still apply.  */
27966 #ifdef __cplusplus
27967 extern "C"
27968 #endif
27969 char mspack_create_chm_decompressor ();
27970 int
27971 main ()
27972 {
27973 return mspack_create_chm_decompressor ();
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (ac_try="$ac_link"
27980 case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985   (eval "$ac_link") 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } && {
27992          test -z "$ac_c_werror_flag" ||
27993          test ! -s conftest.err
27994        } && test -s conftest$ac_exeext &&
27995        $as_test_x conftest$ac_exeext; then
27996   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27997 else
27998   echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28002 fi
28003
28004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28005       conftest$ac_exeext conftest.$ac_ext
28006 LIBS=$ac_check_lib_save_LIBS
28007 fi
28008 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28009 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28010 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28011   MSPACK_LINK=" -lmspack"
28012 fi
28013
28014     fi
28015     if test "x$MSPACK_LINK" = "x" ; then
28016         wxUSE_LIBMSPACK=no
28017     fi
28018 fi
28019
28020 if test "$wxUSE_LIBMSPACK" != "no"; then
28021     cat >>confdefs.h <<\_ACEOF
28022 #define wxUSE_LIBMSPACK 1
28023 _ACEOF
28024
28025 fi
28026
28027
28028
28029 AFMINSTALL=
28030 WIN32INSTALL=
28031
28032 TOOLKIT=
28033 TOOLKIT_INCLUDE=
28034 WIDGET_SET=
28035
28036 if test "$USE_WIN32" = 1 ; then
28037
28038 for ac_header in w32api.h
28039 do
28040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28044   echo $ECHO_N "(cached) $ECHO_C" >&6
28045 else
28046   cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h.  */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h.  */
28052
28053
28054 #include <$ac_header>
28055 _ACEOF
28056 rm -f conftest.$ac_objext
28057 if { (ac_try="$ac_compile"
28058 case "(($ac_try" in
28059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060   *) ac_try_echo=$ac_try;;
28061 esac
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063   (eval "$ac_compile") 2>conftest.er1
28064   ac_status=$?
28065   grep -v '^ *+' conftest.er1 >conftest.err
28066   rm -f conftest.er1
28067   cat conftest.err >&5
28068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069   (exit $ac_status); } && {
28070          test -z "$ac_c_werror_flag" ||
28071          test ! -s conftest.err
28072        } && test -s conftest.$ac_objext; then
28073   eval "$as_ac_Header=yes"
28074 else
28075   echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078         eval "$as_ac_Header=no"
28079 fi
28080
28081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28082 fi
28083 ac_res=`eval echo '${'$as_ac_Header'}'`
28084                { echo "$as_me:$LINENO: result: $ac_res" >&5
28085 echo "${ECHO_T}$ac_res" >&6; }
28086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28087   cat >>confdefs.h <<_ACEOF
28088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28089 _ACEOF
28090
28091 fi
28092
28093 done
28094
28095     { echo "$as_me:$LINENO: checking for windows.h" >&5
28096 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28097 if test "${ac_cv_header_windows_h+set}" = set; then
28098   echo $ECHO_N "(cached) $ECHO_C" >&6
28099 else
28100   cat >conftest.$ac_ext <<_ACEOF
28101 /* confdefs.h.  */
28102 _ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h.  */
28106
28107
28108 #include <windows.h>
28109 _ACEOF
28110 rm -f conftest.$ac_objext
28111 if { (ac_try="$ac_compile"
28112 case "(($ac_try" in
28113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114   *) ac_try_echo=$ac_try;;
28115 esac
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117   (eval "$ac_compile") 2>conftest.er1
28118   ac_status=$?
28119   grep -v '^ *+' conftest.er1 >conftest.err
28120   rm -f conftest.er1
28121   cat conftest.err >&5
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } && {
28124          test -z "$ac_c_werror_flag" ||
28125          test ! -s conftest.err
28126        } && test -s conftest.$ac_objext; then
28127   ac_cv_header_windows_h=yes
28128 else
28129   echo "$as_me: failed program was:" >&5
28130 sed 's/^/| /' conftest.$ac_ext >&5
28131
28132         ac_cv_header_windows_h=no
28133 fi
28134
28135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28136 fi
28137 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28138 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28139 if test $ac_cv_header_windows_h = yes; then
28140   :
28141 else
28142
28143         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28144 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28145    { (exit 1); exit 1; }; }
28146
28147 fi
28148
28149
28150
28151             case "${host}" in
28152         x86_64-*-mingw32* )
28153                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28154         ;;
28155         * )
28156             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28157         ;;
28158     esac
28159     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28160         LIBS="$LIBS -loleacc"
28161     fi
28162
28163     case "${host}" in
28164         *-*-cygwin* )
28165                         LIBS="$LIBS -lkernel32 -luser32"
28166     esac
28167
28168         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28169     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28170
28171                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28172
28173         WIN32INSTALL=win32install
28174
28175         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28176 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28177 if test "${ac_cv_header_pbt_h+set}" = set; then
28178   echo $ECHO_N "(cached) $ECHO_C" >&6
28179 else
28180   cat >conftest.$ac_ext <<_ACEOF
28181 /* confdefs.h.  */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h.  */
28186
28187
28188 #include <pbt.h>
28189 _ACEOF
28190 rm -f conftest.$ac_objext
28191 if { (ac_try="$ac_compile"
28192 case "(($ac_try" in
28193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194   *) ac_try_echo=$ac_try;;
28195 esac
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197   (eval "$ac_compile") 2>conftest.er1
28198   ac_status=$?
28199   grep -v '^ *+' conftest.er1 >conftest.err
28200   rm -f conftest.er1
28201   cat conftest.err >&5
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); } && {
28204          test -z "$ac_c_werror_flag" ||
28205          test ! -s conftest.err
28206        } && test -s conftest.$ac_objext; then
28207   ac_cv_header_pbt_h=yes
28208 else
28209   echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28211
28212         ac_cv_header_pbt_h=no
28213 fi
28214
28215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28216 fi
28217 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28218 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28219 if test $ac_cv_header_pbt_h = yes; then
28220   :
28221 else
28222   cat >>confdefs.h <<\_ACEOF
28223 #define NEED_PBT_H 1
28224 _ACEOF
28225
28226 fi
28227
28228
28229 fi
28230
28231 if test "$wxUSE_GUI" = "yes"; then
28232     USE_GUI=1
28233
28234     GUI_TK_LIBRARY=
28235
28236     WXGTK12=
28237     WXGTK127=
28238     WXGTK2=
28239     WXGPE=
28240
28241     if test "$wxUSE_COCOA" = 1 ; then
28242         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28243             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28244 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28245             wxUSE_PRINTING_ARCHITECTURE=no
28246         fi
28247         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28248             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28249 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28250             wxUSE_DRAG_AND_DROP=no
28251         fi
28252         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28253             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28254 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28255             wxUSE_DRAGIMAGE=no
28256         fi
28257     fi
28258
28259     if test "$wxUSE_MSW" = 1 ; then
28260         TOOLKIT=MSW
28261         GUIDIST=MSW_DIST
28262
28263                 case "${host}" in
28264             *-*-mingw32* )
28265                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28266         esac
28267     fi
28268
28269     if test "$wxUSE_GTK" = 1; then
28270                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28271 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28272
28273         gtk_version_cached=1
28274         if test "${wx_cv_lib_gtk+set}" = set; then
28275   echo $ECHO_N "(cached) $ECHO_C" >&6
28276 else
28277
28278                                                 gtk_version_cached=0
28279                 { echo "$as_me:$LINENO: result: " >&5
28280 echo "${ECHO_T}" >&6; }
28281
28282                                                 GTK_MODULES=
28283                 if test "$wxUSE_THREADS" = "yes"; then
28284                     GTK_MODULES=gthread
28285                 fi
28286
28287                                 wx_cv_lib_gtk=
28288                 if test "x$wxGTK_VERSION" != "x1"
28289                 then
28290                                                                                 case "${host}" in
28291                         *-*-solaris2* )
28292                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28293                                 enable_gtktest=no
28294                             fi
28295                     esac
28296
28297                     # Check whether --enable-gtktest was given.
28298 if test "${enable_gtktest+set}" = set; then
28299   enableval=$enable_gtktest;
28300 else
28301   enable_gtktest=yes
28302 fi
28303
28304
28305   pkg_config_args=gtk+-2.0
28306   for module in . $GTK_MODULES
28307   do
28308       case "$module" in
28309          gthread)
28310              pkg_config_args="$pkg_config_args gthread-2.0"
28311          ;;
28312       esac
28313   done
28314
28315   no_gtk=""
28316
28317   # Extract the first word of "pkg-config", so it can be a program name with args.
28318 set dummy pkg-config; ac_word=$2
28319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324   case $PKG_CONFIG in
28325   [\\/]* | ?:[\\/]*)
28326   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28327   ;;
28328   *)
28329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28330 for as_dir in $PATH
28331 do
28332   IFS=$as_save_IFS
28333   test -z "$as_dir" && as_dir=.
28334   for ac_exec_ext in '' $ac_executable_extensions; do
28335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28336     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28338     break 2
28339   fi
28340 done
28341 done
28342 IFS=$as_save_IFS
28343
28344   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28345   ;;
28346 esac
28347 fi
28348 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28349 if test -n "$PKG_CONFIG"; then
28350   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28351 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28352 else
28353   { echo "$as_me:$LINENO: result: no" >&5
28354 echo "${ECHO_T}no" >&6; }
28355 fi
28356
28357
28358
28359   if test x$PKG_CONFIG != xno ; then
28360     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28361       :
28362     else
28363       echo "*** pkg-config too old; version 0.7 or better required."
28364       no_gtk=yes
28365       PKG_CONFIG=no
28366     fi
28367   else
28368     no_gtk=yes
28369   fi
28370
28371   min_gtk_version=2.4.0
28372   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28373 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28374
28375   if test x$PKG_CONFIG != xno ; then
28376     ## don't try to run the test against uninstalled libtool libs
28377     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28378           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28379           enable_gtktest=no
28380     fi
28381
28382     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28383           :
28384     else
28385           no_gtk=yes
28386     fi
28387   fi
28388
28389   if test x"$no_gtk" = x ; then
28390     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28391     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28392     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28393            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28394     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28396     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28397            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28398     if test "x$enable_gtktest" = "xyes" ; then
28399       ac_save_CFLAGS="$CFLAGS"
28400       ac_save_LIBS="$LIBS"
28401       CFLAGS="$CFLAGS $GTK_CFLAGS"
28402       LIBS="$GTK_LIBS $LIBS"
28403       rm -f conf.gtktest
28404       if test "$cross_compiling" = yes; then
28405   echo $ac_n "cross compiling; assumed OK... $ac_c"
28406 else
28407   cat >conftest.$ac_ext <<_ACEOF
28408 /* confdefs.h.  */
28409 _ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h.  */
28413
28414 #include <gtk/gtk.h>
28415 #include <stdio.h>
28416 #include <stdlib.h>
28417
28418 int
28419 main ()
28420 {
28421   int major, minor, micro;
28422   char *tmp_version;
28423
28424   system ("touch conf.gtktest");
28425
28426   /* HP/UX 9 (%@#!) writes to sscanf strings */
28427   tmp_version = g_strdup("$min_gtk_version");
28428   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28429      printf("%s, bad version string\n", "$min_gtk_version");
28430      exit(1);
28431    }
28432
28433   if ((gtk_major_version != $gtk_config_major_version) ||
28434       (gtk_minor_version != $gtk_config_minor_version) ||
28435       (gtk_micro_version != $gtk_config_micro_version))
28436     {
28437       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28438              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28439              gtk_major_version, gtk_minor_version, gtk_micro_version);
28440       printf ("*** was found! If pkg-config was correct, then it is best\n");
28441       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28442       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28443       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28444       printf("*** required on your system.\n");
28445       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28446       printf("*** to point to the correct configuration files\n");
28447     }
28448   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28449            (gtk_minor_version != GTK_MINOR_VERSION) ||
28450            (gtk_micro_version != GTK_MICRO_VERSION))
28451     {
28452       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28453              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28454       printf("*** library (version %d.%d.%d)\n",
28455              gtk_major_version, gtk_minor_version, gtk_micro_version);
28456     }
28457   else
28458     {
28459       if ((gtk_major_version > major) ||
28460         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28461         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28462       {
28463         return 0;
28464        }
28465      else
28466       {
28467         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28468                gtk_major_version, gtk_minor_version, gtk_micro_version);
28469         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28470                major, minor, micro);
28471         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28472         printf("***\n");
28473         printf("*** If you have already installed a sufficiently new version, this error\n");
28474         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28475         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28476         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28477         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28478         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28479         printf("*** so that the correct libraries are found at run-time))\n");
28480       }
28481     }
28482   return 1;
28483 }
28484
28485 _ACEOF
28486 rm -f conftest$ac_exeext
28487 if { (ac_try="$ac_link"
28488 case "(($ac_try" in
28489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490   *) ac_try_echo=$ac_try;;
28491 esac
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493   (eval "$ac_link") 2>&5
28494   ac_status=$?
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28497   { (case "(($ac_try" in
28498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499   *) ac_try_echo=$ac_try;;
28500 esac
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502   (eval "$ac_try") 2>&5
28503   ac_status=$?
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); }; }; then
28506   :
28507 else
28508   echo "$as_me: program exited with status $ac_status" >&5
28509 echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512 ( exit $ac_status )
28513 no_gtk=yes
28514 fi
28515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28516 fi
28517
28518
28519        CFLAGS="$ac_save_CFLAGS"
28520        LIBS="$ac_save_LIBS"
28521      fi
28522   fi
28523   if test "x$no_gtk" = x ; then
28524      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28525 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28526      wx_cv_lib_gtk=2.0
28527   else
28528      { echo "$as_me:$LINENO: result: no" >&5
28529 echo "${ECHO_T}no" >&6; }
28530      if test "$PKG_CONFIG" = "no" ; then
28531        echo "*** A new enough version of pkg-config was not found."
28532        echo "*** See http://pkgconfig.sourceforge.net"
28533      else
28534        if test -f conf.gtktest ; then
28535         :
28536        else
28537           echo "*** Could not run GTK+ test program, checking why..."
28538           ac_save_CFLAGS="$CFLAGS"
28539           ac_save_LIBS="$LIBS"
28540           CFLAGS="$CFLAGS $GTK_CFLAGS"
28541           LIBS="$LIBS $GTK_LIBS"
28542           cat >conftest.$ac_ext <<_ACEOF
28543 /* confdefs.h.  */
28544 _ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h.  */
28548
28549 #include <gtk/gtk.h>
28550 #include <stdio.h>
28551
28552 int
28553 main ()
28554 {
28555  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28556   ;
28557   return 0;
28558 }
28559 _ACEOF
28560 rm -f conftest.$ac_objext conftest$ac_exeext
28561 if { (ac_try="$ac_link"
28562 case "(($ac_try" in
28563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28564   *) ac_try_echo=$ac_try;;
28565 esac
28566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28567   (eval "$ac_link") 2>conftest.er1
28568   ac_status=$?
28569   grep -v '^ *+' conftest.er1 >conftest.err
28570   rm -f conftest.er1
28571   cat conftest.err >&5
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } && {
28574          test -z "$ac_c_werror_flag" ||
28575          test ! -s conftest.err
28576        } && test -s conftest$ac_exeext &&
28577        $as_test_x conftest$ac_exeext; then
28578    echo "*** The test program compiled, but did not run. This usually means"
28579           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28580           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28581           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28582           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28583           echo "*** is required on your system"
28584           echo "***"
28585           echo "*** If you have an old version installed, it is best to remove it, although"
28586           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591          echo "*** The test program failed to compile or link. See the file config.log for the"
28592           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28593 fi
28594
28595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28596       conftest$ac_exeext conftest.$ac_ext
28597           CFLAGS="$ac_save_CFLAGS"
28598           LIBS="$ac_save_LIBS"
28599        fi
28600      fi
28601      GTK_CFLAGS=""
28602      GTK_LIBS=""
28603      :
28604   fi
28605
28606
28607   rm -f conf.gtktest
28608
28609
28610                                         case "${host}" in
28611                         *-*-solaris2* )
28612                             if test "$wxUSE_SHARED" != "yes"; then
28613                                 GTK_LIBS="$GTK_LIBS -lX11"
28614                             fi
28615                     esac
28616                 fi
28617
28618                                 if test -z "$wx_cv_lib_gtk"; then
28619                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28620
28621 # Check whether --with-gtk-prefix was given.
28622 if test "${with_gtk_prefix+set}" = set; then
28623   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28624 else
28625   gtk_config_prefix=""
28626 fi
28627
28628
28629 # Check whether --with-gtk-exec-prefix was given.
28630 if test "${with_gtk_exec_prefix+set}" = set; then
28631   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28632 else
28633   gtk_config_exec_prefix=""
28634 fi
28635
28636 # Check whether --enable-gtktest was given.
28637 if test "${enable_gtktest+set}" = set; then
28638   enableval=$enable_gtktest;
28639 else
28640   enable_gtktest=yes
28641 fi
28642
28643
28644   for module in . $GTK_MODULES
28645   do
28646       case "$module" in
28647          gthread)
28648              gtk_config_args="$gtk_config_args gthread"
28649          ;;
28650       esac
28651   done
28652
28653   if test x$gtk_config_exec_prefix != x ; then
28654      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28655      if test x${GTK_CONFIG+set} != xset ; then
28656         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28657      fi
28658   fi
28659   if test x$gtk_config_prefix != x ; then
28660      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28661      if test x${GTK_CONFIG+set} != xset ; then
28662         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28663      fi
28664   fi
28665
28666   # Extract the first word of "gtk-config", so it can be a program name with args.
28667 set dummy gtk-config; ac_word=$2
28668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28670 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28671   echo $ECHO_N "(cached) $ECHO_C" >&6
28672 else
28673   case $GTK_CONFIG in
28674   [\\/]* | ?:[\\/]*)
28675   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28676   ;;
28677   *)
28678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28679 for as_dir in $PATH
28680 do
28681   IFS=$as_save_IFS
28682   test -z "$as_dir" && as_dir=.
28683   for ac_exec_ext in '' $ac_executable_extensions; do
28684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28685     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28687     break 2
28688   fi
28689 done
28690 done
28691 IFS=$as_save_IFS
28692
28693   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28694   ;;
28695 esac
28696 fi
28697 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28698 if test -n "$GTK_CONFIG"; then
28699   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28700 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28701 else
28702   { echo "$as_me:$LINENO: result: no" >&5
28703 echo "${ECHO_T}no" >&6; }
28704 fi
28705
28706
28707   min_gtk_version=1.2.7
28708   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28709 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28710   no_gtk=""
28711   if test "$GTK_CONFIG" = "no" ; then
28712     no_gtk=yes
28713   else
28714     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28715     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28716     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28717            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28718     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28719            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28720     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28721            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28722     if test "x$enable_gtktest" = "xyes" ; then
28723       ac_save_CFLAGS="$CFLAGS"
28724       ac_save_LIBS="$LIBS"
28725       CFLAGS="$CFLAGS $GTK_CFLAGS"
28726       LIBS="$GTK_LIBS $LIBS"
28727       rm -f conf.gtktest
28728       if test "$cross_compiling" = yes; then
28729   echo $ac_n "cross compiling; assumed OK... $ac_c"
28730 else
28731   cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h.  */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h.  */
28737
28738 #include <gtk/gtk.h>
28739 #include <stdio.h>
28740 #include <stdlib.h>
28741
28742 int
28743 main ()
28744 {
28745   int major, minor, micro;
28746   char *tmp_version;
28747
28748   system ("touch conf.gtktest");
28749
28750   /* HP/UX 9 (%@#!) writes to sscanf strings */
28751   tmp_version = g_strdup("$min_gtk_version");
28752   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28753      printf("%s, bad version string\n", "$min_gtk_version");
28754      exit(1);
28755    }
28756
28757   if ((gtk_major_version != $gtk_config_major_version) ||
28758       (gtk_minor_version != $gtk_config_minor_version) ||
28759       (gtk_micro_version != $gtk_config_micro_version))
28760     {
28761       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28762              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28763              gtk_major_version, gtk_minor_version, gtk_micro_version);
28764       printf ("*** was found! If gtk-config was correct, then it is best\n");
28765       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28766       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28767       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28768       printf("*** required on your system.\n");
28769       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28770       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28771       printf("*** before re-running configure\n");
28772     }
28773 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28774   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28775            (gtk_minor_version != GTK_MINOR_VERSION) ||
28776            (gtk_micro_version != GTK_MICRO_VERSION))
28777     {
28778       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28779              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28780       printf("*** library (version %d.%d.%d)\n",
28781              gtk_major_version, gtk_minor_version, gtk_micro_version);
28782     }
28783 #endif /* defined (GTK_MAJOR_VERSION) ... */
28784   else
28785     {
28786       if ((gtk_major_version > major) ||
28787         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28788         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28789       {
28790         return 0;
28791        }
28792      else
28793       {
28794         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28795                gtk_major_version, gtk_minor_version, gtk_micro_version);
28796         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28797                major, minor, micro);
28798         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28799         printf("***\n");
28800         printf("*** If you have already installed a sufficiently new version, this error\n");
28801         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28802         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28803         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28804         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28805         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28806         printf("*** so that the correct libraries are found at run-time))\n");
28807       }
28808     }
28809   return 1;
28810 }
28811
28812 _ACEOF
28813 rm -f conftest$ac_exeext
28814 if { (ac_try="$ac_link"
28815 case "(($ac_try" in
28816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817   *) ac_try_echo=$ac_try;;
28818 esac
28819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820   (eval "$ac_link") 2>&5
28821   ac_status=$?
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28824   { (case "(($ac_try" in
28825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826   *) ac_try_echo=$ac_try;;
28827 esac
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829   (eval "$ac_try") 2>&5
28830   ac_status=$?
28831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832   (exit $ac_status); }; }; then
28833   :
28834 else
28835   echo "$as_me: program exited with status $ac_status" >&5
28836 echo "$as_me: failed program was:" >&5
28837 sed 's/^/| /' conftest.$ac_ext >&5
28838
28839 ( exit $ac_status )
28840 no_gtk=yes
28841 fi
28842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28843 fi
28844
28845
28846        CFLAGS="$ac_save_CFLAGS"
28847        LIBS="$ac_save_LIBS"
28848      fi
28849   fi
28850   if test "x$no_gtk" = x ; then
28851      { echo "$as_me:$LINENO: result: yes" >&5
28852 echo "${ECHO_T}yes" >&6; }
28853      wx_cv_lib_gtk=1.2.7
28854   else
28855      { echo "$as_me:$LINENO: result: no" >&5
28856 echo "${ECHO_T}no" >&6; }
28857      if test "$GTK_CONFIG" = "no" ; then
28858        echo "*** The gtk-config script installed by GTK could not be found"
28859        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28860        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28861        echo "*** full path to gtk-config."
28862      else
28863        if test -f conf.gtktest ; then
28864         :
28865        else
28866           echo "*** Could not run GTK test program, checking why..."
28867           CFLAGS="$CFLAGS $GTK_CFLAGS"
28868           LIBS="$LIBS $GTK_LIBS"
28869           cat >conftest.$ac_ext <<_ACEOF
28870 /* confdefs.h.  */
28871 _ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h.  */
28875
28876 #include <gtk/gtk.h>
28877 #include <stdio.h>
28878
28879 int
28880 main ()
28881 {
28882  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 rm -f conftest.$ac_objext conftest$ac_exeext
28888 if { (ac_try="$ac_link"
28889 case "(($ac_try" in
28890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891   *) ac_try_echo=$ac_try;;
28892 esac
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894   (eval "$ac_link") 2>conftest.er1
28895   ac_status=$?
28896   grep -v '^ *+' conftest.er1 >conftest.err
28897   rm -f conftest.er1
28898   cat conftest.err >&5
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); } && {
28901          test -z "$ac_c_werror_flag" ||
28902          test ! -s conftest.err
28903        } && test -s conftest$ac_exeext &&
28904        $as_test_x conftest$ac_exeext; then
28905    echo "*** The test program compiled, but did not run. This usually means"
28906           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28907           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28908           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28909           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28910           echo "*** is required on your system"
28911           echo "***"
28912           echo "*** If you have an old version installed, it is best to remove it, although"
28913           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28914           echo "***"
28915           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28916           echo "*** came with the system with the command"
28917           echo "***"
28918           echo "***    rpm --erase --nodeps gtk gtk-devel"
28919 else
28920   echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923          echo "*** The test program failed to compile or link. See the file config.log for the"
28924           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28925           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28926           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28927 fi
28928
28929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28930       conftest$ac_exeext conftest.$ac_ext
28931           CFLAGS="$ac_save_CFLAGS"
28932           LIBS="$ac_save_LIBS"
28933        fi
28934      fi
28935      GTK_CFLAGS=""
28936      GTK_LIBS=""
28937      :
28938   fi
28939
28940
28941   rm -f conf.gtktest
28942
28943
28944                         if test -z "$wx_cv_lib_gtk"; then
28945
28946 # Check whether --with-gtk-prefix was given.
28947 if test "${with_gtk_prefix+set}" = set; then
28948   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28949 else
28950   gtk_config_prefix=""
28951 fi
28952
28953
28954 # Check whether --with-gtk-exec-prefix was given.
28955 if test "${with_gtk_exec_prefix+set}" = set; then
28956   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28957 else
28958   gtk_config_exec_prefix=""
28959 fi
28960
28961 # Check whether --enable-gtktest was given.
28962 if test "${enable_gtktest+set}" = set; then
28963   enableval=$enable_gtktest;
28964 else
28965   enable_gtktest=yes
28966 fi
28967
28968
28969   for module in . $GTK_MODULES
28970   do
28971       case "$module" in
28972          gthread)
28973              gtk_config_args="$gtk_config_args gthread"
28974          ;;
28975       esac
28976   done
28977
28978   if test x$gtk_config_exec_prefix != x ; then
28979      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28980      if test x${GTK_CONFIG+set} != xset ; then
28981         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28982      fi
28983   fi
28984   if test x$gtk_config_prefix != x ; then
28985      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28986      if test x${GTK_CONFIG+set} != xset ; then
28987         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28988      fi
28989   fi
28990
28991   # Extract the first word of "gtk-config", so it can be a program name with args.
28992 set dummy gtk-config; ac_word=$2
28993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28995 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998   case $GTK_CONFIG in
28999   [\\/]* | ?:[\\/]*)
29000   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29001   ;;
29002   *)
29003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29004 for as_dir in $PATH
29005 do
29006   IFS=$as_save_IFS
29007   test -z "$as_dir" && as_dir=.
29008   for ac_exec_ext in '' $ac_executable_extensions; do
29009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29010     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29012     break 2
29013   fi
29014 done
29015 done
29016 IFS=$as_save_IFS
29017
29018   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29019   ;;
29020 esac
29021 fi
29022 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29023 if test -n "$GTK_CONFIG"; then
29024   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29025 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29026 else
29027   { echo "$as_me:$LINENO: result: no" >&5
29028 echo "${ECHO_T}no" >&6; }
29029 fi
29030
29031
29032   min_gtk_version=1.2.3
29033   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29034 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29035   no_gtk=""
29036   if test "$GTK_CONFIG" = "no" ; then
29037     no_gtk=yes
29038   else
29039     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29040     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29041     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29042            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29043     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29044            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29045     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29046            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29047     if test "x$enable_gtktest" = "xyes" ; then
29048       ac_save_CFLAGS="$CFLAGS"
29049       ac_save_LIBS="$LIBS"
29050       CFLAGS="$CFLAGS $GTK_CFLAGS"
29051       LIBS="$GTK_LIBS $LIBS"
29052       rm -f conf.gtktest
29053       if test "$cross_compiling" = yes; then
29054   echo $ac_n "cross compiling; assumed OK... $ac_c"
29055 else
29056   cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062
29063 #include <gtk/gtk.h>
29064 #include <stdio.h>
29065 #include <stdlib.h>
29066
29067 int
29068 main ()
29069 {
29070   int major, minor, micro;
29071   char *tmp_version;
29072
29073   system ("touch conf.gtktest");
29074
29075   /* HP/UX 9 (%@#!) writes to sscanf strings */
29076   tmp_version = g_strdup("$min_gtk_version");
29077   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29078      printf("%s, bad version string\n", "$min_gtk_version");
29079      exit(1);
29080    }
29081
29082   if ((gtk_major_version != $gtk_config_major_version) ||
29083       (gtk_minor_version != $gtk_config_minor_version) ||
29084       (gtk_micro_version != $gtk_config_micro_version))
29085     {
29086       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29087              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29088              gtk_major_version, gtk_minor_version, gtk_micro_version);
29089       printf ("*** was found! If gtk-config was correct, then it is best\n");
29090       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29091       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29092       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29093       printf("*** required on your system.\n");
29094       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29095       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29096       printf("*** before re-running configure\n");
29097     }
29098 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29099   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29100            (gtk_minor_version != GTK_MINOR_VERSION) ||
29101            (gtk_micro_version != GTK_MICRO_VERSION))
29102     {
29103       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29104              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29105       printf("*** library (version %d.%d.%d)\n",
29106              gtk_major_version, gtk_minor_version, gtk_micro_version);
29107     }
29108 #endif /* defined (GTK_MAJOR_VERSION) ... */
29109   else
29110     {
29111       if ((gtk_major_version > major) ||
29112         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29113         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29114       {
29115         return 0;
29116        }
29117      else
29118       {
29119         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29120                gtk_major_version, gtk_minor_version, gtk_micro_version);
29121         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29122                major, minor, micro);
29123         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29124         printf("***\n");
29125         printf("*** If you have already installed a sufficiently new version, this error\n");
29126         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29127         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29128         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29129         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29130         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29131         printf("*** so that the correct libraries are found at run-time))\n");
29132       }
29133     }
29134   return 1;
29135 }
29136
29137 _ACEOF
29138 rm -f conftest$ac_exeext
29139 if { (ac_try="$ac_link"
29140 case "(($ac_try" in
29141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142   *) ac_try_echo=$ac_try;;
29143 esac
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145   (eval "$ac_link") 2>&5
29146   ac_status=$?
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29149   { (case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154   (eval "$ac_try") 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); }; }; then
29158   :
29159 else
29160   echo "$as_me: program exited with status $ac_status" >&5
29161 echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29163
29164 ( exit $ac_status )
29165 no_gtk=yes
29166 fi
29167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29168 fi
29169
29170
29171        CFLAGS="$ac_save_CFLAGS"
29172        LIBS="$ac_save_LIBS"
29173      fi
29174   fi
29175   if test "x$no_gtk" = x ; then
29176      { echo "$as_me:$LINENO: result: yes" >&5
29177 echo "${ECHO_T}yes" >&6; }
29178      wx_cv_lib_gtk=1.2.3
29179   else
29180      { echo "$as_me:$LINENO: result: no" >&5
29181 echo "${ECHO_T}no" >&6; }
29182      if test "$GTK_CONFIG" = "no" ; then
29183        echo "*** The gtk-config script installed by GTK could not be found"
29184        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29185        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29186        echo "*** full path to gtk-config."
29187      else
29188        if test -f conf.gtktest ; then
29189         :
29190        else
29191           echo "*** Could not run GTK test program, checking why..."
29192           CFLAGS="$CFLAGS $GTK_CFLAGS"
29193           LIBS="$LIBS $GTK_LIBS"
29194           cat >conftest.$ac_ext <<_ACEOF
29195 /* confdefs.h.  */
29196 _ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h.  */
29200
29201 #include <gtk/gtk.h>
29202 #include <stdio.h>
29203
29204 int
29205 main ()
29206 {
29207  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29208   ;
29209   return 0;
29210 }
29211 _ACEOF
29212 rm -f conftest.$ac_objext conftest$ac_exeext
29213 if { (ac_try="$ac_link"
29214 case "(($ac_try" in
29215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216   *) ac_try_echo=$ac_try;;
29217 esac
29218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219   (eval "$ac_link") 2>conftest.er1
29220   ac_status=$?
29221   grep -v '^ *+' conftest.er1 >conftest.err
29222   rm -f conftest.er1
29223   cat conftest.err >&5
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } && {
29226          test -z "$ac_c_werror_flag" ||
29227          test ! -s conftest.err
29228        } && test -s conftest$ac_exeext &&
29229        $as_test_x conftest$ac_exeext; then
29230    echo "*** The test program compiled, but did not run. This usually means"
29231           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29232           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29233           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29234           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29235           echo "*** is required on your system"
29236           echo "***"
29237           echo "*** If you have an old version installed, it is best to remove it, although"
29238           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29239           echo "***"
29240           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29241           echo "*** came with the system with the command"
29242           echo "***"
29243           echo "***    rpm --erase --nodeps gtk gtk-devel"
29244 else
29245   echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29247
29248          echo "*** The test program failed to compile or link. See the file config.log for the"
29249           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29250           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29251           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29252 fi
29253
29254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29255       conftest$ac_exeext conftest.$ac_ext
29256           CFLAGS="$ac_save_CFLAGS"
29257           LIBS="$ac_save_LIBS"
29258        fi
29259      fi
29260      GTK_CFLAGS=""
29261      GTK_LIBS=""
29262      :
29263   fi
29264
29265
29266   rm -f conf.gtktest
29267
29268                         fi
29269                     fi
29270                 fi
29271
29272                 if test -z "$wx_cv_lib_gtk"; then
29273                                         wx_cv_lib_gtk=none
29274                 else
29275                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29276                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29277                 fi
29278
29279
29280 fi
29281
29282
29283                         if test "$gtk_version_cached" = 1; then
29284             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29285 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29286         fi
29287
29288         case "$wx_cv_lib_gtk" in
29289             2.0)    WXGTK2=1
29290                     TOOLKIT_VERSION=2
29291                     ;;
29292             1.2.7)  WXGTK127=1
29293                     WXGTK12=1
29294                     ;;
29295             1.2.3)  WXGTK12=1
29296                     ;;
29297             *)      { { echo "$as_me:$LINENO: error:
29298 The development files for GTK+ were not found. For GTK+ 2, please
29299 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29300 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29301 and that the version is 1.2.3 or above. Also check that the
29302 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29303 --libs' are in the LD_LIBRARY_PATH or equivalent.
29304                             " >&5
29305 echo "$as_me: error:
29306 The development files for GTK+ were not found. For GTK+ 2, please
29307 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29308 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29309 and that the version is 1.2.3 or above. Also check that the
29310 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29311 --libs' are in the LD_LIBRARY_PATH or equivalent.
29312                             " >&2;}
29313    { (exit 1); exit 1; }; }
29314                     ;;
29315         esac
29316
29317         if test "$WXGTK2" = 1; then
29318             save_CFLAGS="$CFLAGS"
29319             save_LIBS="$LIBS"
29320             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29321             LIBS="$LIBS $wx_cv_libs_gtk"
29322
29323                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29324 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29325             cat >conftest.$ac_ext <<_ACEOF
29326 /* confdefs.h.  */
29327 _ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h.  */
29331
29332                             #include <gtk/gtk.h>
29333
29334 int
29335 main ()
29336 {
29337
29338                             #if !GTK_CHECK_VERSION(2,10,0)
29339                             Not GTK+ 2.10
29340                             #endif
29341
29342   ;
29343   return 0;
29344 }
29345 _ACEOF
29346 rm -f conftest.$ac_objext
29347 if { (ac_try="$ac_compile"
29348 case "(($ac_try" in
29349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350   *) ac_try_echo=$ac_try;;
29351 esac
29352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29353   (eval "$ac_compile") 2>conftest.er1
29354   ac_status=$?
29355   grep -v '^ *+' conftest.er1 >conftest.err
29356   rm -f conftest.er1
29357   cat conftest.err >&5
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); } && {
29360          test -z "$ac_c_werror_flag" ||
29361          test ! -s conftest.err
29362        } && test -s conftest.$ac_objext; then
29363
29364                             cat >>confdefs.h <<\_ACEOF
29365 #define __WXGTK210__ 1
29366 _ACEOF
29367
29368                             cat >>confdefs.h <<\_ACEOF
29369 #define __WXGTK26__ 1
29370 _ACEOF
29371
29372                             { echo "$as_me:$LINENO: result: yes" >&5
29373 echo "${ECHO_T}yes" >&6; }
29374                             ac_wxgtk210=1
29375
29376 else
29377   echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29379
29380
29381                             { echo "$as_me:$LINENO: result: no" >&5
29382 echo "${ECHO_T}no" >&6; }
29383                             ac_wxgtk210=0
29384
29385 fi
29386
29387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388
29389             if test "$ac_wxgtk210" = 0; then
29390                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29391 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29392                 cat >conftest.$ac_ext <<_ACEOF
29393 /* confdefs.h.  */
29394 _ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h.  */
29398
29399                                 #include <gtk/gtk.h>
29400
29401 int
29402 main ()
29403 {
29404
29405                                 #if !GTK_CHECK_VERSION(2,6,0)
29406                                 Not GTK+ 2.6
29407                                 #endif
29408
29409   ;
29410   return 0;
29411 }
29412 _ACEOF
29413 rm -f conftest.$ac_objext
29414 if { (ac_try="$ac_compile"
29415 case "(($ac_try" in
29416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417   *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420   (eval "$ac_compile") 2>conftest.er1
29421   ac_status=$?
29422   grep -v '^ *+' conftest.er1 >conftest.err
29423   rm -f conftest.er1
29424   cat conftest.err >&5
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); } && {
29427          test -z "$ac_c_werror_flag" ||
29428          test ! -s conftest.err
29429        } && test -s conftest.$ac_objext; then
29430
29431                                 cat >>confdefs.h <<\_ACEOF
29432 #define __WXGTK26__ 1
29433 _ACEOF
29434
29435                                 { echo "$as_me:$LINENO: result: yes" >&5
29436 echo "${ECHO_T}yes" >&6; }
29437                                 ac_wxgtk26=1
29438
29439 else
29440   echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29442
29443
29444                                 { echo "$as_me:$LINENO: result: no" >&5
29445 echo "${ECHO_T}no" >&6; }
29446                                 ac_wxgtk26=0
29447
29448 fi
29449
29450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29451             fi
29452
29453             CFLAGS="$save_CFLAGS"
29454             LIBS="$save_LIBS"
29455         else
29456             if test "$wxUSE_UNICODE" = "yes"; then
29457                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29458 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29459                 wxUSE_UNICODE=no
29460             fi
29461
29462                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29463 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29464 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29465   echo $ECHO_N "(cached) $ECHO_C" >&6
29466 else
29467   ac_check_lib_save_LIBS=$LIBS
29468 LIBS="-lgdk  $LIBS"
29469 cat >conftest.$ac_ext <<_ACEOF
29470 /* confdefs.h.  */
29471 _ACEOF
29472 cat confdefs.h >>conftest.$ac_ext
29473 cat >>conftest.$ac_ext <<_ACEOF
29474 /* end confdefs.h.  */
29475
29476 /* Override any GCC internal prototype to avoid an error.
29477    Use char because int might match the return type of a GCC
29478    builtin and then its argument prototype would still apply.  */
29479 #ifdef __cplusplus
29480 extern "C"
29481 #endif
29482 char gdk_im_open ();
29483 int
29484 main ()
29485 {
29486 return gdk_im_open ();
29487   ;
29488   return 0;
29489 }
29490 _ACEOF
29491 rm -f conftest.$ac_objext conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_link") 2>conftest.er1
29499   ac_status=$?
29500   grep -v '^ *+' conftest.er1 >conftest.err
29501   rm -f conftest.er1
29502   cat conftest.err >&5
29503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504   (exit $ac_status); } && {
29505          test -z "$ac_c_werror_flag" ||
29506          test ! -s conftest.err
29507        } && test -s conftest$ac_exeext &&
29508        $as_test_x conftest$ac_exeext; then
29509   ac_cv_lib_gdk_gdk_im_open=yes
29510 else
29511   echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29513
29514         ac_cv_lib_gdk_gdk_im_open=no
29515 fi
29516
29517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29518       conftest$ac_exeext conftest.$ac_ext
29519 LIBS=$ac_check_lib_save_LIBS
29520 fi
29521 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29522 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29523 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29524   cat >>confdefs.h <<\_ACEOF
29525 #define HAVE_XIM 1
29526 _ACEOF
29527
29528 fi
29529
29530
29531                                     if test "$USE_DARWIN" != 1; then
29532
29533 for ac_func in poll
29534 do
29535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29539   echo $ECHO_N "(cached) $ECHO_C" >&6
29540 else
29541   cat >conftest.$ac_ext <<_ACEOF
29542 /* confdefs.h.  */
29543 _ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h.  */
29547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29549 #define $ac_func innocuous_$ac_func
29550
29551 /* System header to define __stub macros and hopefully few prototypes,
29552     which can conflict with char $ac_func (); below.
29553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29554     <limits.h> exists even on freestanding compilers.  */
29555
29556 #ifdef __STDC__
29557 # include <limits.h>
29558 #else
29559 # include <assert.h>
29560 #endif
29561
29562 #undef $ac_func
29563
29564 /* Override any GCC internal prototype to avoid an error.
29565    Use char because int might match the return type of a GCC
29566    builtin and then its argument prototype would still apply.  */
29567 #ifdef __cplusplus
29568 extern "C"
29569 #endif
29570 char $ac_func ();
29571 /* The GNU C library defines this for functions which it implements
29572     to always fail with ENOSYS.  Some functions are actually named
29573     something starting with __ and the normal name is an alias.  */
29574 #if defined __stub_$ac_func || defined __stub___$ac_func
29575 choke me
29576 #endif
29577
29578 int
29579 main ()
29580 {
29581 return $ac_func ();
29582   ;
29583   return 0;
29584 }
29585 _ACEOF
29586 rm -f conftest.$ac_objext conftest$ac_exeext
29587 if { (ac_try="$ac_link"
29588 case "(($ac_try" in
29589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590   *) ac_try_echo=$ac_try;;
29591 esac
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593   (eval "$ac_link") 2>conftest.er1
29594   ac_status=$?
29595   grep -v '^ *+' conftest.er1 >conftest.err
29596   rm -f conftest.er1
29597   cat conftest.err >&5
29598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599   (exit $ac_status); } && {
29600          test -z "$ac_c_werror_flag" ||
29601          test ! -s conftest.err
29602        } && test -s conftest$ac_exeext &&
29603        $as_test_x conftest$ac_exeext; then
29604   eval "$as_ac_var=yes"
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609         eval "$as_ac_var=no"
29610 fi
29611
29612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29613       conftest$ac_exeext conftest.$ac_ext
29614 fi
29615 ac_res=`eval echo '${'$as_ac_var'}'`
29616                { echo "$as_me:$LINENO: result: $ac_res" >&5
29617 echo "${ECHO_T}$ac_res" >&6; }
29618 if test `eval echo '${'$as_ac_var'}'` = yes; then
29619   cat >>confdefs.h <<_ACEOF
29620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29621 _ACEOF
29622
29623 fi
29624 done
29625
29626             fi
29627         fi
29628
29629         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29630         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29631
29632         AFMINSTALL=afminstall
29633         TOOLKIT=GTK
29634         GUIDIST=GTK_DIST
29635
29636                 if test "$wxUSE_GPE" = "yes"; then
29637             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29638 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29639
29640   ac_find_libraries=
29641   for ac_dir in $SEARCH_LIB;
29642   do
29643     for ac_extension in a so sl dylib dll.a; do
29644       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29645         ac_find_libraries=$ac_dir
29646         break 2
29647       fi
29648     done
29649   done
29650
29651             if test "$ac_find_libraries" != "" ; then
29652
29653     if test "$ac_find_libraries" = "default location"; then
29654     ac_path_to_link=""
29655   else
29656     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29657     result=$?
29658     if test $result = 0; then
29659       ac_path_to_link=""
29660     else
29661       ac_path_to_link=" -L$ac_find_libraries"
29662     fi
29663   fi
29664
29665                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29666                 WXGPE=1
29667                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29668 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29669             else
29670                 { echo "$as_me:$LINENO: result: not found" >&5
29671 echo "${ECHO_T}not found" >&6; }
29672             fi
29673
29674                                                                                                                     fi
29675     fi
29676
29677     if test "$wxUSE_MGL" = 1; then
29678        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29679 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29680         if test "x$MGL_ROOT" = x ; then
29681             { echo "$as_me:$LINENO: result: not found" >&5
29682 echo "${ECHO_T}not found" >&6; }
29683             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29684 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29685    { (exit 1); exit 1; }; }
29686         else
29687             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29688 echo "${ECHO_T}$MGL_ROOT" >&6; }
29689         fi
29690
29691         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29692 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29693                                 case "${host}" in
29694             *-*-linux* )
29695                                           if test "x$wxUSE_SHARED" = xyes ; then
29696                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29697               else
29698                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29699               fi
29700               ;;
29701             *-pc-msdosdjgpp )
29702               mgl_os_candidates="dos32/dj2"
29703               ;;
29704             *)
29705               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29706 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29707    { (exit 1); exit 1; }; }
29708         esac
29709
29710         mgl_lib_type=""
29711         mgl_os=""
29712
29713         for mgl_os_i in $mgl_os_candidates ; do
29714             if test "x$mgl_os" = x ; then
29715                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29716                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29717                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29718                         mgl_lib_type=debug
29719                         mgl_os=$mgl_os_i
29720                     fi
29721                 fi
29722                 if test "x$mgl_lib_type" = x ; then
29723                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29724                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29725                         mgl_lib_type=release
29726                         mgl_os=$mgl_os_i
29727                     fi
29728                 fi
29729             fi
29730         done
29731
29732         if test "x$mgl_os" = x ; then
29733             { echo "$as_me:$LINENO: result: not found" >&5
29734 echo "${ECHO_T}not found" >&6; }
29735             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29736 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29737    { (exit 1); exit 1; }; }
29738         fi
29739         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29740 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29741
29742         wxUSE_UNIVERSAL="yes"
29743
29744         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29745         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29746
29747         AFMINSTALL=afminstall
29748         TOOLKIT=MGL
29749         GUIDIST=MGL_DIST
29750     fi
29751
29752     if test "$wxUSE_DFB" = 1; then
29753
29754
29755 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29756         if test -n "$ac_tool_prefix"; then
29757   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29758 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29762   echo $ECHO_N "(cached) $ECHO_C" >&6
29763 else
29764   case $PKG_CONFIG in
29765   [\\/]* | ?:[\\/]*)
29766   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29767   ;;
29768   *)
29769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29770 for as_dir in $PATH
29771 do
29772   IFS=$as_save_IFS
29773   test -z "$as_dir" && as_dir=.
29774   for ac_exec_ext in '' $ac_executable_extensions; do
29775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29776     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29778     break 2
29779   fi
29780 done
29781 done
29782 IFS=$as_save_IFS
29783
29784   ;;
29785 esac
29786 fi
29787 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29788 if test -n "$PKG_CONFIG"; then
29789   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29790 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29791 else
29792   { echo "$as_me:$LINENO: result: no" >&5
29793 echo "${ECHO_T}no" >&6; }
29794 fi
29795
29796
29797 fi
29798 if test -z "$ac_cv_path_PKG_CONFIG"; then
29799   ac_pt_PKG_CONFIG=$PKG_CONFIG
29800   # Extract the first word of "pkg-config", so it can be a program name with args.
29801 set dummy pkg-config; ac_word=$2
29802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29804 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29805   echo $ECHO_N "(cached) $ECHO_C" >&6
29806 else
29807   case $ac_pt_PKG_CONFIG in
29808   [\\/]* | ?:[\\/]*)
29809   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29810   ;;
29811   *)
29812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29813 for as_dir in $PATH
29814 do
29815   IFS=$as_save_IFS
29816   test -z "$as_dir" && as_dir=.
29817   for ac_exec_ext in '' $ac_executable_extensions; do
29818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29819     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29821     break 2
29822   fi
29823 done
29824 done
29825 IFS=$as_save_IFS
29826
29827   ;;
29828 esac
29829 fi
29830 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29831 if test -n "$ac_pt_PKG_CONFIG"; then
29832   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29833 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29834 else
29835   { echo "$as_me:$LINENO: result: no" >&5
29836 echo "${ECHO_T}no" >&6; }
29837 fi
29838
29839   if test "x$ac_pt_PKG_CONFIG" = x; then
29840     PKG_CONFIG=""
29841   else
29842     case $cross_compiling:$ac_tool_warned in
29843 yes:)
29844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29845 whose name does not start with the host triplet.  If you think this
29846 configuration is useful to you, please write to autoconf@gnu.org." >&5
29847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29848 whose name does not start with the host triplet.  If you think this
29849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29850 ac_tool_warned=yes ;;
29851 esac
29852     PKG_CONFIG=$ac_pt_PKG_CONFIG
29853   fi
29854 else
29855   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29856 fi
29857
29858 fi
29859 if test -n "$PKG_CONFIG"; then
29860         _pkg_min_version=0.9.0
29861         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29862 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29863         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29864                 { echo "$as_me:$LINENO: result: yes" >&5
29865 echo "${ECHO_T}yes" >&6; }
29866         else
29867                 { echo "$as_me:$LINENO: result: no" >&5
29868 echo "${ECHO_T}no" >&6; }
29869                 PKG_CONFIG=""
29870         fi
29871
29872 fi
29873
29874
29875 pkg_failed=no
29876 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29877 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29878
29879 if test -n "$PKG_CONFIG"; then
29880     if test -n "$DIRECTFB_CFLAGS"; then
29881         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29882     else
29883         if test -n "$PKG_CONFIG" && \
29884     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29885   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29886   ac_status=$?
29887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888   (exit $ac_status); }; then
29889   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29890 else
29891   pkg_failed=yes
29892 fi
29893     fi
29894 else
29895         pkg_failed=untried
29896 fi
29897 if test -n "$PKG_CONFIG"; then
29898     if test -n "$DIRECTFB_LIBS"; then
29899         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29900     else
29901         if test -n "$PKG_CONFIG" && \
29902     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29903   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29904   ac_status=$?
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); }; then
29907   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29908 else
29909   pkg_failed=yes
29910 fi
29911     fi
29912 else
29913         pkg_failed=untried
29914 fi
29915
29916
29917
29918 if test $pkg_failed = yes; then
29919
29920 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29921         _pkg_short_errors_supported=yes
29922 else
29923         _pkg_short_errors_supported=no
29924 fi
29925         if test $_pkg_short_errors_supported = yes; then
29926                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29927         else
29928                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29929         fi
29930         # Put the nasty error message in config.log where it belongs
29931         echo "$DIRECTFB_PKG_ERRORS" >&5
29932
29933
29934                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29935 echo "$as_me: error: DirectFB not found." >&2;}
29936    { (exit 1); exit 1; }; }
29937
29938
29939 elif test $pkg_failed = untried; then
29940
29941                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29942 echo "$as_me: error: DirectFB not found." >&2;}
29943    { (exit 1); exit 1; }; }
29944
29945
29946 else
29947         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29948         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29949         { echo "$as_me:$LINENO: result: yes" >&5
29950 echo "${ECHO_T}yes" >&6; }
29951
29952                            wxUSE_UNIVERSAL="yes"
29953                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29954                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29955                            TOOLKIT=DFB
29956                            GUIDIST=DFB_DIST
29957
29958 fi
29959     fi
29960
29961     if test "$wxUSE_MICROWIN" = 1; then
29962         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29963 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29964         if test "x$MICROWINDOWS" = x ; then
29965             { echo "$as_me:$LINENO: result: not found" >&5
29966 echo "${ECHO_T}not found" >&6; }
29967             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29968 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29969    { (exit 1); exit 1; }; }
29970         else
29971             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29972 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29973         fi
29974
29975         if test -f $MICROWINDOWS/lib/libmwin.a; then
29976             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29977 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29978         else
29979             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29980 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29981    { (exit 1); exit 1; }; }
29982         fi
29983
29984         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29985         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29986
29987         wxUSE_UNIVERSAL="yes"
29988
29989         AFMINSTALL=afminstall
29990         TOOLKIT=MICROWIN
29991         GUIDIST=MICROWIN_DIST
29992
29993         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29994     fi
29995
29996         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29997                                 { echo "$as_me:$LINENO: checking for X" >&5
29998 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29999
30000
30001 # Check whether --with-x was given.
30002 if test "${with_x+set}" = set; then
30003   withval=$with_x;
30004 fi
30005
30006 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30007 if test "x$with_x" = xno; then
30008   # The user explicitly disabled X.
30009   have_x=disabled
30010 else
30011   case $x_includes,$x_libraries in #(
30012     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30013 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30014    { (exit 1); exit 1; }; };; #(
30015     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30016   echo $ECHO_N "(cached) $ECHO_C" >&6
30017 else
30018   # One or both of the vars are not set, and there is no cached value.
30019 ac_x_includes=no ac_x_libraries=no
30020 rm -f -r conftest.dir
30021 if mkdir conftest.dir; then
30022   cd conftest.dir
30023   cat >Imakefile <<'_ACEOF'
30024 incroot:
30025         @echo incroot='${INCROOT}'
30026 usrlibdir:
30027         @echo usrlibdir='${USRLIBDIR}'
30028 libdir:
30029         @echo libdir='${LIBDIR}'
30030 _ACEOF
30031   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30032     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30033     for ac_var in incroot usrlibdir libdir; do
30034       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30035     done
30036     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30037     for ac_extension in a so sl; do
30038       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30039          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30040         ac_im_usrlibdir=$ac_im_libdir; break
30041       fi
30042     done
30043     # Screen out bogus values from the imake configuration.  They are
30044     # bogus both because they are the default anyway, and because
30045     # using them would break gcc on systems where it needs fixed includes.
30046     case $ac_im_incroot in
30047         /usr/include) ac_x_includes= ;;
30048         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30049     esac
30050     case $ac_im_usrlibdir in
30051         /usr/lib | /lib) ;;
30052         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30053     esac
30054   fi
30055   cd ..
30056   rm -f -r conftest.dir
30057 fi
30058
30059 # Standard set of common directories for X headers.
30060 # Check X11 before X11Rn because it is often a symlink to the current release.
30061 ac_x_header_dirs='
30062 /usr/X11/include
30063 /usr/X11R6/include
30064 /usr/X11R5/include
30065 /usr/X11R4/include
30066
30067 /usr/include/X11
30068 /usr/include/X11R6
30069 /usr/include/X11R5
30070 /usr/include/X11R4
30071
30072 /usr/local/X11/include
30073 /usr/local/X11R6/include
30074 /usr/local/X11R5/include
30075 /usr/local/X11R4/include
30076
30077 /usr/local/include/X11
30078 /usr/local/include/X11R6
30079 /usr/local/include/X11R5
30080 /usr/local/include/X11R4
30081
30082 /usr/X386/include
30083 /usr/x386/include
30084 /usr/XFree86/include/X11
30085
30086 /usr/include
30087 /usr/local/include
30088 /usr/unsupported/include
30089 /usr/athena/include
30090 /usr/local/x11r5/include
30091 /usr/lpp/Xamples/include
30092
30093 /usr/openwin/include
30094 /usr/openwin/share/include'
30095
30096 if test "$ac_x_includes" = no; then
30097   # Guess where to find include files, by looking for Xlib.h.
30098   # First, try using that file with no special directory specified.
30099   cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h.  */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h.  */
30105 #include <X11/Xlib.h>
30106 _ACEOF
30107 if { (ac_try="$ac_cpp conftest.$ac_ext"
30108 case "(($ac_try" in
30109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110   *) ac_try_echo=$ac_try;;
30111 esac
30112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30114   ac_status=$?
30115   grep -v '^ *+' conftest.er1 >conftest.err
30116   rm -f conftest.er1
30117   cat conftest.err >&5
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); } >/dev/null && {
30120          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30121          test ! -s conftest.err
30122        }; then
30123   # We can compile using X headers with no special include directory.
30124 ac_x_includes=
30125 else
30126   echo "$as_me: failed program was:" >&5
30127 sed 's/^/| /' conftest.$ac_ext >&5
30128
30129   for ac_dir in $ac_x_header_dirs; do
30130   if test -r "$ac_dir/X11/Xlib.h"; then
30131     ac_x_includes=$ac_dir
30132     break
30133   fi
30134 done
30135 fi
30136
30137 rm -f conftest.err conftest.$ac_ext
30138 fi # $ac_x_includes = no
30139
30140 if test "$ac_x_libraries" = no; then
30141   # Check for the libraries.
30142   # See if we find them without any special options.
30143   # Don't add to $LIBS permanently.
30144   ac_save_LIBS=$LIBS
30145   LIBS="-lX11 $LIBS"
30146   cat >conftest.$ac_ext <<_ACEOF
30147 /* confdefs.h.  */
30148 _ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h.  */
30152 #include <X11/Xlib.h>
30153 int
30154 main ()
30155 {
30156 XrmInitialize ()
30157   ;
30158   return 0;
30159 }
30160 _ACEOF
30161 rm -f conftest.$ac_objext conftest$ac_exeext
30162 if { (ac_try="$ac_link"
30163 case "(($ac_try" in
30164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165   *) ac_try_echo=$ac_try;;
30166 esac
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168   (eval "$ac_link") 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } && {
30175          test -z "$ac_c_werror_flag" ||
30176          test ! -s conftest.err
30177        } && test -s conftest$ac_exeext &&
30178        $as_test_x conftest$ac_exeext; then
30179   LIBS=$ac_save_LIBS
30180 # We can link X programs with no special library path.
30181 ac_x_libraries=
30182 else
30183   echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30185
30186         LIBS=$ac_save_LIBS
30187 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30188 do
30189   # Don't even attempt the hair of trying to link an X program!
30190   for ac_extension in a so sl; do
30191     if test -r "$ac_dir/libX11.$ac_extension"; then
30192       ac_x_libraries=$ac_dir
30193       break 2
30194     fi
30195   done
30196 done
30197 fi
30198
30199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30200       conftest$ac_exeext conftest.$ac_ext
30201 fi # $ac_x_libraries = no
30202
30203 case $ac_x_includes,$ac_x_libraries in #(
30204   no,* | *,no | *\'*)
30205     # Didn't find X, or a directory has "'" in its name.
30206     ac_cv_have_x="have_x=no";; #(
30207   *)
30208     # Record where we found X for the cache.
30209     ac_cv_have_x="have_x=yes\
30210         ac_x_includes='$ac_x_includes'\
30211         ac_x_libraries='$ac_x_libraries'"
30212 esac
30213 fi
30214 ;; #(
30215     *) have_x=yes;;
30216   esac
30217   eval "$ac_cv_have_x"
30218 fi # $with_x != no
30219
30220 if test "$have_x" != yes; then
30221   { echo "$as_me:$LINENO: result: $have_x" >&5
30222 echo "${ECHO_T}$have_x" >&6; }
30223   no_x=yes
30224 else
30225   # If each of the values was on the command line, it overrides each guess.
30226   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30227   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30228   # Update the cache value to reflect the command line values.
30229   ac_cv_have_x="have_x=yes\
30230         ac_x_includes='$x_includes'\
30231         ac_x_libraries='$x_libraries'"
30232   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30233 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30234 fi
30235
30236 if test "$no_x" = yes; then
30237   # Not all programs may use this symbol, but it does not hurt to define it.
30238
30239 cat >>confdefs.h <<\_ACEOF
30240 #define X_DISPLAY_MISSING 1
30241 _ACEOF
30242
30243   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30244 else
30245   if test -n "$x_includes"; then
30246     X_CFLAGS="$X_CFLAGS -I$x_includes"
30247   fi
30248
30249   # It would also be nice to do this for all -L options, not just this one.
30250   if test -n "$x_libraries"; then
30251     X_LIBS="$X_LIBS -L$x_libraries"
30252     # For Solaris; some versions of Sun CC require a space after -R and
30253     # others require no space.  Words are not sufficient . . . .
30254     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30255 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30256     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30257     ac_xsave_c_werror_flag=$ac_c_werror_flag
30258     ac_c_werror_flag=yes
30259     cat >conftest.$ac_ext <<_ACEOF
30260 /* confdefs.h.  */
30261 _ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h.  */
30265
30266 int
30267 main ()
30268 {
30269
30270   ;
30271   return 0;
30272 }
30273 _ACEOF
30274 rm -f conftest.$ac_objext conftest$ac_exeext
30275 if { (ac_try="$ac_link"
30276 case "(($ac_try" in
30277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278   *) ac_try_echo=$ac_try;;
30279 esac
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281   (eval "$ac_link") 2>conftest.er1
30282   ac_status=$?
30283   grep -v '^ *+' conftest.er1 >conftest.err
30284   rm -f conftest.er1
30285   cat conftest.err >&5
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); } && {
30288          test -z "$ac_c_werror_flag" ||
30289          test ! -s conftest.err
30290        } && test -s conftest$ac_exeext &&
30291        $as_test_x conftest$ac_exeext; then
30292   { echo "$as_me:$LINENO: result: no" >&5
30293 echo "${ECHO_T}no" >&6; }
30294        X_LIBS="$X_LIBS -R$x_libraries"
30295 else
30296   echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30298
30299         LIBS="$ac_xsave_LIBS -R $x_libraries"
30300        cat >conftest.$ac_ext <<_ACEOF
30301 /* confdefs.h.  */
30302 _ACEOF
30303 cat confdefs.h >>conftest.$ac_ext
30304 cat >>conftest.$ac_ext <<_ACEOF
30305 /* end confdefs.h.  */
30306
30307 int
30308 main ()
30309 {
30310
30311   ;
30312   return 0;
30313 }
30314 _ACEOF
30315 rm -f conftest.$ac_objext conftest$ac_exeext
30316 if { (ac_try="$ac_link"
30317 case "(($ac_try" in
30318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319   *) ac_try_echo=$ac_try;;
30320 esac
30321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30322   (eval "$ac_link") 2>conftest.er1
30323   ac_status=$?
30324   grep -v '^ *+' conftest.er1 >conftest.err
30325   rm -f conftest.er1
30326   cat conftest.err >&5
30327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328   (exit $ac_status); } && {
30329          test -z "$ac_c_werror_flag" ||
30330          test ! -s conftest.err
30331        } && test -s conftest$ac_exeext &&
30332        $as_test_x conftest$ac_exeext; then
30333   { echo "$as_me:$LINENO: result: yes" >&5
30334 echo "${ECHO_T}yes" >&6; }
30335           X_LIBS="$X_LIBS -R $x_libraries"
30336 else
30337   echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30339
30340         { echo "$as_me:$LINENO: result: neither works" >&5
30341 echo "${ECHO_T}neither works" >&6; }
30342 fi
30343
30344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30345       conftest$ac_exeext conftest.$ac_ext
30346 fi
30347
30348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30349       conftest$ac_exeext conftest.$ac_ext
30350     ac_c_werror_flag=$ac_xsave_c_werror_flag
30351     LIBS=$ac_xsave_LIBS
30352   fi
30353
30354   # Check for system-dependent libraries X programs must link with.
30355   # Do this before checking for the system-independent R6 libraries
30356   # (-lICE), since we may need -lsocket or whatever for X linking.
30357
30358   if test "$ISC" = yes; then
30359     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30360   else
30361     # Martyn Johnson says this is needed for Ultrix, if the X
30362     # libraries were built with DECnet support.  And Karl Berry says
30363     # the Alpha needs dnet_stub (dnet does not exist).
30364     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30365     cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371
30372 /* Override any GCC internal prototype to avoid an error.
30373    Use char because int might match the return type of a GCC
30374    builtin and then its argument prototype would still apply.  */
30375 #ifdef __cplusplus
30376 extern "C"
30377 #endif
30378 char XOpenDisplay ();
30379 int
30380 main ()
30381 {
30382 return XOpenDisplay ();
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391   *) ac_try_echo=$ac_try;;
30392 esac
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394   (eval "$ac_link") 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } && {
30401          test -z "$ac_c_werror_flag" ||
30402          test ! -s conftest.err
30403        } && test -s conftest$ac_exeext &&
30404        $as_test_x conftest$ac_exeext; then
30405   :
30406 else
30407   echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30409
30410         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30411 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30412 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30413   echo $ECHO_N "(cached) $ECHO_C" >&6
30414 else
30415   ac_check_lib_save_LIBS=$LIBS
30416 LIBS="-ldnet  $LIBS"
30417 cat >conftest.$ac_ext <<_ACEOF
30418 /* confdefs.h.  */
30419 _ACEOF
30420 cat confdefs.h >>conftest.$ac_ext
30421 cat >>conftest.$ac_ext <<_ACEOF
30422 /* end confdefs.h.  */
30423
30424 /* Override any GCC internal prototype to avoid an error.
30425    Use char because int might match the return type of a GCC
30426    builtin and then its argument prototype would still apply.  */
30427 #ifdef __cplusplus
30428 extern "C"
30429 #endif
30430 char dnet_ntoa ();
30431 int
30432 main ()
30433 {
30434 return dnet_ntoa ();
30435   ;
30436   return 0;
30437 }
30438 _ACEOF
30439 rm -f conftest.$ac_objext conftest$ac_exeext
30440 if { (ac_try="$ac_link"
30441 case "(($ac_try" in
30442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30443   *) ac_try_echo=$ac_try;;
30444 esac
30445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30446   (eval "$ac_link") 2>conftest.er1
30447   ac_status=$?
30448   grep -v '^ *+' conftest.er1 >conftest.err
30449   rm -f conftest.er1
30450   cat conftest.err >&5
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); } && {
30453          test -z "$ac_c_werror_flag" ||
30454          test ! -s conftest.err
30455        } && test -s conftest$ac_exeext &&
30456        $as_test_x conftest$ac_exeext; then
30457   ac_cv_lib_dnet_dnet_ntoa=yes
30458 else
30459   echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30461
30462         ac_cv_lib_dnet_dnet_ntoa=no
30463 fi
30464
30465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30466       conftest$ac_exeext conftest.$ac_ext
30467 LIBS=$ac_check_lib_save_LIBS
30468 fi
30469 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30470 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30471 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30472   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30473 fi
30474
30475     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30476       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30477 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30478 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30479   echo $ECHO_N "(cached) $ECHO_C" >&6
30480 else
30481   ac_check_lib_save_LIBS=$LIBS
30482 LIBS="-ldnet_stub  $LIBS"
30483 cat >conftest.$ac_ext <<_ACEOF
30484 /* confdefs.h.  */
30485 _ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h.  */
30489
30490 /* Override any GCC internal prototype to avoid an error.
30491    Use char because int might match the return type of a GCC
30492    builtin and then its argument prototype would still apply.  */
30493 #ifdef __cplusplus
30494 extern "C"
30495 #endif
30496 char dnet_ntoa ();
30497 int
30498 main ()
30499 {
30500 return dnet_ntoa ();
30501   ;
30502   return 0;
30503 }
30504 _ACEOF
30505 rm -f conftest.$ac_objext conftest$ac_exeext
30506 if { (ac_try="$ac_link"
30507 case "(($ac_try" in
30508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509   *) ac_try_echo=$ac_try;;
30510 esac
30511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512   (eval "$ac_link") 2>conftest.er1
30513   ac_status=$?
30514   grep -v '^ *+' conftest.er1 >conftest.err
30515   rm -f conftest.er1
30516   cat conftest.err >&5
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); } && {
30519          test -z "$ac_c_werror_flag" ||
30520          test ! -s conftest.err
30521        } && test -s conftest$ac_exeext &&
30522        $as_test_x conftest$ac_exeext; then
30523   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30524 else
30525   echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30527
30528         ac_cv_lib_dnet_stub_dnet_ntoa=no
30529 fi
30530
30531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30532       conftest$ac_exeext conftest.$ac_ext
30533 LIBS=$ac_check_lib_save_LIBS
30534 fi
30535 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30536 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30537 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30538   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30539 fi
30540
30541     fi
30542 fi
30543
30544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30545       conftest$ac_exeext conftest.$ac_ext
30546     LIBS="$ac_xsave_LIBS"
30547
30548     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30549     # to get the SysV transport functions.
30550     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30551     # needs -lnsl.
30552     # The nsl library prevents programs from opening the X display
30553     # on Irix 5.2, according to T.E. Dickey.
30554     # The functions gethostbyname, getservbyname, and inet_addr are
30555     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30556     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30557 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30558 if test "${ac_cv_func_gethostbyname+set}" = set; then
30559   echo $ECHO_N "(cached) $ECHO_C" >&6
30560 else
30561   cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h.  */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h.  */
30567 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30569 #define gethostbyname innocuous_gethostbyname
30570
30571 /* System header to define __stub macros and hopefully few prototypes,
30572     which can conflict with char gethostbyname (); below.
30573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30574     <limits.h> exists even on freestanding compilers.  */
30575
30576 #ifdef __STDC__
30577 # include <limits.h>
30578 #else
30579 # include <assert.h>
30580 #endif
30581
30582 #undef gethostbyname
30583
30584 /* Override any GCC internal prototype to avoid an error.
30585    Use char because int might match the return type of a GCC
30586    builtin and then its argument prototype would still apply.  */
30587 #ifdef __cplusplus
30588 extern "C"
30589 #endif
30590 char gethostbyname ();
30591 /* The GNU C library defines this for functions which it implements
30592     to always fail with ENOSYS.  Some functions are actually named
30593     something starting with __ and the normal name is an alias.  */
30594 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30595 choke me
30596 #endif
30597
30598 int
30599 main ()
30600 {
30601 return gethostbyname ();
30602   ;
30603   return 0;
30604 }
30605 _ACEOF
30606 rm -f conftest.$ac_objext conftest$ac_exeext
30607 if { (ac_try="$ac_link"
30608 case "(($ac_try" in
30609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610   *) ac_try_echo=$ac_try;;
30611 esac
30612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30613   (eval "$ac_link") 2>conftest.er1
30614   ac_status=$?
30615   grep -v '^ *+' conftest.er1 >conftest.err
30616   rm -f conftest.er1
30617   cat conftest.err >&5
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); } && {
30620          test -z "$ac_c_werror_flag" ||
30621          test ! -s conftest.err
30622        } && test -s conftest$ac_exeext &&
30623        $as_test_x conftest$ac_exeext; then
30624   ac_cv_func_gethostbyname=yes
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629         ac_cv_func_gethostbyname=no
30630 fi
30631
30632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30633       conftest$ac_exeext conftest.$ac_ext
30634 fi
30635 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30636 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30637
30638     if test $ac_cv_func_gethostbyname = no; then
30639       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30640 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30641 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30642   echo $ECHO_N "(cached) $ECHO_C" >&6
30643 else
30644   ac_check_lib_save_LIBS=$LIBS
30645 LIBS="-lnsl  $LIBS"
30646 cat >conftest.$ac_ext <<_ACEOF
30647 /* confdefs.h.  */
30648 _ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h.  */
30652
30653 /* Override any GCC internal prototype to avoid an error.
30654    Use char because int might match the return type of a GCC
30655    builtin and then its argument prototype would still apply.  */
30656 #ifdef __cplusplus
30657 extern "C"
30658 #endif
30659 char gethostbyname ();
30660 int
30661 main ()
30662 {
30663 return gethostbyname ();
30664   ;
30665   return 0;
30666 }
30667 _ACEOF
30668 rm -f conftest.$ac_objext conftest$ac_exeext
30669 if { (ac_try="$ac_link"
30670 case "(($ac_try" in
30671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672   *) ac_try_echo=$ac_try;;
30673 esac
30674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675   (eval "$ac_link") 2>conftest.er1
30676   ac_status=$?
30677   grep -v '^ *+' conftest.er1 >conftest.err
30678   rm -f conftest.er1
30679   cat conftest.err >&5
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); } && {
30682          test -z "$ac_c_werror_flag" ||
30683          test ! -s conftest.err
30684        } && test -s conftest$ac_exeext &&
30685        $as_test_x conftest$ac_exeext; then
30686   ac_cv_lib_nsl_gethostbyname=yes
30687 else
30688   echo "$as_me: failed program was:" >&5
30689 sed 's/^/| /' conftest.$ac_ext >&5
30690
30691         ac_cv_lib_nsl_gethostbyname=no
30692 fi
30693
30694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30695       conftest$ac_exeext conftest.$ac_ext
30696 LIBS=$ac_check_lib_save_LIBS
30697 fi
30698 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30699 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30700 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30701   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30702 fi
30703
30704       if test $ac_cv_lib_nsl_gethostbyname = no; then
30705         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30706 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30707 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30708   echo $ECHO_N "(cached) $ECHO_C" >&6
30709 else
30710   ac_check_lib_save_LIBS=$LIBS
30711 LIBS="-lbsd  $LIBS"
30712 cat >conftest.$ac_ext <<_ACEOF
30713 /* confdefs.h.  */
30714 _ACEOF
30715 cat confdefs.h >>conftest.$ac_ext
30716 cat >>conftest.$ac_ext <<_ACEOF
30717 /* end confdefs.h.  */
30718
30719 /* Override any GCC internal prototype to avoid an error.
30720    Use char because int might match the return type of a GCC
30721    builtin and then its argument prototype would still apply.  */
30722 #ifdef __cplusplus
30723 extern "C"
30724 #endif
30725 char gethostbyname ();
30726 int
30727 main ()
30728 {
30729 return gethostbyname ();
30730   ;
30731   return 0;
30732 }
30733 _ACEOF
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (ac_try="$ac_link"
30736 case "(($ac_try" in
30737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738   *) ac_try_echo=$ac_try;;
30739 esac
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741   (eval "$ac_link") 2>conftest.er1
30742   ac_status=$?
30743   grep -v '^ *+' conftest.er1 >conftest.err
30744   rm -f conftest.er1
30745   cat conftest.err >&5
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } && {
30748          test -z "$ac_c_werror_flag" ||
30749          test ! -s conftest.err
30750        } && test -s conftest$ac_exeext &&
30751        $as_test_x conftest$ac_exeext; then
30752   ac_cv_lib_bsd_gethostbyname=yes
30753 else
30754   echo "$as_me: failed program was:" >&5
30755 sed 's/^/| /' conftest.$ac_ext >&5
30756
30757         ac_cv_lib_bsd_gethostbyname=no
30758 fi
30759
30760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30761       conftest$ac_exeext conftest.$ac_ext
30762 LIBS=$ac_check_lib_save_LIBS
30763 fi
30764 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30765 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30766 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30767   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30768 fi
30769
30770       fi
30771     fi
30772
30773     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30774     # socket/setsockopt and other routines are undefined under SCO ODT
30775     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30776     # on later versions), says Simon Leinen: it contains gethostby*
30777     # variants that don't use the name server (or something).  -lsocket
30778     # must be given before -lnsl if both are needed.  We assume that
30779     # if connect needs -lnsl, so does gethostbyname.
30780     { echo "$as_me:$LINENO: checking for connect" >&5
30781 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30782 if test "${ac_cv_func_connect+set}" = set; then
30783   echo $ECHO_N "(cached) $ECHO_C" >&6
30784 else
30785   cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h.  */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h.  */
30791 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30793 #define connect innocuous_connect
30794
30795 /* System header to define __stub macros and hopefully few prototypes,
30796     which can conflict with char connect (); below.
30797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798     <limits.h> exists even on freestanding compilers.  */
30799
30800 #ifdef __STDC__
30801 # include <limits.h>
30802 #else
30803 # include <assert.h>
30804 #endif
30805
30806 #undef connect
30807
30808 /* Override any GCC internal prototype to avoid an error.
30809    Use char because int might match the return type of a GCC
30810    builtin and then its argument prototype would still apply.  */
30811 #ifdef __cplusplus
30812 extern "C"
30813 #endif
30814 char connect ();
30815 /* The GNU C library defines this for functions which it implements
30816     to always fail with ENOSYS.  Some functions are actually named
30817     something starting with __ and the normal name is an alias.  */
30818 #if defined __stub_connect || defined __stub___connect
30819 choke me
30820 #endif
30821
30822 int
30823 main ()
30824 {
30825 return connect ();
30826   ;
30827   return 0;
30828 }
30829 _ACEOF
30830 rm -f conftest.$ac_objext conftest$ac_exeext
30831 if { (ac_try="$ac_link"
30832 case "(($ac_try" in
30833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834   *) ac_try_echo=$ac_try;;
30835 esac
30836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30837   (eval "$ac_link") 2>conftest.er1
30838   ac_status=$?
30839   grep -v '^ *+' conftest.er1 >conftest.err
30840   rm -f conftest.er1
30841   cat conftest.err >&5
30842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); } && {
30844          test -z "$ac_c_werror_flag" ||
30845          test ! -s conftest.err
30846        } && test -s conftest$ac_exeext &&
30847        $as_test_x conftest$ac_exeext; then
30848   ac_cv_func_connect=yes
30849 else
30850   echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30852
30853         ac_cv_func_connect=no
30854 fi
30855
30856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30857       conftest$ac_exeext conftest.$ac_ext
30858 fi
30859 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30860 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30861
30862     if test $ac_cv_func_connect = no; then
30863       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30864 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30865 if test "${ac_cv_lib_socket_connect+set}" = set; then
30866   echo $ECHO_N "(cached) $ECHO_C" >&6
30867 else
30868   ac_check_lib_save_LIBS=$LIBS
30869 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30870 cat >conftest.$ac_ext <<_ACEOF
30871 /* confdefs.h.  */
30872 _ACEOF
30873 cat confdefs.h >>conftest.$ac_ext
30874 cat >>conftest.$ac_ext <<_ACEOF
30875 /* end confdefs.h.  */
30876
30877 /* Override any GCC internal prototype to avoid an error.
30878    Use char because int might match the return type of a GCC
30879    builtin and then its argument prototype would still apply.  */
30880 #ifdef __cplusplus
30881 extern "C"
30882 #endif
30883 char connect ();
30884 int
30885 main ()
30886 {
30887 return connect ();
30888   ;
30889   return 0;
30890 }
30891 _ACEOF
30892 rm -f conftest.$ac_objext conftest$ac_exeext
30893 if { (ac_try="$ac_link"
30894 case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_link") 2>conftest.er1
30900   ac_status=$?
30901   grep -v '^ *+' conftest.er1 >conftest.err
30902   rm -f conftest.er1
30903   cat conftest.err >&5
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); } && {
30906          test -z "$ac_c_werror_flag" ||
30907          test ! -s conftest.err
30908        } && test -s conftest$ac_exeext &&
30909        $as_test_x conftest$ac_exeext; then
30910   ac_cv_lib_socket_connect=yes
30911 else
30912   echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30914
30915         ac_cv_lib_socket_connect=no
30916 fi
30917
30918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30919       conftest$ac_exeext conftest.$ac_ext
30920 LIBS=$ac_check_lib_save_LIBS
30921 fi
30922 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30923 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30924 if test $ac_cv_lib_socket_connect = yes; then
30925   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30926 fi
30927
30928     fi
30929
30930     # Guillermo Gomez says -lposix is necessary on A/UX.
30931     { echo "$as_me:$LINENO: checking for remove" >&5
30932 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30933 if test "${ac_cv_func_remove+set}" = set; then
30934   echo $ECHO_N "(cached) $ECHO_C" >&6
30935 else
30936   cat >conftest.$ac_ext <<_ACEOF
30937 /* confdefs.h.  */
30938 _ACEOF
30939 cat confdefs.h >>conftest.$ac_ext
30940 cat >>conftest.$ac_ext <<_ACEOF
30941 /* end confdefs.h.  */
30942 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30944 #define remove innocuous_remove
30945
30946 /* System header to define __stub macros and hopefully few prototypes,
30947     which can conflict with char remove (); below.
30948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30949     <limits.h> exists even on freestanding compilers.  */
30950
30951 #ifdef __STDC__
30952 # include <limits.h>
30953 #else
30954 # include <assert.h>
30955 #endif
30956
30957 #undef remove
30958
30959 /* Override any GCC internal prototype to avoid an error.
30960    Use char because int might match the return type of a GCC
30961    builtin and then its argument prototype would still apply.  */
30962 #ifdef __cplusplus
30963 extern "C"
30964 #endif
30965 char remove ();
30966 /* The GNU C library defines this for functions which it implements
30967     to always fail with ENOSYS.  Some functions are actually named
30968     something starting with __ and the normal name is an alias.  */
30969 #if defined __stub_remove || defined __stub___remove
30970 choke me
30971 #endif
30972
30973 int
30974 main ()
30975 {
30976 return remove ();
30977   ;
30978   return 0;
30979 }
30980 _ACEOF
30981 rm -f conftest.$ac_objext conftest$ac_exeext
30982 if { (ac_try="$ac_link"
30983 case "(($ac_try" in
30984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985   *) ac_try_echo=$ac_try;;
30986 esac
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988   (eval "$ac_link") 2>conftest.er1
30989   ac_status=$?
30990   grep -v '^ *+' conftest.er1 >conftest.err
30991   rm -f conftest.er1
30992   cat conftest.err >&5
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); } && {
30995          test -z "$ac_c_werror_flag" ||
30996          test ! -s conftest.err
30997        } && test -s conftest$ac_exeext &&
30998        $as_test_x conftest$ac_exeext; then
30999   ac_cv_func_remove=yes
31000 else
31001   echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31003
31004         ac_cv_func_remove=no
31005 fi
31006
31007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31008       conftest$ac_exeext conftest.$ac_ext
31009 fi
31010 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31011 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31012
31013     if test $ac_cv_func_remove = no; then
31014       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31015 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31016 if test "${ac_cv_lib_posix_remove+set}" = set; then
31017   echo $ECHO_N "(cached) $ECHO_C" >&6
31018 else
31019   ac_check_lib_save_LIBS=$LIBS
31020 LIBS="-lposix  $LIBS"
31021 cat >conftest.$ac_ext <<_ACEOF
31022 /* confdefs.h.  */
31023 _ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h.  */
31027
31028 /* Override any GCC internal prototype to avoid an error.
31029    Use char because int might match the return type of a GCC
31030    builtin and then its argument prototype would still apply.  */
31031 #ifdef __cplusplus
31032 extern "C"
31033 #endif
31034 char remove ();
31035 int
31036 main ()
31037 {
31038 return remove ();
31039   ;
31040   return 0;
31041 }
31042 _ACEOF
31043 rm -f conftest.$ac_objext conftest$ac_exeext
31044 if { (ac_try="$ac_link"
31045 case "(($ac_try" in
31046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31047   *) ac_try_echo=$ac_try;;
31048 esac
31049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050   (eval "$ac_link") 2>conftest.er1
31051   ac_status=$?
31052   grep -v '^ *+' conftest.er1 >conftest.err
31053   rm -f conftest.er1
31054   cat conftest.err >&5
31055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056   (exit $ac_status); } && {
31057          test -z "$ac_c_werror_flag" ||
31058          test ! -s conftest.err
31059        } && test -s conftest$ac_exeext &&
31060        $as_test_x conftest$ac_exeext; then
31061   ac_cv_lib_posix_remove=yes
31062 else
31063   echo "$as_me: failed program was:" >&5
31064 sed 's/^/| /' conftest.$ac_ext >&5
31065
31066         ac_cv_lib_posix_remove=no
31067 fi
31068
31069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31070       conftest$ac_exeext conftest.$ac_ext
31071 LIBS=$ac_check_lib_save_LIBS
31072 fi
31073 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31074 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31075 if test $ac_cv_lib_posix_remove = yes; then
31076   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31077 fi
31078
31079     fi
31080
31081     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31082     { echo "$as_me:$LINENO: checking for shmat" >&5
31083 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31084 if test "${ac_cv_func_shmat+set}" = set; then
31085   echo $ECHO_N "(cached) $ECHO_C" >&6
31086 else
31087   cat >conftest.$ac_ext <<_ACEOF
31088 /* confdefs.h.  */
31089 _ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h.  */
31093 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31095 #define shmat innocuous_shmat
31096
31097 /* System header to define __stub macros and hopefully few prototypes,
31098     which can conflict with char shmat (); below.
31099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31100     <limits.h> exists even on freestanding compilers.  */
31101
31102 #ifdef __STDC__
31103 # include <limits.h>
31104 #else
31105 # include <assert.h>
31106 #endif
31107
31108 #undef shmat
31109
31110 /* Override any GCC internal prototype to avoid an error.
31111    Use char because int might match the return type of a GCC
31112    builtin and then its argument prototype would still apply.  */
31113 #ifdef __cplusplus
31114 extern "C"
31115 #endif
31116 char shmat ();
31117 /* The GNU C library defines this for functions which it implements
31118     to always fail with ENOSYS.  Some functions are actually named
31119     something starting with __ and the normal name is an alias.  */
31120 #if defined __stub_shmat || defined __stub___shmat
31121 choke me
31122 #endif
31123
31124 int
31125 main ()
31126 {
31127 return shmat ();
31128   ;
31129   return 0;
31130 }
31131 _ACEOF
31132 rm -f conftest.$ac_objext conftest$ac_exeext
31133 if { (ac_try="$ac_link"
31134 case "(($ac_try" in
31135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31136   *) ac_try_echo=$ac_try;;
31137 esac
31138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31139   (eval "$ac_link") 2>conftest.er1
31140   ac_status=$?
31141   grep -v '^ *+' conftest.er1 >conftest.err
31142   rm -f conftest.er1
31143   cat conftest.err >&5
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); } && {
31146          test -z "$ac_c_werror_flag" ||
31147          test ! -s conftest.err
31148        } && test -s conftest$ac_exeext &&
31149        $as_test_x conftest$ac_exeext; then
31150   ac_cv_func_shmat=yes
31151 else
31152   echo "$as_me: failed program was:" >&5
31153 sed 's/^/| /' conftest.$ac_ext >&5
31154
31155         ac_cv_func_shmat=no
31156 fi
31157
31158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31159       conftest$ac_exeext conftest.$ac_ext
31160 fi
31161 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31162 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31163
31164     if test $ac_cv_func_shmat = no; then
31165       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31166 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31167 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31168   echo $ECHO_N "(cached) $ECHO_C" >&6
31169 else
31170   ac_check_lib_save_LIBS=$LIBS
31171 LIBS="-lipc  $LIBS"
31172 cat >conftest.$ac_ext <<_ACEOF
31173 /* confdefs.h.  */
31174 _ACEOF
31175 cat confdefs.h >>conftest.$ac_ext
31176 cat >>conftest.$ac_ext <<_ACEOF
31177 /* end confdefs.h.  */
31178
31179 /* Override any GCC internal prototype to avoid an error.
31180    Use char because int might match the return type of a GCC
31181    builtin and then its argument prototype would still apply.  */
31182 #ifdef __cplusplus
31183 extern "C"
31184 #endif
31185 char shmat ();
31186 int
31187 main ()
31188 {
31189 return shmat ();
31190   ;
31191   return 0;
31192 }
31193 _ACEOF
31194 rm -f conftest.$ac_objext conftest$ac_exeext
31195 if { (ac_try="$ac_link"
31196 case "(($ac_try" in
31197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198   *) ac_try_echo=$ac_try;;
31199 esac
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201   (eval "$ac_link") 2>conftest.er1
31202   ac_status=$?
31203   grep -v '^ *+' conftest.er1 >conftest.err
31204   rm -f conftest.er1
31205   cat conftest.err >&5
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } && {
31208          test -z "$ac_c_werror_flag" ||
31209          test ! -s conftest.err
31210        } && test -s conftest$ac_exeext &&
31211        $as_test_x conftest$ac_exeext; then
31212   ac_cv_lib_ipc_shmat=yes
31213 else
31214   echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217         ac_cv_lib_ipc_shmat=no
31218 fi
31219
31220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31221       conftest$ac_exeext conftest.$ac_ext
31222 LIBS=$ac_check_lib_save_LIBS
31223 fi
31224 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31225 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31226 if test $ac_cv_lib_ipc_shmat = yes; then
31227   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31228 fi
31229
31230     fi
31231   fi
31232
31233   # Check for libraries that X11R6 Xt/Xaw programs need.
31234   ac_save_LDFLAGS=$LDFLAGS
31235   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31236   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31237   # check for ICE first), but we must link in the order -lSM -lICE or
31238   # we get undefined symbols.  So assume we have SM if we have ICE.
31239   # These have to be linked with before -lX11, unlike the other
31240   # libraries we check for below, so use a different variable.
31241   # John Interrante, Karl Berry
31242   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31243 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31244 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247   ac_check_lib_save_LIBS=$LIBS
31248 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31249 cat >conftest.$ac_ext <<_ACEOF
31250 /* confdefs.h.  */
31251 _ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h.  */
31255
31256 /* Override any GCC internal prototype to avoid an error.
31257    Use char because int might match the return type of a GCC
31258    builtin and then its argument prototype would still apply.  */
31259 #ifdef __cplusplus
31260 extern "C"
31261 #endif
31262 char IceConnectionNumber ();
31263 int
31264 main ()
31265 {
31266 return IceConnectionNumber ();
31267   ;
31268   return 0;
31269 }
31270 _ACEOF
31271 rm -f conftest.$ac_objext conftest$ac_exeext
31272 if { (ac_try="$ac_link"
31273 case "(($ac_try" in
31274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275   *) ac_try_echo=$ac_try;;
31276 esac
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278   (eval "$ac_link") 2>conftest.er1
31279   ac_status=$?
31280   grep -v '^ *+' conftest.er1 >conftest.err
31281   rm -f conftest.er1
31282   cat conftest.err >&5
31283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284   (exit $ac_status); } && {
31285          test -z "$ac_c_werror_flag" ||
31286          test ! -s conftest.err
31287        } && test -s conftest$ac_exeext &&
31288        $as_test_x conftest$ac_exeext; then
31289   ac_cv_lib_ICE_IceConnectionNumber=yes
31290 else
31291   echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31293
31294         ac_cv_lib_ICE_IceConnectionNumber=no
31295 fi
31296
31297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31298       conftest$ac_exeext conftest.$ac_ext
31299 LIBS=$ac_check_lib_save_LIBS
31300 fi
31301 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31302 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31303 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31304   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31305 fi
31306
31307   LDFLAGS=$ac_save_LDFLAGS
31308
31309 fi
31310
31311
31312         if test "$no_x" = "yes"; then
31313           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31314 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31315    { (exit 1); exit 1; }; }
31316         fi
31317
31318                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31319         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31320         AFMINSTALL=afminstall
31321         COMPILED_X_PROGRAM=0
31322
31323     fi
31324
31325     if test "$wxUSE_X11" = 1; then
31326         if test "$wxUSE_NANOX" = "yes"; then
31327             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31328 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31329             if test "x$MICROWIN" = x ; then
31330                 { echo "$as_me:$LINENO: result: not found" >&5
31331 echo "${ECHO_T}not found" >&6; }
31332                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31333 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31334    { (exit 1); exit 1; }; }
31335             else
31336                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31337 echo "${ECHO_T}$MICROWIN" >&6; }
31338                 cat >>confdefs.h <<\_ACEOF
31339 #define wxUSE_NANOX 1
31340 _ACEOF
31341
31342             fi
31343         fi
31344
31345         if test "$wxUSE_UNICODE" = "yes"; then
31346
31347
31348 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31349         if test -n "$ac_tool_prefix"; then
31350   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31351 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31354 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31355   echo $ECHO_N "(cached) $ECHO_C" >&6
31356 else
31357   case $PKG_CONFIG in
31358   [\\/]* | ?:[\\/]*)
31359   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31360   ;;
31361   *)
31362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31363 for as_dir in $PATH
31364 do
31365   IFS=$as_save_IFS
31366   test -z "$as_dir" && as_dir=.
31367   for ac_exec_ext in '' $ac_executable_extensions; do
31368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31369     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31371     break 2
31372   fi
31373 done
31374 done
31375 IFS=$as_save_IFS
31376
31377   ;;
31378 esac
31379 fi
31380 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31381 if test -n "$PKG_CONFIG"; then
31382   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31383 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31384 else
31385   { echo "$as_me:$LINENO: result: no" >&5
31386 echo "${ECHO_T}no" >&6; }
31387 fi
31388
31389
31390 fi
31391 if test -z "$ac_cv_path_PKG_CONFIG"; then
31392   ac_pt_PKG_CONFIG=$PKG_CONFIG
31393   # Extract the first word of "pkg-config", so it can be a program name with args.
31394 set dummy pkg-config; ac_word=$2
31395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31397 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31398   echo $ECHO_N "(cached) $ECHO_C" >&6
31399 else
31400   case $ac_pt_PKG_CONFIG in
31401   [\\/]* | ?:[\\/]*)
31402   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31403   ;;
31404   *)
31405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31406 for as_dir in $PATH
31407 do
31408   IFS=$as_save_IFS
31409   test -z "$as_dir" && as_dir=.
31410   for ac_exec_ext in '' $ac_executable_extensions; do
31411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31412     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31414     break 2
31415   fi
31416 done
31417 done
31418 IFS=$as_save_IFS
31419
31420   ;;
31421 esac
31422 fi
31423 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31424 if test -n "$ac_pt_PKG_CONFIG"; then
31425   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31426 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31427 else
31428   { echo "$as_me:$LINENO: result: no" >&5
31429 echo "${ECHO_T}no" >&6; }
31430 fi
31431
31432   if test "x$ac_pt_PKG_CONFIG" = x; then
31433     PKG_CONFIG=""
31434   else
31435     case $cross_compiling:$ac_tool_warned in
31436 yes:)
31437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31438 whose name does not start with the host triplet.  If you think this
31439 configuration is useful to you, please write to autoconf@gnu.org." >&5
31440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31441 whose name does not start with the host triplet.  If you think this
31442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31443 ac_tool_warned=yes ;;
31444 esac
31445     PKG_CONFIG=$ac_pt_PKG_CONFIG
31446   fi
31447 else
31448   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31449 fi
31450
31451 fi
31452 if test -n "$PKG_CONFIG"; then
31453         _pkg_min_version=0.9.0
31454         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31455 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31456         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31457                 { echo "$as_me:$LINENO: result: yes" >&5
31458 echo "${ECHO_T}yes" >&6; }
31459         else
31460                 { echo "$as_me:$LINENO: result: no" >&5
31461 echo "${ECHO_T}no" >&6; }
31462                 PKG_CONFIG=""
31463         fi
31464
31465 fi
31466
31467
31468 pkg_failed=no
31469 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31470 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31471
31472 if test -n "$PKG_CONFIG"; then
31473     if test -n "$PANGOX_CFLAGS"; then
31474         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31475     else
31476         if test -n "$PKG_CONFIG" && \
31477     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31478   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31479   ac_status=$?
31480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481   (exit $ac_status); }; then
31482   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31483 else
31484   pkg_failed=yes
31485 fi
31486     fi
31487 else
31488         pkg_failed=untried
31489 fi
31490 if test -n "$PKG_CONFIG"; then
31491     if test -n "$PANGOX_LIBS"; then
31492         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31493     else
31494         if test -n "$PKG_CONFIG" && \
31495     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31496   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31497   ac_status=$?
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); }; then
31500   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31501 else
31502   pkg_failed=yes
31503 fi
31504     fi
31505 else
31506         pkg_failed=untried
31507 fi
31508
31509
31510
31511 if test $pkg_failed = yes; then
31512
31513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31514         _pkg_short_errors_supported=yes
31515 else
31516         _pkg_short_errors_supported=no
31517 fi
31518         if test $_pkg_short_errors_supported = yes; then
31519                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31520         else
31521                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31522         fi
31523         # Put the nasty error message in config.log where it belongs
31524         echo "$PANGOX_PKG_ERRORS" >&5
31525
31526
31527                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31528 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31529    { (exit 1); exit 1; }; }
31530
31531
31532 elif test $pkg_failed = untried; then
31533
31534                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31535 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31536    { (exit 1); exit 1; }; }
31537
31538
31539 else
31540         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31541         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31542         { echo "$as_me:$LINENO: result: yes" >&5
31543 echo "${ECHO_T}yes" >&6; }
31544
31545                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31546                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31547                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31548
31549 fi
31550
31551 pkg_failed=no
31552 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31553 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31554
31555 if test -n "$PKG_CONFIG"; then
31556     if test -n "$PANGOFT2_CFLAGS"; then
31557         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31558     else
31559         if test -n "$PKG_CONFIG" && \
31560     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31561   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31562   ac_status=$?
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); }; then
31565   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31566 else
31567   pkg_failed=yes
31568 fi
31569     fi
31570 else
31571         pkg_failed=untried
31572 fi
31573 if test -n "$PKG_CONFIG"; then
31574     if test -n "$PANGOFT2_LIBS"; then
31575         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31576     else
31577         if test -n "$PKG_CONFIG" && \
31578     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31579   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31580   ac_status=$?
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); }; then
31583   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31584 else
31585   pkg_failed=yes
31586 fi
31587     fi
31588 else
31589         pkg_failed=untried
31590 fi
31591
31592
31593
31594 if test $pkg_failed = yes; then
31595
31596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31597         _pkg_short_errors_supported=yes
31598 else
31599         _pkg_short_errors_supported=no
31600 fi
31601         if test $_pkg_short_errors_supported = yes; then
31602                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31603         else
31604                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31605         fi
31606         # Put the nasty error message in config.log where it belongs
31607         echo "$PANGOFT2_PKG_ERRORS" >&5
31608
31609
31610                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31611 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31612                     wxUSE_PRINTING_ARCHITECTURE="no"
31613
31614
31615 elif test $pkg_failed = untried; then
31616
31617                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31618 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31619                     wxUSE_PRINTING_ARCHITECTURE="no"
31620
31621
31622 else
31623         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31624         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31625         { echo "$as_me:$LINENO: result: yes" >&5
31626 echo "${ECHO_T}yes" >&6; }
31627
31628                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31629                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31630                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31631
31632 fi
31633
31634 pkg_failed=no
31635 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31636 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31637
31638 if test -n "$PKG_CONFIG"; then
31639     if test -n "$PANGOXFT_CFLAGS"; then
31640         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31641     else
31642         if test -n "$PKG_CONFIG" && \
31643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31644   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31645   ac_status=$?
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); }; then
31648   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31649 else
31650   pkg_failed=yes
31651 fi
31652     fi
31653 else
31654         pkg_failed=untried
31655 fi
31656 if test -n "$PKG_CONFIG"; then
31657     if test -n "$PANGOXFT_LIBS"; then
31658         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31659     else
31660         if test -n "$PKG_CONFIG" && \
31661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31662   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); }; then
31666   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31667 else
31668   pkg_failed=yes
31669 fi
31670     fi
31671 else
31672         pkg_failed=untried
31673 fi
31674
31675
31676
31677 if test $pkg_failed = yes; then
31678
31679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31680         _pkg_short_errors_supported=yes
31681 else
31682         _pkg_short_errors_supported=no
31683 fi
31684         if test $_pkg_short_errors_supported = yes; then
31685                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31686         else
31687                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31688         fi
31689         # Put the nasty error message in config.log where it belongs
31690         echo "$PANGOXFT_PKG_ERRORS" >&5
31691
31692
31693                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31694 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31695
31696
31697 elif test $pkg_failed = untried; then
31698
31699                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31700 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31701
31702
31703 else
31704         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31705         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31706         { echo "$as_me:$LINENO: result: yes" >&5
31707 echo "${ECHO_T}yes" >&6; }
31708
31709                     cat >>confdefs.h <<\_ACEOF
31710 #define HAVE_PANGO_XFT 1
31711 _ACEOF
31712
31713                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31714                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31715                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31716
31717 fi
31718             save_LIBS="$LIBS"
31719             LIBS="$LIBS $PANGOX_LIBS"
31720
31721 for ac_func in pango_font_family_is_monospace
31722 do
31723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31727   echo $ECHO_N "(cached) $ECHO_C" >&6
31728 else
31729   cat >conftest.$ac_ext <<_ACEOF
31730 /* confdefs.h.  */
31731 _ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h.  */
31735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31737 #define $ac_func innocuous_$ac_func
31738
31739 /* System header to define __stub macros and hopefully few prototypes,
31740     which can conflict with char $ac_func (); below.
31741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31742     <limits.h> exists even on freestanding compilers.  */
31743
31744 #ifdef __STDC__
31745 # include <limits.h>
31746 #else
31747 # include <assert.h>
31748 #endif
31749
31750 #undef $ac_func
31751
31752 /* Override any GCC internal prototype to avoid an error.
31753    Use char because int might match the return type of a GCC
31754    builtin and then its argument prototype would still apply.  */
31755 #ifdef __cplusplus
31756 extern "C"
31757 #endif
31758 char $ac_func ();
31759 /* The GNU C library defines this for functions which it implements
31760     to always fail with ENOSYS.  Some functions are actually named
31761     something starting with __ and the normal name is an alias.  */
31762 #if defined __stub_$ac_func || defined __stub___$ac_func
31763 choke me
31764 #endif
31765
31766 int
31767 main ()
31768 {
31769 return $ac_func ();
31770   ;
31771   return 0;
31772 }
31773 _ACEOF
31774 rm -f conftest.$ac_objext conftest$ac_exeext
31775 if { (ac_try="$ac_link"
31776 case "(($ac_try" in
31777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778   *) ac_try_echo=$ac_try;;
31779 esac
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781   (eval "$ac_link") 2>conftest.er1
31782   ac_status=$?
31783   grep -v '^ *+' conftest.er1 >conftest.err
31784   rm -f conftest.er1
31785   cat conftest.err >&5
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); } && {
31788          test -z "$ac_c_werror_flag" ||
31789          test ! -s conftest.err
31790        } && test -s conftest$ac_exeext &&
31791        $as_test_x conftest$ac_exeext; then
31792   eval "$as_ac_var=yes"
31793 else
31794   echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31796
31797         eval "$as_ac_var=no"
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 ac_res=`eval echo '${'$as_ac_var'}'`
31804                { echo "$as_me:$LINENO: result: $ac_res" >&5
31805 echo "${ECHO_T}$ac_res" >&6; }
31806 if test `eval echo '${'$as_ac_var'}'` = yes; then
31807   cat >>confdefs.h <<_ACEOF
31808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31809 _ACEOF
31810
31811 fi
31812 done
31813
31814             LIBS="$save_LIBS"
31815         fi
31816
31817         wxUSE_UNIVERSAL="yes"
31818
31819         if test "$wxUSE_NANOX" = "yes"; then
31820             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31821             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"
31822             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31823         else
31824             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31825         fi
31826
31827         TOOLKIT=X11
31828         GUIDIST=X11_DIST
31829     fi
31830
31831     if test "$wxUSE_MOTIF" = 1; then
31832         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31833 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31834
31835 ac_find_includes=
31836 for ac_dir in $SEARCH_INCLUDE /usr/include;
31837   do
31838     if test -f "$ac_dir/Xm/Xm.h"; then
31839       ac_find_includes=$ac_dir
31840       break
31841     fi
31842   done
31843
31844         if test "$ac_find_includes" != "" ; then
31845             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31846 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31847
31848     if test "x$ac_find_includes" = "x/usr/include"; then
31849     ac_path_to_include=""
31850   else
31851     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31852     result=$?
31853     if test $result = 0; then
31854       ac_path_to_include=""
31855     else
31856       ac_path_to_include=" -I$ac_find_includes"
31857     fi
31858   fi
31859
31860             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31861         else
31862             save_CFLAGS=$CFLAGS
31863             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31864
31865             cat >conftest.$ac_ext <<_ACEOF
31866 /* confdefs.h.  */
31867 _ACEOF
31868 cat confdefs.h >>conftest.$ac_ext
31869 cat >>conftest.$ac_ext <<_ACEOF
31870 /* end confdefs.h.  */
31871
31872                     #include <Xm/Xm.h>
31873
31874 int
31875 main ()
31876 {
31877
31878                     int version;
31879                     version = xmUseVersion;
31880
31881   ;
31882   return 0;
31883 }
31884 _ACEOF
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889   *) ac_try_echo=$ac_try;;
31890 esac
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892   (eval "$ac_compile") 2>conftest.er1
31893   ac_status=$?
31894   grep -v '^ *+' conftest.er1 >conftest.err
31895   rm -f conftest.er1
31896   cat conftest.err >&5
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } && {
31899          test -z "$ac_c_werror_flag" ||
31900          test ! -s conftest.err
31901        } && test -s conftest.$ac_objext; then
31902
31903                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31904 echo "${ECHO_T}found in default search path" >&6; }
31905                     COMPILED_X_PROGRAM=1
31906
31907 else
31908   echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.$ac_ext >&5
31910
31911
31912                     { echo "$as_me:$LINENO: result: no" >&5
31913 echo "${ECHO_T}no" >&6; }
31914                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31915 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31916    { (exit 1); exit 1; }; }
31917
31918
31919 fi
31920
31921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31922
31923             CFLAGS=$save_CFLAGS
31924         fi
31925
31926
31927         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31928 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31929
31930   ac_find_libraries=
31931   for ac_dir in $SEARCH_LIB;
31932   do
31933     for ac_extension in a so sl dylib dll.a; do
31934       if test -f "$ac_dir/libXm.$ac_extension"; then
31935         ac_find_libraries=$ac_dir
31936         break 2
31937       fi
31938     done
31939   done
31940
31941
31942         if test "x$ac_find_libraries" != "x" ; then
31943             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31944 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31945
31946
31947     if test "$ac_find_libraries" = "default location"; then
31948     ac_path_to_link=""
31949   else
31950     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31951     result=$?
31952     if test $result = 0; then
31953       ac_path_to_link=""
31954     else
31955       ac_path_to_link=" -L$ac_find_libraries"
31956     fi
31957   fi
31958
31959             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31960         else
31961                                                 save_CFLAGS=$CFLAGS
31962             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31963             save_LIBS="$LIBS"
31964             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31965
31966             cat >conftest.$ac_ext <<_ACEOF
31967 /* confdefs.h.  */
31968 _ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h.  */
31972
31973                     #include <Xm/Xm.h>
31974
31975 int
31976 main ()
31977 {
31978
31979                     int version;
31980                     version = xmUseVersion;
31981
31982   ;
31983   return 0;
31984 }
31985 _ACEOF
31986 rm -f conftest.$ac_objext conftest$ac_exeext
31987 if { (ac_try="$ac_link"
31988 case "(($ac_try" in
31989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31990   *) ac_try_echo=$ac_try;;
31991 esac
31992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31993   (eval "$ac_link") 2>conftest.er1
31994   ac_status=$?
31995   grep -v '^ *+' conftest.er1 >conftest.err
31996   rm -f conftest.er1
31997   cat conftest.err >&5
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); } && {
32000          test -z "$ac_c_werror_flag" ||
32001          test ! -s conftest.err
32002        } && test -s conftest$ac_exeext &&
32003        $as_test_x conftest$ac_exeext; then
32004
32005                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32006 echo "${ECHO_T}found in default search path" >&6; }
32007                     COMPILED_X_PROGRAM=1
32008
32009 else
32010   echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32012
32013
32014                     { echo "$as_me:$LINENO: result: no" >&5
32015 echo "${ECHO_T}no" >&6; }
32016                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32017 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32018    { (exit 1); exit 1; }; }
32019
32020
32021 fi
32022
32023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32024       conftest$ac_exeext conftest.$ac_ext
32025
32026             CFLAGS=$save_CFLAGS
32027             LIBS="$save_LIBS"
32028         fi
32029
32030         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32031 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32032         libp_link=""
32033         libsm_ice_link=""
32034         libs_found=0
32035         for libp in "" " -lXp"; do
32036             if test "$libs_found" = 0; then
32037                 for libsm_ice in "" " -lSM -lICE"; do
32038                     if test "$libs_found" = 0; then
32039                         save_LIBS="$LIBS"
32040                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32041                         save_CFLAGS=$CFLAGS
32042                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32043
32044                         cat >conftest.$ac_ext <<_ACEOF
32045 /* confdefs.h.  */
32046 _ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h.  */
32050
32051                                 #include <Xm/Xm.h>
32052                                 #include <Xm/List.h>
32053
32054 int
32055 main ()
32056 {
32057
32058                                 XmString string = NULL;
32059                                 Widget w = NULL;
32060                                 int position = 0;
32061                                 XmListAddItem(w, string, position);
32062
32063   ;
32064   return 0;
32065 }
32066 _ACEOF
32067 rm -f conftest.$ac_objext conftest$ac_exeext
32068 if { (ac_try="$ac_link"
32069 case "(($ac_try" in
32070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071   *) ac_try_echo=$ac_try;;
32072 esac
32073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074   (eval "$ac_link") 2>conftest.er1
32075   ac_status=$?
32076   grep -v '^ *+' conftest.er1 >conftest.err
32077   rm -f conftest.er1
32078   cat conftest.err >&5
32079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080   (exit $ac_status); } && {
32081          test -z "$ac_c_werror_flag" ||
32082          test ! -s conftest.err
32083        } && test -s conftest$ac_exeext &&
32084        $as_test_x conftest$ac_exeext; then
32085
32086                                 libp_link="$libp"
32087                                 libsm_ice_link="$libsm_ice"
32088                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32089 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32090                                 libs_found=1
32091
32092 else
32093   echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32095
32096
32097
32098 fi
32099
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101       conftest$ac_exeext conftest.$ac_ext
32102
32103                         LIBS="$save_LIBS"
32104                         CFLAGS=$save_CFLAGS
32105                     fi
32106                 done
32107             fi
32108         done
32109
32110         if test "$libs_found" = 0; then
32111             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32112 echo "${ECHO_T}can't find the right libraries" >&6; }
32113             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32114 echo "$as_me: error: can't link a simple motif program" >&2;}
32115    { (exit 1); exit 1; }; }
32116         fi
32117
32118                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32119 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32120 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32121   echo $ECHO_N "(cached) $ECHO_C" >&6
32122 else
32123   ac_check_lib_save_LIBS=$LIBS
32124 LIBS="-lSgm  $LIBS"
32125 cat >conftest.$ac_ext <<_ACEOF
32126 /* confdefs.h.  */
32127 _ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h.  */
32131
32132 /* Override any GCC internal prototype to avoid an error.
32133    Use char because int might match the return type of a GCC
32134    builtin and then its argument prototype would still apply.  */
32135 #ifdef __cplusplus
32136 extern "C"
32137 #endif
32138 char SgCreateList ();
32139 int
32140 main ()
32141 {
32142 return SgCreateList ();
32143   ;
32144   return 0;
32145 }
32146 _ACEOF
32147 rm -f conftest.$ac_objext conftest$ac_exeext
32148 if { (ac_try="$ac_link"
32149 case "(($ac_try" in
32150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151   *) ac_try_echo=$ac_try;;
32152 esac
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154   (eval "$ac_link") 2>conftest.er1
32155   ac_status=$?
32156   grep -v '^ *+' conftest.er1 >conftest.err
32157   rm -f conftest.er1
32158   cat conftest.err >&5
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); } && {
32161          test -z "$ac_c_werror_flag" ||
32162          test ! -s conftest.err
32163        } && test -s conftest$ac_exeext &&
32164        $as_test_x conftest$ac_exeext; then
32165   ac_cv_lib_Sgm_SgCreateList=yes
32166 else
32167   echo "$as_me: failed program was:" >&5
32168 sed 's/^/| /' conftest.$ac_ext >&5
32169
32170         ac_cv_lib_Sgm_SgCreateList=no
32171 fi
32172
32173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32174       conftest$ac_exeext conftest.$ac_ext
32175 LIBS=$ac_check_lib_save_LIBS
32176 fi
32177 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32178 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32179 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32180   libsgm_link=" -lSgm"
32181 fi
32182
32183
32184         save_CFLAGS=$CFLAGS
32185         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32186
32187         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32188 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32189 if test "${wx_cv_lib_motif2+set}" = set; then
32190   echo $ECHO_N "(cached) $ECHO_C" >&6
32191 else
32192   cat >conftest.$ac_ext <<_ACEOF
32193 /* confdefs.h.  */
32194 _ACEOF
32195 cat confdefs.h >>conftest.$ac_ext
32196 cat >>conftest.$ac_ext <<_ACEOF
32197 /* end confdefs.h.  */
32198
32199                             #include <Xm/Xm.h>
32200
32201 int
32202 main ()
32203 {
32204
32205                             #if XmVersion < 2000
32206                             Not Motif 2
32207                             #endif
32208
32209   ;
32210   return 0;
32211 }
32212 _ACEOF
32213 rm -f conftest.$ac_objext
32214 if { (ac_try="$ac_compile"
32215 case "(($ac_try" in
32216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32217   *) ac_try_echo=$ac_try;;
32218 esac
32219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32220   (eval "$ac_compile") 2>conftest.er1
32221   ac_status=$?
32222   grep -v '^ *+' conftest.er1 >conftest.err
32223   rm -f conftest.er1
32224   cat conftest.err >&5
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); } && {
32227          test -z "$ac_c_werror_flag" ||
32228          test ! -s conftest.err
32229        } && test -s conftest.$ac_objext; then
32230   wx_cv_lib_motif2="yes"
32231 else
32232   echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32234
32235         wx_cv_lib_motif2="no"
32236 fi
32237
32238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32239 fi
32240 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32241 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32242         if test "$wx_cv_lib_motif2" = "yes"; then
32243             cat >>confdefs.h <<\_ACEOF
32244 #define __WXMOTIF20__ 1
32245 _ACEOF
32246
32247         else
32248             cat >>confdefs.h <<\_ACEOF
32249 #define __WXMOTIF20__ 0
32250 _ACEOF
32251
32252         fi
32253
32254         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32255 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32256 if test "${wx_cv_lib_lesstif+set}" = set; then
32257   echo $ECHO_N "(cached) $ECHO_C" >&6
32258 else
32259   cat >conftest.$ac_ext <<_ACEOF
32260 /* confdefs.h.  */
32261 _ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h.  */
32265
32266                             #include <Xm/Xm.h>
32267
32268 int
32269 main ()
32270 {
32271
32272                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32273                             Not Lesstif
32274                             #endif
32275
32276   ;
32277   return 0;
32278 }
32279 _ACEOF
32280 rm -f conftest.$ac_objext
32281 if { (ac_try="$ac_compile"
32282 case "(($ac_try" in
32283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284   *) ac_try_echo=$ac_try;;
32285 esac
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287   (eval "$ac_compile") 2>conftest.er1
32288   ac_status=$?
32289   grep -v '^ *+' conftest.er1 >conftest.err
32290   rm -f conftest.er1
32291   cat conftest.err >&5
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); } && {
32294          test -z "$ac_c_werror_flag" ||
32295          test ! -s conftest.err
32296        } && test -s conftest.$ac_objext; then
32297   wx_cv_lib_lesstif="yes"
32298 else
32299   echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32301
32302         wx_cv_lib_lesstif="no"
32303 fi
32304
32305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32306
32307 fi
32308 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32309 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32310         if test "$wx_cv_lib_lesstif" = "yes"; then
32311             cat >>confdefs.h <<\_ACEOF
32312 #define __WXLESSTIF__ 1
32313 _ACEOF
32314
32315         else
32316             cat >>confdefs.h <<\_ACEOF
32317 #define __WXLESSTIF__ 0
32318 _ACEOF
32319
32320         fi
32321
32322         CFLAGS=$save_CFLAGS
32323
32324         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32325         TOOLKIT=MOTIF
32326         GUIDIST=MOTIF_DIST
32327     fi
32328
32329         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32330                 if test "$wxUSE_LIBXPM" = "sys"; then
32331             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32332 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32333
32334   ac_find_libraries=
32335   for ac_dir in $SEARCH_LIB;
32336   do
32337     for ac_extension in a so sl dylib dll.a; do
32338       if test -f "$ac_dir/libXpm.$ac_extension"; then
32339         ac_find_libraries=$ac_dir
32340         break 2
32341       fi
32342     done
32343   done
32344
32345             if test "$ac_find_libraries" != "" ; then
32346
32347     if test "$ac_find_libraries" = "default location"; then
32348     ac_path_to_link=""
32349   else
32350     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32351     result=$?
32352     if test $result = 0; then
32353       ac_path_to_link=""
32354     else
32355       ac_path_to_link=" -L$ac_find_libraries"
32356     fi
32357   fi
32358
32359                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32360                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32361 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32362
32363                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32364 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32365 if test "${wx_cv_x11_xpm_h+set}" = set; then
32366   echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368
32369                         save_CFLAGS=$CFLAGS
32370                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32371
32372                         cat >conftest.$ac_ext <<_ACEOF
32373 /* confdefs.h.  */
32374 _ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h.  */
32378
32379                                 #include <X11/xpm.h>
32380
32381 int
32382 main ()
32383 {
32384
32385                                 int version;
32386                                 version = XpmLibraryVersion();
32387
32388   ;
32389   return 0;
32390 }
32391 _ACEOF
32392 rm -f conftest.$ac_objext
32393 if { (ac_try="$ac_compile"
32394 case "(($ac_try" in
32395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396   *) ac_try_echo=$ac_try;;
32397 esac
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399   (eval "$ac_compile") 2>conftest.er1
32400   ac_status=$?
32401   grep -v '^ *+' conftest.er1 >conftest.err
32402   rm -f conftest.er1
32403   cat conftest.err >&5
32404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405   (exit $ac_status); } && {
32406          test -z "$ac_c_werror_flag" ||
32407          test ! -s conftest.err
32408        } && test -s conftest.$ac_objext; then
32409   wx_cv_x11_xpm_h=yes
32410 else
32411   echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32413
32414         wx_cv_x11_xpm_h=no
32415
32416 fi
32417
32418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32419
32420                         CFLAGS=$save_CFLAGS
32421
32422
32423 fi
32424 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32425 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32426
32427                 if test $wx_cv_x11_xpm_h = "yes"; then
32428                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32429                     cat >>confdefs.h <<\_ACEOF
32430 #define wxHAVE_LIB_XPM 1
32431 _ACEOF
32432
32433                 else
32434                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32435 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32436                 fi
32437             fi
32438
32439         fi
32440
32441                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32442 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32443 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32444   echo $ECHO_N "(cached) $ECHO_C" >&6
32445 else
32446   ac_check_lib_save_LIBS=$LIBS
32447 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32448 cat >conftest.$ac_ext <<_ACEOF
32449 /* confdefs.h.  */
32450 _ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h.  */
32454
32455 /* Override any GCC internal prototype to avoid an error.
32456    Use char because int might match the return type of a GCC
32457    builtin and then its argument prototype would still apply.  */
32458 #ifdef __cplusplus
32459 extern "C"
32460 #endif
32461 char XShapeQueryExtension ();
32462 int
32463 main ()
32464 {
32465 return XShapeQueryExtension ();
32466   ;
32467   return 0;
32468 }
32469 _ACEOF
32470 rm -f conftest.$ac_objext conftest$ac_exeext
32471 if { (ac_try="$ac_link"
32472 case "(($ac_try" in
32473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474   *) ac_try_echo=$ac_try;;
32475 esac
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477   (eval "$ac_link") 2>conftest.er1
32478   ac_status=$?
32479   grep -v '^ *+' conftest.er1 >conftest.err
32480   rm -f conftest.er1
32481   cat conftest.err >&5
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); } && {
32484          test -z "$ac_c_werror_flag" ||
32485          test ! -s conftest.err
32486        } && test -s conftest$ac_exeext &&
32487        $as_test_x conftest$ac_exeext; then
32488   ac_cv_lib_Xext_XShapeQueryExtension=yes
32489 else
32490   echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32492
32493         ac_cv_lib_Xext_XShapeQueryExtension=no
32494 fi
32495
32496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32497       conftest$ac_exeext conftest.$ac_ext
32498 LIBS=$ac_check_lib_save_LIBS
32499 fi
32500 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32501 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32502 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32503
32504                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32505                       wxHAVE_XEXT_LIB=1
32506
32507 fi
32508
32509
32510         if test "$wxHAVE_XEXT_LIB" = 1; then
32511             save_CFLAGS="$CFLAGS"
32512             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32513
32514             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32515 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32516             cat >conftest.$ac_ext <<_ACEOF
32517 /* confdefs.h.  */
32518 _ACEOF
32519 cat confdefs.h >>conftest.$ac_ext
32520 cat >>conftest.$ac_ext <<_ACEOF
32521 /* end confdefs.h.  */
32522
32523                             #include <X11/Xlib.h>
32524                             #include <X11/extensions/shape.h>
32525
32526 int
32527 main ()
32528 {
32529
32530                             int dummy1, dummy2;
32531                             XShapeQueryExtension((Display*)NULL,
32532                                                  (int*)NULL, (int*)NULL);
32533
32534   ;
32535   return 0;
32536 }
32537 _ACEOF
32538 rm -f conftest.$ac_objext
32539 if { (ac_try="$ac_compile"
32540 case "(($ac_try" in
32541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542   *) ac_try_echo=$ac_try;;
32543 esac
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545   (eval "$ac_compile") 2>conftest.er1
32546   ac_status=$?
32547   grep -v '^ *+' conftest.er1 >conftest.err
32548   rm -f conftest.er1
32549   cat conftest.err >&5
32550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551   (exit $ac_status); } && {
32552          test -z "$ac_c_werror_flag" ||
32553          test ! -s conftest.err
32554        } && test -s conftest.$ac_objext; then
32555
32556                             cat >>confdefs.h <<\_ACEOF
32557 #define HAVE_XSHAPE 1
32558 _ACEOF
32559
32560                             { echo "$as_me:$LINENO: result: found" >&5
32561 echo "${ECHO_T}found" >&6; }
32562
32563 else
32564   echo "$as_me: failed program was:" >&5
32565 sed 's/^/| /' conftest.$ac_ext >&5
32566
32567
32568                             { echo "$as_me:$LINENO: result: not found" >&5
32569 echo "${ECHO_T}not found" >&6; }
32570
32571 fi
32572
32573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32574             CFLAGS="$save_CFLAGS"
32575
32576         fi
32577     fi
32578
32579     if test "$wxUSE_OSX_CARBON" = 1; then
32580         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32581 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32582         if test "$GCC" = yes; then
32583             { echo "$as_me:$LINENO: result: gcc" >&5
32584 echo "${ECHO_T}gcc" >&6; }
32585             CPPFLAGS_PASCAL="-fpascal-strings"
32586         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32587             { echo "$as_me:$LINENO: result: xlc" >&5
32588 echo "${ECHO_T}xlc" >&6; }
32589             CPPFLAGS_PASCAL="-qmacpstr"
32590         else
32591             { echo "$as_me:$LINENO: result: none" >&5
32592 echo "${ECHO_T}none" >&6; }
32593         fi
32594
32595         if test "x$wxUSE_UNIX" = "xyes"; then
32596             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32597         else
32598                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32599         fi
32600
32601         TOOLKIT=OSX_CARBON
32602                 GUIDIST=OSX_CARBON_DIST
32603                         WXBASEPORT="_carbon"
32604     fi
32605
32606     if test "$wxUSE_OSX_COCOA" = 1; then
32607         TOOLKIT=OSX_COCOA
32608         GUIDIST=OSX_COCOA_DIST
32609     fi
32610
32611     if test "$wxUSE_COCOA" = 1; then
32612         TOOLKIT=COCOA
32613         GUIDIST=COCOA_DIST
32614     fi
32615
32616     if test "$wxUSE_PM" = 1; then
32617         TOOLKIT=PM
32618         GUIDIST=PM_DIST
32619         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32620 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32621 if test "${wx_cv_spbcdata+set}" = set; then
32622   echo $ECHO_N "(cached) $ECHO_C" >&6
32623 else
32624
32625                 cat >conftest.$ac_ext <<_ACEOF
32626 /* confdefs.h.  */
32627 _ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h.  */
32631
32632                         #define INCL_PM
32633                         #include <os2.h>
32634
32635 int
32636 main ()
32637 {
32638
32639                         SPBCDATA test;
32640
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext
32646 if { (ac_try="$ac_compile"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_compile") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } && {
32659          test -z "$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        } && test -s conftest.$ac_objext; then
32662   wx_cv_spbcdata=yes
32663 else
32664   echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32666
32667         wx_cv_spbcdata=no
32668
32669 fi
32670
32671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32672
32673
32674 fi
32675 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32676 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32677
32678         if test $wx_cv_spbcdata = "yes"; then
32679             cat >>confdefs.h <<\_ACEOF
32680 #define HAVE_SPBCDATA 1
32681 _ACEOF
32682
32683         fi
32684     fi
32685
32686         if test "$TOOLKIT" = "PM" ; then
32687         TOOLKIT_DIR="os2"
32688     else
32689         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32690     fi
32691
32692     if test "$wxUSE_UNIVERSAL" = "yes"; then
32693         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32694         WIDGET_SET=univ
32695     fi
32696
32697         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32698     DISTDIR="wx\$(TOOLKIT)"
32699 else
32700     USE_GUI=0
32701
32702             TOOLKIT_DIR="base"
32703
32704         if test "$USE_WIN32" = 1 ; then
32705                         TOOLKIT="MSW"
32706     fi
32707
32708         GUIDIST="BASE_DIST"
32709     DISTDIR="wxBase"
32710 fi
32711
32712
32713
32714 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32715     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32716         wxUSE_UNICODE_UTF8=yes
32717     elif test "$USE_OS2" = 1 ; then
32718                                 wxUSE_UNICODE_UTF8=yes
32719     else
32720         wxUSE_UNICODE_UTF8=no
32721     fi
32722 fi
32723
32724
32725 if test "$wxUSE_GUI" = "yes"; then
32726     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32727
32728 for ac_header in X11/Xlib.h
32729 do
32730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32734   echo $ECHO_N "(cached) $ECHO_C" >&6
32735 else
32736   cat >conftest.$ac_ext <<_ACEOF
32737 /* confdefs.h.  */
32738 _ACEOF
32739 cat confdefs.h >>conftest.$ac_ext
32740 cat >>conftest.$ac_ext <<_ACEOF
32741 /* end confdefs.h.  */
32742
32743
32744 #include <$ac_header>
32745 _ACEOF
32746 rm -f conftest.$ac_objext
32747 if { (ac_try="$ac_compile"
32748 case "(($ac_try" in
32749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750   *) ac_try_echo=$ac_try;;
32751 esac
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753   (eval "$ac_compile") 2>conftest.er1
32754   ac_status=$?
32755   grep -v '^ *+' conftest.er1 >conftest.err
32756   rm -f conftest.er1
32757   cat conftest.err >&5
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); } && {
32760          test -z "$ac_c_werror_flag" ||
32761          test ! -s conftest.err
32762        } && test -s conftest.$ac_objext; then
32763   eval "$as_ac_Header=yes"
32764 else
32765   echo "$as_me: failed program was:" >&5
32766 sed 's/^/| /' conftest.$ac_ext >&5
32767
32768         eval "$as_ac_Header=no"
32769 fi
32770
32771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32772 fi
32773 ac_res=`eval echo '${'$as_ac_Header'}'`
32774                { echo "$as_me:$LINENO: result: $ac_res" >&5
32775 echo "${ECHO_T}$ac_res" >&6; }
32776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32777   cat >>confdefs.h <<_ACEOF
32778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32779 _ACEOF
32780
32781 fi
32782
32783 done
32784
32785
32786 for ac_header in X11/XKBlib.h
32787 do
32788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32792   echo $ECHO_N "(cached) $ECHO_C" >&6
32793 else
32794   cat >conftest.$ac_ext <<_ACEOF
32795 /* confdefs.h.  */
32796 _ACEOF
32797 cat confdefs.h >>conftest.$ac_ext
32798 cat >>conftest.$ac_ext <<_ACEOF
32799 /* end confdefs.h.  */
32800
32801                           #if HAVE_X11_XLIB_H
32802                             #include <X11/Xlib.h>
32803                           #endif
32804
32805
32806 #include <$ac_header>
32807 _ACEOF
32808 rm -f conftest.$ac_objext
32809 if { (ac_try="$ac_compile"
32810 case "(($ac_try" in
32811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812   *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815   (eval "$ac_compile") 2>conftest.er1
32816   ac_status=$?
32817   grep -v '^ *+' conftest.er1 >conftest.err
32818   rm -f conftest.er1
32819   cat conftest.err >&5
32820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821   (exit $ac_status); } && {
32822          test -z "$ac_c_werror_flag" ||
32823          test ! -s conftest.err
32824        } && test -s conftest.$ac_objext; then
32825   eval "$as_ac_Header=yes"
32826 else
32827   echo "$as_me: failed program was:" >&5
32828 sed 's/^/| /' conftest.$ac_ext >&5
32829
32830         eval "$as_ac_Header=no"
32831 fi
32832
32833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32834 fi
32835 ac_res=`eval echo '${'$as_ac_Header'}'`
32836                { echo "$as_me:$LINENO: result: $ac_res" >&5
32837 echo "${ECHO_T}$ac_res" >&6; }
32838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32839   cat >>confdefs.h <<_ACEOF
32840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32841 _ACEOF
32842
32843 fi
32844
32845 done
32846
32847     fi
32848 fi
32849
32850
32851
32852 if test "$wxUSE_DISPLAY" = "yes"; then
32853     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32854         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32855 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32856
32857   ac_find_libraries=
32858   for ac_dir in $SEARCH_LIB;
32859   do
32860     for ac_extension in a so sl dylib dll.a; do
32861       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32862         ac_find_libraries=$ac_dir
32863         break 2
32864       fi
32865     done
32866   done
32867
32868         if test "$ac_find_libraries" != "" ; then
32869
32870     if test "$ac_find_libraries" = "default location"; then
32871     ac_path_to_link=""
32872   else
32873     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32874     result=$?
32875     if test $result = 0; then
32876       ac_path_to_link=""
32877     else
32878       ac_path_to_link=" -L$ac_find_libraries"
32879     fi
32880   fi
32881
32882             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32883                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32884             fi
32885             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32886             { echo "$as_me:$LINENO: result: yes" >&5
32887 echo "${ECHO_T}yes" >&6; }
32888
32889             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32890 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32891
32892   ac_find_libraries=
32893   for ac_dir in $SEARCH_LIB;
32894   do
32895     for ac_extension in a so sl dylib dll.a; do
32896       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32897         ac_find_libraries=$ac_dir
32898         break 2
32899       fi
32900     done
32901   done
32902
32903             if test "$ac_find_libraries" != "" ; then
32904                 { echo "$as_me:$LINENO: result: yes" >&5
32905 echo "${ECHO_T}yes" >&6; }
32906
32907 for ac_header in X11/extensions/xf86vmode.h
32908 do
32909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32913   echo $ECHO_N "(cached) $ECHO_C" >&6
32914 else
32915   cat >conftest.$ac_ext <<_ACEOF
32916 /* confdefs.h.  */
32917 _ACEOF
32918 cat confdefs.h >>conftest.$ac_ext
32919 cat >>conftest.$ac_ext <<_ACEOF
32920 /* end confdefs.h.  */
32921
32922                                       #if HAVE_X11_XLIB_H
32923                                         #include <X11/Xlib.h>
32924                                       #endif
32925
32926
32927 #include <$ac_header>
32928 _ACEOF
32929 rm -f conftest.$ac_objext
32930 if { (ac_try="$ac_compile"
32931 case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_compile") 2>conftest.er1
32937   ac_status=$?
32938   grep -v '^ *+' conftest.er1 >conftest.err
32939   rm -f conftest.er1
32940   cat conftest.err >&5
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); } && {
32943          test -z "$ac_c_werror_flag" ||
32944          test ! -s conftest.err
32945        } && test -s conftest.$ac_objext; then
32946   eval "$as_ac_Header=yes"
32947 else
32948   echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32950
32951         eval "$as_ac_Header=no"
32952 fi
32953
32954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32955 fi
32956 ac_res=`eval echo '${'$as_ac_Header'}'`
32957                { echo "$as_me:$LINENO: result: $ac_res" >&5
32958 echo "${ECHO_T}$ac_res" >&6; }
32959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32960   cat >>confdefs.h <<_ACEOF
32961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32962 _ACEOF
32963
32964                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32965
32966 fi
32967
32968 done
32969
32970             else
32971                 { echo "$as_me:$LINENO: result: no" >&5
32972 echo "${ECHO_T}no" >&6; }
32973             fi
32974
32975         else
32976             { echo "$as_me:$LINENO: result: no" >&5
32977 echo "${ECHO_T}no" >&6; }
32978             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32979 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32980             wxUSE_DISPLAY="no"
32981         fi
32982     elif test "$wxUSE_MSW" = 1; then
32983         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32984 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32985 if test "${ac_cv_header_ddraw_h+set}" = set; then
32986   echo $ECHO_N "(cached) $ECHO_C" >&6
32987 else
32988   cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h.  */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h.  */
32994 #include <windows.h>
32995
32996 #include <ddraw.h>
32997 _ACEOF
32998 rm -f conftest.$ac_objext
32999 if { (ac_try="$ac_compile"
33000 case "(($ac_try" in
33001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002   *) ac_try_echo=$ac_try;;
33003 esac
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005   (eval "$ac_compile") 2>conftest.er1
33006   ac_status=$?
33007   grep -v '^ *+' conftest.er1 >conftest.err
33008   rm -f conftest.er1
33009   cat conftest.err >&5
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } && {
33012          test -z "$ac_c_werror_flag" ||
33013          test ! -s conftest.err
33014        } && test -s conftest.$ac_objext; then
33015   ac_cv_header_ddraw_h=yes
33016 else
33017   echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33019
33020         ac_cv_header_ddraw_h=no
33021 fi
33022
33023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33024 fi
33025 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33026 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33027
33028
33029     fi
33030 fi
33031
33032 if test "$wxUSE_DETECT_SM" = "yes"; then
33033     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33034         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33035 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33036
33037   ac_find_libraries=
33038   for ac_dir in $SEARCH_LIB;
33039   do
33040     for ac_extension in a so sl dylib dll.a; do
33041       if test -f "$ac_dir/libSM.$ac_extension"; then
33042         ac_find_libraries=$ac_dir
33043         break 2
33044       fi
33045     done
33046   done
33047
33048         if test "$ac_find_libraries" != "" ; then
33049
33050     if test "$ac_find_libraries" = "default location"; then
33051     ac_path_to_link=""
33052   else
33053     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33054     result=$?
33055     if test $result = 0; then
33056       ac_path_to_link=""
33057     else
33058       ac_path_to_link=" -L$ac_find_libraries"
33059     fi
33060   fi
33061
33062             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33063                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33064             fi
33065             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33066             { echo "$as_me:$LINENO: result: yes" >&5
33067 echo "${ECHO_T}yes" >&6; }
33068         else
33069             { echo "$as_me:$LINENO: result: no" >&5
33070 echo "${ECHO_T}no" >&6; }
33071             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33072 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33073             wxUSE_DETECT_SM="no"
33074         fi
33075     else
33076         wxUSE_DETECT_SM="no"
33077     fi
33078 fi
33079
33080
33081
33082 USE_OPENGL=0
33083 if test "$wxUSE_OPENGL" = "yes"; then
33084     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
33085         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33086 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33087         wxUSE_OPENGL="no"
33088     elif test "$wxUSE_OSX_CARBON" = 1 -o test "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33089         OPENGL_LIBS="-framework OpenGL -framework AGL"
33090     elif test "$wxUSE_MSW" = 1; then
33091         OPENGL_LIBS="-lopengl32 -lglu32"
33092     else
33093                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33094 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33095
33096 ac_find_includes=
33097 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33098   do
33099     if test -f "$ac_dir/GL/gl.h"; then
33100       ac_find_includes=$ac_dir
33101       break
33102     fi
33103   done
33104
33105         if test "$ac_find_includes" != "" ; then
33106             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33107 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33108
33109     if test "x$ac_find_includes" = "x/usr/include"; then
33110     ac_path_to_include=""
33111   else
33112     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33113     result=$?
33114     if test $result = 0; then
33115       ac_path_to_include=""
33116     else
33117       ac_path_to_include=" -I$ac_find_includes"
33118     fi
33119   fi
33120
33121             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33122         else
33123             { echo "$as_me:$LINENO: result: not found" >&5
33124 echo "${ECHO_T}not found" >&6; }
33125         fi
33126
33127         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33128 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33129 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33130   echo $ECHO_N "(cached) $ECHO_C" >&6
33131 else
33132   cat >conftest.$ac_ext <<_ACEOF
33133 /* confdefs.h.  */
33134 _ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h.  */
33138
33139
33140 #include <GL/gl.h>
33141 _ACEOF
33142 rm -f conftest.$ac_objext
33143 if { (ac_try="$ac_compile"
33144 case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_compile") 2>conftest.er1
33150   ac_status=$?
33151   grep -v '^ *+' conftest.er1 >conftest.err
33152   rm -f conftest.er1
33153   cat conftest.err >&5
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); } && {
33156          test -z "$ac_c_werror_flag" ||
33157          test ! -s conftest.err
33158        } && test -s conftest.$ac_objext; then
33159   ac_cv_header_GL_gl_h=yes
33160 else
33161   echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33163
33164         ac_cv_header_GL_gl_h=no
33165 fi
33166
33167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33168 fi
33169 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33170 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33171 if test $ac_cv_header_GL_gl_h = yes; then
33172
33173             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33174 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33175 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33176   echo $ECHO_N "(cached) $ECHO_C" >&6
33177 else
33178   cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h.  */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h.  */
33184
33185
33186 #include <GL/glu.h>
33187 _ACEOF
33188 rm -f conftest.$ac_objext
33189 if { (ac_try="$ac_compile"
33190 case "(($ac_try" in
33191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192   *) ac_try_echo=$ac_try;;
33193 esac
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195   (eval "$ac_compile") 2>conftest.er1
33196   ac_status=$?
33197   grep -v '^ *+' conftest.er1 >conftest.err
33198   rm -f conftest.er1
33199   cat conftest.err >&5
33200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); } && {
33202          test -z "$ac_c_werror_flag" ||
33203          test ! -s conftest.err
33204        } && test -s conftest.$ac_objext; then
33205   ac_cv_header_GL_glu_h=yes
33206 else
33207   echo "$as_me: failed program was:" >&5
33208 sed 's/^/| /' conftest.$ac_ext >&5
33209
33210         ac_cv_header_GL_glu_h=no
33211 fi
33212
33213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 fi
33215 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33216 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33217 if test $ac_cv_header_GL_glu_h = yes; then
33218
33219                 found_gl=0
33220
33221                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33222 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33223
33224   ac_find_libraries=
33225   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33226   do
33227     for ac_extension in a so sl dylib dll.a; do
33228       if test -f "$ac_dir/libGL.$ac_extension"; then
33229         ac_find_libraries=$ac_dir
33230         break 2
33231       fi
33232     done
33233   done
33234
33235                 if test "$ac_find_libraries" != "" ; then
33236                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33237 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33238
33239
33240     if test "$ac_find_libraries" = "default location"; then
33241     ac_path_to_link=""
33242   else
33243     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33244     result=$?
33245     if test $result = 0; then
33246       ac_path_to_link=""
33247     else
33248       ac_path_to_link=" -L$ac_find_libraries"
33249     fi
33250   fi
33251
33252                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33253                         LDFLAGS_GL="$ac_path_to_link"
33254                     fi
33255
33256                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33257 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33258
33259   ac_find_libraries=
33260   for ac_dir in $SEARCH_LIB;
33261   do
33262     for ac_extension in a so sl dylib dll.a; do
33263       if test -f "$ac_dir/libGLU.$ac_extension"; then
33264         ac_find_libraries=$ac_dir
33265         break 2
33266       fi
33267     done
33268   done
33269
33270                     if test "$ac_find_libraries" != "" ; then
33271
33272     if test "$ac_find_libraries" = "default location"; then
33273     ac_path_to_link=""
33274   else
33275     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33276     result=$?
33277     if test $result = 0; then
33278       ac_path_to_link=""
33279     else
33280       ac_path_to_link=" -L$ac_find_libraries"
33281     fi
33282   fi
33283
33284                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33285                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33286                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33287                         fi
33288
33289                         found_gl=1
33290                         OPENGL_LIBS="-lGL -lGLU"
33291                         { echo "$as_me:$LINENO: result: yes" >&5
33292 echo "${ECHO_T}yes" >&6; }
33293                     else
33294                         { echo "$as_me:$LINENO: result: no" >&5
33295 echo "${ECHO_T}no" >&6; }
33296                     fi
33297                 else
33298                     { echo "$as_me:$LINENO: result: no" >&5
33299 echo "${ECHO_T}no" >&6; }
33300                 fi
33301
33302                 if test "$found_gl" != 1; then
33303                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33304 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33305
33306   ac_find_libraries=
33307   for ac_dir in $SEARCH_LIB;
33308   do
33309     for ac_extension in a so sl dylib dll.a; do
33310       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33311         ac_find_libraries=$ac_dir
33312         break 2
33313       fi
33314     done
33315   done
33316
33317                     if test "$ac_find_libraries" != "" ; then
33318
33319     if test "$ac_find_libraries" = "default location"; then
33320     ac_path_to_link=""
33321   else
33322     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33323     result=$?
33324     if test $result = 0; then
33325       ac_path_to_link=""
33326     else
33327       ac_path_to_link=" -L$ac_find_libraries"
33328     fi
33329   fi
33330
33331                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33332                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33333                         { echo "$as_me:$LINENO: result: yes" >&5
33334 echo "${ECHO_T}yes" >&6; }
33335                     else
33336                         { echo "$as_me:$LINENO: result: no" >&5
33337 echo "${ECHO_T}no" >&6; }
33338                     fi
33339                 fi
33340
33341 fi
33342
33343
33344
33345 fi
33346
33347
33348
33349         if test "x$OPENGL_LIBS" = "x"; then
33350                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33351 echo "$as_me: error: OpenGL libraries not available" >&2;}
33352    { (exit 1); exit 1; }; }
33353         fi
33354     fi
33355
33356     if test "$wxUSE_OPENGL" = "yes"; then
33357         USE_OPENGL=1
33358         cat >>confdefs.h <<\_ACEOF
33359 #define wxUSE_OPENGL 1
33360 _ACEOF
33361
33362         cat >>confdefs.h <<\_ACEOF
33363 #define wxUSE_GLCANVAS 1
33364 _ACEOF
33365
33366         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33367     fi
33368 fi
33369
33370
33371 if test -n "$TOOLKIT" ; then
33372     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33373 fi
33374
33375
33376
33377 if test "$wxUSE_SHARED" = "yes"; then
33378     case "${host}" in
33379       *-pc-msdosdjgpp )
33380                 wxUSE_SHARED=no
33381         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33382 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33383       ;;
33384     esac
33385 fi
33386
33387 if test "$wxUSE_SHARED" = "yes"; then
33388
33389
33390     case "${host}" in
33391         *-*-cygwin* | *-*-mingw* )
33392                                                                                                 wx_cv_version_script=no
33393             ;;
33394
33395         *)
33396             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33397 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33398 if test "${wx_cv_version_script+set}" = set; then
33399   echo $ECHO_N "(cached) $ECHO_C" >&6
33400 else
33401
33402                 echo "VER_1 { *; };" >conftest.sym
33403                 echo "int main() { return 0; }" >conftest.cpp
33404
33405                 if { ac_try='
33406                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33407                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409   (eval $ac_try) 2>&5
33410   ac_status=$?
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); }; } ; then
33413                   if test -s conftest.stderr ; then
33414                       wx_cv_version_script=no
33415                   else
33416                       wx_cv_version_script=yes
33417                   fi
33418                 else
33419                   wx_cv_version_script=no
33420                 fi
33421
33422                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33423                 then
33424                   echo "struct B { virtual ~B() { } }; \
33425                         struct D : public B { }; \
33426                         void F() { D d; }" > conftest.cpp
33427
33428                   if { ac_try='
33429                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33430                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432   (eval $ac_try) 2>&5
33433   ac_status=$?
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); }; } &&
33436                      { ac_try='
33437                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33438                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440   (eval $ac_try) 2>&5
33441   ac_status=$?
33442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443   (exit $ac_status); }; }
33444                   then
33445                     if { ac_try='
33446                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33447                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33449   (eval $ac_try) 2>&5
33450   ac_status=$?
33451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452   (exit $ac_status); }; }
33453                     then
33454                       wx_cv_version_script=yes
33455                     else
33456                       wx_cv_version_script=no
33457                     fi
33458                   fi
33459                 fi
33460
33461                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33462                 rm -f conftest1.output conftest2.output conftest3.output
33463
33464 fi
33465 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33466 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33467
33468             if test $wx_cv_version_script = yes ; then
33469                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33470             fi
33471             ;;
33472     esac
33473
33474
33475             if test "$wxUSE_VISIBILITY" != "no"; then
33476
33477
33478   if test -n "$GCC"; then
33479     CFLAGS_VISIBILITY="-fvisibility=hidden"
33480     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33481     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33482 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33483     if test "${wx_cv_cc_visibility+set}" = set; then
33484   echo $ECHO_N "(cached) $ECHO_C" >&6
33485 else
33486
33487       wx_save_CXXFLAGS="$CXXFLAGS"
33488       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33489       ac_ext=cpp
33490 ac_cpp='$CXXCPP $CPPFLAGS'
33491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33494
33495       cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501
33502          /* we need gcc >= 4.0, older versions with visibility support
33503             didn't have class visibility: */
33504          #if defined(__GNUC__) && __GNUC__ < 4
33505          error this gcc is too old;
33506          #endif
33507
33508          /* visibility only makes sense for ELF shared libs: */
33509          #if !defined(__ELF__) && !defined(__APPLE__)
33510          error this platform has no visibility;
33511          #endif
33512
33513          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33514          extern __attribute__((__visibility__("default"))) int exportedvar;
33515          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33516          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33517          class __attribute__((__visibility__("default"))) Foo {
33518            Foo() {}
33519          };
33520
33521 int
33522 main ()
33523 {
33524
33525   ;
33526   return 0;
33527 }
33528 _ACEOF
33529 rm -f conftest.$ac_objext
33530 if { (ac_try="$ac_compile"
33531 case "(($ac_try" in
33532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533   *) ac_try_echo=$ac_try;;
33534 esac
33535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536   (eval "$ac_compile") 2>conftest.er1
33537   ac_status=$?
33538   grep -v '^ *+' conftest.er1 >conftest.err
33539   rm -f conftest.er1
33540   cat conftest.err >&5
33541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542   (exit $ac_status); } && {
33543          test -z "$ac_cxx_werror_flag" ||
33544          test ! -s conftest.err
33545        } && test -s conftest.$ac_objext; then
33546   wx_cv_cc_visibility=yes
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551         wx_cv_cc_visibility=no
33552 fi
33553
33554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33555       ac_ext=c
33556 ac_cpp='$CPP $CPPFLAGS'
33557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33560
33561       CXXFLAGS="$wx_save_CXXFLAGS"
33562 fi
33563
33564     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33565 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33566     if test $wx_cv_cc_visibility = yes; then
33567                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33568 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33569       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33570   echo $ECHO_N "(cached) $ECHO_C" >&6
33571 else
33572
33573         wx_save_CXXFLAGS="$CXXFLAGS"
33574         wx_save_LDFLAGS="$LDFLAGS"
33575         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33576         LDFLAGS="$LDFLAGS -shared -fPIC"
33577         ac_ext=cpp
33578 ac_cpp='$CXXCPP $CPPFLAGS'
33579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33582
33583         cat >conftest.$ac_ext <<_ACEOF
33584 /* confdefs.h.  */
33585 _ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h.  */
33589
33590             #include <string>
33591
33592 int
33593 main ()
33594 {
33595
33596             std::string s("hello");
33597             return s.length();
33598
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_cxx_werror_flag" ||
33618          test ! -s conftest.err
33619        } && test -s conftest$ac_exeext &&
33620        $as_test_x conftest$ac_exeext; then
33621   wx_cv_cc_broken_libstdcxx_visibility=no
33622 else
33623   echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33625
33626         wx_cv_cc_broken_libstdcxx_visibility=yes
33627 fi
33628
33629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33630       conftest$ac_exeext conftest.$ac_ext
33631         ac_ext=c
33632 ac_cpp='$CPP $CPPFLAGS'
33633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33636
33637         CXXFLAGS="$wx_save_CXXFLAGS"
33638         LDFLAGS="$wx_save_LDFLAGS"
33639 fi
33640
33641       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33642 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33643
33644       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33645         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33646 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33647         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33648   echo $ECHO_N "(cached) $ECHO_C" >&6
33649 else
33650
33651           ac_ext=cpp
33652 ac_cpp='$CXXCPP $CPPFLAGS'
33653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33656
33657           cat >conftest.$ac_ext <<_ACEOF
33658 /* confdefs.h.  */
33659 _ACEOF
33660 cat confdefs.h >>conftest.$ac_ext
33661 cat >>conftest.$ac_ext <<_ACEOF
33662 /* end confdefs.h.  */
33663
33664               #pragma GCC visibility push(default)
33665               #include <string>
33666               #pragma GCC visibility pop
33667
33668 int
33669 main ()
33670 {
33671
33672               std::string s("hello");
33673               return s.length();
33674
33675   ;
33676   return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext conftest$ac_exeext
33680 if { (ac_try="$ac_link"
33681 case "(($ac_try" in
33682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683   *) ac_try_echo=$ac_try;;
33684 esac
33685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686   (eval "$ac_link") 2>conftest.er1
33687   ac_status=$?
33688   grep -v '^ *+' conftest.er1 >conftest.err
33689   rm -f conftest.er1
33690   cat conftest.err >&5
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); } && {
33693          test -z "$ac_cxx_werror_flag" ||
33694          test ! -s conftest.err
33695        } && test -s conftest$ac_exeext &&
33696        $as_test_x conftest$ac_exeext; then
33697   wx_cv_cc_visibility_workaround=no
33698 else
33699   echo "$as_me: failed program was:" >&5
33700 sed 's/^/| /' conftest.$ac_ext >&5
33701
33702         wx_cv_cc_visibility_workaround=yes
33703 fi
33704
33705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33706       conftest$ac_exeext conftest.$ac_ext
33707           ac_ext=c
33708 ac_cpp='$CPP $CPPFLAGS'
33709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33712
33713
33714 fi
33715
33716         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33717 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33718
33719         if test $wx_cv_cc_visibility_workaround = no; then
33720                     wx_cv_cc_visibility=no
33721         fi
33722       fi
33723     fi
33724
33725     if test $wx_cv_cc_visibility = yes; then
33726       cat >>confdefs.h <<\_ACEOF
33727 #define HAVE_VISIBILITY 1
33728 _ACEOF
33729
33730       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33731         cat >>confdefs.h <<\_ACEOF
33732 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33733 _ACEOF
33734
33735       fi
33736     else
33737       CFLAGS_VISIBILITY=""
33738       CXXFLAGS_VISIBILITY=""
33739     fi
33740
33741
33742   fi
33743
33744     fi
33745
33746         if test "x$SUNCXX" = xyes; then
33747         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33748         WXCONFIG_RPATH="-R\$libdir"
33749     else
33750     case "${host}" in
33751       *-*-linux* | *-*-gnu* )
33752         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33753         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33754         ;;
33755
33756       *-*-solaris2* )
33757
33758                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33759
33760                         saveLdflags="$LDFLAGS"
33761         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33762         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33763 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33764         cat >conftest.$ac_ext <<_ACEOF
33765 /* confdefs.h.  */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h.  */
33770
33771 int
33772 main ()
33773 {
33774
33775   ;
33776   return 0;
33777 }
33778 _ACEOF
33779 rm -f conftest.$ac_objext conftest$ac_exeext
33780 if { (ac_try="$ac_link"
33781 case "(($ac_try" in
33782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33783   *) ac_try_echo=$ac_try;;
33784 esac
33785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33786   (eval "$ac_link") 2>conftest.er1
33787   ac_status=$?
33788   grep -v '^ *+' conftest.er1 >conftest.err
33789   rm -f conftest.er1
33790   cat conftest.err >&5
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); } && {
33793          test -z "$ac_c_werror_flag" ||
33794          test ! -s conftest.err
33795        } && test -s conftest$ac_exeext &&
33796        $as_test_x conftest$ac_exeext; then
33797
33798                 { echo "$as_me:$LINENO: result: yes" >&5
33799 echo "${ECHO_T}yes" >&6; }
33800                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33801                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33802
33803 else
33804   echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807
33808                 { echo "$as_me:$LINENO: result: no" >&5
33809 echo "${ECHO_T}no" >&6; }
33810                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33811 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33812                 LDFLAGS="$saveLdflags -Wl,-R,/"
33813                 cat >conftest.$ac_ext <<_ACEOF
33814 /* confdefs.h.  */
33815 _ACEOF
33816 cat confdefs.h >>conftest.$ac_ext
33817 cat >>conftest.$ac_ext <<_ACEOF
33818 /* end confdefs.h.  */
33819
33820 int
33821 main ()
33822 {
33823
33824   ;
33825   return 0;
33826 }
33827 _ACEOF
33828 rm -f conftest.$ac_objext conftest$ac_exeext
33829 if { (ac_try="$ac_link"
33830 case "(($ac_try" in
33831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832   *) ac_try_echo=$ac_try;;
33833 esac
33834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835   (eval "$ac_link") 2>conftest.er1
33836   ac_status=$?
33837   grep -v '^ *+' conftest.er1 >conftest.err
33838   rm -f conftest.er1
33839   cat conftest.err >&5
33840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841   (exit $ac_status); } && {
33842          test -z "$ac_c_werror_flag" ||
33843          test ! -s conftest.err
33844        } && test -s conftest$ac_exeext &&
33845        $as_test_x conftest$ac_exeext; then
33846
33847                         { echo "$as_me:$LINENO: result: yes" >&5
33848 echo "${ECHO_T}yes" >&6; }
33849                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33850                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33851
33852 else
33853   echo "$as_me: failed program was:" >&5
33854 sed 's/^/| /' conftest.$ac_ext >&5
33855
33856
33857                         { echo "$as_me:$LINENO: result: no" >&5
33858 echo "${ECHO_T}no" >&6; }
33859
33860 fi
33861
33862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33863       conftest$ac_exeext conftest.$ac_ext
33864
33865 fi
33866
33867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33868       conftest$ac_exeext conftest.$ac_ext
33869         LDFLAGS="$saveLdflags"
33870       ;;
33871
33872       *-*-darwin* )
33873         install_name_tool=`which install_name_tool`
33874         if test "$install_name_tool" -a -x "$install_name_tool"; then
33875             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33876             cat <<EOF >change-install-names
33877 #!/bin/sh
33878 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33879 inst_cmd="install_name_tool "
33880 for i in \${libnames} ; do
33881     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33882 done
33883 \${inst_cmd} \${3}
33884 EOF
33885             chmod +x change-install-names
33886         fi
33887       ;;
33888
33889       *-*-cygwin* | *-*-mingw32* )
33890         ;;
33891
33892       *-*-hpux* )
33893         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33894         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33895         ;;
33896
33897     esac
33898     fi
33899
33900             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33901
33902     if test $wxUSE_RPATH = "no"; then
33903         SAMPLES_RPATH_FLAG=''
33904         SAMPLES_RPATH_POSTLINK=''
33905         WXCONFIG_RPATH=''
33906     fi
33907
33908     SHARED=1
33909
33910 else
33911
33912     config_linkage_component="-static"
33913     SHARED=0
33914
33915 fi
33916
33917
33918 UNICODE=0
33919 lib_unicode_suffix=
33920 WX_CHARTYPE="ansi"
33921 if test "$wxUSE_UNICODE" = "yes"; then
33922     lib_unicode_suffix=u
33923     WX_CHARTYPE="unicode"
33924     UNICODE=1
33925 fi
33926
33927 lib_debug_suffix=
33928 WX_DEBUGTYPE="release"
33929 DEBUG_FLAG=0
33930 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33931     lib_debug_suffix=d
33932     WX_DEBUGTYPE="debug"
33933     DEBUG_FLAG=1
33934 fi
33935
33936 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33937 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33938
33939 DEBUG_INFO=0
33940 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33941     DEBUG_INFO=1
33942 fi
33943
33944 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33945
33946 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33947
33948 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33949
33950 if test "$cross_compiling" = "yes"; then
33951     HOST_SUFFIX="-$host_alias"
33952     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33953     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33954 fi
33955
33956 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33957 if test "${TOOLKIT_DIR}" = "os2"; then
33958     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33959 else
33960     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33961 fi
33962
33963
33964
33965 if test "$wxUSE_COCOA" = 1; then
33966
33967     ac_ext=c
33968 ac_cpp='$CPP $CPPFLAGS'
33969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33972
33973 ac_ext=m
33974
33975     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33976 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33977     cat >conftest.$ac_ext <<_ACEOF
33978 /* confdefs.h.  */
33979 _ACEOF
33980 cat confdefs.h >>conftest.$ac_ext
33981 cat >>conftest.$ac_ext <<_ACEOF
33982 /* end confdefs.h.  */
33983 #include <AppKit/NSEvent.h>
33984 #include <CoreFoundation/CoreFoundation.h>
33985
33986 int
33987 main ()
33988 {
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   { echo "$as_me:$LINENO: result: no" >&5
34012 echo "${ECHO_T}no" >&6; }
34013 else
34014   echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34016
34017         { echo "$as_me:$LINENO: result: yes" >&5
34018 echo "${ECHO_T}yes" >&6; }
34019         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34020 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34021         cat >conftest.$ac_ext <<_ACEOF
34022 /* confdefs.h.  */
34023 _ACEOF
34024 cat confdefs.h >>conftest.$ac_ext
34025 cat >>conftest.$ac_ext <<_ACEOF
34026 /* end confdefs.h.  */
34027 #define __Point__ 1
34028 #include <AppKit/NSEvent.h>
34029 #include <CoreFoundation/CoreFoundation.h>
34030
34031 int
34032 main ()
34033 {
34034
34035   ;
34036   return 0;
34037 }
34038 _ACEOF
34039 rm -f conftest.$ac_objext
34040 if { (ac_try="$ac_compile"
34041 case "(($ac_try" in
34042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34043   *) ac_try_echo=$ac_try;;
34044 esac
34045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34046   (eval "$ac_compile") 2>conftest.er1
34047   ac_status=$?
34048   grep -v '^ *+' conftest.er1 >conftest.err
34049   rm -f conftest.er1
34050   cat conftest.err >&5
34051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052   (exit $ac_status); } && {
34053          test -z "$ac_c_werror_flag" ||
34054          test ! -s conftest.err
34055        } && test -s conftest.$ac_objext; then
34056   { echo "$as_me:$LINENO: result: yes" >&5
34057 echo "${ECHO_T}yes" >&6; }
34058             cat >>confdefs.h <<\_ACEOF
34059 #define __Point__ 1
34060 _ACEOF
34061
34062
34063 else
34064   echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34066
34067         { { echo "$as_me:$LINENO: error: no
34068 See \`config.log' for more details." >&5
34069 echo "$as_me: error: no
34070 See \`config.log' for more details." >&2;}
34071    { (exit 1); exit 1; }; }
34072
34073 fi
34074
34075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34076
34077 fi
34078
34079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34080     ac_ext=c
34081 ac_cpp='$CPP $CPPFLAGS'
34082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34085
34086 fi
34087
34088
34089 { echo "$as_me:$LINENO: checking for mode_t" >&5
34090 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34091 if test "${ac_cv_type_mode_t+set}" = set; then
34092   echo $ECHO_N "(cached) $ECHO_C" >&6
34093 else
34094   cat >conftest.$ac_ext <<_ACEOF
34095 /* confdefs.h.  */
34096 _ACEOF
34097 cat confdefs.h >>conftest.$ac_ext
34098 cat >>conftest.$ac_ext <<_ACEOF
34099 /* end confdefs.h.  */
34100 $ac_includes_default
34101 typedef mode_t ac__type_new_;
34102 int
34103 main ()
34104 {
34105 if ((ac__type_new_ *) 0)
34106   return 0;
34107 if (sizeof (ac__type_new_))
34108   return 0;
34109   ;
34110   return 0;
34111 }
34112 _ACEOF
34113 rm -f conftest.$ac_objext
34114 if { (ac_try="$ac_compile"
34115 case "(($ac_try" in
34116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34117   *) ac_try_echo=$ac_try;;
34118 esac
34119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34120   (eval "$ac_compile") 2>conftest.er1
34121   ac_status=$?
34122   grep -v '^ *+' conftest.er1 >conftest.err
34123   rm -f conftest.er1
34124   cat conftest.err >&5
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); } && {
34127          test -z "$ac_c_werror_flag" ||
34128          test ! -s conftest.err
34129        } && test -s conftest.$ac_objext; then
34130   ac_cv_type_mode_t=yes
34131 else
34132   echo "$as_me: failed program was:" >&5
34133 sed 's/^/| /' conftest.$ac_ext >&5
34134
34135         ac_cv_type_mode_t=no
34136 fi
34137
34138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34139 fi
34140 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34141 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34142 if test $ac_cv_type_mode_t = yes; then
34143   :
34144 else
34145
34146 cat >>confdefs.h <<_ACEOF
34147 #define mode_t int
34148 _ACEOF
34149
34150 fi
34151
34152 { echo "$as_me:$LINENO: checking for off_t" >&5
34153 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34154 if test "${ac_cv_type_off_t+set}" = set; then
34155   echo $ECHO_N "(cached) $ECHO_C" >&6
34156 else
34157   cat >conftest.$ac_ext <<_ACEOF
34158 /* confdefs.h.  */
34159 _ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h.  */
34163 $ac_includes_default
34164 typedef off_t ac__type_new_;
34165 int
34166 main ()
34167 {
34168 if ((ac__type_new_ *) 0)
34169   return 0;
34170 if (sizeof (ac__type_new_))
34171   return 0;
34172   ;
34173   return 0;
34174 }
34175 _ACEOF
34176 rm -f conftest.$ac_objext
34177 if { (ac_try="$ac_compile"
34178 case "(($ac_try" in
34179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180   *) ac_try_echo=$ac_try;;
34181 esac
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183   (eval "$ac_compile") 2>conftest.er1
34184   ac_status=$?
34185   grep -v '^ *+' conftest.er1 >conftest.err
34186   rm -f conftest.er1
34187   cat conftest.err >&5
34188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189   (exit $ac_status); } && {
34190          test -z "$ac_c_werror_flag" ||
34191          test ! -s conftest.err
34192        } && test -s conftest.$ac_objext; then
34193   ac_cv_type_off_t=yes
34194 else
34195   echo "$as_me: failed program was:" >&5
34196 sed 's/^/| /' conftest.$ac_ext >&5
34197
34198         ac_cv_type_off_t=no
34199 fi
34200
34201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34202 fi
34203 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34204 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34205 if test $ac_cv_type_off_t = yes; then
34206   :
34207 else
34208
34209 cat >>confdefs.h <<_ACEOF
34210 #define off_t long int
34211 _ACEOF
34212
34213 fi
34214
34215 { echo "$as_me:$LINENO: checking for pid_t" >&5
34216 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34217 if test "${ac_cv_type_pid_t+set}" = set; then
34218   echo $ECHO_N "(cached) $ECHO_C" >&6
34219 else
34220   cat >conftest.$ac_ext <<_ACEOF
34221 /* confdefs.h.  */
34222 _ACEOF
34223 cat confdefs.h >>conftest.$ac_ext
34224 cat >>conftest.$ac_ext <<_ACEOF
34225 /* end confdefs.h.  */
34226 $ac_includes_default
34227 typedef pid_t ac__type_new_;
34228 int
34229 main ()
34230 {
34231 if ((ac__type_new_ *) 0)
34232   return 0;
34233 if (sizeof (ac__type_new_))
34234   return 0;
34235   ;
34236   return 0;
34237 }
34238 _ACEOF
34239 rm -f conftest.$ac_objext
34240 if { (ac_try="$ac_compile"
34241 case "(($ac_try" in
34242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34243   *) ac_try_echo=$ac_try;;
34244 esac
34245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34246   (eval "$ac_compile") 2>conftest.er1
34247   ac_status=$?
34248   grep -v '^ *+' conftest.er1 >conftest.err
34249   rm -f conftest.er1
34250   cat conftest.err >&5
34251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252   (exit $ac_status); } && {
34253          test -z "$ac_c_werror_flag" ||
34254          test ! -s conftest.err
34255        } && test -s conftest.$ac_objext; then
34256   ac_cv_type_pid_t=yes
34257 else
34258   echo "$as_me: failed program was:" >&5
34259 sed 's/^/| /' conftest.$ac_ext >&5
34260
34261         ac_cv_type_pid_t=no
34262 fi
34263
34264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34265 fi
34266 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34267 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34268 if test $ac_cv_type_pid_t = yes; then
34269   :
34270 else
34271
34272 cat >>confdefs.h <<_ACEOF
34273 #define pid_t int
34274 _ACEOF
34275
34276 fi
34277
34278 { echo "$as_me:$LINENO: checking for size_t" >&5
34279 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34280 if test "${ac_cv_type_size_t+set}" = set; then
34281   echo $ECHO_N "(cached) $ECHO_C" >&6
34282 else
34283   cat >conftest.$ac_ext <<_ACEOF
34284 /* confdefs.h.  */
34285 _ACEOF
34286 cat confdefs.h >>conftest.$ac_ext
34287 cat >>conftest.$ac_ext <<_ACEOF
34288 /* end confdefs.h.  */
34289 $ac_includes_default
34290 typedef size_t ac__type_new_;
34291 int
34292 main ()
34293 {
34294 if ((ac__type_new_ *) 0)
34295   return 0;
34296 if (sizeof (ac__type_new_))
34297   return 0;
34298   ;
34299   return 0;
34300 }
34301 _ACEOF
34302 rm -f conftest.$ac_objext
34303 if { (ac_try="$ac_compile"
34304 case "(($ac_try" in
34305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34306   *) ac_try_echo=$ac_try;;
34307 esac
34308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34309   (eval "$ac_compile") 2>conftest.er1
34310   ac_status=$?
34311   grep -v '^ *+' conftest.er1 >conftest.err
34312   rm -f conftest.er1
34313   cat conftest.err >&5
34314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315   (exit $ac_status); } && {
34316          test -z "$ac_c_werror_flag" ||
34317          test ! -s conftest.err
34318        } && test -s conftest.$ac_objext; then
34319   ac_cv_type_size_t=yes
34320 else
34321   echo "$as_me: failed program was:" >&5
34322 sed 's/^/| /' conftest.$ac_ext >&5
34323
34324         ac_cv_type_size_t=no
34325 fi
34326
34327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34328 fi
34329 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34330 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34331 if test $ac_cv_type_size_t = yes; then
34332   :
34333 else
34334
34335 cat >>confdefs.h <<_ACEOF
34336 #define size_t unsigned int
34337 _ACEOF
34338
34339 fi
34340
34341
34342 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34343 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34344 if test "${ac_cv_type_ssize_t+set}" = set; then
34345   echo $ECHO_N "(cached) $ECHO_C" >&6
34346 else
34347   cat >conftest.$ac_ext <<_ACEOF
34348 /* confdefs.h.  */
34349 _ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h.  */
34353 $ac_includes_default
34354 typedef ssize_t ac__type_new_;
34355 int
34356 main ()
34357 {
34358 if ((ac__type_new_ *) 0)
34359   return 0;
34360 if (sizeof (ac__type_new_))
34361   return 0;
34362   ;
34363   return 0;
34364 }
34365 _ACEOF
34366 rm -f conftest.$ac_objext
34367 if { (ac_try="$ac_compile"
34368 case "(($ac_try" in
34369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34370   *) ac_try_echo=$ac_try;;
34371 esac
34372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34373   (eval "$ac_compile") 2>conftest.er1
34374   ac_status=$?
34375   grep -v '^ *+' conftest.er1 >conftest.err
34376   rm -f conftest.er1
34377   cat conftest.err >&5
34378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379   (exit $ac_status); } && {
34380          test -z "$ac_c_werror_flag" ||
34381          test ! -s conftest.err
34382        } && test -s conftest.$ac_objext; then
34383   ac_cv_type_ssize_t=yes
34384 else
34385   echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34387
34388         ac_cv_type_ssize_t=no
34389 fi
34390
34391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34392 fi
34393 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34394 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34395 if test $ac_cv_type_ssize_t = yes; then
34396
34397 cat >>confdefs.h <<_ACEOF
34398 #define HAVE_SSIZE_T 1
34399 _ACEOF
34400
34401
34402 fi
34403
34404
34405 ac_ext=cpp
34406 ac_cpp='$CXXCPP $CPPFLAGS'
34407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34410  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34411 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34412 if test "${wx_cv_size_t_is_uint+set}" = set; then
34413   echo $ECHO_N "(cached) $ECHO_C" >&6
34414 else
34415
34416                             cat >conftest.$ac_ext <<_ACEOF
34417 /* confdefs.h.  */
34418 _ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h.  */
34422 #include <stddef.h>
34423 int
34424 main ()
34425 {
34426
34427             return 0; }
34428
34429             struct Foo { void foo(size_t); void foo(unsigned int); };
34430
34431             int bar() {
34432
34433   ;
34434   return 0;
34435 }
34436 _ACEOF
34437 rm -f conftest.$ac_objext
34438 if { (ac_try="$ac_compile"
34439 case "(($ac_try" in
34440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34441   *) ac_try_echo=$ac_try;;
34442 esac
34443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34444   (eval "$ac_compile") 2>conftest.er1
34445   ac_status=$?
34446   grep -v '^ *+' conftest.er1 >conftest.err
34447   rm -f conftest.er1
34448   cat conftest.err >&5
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); } && {
34451          test -z "$ac_cxx_werror_flag" ||
34452          test ! -s conftest.err
34453        } && test -s conftest.$ac_objext; then
34454   wx_cv_size_t_is_uint=no
34455 else
34456   echo "$as_me: failed program was:" >&5
34457 sed 's/^/| /' conftest.$ac_ext >&5
34458
34459         wx_cv_size_t_is_uint=yes
34460
34461 fi
34462
34463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34464
34465
34466 fi
34467 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34468 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34469
34470 if test "$wx_cv_size_t_is_uint" = "yes"; then
34471     cat >>confdefs.h <<\_ACEOF
34472 #define wxSIZE_T_IS_UINT 1
34473 _ACEOF
34474
34475 else
34476     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34477 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34478 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34479   echo $ECHO_N "(cached) $ECHO_C" >&6
34480 else
34481   cat >conftest.$ac_ext <<_ACEOF
34482 /* confdefs.h.  */
34483 _ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h.  */
34487 #include <stddef.h>
34488 int
34489 main ()
34490 {
34491
34492                 return 0; }
34493
34494                 struct Foo { void foo(size_t); void foo(unsigned long); };
34495
34496                 int bar() {
34497
34498   ;
34499   return 0;
34500 }
34501 _ACEOF
34502 rm -f conftest.$ac_objext
34503 if { (ac_try="$ac_compile"
34504 case "(($ac_try" in
34505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34506   *) ac_try_echo=$ac_try;;
34507 esac
34508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34509   (eval "$ac_compile") 2>conftest.er1
34510   ac_status=$?
34511   grep -v '^ *+' conftest.er1 >conftest.err
34512   rm -f conftest.er1
34513   cat conftest.err >&5
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); } && {
34516          test -z "$ac_cxx_werror_flag" ||
34517          test ! -s conftest.err
34518        } && test -s conftest.$ac_objext; then
34519   wx_cv_size_t_is_ulong=no
34520 else
34521   echo "$as_me: failed program was:" >&5
34522 sed 's/^/| /' conftest.$ac_ext >&5
34523
34524         wx_cv_size_t_is_ulong=yes
34525
34526 fi
34527
34528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34529
34530 fi
34531 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34532 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34533
34534     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34535         cat >>confdefs.h <<\_ACEOF
34536 #define wxSIZE_T_IS_ULONG 1
34537 _ACEOF
34538
34539     fi
34540 fi
34541
34542 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34543 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34544 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34545   echo $ECHO_N "(cached) $ECHO_C" >&6
34546 else
34547   cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553 #include <wchar.h>
34554 int
34555 main ()
34556 {
34557
34558             return 0; }
34559
34560             struct Foo { void foo(wchar_t);
34561                          void foo(unsigned short);
34562                          void foo(unsigned int);
34563                          void foo(unsigned long); };
34564
34565             int bar() {
34566
34567   ;
34568   return 0;
34569 }
34570 _ACEOF
34571 rm -f conftest.$ac_objext
34572 if { (ac_try="$ac_compile"
34573 case "(($ac_try" in
34574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34575   *) ac_try_echo=$ac_try;;
34576 esac
34577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34578   (eval "$ac_compile") 2>conftest.er1
34579   ac_status=$?
34580   grep -v '^ *+' conftest.er1 >conftest.err
34581   rm -f conftest.er1
34582   cat conftest.err >&5
34583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584   (exit $ac_status); } && {
34585          test -z "$ac_cxx_werror_flag" ||
34586          test ! -s conftest.err
34587        } && test -s conftest.$ac_objext; then
34588   wx_cv_wchar_t_is_separate_type=yes
34589 else
34590   echo "$as_me: failed program was:" >&5
34591 sed 's/^/| /' conftest.$ac_ext >&5
34592
34593         wx_cv_wchar_t_is_separate_type=no
34594
34595 fi
34596
34597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34598
34599 fi
34600 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34601 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34602
34603 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34604     cat >>confdefs.h <<\_ACEOF
34605 #define wxWCHAR_T_IS_REAL_TYPE 1
34606 _ACEOF
34607
34608 else
34609     cat >>confdefs.h <<\_ACEOF
34610 #define wxWCHAR_T_IS_REAL_TYPE 0
34611 _ACEOF
34612
34613 fi
34614
34615 ac_ext=c
34616 ac_cpp='$CPP $CPPFLAGS'
34617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34620
34621
34622 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34623 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34624 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34625   echo $ECHO_N "(cached) $ECHO_C" >&6
34626 else
34627
34628         cat >conftest.$ac_ext <<_ACEOF
34629 /* confdefs.h.  */
34630 _ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h.  */
34634 #include <pwd.h>
34635 int
34636 main ()
34637 {
34638
34639                 char *p;
34640                 struct passwd *pw;
34641                 p = pw->pw_gecos;
34642
34643   ;
34644   return 0;
34645 }
34646 _ACEOF
34647 rm -f conftest.$ac_objext
34648 if { (ac_try="$ac_compile"
34649 case "(($ac_try" in
34650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34651   *) ac_try_echo=$ac_try;;
34652 esac
34653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34654   (eval "$ac_compile") 2>conftest.er1
34655   ac_status=$?
34656   grep -v '^ *+' conftest.er1 >conftest.err
34657   rm -f conftest.er1
34658   cat conftest.err >&5
34659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660   (exit $ac_status); } && {
34661          test -z "$ac_c_werror_flag" ||
34662          test ! -s conftest.err
34663        } && test -s conftest.$ac_objext; then
34664
34665                 wx_cv_struct_pw_gecos=yes
34666
34667 else
34668   echo "$as_me: failed program was:" >&5
34669 sed 's/^/| /' conftest.$ac_ext >&5
34670
34671
34672                 wx_cv_struct_pw_gecos=no
34673
34674
34675 fi
34676
34677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34678
34679
34680 fi
34681 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34682 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34683
34684 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34685     cat >>confdefs.h <<\_ACEOF
34686 #define HAVE_PW_GECOS 1
34687 _ACEOF
34688
34689 fi
34690
34691
34692 if test "$wxUSE_WCHAR_T" = "yes"; then
34693     cat >>confdefs.h <<\_ACEOF
34694 #define wxUSE_WCHAR_T 1
34695 _ACEOF
34696
34697
34698         WCSLEN_FOUND=0
34699     WCHAR_LINK=
34700
34701 for ac_func in wcslen
34702 do
34703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34707   echo $ECHO_N "(cached) $ECHO_C" >&6
34708 else
34709   cat >conftest.$ac_ext <<_ACEOF
34710 /* confdefs.h.  */
34711 _ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h.  */
34715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34717 #define $ac_func innocuous_$ac_func
34718
34719 /* System header to define __stub macros and hopefully few prototypes,
34720     which can conflict with char $ac_func (); below.
34721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34722     <limits.h> exists even on freestanding compilers.  */
34723
34724 #ifdef __STDC__
34725 # include <limits.h>
34726 #else
34727 # include <assert.h>
34728 #endif
34729
34730 #undef $ac_func
34731
34732 /* Override any GCC internal prototype to avoid an error.
34733    Use char because int might match the return type of a GCC
34734    builtin and then its argument prototype would still apply.  */
34735 #ifdef __cplusplus
34736 extern "C"
34737 #endif
34738 char $ac_func ();
34739 /* The GNU C library defines this for functions which it implements
34740     to always fail with ENOSYS.  Some functions are actually named
34741     something starting with __ and the normal name is an alias.  */
34742 #if defined __stub_$ac_func || defined __stub___$ac_func
34743 choke me
34744 #endif
34745
34746 int
34747 main ()
34748 {
34749 return $ac_func ();
34750   ;
34751   return 0;
34752 }
34753 _ACEOF
34754 rm -f conftest.$ac_objext conftest$ac_exeext
34755 if { (ac_try="$ac_link"
34756 case "(($ac_try" in
34757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34758   *) ac_try_echo=$ac_try;;
34759 esac
34760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34761   (eval "$ac_link") 2>conftest.er1
34762   ac_status=$?
34763   grep -v '^ *+' conftest.er1 >conftest.err
34764   rm -f conftest.er1
34765   cat conftest.err >&5
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); } && {
34768          test -z "$ac_c_werror_flag" ||
34769          test ! -s conftest.err
34770        } && test -s conftest$ac_exeext &&
34771        $as_test_x conftest$ac_exeext; then
34772   eval "$as_ac_var=yes"
34773 else
34774   echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34776
34777         eval "$as_ac_var=no"
34778 fi
34779
34780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34781       conftest$ac_exeext conftest.$ac_ext
34782 fi
34783 ac_res=`eval echo '${'$as_ac_var'}'`
34784                { echo "$as_me:$LINENO: result: $ac_res" >&5
34785 echo "${ECHO_T}$ac_res" >&6; }
34786 if test `eval echo '${'$as_ac_var'}'` = yes; then
34787   cat >>confdefs.h <<_ACEOF
34788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34789 _ACEOF
34790  WCSLEN_FOUND=1
34791 fi
34792 done
34793
34794
34795     if test "$WCSLEN_FOUND" = 0; then
34796         if test "$TOOLKIT" = "MSW"; then
34797             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34798 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34799 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34800   echo $ECHO_N "(cached) $ECHO_C" >&6
34801 else
34802   ac_check_lib_save_LIBS=$LIBS
34803 LIBS="-lmsvcrt  $LIBS"
34804 cat >conftest.$ac_ext <<_ACEOF
34805 /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810
34811 /* Override any GCC internal prototype to avoid an error.
34812    Use char because int might match the return type of a GCC
34813    builtin and then its argument prototype would still apply.  */
34814 #ifdef __cplusplus
34815 extern "C"
34816 #endif
34817 char wcslen ();
34818 int
34819 main ()
34820 {
34821 return wcslen ();
34822   ;
34823   return 0;
34824 }
34825 _ACEOF
34826 rm -f conftest.$ac_objext conftest$ac_exeext
34827 if { (ac_try="$ac_link"
34828 case "(($ac_try" in
34829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34830   *) ac_try_echo=$ac_try;;
34831 esac
34832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34833   (eval "$ac_link") 2>conftest.er1
34834   ac_status=$?
34835   grep -v '^ *+' conftest.er1 >conftest.err
34836   rm -f conftest.er1
34837   cat conftest.err >&5
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); } && {
34840          test -z "$ac_c_werror_flag" ||
34841          test ! -s conftest.err
34842        } && test -s conftest$ac_exeext &&
34843        $as_test_x conftest$ac_exeext; then
34844   ac_cv_lib_msvcrt_wcslen=yes
34845 else
34846   echo "$as_me: failed program was:" >&5
34847 sed 's/^/| /' conftest.$ac_ext >&5
34848
34849         ac_cv_lib_msvcrt_wcslen=no
34850 fi
34851
34852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34853       conftest$ac_exeext conftest.$ac_ext
34854 LIBS=$ac_check_lib_save_LIBS
34855 fi
34856 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34857 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34858 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34859   WCHAR_OK=1
34860 fi
34861
34862         else
34863             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34864 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34865 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34866   echo $ECHO_N "(cached) $ECHO_C" >&6
34867 else
34868   ac_check_lib_save_LIBS=$LIBS
34869 LIBS="-lw  $LIBS"
34870 cat >conftest.$ac_ext <<_ACEOF
34871 /* confdefs.h.  */
34872 _ACEOF
34873 cat confdefs.h >>conftest.$ac_ext
34874 cat >>conftest.$ac_ext <<_ACEOF
34875 /* end confdefs.h.  */
34876
34877 /* Override any GCC internal prototype to avoid an error.
34878    Use char because int might match the return type of a GCC
34879    builtin and then its argument prototype would still apply.  */
34880 #ifdef __cplusplus
34881 extern "C"
34882 #endif
34883 char wcslen ();
34884 int
34885 main ()
34886 {
34887 return wcslen ();
34888   ;
34889   return 0;
34890 }
34891 _ACEOF
34892 rm -f conftest.$ac_objext conftest$ac_exeext
34893 if { (ac_try="$ac_link"
34894 case "(($ac_try" in
34895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34896   *) ac_try_echo=$ac_try;;
34897 esac
34898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34899   (eval "$ac_link") 2>conftest.er1
34900   ac_status=$?
34901   grep -v '^ *+' conftest.er1 >conftest.err
34902   rm -f conftest.er1
34903   cat conftest.err >&5
34904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905   (exit $ac_status); } && {
34906          test -z "$ac_c_werror_flag" ||
34907          test ! -s conftest.err
34908        } && test -s conftest$ac_exeext &&
34909        $as_test_x conftest$ac_exeext; then
34910   ac_cv_lib_w_wcslen=yes
34911 else
34912   echo "$as_me: failed program was:" >&5
34913 sed 's/^/| /' conftest.$ac_ext >&5
34914
34915         ac_cv_lib_w_wcslen=no
34916 fi
34917
34918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34919       conftest$ac_exeext conftest.$ac_ext
34920 LIBS=$ac_check_lib_save_LIBS
34921 fi
34922 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34923 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34924 if test $ac_cv_lib_w_wcslen = yes; then
34925
34926                             WCHAR_LINK=" -lw"
34927                             WCSLEN_FOUND=1
34928
34929 fi
34930
34931         fi
34932     fi
34933
34934     if test "$WCSLEN_FOUND" = 1; then
34935         cat >>confdefs.h <<\_ACEOF
34936 #define HAVE_WCSLEN 1
34937 _ACEOF
34938
34939     fi
34940
34941
34942 for ac_func in wcsdup
34943 do
34944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34948   echo $ECHO_N "(cached) $ECHO_C" >&6
34949 else
34950   cat >conftest.$ac_ext <<_ACEOF
34951 /* confdefs.h.  */
34952 _ACEOF
34953 cat confdefs.h >>conftest.$ac_ext
34954 cat >>conftest.$ac_ext <<_ACEOF
34955 /* end confdefs.h.  */
34956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34958 #define $ac_func innocuous_$ac_func
34959
34960 /* System header to define __stub macros and hopefully few prototypes,
34961     which can conflict with char $ac_func (); below.
34962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34963     <limits.h> exists even on freestanding compilers.  */
34964
34965 #ifdef __STDC__
34966 # include <limits.h>
34967 #else
34968 # include <assert.h>
34969 #endif
34970
34971 #undef $ac_func
34972
34973 /* Override any GCC internal prototype to avoid an error.
34974    Use char because int might match the return type of a GCC
34975    builtin and then its argument prototype would still apply.  */
34976 #ifdef __cplusplus
34977 extern "C"
34978 #endif
34979 char $ac_func ();
34980 /* The GNU C library defines this for functions which it implements
34981     to always fail with ENOSYS.  Some functions are actually named
34982     something starting with __ and the normal name is an alias.  */
34983 #if defined __stub_$ac_func || defined __stub___$ac_func
34984 choke me
34985 #endif
34986
34987 int
34988 main ()
34989 {
34990 return $ac_func ();
34991   ;
34992   return 0;
34993 }
34994 _ACEOF
34995 rm -f conftest.$ac_objext conftest$ac_exeext
34996 if { (ac_try="$ac_link"
34997 case "(($ac_try" in
34998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34999   *) ac_try_echo=$ac_try;;
35000 esac
35001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35002   (eval "$ac_link") 2>conftest.er1
35003   ac_status=$?
35004   grep -v '^ *+' conftest.er1 >conftest.err
35005   rm -f conftest.er1
35006   cat conftest.err >&5
35007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008   (exit $ac_status); } && {
35009          test -z "$ac_c_werror_flag" ||
35010          test ! -s conftest.err
35011        } && test -s conftest$ac_exeext &&
35012        $as_test_x conftest$ac_exeext; then
35013   eval "$as_ac_var=yes"
35014 else
35015   echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35017
35018         eval "$as_ac_var=no"
35019 fi
35020
35021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35022       conftest$ac_exeext conftest.$ac_ext
35023 fi
35024 ac_res=`eval echo '${'$as_ac_var'}'`
35025                { echo "$as_me:$LINENO: result: $ac_res" >&5
35026 echo "${ECHO_T}$ac_res" >&6; }
35027 if test `eval echo '${'$as_ac_var'}'` = yes; then
35028   cat >>confdefs.h <<_ACEOF
35029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35030 _ACEOF
35031
35032 fi
35033 done
35034
35035
35036                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35037         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35038     fi
35039
35040                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35041 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35042 if test "${ac_cv_type_mbstate_t+set}" = set; then
35043   echo $ECHO_N "(cached) $ECHO_C" >&6
35044 else
35045   cat >conftest.$ac_ext <<_ACEOF
35046 /* confdefs.h.  */
35047 _ACEOF
35048 cat confdefs.h >>conftest.$ac_ext
35049 cat >>conftest.$ac_ext <<_ACEOF
35050 /* end confdefs.h.  */
35051 #include <wchar.h>
35052
35053 typedef mbstate_t ac__type_new_;
35054 int
35055 main ()
35056 {
35057 if ((ac__type_new_ *) 0)
35058   return 0;
35059 if (sizeof (ac__type_new_))
35060   return 0;
35061   ;
35062   return 0;
35063 }
35064 _ACEOF
35065 rm -f conftest.$ac_objext
35066 if { (ac_try="$ac_compile"
35067 case "(($ac_try" in
35068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35069   *) ac_try_echo=$ac_try;;
35070 esac
35071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35072   (eval "$ac_compile") 2>conftest.er1
35073   ac_status=$?
35074   grep -v '^ *+' conftest.er1 >conftest.err
35075   rm -f conftest.er1
35076   cat conftest.err >&5
35077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078   (exit $ac_status); } && {
35079          test -z "$ac_c_werror_flag" ||
35080          test ! -s conftest.err
35081        } && test -s conftest.$ac_objext; then
35082   ac_cv_type_mbstate_t=yes
35083 else
35084   echo "$as_me: failed program was:" >&5
35085 sed 's/^/| /' conftest.$ac_ext >&5
35086
35087         ac_cv_type_mbstate_t=no
35088 fi
35089
35090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35091 fi
35092 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35093 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35094 if test $ac_cv_type_mbstate_t = yes; then
35095
35096 cat >>confdefs.h <<_ACEOF
35097 #define HAVE_MBSTATE_T 1
35098 _ACEOF
35099
35100
35101 for ac_func in wcsrtombs
35102 do
35103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35107   echo $ECHO_N "(cached) $ECHO_C" >&6
35108 else
35109   cat >conftest.$ac_ext <<_ACEOF
35110 /* confdefs.h.  */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h.  */
35115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35117 #define $ac_func innocuous_$ac_func
35118
35119 /* System header to define __stub macros and hopefully few prototypes,
35120     which can conflict with char $ac_func (); below.
35121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35122     <limits.h> exists even on freestanding compilers.  */
35123
35124 #ifdef __STDC__
35125 # include <limits.h>
35126 #else
35127 # include <assert.h>
35128 #endif
35129
35130 #undef $ac_func
35131
35132 /* Override any GCC internal prototype to avoid an error.
35133    Use char because int might match the return type of a GCC
35134    builtin and then its argument prototype would still apply.  */
35135 #ifdef __cplusplus
35136 extern "C"
35137 #endif
35138 char $ac_func ();
35139 /* The GNU C library defines this for functions which it implements
35140     to always fail with ENOSYS.  Some functions are actually named
35141     something starting with __ and the normal name is an alias.  */
35142 #if defined __stub_$ac_func || defined __stub___$ac_func
35143 choke me
35144 #endif
35145
35146 int
35147 main ()
35148 {
35149 return $ac_func ();
35150   ;
35151   return 0;
35152 }
35153 _ACEOF
35154 rm -f conftest.$ac_objext conftest$ac_exeext
35155 if { (ac_try="$ac_link"
35156 case "(($ac_try" in
35157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158   *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161   (eval "$ac_link") 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && {
35168          test -z "$ac_c_werror_flag" ||
35169          test ! -s conftest.err
35170        } && test -s conftest$ac_exeext &&
35171        $as_test_x conftest$ac_exeext; then
35172   eval "$as_ac_var=yes"
35173 else
35174   echo "$as_me: failed program was:" >&5
35175 sed 's/^/| /' conftest.$ac_ext >&5
35176
35177         eval "$as_ac_var=no"
35178 fi
35179
35180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35181       conftest$ac_exeext conftest.$ac_ext
35182 fi
35183 ac_res=`eval echo '${'$as_ac_var'}'`
35184                { echo "$as_me:$LINENO: result: $ac_res" >&5
35185 echo "${ECHO_T}$ac_res" >&6; }
35186 if test `eval echo '${'$as_ac_var'}'` = yes; then
35187   cat >>confdefs.h <<_ACEOF
35188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35189 _ACEOF
35190
35191 fi
35192 done
35193
35194 fi
35195
35196 else
35197     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35198 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35199 fi
35200
35201
35202
35203
35204 for ac_func in snprintf vsnprintf vsscanf
35205 do
35206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35210   echo $ECHO_N "(cached) $ECHO_C" >&6
35211 else
35212   cat >conftest.$ac_ext <<_ACEOF
35213 /* confdefs.h.  */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h.  */
35218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35220 #define $ac_func innocuous_$ac_func
35221
35222 /* System header to define __stub macros and hopefully few prototypes,
35223     which can conflict with char $ac_func (); below.
35224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35225     <limits.h> exists even on freestanding compilers.  */
35226
35227 #ifdef __STDC__
35228 # include <limits.h>
35229 #else
35230 # include <assert.h>
35231 #endif
35232
35233 #undef $ac_func
35234
35235 /* Override any GCC internal prototype to avoid an error.
35236    Use char because int might match the return type of a GCC
35237    builtin and then its argument prototype would still apply.  */
35238 #ifdef __cplusplus
35239 extern "C"
35240 #endif
35241 char $ac_func ();
35242 /* The GNU C library defines this for functions which it implements
35243     to always fail with ENOSYS.  Some functions are actually named
35244     something starting with __ and the normal name is an alias.  */
35245 #if defined __stub_$ac_func || defined __stub___$ac_func
35246 choke me
35247 #endif
35248
35249 int
35250 main ()
35251 {
35252 return $ac_func ();
35253   ;
35254   return 0;
35255 }
35256 _ACEOF
35257 rm -f conftest.$ac_objext conftest$ac_exeext
35258 if { (ac_try="$ac_link"
35259 case "(($ac_try" in
35260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35261   *) ac_try_echo=$ac_try;;
35262 esac
35263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35264   (eval "$ac_link") 2>conftest.er1
35265   ac_status=$?
35266   grep -v '^ *+' conftest.er1 >conftest.err
35267   rm -f conftest.er1
35268   cat conftest.err >&5
35269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270   (exit $ac_status); } && {
35271          test -z "$ac_c_werror_flag" ||
35272          test ! -s conftest.err
35273        } && test -s conftest$ac_exeext &&
35274        $as_test_x conftest$ac_exeext; then
35275   eval "$as_ac_var=yes"
35276 else
35277   echo "$as_me: failed program was:" >&5
35278 sed 's/^/| /' conftest.$ac_ext >&5
35279
35280         eval "$as_ac_var=no"
35281 fi
35282
35283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35284       conftest$ac_exeext conftest.$ac_ext
35285 fi
35286 ac_res=`eval echo '${'$as_ac_var'}'`
35287                { echo "$as_me:$LINENO: result: $ac_res" >&5
35288 echo "${ECHO_T}$ac_res" >&6; }
35289 if test `eval echo '${'$as_ac_var'}'` = yes; then
35290   cat >>confdefs.h <<_ACEOF
35291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35292 _ACEOF
35293
35294 fi
35295 done
35296
35297
35298 ac_ext=cpp
35299 ac_cpp='$CXXCPP $CPPFLAGS'
35300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35303
35304 if test "$ac_cv_func_vsnprintf" = "yes"; then
35305         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35306 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35307 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35308   echo $ECHO_N "(cached) $ECHO_C" >&6
35309 else
35310
35311                                                             cat >conftest.$ac_ext <<_ACEOF
35312 /* confdefs.h.  */
35313 _ACEOF
35314 cat confdefs.h >>conftest.$ac_ext
35315 cat >>conftest.$ac_ext <<_ACEOF
35316 /* end confdefs.h.  */
35317
35318                     #include <stdio.h>
35319                     #include <stdarg.h>
35320                     #ifdef __MSL__
35321                     #if __MSL__ >= 0x6000
35322                     namespace std {}
35323                     using namespace std;
35324                     #endif
35325                     #endif
35326
35327 int
35328 main ()
35329 {
35330
35331                     char *buf;
35332                     va_list ap;
35333                     vsnprintf(buf, 10u, "%s", ap);
35334
35335   ;
35336   return 0;
35337 }
35338 _ACEOF
35339 rm -f conftest.$ac_objext
35340 if { (ac_try="$ac_compile"
35341 case "(($ac_try" in
35342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35343   *) ac_try_echo=$ac_try;;
35344 esac
35345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35346   (eval "$ac_compile") 2>conftest.er1
35347   ac_status=$?
35348   grep -v '^ *+' conftest.er1 >conftest.err
35349   rm -f conftest.er1
35350   cat conftest.err >&5
35351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352   (exit $ac_status); } && {
35353          test -z "$ac_cxx_werror_flag" ||
35354          test ! -s conftest.err
35355        } && test -s conftest.$ac_objext; then
35356   wx_cv_func_vsnprintf_decl=yes
35357 else
35358   echo "$as_me: failed program was:" >&5
35359 sed 's/^/| /' conftest.$ac_ext >&5
35360
35361         wx_cv_func_vsnprintf_decl=no
35362
35363 fi
35364
35365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35366
35367
35368 fi
35369 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35370 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35371
35372     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35373         cat >>confdefs.h <<\_ACEOF
35374 #define HAVE_VSNPRINTF_DECL 1
35375 _ACEOF
35376
35377
35378                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35379 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35380 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35381   echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383
35384                 cat >conftest.$ac_ext <<_ACEOF
35385 /* confdefs.h.  */
35386 _ACEOF
35387 cat confdefs.h >>conftest.$ac_ext
35388 cat >>conftest.$ac_ext <<_ACEOF
35389 /* end confdefs.h.  */
35390
35391                         #include <stdio.h>
35392                         #include <stdarg.h>
35393                         #ifdef __MSL__
35394                         #if __MSL__ >= 0x6000
35395                         namespace std {}
35396                         using namespace std;
35397                         #endif
35398                         #endif
35399
35400 int
35401 main ()
35402 {
35403
35404                         char *buf;
35405                         va_list ap;
35406                         const char *fmt = "%s";
35407                         vsnprintf(buf, 10u, fmt, ap);
35408
35409   ;
35410   return 0;
35411 }
35412 _ACEOF
35413 rm -f conftest.$ac_objext
35414 if { (ac_try="$ac_compile"
35415 case "(($ac_try" in
35416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35417   *) ac_try_echo=$ac_try;;
35418 esac
35419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35420   (eval "$ac_compile") 2>conftest.er1
35421   ac_status=$?
35422   grep -v '^ *+' conftest.er1 >conftest.err
35423   rm -f conftest.er1
35424   cat conftest.err >&5
35425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426   (exit $ac_status); } && {
35427          test -z "$ac_cxx_werror_flag" ||
35428          test ! -s conftest.err
35429        } && test -s conftest.$ac_objext; then
35430   wx_cv_func_broken_vsnprintf_decl=no
35431 else
35432   echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35434
35435         wx_cv_func_broken_vsnprintf_decl=yes
35436
35437 fi
35438
35439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35440
35441
35442 fi
35443 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35444 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35445
35446         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35447             cat >>confdefs.h <<\_ACEOF
35448 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35449 _ACEOF
35450
35451         fi
35452     fi
35453 fi
35454
35455 if test "$ac_cv_func_snprintf" = "yes"; then
35456     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35457 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35458 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35459   echo $ECHO_N "(cached) $ECHO_C" >&6
35460 else
35461
35462             cat >conftest.$ac_ext <<_ACEOF
35463 /* confdefs.h.  */
35464 _ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h.  */
35468
35469                     #include <stdio.h>
35470                     #include <stdarg.h>
35471                     #ifdef __MSL__
35472                     #if __MSL__ >= 0x6000
35473                     namespace std {}
35474                     using namespace std;
35475                     #endif
35476                     #endif
35477
35478 int
35479 main ()
35480 {
35481
35482                     char *buf;
35483                     snprintf(buf, 10u, "%s", "wx");
35484
35485   ;
35486   return 0;
35487 }
35488 _ACEOF
35489 rm -f conftest.$ac_objext
35490 if { (ac_try="$ac_compile"
35491 case "(($ac_try" in
35492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35493   *) ac_try_echo=$ac_try;;
35494 esac
35495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35496   (eval "$ac_compile") 2>conftest.er1
35497   ac_status=$?
35498   grep -v '^ *+' conftest.er1 >conftest.err
35499   rm -f conftest.er1
35500   cat conftest.err >&5
35501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502   (exit $ac_status); } && {
35503          test -z "$ac_cxx_werror_flag" ||
35504          test ! -s conftest.err
35505        } && test -s conftest.$ac_objext; then
35506   wx_cv_func_snprintf_decl=yes
35507 else
35508   echo "$as_me: failed program was:" >&5
35509 sed 's/^/| /' conftest.$ac_ext >&5
35510
35511         wx_cv_func_snprintf_decl=no
35512
35513 fi
35514
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35516
35517
35518 fi
35519 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35520 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35521
35522     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35523         cat >>confdefs.h <<\_ACEOF
35524 #define HAVE_SNPRINTF_DECL 1
35525 _ACEOF
35526
35527     fi
35528
35529     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35530
35531                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35532 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35533 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35534   echo $ECHO_N "(cached) $ECHO_C" >&6
35535 else
35536
35537                 if test "$cross_compiling" = yes; then
35538
35539                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35540 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35541 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35542 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35543                         wx_cv_func_snprintf_pos_params=no
35544
35545
35546 else
35547   cat >conftest.$ac_ext <<_ACEOF
35548 /* confdefs.h.  */
35549 _ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h.  */
35553
35554                         #include <stdio.h>
35555
35556                         int main (void)
35557                         {
35558                             char buffer[128];
35559                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35560                             if (strcmp ("2 3 1", buffer) == 0)
35561                                 exit (0);
35562                             exit (1);
35563                         }
35564
35565 _ACEOF
35566 rm -f conftest$ac_exeext
35567 if { (ac_try="$ac_link"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573   (eval "$ac_link") 2>&5
35574   ac_status=$?
35575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35577   { (case "(($ac_try" in
35578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35579   *) ac_try_echo=$ac_try;;
35580 esac
35581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35582   (eval "$ac_try") 2>&5
35583   ac_status=$?
35584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585   (exit $ac_status); }; }; then
35586   wx_cv_func_snprintf_pos_params=no
35587 else
35588   echo "$as_me: program exited with status $ac_status" >&5
35589 echo "$as_me: failed program was:" >&5
35590 sed 's/^/| /' conftest.$ac_ext >&5
35591
35592 ( exit $ac_status )
35593 wx_cv_func_snprintf_pos_params=yes
35594 fi
35595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35596 fi
35597
35598
35599
35600
35601 fi
35602 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35603 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35604
35605         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35606             cat >>confdefs.h <<\_ACEOF
35607 #define HAVE_UNIX98_PRINTF 1
35608 _ACEOF
35609
35610         fi
35611     fi
35612 fi
35613
35614 if test "$ac_cv_func_vsscanf" = "yes"; then
35615     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35616 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35617 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35618   echo $ECHO_N "(cached) $ECHO_C" >&6
35619 else
35620
35621             cat >conftest.$ac_ext <<_ACEOF
35622 /* confdefs.h.  */
35623 _ACEOF
35624 cat confdefs.h >>conftest.$ac_ext
35625 cat >>conftest.$ac_ext <<_ACEOF
35626 /* end confdefs.h.  */
35627
35628                     #include <stdio.h>
35629                     #include <stdarg.h>
35630                     #ifdef __MSL__
35631                     #if __MSL__ >= 0x6000
35632                     namespace std {}
35633                     using namespace std;
35634                     #endif
35635                     #endif
35636
35637 int
35638 main ()
35639 {
35640
35641                     char *buf;
35642                     va_list args;
35643                     vsscanf(buf, "%s", args);
35644
35645   ;
35646   return 0;
35647 }
35648 _ACEOF
35649 rm -f conftest.$ac_objext
35650 if { (ac_try="$ac_compile"
35651 case "(($ac_try" in
35652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35653   *) ac_try_echo=$ac_try;;
35654 esac
35655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35656   (eval "$ac_compile") 2>conftest.er1
35657   ac_status=$?
35658   grep -v '^ *+' conftest.er1 >conftest.err
35659   rm -f conftest.er1
35660   cat conftest.err >&5
35661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662   (exit $ac_status); } && {
35663          test -z "$ac_cxx_werror_flag" ||
35664          test ! -s conftest.err
35665        } && test -s conftest.$ac_objext; then
35666   wx_cv_func_vsscanf_decl=yes
35667 else
35668   echo "$as_me: failed program was:" >&5
35669 sed 's/^/| /' conftest.$ac_ext >&5
35670
35671         wx_cv_func_vsscanf_decl=no
35672
35673 fi
35674
35675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35676
35677
35678 fi
35679 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35680 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35681
35682     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35683         cat >>confdefs.h <<\_ACEOF
35684 #define HAVE_VSSCANF_DECL 1
35685 _ACEOF
35686
35687     fi
35688 fi
35689 ac_ext=c
35690 ac_cpp='$CPP $CPPFLAGS'
35691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35694
35695
35696 if test "$wxUSE_UNICODE" = yes; then
35697
35698             wchar_headers="#include <stdio.h>
35699 #include <wchar.h>"
35700     case "${host}" in
35701         *-*-solaris2* )
35702
35703 for ac_header in widec.h
35704 do
35705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35709   echo $ECHO_N "(cached) $ECHO_C" >&6
35710 else
35711   cat >conftest.$ac_ext <<_ACEOF
35712 /* confdefs.h.  */
35713 _ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h.  */
35717 $ac_includes_default
35718
35719 #include <$ac_header>
35720 _ACEOF
35721 rm -f conftest.$ac_objext
35722 if { (ac_try="$ac_compile"
35723 case "(($ac_try" in
35724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35725   *) ac_try_echo=$ac_try;;
35726 esac
35727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35728   (eval "$ac_compile") 2>conftest.er1
35729   ac_status=$?
35730   grep -v '^ *+' conftest.er1 >conftest.err
35731   rm -f conftest.er1
35732   cat conftest.err >&5
35733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); } && {
35735          test -z "$ac_c_werror_flag" ||
35736          test ! -s conftest.err
35737        } && test -s conftest.$ac_objext; then
35738   eval "$as_ac_Header=yes"
35739 else
35740   echo "$as_me: failed program was:" >&5
35741 sed 's/^/| /' conftest.$ac_ext >&5
35742
35743         eval "$as_ac_Header=no"
35744 fi
35745
35746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35747 fi
35748 ac_res=`eval echo '${'$as_ac_Header'}'`
35749                { echo "$as_me:$LINENO: result: $ac_res" >&5
35750 echo "${ECHO_T}$ac_res" >&6; }
35751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35752   cat >>confdefs.h <<_ACEOF
35753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35754 _ACEOF
35755
35756 fi
35757
35758 done
35759
35760             if test "$ac_cv_header_widec_h" = "yes"; then
35761                 wchar_headers="$wchar_headers
35762 #include <widec.h>"
35763             fi
35764     esac
35765
35766
35767   for wx_func in putws fputws wprintf vswprintf vswscanf
35768   do
35769     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35770 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35771 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35772   echo $ECHO_N "(cached) $ECHO_C" >&6
35773 else
35774
35775         cat >conftest.$ac_ext <<_ACEOF
35776
35777             /* confdefs.h.  */
35778 _ACEOF
35779 cat confdefs.h >>conftest.$ac_ext
35780 cat >>conftest.$ac_ext <<_ACEOF
35781 /* end confdefs.h.  */
35782
35783                 $wchar_headers
35784                 $ac_includes_default
35785
35786 int
35787 main ()
35788 {
35789
35790                 #ifndef $wx_func
35791                   &$wx_func;
35792                 #endif
35793
35794
35795   ;
35796   return 0;
35797 }
35798
35799 _ACEOF
35800 rm -f conftest.$ac_objext conftest$ac_exeext
35801 if { (ac_try="$ac_link"
35802 case "(($ac_try" in
35803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35804   *) ac_try_echo=$ac_try;;
35805 esac
35806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35807   (eval "$ac_link") 2>conftest.er1
35808   ac_status=$?
35809   grep -v '^ *+' conftest.er1 >conftest.err
35810   rm -f conftest.er1
35811   cat conftest.err >&5
35812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813   (exit $ac_status); } && {
35814          test -z "$ac_c_werror_flag" ||
35815          test ! -s conftest.err
35816        } && test -s conftest$ac_exeext &&
35817        $as_test_x conftest$ac_exeext; then
35818   eval wx_cv_func_$wx_func=yes
35819 else
35820   echo "$as_me: failed program was:" >&5
35821 sed 's/^/| /' conftest.$ac_ext >&5
35822
35823         eval wx_cv_func_$wx_func=no
35824 fi
35825
35826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35827       conftest$ac_exeext conftest.$ac_ext
35828
35829 fi
35830 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35831                { echo "$as_me:$LINENO: result: $ac_res" >&5
35832 echo "${ECHO_T}$ac_res" >&6; }
35833
35834     if eval test \$wx_cv_func_$wx_func = yes
35835     then
35836       cat >>confdefs.h <<_ACEOF
35837 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35838 _ACEOF
35839
35840
35841     else
35842       :
35843
35844     fi
35845   done
35846
35847
35848                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35849 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35850     cat >conftest.$ac_ext <<_ACEOF
35851 /* confdefs.h.  */
35852 _ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h.  */
35856 #include <wchar.h>
35857 int
35858 main ()
35859 {
35860 &_vsnwprintf;
35861   ;
35862   return 0;
35863 }
35864 _ACEOF
35865 rm -f conftest.$ac_objext
35866 if { (ac_try="$ac_compile"
35867 case "(($ac_try" in
35868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35869   *) ac_try_echo=$ac_try;;
35870 esac
35871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35872   (eval "$ac_compile") 2>conftest.er1
35873   ac_status=$?
35874   grep -v '^ *+' conftest.er1 >conftest.err
35875   rm -f conftest.er1
35876   cat conftest.err >&5
35877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878   (exit $ac_status); } && {
35879          test -z "$ac_c_werror_flag" ||
35880          test ! -s conftest.err
35881        } && test -s conftest.$ac_objext; then
35882   { echo "$as_me:$LINENO: result: yes" >&5
35883 echo "${ECHO_T}yes" >&6; }
35884                     cat >>confdefs.h <<\_ACEOF
35885 #define HAVE__VSNWPRINTF 1
35886 _ACEOF
35887
35888 else
35889   echo "$as_me: failed program was:" >&5
35890 sed 's/^/| /' conftest.$ac_ext >&5
35891
35892         { echo "$as_me:$LINENO: result: no" >&5
35893 echo "${ECHO_T}no" >&6; }
35894 fi
35895
35896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35897 fi
35898
35899 if test "$wxUSE_FILE" = "yes"; then
35900
35901   for wx_func in fsync
35902   do
35903     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35904 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35905 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35906   echo $ECHO_N "(cached) $ECHO_C" >&6
35907 else
35908
35909         cat >conftest.$ac_ext <<_ACEOF
35910
35911             /* confdefs.h.  */
35912 _ACEOF
35913 cat confdefs.h >>conftest.$ac_ext
35914 cat >>conftest.$ac_ext <<_ACEOF
35915 /* end confdefs.h.  */
35916
35917
35918                 $ac_includes_default
35919
35920 int
35921 main ()
35922 {
35923
35924                 #ifndef $wx_func
35925                   &$wx_func;
35926                 #endif
35927
35928
35929   ;
35930   return 0;
35931 }
35932
35933 _ACEOF
35934 rm -f conftest.$ac_objext conftest$ac_exeext
35935 if { (ac_try="$ac_link"
35936 case "(($ac_try" in
35937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35938   *) ac_try_echo=$ac_try;;
35939 esac
35940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35941   (eval "$ac_link") 2>conftest.er1
35942   ac_status=$?
35943   grep -v '^ *+' conftest.er1 >conftest.err
35944   rm -f conftest.er1
35945   cat conftest.err >&5
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); } && {
35948          test -z "$ac_c_werror_flag" ||
35949          test ! -s conftest.err
35950        } && test -s conftest$ac_exeext &&
35951        $as_test_x conftest$ac_exeext; then
35952   eval wx_cv_func_$wx_func=yes
35953 else
35954   echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.$ac_ext >&5
35956
35957         eval wx_cv_func_$wx_func=no
35958 fi
35959
35960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35961       conftest$ac_exeext conftest.$ac_ext
35962
35963 fi
35964 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35965                { echo "$as_me:$LINENO: result: $ac_res" >&5
35966 echo "${ECHO_T}$ac_res" >&6; }
35967
35968     if eval test \$wx_cv_func_$wx_func = yes
35969     then
35970       cat >>confdefs.h <<_ACEOF
35971 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35972 _ACEOF
35973
35974
35975     else
35976       :
35977
35978     fi
35979   done
35980
35981 fi
35982
35983 ac_ext=cpp
35984 ac_cpp='$CXXCPP $CPPFLAGS'
35985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35988
35989
35990   for wx_func in round
35991   do
35992     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35993 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35994 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35995   echo $ECHO_N "(cached) $ECHO_C" >&6
35996 else
35997
35998         cat >conftest.$ac_ext <<_ACEOF
35999
36000             /* confdefs.h.  */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h.  */
36005
36006                 #include <math.h>
36007                 $ac_includes_default
36008
36009 int
36010 main ()
36011 {
36012
36013                 #ifndef $wx_func
36014                   &$wx_func;
36015                 #endif
36016
36017
36018   ;
36019   return 0;
36020 }
36021
36022 _ACEOF
36023 rm -f conftest.$ac_objext conftest$ac_exeext
36024 if { (ac_try="$ac_link"
36025 case "(($ac_try" in
36026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36027   *) ac_try_echo=$ac_try;;
36028 esac
36029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36030   (eval "$ac_link") 2>conftest.er1
36031   ac_status=$?
36032   grep -v '^ *+' conftest.er1 >conftest.err
36033   rm -f conftest.er1
36034   cat conftest.err >&5
36035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036   (exit $ac_status); } && {
36037          test -z "$ac_cxx_werror_flag" ||
36038          test ! -s conftest.err
36039        } && test -s conftest$ac_exeext &&
36040        $as_test_x conftest$ac_exeext; then
36041   eval wx_cv_func_$wx_func=yes
36042 else
36043   echo "$as_me: failed program was:" >&5
36044 sed 's/^/| /' conftest.$ac_ext >&5
36045
36046         eval wx_cv_func_$wx_func=no
36047 fi
36048
36049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36050       conftest$ac_exeext conftest.$ac_ext
36051
36052 fi
36053 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36054                { echo "$as_me:$LINENO: result: $ac_res" >&5
36055 echo "${ECHO_T}$ac_res" >&6; }
36056
36057     if eval test \$wx_cv_func_$wx_func = yes
36058     then
36059       cat >>confdefs.h <<_ACEOF
36060 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36061 _ACEOF
36062
36063
36064     else
36065       :
36066
36067     fi
36068   done
36069
36070 ac_ext=c
36071 ac_cpp='$CPP $CPPFLAGS'
36072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36075
36076
36077 if test "$TOOLKIT" != "MSW"; then
36078
36079 if test "$wxUSE_LIBICONV" != "no" ; then
36080
36081
36082
36083 # Check whether --with-libiconv-prefix was given.
36084 if test "${with_libiconv_prefix+set}" = set; then
36085   withval=$with_libiconv_prefix;
36086     for dir in `echo "$withval" | tr : ' '`; do
36087       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36088       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36089     done
36090
36091 fi
36092
36093
36094   { echo "$as_me:$LINENO: checking for iconv" >&5
36095 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36096 if test "${am_cv_func_iconv+set}" = set; then
36097   echo $ECHO_N "(cached) $ECHO_C" >&6
36098 else
36099
36100     am_cv_func_iconv="no, consider installing GNU libiconv"
36101     am_cv_lib_iconv=no
36102     cat >conftest.$ac_ext <<_ACEOF
36103 /* confdefs.h.  */
36104 _ACEOF
36105 cat confdefs.h >>conftest.$ac_ext
36106 cat >>conftest.$ac_ext <<_ACEOF
36107 /* end confdefs.h.  */
36108 #include <stdlib.h>
36109 #include <iconv.h>
36110 int
36111 main ()
36112 {
36113 iconv_t cd = iconv_open("","");
36114        iconv(cd,NULL,NULL,NULL,NULL);
36115        iconv_close(cd);
36116   ;
36117   return 0;
36118 }
36119 _ACEOF
36120 rm -f conftest.$ac_objext conftest$ac_exeext
36121 if { (ac_try="$ac_link"
36122 case "(($ac_try" in
36123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36124   *) ac_try_echo=$ac_try;;
36125 esac
36126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36127   (eval "$ac_link") 2>conftest.er1
36128   ac_status=$?
36129   grep -v '^ *+' conftest.er1 >conftest.err
36130   rm -f conftest.er1
36131   cat conftest.err >&5
36132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133   (exit $ac_status); } && {
36134          test -z "$ac_c_werror_flag" ||
36135          test ! -s conftest.err
36136        } && test -s conftest$ac_exeext &&
36137        $as_test_x conftest$ac_exeext; then
36138   am_cv_func_iconv=yes
36139 else
36140   echo "$as_me: failed program was:" >&5
36141 sed 's/^/| /' conftest.$ac_ext >&5
36142
36143
36144 fi
36145
36146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36147       conftest$ac_exeext conftest.$ac_ext
36148     if test "$am_cv_func_iconv" != yes; then
36149       am_save_LIBS="$LIBS"
36150       LIBS="$LIBS -liconv"
36151       cat >conftest.$ac_ext <<_ACEOF
36152 /* confdefs.h.  */
36153 _ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h.  */
36157 #include <stdlib.h>
36158 #include <iconv.h>
36159 int
36160 main ()
36161 {
36162 iconv_t cd = iconv_open("","");
36163          iconv(cd,NULL,NULL,NULL,NULL);
36164          iconv_close(cd);
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (ac_try="$ac_link"
36171 case "(($ac_try" in
36172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36173   *) ac_try_echo=$ac_try;;
36174 esac
36175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36176   (eval "$ac_link") 2>conftest.er1
36177   ac_status=$?
36178   grep -v '^ *+' conftest.er1 >conftest.err
36179   rm -f conftest.er1
36180   cat conftest.err >&5
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); } && {
36183          test -z "$ac_c_werror_flag" ||
36184          test ! -s conftest.err
36185        } && test -s conftest$ac_exeext &&
36186        $as_test_x conftest$ac_exeext; then
36187   am_cv_lib_iconv=yes
36188         am_cv_func_iconv=yes
36189 else
36190   echo "$as_me: failed program was:" >&5
36191 sed 's/^/| /' conftest.$ac_ext >&5
36192
36193
36194 fi
36195
36196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36197       conftest$ac_exeext conftest.$ac_ext
36198       LIBS="$am_save_LIBS"
36199     fi
36200
36201 fi
36202 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36203 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36204   if test "$am_cv_func_iconv" = yes; then
36205
36206 cat >>confdefs.h <<\_ACEOF
36207 #define HAVE_ICONV 1
36208 _ACEOF
36209
36210     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36211 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36212 if test "${wx_cv_func_iconv_const+set}" = set; then
36213   echo $ECHO_N "(cached) $ECHO_C" >&6
36214 else
36215   cat >conftest.$ac_ext <<_ACEOF
36216 /* confdefs.h.  */
36217 _ACEOF
36218 cat confdefs.h >>conftest.$ac_ext
36219 cat >>conftest.$ac_ext <<_ACEOF
36220 /* end confdefs.h.  */
36221
36222 #include <stdlib.h>
36223 #include <iconv.h>
36224 extern
36225 #ifdef __cplusplus
36226 "C"
36227 #endif
36228 #if defined(__STDC__) || defined(__cplusplus)
36229 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36230 #else
36231 size_t iconv();
36232 #endif
36233
36234 int
36235 main ()
36236 {
36237
36238   ;
36239   return 0;
36240 }
36241 _ACEOF
36242 rm -f conftest.$ac_objext
36243 if { (ac_try="$ac_compile"
36244 case "(($ac_try" in
36245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36246   *) ac_try_echo=$ac_try;;
36247 esac
36248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36249   (eval "$ac_compile") 2>conftest.er1
36250   ac_status=$?
36251   grep -v '^ *+' conftest.er1 >conftest.err
36252   rm -f conftest.er1
36253   cat conftest.err >&5
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); } && {
36256          test -z "$ac_c_werror_flag" ||
36257          test ! -s conftest.err
36258        } && test -s conftest.$ac_objext; then
36259   wx_cv_func_iconv_const="no"
36260 else
36261   echo "$as_me: failed program was:" >&5
36262 sed 's/^/| /' conftest.$ac_ext >&5
36263
36264         wx_cv_func_iconv_const="yes"
36265
36266 fi
36267
36268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36269
36270 fi
36271 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36272 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36273
36274     iconv_const=
36275     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36276         iconv_const="const"
36277     fi
36278
36279
36280 cat >>confdefs.h <<_ACEOF
36281 #define ICONV_CONST $iconv_const
36282 _ACEOF
36283
36284   fi
36285   LIBICONV=
36286   if test "$am_cv_lib_iconv" = yes; then
36287     LIBICONV="-liconv"
36288   fi
36289
36290
36291     LIBS="$LIBICONV $LIBS"
36292 fi
36293
36294 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36295
36296 for ac_func in sigaction
36297 do
36298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36302   echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36304   cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36312 #define $ac_func innocuous_$ac_func
36313
36314 /* System header to define __stub macros and hopefully few prototypes,
36315     which can conflict with char $ac_func (); below.
36316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36317     <limits.h> exists even on freestanding compilers.  */
36318
36319 #ifdef __STDC__
36320 # include <limits.h>
36321 #else
36322 # include <assert.h>
36323 #endif
36324
36325 #undef $ac_func
36326
36327 /* Override any GCC internal prototype to avoid an error.
36328    Use char because int might match the return type of a GCC
36329    builtin and then its argument prototype would still apply.  */
36330 #ifdef __cplusplus
36331 extern "C"
36332 #endif
36333 char $ac_func ();
36334 /* The GNU C library defines this for functions which it implements
36335     to always fail with ENOSYS.  Some functions are actually named
36336     something starting with __ and the normal name is an alias.  */
36337 #if defined __stub_$ac_func || defined __stub___$ac_func
36338 choke me
36339 #endif
36340
36341 int
36342 main ()
36343 {
36344 return $ac_func ();
36345   ;
36346   return 0;
36347 }
36348 _ACEOF
36349 rm -f conftest.$ac_objext conftest$ac_exeext
36350 if { (ac_try="$ac_link"
36351 case "(($ac_try" in
36352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36353   *) ac_try_echo=$ac_try;;
36354 esac
36355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36356   (eval "$ac_link") 2>conftest.er1
36357   ac_status=$?
36358   grep -v '^ *+' conftest.er1 >conftest.err
36359   rm -f conftest.er1
36360   cat conftest.err >&5
36361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362   (exit $ac_status); } && {
36363          test -z "$ac_c_werror_flag" ||
36364          test ! -s conftest.err
36365        } && test -s conftest$ac_exeext &&
36366        $as_test_x conftest$ac_exeext; then
36367   eval "$as_ac_var=yes"
36368 else
36369   echo "$as_me: failed program was:" >&5
36370 sed 's/^/| /' conftest.$ac_ext >&5
36371
36372         eval "$as_ac_var=no"
36373 fi
36374
36375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36376       conftest$ac_exeext conftest.$ac_ext
36377 fi
36378 ac_res=`eval echo '${'$as_ac_var'}'`
36379                { echo "$as_me:$LINENO: result: $ac_res" >&5
36380 echo "${ECHO_T}$ac_res" >&6; }
36381 if test `eval echo '${'$as_ac_var'}'` = yes; then
36382   cat >>confdefs.h <<_ACEOF
36383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36384 _ACEOF
36385
36386 fi
36387 done
36388
36389
36390     if test "$ac_cv_func_sigaction" = "no"; then
36391         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36392 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36393         wxUSE_ON_FATAL_EXCEPTION=no
36394     fi
36395
36396     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36397       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36398 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36399 if test "${wx_cv_type_sa_handler+set}" = set; then
36400   echo $ECHO_N "(cached) $ECHO_C" >&6
36401 else
36402
36403                 ac_ext=cpp
36404 ac_cpp='$CXXCPP $CPPFLAGS'
36405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36408
36409         cat >conftest.$ac_ext <<_ACEOF
36410 /* confdefs.h.  */
36411 _ACEOF
36412 cat confdefs.h >>conftest.$ac_ext
36413 cat >>conftest.$ac_ext <<_ACEOF
36414 /* end confdefs.h.  */
36415 #include <signal.h>
36416 int
36417 main ()
36418 {
36419
36420                         extern void testSigHandler(int);
36421
36422                         struct sigaction sa;
36423                         sa.sa_handler = testSigHandler;
36424
36425   ;
36426   return 0;
36427 }
36428 _ACEOF
36429 rm -f conftest.$ac_objext
36430 if { (ac_try="$ac_compile"
36431 case "(($ac_try" in
36432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36433   *) ac_try_echo=$ac_try;;
36434 esac
36435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36436   (eval "$ac_compile") 2>conftest.er1
36437   ac_status=$?
36438   grep -v '^ *+' conftest.er1 >conftest.err
36439   rm -f conftest.er1
36440   cat conftest.err >&5
36441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442   (exit $ac_status); } && {
36443          test -z "$ac_cxx_werror_flag" ||
36444          test ! -s conftest.err
36445        } && test -s conftest.$ac_objext; then
36446
36447                         wx_cv_type_sa_handler=int
36448
36449 else
36450   echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.$ac_ext >&5
36452
36453
36454                         wx_cv_type_sa_handler=void
36455
36456 fi
36457
36458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36459         ac_ext=c
36460 ac_cpp='$CPP $CPPFLAGS'
36461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36464
36465
36466 fi
36467 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36468 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36469
36470       cat >>confdefs.h <<_ACEOF
36471 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36472 _ACEOF
36473
36474     fi
36475 fi
36476
36477 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36478     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36479 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36480 if test "${wx_cv_func_backtrace+set}" = set; then
36481   echo $ECHO_N "(cached) $ECHO_C" >&6
36482 else
36483
36484             ac_ext=cpp
36485 ac_cpp='$CXXCPP $CPPFLAGS'
36486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36489
36490             cat >conftest.$ac_ext <<_ACEOF
36491 /* confdefs.h.  */
36492 _ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h.  */
36496 #include <execinfo.h>
36497 int
36498 main ()
36499 {
36500
36501                     void *trace[1];
36502                     char **messages;
36503
36504                     backtrace(trace, 1);
36505                     messages = backtrace_symbols(trace, 1);
36506
36507   ;
36508   return 0;
36509 }
36510 _ACEOF
36511 rm -f conftest.$ac_objext
36512 if { (ac_try="$ac_compile"
36513 case "(($ac_try" in
36514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36515   *) ac_try_echo=$ac_try;;
36516 esac
36517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36518   (eval "$ac_compile") 2>conftest.er1
36519   ac_status=$?
36520   grep -v '^ *+' conftest.er1 >conftest.err
36521   rm -f conftest.er1
36522   cat conftest.err >&5
36523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524   (exit $ac_status); } && {
36525          test -z "$ac_cxx_werror_flag" ||
36526          test ! -s conftest.err
36527        } && test -s conftest.$ac_objext; then
36528   wx_cv_func_backtrace=yes
36529 else
36530   echo "$as_me: failed program was:" >&5
36531 sed 's/^/| /' conftest.$ac_ext >&5
36532
36533         wx_cv_func_backtrace=no
36534
36535 fi
36536
36537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36538             ac_ext=c
36539 ac_cpp='$CPP $CPPFLAGS'
36540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36543
36544
36545
36546 fi
36547 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36548 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36549
36550
36551     if test "$wx_cv_func_backtrace" = "no"; then
36552         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36553 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36554         wxUSE_STACKWALKER=no
36555     else
36556         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36557 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36558 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36559   echo $ECHO_N "(cached) $ECHO_C" >&6
36560 else
36561
36562                 ac_ext=cpp
36563 ac_cpp='$CXXCPP $CPPFLAGS'
36564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36567
36568                 cat >conftest.$ac_ext <<_ACEOF
36569 /* confdefs.h.  */
36570 _ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h.  */
36574 #include <cxxabi.h>
36575 int
36576 main ()
36577 {
36578
36579                         int rc;
36580                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36581
36582   ;
36583   return 0;
36584 }
36585 _ACEOF
36586 rm -f conftest.$ac_objext conftest$ac_exeext
36587 if { (ac_try="$ac_link"
36588 case "(($ac_try" in
36589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36590   *) ac_try_echo=$ac_try;;
36591 esac
36592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36593   (eval "$ac_link") 2>conftest.er1
36594   ac_status=$?
36595   grep -v '^ *+' conftest.er1 >conftest.err
36596   rm -f conftest.er1
36597   cat conftest.err >&5
36598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599   (exit $ac_status); } && {
36600          test -z "$ac_cxx_werror_flag" ||
36601          test ! -s conftest.err
36602        } && test -s conftest$ac_exeext &&
36603        $as_test_x conftest$ac_exeext; then
36604   wx_cv_func_cxa_demangle=yes
36605 else
36606   echo "$as_me: failed program was:" >&5
36607 sed 's/^/| /' conftest.$ac_ext >&5
36608
36609         wx_cv_func_cxa_demangle=no
36610
36611 fi
36612
36613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36614       conftest$ac_exeext conftest.$ac_ext
36615                 ac_ext=c
36616 ac_cpp='$CPP $CPPFLAGS'
36617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36620
36621
36622
36623 fi
36624 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36625 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36626
36627         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36628             cat >>confdefs.h <<\_ACEOF
36629 #define HAVE_CXA_DEMANGLE 1
36630 _ACEOF
36631
36632         fi
36633     fi
36634 fi
36635
36636 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36637     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36638 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36639     wxUSE_STACKWALKER=no
36640 fi
36641
36642
36643
36644
36645 for ac_func in mkstemp mktemp
36646 do
36647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36651   echo $ECHO_N "(cached) $ECHO_C" >&6
36652 else
36653   cat >conftest.$ac_ext <<_ACEOF
36654 /* confdefs.h.  */
36655 _ACEOF
36656 cat confdefs.h >>conftest.$ac_ext
36657 cat >>conftest.$ac_ext <<_ACEOF
36658 /* end confdefs.h.  */
36659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36661 #define $ac_func innocuous_$ac_func
36662
36663 /* System header to define __stub macros and hopefully few prototypes,
36664     which can conflict with char $ac_func (); below.
36665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36666     <limits.h> exists even on freestanding compilers.  */
36667
36668 #ifdef __STDC__
36669 # include <limits.h>
36670 #else
36671 # include <assert.h>
36672 #endif
36673
36674 #undef $ac_func
36675
36676 /* Override any GCC internal prototype to avoid an error.
36677    Use char because int might match the return type of a GCC
36678    builtin and then its argument prototype would still apply.  */
36679 #ifdef __cplusplus
36680 extern "C"
36681 #endif
36682 char $ac_func ();
36683 /* The GNU C library defines this for functions which it implements
36684     to always fail with ENOSYS.  Some functions are actually named
36685     something starting with __ and the normal name is an alias.  */
36686 #if defined __stub_$ac_func || defined __stub___$ac_func
36687 choke me
36688 #endif
36689
36690 int
36691 main ()
36692 {
36693 return $ac_func ();
36694   ;
36695   return 0;
36696 }
36697 _ACEOF
36698 rm -f conftest.$ac_objext conftest$ac_exeext
36699 if { (ac_try="$ac_link"
36700 case "(($ac_try" in
36701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36702   *) ac_try_echo=$ac_try;;
36703 esac
36704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36705   (eval "$ac_link") 2>conftest.er1
36706   ac_status=$?
36707   grep -v '^ *+' conftest.er1 >conftest.err
36708   rm -f conftest.er1
36709   cat conftest.err >&5
36710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711   (exit $ac_status); } && {
36712          test -z "$ac_c_werror_flag" ||
36713          test ! -s conftest.err
36714        } && test -s conftest$ac_exeext &&
36715        $as_test_x conftest$ac_exeext; then
36716   eval "$as_ac_var=yes"
36717 else
36718   echo "$as_me: failed program was:" >&5
36719 sed 's/^/| /' conftest.$ac_ext >&5
36720
36721         eval "$as_ac_var=no"
36722 fi
36723
36724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36725       conftest$ac_exeext conftest.$ac_ext
36726 fi
36727 ac_res=`eval echo '${'$as_ac_var'}'`
36728                { echo "$as_me:$LINENO: result: $ac_res" >&5
36729 echo "${ECHO_T}$ac_res" >&6; }
36730 if test `eval echo '${'$as_ac_var'}'` = yes; then
36731   cat >>confdefs.h <<_ACEOF
36732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36733 _ACEOF
36734  break
36735 fi
36736 done
36737
36738
36739 { echo "$as_me:$LINENO: checking for statfs" >&5
36740 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36741 if test "${wx_cv_func_statfs+set}" = set; then
36742   echo $ECHO_N "(cached) $ECHO_C" >&6
36743 else
36744   cat >conftest.$ac_ext <<_ACEOF
36745 /* confdefs.h.  */
36746 _ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h.  */
36750
36751              #if defined(__BSD__)
36752              #include <sys/param.h>
36753              #include <sys/mount.h>
36754              #else
36755              #include <sys/vfs.h>
36756              #endif
36757
36758 int
36759 main ()
36760 {
36761
36762              long l;
36763              struct statfs fs;
36764              statfs("/", &fs);
36765              l = fs.f_bsize;
36766              l += fs.f_blocks;
36767              l += fs.f_bavail;
36768
36769   ;
36770   return 0;
36771 }
36772 _ACEOF
36773 rm -f conftest.$ac_objext
36774 if { (ac_try="$ac_compile"
36775 case "(($ac_try" in
36776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36777   *) ac_try_echo=$ac_try;;
36778 esac
36779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36780   (eval "$ac_compile") 2>conftest.er1
36781   ac_status=$?
36782   grep -v '^ *+' conftest.er1 >conftest.err
36783   rm -f conftest.er1
36784   cat conftest.err >&5
36785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786   (exit $ac_status); } && {
36787          test -z "$ac_c_werror_flag" ||
36788          test ! -s conftest.err
36789        } && test -s conftest.$ac_objext; then
36790   wx_cv_func_statfs=yes
36791 else
36792   echo "$as_me: failed program was:" >&5
36793 sed 's/^/| /' conftest.$ac_ext >&5
36794
36795         wx_cv_func_statfs=no
36796
36797 fi
36798
36799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36800
36801 fi
36802 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36803 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36804
36805 if test "$wx_cv_func_statfs" = "yes"; then
36806         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36807 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36808 if test "${wx_cv_func_statfs_decl+set}" = set; then
36809   echo $ECHO_N "(cached) $ECHO_C" >&6
36810 else
36811   ac_ext=cpp
36812 ac_cpp='$CXXCPP $CPPFLAGS'
36813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36816
36817         cat >conftest.$ac_ext <<_ACEOF
36818 /* confdefs.h.  */
36819 _ACEOF
36820 cat confdefs.h >>conftest.$ac_ext
36821 cat >>conftest.$ac_ext <<_ACEOF
36822 /* end confdefs.h.  */
36823
36824                  #if defined(__BSD__)
36825                  #include <sys/param.h>
36826                  #include <sys/mount.h>
36827                  #else
36828                  #include <sys/vfs.h>
36829                  #endif
36830
36831 int
36832 main ()
36833 {
36834
36835                 struct statfs fs;
36836                 statfs("", &fs);
36837
36838   ;
36839   return 0;
36840 }
36841 _ACEOF
36842 rm -f conftest.$ac_objext
36843 if { (ac_try="$ac_compile"
36844 case "(($ac_try" in
36845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846   *) ac_try_echo=$ac_try;;
36847 esac
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849   (eval "$ac_compile") 2>conftest.er1
36850   ac_status=$?
36851   grep -v '^ *+' conftest.er1 >conftest.err
36852   rm -f conftest.er1
36853   cat conftest.err >&5
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); } && {
36856          test -z "$ac_cxx_werror_flag" ||
36857          test ! -s conftest.err
36858        } && test -s conftest.$ac_objext; then
36859   wx_cv_func_statfs_decl=yes
36860 else
36861   echo "$as_me: failed program was:" >&5
36862 sed 's/^/| /' conftest.$ac_ext >&5
36863
36864         wx_cv_func_statfs_decl=no
36865
36866 fi
36867
36868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36869         ac_ext=c
36870 ac_cpp='$CPP $CPPFLAGS'
36871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36874
36875
36876 fi
36877 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36878 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36879
36880     if test "$wx_cv_func_statfs_decl" = "yes"; then
36881         cat >>confdefs.h <<\_ACEOF
36882 #define HAVE_STATFS_DECL 1
36883 _ACEOF
36884
36885     fi
36886
36887     wx_cv_type_statvfs_t="struct statfs"
36888     cat >>confdefs.h <<\_ACEOF
36889 #define HAVE_STATFS 1
36890 _ACEOF
36891
36892 else
36893     { echo "$as_me:$LINENO: checking for statvfs" >&5
36894 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36895 if test "${wx_cv_func_statvfs+set}" = set; then
36896   echo $ECHO_N "(cached) $ECHO_C" >&6
36897 else
36898   cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h.  */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h.  */
36904
36905                 #include <stddef.h>
36906                 #include <sys/statvfs.h>
36907
36908 int
36909 main ()
36910 {
36911
36912                 statvfs("/", NULL);
36913
36914   ;
36915   return 0;
36916 }
36917 _ACEOF
36918 rm -f conftest.$ac_objext
36919 if { (ac_try="$ac_compile"
36920 case "(($ac_try" in
36921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36922   *) ac_try_echo=$ac_try;;
36923 esac
36924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36925   (eval "$ac_compile") 2>conftest.er1
36926   ac_status=$?
36927   grep -v '^ *+' conftest.er1 >conftest.err
36928   rm -f conftest.er1
36929   cat conftest.err >&5
36930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931   (exit $ac_status); } && {
36932          test -z "$ac_c_werror_flag" ||
36933          test ! -s conftest.err
36934        } && test -s conftest.$ac_objext; then
36935   wx_cv_func_statvfs=yes
36936 else
36937   echo "$as_me: failed program was:" >&5
36938 sed 's/^/| /' conftest.$ac_ext >&5
36939
36940         wx_cv_func_statvfs=no
36941
36942 fi
36943
36944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36945
36946 fi
36947 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36948 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36949
36950     if test "$wx_cv_func_statvfs" = "yes"; then
36951                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36952 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36953 if test "${wx_cv_type_statvfs_t+set}" = set; then
36954   echo $ECHO_N "(cached) $ECHO_C" >&6
36955 else
36956   ac_ext=cpp
36957 ac_cpp='$CXXCPP $CPPFLAGS'
36958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36961
36962             cat >conftest.$ac_ext <<_ACEOF
36963 /* confdefs.h.  */
36964 _ACEOF
36965 cat confdefs.h >>conftest.$ac_ext
36966 cat >>conftest.$ac_ext <<_ACEOF
36967 /* end confdefs.h.  */
36968
36969                     #include <sys/statvfs.h>
36970
36971 int
36972 main ()
36973 {
36974
36975                     long l;
36976                     statvfs_t fs;
36977                     statvfs("/", &fs);
36978                     l = fs.f_bsize;
36979                     l += fs.f_blocks;
36980                     l += fs.f_bavail;
36981
36982   ;
36983   return 0;
36984 }
36985 _ACEOF
36986 rm -f conftest.$ac_objext
36987 if { (ac_try="$ac_compile"
36988 case "(($ac_try" in
36989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36990   *) ac_try_echo=$ac_try;;
36991 esac
36992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36993   (eval "$ac_compile") 2>conftest.er1
36994   ac_status=$?
36995   grep -v '^ *+' conftest.er1 >conftest.err
36996   rm -f conftest.er1
36997   cat conftest.err >&5
36998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999   (exit $ac_status); } && {
37000          test -z "$ac_cxx_werror_flag" ||
37001          test ! -s conftest.err
37002        } && test -s conftest.$ac_objext; then
37003   wx_cv_type_statvfs_t=statvfs_t
37004 else
37005   echo "$as_me: failed program was:" >&5
37006 sed 's/^/| /' conftest.$ac_ext >&5
37007
37008
37009                     cat >conftest.$ac_ext <<_ACEOF
37010 /* confdefs.h.  */
37011 _ACEOF
37012 cat confdefs.h >>conftest.$ac_ext
37013 cat >>conftest.$ac_ext <<_ACEOF
37014 /* end confdefs.h.  */
37015
37016                             #include <sys/statvfs.h>
37017
37018 int
37019 main ()
37020 {
37021
37022                             long l;
37023                             struct statvfs fs;
37024                             statvfs("/", &fs);
37025                             l = fs.f_bsize;
37026                             l += fs.f_blocks;
37027                             l += fs.f_bavail;
37028
37029   ;
37030   return 0;
37031 }
37032 _ACEOF
37033 rm -f conftest.$ac_objext
37034 if { (ac_try="$ac_compile"
37035 case "(($ac_try" in
37036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37037   *) ac_try_echo=$ac_try;;
37038 esac
37039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37040   (eval "$ac_compile") 2>conftest.er1
37041   ac_status=$?
37042   grep -v '^ *+' conftest.er1 >conftest.err
37043   rm -f conftest.er1
37044   cat conftest.err >&5
37045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046   (exit $ac_status); } && {
37047          test -z "$ac_cxx_werror_flag" ||
37048          test ! -s conftest.err
37049        } && test -s conftest.$ac_objext; then
37050   wx_cv_type_statvfs_t="struct statvfs"
37051 else
37052   echo "$as_me: failed program was:" >&5
37053 sed 's/^/| /' conftest.$ac_ext >&5
37054
37055         wx_cv_type_statvfs_t="unknown"
37056
37057 fi
37058
37059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37060
37061
37062 fi
37063
37064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37065             ac_ext=c
37066 ac_cpp='$CPP $CPPFLAGS'
37067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37070
37071
37072 fi
37073 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37074 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37075
37076         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37077             cat >>confdefs.h <<\_ACEOF
37078 #define HAVE_STATVFS 1
37079 _ACEOF
37080
37081         fi
37082     else
37083                 wx_cv_type_statvfs_t="unknown"
37084     fi
37085 fi
37086
37087 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37088     cat >>confdefs.h <<_ACEOF
37089 #define WX_STATFS_T $wx_cv_type_statvfs_t
37090 _ACEOF
37091
37092 else
37093     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37094 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37095 fi
37096
37097 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37098
37099
37100 for ac_func in fcntl flock
37101 do
37102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37106   echo $ECHO_N "(cached) $ECHO_C" >&6
37107 else
37108   cat >conftest.$ac_ext <<_ACEOF
37109 /* confdefs.h.  */
37110 _ACEOF
37111 cat confdefs.h >>conftest.$ac_ext
37112 cat >>conftest.$ac_ext <<_ACEOF
37113 /* end confdefs.h.  */
37114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37116 #define $ac_func innocuous_$ac_func
37117
37118 /* System header to define __stub macros and hopefully few prototypes,
37119     which can conflict with char $ac_func (); below.
37120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37121     <limits.h> exists even on freestanding compilers.  */
37122
37123 #ifdef __STDC__
37124 # include <limits.h>
37125 #else
37126 # include <assert.h>
37127 #endif
37128
37129 #undef $ac_func
37130
37131 /* Override any GCC internal prototype to avoid an error.
37132    Use char because int might match the return type of a GCC
37133    builtin and then its argument prototype would still apply.  */
37134 #ifdef __cplusplus
37135 extern "C"
37136 #endif
37137 char $ac_func ();
37138 /* The GNU C library defines this for functions which it implements
37139     to always fail with ENOSYS.  Some functions are actually named
37140     something starting with __ and the normal name is an alias.  */
37141 #if defined __stub_$ac_func || defined __stub___$ac_func
37142 choke me
37143 #endif
37144
37145 int
37146 main ()
37147 {
37148 return $ac_func ();
37149   ;
37150   return 0;
37151 }
37152 _ACEOF
37153 rm -f conftest.$ac_objext conftest$ac_exeext
37154 if { (ac_try="$ac_link"
37155 case "(($ac_try" in
37156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37157   *) ac_try_echo=$ac_try;;
37158 esac
37159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37160   (eval "$ac_link") 2>conftest.er1
37161   ac_status=$?
37162   grep -v '^ *+' conftest.er1 >conftest.err
37163   rm -f conftest.er1
37164   cat conftest.err >&5
37165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166   (exit $ac_status); } && {
37167          test -z "$ac_c_werror_flag" ||
37168          test ! -s conftest.err
37169        } && test -s conftest$ac_exeext &&
37170        $as_test_x conftest$ac_exeext; then
37171   eval "$as_ac_var=yes"
37172 else
37173   echo "$as_me: failed program was:" >&5
37174 sed 's/^/| /' conftest.$ac_ext >&5
37175
37176         eval "$as_ac_var=no"
37177 fi
37178
37179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37180       conftest$ac_exeext conftest.$ac_ext
37181 fi
37182 ac_res=`eval echo '${'$as_ac_var'}'`
37183                { echo "$as_me:$LINENO: result: $ac_res" >&5
37184 echo "${ECHO_T}$ac_res" >&6; }
37185 if test `eval echo '${'$as_ac_var'}'` = yes; then
37186   cat >>confdefs.h <<_ACEOF
37187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37188 _ACEOF
37189  break
37190 fi
37191 done
37192
37193
37194     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37195         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37196 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37197         wxUSE_SNGLINST_CHECKER=no
37198     fi
37199 fi
37200
37201
37202
37203 for ac_func in setenv putenv
37204 do
37205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37209   echo $ECHO_N "(cached) $ECHO_C" >&6
37210 else
37211   cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h.  */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h.  */
37217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37219 #define $ac_func innocuous_$ac_func
37220
37221 /* System header to define __stub macros and hopefully few prototypes,
37222     which can conflict with char $ac_func (); below.
37223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37224     <limits.h> exists even on freestanding compilers.  */
37225
37226 #ifdef __STDC__
37227 # include <limits.h>
37228 #else
37229 # include <assert.h>
37230 #endif
37231
37232 #undef $ac_func
37233
37234 /* Override any GCC internal prototype to avoid an error.
37235    Use char because int might match the return type of a GCC
37236    builtin and then its argument prototype would still apply.  */
37237 #ifdef __cplusplus
37238 extern "C"
37239 #endif
37240 char $ac_func ();
37241 /* The GNU C library defines this for functions which it implements
37242     to always fail with ENOSYS.  Some functions are actually named
37243     something starting with __ and the normal name is an alias.  */
37244 #if defined __stub_$ac_func || defined __stub___$ac_func
37245 choke me
37246 #endif
37247
37248 int
37249 main ()
37250 {
37251 return $ac_func ();
37252   ;
37253   return 0;
37254 }
37255 _ACEOF
37256 rm -f conftest.$ac_objext conftest$ac_exeext
37257 if { (ac_try="$ac_link"
37258 case "(($ac_try" in
37259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37260   *) ac_try_echo=$ac_try;;
37261 esac
37262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37263   (eval "$ac_link") 2>conftest.er1
37264   ac_status=$?
37265   grep -v '^ *+' conftest.er1 >conftest.err
37266   rm -f conftest.er1
37267   cat conftest.err >&5
37268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269   (exit $ac_status); } && {
37270          test -z "$ac_c_werror_flag" ||
37271          test ! -s conftest.err
37272        } && test -s conftest$ac_exeext &&
37273        $as_test_x conftest$ac_exeext; then
37274   eval "$as_ac_var=yes"
37275 else
37276   echo "$as_me: failed program was:" >&5
37277 sed 's/^/| /' conftest.$ac_ext >&5
37278
37279         eval "$as_ac_var=no"
37280 fi
37281
37282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37283       conftest$ac_exeext conftest.$ac_ext
37284 fi
37285 ac_res=`eval echo '${'$as_ac_var'}'`
37286                { echo "$as_me:$LINENO: result: $ac_res" >&5
37287 echo "${ECHO_T}$ac_res" >&6; }
37288 if test `eval echo '${'$as_ac_var'}'` = yes; then
37289   cat >>confdefs.h <<_ACEOF
37290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37291 _ACEOF
37292  break
37293 fi
37294 done
37295
37296 if test "$ac_cv_func_setenv" = "yes"; then
37297
37298 for ac_func in unsetenv
37299 do
37300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37304   echo $ECHO_N "(cached) $ECHO_C" >&6
37305 else
37306   cat >conftest.$ac_ext <<_ACEOF
37307 /* confdefs.h.  */
37308 _ACEOF
37309 cat confdefs.h >>conftest.$ac_ext
37310 cat >>conftest.$ac_ext <<_ACEOF
37311 /* end confdefs.h.  */
37312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37314 #define $ac_func innocuous_$ac_func
37315
37316 /* System header to define __stub macros and hopefully few prototypes,
37317     which can conflict with char $ac_func (); below.
37318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37319     <limits.h> exists even on freestanding compilers.  */
37320
37321 #ifdef __STDC__
37322 # include <limits.h>
37323 #else
37324 # include <assert.h>
37325 #endif
37326
37327 #undef $ac_func
37328
37329 /* Override any GCC internal prototype to avoid an error.
37330    Use char because int might match the return type of a GCC
37331    builtin and then its argument prototype would still apply.  */
37332 #ifdef __cplusplus
37333 extern "C"
37334 #endif
37335 char $ac_func ();
37336 /* The GNU C library defines this for functions which it implements
37337     to always fail with ENOSYS.  Some functions are actually named
37338     something starting with __ and the normal name is an alias.  */
37339 #if defined __stub_$ac_func || defined __stub___$ac_func
37340 choke me
37341 #endif
37342
37343 int
37344 main ()
37345 {
37346 return $ac_func ();
37347   ;
37348   return 0;
37349 }
37350 _ACEOF
37351 rm -f conftest.$ac_objext conftest$ac_exeext
37352 if { (ac_try="$ac_link"
37353 case "(($ac_try" in
37354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37355   *) ac_try_echo=$ac_try;;
37356 esac
37357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37358   (eval "$ac_link") 2>conftest.er1
37359   ac_status=$?
37360   grep -v '^ *+' conftest.er1 >conftest.err
37361   rm -f conftest.er1
37362   cat conftest.err >&5
37363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364   (exit $ac_status); } && {
37365          test -z "$ac_c_werror_flag" ||
37366          test ! -s conftest.err
37367        } && test -s conftest$ac_exeext &&
37368        $as_test_x conftest$ac_exeext; then
37369   eval "$as_ac_var=yes"
37370 else
37371   echo "$as_me: failed program was:" >&5
37372 sed 's/^/| /' conftest.$ac_ext >&5
37373
37374         eval "$as_ac_var=no"
37375 fi
37376
37377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37378       conftest$ac_exeext conftest.$ac_ext
37379 fi
37380 ac_res=`eval echo '${'$as_ac_var'}'`
37381                { echo "$as_me:$LINENO: result: $ac_res" >&5
37382 echo "${ECHO_T}$ac_res" >&6; }
37383 if test `eval echo '${'$as_ac_var'}'` = yes; then
37384   cat >>confdefs.h <<_ACEOF
37385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37386 _ACEOF
37387
37388 fi
37389 done
37390
37391 fi
37392
37393 HAVE_SOME_SLEEP_FUNC=0
37394 if test "$USE_BEOS" = 1; then
37395             cat >>confdefs.h <<\_ACEOF
37396 #define HAVE_SLEEP 1
37397 _ACEOF
37398
37399     HAVE_SOME_SLEEP_FUNC=1
37400 fi
37401
37402 if test "$USE_DARWIN" = 1; then
37403             cat >>confdefs.h <<\_ACEOF
37404 #define HAVE_USLEEP 1
37405 _ACEOF
37406
37407     HAVE_SOME_SLEEP_FUNC=1
37408 fi
37409
37410 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37411         POSIX4_LINK=
37412
37413 for ac_func in nanosleep
37414 do
37415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37419   echo $ECHO_N "(cached) $ECHO_C" >&6
37420 else
37421   cat >conftest.$ac_ext <<_ACEOF
37422 /* confdefs.h.  */
37423 _ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h.  */
37427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37429 #define $ac_func innocuous_$ac_func
37430
37431 /* System header to define __stub macros and hopefully few prototypes,
37432     which can conflict with char $ac_func (); below.
37433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37434     <limits.h> exists even on freestanding compilers.  */
37435
37436 #ifdef __STDC__
37437 # include <limits.h>
37438 #else
37439 # include <assert.h>
37440 #endif
37441
37442 #undef $ac_func
37443
37444 /* Override any GCC internal prototype to avoid an error.
37445    Use char because int might match the return type of a GCC
37446    builtin and then its argument prototype would still apply.  */
37447 #ifdef __cplusplus
37448 extern "C"
37449 #endif
37450 char $ac_func ();
37451 /* The GNU C library defines this for functions which it implements
37452     to always fail with ENOSYS.  Some functions are actually named
37453     something starting with __ and the normal name is an alias.  */
37454 #if defined __stub_$ac_func || defined __stub___$ac_func
37455 choke me
37456 #endif
37457
37458 int
37459 main ()
37460 {
37461 return $ac_func ();
37462   ;
37463   return 0;
37464 }
37465 _ACEOF
37466 rm -f conftest.$ac_objext conftest$ac_exeext
37467 if { (ac_try="$ac_link"
37468 case "(($ac_try" in
37469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37470   *) ac_try_echo=$ac_try;;
37471 esac
37472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37473   (eval "$ac_link") 2>conftest.er1
37474   ac_status=$?
37475   grep -v '^ *+' conftest.er1 >conftest.err
37476   rm -f conftest.er1
37477   cat conftest.err >&5
37478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479   (exit $ac_status); } && {
37480          test -z "$ac_c_werror_flag" ||
37481          test ! -s conftest.err
37482        } && test -s conftest$ac_exeext &&
37483        $as_test_x conftest$ac_exeext; then
37484   eval "$as_ac_var=yes"
37485 else
37486   echo "$as_me: failed program was:" >&5
37487 sed 's/^/| /' conftest.$ac_ext >&5
37488
37489         eval "$as_ac_var=no"
37490 fi
37491
37492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37493       conftest$ac_exeext conftest.$ac_ext
37494 fi
37495 ac_res=`eval echo '${'$as_ac_var'}'`
37496                { echo "$as_me:$LINENO: result: $ac_res" >&5
37497 echo "${ECHO_T}$ac_res" >&6; }
37498 if test `eval echo '${'$as_ac_var'}'` = yes; then
37499   cat >>confdefs.h <<_ACEOF
37500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37501 _ACEOF
37502  cat >>confdefs.h <<\_ACEOF
37503 #define HAVE_NANOSLEEP 1
37504 _ACEOF
37505
37506 else
37507
37508             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37509 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37510 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37511   echo $ECHO_N "(cached) $ECHO_C" >&6
37512 else
37513   ac_check_lib_save_LIBS=$LIBS
37514 LIBS="-lposix4  $LIBS"
37515 cat >conftest.$ac_ext <<_ACEOF
37516 /* confdefs.h.  */
37517 _ACEOF
37518 cat confdefs.h >>conftest.$ac_ext
37519 cat >>conftest.$ac_ext <<_ACEOF
37520 /* end confdefs.h.  */
37521
37522 /* Override any GCC internal prototype to avoid an error.
37523    Use char because int might match the return type of a GCC
37524    builtin and then its argument prototype would still apply.  */
37525 #ifdef __cplusplus
37526 extern "C"
37527 #endif
37528 char nanosleep ();
37529 int
37530 main ()
37531 {
37532 return nanosleep ();
37533   ;
37534   return 0;
37535 }
37536 _ACEOF
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541   *) ac_try_echo=$ac_try;;
37542 esac
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544   (eval "$ac_link") 2>conftest.er1
37545   ac_status=$?
37546   grep -v '^ *+' conftest.er1 >conftest.err
37547   rm -f conftest.er1
37548   cat conftest.err >&5
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); } && {
37551          test -z "$ac_c_werror_flag" ||
37552          test ! -s conftest.err
37553        } && test -s conftest$ac_exeext &&
37554        $as_test_x conftest$ac_exeext; then
37555   ac_cv_lib_posix4_nanosleep=yes
37556 else
37557   echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37559
37560         ac_cv_lib_posix4_nanosleep=no
37561 fi
37562
37563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37564       conftest$ac_exeext conftest.$ac_ext
37565 LIBS=$ac_check_lib_save_LIBS
37566 fi
37567 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37568 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37569 if test $ac_cv_lib_posix4_nanosleep = yes; then
37570
37571                     cat >>confdefs.h <<\_ACEOF
37572 #define HAVE_NANOSLEEP 1
37573 _ACEOF
37574
37575                     POSIX4_LINK=" -lposix4"
37576
37577 else
37578
37579
37580   for wx_func in usleep
37581   do
37582     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37583 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37584 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37585   echo $ECHO_N "(cached) $ECHO_C" >&6
37586 else
37587
37588         cat >conftest.$ac_ext <<_ACEOF
37589
37590             /* confdefs.h.  */
37591 _ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h.  */
37595
37596
37597                 $ac_includes_default
37598
37599 int
37600 main ()
37601 {
37602
37603                 #ifndef $wx_func
37604                   &$wx_func;
37605                 #endif
37606
37607
37608   ;
37609   return 0;
37610 }
37611
37612 _ACEOF
37613 rm -f conftest.$ac_objext conftest$ac_exeext
37614 if { (ac_try="$ac_link"
37615 case "(($ac_try" in
37616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37617   *) ac_try_echo=$ac_try;;
37618 esac
37619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37620   (eval "$ac_link") 2>conftest.er1
37621   ac_status=$?
37622   grep -v '^ *+' conftest.er1 >conftest.err
37623   rm -f conftest.er1
37624   cat conftest.err >&5
37625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626   (exit $ac_status); } && {
37627          test -z "$ac_c_werror_flag" ||
37628          test ! -s conftest.err
37629        } && test -s conftest$ac_exeext &&
37630        $as_test_x conftest$ac_exeext; then
37631   eval wx_cv_func_$wx_func=yes
37632 else
37633   echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636         eval wx_cv_func_$wx_func=no
37637 fi
37638
37639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37640       conftest$ac_exeext conftest.$ac_ext
37641
37642 fi
37643 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37644                { echo "$as_me:$LINENO: result: $ac_res" >&5
37645 echo "${ECHO_T}$ac_res" >&6; }
37646
37647     if eval test \$wx_cv_func_$wx_func = yes
37648     then
37649       cat >>confdefs.h <<_ACEOF
37650 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37651 _ACEOF
37652
37653
37654     else
37655       :
37656       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37657 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37658
37659     fi
37660   done
37661
37662
37663
37664 fi
37665
37666
37667
37668 fi
37669 done
37670
37671 fi
37672
37673
37674   for wx_func in uname
37675   do
37676     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37677 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37678 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37679   echo $ECHO_N "(cached) $ECHO_C" >&6
37680 else
37681
37682         cat >conftest.$ac_ext <<_ACEOF
37683
37684             /* confdefs.h.  */
37685 _ACEOF
37686 cat confdefs.h >>conftest.$ac_ext
37687 cat >>conftest.$ac_ext <<_ACEOF
37688 /* end confdefs.h.  */
37689
37690                 #include <sys/utsname.h>
37691                 $ac_includes_default
37692
37693 int
37694 main ()
37695 {
37696
37697                 #ifndef $wx_func
37698                   &$wx_func;
37699                 #endif
37700
37701
37702   ;
37703   return 0;
37704 }
37705
37706 _ACEOF
37707 rm -f conftest.$ac_objext conftest$ac_exeext
37708 if { (ac_try="$ac_link"
37709 case "(($ac_try" in
37710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37711   *) ac_try_echo=$ac_try;;
37712 esac
37713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37714   (eval "$ac_link") 2>conftest.er1
37715   ac_status=$?
37716   grep -v '^ *+' conftest.er1 >conftest.err
37717   rm -f conftest.er1
37718   cat conftest.err >&5
37719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720   (exit $ac_status); } && {
37721          test -z "$ac_c_werror_flag" ||
37722          test ! -s conftest.err
37723        } && test -s conftest$ac_exeext &&
37724        $as_test_x conftest$ac_exeext; then
37725   eval wx_cv_func_$wx_func=yes
37726 else
37727   echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37729
37730         eval wx_cv_func_$wx_func=no
37731 fi
37732
37733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37734       conftest$ac_exeext conftest.$ac_ext
37735
37736 fi
37737 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37738                { echo "$as_me:$LINENO: result: $ac_res" >&5
37739 echo "${ECHO_T}$ac_res" >&6; }
37740
37741     if eval test \$wx_cv_func_$wx_func = yes
37742     then
37743       cat >>confdefs.h <<_ACEOF
37744 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37745 _ACEOF
37746
37747
37748     else
37749       :
37750
37751     fi
37752   done
37753
37754 if test "$wx_cv_func_uname" != yes; then
37755
37756   for wx_func in gethostname
37757   do
37758     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37759 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37760 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37761   echo $ECHO_N "(cached) $ECHO_C" >&6
37762 else
37763
37764         cat >conftest.$ac_ext <<_ACEOF
37765
37766             /* confdefs.h.  */
37767 _ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h.  */
37771
37772
37773                 $ac_includes_default
37774
37775 int
37776 main ()
37777 {
37778
37779                 #ifndef $wx_func
37780                   &$wx_func;
37781                 #endif
37782
37783
37784   ;
37785   return 0;
37786 }
37787
37788 _ACEOF
37789 rm -f conftest.$ac_objext conftest$ac_exeext
37790 if { (ac_try="$ac_link"
37791 case "(($ac_try" in
37792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37793   *) ac_try_echo=$ac_try;;
37794 esac
37795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37796   (eval "$ac_link") 2>conftest.er1
37797   ac_status=$?
37798   grep -v '^ *+' conftest.er1 >conftest.err
37799   rm -f conftest.er1
37800   cat conftest.err >&5
37801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802   (exit $ac_status); } && {
37803          test -z "$ac_c_werror_flag" ||
37804          test ! -s conftest.err
37805        } && test -s conftest$ac_exeext &&
37806        $as_test_x conftest$ac_exeext; then
37807   eval wx_cv_func_$wx_func=yes
37808 else
37809   echo "$as_me: failed program was:" >&5
37810 sed 's/^/| /' conftest.$ac_ext >&5
37811
37812         eval wx_cv_func_$wx_func=no
37813 fi
37814
37815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37816       conftest$ac_exeext conftest.$ac_ext
37817
37818 fi
37819 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37820                { echo "$as_me:$LINENO: result: $ac_res" >&5
37821 echo "${ECHO_T}$ac_res" >&6; }
37822
37823     if eval test \$wx_cv_func_$wx_func = yes
37824     then
37825       cat >>confdefs.h <<_ACEOF
37826 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37827 _ACEOF
37828
37829
37830     else
37831       :
37832
37833     fi
37834   done
37835
37836 fi
37837
37838
37839   for wx_func in strtok_r
37840   do
37841     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37842 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37843 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37844   echo $ECHO_N "(cached) $ECHO_C" >&6
37845 else
37846
37847         cat >conftest.$ac_ext <<_ACEOF
37848
37849             /* confdefs.h.  */
37850 _ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h.  */
37854
37855                 #define _REENTRANT
37856                 $ac_includes_default
37857
37858 int
37859 main ()
37860 {
37861
37862                 #ifndef $wx_func
37863                   &$wx_func;
37864                 #endif
37865
37866
37867   ;
37868   return 0;
37869 }
37870
37871 _ACEOF
37872 rm -f conftest.$ac_objext conftest$ac_exeext
37873 if { (ac_try="$ac_link"
37874 case "(($ac_try" in
37875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37876   *) ac_try_echo=$ac_try;;
37877 esac
37878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37879   (eval "$ac_link") 2>conftest.er1
37880   ac_status=$?
37881   grep -v '^ *+' conftest.er1 >conftest.err
37882   rm -f conftest.er1
37883   cat conftest.err >&5
37884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885   (exit $ac_status); } && {
37886          test -z "$ac_c_werror_flag" ||
37887          test ! -s conftest.err
37888        } && test -s conftest$ac_exeext &&
37889        $as_test_x conftest$ac_exeext; then
37890   eval wx_cv_func_$wx_func=yes
37891 else
37892   echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37894
37895         eval wx_cv_func_$wx_func=no
37896 fi
37897
37898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37899       conftest$ac_exeext conftest.$ac_ext
37900
37901 fi
37902 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37903                { echo "$as_me:$LINENO: result: $ac_res" >&5
37904 echo "${ECHO_T}$ac_res" >&6; }
37905
37906     if eval test \$wx_cv_func_$wx_func = yes
37907     then
37908       cat >>confdefs.h <<_ACEOF
37909 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37910 _ACEOF
37911
37912
37913     else
37914       :
37915
37916     fi
37917   done
37918
37919
37920 INET_LINK=
37921
37922 for ac_func in inet_addr
37923 do
37924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37928   echo $ECHO_N "(cached) $ECHO_C" >&6
37929 else
37930   cat >conftest.$ac_ext <<_ACEOF
37931 /* confdefs.h.  */
37932 _ACEOF
37933 cat confdefs.h >>conftest.$ac_ext
37934 cat >>conftest.$ac_ext <<_ACEOF
37935 /* end confdefs.h.  */
37936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37938 #define $ac_func innocuous_$ac_func
37939
37940 /* System header to define __stub macros and hopefully few prototypes,
37941     which can conflict with char $ac_func (); below.
37942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37943     <limits.h> exists even on freestanding compilers.  */
37944
37945 #ifdef __STDC__
37946 # include <limits.h>
37947 #else
37948 # include <assert.h>
37949 #endif
37950
37951 #undef $ac_func
37952
37953 /* Override any GCC internal prototype to avoid an error.
37954    Use char because int might match the return type of a GCC
37955    builtin and then its argument prototype would still apply.  */
37956 #ifdef __cplusplus
37957 extern "C"
37958 #endif
37959 char $ac_func ();
37960 /* The GNU C library defines this for functions which it implements
37961     to always fail with ENOSYS.  Some functions are actually named
37962     something starting with __ and the normal name is an alias.  */
37963 #if defined __stub_$ac_func || defined __stub___$ac_func
37964 choke me
37965 #endif
37966
37967 int
37968 main ()
37969 {
37970 return $ac_func ();
37971   ;
37972   return 0;
37973 }
37974 _ACEOF
37975 rm -f conftest.$ac_objext conftest$ac_exeext
37976 if { (ac_try="$ac_link"
37977 case "(($ac_try" in
37978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37979   *) ac_try_echo=$ac_try;;
37980 esac
37981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37982   (eval "$ac_link") 2>conftest.er1
37983   ac_status=$?
37984   grep -v '^ *+' conftest.er1 >conftest.err
37985   rm -f conftest.er1
37986   cat conftest.err >&5
37987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988   (exit $ac_status); } && {
37989          test -z "$ac_c_werror_flag" ||
37990          test ! -s conftest.err
37991        } && test -s conftest$ac_exeext &&
37992        $as_test_x conftest$ac_exeext; then
37993   eval "$as_ac_var=yes"
37994 else
37995   echo "$as_me: failed program was:" >&5
37996 sed 's/^/| /' conftest.$ac_ext >&5
37997
37998         eval "$as_ac_var=no"
37999 fi
38000
38001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38002       conftest$ac_exeext conftest.$ac_ext
38003 fi
38004 ac_res=`eval echo '${'$as_ac_var'}'`
38005                { echo "$as_me:$LINENO: result: $ac_res" >&5
38006 echo "${ECHO_T}$ac_res" >&6; }
38007 if test `eval echo '${'$as_ac_var'}'` = yes; then
38008   cat >>confdefs.h <<_ACEOF
38009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38010 _ACEOF
38011  cat >>confdefs.h <<\_ACEOF
38012 #define HAVE_INET_ADDR 1
38013 _ACEOF
38014
38015 else
38016
38017         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38018 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38019 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38020   echo $ECHO_N "(cached) $ECHO_C" >&6
38021 else
38022   ac_check_lib_save_LIBS=$LIBS
38023 LIBS="-lnsl  $LIBS"
38024 cat >conftest.$ac_ext <<_ACEOF
38025 /* confdefs.h.  */
38026 _ACEOF
38027 cat confdefs.h >>conftest.$ac_ext
38028 cat >>conftest.$ac_ext <<_ACEOF
38029 /* end confdefs.h.  */
38030
38031 /* Override any GCC internal prototype to avoid an error.
38032    Use char because int might match the return type of a GCC
38033    builtin and then its argument prototype would still apply.  */
38034 #ifdef __cplusplus
38035 extern "C"
38036 #endif
38037 char inet_addr ();
38038 int
38039 main ()
38040 {
38041 return inet_addr ();
38042   ;
38043   return 0;
38044 }
38045 _ACEOF
38046 rm -f conftest.$ac_objext conftest$ac_exeext
38047 if { (ac_try="$ac_link"
38048 case "(($ac_try" in
38049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38050   *) ac_try_echo=$ac_try;;
38051 esac
38052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38053   (eval "$ac_link") 2>conftest.er1
38054   ac_status=$?
38055   grep -v '^ *+' conftest.er1 >conftest.err
38056   rm -f conftest.er1
38057   cat conftest.err >&5
38058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059   (exit $ac_status); } && {
38060          test -z "$ac_c_werror_flag" ||
38061          test ! -s conftest.err
38062        } && test -s conftest$ac_exeext &&
38063        $as_test_x conftest$ac_exeext; then
38064   ac_cv_lib_nsl_inet_addr=yes
38065 else
38066   echo "$as_me: failed program was:" >&5
38067 sed 's/^/| /' conftest.$ac_ext >&5
38068
38069         ac_cv_lib_nsl_inet_addr=no
38070 fi
38071
38072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38073       conftest$ac_exeext conftest.$ac_ext
38074 LIBS=$ac_check_lib_save_LIBS
38075 fi
38076 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38077 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38078 if test $ac_cv_lib_nsl_inet_addr = yes; then
38079   INET_LINK="nsl"
38080 else
38081
38082                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38083 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38084 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38085   echo $ECHO_N "(cached) $ECHO_C" >&6
38086 else
38087   ac_check_lib_save_LIBS=$LIBS
38088 LIBS="-lresolv  $LIBS"
38089 cat >conftest.$ac_ext <<_ACEOF
38090 /* confdefs.h.  */
38091 _ACEOF
38092 cat confdefs.h >>conftest.$ac_ext
38093 cat >>conftest.$ac_ext <<_ACEOF
38094 /* end confdefs.h.  */
38095
38096 /* Override any GCC internal prototype to avoid an error.
38097    Use char because int might match the return type of a GCC
38098    builtin and then its argument prototype would still apply.  */
38099 #ifdef __cplusplus
38100 extern "C"
38101 #endif
38102 char inet_addr ();
38103 int
38104 main ()
38105 {
38106 return inet_addr ();
38107   ;
38108   return 0;
38109 }
38110 _ACEOF
38111 rm -f conftest.$ac_objext conftest$ac_exeext
38112 if { (ac_try="$ac_link"
38113 case "(($ac_try" in
38114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38115   *) ac_try_echo=$ac_try;;
38116 esac
38117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38118   (eval "$ac_link") 2>conftest.er1
38119   ac_status=$?
38120   grep -v '^ *+' conftest.er1 >conftest.err
38121   rm -f conftest.er1
38122   cat conftest.err >&5
38123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124   (exit $ac_status); } && {
38125          test -z "$ac_c_werror_flag" ||
38126          test ! -s conftest.err
38127        } && test -s conftest$ac_exeext &&
38128        $as_test_x conftest$ac_exeext; then
38129   ac_cv_lib_resolv_inet_addr=yes
38130 else
38131   echo "$as_me: failed program was:" >&5
38132 sed 's/^/| /' conftest.$ac_ext >&5
38133
38134         ac_cv_lib_resolv_inet_addr=no
38135 fi
38136
38137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38138       conftest$ac_exeext conftest.$ac_ext
38139 LIBS=$ac_check_lib_save_LIBS
38140 fi
38141 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38142 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38143 if test $ac_cv_lib_resolv_inet_addr = yes; then
38144   INET_LINK="resolv"
38145 else
38146
38147                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38148 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38149 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38150   echo $ECHO_N "(cached) $ECHO_C" >&6
38151 else
38152   ac_check_lib_save_LIBS=$LIBS
38153 LIBS="-lsocket  $LIBS"
38154 cat >conftest.$ac_ext <<_ACEOF
38155 /* confdefs.h.  */
38156 _ACEOF
38157 cat confdefs.h >>conftest.$ac_ext
38158 cat >>conftest.$ac_ext <<_ACEOF
38159 /* end confdefs.h.  */
38160
38161 /* Override any GCC internal prototype to avoid an error.
38162    Use char because int might match the return type of a GCC
38163    builtin and then its argument prototype would still apply.  */
38164 #ifdef __cplusplus
38165 extern "C"
38166 #endif
38167 char inet_addr ();
38168 int
38169 main ()
38170 {
38171 return inet_addr ();
38172   ;
38173   return 0;
38174 }
38175 _ACEOF
38176 rm -f conftest.$ac_objext conftest$ac_exeext
38177 if { (ac_try="$ac_link"
38178 case "(($ac_try" in
38179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38180   *) ac_try_echo=$ac_try;;
38181 esac
38182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38183   (eval "$ac_link") 2>conftest.er1
38184   ac_status=$?
38185   grep -v '^ *+' conftest.er1 >conftest.err
38186   rm -f conftest.er1
38187   cat conftest.err >&5
38188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38189   (exit $ac_status); } && {
38190          test -z "$ac_c_werror_flag" ||
38191          test ! -s conftest.err
38192        } && test -s conftest$ac_exeext &&
38193        $as_test_x conftest$ac_exeext; then
38194   ac_cv_lib_socket_inet_addr=yes
38195 else
38196   echo "$as_me: failed program was:" >&5
38197 sed 's/^/| /' conftest.$ac_ext >&5
38198
38199         ac_cv_lib_socket_inet_addr=no
38200 fi
38201
38202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38203       conftest$ac_exeext conftest.$ac_ext
38204 LIBS=$ac_check_lib_save_LIBS
38205 fi
38206 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38207 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38208 if test $ac_cv_lib_socket_inet_addr = yes; then
38209   INET_LINK="socket"
38210
38211 fi
38212
38213
38214
38215 fi
38216
38217
38218
38219 fi
38220
38221
38222
38223 fi
38224 done
38225
38226
38227
38228 for ac_func in inet_aton
38229 do
38230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38234   echo $ECHO_N "(cached) $ECHO_C" >&6
38235 else
38236   cat >conftest.$ac_ext <<_ACEOF
38237 /* confdefs.h.  */
38238 _ACEOF
38239 cat confdefs.h >>conftest.$ac_ext
38240 cat >>conftest.$ac_ext <<_ACEOF
38241 /* end confdefs.h.  */
38242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38244 #define $ac_func innocuous_$ac_func
38245
38246 /* System header to define __stub macros and hopefully few prototypes,
38247     which can conflict with char $ac_func (); below.
38248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38249     <limits.h> exists even on freestanding compilers.  */
38250
38251 #ifdef __STDC__
38252 # include <limits.h>
38253 #else
38254 # include <assert.h>
38255 #endif
38256
38257 #undef $ac_func
38258
38259 /* Override any GCC internal prototype to avoid an error.
38260    Use char because int might match the return type of a GCC
38261    builtin and then its argument prototype would still apply.  */
38262 #ifdef __cplusplus
38263 extern "C"
38264 #endif
38265 char $ac_func ();
38266 /* The GNU C library defines this for functions which it implements
38267     to always fail with ENOSYS.  Some functions are actually named
38268     something starting with __ and the normal name is an alias.  */
38269 #if defined __stub_$ac_func || defined __stub___$ac_func
38270 choke me
38271 #endif
38272
38273 int
38274 main ()
38275 {
38276 return $ac_func ();
38277   ;
38278   return 0;
38279 }
38280 _ACEOF
38281 rm -f conftest.$ac_objext conftest$ac_exeext
38282 if { (ac_try="$ac_link"
38283 case "(($ac_try" in
38284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38285   *) ac_try_echo=$ac_try;;
38286 esac
38287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38288   (eval "$ac_link") 2>conftest.er1
38289   ac_status=$?
38290   grep -v '^ *+' conftest.er1 >conftest.err
38291   rm -f conftest.er1
38292   cat conftest.err >&5
38293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294   (exit $ac_status); } && {
38295          test -z "$ac_c_werror_flag" ||
38296          test ! -s conftest.err
38297        } && test -s conftest$ac_exeext &&
38298        $as_test_x conftest$ac_exeext; then
38299   eval "$as_ac_var=yes"
38300 else
38301   echo "$as_me: failed program was:" >&5
38302 sed 's/^/| /' conftest.$ac_ext >&5
38303
38304         eval "$as_ac_var=no"
38305 fi
38306
38307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38308       conftest$ac_exeext conftest.$ac_ext
38309 fi
38310 ac_res=`eval echo '${'$as_ac_var'}'`
38311                { echo "$as_me:$LINENO: result: $ac_res" >&5
38312 echo "${ECHO_T}$ac_res" >&6; }
38313 if test `eval echo '${'$as_ac_var'}'` = yes; then
38314   cat >>confdefs.h <<_ACEOF
38315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38316 _ACEOF
38317  cat >>confdefs.h <<\_ACEOF
38318 #define HAVE_INET_ATON 1
38319 _ACEOF
38320
38321 else
38322
38323                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38324 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38325 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38326 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38327   echo $ECHO_N "(cached) $ECHO_C" >&6
38328 else
38329   ac_check_lib_save_LIBS=$LIBS
38330 LIBS="-l$INET_LINK  $LIBS"
38331 cat >conftest.$ac_ext <<_ACEOF
38332 /* confdefs.h.  */
38333 _ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h.  */
38337
38338 /* Override any GCC internal prototype to avoid an error.
38339    Use char because int might match the return type of a GCC
38340    builtin and then its argument prototype would still apply.  */
38341 #ifdef __cplusplus
38342 extern "C"
38343 #endif
38344 char inet_aton ();
38345 int
38346 main ()
38347 {
38348 return inet_aton ();
38349   ;
38350   return 0;
38351 }
38352 _ACEOF
38353 rm -f conftest.$ac_objext conftest$ac_exeext
38354 if { (ac_try="$ac_link"
38355 case "(($ac_try" in
38356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38357   *) ac_try_echo=$ac_try;;
38358 esac
38359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38360   (eval "$ac_link") 2>conftest.er1
38361   ac_status=$?
38362   grep -v '^ *+' conftest.er1 >conftest.err
38363   rm -f conftest.er1
38364   cat conftest.err >&5
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); } && {
38367          test -z "$ac_c_werror_flag" ||
38368          test ! -s conftest.err
38369        } && test -s conftest$ac_exeext &&
38370        $as_test_x conftest$ac_exeext; then
38371   eval "$as_ac_Lib=yes"
38372 else
38373   echo "$as_me: failed program was:" >&5
38374 sed 's/^/| /' conftest.$ac_ext >&5
38375
38376         eval "$as_ac_Lib=no"
38377 fi
38378
38379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38380       conftest$ac_exeext conftest.$ac_ext
38381 LIBS=$ac_check_lib_save_LIBS
38382 fi
38383 ac_res=`eval echo '${'$as_ac_Lib'}'`
38384                { echo "$as_me:$LINENO: result: $ac_res" >&5
38385 echo "${ECHO_T}$ac_res" >&6; }
38386 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38387   cat >>confdefs.h <<\_ACEOF
38388 #define HAVE_INET_ATON 1
38389 _ACEOF
38390
38391 fi
38392
38393
38394 fi
38395 done
38396
38397
38398 if test "x$INET_LINK" != "x"; then
38399     cat >>confdefs.h <<\_ACEOF
38400 #define HAVE_INET_ADDR 1
38401 _ACEOF
38402
38403     INET_LINK=" -l$INET_LINK"
38404 fi
38405
38406
38407   for wx_func in fdopen
38408   do
38409     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38410 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38411 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38412   echo $ECHO_N "(cached) $ECHO_C" >&6
38413 else
38414
38415         cat >conftest.$ac_ext <<_ACEOF
38416
38417             /* confdefs.h.  */
38418 _ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h.  */
38422
38423
38424                 $ac_includes_default
38425
38426 int
38427 main ()
38428 {
38429
38430                 #ifndef $wx_func
38431                   &$wx_func;
38432                 #endif
38433
38434
38435   ;
38436   return 0;
38437 }
38438
38439 _ACEOF
38440 rm -f conftest.$ac_objext conftest$ac_exeext
38441 if { (ac_try="$ac_link"
38442 case "(($ac_try" in
38443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38444   *) ac_try_echo=$ac_try;;
38445 esac
38446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38447   (eval "$ac_link") 2>conftest.er1
38448   ac_status=$?
38449   grep -v '^ *+' conftest.er1 >conftest.err
38450   rm -f conftest.er1
38451   cat conftest.err >&5
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); } && {
38454          test -z "$ac_c_werror_flag" ||
38455          test ! -s conftest.err
38456        } && test -s conftest$ac_exeext &&
38457        $as_test_x conftest$ac_exeext; then
38458   eval wx_cv_func_$wx_func=yes
38459 else
38460   echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.$ac_ext >&5
38462
38463         eval wx_cv_func_$wx_func=no
38464 fi
38465
38466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38467       conftest$ac_exeext conftest.$ac_ext
38468
38469 fi
38470 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38471                { echo "$as_me:$LINENO: result: $ac_res" >&5
38472 echo "${ECHO_T}$ac_res" >&6; }
38473
38474     if eval test \$wx_cv_func_$wx_func = yes
38475     then
38476       cat >>confdefs.h <<_ACEOF
38477 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38478 _ACEOF
38479
38480
38481     else
38482       :
38483
38484     fi
38485   done
38486
38487
38488 if test "$wxUSE_TARSTREAM" = "yes"; then
38489
38490   for wx_func in sysconf
38491   do
38492     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38493 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38494 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38495   echo $ECHO_N "(cached) $ECHO_C" >&6
38496 else
38497
38498         cat >conftest.$ac_ext <<_ACEOF
38499
38500             /* confdefs.h.  */
38501 _ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h.  */
38505
38506
38507                 $ac_includes_default
38508
38509 int
38510 main ()
38511 {
38512
38513                 #ifndef $wx_func
38514                   &$wx_func;
38515                 #endif
38516
38517
38518   ;
38519   return 0;
38520 }
38521
38522 _ACEOF
38523 rm -f conftest.$ac_objext conftest$ac_exeext
38524 if { (ac_try="$ac_link"
38525 case "(($ac_try" in
38526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38527   *) ac_try_echo=$ac_try;;
38528 esac
38529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38530   (eval "$ac_link") 2>conftest.er1
38531   ac_status=$?
38532   grep -v '^ *+' conftest.er1 >conftest.err
38533   rm -f conftest.er1
38534   cat conftest.err >&5
38535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536   (exit $ac_status); } && {
38537          test -z "$ac_c_werror_flag" ||
38538          test ! -s conftest.err
38539        } && test -s conftest$ac_exeext &&
38540        $as_test_x conftest$ac_exeext; then
38541   eval wx_cv_func_$wx_func=yes
38542 else
38543   echo "$as_me: failed program was:" >&5
38544 sed 's/^/| /' conftest.$ac_ext >&5
38545
38546         eval wx_cv_func_$wx_func=no
38547 fi
38548
38549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38550       conftest$ac_exeext conftest.$ac_ext
38551
38552 fi
38553 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38554                { echo "$as_me:$LINENO: result: $ac_res" >&5
38555 echo "${ECHO_T}$ac_res" >&6; }
38556
38557     if eval test \$wx_cv_func_$wx_func = yes
38558     then
38559       cat >>confdefs.h <<_ACEOF
38560 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38561 _ACEOF
38562
38563
38564     else
38565       :
38566
38567     fi
38568   done
38569
38570
38571
38572   for wx_func in getpwuid_r
38573   do
38574     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38575 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38576 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38577   echo $ECHO_N "(cached) $ECHO_C" >&6
38578 else
38579
38580         cat >conftest.$ac_ext <<_ACEOF
38581
38582             /* confdefs.h.  */
38583 _ACEOF
38584 cat confdefs.h >>conftest.$ac_ext
38585 cat >>conftest.$ac_ext <<_ACEOF
38586 /* end confdefs.h.  */
38587
38588
38589                     #define _REENTRANT
38590                     #include <pwd.h>
38591
38592                 $ac_includes_default
38593
38594 int
38595 main ()
38596 {
38597
38598                 #ifndef $wx_func
38599                   &$wx_func;
38600                 #endif
38601
38602                     struct passwd pw, *ppw;
38603                     char buf[1024];
38604                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38605
38606
38607   ;
38608   return 0;
38609 }
38610
38611 _ACEOF
38612 rm -f conftest.$ac_objext conftest$ac_exeext
38613 if { (ac_try="$ac_link"
38614 case "(($ac_try" in
38615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38616   *) ac_try_echo=$ac_try;;
38617 esac
38618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38619   (eval "$ac_link") 2>conftest.er1
38620   ac_status=$?
38621   grep -v '^ *+' conftest.er1 >conftest.err
38622   rm -f conftest.er1
38623   cat conftest.err >&5
38624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625   (exit $ac_status); } && {
38626          test -z "$ac_c_werror_flag" ||
38627          test ! -s conftest.err
38628        } && test -s conftest$ac_exeext &&
38629        $as_test_x conftest$ac_exeext; then
38630   eval wx_cv_func_$wx_func=yes
38631 else
38632   echo "$as_me: failed program was:" >&5
38633 sed 's/^/| /' conftest.$ac_ext >&5
38634
38635         eval wx_cv_func_$wx_func=no
38636 fi
38637
38638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38639       conftest$ac_exeext conftest.$ac_ext
38640
38641 fi
38642 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38643                { echo "$as_me:$LINENO: result: $ac_res" >&5
38644 echo "${ECHO_T}$ac_res" >&6; }
38645
38646     if eval test \$wx_cv_func_$wx_func = yes
38647     then
38648       cat >>confdefs.h <<_ACEOF
38649 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38650 _ACEOF
38651
38652
38653     else
38654       :
38655
38656     fi
38657   done
38658
38659
38660
38661   for wx_func in getgrgid_r
38662   do
38663     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38664 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38665 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38666   echo $ECHO_N "(cached) $ECHO_C" >&6
38667 else
38668
38669         cat >conftest.$ac_ext <<_ACEOF
38670
38671             /* confdefs.h.  */
38672 _ACEOF
38673 cat confdefs.h >>conftest.$ac_ext
38674 cat >>conftest.$ac_ext <<_ACEOF
38675 /* end confdefs.h.  */
38676
38677
38678                     #define _REENTRANT
38679                     #include <grp.h>
38680
38681                 $ac_includes_default
38682
38683 int
38684 main ()
38685 {
38686
38687                 #ifndef $wx_func
38688                   &$wx_func;
38689                 #endif
38690
38691                     struct group grp, *pgrp;
38692                     char buf[1024];
38693                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38694
38695
38696   ;
38697   return 0;
38698 }
38699
38700 _ACEOF
38701 rm -f conftest.$ac_objext conftest$ac_exeext
38702 if { (ac_try="$ac_link"
38703 case "(($ac_try" in
38704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38705   *) ac_try_echo=$ac_try;;
38706 esac
38707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38708   (eval "$ac_link") 2>conftest.er1
38709   ac_status=$?
38710   grep -v '^ *+' conftest.er1 >conftest.err
38711   rm -f conftest.er1
38712   cat conftest.err >&5
38713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714   (exit $ac_status); } && {
38715          test -z "$ac_c_werror_flag" ||
38716          test ! -s conftest.err
38717        } && test -s conftest$ac_exeext &&
38718        $as_test_x conftest$ac_exeext; then
38719   eval wx_cv_func_$wx_func=yes
38720 else
38721   echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38723
38724         eval wx_cv_func_$wx_func=no
38725 fi
38726
38727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38728       conftest$ac_exeext conftest.$ac_ext
38729
38730 fi
38731 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38732                { echo "$as_me:$LINENO: result: $ac_res" >&5
38733 echo "${ECHO_T}$ac_res" >&6; }
38734
38735     if eval test \$wx_cv_func_$wx_func = yes
38736     then
38737       cat >>confdefs.h <<_ACEOF
38738 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38739 _ACEOF
38740
38741
38742     else
38743       :
38744
38745     fi
38746   done
38747
38748 fi
38749
38750 fi
38751
38752
38753
38754 cat >confcache <<\_ACEOF
38755 # This file is a shell script that caches the results of configure
38756 # tests run on this system so they can be shared between configure
38757 # scripts and configure runs, see configure's option --config-cache.
38758 # It is not useful on other systems.  If it contains results you don't
38759 # want to keep, you may remove or edit it.
38760 #
38761 # config.status only pays attention to the cache file if you give it
38762 # the --recheck option to rerun configure.
38763 #
38764 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38765 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38766 # following values.
38767
38768 _ACEOF
38769
38770 # The following way of writing the cache mishandles newlines in values,
38771 # but we know of no workaround that is simple, portable, and efficient.
38772 # So, we kill variables containing newlines.
38773 # Ultrix sh set writes to stderr and can't be redirected directly,
38774 # and sets the high bit in the cache file unless we assign to the vars.
38775 (
38776   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38777     eval ac_val=\$$ac_var
38778     case $ac_val in #(
38779     *${as_nl}*)
38780       case $ac_var in #(
38781       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38783       esac
38784       case $ac_var in #(
38785       _ | IFS | as_nl) ;; #(
38786       *) $as_unset $ac_var ;;
38787       esac ;;
38788     esac
38789   done
38790
38791   (set) 2>&1 |
38792     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38793     *${as_nl}ac_space=\ *)
38794       # `set' does not quote correctly, so add quotes (double-quote
38795       # substitution turns \\\\ into \\, and sed turns \\ into \).
38796       sed -n \
38797         "s/'/'\\\\''/g;
38798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38799       ;; #(
38800     *)
38801       # `set' quotes correctly as required by POSIX, so do not add quotes.
38802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38803       ;;
38804     esac |
38805     sort
38806 ) |
38807   sed '
38808      /^ac_cv_env_/b end
38809      t clear
38810      :clear
38811      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38812      t end
38813      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38814      :end' >>confcache
38815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38816   if test -w "$cache_file"; then
38817     test "x$cache_file" != "x/dev/null" &&
38818       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38819 echo "$as_me: updating cache $cache_file" >&6;}
38820     cat confcache >$cache_file
38821   else
38822     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38823 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38824   fi
38825 fi
38826 rm -f confcache
38827
38828
38829 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38830
38831
38832     THREADS_LINK=
38833     THREADS_CFLAGS=
38834
38835     if test "$wxUSE_THREADS" = "yes" ; then
38836         if test "$USE_BEOS" = 1; then
38837             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38838 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38839             wxUSE_THREADS="no"
38840         fi
38841     fi
38842
38843     if test "$wxUSE_THREADS" = "yes" ; then
38844
38845
38846                                 THREAD_OPTS="-pthread"
38847         if test "x$SUNCXX" = xyes; then
38848             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38849         fi
38850
38851         case "${host}" in
38852           *-*-solaris2* | *-*-sunos4* )
38853                 if test "x$GCC" = "xyes"; then
38854                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38855                 fi
38856                 ;;
38857           *-*-freebsd*)
38858                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38859                 ;;
38860           *-*-darwin* | *-*-cygwin* )
38861                                                 THREAD_OPTS=""
38862                 ;;
38863           *-*-aix*)
38864                                 THREAD_OPTS="pthreads"
38865                 ;;
38866           *-hp-hpux* )
38867                 if test "x$GCC" = "xyes"; then
38868                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38869                         THREAD_OPTS=""
38870                 else
38871                                                             THREAD_OPTS="-mt"
38872                 fi
38873                 ;;
38874
38875           *-*-irix* )
38876                                                                 if test "x$GCC" = "xyes"; then
38877                     THREAD_OPTS=""
38878                 fi
38879                 ;;
38880
38881           *-*-*UnixWare*)
38882                                 if test "x$GCC" != "xyes"; then
38883                     THREAD_OPTS="-Ethread"
38884                 fi
38885                 ;;
38886         esac
38887
38888                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38889
38890                 THREADS_OK=no
38891         for flag in $THREAD_OPTS; do
38892             case $flag in
38893                 none)
38894                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38895 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38896                     ;;
38897
38898                 -*)
38899                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38900 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38901                     THREADS_CFLAGS="$flag"
38902                     ;;
38903
38904                 *)
38905                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38906 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38907                     THREADS_LINK="-l$flag"
38908                     ;;
38909               esac
38910
38911               save_LIBS="$LIBS"
38912               save_CFLAGS="$CFLAGS"
38913               LIBS="$THREADS_LINK $LIBS"
38914               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38915
38916               cat >conftest.$ac_ext <<_ACEOF
38917 /* confdefs.h.  */
38918 _ACEOF
38919 cat confdefs.h >>conftest.$ac_ext
38920 cat >>conftest.$ac_ext <<_ACEOF
38921 /* end confdefs.h.  */
38922 #include <pthread.h>
38923 int
38924 main ()
38925 {
38926 pthread_create(0,0,0,0);
38927   ;
38928   return 0;
38929 }
38930 _ACEOF
38931 rm -f conftest.$ac_objext conftest$ac_exeext
38932 if { (ac_try="$ac_link"
38933 case "(($ac_try" in
38934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38935   *) ac_try_echo=$ac_try;;
38936 esac
38937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38938   (eval "$ac_link") 2>conftest.er1
38939   ac_status=$?
38940   grep -v '^ *+' conftest.er1 >conftest.err
38941   rm -f conftest.er1
38942   cat conftest.err >&5
38943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944   (exit $ac_status); } && {
38945          test -z "$ac_c_werror_flag" ||
38946          test ! -s conftest.err
38947        } && test -s conftest$ac_exeext &&
38948        $as_test_x conftest$ac_exeext; then
38949   THREADS_OK=yes
38950 else
38951   echo "$as_me: failed program was:" >&5
38952 sed 's/^/| /' conftest.$ac_ext >&5
38953
38954
38955 fi
38956
38957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38958       conftest$ac_exeext conftest.$ac_ext
38959
38960               LIBS="$save_LIBS"
38961               CFLAGS="$save_CFLAGS"
38962
38963               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38964 echo "${ECHO_T}$THREADS_OK" >&6; }
38965               if test "x$THREADS_OK" = "xyes"; then
38966                       break;
38967               fi
38968
38969               THREADS_LINK=""
38970               THREADS_CFLAGS=""
38971       done
38972
38973       if test "x$THREADS_OK" != "xyes"; then
38974           wxUSE_THREADS=no
38975           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38976 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38977       else
38978                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38979           LIBS="$THREADS_LINK $LIBS"
38980
38981           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38982 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38983           flag=no
38984           case "${host}" in
38985             *-aix*)
38986                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38987                 flag="-D_THREAD_SAFE"
38988                 ;;
38989             *-freebsd*)
38990                 flag="-D_THREAD_SAFE"
38991                 ;;
38992             *-hp-hpux* )
38993                 flag="-D_REENTRANT"
38994                 if test "x$GCC" != "xyes"; then
38995                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38996                 fi
38997                 ;;
38998             *solaris* | alpha*-osf*)
38999                 flag="-D_REENTRANT"
39000                 ;;
39001           esac
39002           { echo "$as_me:$LINENO: result: ${flag}" >&5
39003 echo "${ECHO_T}${flag}" >&6; }
39004           if test "x$flag" != xno; then
39005               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39006           fi
39007
39008                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39009       fi
39010     fi
39011
39012         if test "$wxUSE_THREADS" = "yes" ; then
39013
39014 for ac_func in thr_setconcurrency
39015 do
39016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39020   echo $ECHO_N "(cached) $ECHO_C" >&6
39021 else
39022   cat >conftest.$ac_ext <<_ACEOF
39023 /* confdefs.h.  */
39024 _ACEOF
39025 cat confdefs.h >>conftest.$ac_ext
39026 cat >>conftest.$ac_ext <<_ACEOF
39027 /* end confdefs.h.  */
39028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39030 #define $ac_func innocuous_$ac_func
39031
39032 /* System header to define __stub macros and hopefully few prototypes,
39033     which can conflict with char $ac_func (); below.
39034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39035     <limits.h> exists even on freestanding compilers.  */
39036
39037 #ifdef __STDC__
39038 # include <limits.h>
39039 #else
39040 # include <assert.h>
39041 #endif
39042
39043 #undef $ac_func
39044
39045 /* Override any GCC internal prototype to avoid an error.
39046    Use char because int might match the return type of a GCC
39047    builtin and then its argument prototype would still apply.  */
39048 #ifdef __cplusplus
39049 extern "C"
39050 #endif
39051 char $ac_func ();
39052 /* The GNU C library defines this for functions which it implements
39053     to always fail with ENOSYS.  Some functions are actually named
39054     something starting with __ and the normal name is an alias.  */
39055 #if defined __stub_$ac_func || defined __stub___$ac_func
39056 choke me
39057 #endif
39058
39059 int
39060 main ()
39061 {
39062 return $ac_func ();
39063   ;
39064   return 0;
39065 }
39066 _ACEOF
39067 rm -f conftest.$ac_objext conftest$ac_exeext
39068 if { (ac_try="$ac_link"
39069 case "(($ac_try" in
39070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39071   *) ac_try_echo=$ac_try;;
39072 esac
39073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39074   (eval "$ac_link") 2>conftest.er1
39075   ac_status=$?
39076   grep -v '^ *+' conftest.er1 >conftest.err
39077   rm -f conftest.er1
39078   cat conftest.err >&5
39079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080   (exit $ac_status); } && {
39081          test -z "$ac_c_werror_flag" ||
39082          test ! -s conftest.err
39083        } && test -s conftest$ac_exeext &&
39084        $as_test_x conftest$ac_exeext; then
39085   eval "$as_ac_var=yes"
39086 else
39087   echo "$as_me: failed program was:" >&5
39088 sed 's/^/| /' conftest.$ac_ext >&5
39089
39090         eval "$as_ac_var=no"
39091 fi
39092
39093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39094       conftest$ac_exeext conftest.$ac_ext
39095 fi
39096 ac_res=`eval echo '${'$as_ac_var'}'`
39097                { echo "$as_me:$LINENO: result: $ac_res" >&5
39098 echo "${ECHO_T}$ac_res" >&6; }
39099 if test `eval echo '${'$as_ac_var'}'` = yes; then
39100   cat >>confdefs.h <<_ACEOF
39101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39102 _ACEOF
39103
39104 fi
39105 done
39106
39107
39108                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39109 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39110 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39111   echo $ECHO_N "(cached) $ECHO_C" >&6
39112 else
39113
39114                                 ac_ext=cpp
39115 ac_cpp='$CXXCPP $CPPFLAGS'
39116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39119
39120         cat >conftest.$ac_ext <<_ACEOF
39121 /* confdefs.h.  */
39122 _ACEOF
39123 cat confdefs.h >>conftest.$ac_ext
39124 cat >>conftest.$ac_ext <<_ACEOF
39125 /* end confdefs.h.  */
39126 #include <pthread.h>
39127                void ThreadCleanupFunc(void *p);
39128
39129 int
39130 main ()
39131 {
39132
39133                 void *p;
39134                 pthread_cleanup_push(ThreadCleanupFunc, p);
39135                 pthread_cleanup_pop(0);
39136
39137   ;
39138   return 0;
39139 }
39140 _ACEOF
39141 rm -f conftest.$ac_objext
39142 if { (ac_try="$ac_compile"
39143 case "(($ac_try" in
39144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39145   *) ac_try_echo=$ac_try;;
39146 esac
39147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39148   (eval "$ac_compile") 2>conftest.er1
39149   ac_status=$?
39150   grep -v '^ *+' conftest.er1 >conftest.err
39151   rm -f conftest.er1
39152   cat conftest.err >&5
39153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154   (exit $ac_status); } && {
39155          test -z "$ac_cxx_werror_flag" ||
39156          test ! -s conftest.err
39157        } && test -s conftest.$ac_objext; then
39158
39159                wx_cv_func_pthread_cleanup=yes
39160
39161 else
39162   echo "$as_me: failed program was:" >&5
39163 sed 's/^/| /' conftest.$ac_ext >&5
39164
39165
39166                wx_cv_func_pthread_cleanup=no
39167
39168
39169 fi
39170
39171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39172         ac_ext=c
39173 ac_cpp='$CPP $CPPFLAGS'
39174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39177
39178
39179 fi
39180 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39181 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39182       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39183         cat >>confdefs.h <<\_ACEOF
39184 #define wxHAVE_PTHREAD_CLEANUP 1
39185 _ACEOF
39186
39187       fi
39188
39189
39190 for ac_header in sched.h
39191 do
39192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39196   echo $ECHO_N "(cached) $ECHO_C" >&6
39197 else
39198   cat >conftest.$ac_ext <<_ACEOF
39199 /* confdefs.h.  */
39200 _ACEOF
39201 cat confdefs.h >>conftest.$ac_ext
39202 cat >>conftest.$ac_ext <<_ACEOF
39203 /* end confdefs.h.  */
39204 $ac_includes_default
39205
39206 #include <$ac_header>
39207 _ACEOF
39208 rm -f conftest.$ac_objext
39209 if { (ac_try="$ac_compile"
39210 case "(($ac_try" in
39211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39212   *) ac_try_echo=$ac_try;;
39213 esac
39214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39215   (eval "$ac_compile") 2>conftest.er1
39216   ac_status=$?
39217   grep -v '^ *+' conftest.er1 >conftest.err
39218   rm -f conftest.er1
39219   cat conftest.err >&5
39220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221   (exit $ac_status); } && {
39222          test -z "$ac_c_werror_flag" ||
39223          test ! -s conftest.err
39224        } && test -s conftest.$ac_objext; then
39225   eval "$as_ac_Header=yes"
39226 else
39227   echo "$as_me: failed program was:" >&5
39228 sed 's/^/| /' conftest.$ac_ext >&5
39229
39230         eval "$as_ac_Header=no"
39231 fi
39232
39233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39234 fi
39235 ac_res=`eval echo '${'$as_ac_Header'}'`
39236                { echo "$as_me:$LINENO: result: $ac_res" >&5
39237 echo "${ECHO_T}$ac_res" >&6; }
39238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39239   cat >>confdefs.h <<_ACEOF
39240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39241 _ACEOF
39242
39243 fi
39244
39245 done
39246
39247       if test "$ac_cv_header_sched_h" = "yes"; then
39248           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39249 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39250 if test "${ac_cv_func_sched_yield+set}" = set; then
39251   echo $ECHO_N "(cached) $ECHO_C" >&6
39252 else
39253   cat >conftest.$ac_ext <<_ACEOF
39254 /* confdefs.h.  */
39255 _ACEOF
39256 cat confdefs.h >>conftest.$ac_ext
39257 cat >>conftest.$ac_ext <<_ACEOF
39258 /* end confdefs.h.  */
39259 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39261 #define sched_yield innocuous_sched_yield
39262
39263 /* System header to define __stub macros and hopefully few prototypes,
39264     which can conflict with char sched_yield (); below.
39265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39266     <limits.h> exists even on freestanding compilers.  */
39267
39268 #ifdef __STDC__
39269 # include <limits.h>
39270 #else
39271 # include <assert.h>
39272 #endif
39273
39274 #undef sched_yield
39275
39276 /* Override any GCC internal prototype to avoid an error.
39277    Use char because int might match the return type of a GCC
39278    builtin and then its argument prototype would still apply.  */
39279 #ifdef __cplusplus
39280 extern "C"
39281 #endif
39282 char sched_yield ();
39283 /* The GNU C library defines this for functions which it implements
39284     to always fail with ENOSYS.  Some functions are actually named
39285     something starting with __ and the normal name is an alias.  */
39286 #if defined __stub_sched_yield || defined __stub___sched_yield
39287 choke me
39288 #endif
39289
39290 int
39291 main ()
39292 {
39293 return sched_yield ();
39294   ;
39295   return 0;
39296 }
39297 _ACEOF
39298 rm -f conftest.$ac_objext conftest$ac_exeext
39299 if { (ac_try="$ac_link"
39300 case "(($ac_try" in
39301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39302   *) ac_try_echo=$ac_try;;
39303 esac
39304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39305   (eval "$ac_link") 2>conftest.er1
39306   ac_status=$?
39307   grep -v '^ *+' conftest.er1 >conftest.err
39308   rm -f conftest.er1
39309   cat conftest.err >&5
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); } && {
39312          test -z "$ac_c_werror_flag" ||
39313          test ! -s conftest.err
39314        } && test -s conftest$ac_exeext &&
39315        $as_test_x conftest$ac_exeext; then
39316   ac_cv_func_sched_yield=yes
39317 else
39318   echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39320
39321         ac_cv_func_sched_yield=no
39322 fi
39323
39324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39325       conftest$ac_exeext conftest.$ac_ext
39326 fi
39327 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39328 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39329 if test $ac_cv_func_sched_yield = yes; then
39330   cat >>confdefs.h <<\_ACEOF
39331 #define HAVE_SCHED_YIELD 1
39332 _ACEOF
39333
39334 else
39335
39336                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39337 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39338 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39339   echo $ECHO_N "(cached) $ECHO_C" >&6
39340 else
39341   ac_check_lib_save_LIBS=$LIBS
39342 LIBS="-lposix4  $LIBS"
39343 cat >conftest.$ac_ext <<_ACEOF
39344 /* confdefs.h.  */
39345 _ACEOF
39346 cat confdefs.h >>conftest.$ac_ext
39347 cat >>conftest.$ac_ext <<_ACEOF
39348 /* end confdefs.h.  */
39349
39350 /* Override any GCC internal prototype to avoid an error.
39351    Use char because int might match the return type of a GCC
39352    builtin and then its argument prototype would still apply.  */
39353 #ifdef __cplusplus
39354 extern "C"
39355 #endif
39356 char sched_yield ();
39357 int
39358 main ()
39359 {
39360 return sched_yield ();
39361   ;
39362   return 0;
39363 }
39364 _ACEOF
39365 rm -f conftest.$ac_objext conftest$ac_exeext
39366 if { (ac_try="$ac_link"
39367 case "(($ac_try" in
39368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39369   *) ac_try_echo=$ac_try;;
39370 esac
39371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39372   (eval "$ac_link") 2>conftest.er1
39373   ac_status=$?
39374   grep -v '^ *+' conftest.er1 >conftest.err
39375   rm -f conftest.er1
39376   cat conftest.err >&5
39377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39378   (exit $ac_status); } && {
39379          test -z "$ac_c_werror_flag" ||
39380          test ! -s conftest.err
39381        } && test -s conftest$ac_exeext &&
39382        $as_test_x conftest$ac_exeext; then
39383   ac_cv_lib_posix4_sched_yield=yes
39384 else
39385   echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39387
39388         ac_cv_lib_posix4_sched_yield=no
39389 fi
39390
39391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39392       conftest$ac_exeext conftest.$ac_ext
39393 LIBS=$ac_check_lib_save_LIBS
39394 fi
39395 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39396 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39397 if test $ac_cv_lib_posix4_sched_yield = yes; then
39398   cat >>confdefs.h <<\_ACEOF
39399 #define HAVE_SCHED_YIELD 1
39400 _ACEOF
39401  POSIX4_LINK=" -lposix4"
39402 else
39403   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39404 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39405
39406 fi
39407
39408
39409
39410 fi
39411
39412       fi
39413
39414                                           HAVE_PRIOR_FUNCS=0
39415       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39416 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39417 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39418   echo $ECHO_N "(cached) $ECHO_C" >&6
39419 else
39420   cat >conftest.$ac_ext <<_ACEOF
39421 /* confdefs.h.  */
39422 _ACEOF
39423 cat confdefs.h >>conftest.$ac_ext
39424 cat >>conftest.$ac_ext <<_ACEOF
39425 /* end confdefs.h.  */
39426 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39428 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39429
39430 /* System header to define __stub macros and hopefully few prototypes,
39431     which can conflict with char pthread_attr_getschedpolicy (); below.
39432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39433     <limits.h> exists even on freestanding compilers.  */
39434
39435 #ifdef __STDC__
39436 # include <limits.h>
39437 #else
39438 # include <assert.h>
39439 #endif
39440
39441 #undef pthread_attr_getschedpolicy
39442
39443 /* Override any GCC internal prototype to avoid an error.
39444    Use char because int might match the return type of a GCC
39445    builtin and then its argument prototype would still apply.  */
39446 #ifdef __cplusplus
39447 extern "C"
39448 #endif
39449 char pthread_attr_getschedpolicy ();
39450 /* The GNU C library defines this for functions which it implements
39451     to always fail with ENOSYS.  Some functions are actually named
39452     something starting with __ and the normal name is an alias.  */
39453 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39454 choke me
39455 #endif
39456
39457 int
39458 main ()
39459 {
39460 return pthread_attr_getschedpolicy ();
39461   ;
39462   return 0;
39463 }
39464 _ACEOF
39465 rm -f conftest.$ac_objext conftest$ac_exeext
39466 if { (ac_try="$ac_link"
39467 case "(($ac_try" in
39468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39469   *) ac_try_echo=$ac_try;;
39470 esac
39471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39472   (eval "$ac_link") 2>conftest.er1
39473   ac_status=$?
39474   grep -v '^ *+' conftest.er1 >conftest.err
39475   rm -f conftest.er1
39476   cat conftest.err >&5
39477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478   (exit $ac_status); } && {
39479          test -z "$ac_c_werror_flag" ||
39480          test ! -s conftest.err
39481        } && test -s conftest$ac_exeext &&
39482        $as_test_x conftest$ac_exeext; then
39483   ac_cv_func_pthread_attr_getschedpolicy=yes
39484 else
39485   echo "$as_me: failed program was:" >&5
39486 sed 's/^/| /' conftest.$ac_ext >&5
39487
39488         ac_cv_func_pthread_attr_getschedpolicy=no
39489 fi
39490
39491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39492       conftest$ac_exeext conftest.$ac_ext
39493 fi
39494 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39495 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39496 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39497   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39498 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39499 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39500   echo $ECHO_N "(cached) $ECHO_C" >&6
39501 else
39502   cat >conftest.$ac_ext <<_ACEOF
39503 /* confdefs.h.  */
39504 _ACEOF
39505 cat confdefs.h >>conftest.$ac_ext
39506 cat >>conftest.$ac_ext <<_ACEOF
39507 /* end confdefs.h.  */
39508 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39510 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39511
39512 /* System header to define __stub macros and hopefully few prototypes,
39513     which can conflict with char pthread_attr_setschedparam (); below.
39514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39515     <limits.h> exists even on freestanding compilers.  */
39516
39517 #ifdef __STDC__
39518 # include <limits.h>
39519 #else
39520 # include <assert.h>
39521 #endif
39522
39523 #undef pthread_attr_setschedparam
39524
39525 /* Override any GCC internal prototype to avoid an error.
39526    Use char because int might match the return type of a GCC
39527    builtin and then its argument prototype would still apply.  */
39528 #ifdef __cplusplus
39529 extern "C"
39530 #endif
39531 char pthread_attr_setschedparam ();
39532 /* The GNU C library defines this for functions which it implements
39533     to always fail with ENOSYS.  Some functions are actually named
39534     something starting with __ and the normal name is an alias.  */
39535 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39536 choke me
39537 #endif
39538
39539 int
39540 main ()
39541 {
39542 return pthread_attr_setschedparam ();
39543   ;
39544   return 0;
39545 }
39546 _ACEOF
39547 rm -f conftest.$ac_objext conftest$ac_exeext
39548 if { (ac_try="$ac_link"
39549 case "(($ac_try" in
39550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39551   *) ac_try_echo=$ac_try;;
39552 esac
39553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39554   (eval "$ac_link") 2>conftest.er1
39555   ac_status=$?
39556   grep -v '^ *+' conftest.er1 >conftest.err
39557   rm -f conftest.er1
39558   cat conftest.err >&5
39559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560   (exit $ac_status); } && {
39561          test -z "$ac_c_werror_flag" ||
39562          test ! -s conftest.err
39563        } && test -s conftest$ac_exeext &&
39564        $as_test_x conftest$ac_exeext; then
39565   ac_cv_func_pthread_attr_setschedparam=yes
39566 else
39567   echo "$as_me: failed program was:" >&5
39568 sed 's/^/| /' conftest.$ac_ext >&5
39569
39570         ac_cv_func_pthread_attr_setschedparam=no
39571 fi
39572
39573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39574       conftest$ac_exeext conftest.$ac_ext
39575 fi
39576 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39577 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39578 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39579   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39580 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39581 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39582   echo $ECHO_N "(cached) $ECHO_C" >&6
39583 else
39584   cat >conftest.$ac_ext <<_ACEOF
39585 /* confdefs.h.  */
39586 _ACEOF
39587 cat confdefs.h >>conftest.$ac_ext
39588 cat >>conftest.$ac_ext <<_ACEOF
39589 /* end confdefs.h.  */
39590 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39592 #define sched_get_priority_max innocuous_sched_get_priority_max
39593
39594 /* System header to define __stub macros and hopefully few prototypes,
39595     which can conflict with char sched_get_priority_max (); below.
39596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39597     <limits.h> exists even on freestanding compilers.  */
39598
39599 #ifdef __STDC__
39600 # include <limits.h>
39601 #else
39602 # include <assert.h>
39603 #endif
39604
39605 #undef sched_get_priority_max
39606
39607 /* Override any GCC internal prototype to avoid an error.
39608    Use char because int might match the return type of a GCC
39609    builtin and then its argument prototype would still apply.  */
39610 #ifdef __cplusplus
39611 extern "C"
39612 #endif
39613 char sched_get_priority_max ();
39614 /* The GNU C library defines this for functions which it implements
39615     to always fail with ENOSYS.  Some functions are actually named
39616     something starting with __ and the normal name is an alias.  */
39617 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39618 choke me
39619 #endif
39620
39621 int
39622 main ()
39623 {
39624 return sched_get_priority_max ();
39625   ;
39626   return 0;
39627 }
39628 _ACEOF
39629 rm -f conftest.$ac_objext conftest$ac_exeext
39630 if { (ac_try="$ac_link"
39631 case "(($ac_try" in
39632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39633   *) ac_try_echo=$ac_try;;
39634 esac
39635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39636   (eval "$ac_link") 2>conftest.er1
39637   ac_status=$?
39638   grep -v '^ *+' conftest.er1 >conftest.err
39639   rm -f conftest.er1
39640   cat conftest.err >&5
39641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642   (exit $ac_status); } && {
39643          test -z "$ac_c_werror_flag" ||
39644          test ! -s conftest.err
39645        } && test -s conftest$ac_exeext &&
39646        $as_test_x conftest$ac_exeext; then
39647   ac_cv_func_sched_get_priority_max=yes
39648 else
39649   echo "$as_me: failed program was:" >&5
39650 sed 's/^/| /' conftest.$ac_ext >&5
39651
39652         ac_cv_func_sched_get_priority_max=no
39653 fi
39654
39655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39656       conftest$ac_exeext conftest.$ac_ext
39657 fi
39658 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39659 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39660 if test $ac_cv_func_sched_get_priority_max = yes; then
39661   HAVE_PRIOR_FUNCS=1
39662 else
39663   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39664 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39665 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39666   echo $ECHO_N "(cached) $ECHO_C" >&6
39667 else
39668   ac_check_lib_save_LIBS=$LIBS
39669 LIBS="-lposix4  $LIBS"
39670 cat >conftest.$ac_ext <<_ACEOF
39671 /* confdefs.h.  */
39672 _ACEOF
39673 cat confdefs.h >>conftest.$ac_ext
39674 cat >>conftest.$ac_ext <<_ACEOF
39675 /* end confdefs.h.  */
39676
39677 /* Override any GCC internal prototype to avoid an error.
39678    Use char because int might match the return type of a GCC
39679    builtin and then its argument prototype would still apply.  */
39680 #ifdef __cplusplus
39681 extern "C"
39682 #endif
39683 char sched_get_priority_max ();
39684 int
39685 main ()
39686 {
39687 return sched_get_priority_max ();
39688   ;
39689   return 0;
39690 }
39691 _ACEOF
39692 rm -f conftest.$ac_objext conftest$ac_exeext
39693 if { (ac_try="$ac_link"
39694 case "(($ac_try" in
39695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39696   *) ac_try_echo=$ac_try;;
39697 esac
39698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39699   (eval "$ac_link") 2>conftest.er1
39700   ac_status=$?
39701   grep -v '^ *+' conftest.er1 >conftest.err
39702   rm -f conftest.er1
39703   cat conftest.err >&5
39704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705   (exit $ac_status); } && {
39706          test -z "$ac_c_werror_flag" ||
39707          test ! -s conftest.err
39708        } && test -s conftest$ac_exeext &&
39709        $as_test_x conftest$ac_exeext; then
39710   ac_cv_lib_posix4_sched_get_priority_max=yes
39711 else
39712   echo "$as_me: failed program was:" >&5
39713 sed 's/^/| /' conftest.$ac_ext >&5
39714
39715         ac_cv_lib_posix4_sched_get_priority_max=no
39716 fi
39717
39718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39719       conftest$ac_exeext conftest.$ac_ext
39720 LIBS=$ac_check_lib_save_LIBS
39721 fi
39722 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39723 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39724 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39725
39726                                 HAVE_PRIOR_FUNCS=1
39727                                 POSIX4_LINK=" -lposix4"
39728
39729 fi
39730
39731
39732 fi
39733
39734
39735 fi
39736
39737
39738 fi
39739
39740
39741       if test "$HAVE_PRIOR_FUNCS" = 1; then
39742         cat >>confdefs.h <<\_ACEOF
39743 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39744 _ACEOF
39745
39746       else
39747         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39748 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39749       fi
39750
39751       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39752 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39753 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39754   echo $ECHO_N "(cached) $ECHO_C" >&6
39755 else
39756   cat >conftest.$ac_ext <<_ACEOF
39757 /* confdefs.h.  */
39758 _ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h.  */
39762 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39764 #define pthread_cancel innocuous_pthread_cancel
39765
39766 /* System header to define __stub macros and hopefully few prototypes,
39767     which can conflict with char pthread_cancel (); below.
39768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39769     <limits.h> exists even on freestanding compilers.  */
39770
39771 #ifdef __STDC__
39772 # include <limits.h>
39773 #else
39774 # include <assert.h>
39775 #endif
39776
39777 #undef pthread_cancel
39778
39779 /* Override any GCC internal prototype to avoid an error.
39780    Use char because int might match the return type of a GCC
39781    builtin and then its argument prototype would still apply.  */
39782 #ifdef __cplusplus
39783 extern "C"
39784 #endif
39785 char pthread_cancel ();
39786 /* The GNU C library defines this for functions which it implements
39787     to always fail with ENOSYS.  Some functions are actually named
39788     something starting with __ and the normal name is an alias.  */
39789 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39790 choke me
39791 #endif
39792
39793 int
39794 main ()
39795 {
39796 return pthread_cancel ();
39797   ;
39798   return 0;
39799 }
39800 _ACEOF
39801 rm -f conftest.$ac_objext conftest$ac_exeext
39802 if { (ac_try="$ac_link"
39803 case "(($ac_try" in
39804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39805   *) ac_try_echo=$ac_try;;
39806 esac
39807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39808   (eval "$ac_link") 2>conftest.er1
39809   ac_status=$?
39810   grep -v '^ *+' conftest.er1 >conftest.err
39811   rm -f conftest.er1
39812   cat conftest.err >&5
39813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814   (exit $ac_status); } && {
39815          test -z "$ac_c_werror_flag" ||
39816          test ! -s conftest.err
39817        } && test -s conftest$ac_exeext &&
39818        $as_test_x conftest$ac_exeext; then
39819   ac_cv_func_pthread_cancel=yes
39820 else
39821   echo "$as_me: failed program was:" >&5
39822 sed 's/^/| /' conftest.$ac_ext >&5
39823
39824         ac_cv_func_pthread_cancel=no
39825 fi
39826
39827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39828       conftest$ac_exeext conftest.$ac_ext
39829 fi
39830 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39831 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39832 if test $ac_cv_func_pthread_cancel = yes; then
39833   cat >>confdefs.h <<\_ACEOF
39834 #define HAVE_PTHREAD_CANCEL 1
39835 _ACEOF
39836
39837 else
39838   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39839 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39840 fi
39841
39842
39843       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39844 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39845 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39846   echo $ECHO_N "(cached) $ECHO_C" >&6
39847 else
39848   cat >conftest.$ac_ext <<_ACEOF
39849 /* confdefs.h.  */
39850 _ACEOF
39851 cat confdefs.h >>conftest.$ac_ext
39852 cat >>conftest.$ac_ext <<_ACEOF
39853 /* end confdefs.h.  */
39854 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39856 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39857
39858 /* System header to define __stub macros and hopefully few prototypes,
39859     which can conflict with char pthread_mutex_timedlock (); below.
39860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39861     <limits.h> exists even on freestanding compilers.  */
39862
39863 #ifdef __STDC__
39864 # include <limits.h>
39865 #else
39866 # include <assert.h>
39867 #endif
39868
39869 #undef pthread_mutex_timedlock
39870
39871 /* Override any GCC internal prototype to avoid an error.
39872    Use char because int might match the return type of a GCC
39873    builtin and then its argument prototype would still apply.  */
39874 #ifdef __cplusplus
39875 extern "C"
39876 #endif
39877 char pthread_mutex_timedlock ();
39878 /* The GNU C library defines this for functions which it implements
39879     to always fail with ENOSYS.  Some functions are actually named
39880     something starting with __ and the normal name is an alias.  */
39881 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39882 choke me
39883 #endif
39884
39885 int
39886 main ()
39887 {
39888 return pthread_mutex_timedlock ();
39889   ;
39890   return 0;
39891 }
39892 _ACEOF
39893 rm -f conftest.$ac_objext conftest$ac_exeext
39894 if { (ac_try="$ac_link"
39895 case "(($ac_try" in
39896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897   *) ac_try_echo=$ac_try;;
39898 esac
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900   (eval "$ac_link") 2>conftest.er1
39901   ac_status=$?
39902   grep -v '^ *+' conftest.er1 >conftest.err
39903   rm -f conftest.er1
39904   cat conftest.err >&5
39905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906   (exit $ac_status); } && {
39907          test -z "$ac_c_werror_flag" ||
39908          test ! -s conftest.err
39909        } && test -s conftest$ac_exeext &&
39910        $as_test_x conftest$ac_exeext; then
39911   ac_cv_func_pthread_mutex_timedlock=yes
39912 else
39913   echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39915
39916         ac_cv_func_pthread_mutex_timedlock=no
39917 fi
39918
39919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39920       conftest$ac_exeext conftest.$ac_ext
39921 fi
39922 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39923 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39924 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39925   cat >>confdefs.h <<\_ACEOF
39926 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39927 _ACEOF
39928
39929 else
39930   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39931 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39932 fi
39933
39934
39935       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39936 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39937 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39938   echo $ECHO_N "(cached) $ECHO_C" >&6
39939 else
39940   cat >conftest.$ac_ext <<_ACEOF
39941 /* confdefs.h.  */
39942 _ACEOF
39943 cat confdefs.h >>conftest.$ac_ext
39944 cat >>conftest.$ac_ext <<_ACEOF
39945 /* end confdefs.h.  */
39946 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39948 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39949
39950 /* System header to define __stub macros and hopefully few prototypes,
39951     which can conflict with char pthread_attr_setstacksize (); below.
39952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39953     <limits.h> exists even on freestanding compilers.  */
39954
39955 #ifdef __STDC__
39956 # include <limits.h>
39957 #else
39958 # include <assert.h>
39959 #endif
39960
39961 #undef pthread_attr_setstacksize
39962
39963 /* Override any GCC internal prototype to avoid an error.
39964    Use char because int might match the return type of a GCC
39965    builtin and then its argument prototype would still apply.  */
39966 #ifdef __cplusplus
39967 extern "C"
39968 #endif
39969 char pthread_attr_setstacksize ();
39970 /* The GNU C library defines this for functions which it implements
39971     to always fail with ENOSYS.  Some functions are actually named
39972     something starting with __ and the normal name is an alias.  */
39973 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39974 choke me
39975 #endif
39976
39977 int
39978 main ()
39979 {
39980 return pthread_attr_setstacksize ();
39981   ;
39982   return 0;
39983 }
39984 _ACEOF
39985 rm -f conftest.$ac_objext conftest$ac_exeext
39986 if { (ac_try="$ac_link"
39987 case "(($ac_try" in
39988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39989   *) ac_try_echo=$ac_try;;
39990 esac
39991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39992   (eval "$ac_link") 2>conftest.er1
39993   ac_status=$?
39994   grep -v '^ *+' conftest.er1 >conftest.err
39995   rm -f conftest.er1
39996   cat conftest.err >&5
39997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998   (exit $ac_status); } && {
39999          test -z "$ac_c_werror_flag" ||
40000          test ! -s conftest.err
40001        } && test -s conftest$ac_exeext &&
40002        $as_test_x conftest$ac_exeext; then
40003   ac_cv_func_pthread_attr_setstacksize=yes
40004 else
40005   echo "$as_me: failed program was:" >&5
40006 sed 's/^/| /' conftest.$ac_ext >&5
40007
40008         ac_cv_func_pthread_attr_setstacksize=no
40009 fi
40010
40011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40012       conftest$ac_exeext conftest.$ac_ext
40013 fi
40014 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40015 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40016 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40017   cat >>confdefs.h <<\_ACEOF
40018 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40019 _ACEOF
40020
40021 fi
40022
40023
40024
40025       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40026 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40027 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40028   echo $ECHO_N "(cached) $ECHO_C" >&6
40029 else
40030
40031         cat >conftest.$ac_ext <<_ACEOF
40032 /* confdefs.h.  */
40033 _ACEOF
40034 cat confdefs.h >>conftest.$ac_ext
40035 cat >>conftest.$ac_ext <<_ACEOF
40036 /* end confdefs.h.  */
40037 #include <pthread.h>
40038 int
40039 main ()
40040 {
40041
40042                pthread_mutexattr_t attr;
40043                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40044
40045   ;
40046   return 0;
40047 }
40048 _ACEOF
40049 rm -f conftest.$ac_objext
40050 if { (ac_try="$ac_compile"
40051 case "(($ac_try" in
40052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40053   *) ac_try_echo=$ac_try;;
40054 esac
40055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40056   (eval "$ac_compile") 2>conftest.er1
40057   ac_status=$?
40058   grep -v '^ *+' conftest.er1 >conftest.err
40059   rm -f conftest.er1
40060   cat conftest.err >&5
40061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40062   (exit $ac_status); } && {
40063          test -z "$ac_c_werror_flag" ||
40064          test ! -s conftest.err
40065        } && test -s conftest.$ac_objext; then
40066   wx_cv_type_pthread_mutexattr_t=yes
40067 else
40068   echo "$as_me: failed program was:" >&5
40069 sed 's/^/| /' conftest.$ac_ext >&5
40070
40071         wx_cv_type_pthread_mutexattr_t=no
40072
40073 fi
40074
40075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40076
40077 fi
40078 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40079 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40080
40081       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40082         cat >>confdefs.h <<\_ACEOF
40083 #define HAVE_PTHREAD_MUTEXATTR_T 1
40084 _ACEOF
40085
40086
40087                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40088 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40089 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40090   echo $ECHO_N "(cached) $ECHO_C" >&6
40091 else
40092
40093                        cat >conftest.$ac_ext <<_ACEOF
40094 /* confdefs.h.  */
40095 _ACEOF
40096 cat confdefs.h >>conftest.$ac_ext
40097 cat >>conftest.$ac_ext <<_ACEOF
40098 /* end confdefs.h.  */
40099 #include <pthread.h>
40100 int
40101 main ()
40102 {
40103
40104                                pthread_mutexattr_t attr;
40105                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40106
40107   ;
40108   return 0;
40109 }
40110 _ACEOF
40111 rm -f conftest.$ac_objext
40112 if { (ac_try="$ac_compile"
40113 case "(($ac_try" in
40114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40115   *) ac_try_echo=$ac_try;;
40116 esac
40117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40118   (eval "$ac_compile") 2>conftest.er1
40119   ac_status=$?
40120   grep -v '^ *+' conftest.er1 >conftest.err
40121   rm -f conftest.er1
40122   cat conftest.err >&5
40123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124   (exit $ac_status); } && {
40125          test -z "$ac_c_werror_flag" ||
40126          test ! -s conftest.err
40127        } && test -s conftest.$ac_objext; then
40128   wx_cv_func_pthread_mutexattr_settype_decl=yes
40129 else
40130   echo "$as_me: failed program was:" >&5
40131 sed 's/^/| /' conftest.$ac_ext >&5
40132
40133         wx_cv_func_pthread_mutexattr_settype_decl=no
40134
40135 fi
40136
40137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40138
40139 fi
40140 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40141 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40142         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40143             cat >>confdefs.h <<\_ACEOF
40144 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40145 _ACEOF
40146
40147         fi
40148       else
40149                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40150 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40151 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40152   echo $ECHO_N "(cached) $ECHO_C" >&6
40153 else
40154
40155             cat >conftest.$ac_ext <<_ACEOF
40156 /* confdefs.h.  */
40157 _ACEOF
40158 cat confdefs.h >>conftest.$ac_ext
40159 cat >>conftest.$ac_ext <<_ACEOF
40160 /* end confdefs.h.  */
40161 #include <pthread.h>
40162 int
40163 main ()
40164 {
40165
40166                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40167
40168   ;
40169   return 0;
40170 }
40171 _ACEOF
40172 rm -f conftest.$ac_objext
40173 if { (ac_try="$ac_compile"
40174 case "(($ac_try" in
40175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176   *) ac_try_echo=$ac_try;;
40177 esac
40178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40179   (eval "$ac_compile") 2>conftest.er1
40180   ac_status=$?
40181   grep -v '^ *+' conftest.er1 >conftest.err
40182   rm -f conftest.er1
40183   cat conftest.err >&5
40184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185   (exit $ac_status); } && {
40186          test -z "$ac_c_werror_flag" ||
40187          test ! -s conftest.err
40188        } && test -s conftest.$ac_objext; then
40189
40190                     wx_cv_type_pthread_rec_mutex_init=yes
40191
40192 else
40193   echo "$as_me: failed program was:" >&5
40194 sed 's/^/| /' conftest.$ac_ext >&5
40195
40196
40197                     wx_cv_type_pthread_rec_mutex_init=no
40198
40199
40200 fi
40201
40202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40203
40204 fi
40205 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40206 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40207         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40208           cat >>confdefs.h <<\_ACEOF
40209 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40210 _ACEOF
40211
40212         else
40213                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40214 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40215         fi
40216       fi
40217
40218             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40219 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40220 if test "${wx_cv_cc___thread+set}" = set; then
40221   echo $ECHO_N "(cached) $ECHO_C" >&6
40222 else
40223
40224           cat >conftest.$ac_ext <<_ACEOF
40225 /* confdefs.h.  */
40226 _ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h.  */
40230 #include <pthread.h>
40231 int
40232 main ()
40233 {
40234
40235                   static __thread int n = 0;
40236                   static __thread int *p = 0;
40237
40238   ;
40239   return 0;
40240 }
40241 _ACEOF
40242 rm -f conftest.$ac_objext
40243 if { (ac_try="$ac_compile"
40244 case "(($ac_try" in
40245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40246   *) ac_try_echo=$ac_try;;
40247 esac
40248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40249   (eval "$ac_compile") 2>conftest.er1
40250   ac_status=$?
40251   grep -v '^ *+' conftest.er1 >conftest.err
40252   rm -f conftest.er1
40253   cat conftest.err >&5
40254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255   (exit $ac_status); } && {
40256          test -z "$ac_c_werror_flag" ||
40257          test ! -s conftest.err
40258        } && test -s conftest.$ac_objext; then
40259   wx_cv_cc___thread=yes
40260 else
40261   echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40263
40264         wx_cv_cc___thread=no
40265
40266 fi
40267
40268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40269
40270 fi
40271 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40272 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40273
40274       if test "$wx_cv_cc___thread" = "yes"; then
40275         cat >>confdefs.h <<\_ACEOF
40276 #define HAVE___THREAD_KEYWORD 1
40277 _ACEOF
40278
40279       fi
40280     fi
40281
40282 else
40283     if test "$wxUSE_THREADS" = "yes" ; then
40284       case "${host}" in
40285         x86_64-*-mingw32* )
40286         ;;
40287         *-*-mingw32* )
40288                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40289 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40290 if test "${wx_cv_cflags_mthread+set}" = set; then
40291   echo $ECHO_N "(cached) $ECHO_C" >&6
40292 else
40293
40294                     CFLAGS_OLD="$CFLAGS"
40295                     CFLAGS="-mthreads $CFLAGS"
40296                     cat >conftest.$ac_ext <<_ACEOF
40297 /* confdefs.h.  */
40298 _ACEOF
40299 cat confdefs.h >>conftest.$ac_ext
40300 cat >>conftest.$ac_ext <<_ACEOF
40301 /* end confdefs.h.  */
40302
40303 int
40304 main ()
40305 {
40306
40307   ;
40308   return 0;
40309 }
40310 _ACEOF
40311 rm -f conftest.$ac_objext
40312 if { (ac_try="$ac_compile"
40313 case "(($ac_try" in
40314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40315   *) ac_try_echo=$ac_try;;
40316 esac
40317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40318   (eval "$ac_compile") 2>conftest.er1
40319   ac_status=$?
40320   grep -v '^ *+' conftest.er1 >conftest.err
40321   rm -f conftest.er1
40322   cat conftest.err >&5
40323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324   (exit $ac_status); } && {
40325          test -z "$ac_c_werror_flag" ||
40326          test ! -s conftest.err
40327        } && test -s conftest.$ac_objext; then
40328   wx_cv_cflags_mthread=yes
40329 else
40330   echo "$as_me: failed program was:" >&5
40331 sed 's/^/| /' conftest.$ac_ext >&5
40332
40333         wx_cv_cflags_mthread=no
40334
40335 fi
40336
40337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40338
40339
40340 fi
40341 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40342 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40343
40344             if test "$wx_cv_cflags_mthread" = "yes"; then
40345                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40346                 LDFLAGS="$LDFLAGS -mthreads"
40347             else
40348                                 CFLAGS="$CFLAGS_OLD"
40349             fi
40350         ;;
40351         *-pc-os2*emx )
40352             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40353             LDFLAGS="$LDFLAGS -Zmt"
40354         ;;
40355       esac
40356     fi
40357 fi
40358
40359 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40360 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40361 if test "${ac_cv_func_localtime_r+set}" = set; then
40362   echo $ECHO_N "(cached) $ECHO_C" >&6
40363 else
40364   cat >conftest.$ac_ext <<_ACEOF
40365 /* confdefs.h.  */
40366 _ACEOF
40367 cat confdefs.h >>conftest.$ac_ext
40368 cat >>conftest.$ac_ext <<_ACEOF
40369 /* end confdefs.h.  */
40370 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40372 #define localtime_r innocuous_localtime_r
40373
40374 /* System header to define __stub macros and hopefully few prototypes,
40375     which can conflict with char localtime_r (); below.
40376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40377     <limits.h> exists even on freestanding compilers.  */
40378
40379 #ifdef __STDC__
40380 # include <limits.h>
40381 #else
40382 # include <assert.h>
40383 #endif
40384
40385 #undef localtime_r
40386
40387 /* Override any GCC internal prototype to avoid an error.
40388    Use char because int might match the return type of a GCC
40389    builtin and then its argument prototype would still apply.  */
40390 #ifdef __cplusplus
40391 extern "C"
40392 #endif
40393 char localtime_r ();
40394 /* The GNU C library defines this for functions which it implements
40395     to always fail with ENOSYS.  Some functions are actually named
40396     something starting with __ and the normal name is an alias.  */
40397 #if defined __stub_localtime_r || defined __stub___localtime_r
40398 choke me
40399 #endif
40400
40401 int
40402 main ()
40403 {
40404 return localtime_r ();
40405   ;
40406   return 0;
40407 }
40408 _ACEOF
40409 rm -f conftest.$ac_objext conftest$ac_exeext
40410 if { (ac_try="$ac_link"
40411 case "(($ac_try" in
40412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40413   *) ac_try_echo=$ac_try;;
40414 esac
40415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40416   (eval "$ac_link") 2>conftest.er1
40417   ac_status=$?
40418   grep -v '^ *+' conftest.er1 >conftest.err
40419   rm -f conftest.er1
40420   cat conftest.err >&5
40421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40422   (exit $ac_status); } && {
40423          test -z "$ac_c_werror_flag" ||
40424          test ! -s conftest.err
40425        } && test -s conftest$ac_exeext &&
40426        $as_test_x conftest$ac_exeext; then
40427   ac_cv_func_localtime_r=yes
40428 else
40429   echo "$as_me: failed program was:" >&5
40430 sed 's/^/| /' conftest.$ac_ext >&5
40431
40432         ac_cv_func_localtime_r=no
40433 fi
40434
40435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40436       conftest$ac_exeext conftest.$ac_ext
40437 fi
40438 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40439 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40440 if test $ac_cv_func_localtime_r = yes; then
40441    cat >>confdefs.h <<\_ACEOF
40442 #define HAVE_LOCALTIME_R 1
40443 _ACEOF
40444
40445 fi
40446
40447 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40448 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40449 if test "${ac_cv_func_gmtime_r+set}" = set; then
40450   echo $ECHO_N "(cached) $ECHO_C" >&6
40451 else
40452   cat >conftest.$ac_ext <<_ACEOF
40453 /* confdefs.h.  */
40454 _ACEOF
40455 cat confdefs.h >>conftest.$ac_ext
40456 cat >>conftest.$ac_ext <<_ACEOF
40457 /* end confdefs.h.  */
40458 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40460 #define gmtime_r innocuous_gmtime_r
40461
40462 /* System header to define __stub macros and hopefully few prototypes,
40463     which can conflict with char gmtime_r (); below.
40464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40465     <limits.h> exists even on freestanding compilers.  */
40466
40467 #ifdef __STDC__
40468 # include <limits.h>
40469 #else
40470 # include <assert.h>
40471 #endif
40472
40473 #undef gmtime_r
40474
40475 /* Override any GCC internal prototype to avoid an error.
40476    Use char because int might match the return type of a GCC
40477    builtin and then its argument prototype would still apply.  */
40478 #ifdef __cplusplus
40479 extern "C"
40480 #endif
40481 char gmtime_r ();
40482 /* The GNU C library defines this for functions which it implements
40483     to always fail with ENOSYS.  Some functions are actually named
40484     something starting with __ and the normal name is an alias.  */
40485 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40486 choke me
40487 #endif
40488
40489 int
40490 main ()
40491 {
40492 return gmtime_r ();
40493   ;
40494   return 0;
40495 }
40496 _ACEOF
40497 rm -f conftest.$ac_objext conftest$ac_exeext
40498 if { (ac_try="$ac_link"
40499 case "(($ac_try" in
40500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40501   *) ac_try_echo=$ac_try;;
40502 esac
40503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40504   (eval "$ac_link") 2>conftest.er1
40505   ac_status=$?
40506   grep -v '^ *+' conftest.er1 >conftest.err
40507   rm -f conftest.er1
40508   cat conftest.err >&5
40509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510   (exit $ac_status); } && {
40511          test -z "$ac_c_werror_flag" ||
40512          test ! -s conftest.err
40513        } && test -s conftest$ac_exeext &&
40514        $as_test_x conftest$ac_exeext; then
40515   ac_cv_func_gmtime_r=yes
40516 else
40517   echo "$as_me: failed program was:" >&5
40518 sed 's/^/| /' conftest.$ac_ext >&5
40519
40520         ac_cv_func_gmtime_r=no
40521 fi
40522
40523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40524       conftest$ac_exeext conftest.$ac_ext
40525 fi
40526 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40527 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40528 if test $ac_cv_func_gmtime_r = yes; then
40529    cat >>confdefs.h <<\_ACEOF
40530 #define HAVE_GMTIME_R 1
40531 _ACEOF
40532
40533 fi
40534
40535
40536
40537
40538     ac_ext=c
40539 ac_cpp='$CPP $CPPFLAGS'
40540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40543
40544     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40545 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40546
40547     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40548   echo $ECHO_N "(cached) $ECHO_C" >&6
40549 else
40550
40551
40552 ################################################################
40553
40554 ac_cv_func_which_gethostbyname_r=unknown
40555
40556 #
40557 # ONE ARGUMENT (sanity check)
40558 #
40559
40560 # This should fail, as there is no variant of gethostbyname_r() that takes
40561 # a single argument. If it actually compiles, then we can assume that
40562 # netdb.h is not declaring the function, and the compiler is thereby
40563 # assuming an implicit prototype. In which case, we're out of luck.
40564 #
40565 cat >conftest.$ac_ext <<_ACEOF
40566 /* confdefs.h.  */
40567 _ACEOF
40568 cat confdefs.h >>conftest.$ac_ext
40569 cat >>conftest.$ac_ext <<_ACEOF
40570 /* end confdefs.h.  */
40571 #include <netdb.h>
40572 int
40573 main ()
40574 {
40575
40576             char *name = "www.gnu.org";
40577             (void)gethostbyname_r(name) /* ; */
40578
40579   ;
40580   return 0;
40581 }
40582 _ACEOF
40583 rm -f conftest.$ac_objext
40584 if { (ac_try="$ac_compile"
40585 case "(($ac_try" in
40586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40587   *) ac_try_echo=$ac_try;;
40588 esac
40589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40590   (eval "$ac_compile") 2>conftest.er1
40591   ac_status=$?
40592   grep -v '^ *+' conftest.er1 >conftest.err
40593   rm -f conftest.er1
40594   cat conftest.err >&5
40595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40596   (exit $ac_status); } && {
40597          test -z "$ac_c_werror_flag" ||
40598          test ! -s conftest.err
40599        } && test -s conftest.$ac_objext; then
40600   ac_cv_func_which_gethostbyname_r=no
40601 else
40602   echo "$as_me: failed program was:" >&5
40603 sed 's/^/| /' conftest.$ac_ext >&5
40604
40605
40606 fi
40607
40608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40609
40610 #
40611 # SIX ARGUMENTS
40612 # (e.g. Linux)
40613 #
40614
40615 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40616
40617 cat >conftest.$ac_ext <<_ACEOF
40618 /* confdefs.h.  */
40619 _ACEOF
40620 cat confdefs.h >>conftest.$ac_ext
40621 cat >>conftest.$ac_ext <<_ACEOF
40622 /* end confdefs.h.  */
40623 #include <netdb.h>
40624 int
40625 main ()
40626 {
40627
40628             char *name = "www.gnu.org";
40629             struct hostent ret, *retp;
40630             char buf[1024];
40631             int buflen = 1024;
40632             int my_h_errno;
40633             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40634
40635   ;
40636   return 0;
40637 }
40638 _ACEOF
40639 rm -f conftest.$ac_objext
40640 if { (ac_try="$ac_compile"
40641 case "(($ac_try" in
40642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643   *) ac_try_echo=$ac_try;;
40644 esac
40645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646   (eval "$ac_compile") 2>conftest.er1
40647   ac_status=$?
40648   grep -v '^ *+' conftest.er1 >conftest.err
40649   rm -f conftest.er1
40650   cat conftest.err >&5
40651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652   (exit $ac_status); } && {
40653          test -z "$ac_c_werror_flag" ||
40654          test ! -s conftest.err
40655        } && test -s conftest.$ac_objext; then
40656   ac_cv_func_which_gethostbyname_r=six
40657 else
40658   echo "$as_me: failed program was:" >&5
40659 sed 's/^/| /' conftest.$ac_ext >&5
40660
40661
40662 fi
40663
40664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40665
40666 fi
40667
40668 #
40669 # FIVE ARGUMENTS
40670 # (e.g. Solaris)
40671 #
40672
40673 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40674
40675 cat >conftest.$ac_ext <<_ACEOF
40676 /* confdefs.h.  */
40677 _ACEOF
40678 cat confdefs.h >>conftest.$ac_ext
40679 cat >>conftest.$ac_ext <<_ACEOF
40680 /* end confdefs.h.  */
40681 #include <netdb.h>
40682 int
40683 main ()
40684 {
40685
40686             char *name = "www.gnu.org";
40687             struct hostent ret;
40688             char buf[1024];
40689             int buflen = 1024;
40690             int my_h_errno;
40691             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40692
40693   ;
40694   return 0;
40695 }
40696 _ACEOF
40697 rm -f conftest.$ac_objext
40698 if { (ac_try="$ac_compile"
40699 case "(($ac_try" in
40700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40701   *) ac_try_echo=$ac_try;;
40702 esac
40703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40704   (eval "$ac_compile") 2>conftest.er1
40705   ac_status=$?
40706   grep -v '^ *+' conftest.er1 >conftest.err
40707   rm -f conftest.er1
40708   cat conftest.err >&5
40709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710   (exit $ac_status); } && {
40711          test -z "$ac_c_werror_flag" ||
40712          test ! -s conftest.err
40713        } && test -s conftest.$ac_objext; then
40714   ac_cv_func_which_gethostbyname_r=five
40715 else
40716   echo "$as_me: failed program was:" >&5
40717 sed 's/^/| /' conftest.$ac_ext >&5
40718
40719
40720 fi
40721
40722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40723
40724 fi
40725
40726 #
40727 # THREE ARGUMENTS
40728 # (e.g. AIX, HP-UX, Tru64)
40729 #
40730
40731 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40732
40733 cat >conftest.$ac_ext <<_ACEOF
40734 /* confdefs.h.  */
40735 _ACEOF
40736 cat confdefs.h >>conftest.$ac_ext
40737 cat >>conftest.$ac_ext <<_ACEOF
40738 /* end confdefs.h.  */
40739 #include <netdb.h>
40740 int
40741 main ()
40742 {
40743
40744             char *name = "www.gnu.org";
40745             struct hostent ret;
40746             struct hostent_data data;
40747             (void)gethostbyname_r(name, &ret, &data) /* ; */
40748
40749   ;
40750   return 0;
40751 }
40752 _ACEOF
40753 rm -f conftest.$ac_objext
40754 if { (ac_try="$ac_compile"
40755 case "(($ac_try" in
40756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40757   *) ac_try_echo=$ac_try;;
40758 esac
40759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40760   (eval "$ac_compile") 2>conftest.er1
40761   ac_status=$?
40762   grep -v '^ *+' conftest.er1 >conftest.err
40763   rm -f conftest.er1
40764   cat conftest.err >&5
40765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766   (exit $ac_status); } && {
40767          test -z "$ac_c_werror_flag" ||
40768          test ! -s conftest.err
40769        } && test -s conftest.$ac_objext; then
40770   ac_cv_func_which_gethostbyname_r=three
40771 else
40772   echo "$as_me: failed program was:" >&5
40773 sed 's/^/| /' conftest.$ac_ext >&5
40774
40775
40776 fi
40777
40778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40779
40780 fi
40781
40782 ################################################################
40783
40784
40785 fi
40786
40787 case "$ac_cv_func_which_gethostbyname_r" in
40788     three)
40789     { echo "$as_me:$LINENO: result: three" >&5
40790 echo "${ECHO_T}three" >&6; }
40791     cat >>confdefs.h <<\_ACEOF
40792 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40793 _ACEOF
40794
40795     ;;
40796
40797     five)
40798     { echo "$as_me:$LINENO: result: five" >&5
40799 echo "${ECHO_T}five" >&6; }
40800     cat >>confdefs.h <<\_ACEOF
40801 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40802 _ACEOF
40803
40804     ;;
40805
40806     six)
40807     { echo "$as_me:$LINENO: result: six" >&5
40808 echo "${ECHO_T}six" >&6; }
40809     cat >>confdefs.h <<\_ACEOF
40810 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40811 _ACEOF
40812
40813     ;;
40814
40815     no)
40816     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40817 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40818     ;;
40819
40820     unknown)
40821     { echo "$as_me:$LINENO: result: can't tell" >&5
40822 echo "${ECHO_T}can't tell" >&6; }
40823     ;;
40824
40825     *)
40826     { { echo "$as_me:$LINENO: error: internal error" >&5
40827 echo "$as_me: error: internal error" >&2;}
40828    { (exit 1); exit 1; }; }
40829     ;;
40830 esac
40831
40832 ac_ext=c
40833 ac_cpp='$CPP $CPPFLAGS'
40834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40837
40838
40839
40840       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40841               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40842           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40843 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40844 if test "${ac_cv_func_gethostbyname+set}" = set; then
40845   echo $ECHO_N "(cached) $ECHO_C" >&6
40846 else
40847   cat >conftest.$ac_ext <<_ACEOF
40848 /* confdefs.h.  */
40849 _ACEOF
40850 cat confdefs.h >>conftest.$ac_ext
40851 cat >>conftest.$ac_ext <<_ACEOF
40852 /* end confdefs.h.  */
40853 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40855 #define gethostbyname innocuous_gethostbyname
40856
40857 /* System header to define __stub macros and hopefully few prototypes,
40858     which can conflict with char gethostbyname (); below.
40859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40860     <limits.h> exists even on freestanding compilers.  */
40861
40862 #ifdef __STDC__
40863 # include <limits.h>
40864 #else
40865 # include <assert.h>
40866 #endif
40867
40868 #undef gethostbyname
40869
40870 /* Override any GCC internal prototype to avoid an error.
40871    Use char because int might match the return type of a GCC
40872    builtin and then its argument prototype would still apply.  */
40873 #ifdef __cplusplus
40874 extern "C"
40875 #endif
40876 char gethostbyname ();
40877 /* The GNU C library defines this for functions which it implements
40878     to always fail with ENOSYS.  Some functions are actually named
40879     something starting with __ and the normal name is an alias.  */
40880 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40881 choke me
40882 #endif
40883
40884 int
40885 main ()
40886 {
40887 return gethostbyname ();
40888   ;
40889   return 0;
40890 }
40891 _ACEOF
40892 rm -f conftest.$ac_objext conftest$ac_exeext
40893 if { (ac_try="$ac_link"
40894 case "(($ac_try" in
40895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40896   *) ac_try_echo=$ac_try;;
40897 esac
40898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40899   (eval "$ac_link") 2>conftest.er1
40900   ac_status=$?
40901   grep -v '^ *+' conftest.er1 >conftest.err
40902   rm -f conftest.er1
40903   cat conftest.err >&5
40904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40905   (exit $ac_status); } && {
40906          test -z "$ac_c_werror_flag" ||
40907          test ! -s conftest.err
40908        } && test -s conftest$ac_exeext &&
40909        $as_test_x conftest$ac_exeext; then
40910   ac_cv_func_gethostbyname=yes
40911 else
40912   echo "$as_me: failed program was:" >&5
40913 sed 's/^/| /' conftest.$ac_ext >&5
40914
40915         ac_cv_func_gethostbyname=no
40916 fi
40917
40918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40919       conftest$ac_exeext conftest.$ac_ext
40920 fi
40921 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40922 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40923 if test $ac_cv_func_gethostbyname = yes; then
40924    cat >>confdefs.h <<\_ACEOF
40925 #define HAVE_GETHOSTBYNAME 1
40926 _ACEOF
40927
40928 fi
40929
40930       fi
40931
40932 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40933 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40934 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40935   echo $ECHO_N "(cached) $ECHO_C" >&6
40936 else
40937
40938                 ac_ext=cpp
40939 ac_cpp='$CXXCPP $CPPFLAGS'
40940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40943
40944
40945         cat >conftest.$ac_ext <<_ACEOF
40946 /* confdefs.h.  */
40947 _ACEOF
40948 cat confdefs.h >>conftest.$ac_ext
40949 cat >>conftest.$ac_ext <<_ACEOF
40950 /* end confdefs.h.  */
40951 #include <netdb.h>
40952 int
40953 main ()
40954 {
40955
40956                 char *name;
40957                 char *proto;
40958                 struct servent *se, *res;
40959                 char buffer[2048];
40960                 int buflen = 2048;
40961                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40962
40963   ;
40964   return 0;
40965 }
40966 _ACEOF
40967 rm -f conftest.$ac_objext
40968 if { (ac_try="$ac_compile"
40969 case "(($ac_try" in
40970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40971   *) ac_try_echo=$ac_try;;
40972 esac
40973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40974   (eval "$ac_compile") 2>conftest.er1
40975   ac_status=$?
40976   grep -v '^ *+' conftest.er1 >conftest.err
40977   rm -f conftest.er1
40978   cat conftest.err >&5
40979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40980   (exit $ac_status); } && {
40981          test -z "$ac_cxx_werror_flag" ||
40982          test ! -s conftest.err
40983        } && test -s conftest.$ac_objext; then
40984   ac_cv_func_which_getservbyname_r=six
40985 else
40986   echo "$as_me: failed program was:" >&5
40987 sed 's/^/| /' conftest.$ac_ext >&5
40988
40989
40990                 cat >conftest.$ac_ext <<_ACEOF
40991 /* confdefs.h.  */
40992 _ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h.  */
40996 #include <netdb.h>
40997 int
40998 main ()
40999 {
41000
41001                         char *name;
41002                         char *proto;
41003                         struct servent *se;
41004                         char buffer[2048];
41005                         int buflen = 2048;
41006                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41007
41008   ;
41009   return 0;
41010 }
41011 _ACEOF
41012 rm -f conftest.$ac_objext
41013 if { (ac_try="$ac_compile"
41014 case "(($ac_try" in
41015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41016   *) ac_try_echo=$ac_try;;
41017 esac
41018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41019   (eval "$ac_compile") 2>conftest.er1
41020   ac_status=$?
41021   grep -v '^ *+' conftest.er1 >conftest.err
41022   rm -f conftest.er1
41023   cat conftest.err >&5
41024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41025   (exit $ac_status); } && {
41026          test -z "$ac_cxx_werror_flag" ||
41027          test ! -s conftest.err
41028        } && test -s conftest.$ac_objext; then
41029   ac_cv_func_which_getservbyname_r=five
41030 else
41031   echo "$as_me: failed program was:" >&5
41032 sed 's/^/| /' conftest.$ac_ext >&5
41033
41034
41035                         cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041 #include <netdb.h>
41042 int
41043 main ()
41044 {
41045
41046                                 char *name;
41047                                 char *proto;
41048                                 struct servent *se;
41049                                 struct servent_data data;
41050                                 (void) getservbyname_r(name, proto, se, &data);
41051
41052   ;
41053   return 0;
41054 }
41055 _ACEOF
41056 rm -f conftest.$ac_objext
41057 if { (ac_try="$ac_compile"
41058 case "(($ac_try" in
41059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060   *) ac_try_echo=$ac_try;;
41061 esac
41062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41063   (eval "$ac_compile") 2>conftest.er1
41064   ac_status=$?
41065   grep -v '^ *+' conftest.er1 >conftest.err
41066   rm -f conftest.er1
41067   cat conftest.err >&5
41068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069   (exit $ac_status); } && {
41070          test -z "$ac_cxx_werror_flag" ||
41071          test ! -s conftest.err
41072        } && test -s conftest.$ac_objext; then
41073   ac_cv_func_which_getservbyname_r=four
41074 else
41075   echo "$as_me: failed program was:" >&5
41076 sed 's/^/| /' conftest.$ac_ext >&5
41077
41078         ac_cv_func_which_getservbyname_r=no
41079
41080 fi
41081
41082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41083
41084
41085 fi
41086
41087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41088
41089
41090 fi
41091
41092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41093         ac_ext=c
41094 ac_cpp='$CPP $CPPFLAGS'
41095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41098
41099
41100
41101 fi
41102 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41103 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41104
41105 if test $ac_cv_func_which_getservbyname_r = six; then
41106   cat >>confdefs.h <<\_ACEOF
41107 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41108 _ACEOF
41109
41110 elif test $ac_cv_func_which_getservbyname_r = five; then
41111   cat >>confdefs.h <<\_ACEOF
41112 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41113 _ACEOF
41114
41115 elif test $ac_cv_func_which_getservbyname_r = four; then
41116   cat >>confdefs.h <<\_ACEOF
41117 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41118 _ACEOF
41119
41120 fi
41121
41122
41123       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41124               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41125
41126 for ac_func in getservbyname
41127 do
41128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41132   echo $ECHO_N "(cached) $ECHO_C" >&6
41133 else
41134   cat >conftest.$ac_ext <<_ACEOF
41135 /* confdefs.h.  */
41136 _ACEOF
41137 cat confdefs.h >>conftest.$ac_ext
41138 cat >>conftest.$ac_ext <<_ACEOF
41139 /* end confdefs.h.  */
41140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41142 #define $ac_func innocuous_$ac_func
41143
41144 /* System header to define __stub macros and hopefully few prototypes,
41145     which can conflict with char $ac_func (); below.
41146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41147     <limits.h> exists even on freestanding compilers.  */
41148
41149 #ifdef __STDC__
41150 # include <limits.h>
41151 #else
41152 # include <assert.h>
41153 #endif
41154
41155 #undef $ac_func
41156
41157 /* Override any GCC internal prototype to avoid an error.
41158    Use char because int might match the return type of a GCC
41159    builtin and then its argument prototype would still apply.  */
41160 #ifdef __cplusplus
41161 extern "C"
41162 #endif
41163 char $ac_func ();
41164 /* The GNU C library defines this for functions which it implements
41165     to always fail with ENOSYS.  Some functions are actually named
41166     something starting with __ and the normal name is an alias.  */
41167 #if defined __stub_$ac_func || defined __stub___$ac_func
41168 choke me
41169 #endif
41170
41171 int
41172 main ()
41173 {
41174 return $ac_func ();
41175   ;
41176   return 0;
41177 }
41178 _ACEOF
41179 rm -f conftest.$ac_objext conftest$ac_exeext
41180 if { (ac_try="$ac_link"
41181 case "(($ac_try" in
41182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41183   *) ac_try_echo=$ac_try;;
41184 esac
41185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41186   (eval "$ac_link") 2>conftest.er1
41187   ac_status=$?
41188   grep -v '^ *+' conftest.er1 >conftest.err
41189   rm -f conftest.er1
41190   cat conftest.err >&5
41191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192   (exit $ac_status); } && {
41193          test -z "$ac_c_werror_flag" ||
41194          test ! -s conftest.err
41195        } && test -s conftest$ac_exeext &&
41196        $as_test_x conftest$ac_exeext; then
41197   eval "$as_ac_var=yes"
41198 else
41199   echo "$as_me: failed program was:" >&5
41200 sed 's/^/| /' conftest.$ac_ext >&5
41201
41202         eval "$as_ac_var=no"
41203 fi
41204
41205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41206       conftest$ac_exeext conftest.$ac_ext
41207 fi
41208 ac_res=`eval echo '${'$as_ac_var'}'`
41209                { echo "$as_me:$LINENO: result: $ac_res" >&5
41210 echo "${ECHO_T}$ac_res" >&6; }
41211 if test `eval echo '${'$as_ac_var'}'` = yes; then
41212   cat >>confdefs.h <<_ACEOF
41213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41214 _ACEOF
41215   cat >>confdefs.h <<\_ACEOF
41216 #define HAVE_GETSERVBYNAME 1
41217 _ACEOF
41218
41219 fi
41220 done
41221
41222       fi
41223
41224 if test "$wxUSE_THREADS" = "yes"; then
41225   cat >>confdefs.h <<\_ACEOF
41226 #define wxUSE_THREADS 1
41227 _ACEOF
41228
41229
41230   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41231 else
41232       if test "$wx_cv_func_strtok_r" = "yes"; then
41233     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41234 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41235     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41236         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41237         { echo "$as_me:$LINENO: result: yes" >&5
41238 echo "${ECHO_T}yes" >&6; }
41239     else
41240         { echo "$as_me:$LINENO: result: no" >&5
41241 echo "${ECHO_T}no" >&6; }
41242     fi
41243   fi
41244 fi
41245
41246 if test "$WXGTK2" = 1 ; then
41247   cat >>confdefs.h <<_ACEOF
41248 #define __WXGTK20__ $WXGTK2
41249 _ACEOF
41250
41251   WXGTK12=1
41252 fi
41253
41254 if test "$WXGTK12" = 1 ; then
41255   cat >>confdefs.h <<_ACEOF
41256 #define __WXGTK12__ $WXGTK12
41257 _ACEOF
41258
41259 fi
41260
41261 if test "$WXGTK127" = 1 ; then
41262   cat >>confdefs.h <<_ACEOF
41263 #define __WXGTK127__ $WXGTK127
41264 _ACEOF
41265
41266 fi
41267
41268 if test "$WXGPE" = 1 ; then
41269   cat >>confdefs.h <<_ACEOF
41270 #define __WXGPE__ $WXGPE
41271 _ACEOF
41272
41273 fi
41274
41275 DEBUG_CFLAGS=
41276 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41277     DEBUG_CFLAGS="-g"
41278 fi
41279
41280 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41281     wxUSE_DEBUG_INFO=yes
41282     if test "$GCC" = yes; then
41283         DEBUG_CFLAGS="-ggdb"
41284     fi
41285 fi
41286
41287 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41288     cat >>confdefs.h <<\_ACEOF
41289 #define WXDEBUG 1
41290 _ACEOF
41291
41292     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41293 else
41294     if test "$wxUSE_GTK" = 1 ; then
41295         if test "x$wxGTK_VERSION" = "x1" ; then
41296             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41297         fi
41298     fi
41299 fi
41300
41301 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41302     cat >>confdefs.h <<\_ACEOF
41303 #define wxUSE_MEMORY_TRACING 1
41304 _ACEOF
41305
41306     cat >>confdefs.h <<\_ACEOF
41307 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41308 _ACEOF
41309
41310     cat >>confdefs.h <<\_ACEOF
41311 #define wxUSE_DEBUG_NEW_ALWAYS 1
41312 _ACEOF
41313
41314     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41315 fi
41316
41317 if test "$wxUSE_DMALLOC" = "yes" ; then
41318     DMALLOC_LIBS="-ldmallocthcxx"
41319 fi
41320
41321 PROFILE_FLAGS=
41322 if test "$wxUSE_PROFILE" = "yes" ; then
41323     PROFILE_FLAGS=" -pg"
41324 fi
41325
41326 if test "$GCC" = "yes" ; then
41327     if test "$wxUSE_NO_RTTI" = "yes" ; then
41328         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41329     fi
41330     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41331         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41332     fi
41333     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41334         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41335     fi
41336
41337                                                 case "${host}" in
41338       powerpc*-*-aix* )
41339         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41340         ;;
41341       *-hppa* )
41342         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41343         ;;
41344     esac
41345 fi
41346
41347 OPTIMISE_CFLAGS=
41348 if test "$wxUSE_OPTIMISE" = "no" ; then
41349     if test "$GCC" = yes ; then
41350                         OPTIMISE_CFLAGS="-O0"
41351     fi
41352 else
41353     if test "$GCC" = yes ; then
41354         case "${host}" in
41355             *-pc-os2_emx | *-pc-os2-emx )
41356                                                 OPTIMISE_CFLAGS="-O2"
41357             ;;
41358             *)
41359                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41360             ;;
41361         esac
41362     else
41363         OPTIMISE_CFLAGS="-O"
41364     fi
41365 fi
41366
41367
41368 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41369     cat >>confdefs.h <<\_ACEOF
41370 #define WXWIN_COMPATIBILITY_2_6 1
41371 _ACEOF
41372
41373
41374     WXWIN_COMPATIBILITY_2_8="yes"
41375 fi
41376
41377 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41378     cat >>confdefs.h <<\_ACEOF
41379 #define WXWIN_COMPATIBILITY_2_8 1
41380 _ACEOF
41381
41382 fi
41383
41384
41385 if test "$wxUSE_GUI" = "yes"; then
41386     cat >>confdefs.h <<\_ACEOF
41387 #define wxUSE_GUI 1
41388 _ACEOF
41389
41390
41391                                             fi
41392
41393
41394 if test "$wxUSE_UNIX" = "yes"; then
41395   cat >>confdefs.h <<\_ACEOF
41396 #define wxUSE_UNIX 1
41397 _ACEOF
41398
41399 fi
41400
41401
41402 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41403
41404     HAVE_DL_FUNCS=0
41405     HAVE_SHL_FUNCS=0
41406     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41407         if test "$USE_DOS" = 1; then
41408             HAVE_DL_FUNCS=0
41409         else
41410
41411 for ac_func in dlopen
41412 do
41413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41417   echo $ECHO_N "(cached) $ECHO_C" >&6
41418 else
41419   cat >conftest.$ac_ext <<_ACEOF
41420 /* confdefs.h.  */
41421 _ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h.  */
41425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41427 #define $ac_func innocuous_$ac_func
41428
41429 /* System header to define __stub macros and hopefully few prototypes,
41430     which can conflict with char $ac_func (); below.
41431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41432     <limits.h> exists even on freestanding compilers.  */
41433
41434 #ifdef __STDC__
41435 # include <limits.h>
41436 #else
41437 # include <assert.h>
41438 #endif
41439
41440 #undef $ac_func
41441
41442 /* Override any GCC internal prototype to avoid an error.
41443    Use char because int might match the return type of a GCC
41444    builtin and then its argument prototype would still apply.  */
41445 #ifdef __cplusplus
41446 extern "C"
41447 #endif
41448 char $ac_func ();
41449 /* The GNU C library defines this for functions which it implements
41450     to always fail with ENOSYS.  Some functions are actually named
41451     something starting with __ and the normal name is an alias.  */
41452 #if defined __stub_$ac_func || defined __stub___$ac_func
41453 choke me
41454 #endif
41455
41456 int
41457 main ()
41458 {
41459 return $ac_func ();
41460   ;
41461   return 0;
41462 }
41463 _ACEOF
41464 rm -f conftest.$ac_objext conftest$ac_exeext
41465 if { (ac_try="$ac_link"
41466 case "(($ac_try" in
41467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41468   *) ac_try_echo=$ac_try;;
41469 esac
41470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41471   (eval "$ac_link") 2>conftest.er1
41472   ac_status=$?
41473   grep -v '^ *+' conftest.er1 >conftest.err
41474   rm -f conftest.er1
41475   cat conftest.err >&5
41476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477   (exit $ac_status); } && {
41478          test -z "$ac_c_werror_flag" ||
41479          test ! -s conftest.err
41480        } && test -s conftest$ac_exeext &&
41481        $as_test_x conftest$ac_exeext; then
41482   eval "$as_ac_var=yes"
41483 else
41484   echo "$as_me: failed program was:" >&5
41485 sed 's/^/| /' conftest.$ac_ext >&5
41486
41487         eval "$as_ac_var=no"
41488 fi
41489
41490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41491       conftest$ac_exeext conftest.$ac_ext
41492 fi
41493 ac_res=`eval echo '${'$as_ac_var'}'`
41494                { echo "$as_me:$LINENO: result: $ac_res" >&5
41495 echo "${ECHO_T}$ac_res" >&6; }
41496 if test `eval echo '${'$as_ac_var'}'` = yes; then
41497   cat >>confdefs.h <<_ACEOF
41498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41499 _ACEOF
41500
41501                 cat >>confdefs.h <<\_ACEOF
41502 #define HAVE_DLOPEN 1
41503 _ACEOF
41504
41505                 HAVE_DL_FUNCS=1
41506
41507 else
41508
41509                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41510 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41511 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41512   echo $ECHO_N "(cached) $ECHO_C" >&6
41513 else
41514   ac_check_lib_save_LIBS=$LIBS
41515 LIBS="-ldl  $LIBS"
41516 cat >conftest.$ac_ext <<_ACEOF
41517 /* confdefs.h.  */
41518 _ACEOF
41519 cat confdefs.h >>conftest.$ac_ext
41520 cat >>conftest.$ac_ext <<_ACEOF
41521 /* end confdefs.h.  */
41522
41523 /* Override any GCC internal prototype to avoid an error.
41524    Use char because int might match the return type of a GCC
41525    builtin and then its argument prototype would still apply.  */
41526 #ifdef __cplusplus
41527 extern "C"
41528 #endif
41529 char dlopen ();
41530 int
41531 main ()
41532 {
41533 return dlopen ();
41534   ;
41535   return 0;
41536 }
41537 _ACEOF
41538 rm -f conftest.$ac_objext conftest$ac_exeext
41539 if { (ac_try="$ac_link"
41540 case "(($ac_try" in
41541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41542   *) ac_try_echo=$ac_try;;
41543 esac
41544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41545   (eval "$ac_link") 2>conftest.er1
41546   ac_status=$?
41547   grep -v '^ *+' conftest.er1 >conftest.err
41548   rm -f conftest.er1
41549   cat conftest.err >&5
41550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551   (exit $ac_status); } && {
41552          test -z "$ac_c_werror_flag" ||
41553          test ! -s conftest.err
41554        } && test -s conftest$ac_exeext &&
41555        $as_test_x conftest$ac_exeext; then
41556   ac_cv_lib_dl_dlopen=yes
41557 else
41558   echo "$as_me: failed program was:" >&5
41559 sed 's/^/| /' conftest.$ac_ext >&5
41560
41561         ac_cv_lib_dl_dlopen=no
41562 fi
41563
41564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41565       conftest$ac_exeext conftest.$ac_ext
41566 LIBS=$ac_check_lib_save_LIBS
41567 fi
41568 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41570 if test $ac_cv_lib_dl_dlopen = yes; then
41571
41572                                 cat >>confdefs.h <<\_ACEOF
41573 #define HAVE_DLOPEN 1
41574 _ACEOF
41575
41576                                 HAVE_DL_FUNCS=1
41577                                 DL_LINK=" -ldl$DL_LINK"
41578
41579 else
41580
41581
41582 for ac_func in shl_load
41583 do
41584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41588   echo $ECHO_N "(cached) $ECHO_C" >&6
41589 else
41590   cat >conftest.$ac_ext <<_ACEOF
41591 /* confdefs.h.  */
41592 _ACEOF
41593 cat confdefs.h >>conftest.$ac_ext
41594 cat >>conftest.$ac_ext <<_ACEOF
41595 /* end confdefs.h.  */
41596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41598 #define $ac_func innocuous_$ac_func
41599
41600 /* System header to define __stub macros and hopefully few prototypes,
41601     which can conflict with char $ac_func (); below.
41602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41603     <limits.h> exists even on freestanding compilers.  */
41604
41605 #ifdef __STDC__
41606 # include <limits.h>
41607 #else
41608 # include <assert.h>
41609 #endif
41610
41611 #undef $ac_func
41612
41613 /* Override any GCC internal prototype to avoid an error.
41614    Use char because int might match the return type of a GCC
41615    builtin and then its argument prototype would still apply.  */
41616 #ifdef __cplusplus
41617 extern "C"
41618 #endif
41619 char $ac_func ();
41620 /* The GNU C library defines this for functions which it implements
41621     to always fail with ENOSYS.  Some functions are actually named
41622     something starting with __ and the normal name is an alias.  */
41623 #if defined __stub_$ac_func || defined __stub___$ac_func
41624 choke me
41625 #endif
41626
41627 int
41628 main ()
41629 {
41630 return $ac_func ();
41631   ;
41632   return 0;
41633 }
41634 _ACEOF
41635 rm -f conftest.$ac_objext conftest$ac_exeext
41636 if { (ac_try="$ac_link"
41637 case "(($ac_try" in
41638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41639   *) ac_try_echo=$ac_try;;
41640 esac
41641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41642   (eval "$ac_link") 2>conftest.er1
41643   ac_status=$?
41644   grep -v '^ *+' conftest.er1 >conftest.err
41645   rm -f conftest.er1
41646   cat conftest.err >&5
41647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648   (exit $ac_status); } && {
41649          test -z "$ac_c_werror_flag" ||
41650          test ! -s conftest.err
41651        } && test -s conftest$ac_exeext &&
41652        $as_test_x conftest$ac_exeext; then
41653   eval "$as_ac_var=yes"
41654 else
41655   echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41657
41658         eval "$as_ac_var=no"
41659 fi
41660
41661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41662       conftest$ac_exeext conftest.$ac_ext
41663 fi
41664 ac_res=`eval echo '${'$as_ac_var'}'`
41665                { echo "$as_me:$LINENO: result: $ac_res" >&5
41666 echo "${ECHO_T}$ac_res" >&6; }
41667 if test `eval echo '${'$as_ac_var'}'` = yes; then
41668   cat >>confdefs.h <<_ACEOF
41669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41670 _ACEOF
41671
41672                                                 cat >>confdefs.h <<\_ACEOF
41673 #define HAVE_SHL_LOAD 1
41674 _ACEOF
41675
41676                                                 HAVE_SHL_FUNCS=1
41677
41678 else
41679
41680                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41681 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41682 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41683   echo $ECHO_N "(cached) $ECHO_C" >&6
41684 else
41685   ac_check_lib_save_LIBS=$LIBS
41686 LIBS="-lshl_load  $LIBS"
41687 cat >conftest.$ac_ext <<_ACEOF
41688 /* confdefs.h.  */
41689 _ACEOF
41690 cat confdefs.h >>conftest.$ac_ext
41691 cat >>conftest.$ac_ext <<_ACEOF
41692 /* end confdefs.h.  */
41693
41694 /* Override any GCC internal prototype to avoid an error.
41695    Use char because int might match the return type of a GCC
41696    builtin and then its argument prototype would still apply.  */
41697 #ifdef __cplusplus
41698 extern "C"
41699 #endif
41700 char dld ();
41701 int
41702 main ()
41703 {
41704 return dld ();
41705   ;
41706   return 0;
41707 }
41708 _ACEOF
41709 rm -f conftest.$ac_objext conftest$ac_exeext
41710 if { (ac_try="$ac_link"
41711 case "(($ac_try" in
41712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41713   *) ac_try_echo=$ac_try;;
41714 esac
41715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41716   (eval "$ac_link") 2>conftest.er1
41717   ac_status=$?
41718   grep -v '^ *+' conftest.er1 >conftest.err
41719   rm -f conftest.er1
41720   cat conftest.err >&5
41721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722   (exit $ac_status); } && {
41723          test -z "$ac_c_werror_flag" ||
41724          test ! -s conftest.err
41725        } && test -s conftest$ac_exeext &&
41726        $as_test_x conftest$ac_exeext; then
41727   ac_cv_lib_shl_load_dld=yes
41728 else
41729   echo "$as_me: failed program was:" >&5
41730 sed 's/^/| /' conftest.$ac_ext >&5
41731
41732         ac_cv_lib_shl_load_dld=no
41733 fi
41734
41735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41736       conftest$ac_exeext conftest.$ac_ext
41737 LIBS=$ac_check_lib_save_LIBS
41738 fi
41739 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41740 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41741 if test $ac_cv_lib_shl_load_dld = yes; then
41742
41743                                                                 HAVE_SHL_FUNCS=1
41744                                                                 DL_LINK=" -ldld$DL_LINK"
41745
41746 fi
41747
41748
41749 fi
41750 done
41751
41752
41753 fi
41754
41755
41756 fi
41757 done
41758
41759
41760                         if test "$HAVE_DL_FUNCS" = 1; then
41761
41762 for ac_func in dlerror
41763 do
41764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41768   echo $ECHO_N "(cached) $ECHO_C" >&6
41769 else
41770   cat >conftest.$ac_ext <<_ACEOF
41771 /* confdefs.h.  */
41772 _ACEOF
41773 cat confdefs.h >>conftest.$ac_ext
41774 cat >>conftest.$ac_ext <<_ACEOF
41775 /* end confdefs.h.  */
41776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41778 #define $ac_func innocuous_$ac_func
41779
41780 /* System header to define __stub macros and hopefully few prototypes,
41781     which can conflict with char $ac_func (); below.
41782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41783     <limits.h> exists even on freestanding compilers.  */
41784
41785 #ifdef __STDC__
41786 # include <limits.h>
41787 #else
41788 # include <assert.h>
41789 #endif
41790
41791 #undef $ac_func
41792
41793 /* Override any GCC internal prototype to avoid an error.
41794    Use char because int might match the return type of a GCC
41795    builtin and then its argument prototype would still apply.  */
41796 #ifdef __cplusplus
41797 extern "C"
41798 #endif
41799 char $ac_func ();
41800 /* The GNU C library defines this for functions which it implements
41801     to always fail with ENOSYS.  Some functions are actually named
41802     something starting with __ and the normal name is an alias.  */
41803 #if defined __stub_$ac_func || defined __stub___$ac_func
41804 choke me
41805 #endif
41806
41807 int
41808 main ()
41809 {
41810 return $ac_func ();
41811   ;
41812   return 0;
41813 }
41814 _ACEOF
41815 rm -f conftest.$ac_objext conftest$ac_exeext
41816 if { (ac_try="$ac_link"
41817 case "(($ac_try" in
41818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41819   *) ac_try_echo=$ac_try;;
41820 esac
41821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41822   (eval "$ac_link") 2>conftest.er1
41823   ac_status=$?
41824   grep -v '^ *+' conftest.er1 >conftest.err
41825   rm -f conftest.er1
41826   cat conftest.err >&5
41827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41828   (exit $ac_status); } && {
41829          test -z "$ac_c_werror_flag" ||
41830          test ! -s conftest.err
41831        } && test -s conftest$ac_exeext &&
41832        $as_test_x conftest$ac_exeext; then
41833   eval "$as_ac_var=yes"
41834 else
41835   echo "$as_me: failed program was:" >&5
41836 sed 's/^/| /' conftest.$ac_ext >&5
41837
41838         eval "$as_ac_var=no"
41839 fi
41840
41841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41842       conftest$ac_exeext conftest.$ac_ext
41843 fi
41844 ac_res=`eval echo '${'$as_ac_var'}'`
41845                { echo "$as_me:$LINENO: result: $ac_res" >&5
41846 echo "${ECHO_T}$ac_res" >&6; }
41847 if test `eval echo '${'$as_ac_var'}'` = yes; then
41848   cat >>confdefs.h <<_ACEOF
41849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41850 _ACEOF
41851  cat >>confdefs.h <<\_ACEOF
41852 #define HAVE_DLERROR 1
41853 _ACEOF
41854
41855 else
41856
41857                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41858 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41859 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41860   echo $ECHO_N "(cached) $ECHO_C" >&6
41861 else
41862   ac_check_lib_save_LIBS=$LIBS
41863 LIBS="-ldl  $LIBS"
41864 cat >conftest.$ac_ext <<_ACEOF
41865 /* confdefs.h.  */
41866 _ACEOF
41867 cat confdefs.h >>conftest.$ac_ext
41868 cat >>conftest.$ac_ext <<_ACEOF
41869 /* end confdefs.h.  */
41870
41871 /* Override any GCC internal prototype to avoid an error.
41872    Use char because int might match the return type of a GCC
41873    builtin and then its argument prototype would still apply.  */
41874 #ifdef __cplusplus
41875 extern "C"
41876 #endif
41877 char dlerror ();
41878 int
41879 main ()
41880 {
41881 return dlerror ();
41882   ;
41883   return 0;
41884 }
41885 _ACEOF
41886 rm -f conftest.$ac_objext conftest$ac_exeext
41887 if { (ac_try="$ac_link"
41888 case "(($ac_try" in
41889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41890   *) ac_try_echo=$ac_try;;
41891 esac
41892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41893   (eval "$ac_link") 2>conftest.er1
41894   ac_status=$?
41895   grep -v '^ *+' conftest.er1 >conftest.err
41896   rm -f conftest.er1
41897   cat conftest.err >&5
41898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41899   (exit $ac_status); } && {
41900          test -z "$ac_c_werror_flag" ||
41901          test ! -s conftest.err
41902        } && test -s conftest$ac_exeext &&
41903        $as_test_x conftest$ac_exeext; then
41904   ac_cv_lib_dl_dlerror=yes
41905 else
41906   echo "$as_me: failed program was:" >&5
41907 sed 's/^/| /' conftest.$ac_ext >&5
41908
41909         ac_cv_lib_dl_dlerror=no
41910 fi
41911
41912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41913       conftest$ac_exeext conftest.$ac_ext
41914 LIBS=$ac_check_lib_save_LIBS
41915 fi
41916 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41917 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41918 if test $ac_cv_lib_dl_dlerror = yes; then
41919   cat >>confdefs.h <<\_ACEOF
41920 #define HAVE_DLERROR 1
41921 _ACEOF
41922
41923 fi
41924
41925
41926
41927 fi
41928 done
41929
41930             fi
41931         fi
41932
41933                 if test "$USE_DARWIN" = 1; then
41934                         HAVE_DL_FUNCS=1
41935         fi
41936
41937         if test "$HAVE_DL_FUNCS" = 0; then
41938             if test "$HAVE_SHL_FUNCS" = 0; then
41939               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41940                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41941 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41942                   wxUSE_DYNAMIC_LOADER=no
41943                   wxUSE_DYNLIB_CLASS=no
41944               else
41945                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41946 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41947               fi
41948             fi
41949         fi
41950     fi
41951 fi
41952
41953 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41954     cat >>confdefs.h <<\_ACEOF
41955 #define wxUSE_DYNAMIC_LOADER 1
41956 _ACEOF
41957
41958 fi
41959 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41960     cat >>confdefs.h <<\_ACEOF
41961 #define wxUSE_DYNLIB_CLASS 1
41962 _ACEOF
41963
41964 fi
41965
41966
41967
41968 if test "$wxUSE_PLUGINS" = "yes" ; then
41969     if test "$wxUSE_SHARED" = "no" ; then
41970         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41971 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41972         wxUSE_PLUGINS=no
41973     fi
41974     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41975         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41976 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41977         wxUSE_PLUGINS=no
41978     fi
41979     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41980         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41981 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41982         wxUSE_PLUGINS=no
41983     fi
41984     if test "$wxUSE_PLUGINS" = "yes" ; then
41985         cat >>confdefs.h <<\_ACEOF
41986 #define wxUSE_PLUGINS 1
41987 _ACEOF
41988
41989     fi
41990 fi
41991
41992
41993 if test "$wxUSE_STL" = "yes"; then
41994   cat >>confdefs.h <<\_ACEOF
41995 #define wxUSE_STL 1
41996 _ACEOF
41997
41998 fi
41999
42000 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42001   cat >>confdefs.h <<\_ACEOF
42002 #define wxUSE_EXTENDED_RTTI 1
42003 _ACEOF
42004
42005 fi
42006
42007 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42008   cat >>confdefs.h <<\_ACEOF
42009 #define wxUSE_APPLE_IEEE 1
42010 _ACEOF
42011
42012 fi
42013
42014 if test "$wxUSE_TIMER" = "yes"; then
42015   cat >>confdefs.h <<\_ACEOF
42016 #define wxUSE_TIMER 1
42017 _ACEOF
42018
42019 fi
42020
42021 if test "$USE_UNIX" = 1 ; then
42022         if test "$wxUSE_MGL" != 1; then
42023                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42024 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42025 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42026   echo $ECHO_N "(cached) $ECHO_C" >&6
42027 else
42028
42029             cat >conftest.$ac_ext <<_ACEOF
42030 /* confdefs.h.  */
42031 _ACEOF
42032 cat confdefs.h >>conftest.$ac_ext
42033 cat >>conftest.$ac_ext <<_ACEOF
42034 /* end confdefs.h.  */
42035
42036                     #include <sys/ioctl.h>
42037                     #include <sys/soundcard.h>
42038
42039 int
42040 main ()
42041 {
42042
42043                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42044
42045   ;
42046   return 0;
42047 }
42048 _ACEOF
42049 rm -f conftest.$ac_objext conftest$ac_exeext
42050 if { (ac_try="$ac_link"
42051 case "(($ac_try" in
42052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42053   *) ac_try_echo=$ac_try;;
42054 esac
42055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42056   (eval "$ac_link") 2>conftest.er1
42057   ac_status=$?
42058   grep -v '^ *+' conftest.er1 >conftest.err
42059   rm -f conftest.er1
42060   cat conftest.err >&5
42061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062   (exit $ac_status); } && {
42063          test -z "$ac_c_werror_flag" ||
42064          test ! -s conftest.err
42065        } && test -s conftest$ac_exeext &&
42066        $as_test_x conftest$ac_exeext; then
42067   ac_cv_header_sys_soundcard=yes
42068 else
42069   echo "$as_me: failed program was:" >&5
42070 sed 's/^/| /' conftest.$ac_ext >&5
42071
42072
42073                     saveLibs="$LIBS"
42074                     LIBS="$saveLibs -lossaudio"
42075                     cat >conftest.$ac_ext <<_ACEOF
42076 /* confdefs.h.  */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h.  */
42081
42082                             #include <sys/ioctl.h>
42083                             #include <sys/soundcard.h>
42084
42085 int
42086 main ()
42087 {
42088
42089                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42090
42091   ;
42092   return 0;
42093 }
42094 _ACEOF
42095 rm -f conftest.$ac_objext conftest$ac_exeext
42096 if { (ac_try="$ac_link"
42097 case "(($ac_try" in
42098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42099   *) ac_try_echo=$ac_try;;
42100 esac
42101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42102   (eval "$ac_link") 2>conftest.er1
42103   ac_status=$?
42104   grep -v '^ *+' conftest.er1 >conftest.err
42105   rm -f conftest.er1
42106   cat conftest.err >&5
42107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42108   (exit $ac_status); } && {
42109          test -z "$ac_c_werror_flag" ||
42110          test ! -s conftest.err
42111        } && test -s conftest$ac_exeext &&
42112        $as_test_x conftest$ac_exeext; then
42113   ac_cv_header_sys_soundcard=yes
42114 else
42115   echo "$as_me: failed program was:" >&5
42116 sed 's/^/| /' conftest.$ac_ext >&5
42117
42118
42119                             LIBS="$saveLibs"
42120                             ac_cv_header_sys_soundcard=no
42121
42122
42123 fi
42124
42125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42126       conftest$ac_exeext conftest.$ac_ext
42127
42128
42129 fi
42130
42131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42132       conftest$ac_exeext conftest.$ac_ext
42133
42134 fi
42135 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42136 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42137     fi
42138
42139     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42140         cat >>confdefs.h <<\_ACEOF
42141 #define HAVE_SYS_SOUNDCARD_H 1
42142 _ACEOF
42143
42144     fi
42145 fi
42146
42147 WITH_PLUGIN_SDL=0
42148 if test "$wxUSE_SOUND" = "yes"; then
42149   if test "$USE_UNIX" = 1 ; then
42150     if test "$wxUSE_LIBSDL" != "no"; then
42151
42152 # Check whether --with-sdl-prefix was given.
42153 if test "${with_sdl_prefix+set}" = set; then
42154   withval=$with_sdl_prefix; sdl_prefix="$withval"
42155 else
42156   sdl_prefix=""
42157 fi
42158
42159
42160 # Check whether --with-sdl-exec-prefix was given.
42161 if test "${with_sdl_exec_prefix+set}" = set; then
42162   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42163 else
42164   sdl_exec_prefix=""
42165 fi
42166
42167 # Check whether --enable-sdltest was given.
42168 if test "${enable_sdltest+set}" = set; then
42169   enableval=$enable_sdltest;
42170 else
42171   enable_sdltest=yes
42172 fi
42173
42174
42175   if test x$sdl_exec_prefix != x ; then
42176     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42177     if test x${SDL_CONFIG+set} != xset ; then
42178       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42179     fi
42180   fi
42181   if test x$sdl_prefix != x ; then
42182     sdl_args="$sdl_args --prefix=$sdl_prefix"
42183     if test x${SDL_CONFIG+set} != xset ; then
42184       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42185     fi
42186   fi
42187
42188   if test "x$prefix" != xNONE; then
42189     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42190   fi
42191   # Extract the first word of "sdl-config", so it can be a program name with args.
42192 set dummy sdl-config; ac_word=$2
42193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42195 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42196   echo $ECHO_N "(cached) $ECHO_C" >&6
42197 else
42198   case $SDL_CONFIG in
42199   [\\/]* | ?:[\\/]*)
42200   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42201   ;;
42202   *)
42203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42204 for as_dir in $PATH
42205 do
42206   IFS=$as_save_IFS
42207   test -z "$as_dir" && as_dir=.
42208   for ac_exec_ext in '' $ac_executable_extensions; do
42209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42210     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42212     break 2
42213   fi
42214 done
42215 done
42216 IFS=$as_save_IFS
42217
42218   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42219   ;;
42220 esac
42221 fi
42222 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42223 if test -n "$SDL_CONFIG"; then
42224   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42225 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42226 else
42227   { echo "$as_me:$LINENO: result: no" >&5
42228 echo "${ECHO_T}no" >&6; }
42229 fi
42230
42231
42232   min_sdl_version=1.2.0
42233   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42234 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42235   no_sdl=""
42236   if test "$SDL_CONFIG" = "no" ; then
42237     no_sdl=yes
42238   else
42239     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42240     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42241
42242     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42243            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42244     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42245            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42246     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42247            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42248     if test "x$enable_sdltest" = "xyes" ; then
42249       ac_save_CFLAGS="$CFLAGS"
42250       ac_save_CXXFLAGS="$CXXFLAGS"
42251       ac_save_LIBS="$LIBS"
42252       CFLAGS="$CFLAGS $SDL_CFLAGS"
42253       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42254       LIBS="$LIBS $SDL_LIBS"
42255       rm -f conf.sdltest
42256       if test "$cross_compiling" = yes; then
42257   echo $ac_n "cross compiling; assumed OK... $ac_c"
42258 else
42259   cat >conftest.$ac_ext <<_ACEOF
42260 /* confdefs.h.  */
42261 _ACEOF
42262 cat confdefs.h >>conftest.$ac_ext
42263 cat >>conftest.$ac_ext <<_ACEOF
42264 /* end confdefs.h.  */
42265
42266 #include <stdio.h>
42267 #include <stdlib.h>
42268 #include <string.h>
42269 #include "SDL.h"
42270
42271 char*
42272 my_strdup (char *str)
42273 {
42274   char *new_str;
42275
42276   if (str)
42277     {
42278       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42279       strcpy (new_str, str);
42280     }
42281   else
42282     new_str = NULL;
42283
42284   return new_str;
42285 }
42286
42287 int main (int argc, char *argv[])
42288 {
42289   int major, minor, micro;
42290   char *tmp_version;
42291
42292   /* This hangs on some systems (?)
42293   system ("touch conf.sdltest");
42294   */
42295   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42296
42297   /* HP/UX 9 (%@#!) writes to sscanf strings */
42298   tmp_version = my_strdup("$min_sdl_version");
42299   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42300      printf("%s, bad version string\n", "$min_sdl_version");
42301      exit(1);
42302    }
42303
42304    if (($sdl_major_version > major) ||
42305       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42306       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42307     {
42308       return 0;
42309     }
42310   else
42311     {
42312       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42313       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42314       printf("*** best to upgrade to the required version.\n");
42315       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42316       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42317       printf("*** config.cache before re-running configure\n");
42318       return 1;
42319     }
42320 }
42321
42322
42323 _ACEOF
42324 rm -f conftest$ac_exeext
42325 if { (ac_try="$ac_link"
42326 case "(($ac_try" in
42327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42328   *) ac_try_echo=$ac_try;;
42329 esac
42330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42331   (eval "$ac_link") 2>&5
42332   ac_status=$?
42333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42335   { (case "(($ac_try" in
42336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42337   *) ac_try_echo=$ac_try;;
42338 esac
42339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42340   (eval "$ac_try") 2>&5
42341   ac_status=$?
42342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343   (exit $ac_status); }; }; then
42344   :
42345 else
42346   echo "$as_me: program exited with status $ac_status" >&5
42347 echo "$as_me: failed program was:" >&5
42348 sed 's/^/| /' conftest.$ac_ext >&5
42349
42350 ( exit $ac_status )
42351 no_sdl=yes
42352 fi
42353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42354 fi
42355
42356
42357        CFLAGS="$ac_save_CFLAGS"
42358        CXXFLAGS="$ac_save_CXXFLAGS"
42359        LIBS="$ac_save_LIBS"
42360      fi
42361   fi
42362   if test "x$no_sdl" = x ; then
42363      { echo "$as_me:$LINENO: result: yes" >&5
42364 echo "${ECHO_T}yes" >&6; }
42365
42366                     EXTRALIBS_SDL="$SDL_LIBS"
42367                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42368                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42369                     cat >>confdefs.h <<\_ACEOF
42370 #define wxUSE_LIBSDL 1
42371 _ACEOF
42372
42373
42374   else
42375      { echo "$as_me:$LINENO: result: no" >&5
42376 echo "${ECHO_T}no" >&6; }
42377      if test "$SDL_CONFIG" = "no" ; then
42378        echo "*** The sdl-config script installed by SDL could not be found"
42379        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42380        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42381        echo "*** full path to sdl-config."
42382      else
42383        if test -f conf.sdltest ; then
42384         :
42385        else
42386           echo "*** Could not run SDL test program, checking why..."
42387           CFLAGS="$CFLAGS $SDL_CFLAGS"
42388           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42389           LIBS="$LIBS $SDL_LIBS"
42390           cat >conftest.$ac_ext <<_ACEOF
42391 /* confdefs.h.  */
42392 _ACEOF
42393 cat confdefs.h >>conftest.$ac_ext
42394 cat >>conftest.$ac_ext <<_ACEOF
42395 /* end confdefs.h.  */
42396
42397 #include <stdio.h>
42398 #include "SDL.h"
42399
42400 int main(int argc, char *argv[])
42401 { return 0; }
42402 #undef  main
42403 #define main K_and_R_C_main
42404
42405 int
42406 main ()
42407 {
42408  return 0;
42409   ;
42410   return 0;
42411 }
42412 _ACEOF
42413 rm -f conftest.$ac_objext conftest$ac_exeext
42414 if { (ac_try="$ac_link"
42415 case "(($ac_try" in
42416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42417   *) ac_try_echo=$ac_try;;
42418 esac
42419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42420   (eval "$ac_link") 2>conftest.er1
42421   ac_status=$?
42422   grep -v '^ *+' conftest.er1 >conftest.err
42423   rm -f conftest.er1
42424   cat conftest.err >&5
42425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426   (exit $ac_status); } && {
42427          test -z "$ac_c_werror_flag" ||
42428          test ! -s conftest.err
42429        } && test -s conftest$ac_exeext &&
42430        $as_test_x conftest$ac_exeext; then
42431    echo "*** The test program compiled, but did not run. This usually means"
42432           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42433           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42434           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42435           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42436           echo "*** is required on your system"
42437           echo "***"
42438           echo "*** If you have an old version installed, it is best to remove it, although"
42439           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42440 else
42441   echo "$as_me: failed program was:" >&5
42442 sed 's/^/| /' conftest.$ac_ext >&5
42443
42444          echo "*** The test program failed to compile or link. See the file config.log for the"
42445           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42446           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42447           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42448 fi
42449
42450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42451       conftest$ac_exeext conftest.$ac_ext
42452           CFLAGS="$ac_save_CFLAGS"
42453           CXXFLAGS="$ac_save_CXXFLAGS"
42454           LIBS="$ac_save_LIBS"
42455        fi
42456      fi
42457      SDL_CFLAGS=""
42458      SDL_LIBS=""
42459      wxUSE_LIBSDL="no"
42460   fi
42461
42462
42463   rm -f conf.sdltest
42464
42465       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42466         WITH_PLUGIN_SDL=1
42467       fi
42468     fi
42469   else
42470         if test "$wxUSE_MGL" = 1; then
42471         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42472 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42473         wxUSE_SOUND="no"
42474     fi
42475   fi
42476 fi
42477
42478 if test "$wxUSE_SOUND" = "yes"; then
42479   cat >>confdefs.h <<\_ACEOF
42480 #define wxUSE_SOUND 1
42481 _ACEOF
42482
42483   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42484 fi
42485
42486 if test "$WXGTK2" = 1; then
42487
42488
42489 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42490         if test -n "$ac_tool_prefix"; then
42491   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42492 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42495 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42496   echo $ECHO_N "(cached) $ECHO_C" >&6
42497 else
42498   case $PKG_CONFIG in
42499   [\\/]* | ?:[\\/]*)
42500   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42501   ;;
42502   *)
42503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42504 for as_dir in $PATH
42505 do
42506   IFS=$as_save_IFS
42507   test -z "$as_dir" && as_dir=.
42508   for ac_exec_ext in '' $ac_executable_extensions; do
42509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42510     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42512     break 2
42513   fi
42514 done
42515 done
42516 IFS=$as_save_IFS
42517
42518   ;;
42519 esac
42520 fi
42521 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42522 if test -n "$PKG_CONFIG"; then
42523   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42524 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42525 else
42526   { echo "$as_me:$LINENO: result: no" >&5
42527 echo "${ECHO_T}no" >&6; }
42528 fi
42529
42530
42531 fi
42532 if test -z "$ac_cv_path_PKG_CONFIG"; then
42533   ac_pt_PKG_CONFIG=$PKG_CONFIG
42534   # Extract the first word of "pkg-config", so it can be a program name with args.
42535 set dummy pkg-config; ac_word=$2
42536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42538 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42539   echo $ECHO_N "(cached) $ECHO_C" >&6
42540 else
42541   case $ac_pt_PKG_CONFIG in
42542   [\\/]* | ?:[\\/]*)
42543   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42544   ;;
42545   *)
42546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42547 for as_dir in $PATH
42548 do
42549   IFS=$as_save_IFS
42550   test -z "$as_dir" && as_dir=.
42551   for ac_exec_ext in '' $ac_executable_extensions; do
42552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42553     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42555     break 2
42556   fi
42557 done
42558 done
42559 IFS=$as_save_IFS
42560
42561   ;;
42562 esac
42563 fi
42564 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42565 if test -n "$ac_pt_PKG_CONFIG"; then
42566   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42567 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42568 else
42569   { echo "$as_me:$LINENO: result: no" >&5
42570 echo "${ECHO_T}no" >&6; }
42571 fi
42572
42573   if test "x$ac_pt_PKG_CONFIG" = x; then
42574     PKG_CONFIG=""
42575   else
42576     case $cross_compiling:$ac_tool_warned in
42577 yes:)
42578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42579 whose name does not start with the host triplet.  If you think this
42580 configuration is useful to you, please write to autoconf@gnu.org." >&5
42581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42582 whose name does not start with the host triplet.  If you think this
42583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42584 ac_tool_warned=yes ;;
42585 esac
42586     PKG_CONFIG=$ac_pt_PKG_CONFIG
42587   fi
42588 else
42589   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42590 fi
42591
42592 fi
42593 if test -n "$PKG_CONFIG"; then
42594         _pkg_min_version=0.9.0
42595         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42596 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42597         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42598                 { echo "$as_me:$LINENO: result: yes" >&5
42599 echo "${ECHO_T}yes" >&6; }
42600         else
42601                 { echo "$as_me:$LINENO: result: no" >&5
42602 echo "${ECHO_T}no" >&6; }
42603                 PKG_CONFIG=""
42604         fi
42605
42606 fi
42607
42608     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42609
42610         if test "$wxUSE_GTKPRINT" = "yes" ; then
42611
42612
42613 pkg_failed=no
42614 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42615 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42616
42617 if test -n "$PKG_CONFIG"; then
42618     if test -n "$GTKPRINT_CFLAGS"; then
42619         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42620     else
42621         if test -n "$PKG_CONFIG" && \
42622     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42623   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42624   ac_status=$?
42625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42626   (exit $ac_status); }; then
42627   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42628 else
42629   pkg_failed=yes
42630 fi
42631     fi
42632 else
42633         pkg_failed=untried
42634 fi
42635 if test -n "$PKG_CONFIG"; then
42636     if test -n "$GTKPRINT_LIBS"; then
42637         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42638     else
42639         if test -n "$PKG_CONFIG" && \
42640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42641   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42642   ac_status=$?
42643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644   (exit $ac_status); }; then
42645   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42646 else
42647   pkg_failed=yes
42648 fi
42649     fi
42650 else
42651         pkg_failed=untried
42652 fi
42653
42654
42655
42656 if test $pkg_failed = yes; then
42657
42658 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42659         _pkg_short_errors_supported=yes
42660 else
42661         _pkg_short_errors_supported=no
42662 fi
42663         if test $_pkg_short_errors_supported = yes; then
42664                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42665         else
42666                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42667         fi
42668         # Put the nasty error message in config.log where it belongs
42669         echo "$GTKPRINT_PKG_ERRORS" >&5
42670
42671
42672                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42673 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42674                         wxUSE_GTKPRINT="no"
42675
42676
42677 elif test $pkg_failed = untried; then
42678
42679                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42680 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42681                         wxUSE_GTKPRINT="no"
42682
42683
42684 else
42685         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42686         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42687         { echo "$as_me:$LINENO: result: yes" >&5
42688 echo "${ECHO_T}yes" >&6; }
42689
42690                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42691                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42692                         cat >>confdefs.h <<\_ACEOF
42693 #define wxUSE_GTKPRINT 1
42694 _ACEOF
42695
42696
42697 fi
42698         fi
42699
42700         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42701
42702
42703 pkg_failed=no
42704 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42705 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42706
42707 if test -n "$PKG_CONFIG"; then
42708     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42709         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42710     else
42711         if test -n "$PKG_CONFIG" && \
42712     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42713   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42714   ac_status=$?
42715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716   (exit $ac_status); }; then
42717   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42718 else
42719   pkg_failed=yes
42720 fi
42721     fi
42722 else
42723         pkg_failed=untried
42724 fi
42725 if test -n "$PKG_CONFIG"; then
42726     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42727         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42728     else
42729         if test -n "$PKG_CONFIG" && \
42730     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42731   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42732   ac_status=$?
42733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734   (exit $ac_status); }; then
42735   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42736 else
42737   pkg_failed=yes
42738 fi
42739     fi
42740 else
42741         pkg_failed=untried
42742 fi
42743
42744
42745
42746 if test $pkg_failed = yes; then
42747
42748 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42749         _pkg_short_errors_supported=yes
42750 else
42751         _pkg_short_errors_supported=no
42752 fi
42753         if test $_pkg_short_errors_supported = yes; then
42754                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42755         else
42756                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42757         fi
42758         # Put the nasty error message in config.log where it belongs
42759         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42760
42761
42762                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42763 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42764                         wxUSE_LIBGNOMEPRINT="no"
42765
42766
42767 elif test $pkg_failed = untried; then
42768
42769                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42770 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42771                         wxUSE_LIBGNOMEPRINT="no"
42772
42773
42774 else
42775         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42776         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42777         { echo "$as_me:$LINENO: result: yes" >&5
42778 echo "${ECHO_T}yes" >&6; }
42779
42780                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42781                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42782                         cat >>confdefs.h <<\_ACEOF
42783 #define wxUSE_LIBGNOMEPRINT 1
42784 _ACEOF
42785
42786
42787 fi
42788         fi
42789     fi
42790
42791     if test "$wxUSE_MIMETYPE" = "yes" ; then
42792         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42793
42794
42795 pkg_failed=no
42796 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42797 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42798
42799 if test -n "$PKG_CONFIG"; then
42800     if test -n "$GNOMEVFS_CFLAGS"; then
42801         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42802     else
42803         if test -n "$PKG_CONFIG" && \
42804     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42805   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42806   ac_status=$?
42807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808   (exit $ac_status); }; then
42809   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42810 else
42811   pkg_failed=yes
42812 fi
42813     fi
42814 else
42815         pkg_failed=untried
42816 fi
42817 if test -n "$PKG_CONFIG"; then
42818     if test -n "$GNOMEVFS_LIBS"; then
42819         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42820     else
42821         if test -n "$PKG_CONFIG" && \
42822     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42823   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42824   ac_status=$?
42825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826   (exit $ac_status); }; then
42827   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42828 else
42829   pkg_failed=yes
42830 fi
42831     fi
42832 else
42833         pkg_failed=untried
42834 fi
42835
42836
42837
42838 if test $pkg_failed = yes; then
42839
42840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42841         _pkg_short_errors_supported=yes
42842 else
42843         _pkg_short_errors_supported=no
42844 fi
42845         if test $_pkg_short_errors_supported = yes; then
42846                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42847         else
42848                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42849         fi
42850         # Put the nasty error message in config.log where it belongs
42851         echo "$GNOMEVFS_PKG_ERRORS" >&5
42852
42853
42854                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42855 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42856                         wxUSE_LIBGNOMEVFS="no"
42857
42858
42859 elif test $pkg_failed = untried; then
42860
42861                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42862 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42863                         wxUSE_LIBGNOMEVFS="no"
42864
42865
42866 else
42867         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42868         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42869         { echo "$as_me:$LINENO: result: yes" >&5
42870 echo "${ECHO_T}yes" >&6; }
42871
42872                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42873                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42874                         cat >>confdefs.h <<\_ACEOF
42875 #define wxUSE_LIBGNOMEVFS 1
42876 _ACEOF
42877
42878
42879 fi
42880         fi
42881     fi
42882
42883     if test "$wxUSE_LIBHILDON" = "yes" ; then
42884
42885 pkg_failed=no
42886 { echo "$as_me:$LINENO: checking for HILDON" >&5
42887 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42888
42889 if test -n "$PKG_CONFIG"; then
42890     if test -n "$HILDON_CFLAGS"; then
42891         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42892     else
42893         if test -n "$PKG_CONFIG" && \
42894     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42895   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42896   ac_status=$?
42897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898   (exit $ac_status); }; then
42899   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42900 else
42901   pkg_failed=yes
42902 fi
42903     fi
42904 else
42905         pkg_failed=untried
42906 fi
42907 if test -n "$PKG_CONFIG"; then
42908     if test -n "$HILDON_LIBS"; then
42909         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42910     else
42911         if test -n "$PKG_CONFIG" && \
42912     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42913   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42914   ac_status=$?
42915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42916   (exit $ac_status); }; then
42917   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42918 else
42919   pkg_failed=yes
42920 fi
42921     fi
42922 else
42923         pkg_failed=untried
42924 fi
42925
42926
42927
42928 if test $pkg_failed = yes; then
42929
42930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42931         _pkg_short_errors_supported=yes
42932 else
42933         _pkg_short_errors_supported=no
42934 fi
42935         if test $_pkg_short_errors_supported = yes; then
42936                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42937         else
42938                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42939         fi
42940         # Put the nasty error message in config.log where it belongs
42941         echo "$HILDON_PKG_ERRORS" >&5
42942
42943
42944                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42945 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42946                         wxUSE_LIBHILDON="no"
42947
42948
42949 elif test $pkg_failed = untried; then
42950
42951                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42952 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42953                         wxUSE_LIBHILDON="no"
42954
42955
42956 else
42957         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42958         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42959         { echo "$as_me:$LINENO: result: yes" >&5
42960 echo "${ECHO_T}yes" >&6; }
42961
42962                 EXTRALIBS_HILDON="$HILDON_LIBS"
42963                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42964                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42965                 cat >>confdefs.h <<\_ACEOF
42966 #define wxUSE_LIBHILDON 1
42967 _ACEOF
42968
42969
42970 fi
42971     fi
42972 fi
42973
42974 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42975   cat >>confdefs.h <<\_ACEOF
42976 #define wxUSE_CMDLINE_PARSER 1
42977 _ACEOF
42978
42979 fi
42980
42981 if test "$wxUSE_STOPWATCH" = "yes"; then
42982   cat >>confdefs.h <<\_ACEOF
42983 #define wxUSE_STOPWATCH 1
42984 _ACEOF
42985
42986 fi
42987
42988 if test "$wxUSE_DATETIME" = "yes"; then
42989   cat >>confdefs.h <<\_ACEOF
42990 #define wxUSE_DATETIME 1
42991 _ACEOF
42992
42993 fi
42994
42995 if test "$wxUSE_FILE" = "yes"; then
42996   cat >>confdefs.h <<\_ACEOF
42997 #define wxUSE_FILE 1
42998 _ACEOF
42999
43000 fi
43001
43002 if test "$wxUSE_FFILE" = "yes"; then
43003   cat >>confdefs.h <<\_ACEOF
43004 #define wxUSE_FFILE 1
43005 _ACEOF
43006
43007 fi
43008
43009 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43010   if test "$wxUSE_STREAMS" != yes; then
43011     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43012 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43013     wxUSE_ARCHIVE_STREAMS=no
43014   else
43015     cat >>confdefs.h <<\_ACEOF
43016 #define wxUSE_ARCHIVE_STREAMS 1
43017 _ACEOF
43018
43019   fi
43020 fi
43021
43022 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43023   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43024     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43025 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43026   elif test "$wxUSE_ZLIB" = "no"; then
43027     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43028 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43029   else
43030     cat >>confdefs.h <<\_ACEOF
43031 #define wxUSE_ZIPSTREAM 1
43032 _ACEOF
43033
43034   fi
43035 fi
43036
43037 if test "$wxUSE_TARSTREAM" = "yes"; then
43038   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43039     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43040 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43041   else
43042     cat >>confdefs.h <<\_ACEOF
43043 #define wxUSE_TARSTREAM 1
43044 _ACEOF
43045
43046   fi
43047 fi
43048
43049 if test "$wxUSE_FILESYSTEM" = "yes"; then
43050   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43051     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43052 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43053     wxUSE_FILESYSTEM=no
43054   else
43055     cat >>confdefs.h <<\_ACEOF
43056 #define wxUSE_FILESYSTEM 1
43057 _ACEOF
43058
43059   fi
43060 fi
43061
43062 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43063   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43064     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43065 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43066   else
43067     cat >>confdefs.h <<\_ACEOF
43068 #define wxUSE_FS_ARCHIVE 1
43069 _ACEOF
43070
43071   fi
43072 fi
43073
43074 if test "$wxUSE_FS_ZIP" = "yes"; then
43075   if test "$wxUSE_FS_ARCHIVE" != yes; then
43076     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43077 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43078   else
43079     cat >>confdefs.h <<\_ACEOF
43080 #define wxUSE_FS_ZIP 1
43081 _ACEOF
43082
43083   fi
43084 fi
43085
43086 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43087   if test "$USE_UNIX" != 1; then
43088     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43089 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43090     wxUSE_ON_FATAL_EXCEPTION=no
43091   else
43092     cat >>confdefs.h <<\_ACEOF
43093 #define wxUSE_ON_FATAL_EXCEPTION 1
43094 _ACEOF
43095
43096   fi
43097 fi
43098
43099 if test "$wxUSE_STACKWALKER" = "yes"; then
43100     cat >>confdefs.h <<\_ACEOF
43101 #define wxUSE_STACKWALKER 1
43102 _ACEOF
43103
43104 fi
43105
43106 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43107     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43108         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43109 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43110         wxUSE_DEBUGREPORT=no
43111     else
43112         cat >>confdefs.h <<\_ACEOF
43113 #define wxUSE_DEBUGREPORT 1
43114 _ACEOF
43115
43116         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43117             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43118         fi
43119     fi
43120 fi
43121
43122 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43123   cat >>confdefs.h <<\_ACEOF
43124 #define wxUSE_SNGLINST_CHECKER 1
43125 _ACEOF
43126
43127 fi
43128
43129 if test "$wxUSE_BUSYINFO" = "yes"; then
43130   cat >>confdefs.h <<\_ACEOF
43131 #define wxUSE_BUSYINFO 1
43132 _ACEOF
43133
43134 fi
43135
43136 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43137   cat >>confdefs.h <<\_ACEOF
43138 #define wxUSE_STD_IOSTREAM 1
43139 _ACEOF
43140
43141 fi
43142
43143 if test "$wxUSE_STD_STRING" = "yes"; then
43144   cat >>confdefs.h <<\_ACEOF
43145 #define wxUSE_STD_STRING 1
43146 _ACEOF
43147
43148 fi
43149
43150 if test "$wxUSE_STDPATHS" = "yes"; then
43151   cat >>confdefs.h <<\_ACEOF
43152 #define wxUSE_STDPATHS 1
43153 _ACEOF
43154
43155 fi
43156
43157 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43158     cat >>confdefs.h <<\_ACEOF
43159 #define wxUSE_TEXTBUFFER 1
43160 _ACEOF
43161
43162 fi
43163
43164 if test "$wxUSE_TEXTFILE" = "yes"; then
43165   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43166     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43167 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43168   else
43169     cat >>confdefs.h <<\_ACEOF
43170 #define wxUSE_TEXTFILE 1
43171 _ACEOF
43172
43173   fi
43174 fi
43175
43176 if test "$wxUSE_CONFIG" = "yes" ; then
43177   if test "$wxUSE_TEXTFILE" != "yes"; then
43178     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43179 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43180   else
43181     cat >>confdefs.h <<\_ACEOF
43182 #define wxUSE_CONFIG 1
43183 _ACEOF
43184
43185     cat >>confdefs.h <<\_ACEOF
43186 #define wxUSE_CONFIG_NATIVE 1
43187 _ACEOF
43188
43189     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43190   fi
43191 fi
43192
43193 if test "$wxUSE_INTL" = "yes" ; then
43194   if test "$wxUSE_FILE" != "yes"; then
43195     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43196 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43197   else
43198     cat >>confdefs.h <<\_ACEOF
43199 #define wxUSE_INTL 1
43200 _ACEOF
43201
43202     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43203     GUIDIST="$GUIDIST INTL_DIST"
43204   fi
43205 fi
43206
43207 if test "$wxUSE_XLOCALE" == "yes" ; then
43208     cat >>confdefs.h <<\_ACEOF
43209 #define wxUSE_XLOCALE 1
43210 _ACEOF
43211
43212     { echo "$as_me:$LINENO: checking for locale_t" >&5
43213 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43214 if test "${ac_cv_type_locale_t+set}" = set; then
43215   echo $ECHO_N "(cached) $ECHO_C" >&6
43216 else
43217   cat >conftest.$ac_ext <<_ACEOF
43218 /* confdefs.h.  */
43219 _ACEOF
43220 cat confdefs.h >>conftest.$ac_ext
43221 cat >>conftest.$ac_ext <<_ACEOF
43222 /* end confdefs.h.  */
43223 #include <xlocale.h>
43224                     #include <locale.h>
43225
43226 typedef locale_t ac__type_new_;
43227 int
43228 main ()
43229 {
43230 if ((ac__type_new_ *) 0)
43231   return 0;
43232 if (sizeof (ac__type_new_))
43233   return 0;
43234   ;
43235   return 0;
43236 }
43237 _ACEOF
43238 rm -f conftest.$ac_objext
43239 if { (ac_try="$ac_compile"
43240 case "(($ac_try" in
43241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43242   *) ac_try_echo=$ac_try;;
43243 esac
43244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43245   (eval "$ac_compile") 2>conftest.er1
43246   ac_status=$?
43247   grep -v '^ *+' conftest.er1 >conftest.err
43248   rm -f conftest.er1
43249   cat conftest.err >&5
43250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43251   (exit $ac_status); } && {
43252          test -z "$ac_c_werror_flag" ||
43253          test ! -s conftest.err
43254        } && test -s conftest.$ac_objext; then
43255   ac_cv_type_locale_t=yes
43256 else
43257   echo "$as_me: failed program was:" >&5
43258 sed 's/^/| /' conftest.$ac_ext >&5
43259
43260         ac_cv_type_locale_t=no
43261 fi
43262
43263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43264 fi
43265 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43266 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43267 if test $ac_cv_type_locale_t = yes; then
43268
43269 cat >>confdefs.h <<_ACEOF
43270 #define HAVE_LOCALE_T 1
43271 _ACEOF
43272
43273
43274 fi
43275
43276 fi
43277
43278 if test "$wxUSE_LOG" = "yes"; then
43279   cat >>confdefs.h <<\_ACEOF
43280 #define wxUSE_LOG 1
43281 _ACEOF
43282
43283
43284     if test "$wxUSE_LOGGUI" = "yes"; then
43285       cat >>confdefs.h <<\_ACEOF
43286 #define wxUSE_LOGGUI 1
43287 _ACEOF
43288
43289     fi
43290
43291     if test "$wxUSE_LOGWINDOW" = "yes"; then
43292       cat >>confdefs.h <<\_ACEOF
43293 #define wxUSE_LOGWINDOW 1
43294 _ACEOF
43295
43296     fi
43297
43298     if test "$wxUSE_LOGDIALOG" = "yes"; then
43299       cat >>confdefs.h <<\_ACEOF
43300 #define wxUSE_LOG_DIALOG 1
43301 _ACEOF
43302
43303     fi
43304
43305         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43306 fi
43307
43308 if test "$wxUSE_LONGLONG" = "yes"; then
43309   cat >>confdefs.h <<\_ACEOF
43310 #define wxUSE_LONGLONG 1
43311 _ACEOF
43312
43313 fi
43314
43315 if test "$wxUSE_GEOMETRY" = "yes"; then
43316   cat >>confdefs.h <<\_ACEOF
43317 #define wxUSE_GEOMETRY 1
43318 _ACEOF
43319
43320 fi
43321
43322 if test "$wxUSE_BASE64" = "yes"; then
43323   cat >>confdefs.h <<\_ACEOF
43324 #define wxUSE_BASE64 1
43325 _ACEOF
43326
43327 fi
43328
43329 if test "$wxUSE_STREAMS" = "yes" ; then
43330   cat >>confdefs.h <<\_ACEOF
43331 #define wxUSE_STREAMS 1
43332 _ACEOF
43333
43334 fi
43335
43336 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43337   cat >>confdefs.h <<\_ACEOF
43338 #define wxUSE_PRINTF_POS_PARAMS 1
43339 _ACEOF
43340
43341 fi
43342
43343 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43344   cat >>confdefs.h <<\_ACEOF
43345 #define wxUSE_OBJC_UNIQUIFYING 1
43346 _ACEOF
43347
43348 fi
43349
43350
43351 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43352     cat >>confdefs.h <<\_ACEOF
43353 #define wxUSE_CONSOLE_EVENTLOOP 1
43354 _ACEOF
43355
43356
43357     if test "$wxUSE_UNIX" = "yes"; then
43358         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43359             cat >>confdefs.h <<\_ACEOF
43360 #define wxUSE_SELECT_DISPATCHER 1
43361 _ACEOF
43362
43363         fi
43364
43365         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43366
43367 for ac_header in sys/epoll.h
43368 do
43369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43373   echo $ECHO_N "(cached) $ECHO_C" >&6
43374 else
43375   cat >conftest.$ac_ext <<_ACEOF
43376 /* confdefs.h.  */
43377 _ACEOF
43378 cat confdefs.h >>conftest.$ac_ext
43379 cat >>conftest.$ac_ext <<_ACEOF
43380 /* end confdefs.h.  */
43381 $ac_includes_default
43382
43383 #include <$ac_header>
43384 _ACEOF
43385 rm -f conftest.$ac_objext
43386 if { (ac_try="$ac_compile"
43387 case "(($ac_try" in
43388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43389   *) ac_try_echo=$ac_try;;
43390 esac
43391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43392   (eval "$ac_compile") 2>conftest.er1
43393   ac_status=$?
43394   grep -v '^ *+' conftest.er1 >conftest.err
43395   rm -f conftest.er1
43396   cat conftest.err >&5
43397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43398   (exit $ac_status); } && {
43399          test -z "$ac_c_werror_flag" ||
43400          test ! -s conftest.err
43401        } && test -s conftest.$ac_objext; then
43402   eval "$as_ac_Header=yes"
43403 else
43404   echo "$as_me: failed program was:" >&5
43405 sed 's/^/| /' conftest.$ac_ext >&5
43406
43407         eval "$as_ac_Header=no"
43408 fi
43409
43410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43411 fi
43412 ac_res=`eval echo '${'$as_ac_Header'}'`
43413                { echo "$as_me:$LINENO: result: $ac_res" >&5
43414 echo "${ECHO_T}$ac_res" >&6; }
43415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43416   cat >>confdefs.h <<_ACEOF
43417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43418 _ACEOF
43419
43420 fi
43421
43422 done
43423
43424             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43425                 cat >>confdefs.h <<\_ACEOF
43426 #define wxUSE_EPOLL_DISPATCHER 1
43427 _ACEOF
43428
43429             else
43430                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43431 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43432             fi
43433         fi
43434     fi
43435 fi
43436
43437
43438
43439
43440 for ac_func in gettimeofday ftime
43441 do
43442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43446   echo $ECHO_N "(cached) $ECHO_C" >&6
43447 else
43448   cat >conftest.$ac_ext <<_ACEOF
43449 /* confdefs.h.  */
43450 _ACEOF
43451 cat confdefs.h >>conftest.$ac_ext
43452 cat >>conftest.$ac_ext <<_ACEOF
43453 /* end confdefs.h.  */
43454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43456 #define $ac_func innocuous_$ac_func
43457
43458 /* System header to define __stub macros and hopefully few prototypes,
43459     which can conflict with char $ac_func (); below.
43460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43461     <limits.h> exists even on freestanding compilers.  */
43462
43463 #ifdef __STDC__
43464 # include <limits.h>
43465 #else
43466 # include <assert.h>
43467 #endif
43468
43469 #undef $ac_func
43470
43471 /* Override any GCC internal prototype to avoid an error.
43472    Use char because int might match the return type of a GCC
43473    builtin and then its argument prototype would still apply.  */
43474 #ifdef __cplusplus
43475 extern "C"
43476 #endif
43477 char $ac_func ();
43478 /* The GNU C library defines this for functions which it implements
43479     to always fail with ENOSYS.  Some functions are actually named
43480     something starting with __ and the normal name is an alias.  */
43481 #if defined __stub_$ac_func || defined __stub___$ac_func
43482 choke me
43483 #endif
43484
43485 int
43486 main ()
43487 {
43488 return $ac_func ();
43489   ;
43490   return 0;
43491 }
43492 _ACEOF
43493 rm -f conftest.$ac_objext conftest$ac_exeext
43494 if { (ac_try="$ac_link"
43495 case "(($ac_try" in
43496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43497   *) ac_try_echo=$ac_try;;
43498 esac
43499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43500   (eval "$ac_link") 2>conftest.er1
43501   ac_status=$?
43502   grep -v '^ *+' conftest.er1 >conftest.err
43503   rm -f conftest.er1
43504   cat conftest.err >&5
43505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506   (exit $ac_status); } && {
43507          test -z "$ac_c_werror_flag" ||
43508          test ! -s conftest.err
43509        } && test -s conftest$ac_exeext &&
43510        $as_test_x conftest$ac_exeext; then
43511   eval "$as_ac_var=yes"
43512 else
43513   echo "$as_me: failed program was:" >&5
43514 sed 's/^/| /' conftest.$ac_ext >&5
43515
43516         eval "$as_ac_var=no"
43517 fi
43518
43519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43520       conftest$ac_exeext conftest.$ac_ext
43521 fi
43522 ac_res=`eval echo '${'$as_ac_var'}'`
43523                { echo "$as_me:$LINENO: result: $ac_res" >&5
43524 echo "${ECHO_T}$ac_res" >&6; }
43525 if test `eval echo '${'$as_ac_var'}'` = yes; then
43526   cat >>confdefs.h <<_ACEOF
43527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43528 _ACEOF
43529  break
43530 fi
43531 done
43532
43533
43534 if test "$ac_cv_func_gettimeofday" = "yes"; then
43535     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43536 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43537 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43538   echo $ECHO_N "(cached) $ECHO_C" >&6
43539 else
43540
43541                 cat >conftest.$ac_ext <<_ACEOF
43542 /* confdefs.h.  */
43543 _ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h.  */
43547
43548                 #include <sys/time.h>
43549                 #include <unistd.h>
43550
43551 int
43552 main ()
43553 {
43554
43555                 struct timeval tv;
43556                 gettimeofday(&tv, NULL);
43557
43558   ;
43559   return 0;
43560 }
43561 _ACEOF
43562 rm -f conftest.$ac_objext
43563 if { (ac_try="$ac_compile"
43564 case "(($ac_try" in
43565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43566   *) ac_try_echo=$ac_try;;
43567 esac
43568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43569   (eval "$ac_compile") 2>conftest.er1
43570   ac_status=$?
43571   grep -v '^ *+' conftest.er1 >conftest.err
43572   rm -f conftest.er1
43573   cat conftest.err >&5
43574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43575   (exit $ac_status); } && {
43576          test -z "$ac_c_werror_flag" ||
43577          test ! -s conftest.err
43578        } && test -s conftest.$ac_objext; then
43579   wx_cv_func_gettimeofday_has_2_args=yes
43580 else
43581   echo "$as_me: failed program was:" >&5
43582 sed 's/^/| /' conftest.$ac_ext >&5
43583
43584         cat >conftest.$ac_ext <<_ACEOF
43585 /* confdefs.h.  */
43586 _ACEOF
43587 cat confdefs.h >>conftest.$ac_ext
43588 cat >>conftest.$ac_ext <<_ACEOF
43589 /* end confdefs.h.  */
43590
43591                     #include <sys/time.h>
43592                     #include <unistd.h>
43593
43594 int
43595 main ()
43596 {
43597
43598                     struct timeval tv;
43599                     gettimeofday(&tv);
43600
43601   ;
43602   return 0;
43603 }
43604 _ACEOF
43605 rm -f conftest.$ac_objext
43606 if { (ac_try="$ac_compile"
43607 case "(($ac_try" in
43608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43609   *) ac_try_echo=$ac_try;;
43610 esac
43611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43612   (eval "$ac_compile") 2>conftest.er1
43613   ac_status=$?
43614   grep -v '^ *+' conftest.er1 >conftest.err
43615   rm -f conftest.er1
43616   cat conftest.err >&5
43617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618   (exit $ac_status); } && {
43619          test -z "$ac_c_werror_flag" ||
43620          test ! -s conftest.err
43621        } && test -s conftest.$ac_objext; then
43622   wx_cv_func_gettimeofday_has_2_args=no
43623 else
43624   echo "$as_me: failed program was:" >&5
43625 sed 's/^/| /' conftest.$ac_ext >&5
43626
43627
43628                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43629 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43630                     wx_cv_func_gettimeofday_has_2_args=unknown
43631
43632
43633 fi
43634
43635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43636
43637 fi
43638
43639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43640
43641 fi
43642 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43643 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43644
43645     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43646         cat >>confdefs.h <<\_ACEOF
43647 #define WX_GETTIMEOFDAY_NO_TZ 1
43648 _ACEOF
43649
43650     fi
43651 fi
43652
43653 if test "$wxUSE_DATETIME" = "yes"; then
43654         { echo "$as_me:$LINENO: checking for strptime" >&5
43655 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43656 if test "${ac_cv_func_strptime+set}" = set; then
43657   echo $ECHO_N "(cached) $ECHO_C" >&6
43658 else
43659   cat >conftest.$ac_ext <<_ACEOF
43660 /* confdefs.h.  */
43661 _ACEOF
43662 cat confdefs.h >>conftest.$ac_ext
43663 cat >>conftest.$ac_ext <<_ACEOF
43664 /* end confdefs.h.  */
43665 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43667 #define strptime innocuous_strptime
43668
43669 /* System header to define __stub macros and hopefully few prototypes,
43670     which can conflict with char strptime (); below.
43671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43672     <limits.h> exists even on freestanding compilers.  */
43673
43674 #ifdef __STDC__
43675 # include <limits.h>
43676 #else
43677 # include <assert.h>
43678 #endif
43679
43680 #undef strptime
43681
43682 /* Override any GCC internal prototype to avoid an error.
43683    Use char because int might match the return type of a GCC
43684    builtin and then its argument prototype would still apply.  */
43685 #ifdef __cplusplus
43686 extern "C"
43687 #endif
43688 char strptime ();
43689 /* The GNU C library defines this for functions which it implements
43690     to always fail with ENOSYS.  Some functions are actually named
43691     something starting with __ and the normal name is an alias.  */
43692 #if defined __stub_strptime || defined __stub___strptime
43693 choke me
43694 #endif
43695
43696 int
43697 main ()
43698 {
43699 return strptime ();
43700   ;
43701   return 0;
43702 }
43703 _ACEOF
43704 rm -f conftest.$ac_objext conftest$ac_exeext
43705 if { (ac_try="$ac_link"
43706 case "(($ac_try" in
43707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43708   *) ac_try_echo=$ac_try;;
43709 esac
43710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43711   (eval "$ac_link") 2>conftest.er1
43712   ac_status=$?
43713   grep -v '^ *+' conftest.er1 >conftest.err
43714   rm -f conftest.er1
43715   cat conftest.err >&5
43716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43717   (exit $ac_status); } && {
43718          test -z "$ac_c_werror_flag" ||
43719          test ! -s conftest.err
43720        } && test -s conftest$ac_exeext &&
43721        $as_test_x conftest$ac_exeext; then
43722   ac_cv_func_strptime=yes
43723 else
43724   echo "$as_me: failed program was:" >&5
43725 sed 's/^/| /' conftest.$ac_ext >&5
43726
43727         ac_cv_func_strptime=no
43728 fi
43729
43730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43731       conftest$ac_exeext conftest.$ac_ext
43732 fi
43733 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43734 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43735
43736     if test "$ac_cv_func_strptime" = "yes"; then
43737         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43738 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43739 if test "${wx_cv_func_strptime_decl+set}" = set; then
43740   echo $ECHO_N "(cached) $ECHO_C" >&6
43741 else
43742
43743                 ac_ext=cpp
43744 ac_cpp='$CXXCPP $CPPFLAGS'
43745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43748
43749                 cat >conftest.$ac_ext <<_ACEOF
43750 /* confdefs.h.  */
43751 _ACEOF
43752 cat confdefs.h >>conftest.$ac_ext
43753 cat >>conftest.$ac_ext <<_ACEOF
43754 /* end confdefs.h.  */
43755
43756                         #include <time.h>
43757
43758 int
43759 main ()
43760 {
43761
43762                         struct tm t;
43763                         strptime("foo", "bar", &t);
43764
43765   ;
43766   return 0;
43767 }
43768 _ACEOF
43769 rm -f conftest.$ac_objext
43770 if { (ac_try="$ac_compile"
43771 case "(($ac_try" in
43772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43773   *) ac_try_echo=$ac_try;;
43774 esac
43775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43776   (eval "$ac_compile") 2>conftest.er1
43777   ac_status=$?
43778   grep -v '^ *+' conftest.er1 >conftest.err
43779   rm -f conftest.er1
43780   cat conftest.err >&5
43781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782   (exit $ac_status); } && {
43783          test -z "$ac_cxx_werror_flag" ||
43784          test ! -s conftest.err
43785        } && test -s conftest.$ac_objext; then
43786   wx_cv_func_strptime_decl=yes
43787 else
43788   echo "$as_me: failed program was:" >&5
43789 sed 's/^/| /' conftest.$ac_ext >&5
43790
43791         wx_cv_func_strptime_decl=no
43792
43793 fi
43794
43795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43796                 ac_ext=c
43797 ac_cpp='$CPP $CPPFLAGS'
43798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43801
43802
43803
43804 fi
43805 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43806 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43807     fi
43808     if test "$wx_cv_func_strptime_decl" = "yes"; then
43809         cat >>confdefs.h <<\_ACEOF
43810 #define HAVE_STRPTIME_DECL 1
43811 _ACEOF
43812
43813     else
43814         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43815     fi
43816     if test "$ac_cv_func_strptime" = "yes"; then
43817                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43818 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43819 if test "${wx_cv_func_strptime_ok+set}" = set; then
43820   echo $ECHO_N "(cached) $ECHO_C" >&6
43821 else
43822   if test "$cross_compiling" = yes; then
43823                   wx_cv_func_strptime_ok=no
43824
43825 else
43826   cat >conftest.$ac_ext <<_ACEOF
43827
43828                     #include <stdlib.h>
43829                     #include <time.h>
43830                     #include "confdefs.h"
43831
43832                     $wx_strptime_decl
43833
43834                     int main()
43835                     {
43836                         struct tm t;
43837                         return !!strptime("", "%x", &t);
43838                     }
43839
43840 _ACEOF
43841 rm -f conftest$ac_exeext
43842 if { (ac_try="$ac_link"
43843 case "(($ac_try" in
43844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43845   *) ac_try_echo=$ac_try;;
43846 esac
43847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43848   (eval "$ac_link") 2>&5
43849   ac_status=$?
43850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43852   { (case "(($ac_try" in
43853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43854   *) ac_try_echo=$ac_try;;
43855 esac
43856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43857   (eval "$ac_try") 2>&5
43858   ac_status=$?
43859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860   (exit $ac_status); }; }; then
43861   wx_cv_func_strptime_ok=yes
43862 else
43863   echo "$as_me: program exited with status $ac_status" >&5
43864 echo "$as_me: failed program was:" >&5
43865 sed 's/^/| /' conftest.$ac_ext >&5
43866
43867 ( exit $ac_status )
43868 wx_cv_func_strptime_ok=no
43869 fi
43870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43871 fi
43872
43873
43874
43875 fi
43876 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43877 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43878
43879         if test "$wx_cv_func_strptime_ok" = "yes"; then
43880             cat >>confdefs.h <<\_ACEOF
43881 #define HAVE_STRPTIME 1
43882 _ACEOF
43883
43884         fi
43885     fi
43886
43887             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43888 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43889 if test "${wx_cv_var_timezone+set}" = set; then
43890   echo $ECHO_N "(cached) $ECHO_C" >&6
43891 else
43892
43893                         ac_ext=cpp
43894 ac_cpp='$CXXCPP $CPPFLAGS'
43895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43898
43899                         cat >conftest.$ac_ext <<_ACEOF
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905
43906                                 #include <time.h>
43907
43908 int
43909 main ()
43910 {
43911
43912                                 int tz;
43913                                 tz = timezone;
43914
43915   ;
43916   return 0;
43917 }
43918 _ACEOF
43919 rm -f conftest.$ac_objext
43920 if { (ac_try="$ac_compile"
43921 case "(($ac_try" in
43922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43923   *) ac_try_echo=$ac_try;;
43924 esac
43925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43926   (eval "$ac_compile") 2>conftest.er1
43927   ac_status=$?
43928   grep -v '^ *+' conftest.er1 >conftest.err
43929   rm -f conftest.er1
43930   cat conftest.err >&5
43931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43932   (exit $ac_status); } && {
43933          test -z "$ac_cxx_werror_flag" ||
43934          test ! -s conftest.err
43935        } && test -s conftest.$ac_objext; then
43936
43937                                 wx_cv_var_timezone=timezone
43938
43939 else
43940   echo "$as_me: failed program was:" >&5
43941 sed 's/^/| /' conftest.$ac_ext >&5
43942
43943
43944                                 cat >conftest.$ac_ext <<_ACEOF
43945 /* confdefs.h.  */
43946 _ACEOF
43947 cat confdefs.h >>conftest.$ac_ext
43948 cat >>conftest.$ac_ext <<_ACEOF
43949 /* end confdefs.h.  */
43950
43951                                         #include <time.h>
43952
43953 int
43954 main ()
43955 {
43956
43957                                         int tz;
43958                                         tz = _timezone;
43959
43960   ;
43961   return 0;
43962 }
43963 _ACEOF
43964 rm -f conftest.$ac_objext
43965 if { (ac_try="$ac_compile"
43966 case "(($ac_try" in
43967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43968   *) ac_try_echo=$ac_try;;
43969 esac
43970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43971   (eval "$ac_compile") 2>conftest.er1
43972   ac_status=$?
43973   grep -v '^ *+' conftest.er1 >conftest.err
43974   rm -f conftest.er1
43975   cat conftest.err >&5
43976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43977   (exit $ac_status); } && {
43978          test -z "$ac_cxx_werror_flag" ||
43979          test ! -s conftest.err
43980        } && test -s conftest.$ac_objext; then
43981
43982                                         wx_cv_var_timezone=_timezone
43983
43984 else
43985   echo "$as_me: failed program was:" >&5
43986 sed 's/^/| /' conftest.$ac_ext >&5
43987
43988
43989                                         cat >conftest.$ac_ext <<_ACEOF
43990 /* confdefs.h.  */
43991 _ACEOF
43992 cat confdefs.h >>conftest.$ac_ext
43993 cat >>conftest.$ac_ext <<_ACEOF
43994 /* end confdefs.h.  */
43995
43996                                                 #include <time.h>
43997
43998 int
43999 main ()
44000 {
44001
44002                                                 int tz;
44003                                                 tz = __timezone;
44004
44005   ;
44006   return 0;
44007 }
44008 _ACEOF
44009 rm -f conftest.$ac_objext
44010 if { (ac_try="$ac_compile"
44011 case "(($ac_try" in
44012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44013   *) ac_try_echo=$ac_try;;
44014 esac
44015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44016   (eval "$ac_compile") 2>conftest.er1
44017   ac_status=$?
44018   grep -v '^ *+' conftest.er1 >conftest.err
44019   rm -f conftest.er1
44020   cat conftest.err >&5
44021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44022   (exit $ac_status); } && {
44023          test -z "$ac_cxx_werror_flag" ||
44024          test ! -s conftest.err
44025        } && test -s conftest.$ac_objext; then
44026
44027                                                 wx_cv_var_timezone=__timezone
44028
44029 else
44030   echo "$as_me: failed program was:" >&5
44031 sed 's/^/| /' conftest.$ac_ext >&5
44032
44033
44034                                                 if test "$USE_DOS" = 0 ; then
44035                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44036 echo "$as_me: WARNING: no timezone variable" >&2;}
44037                                                 fi
44038
44039
44040 fi
44041
44042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44043
44044
44045 fi
44046
44047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44048
44049
44050 fi
44051
44052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44053                         ac_ext=c
44054 ac_cpp='$CPP $CPPFLAGS'
44055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44058
44059
44060
44061 fi
44062 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44063 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44064
44065         if test "x$wx_cv_var_timezone" != x ; then
44066         cat >>confdefs.h <<_ACEOF
44067 #define WX_TIMEZONE $wx_cv_var_timezone
44068 _ACEOF
44069
44070     fi
44071
44072
44073 for ac_func in localtime
44074 do
44075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44079   echo $ECHO_N "(cached) $ECHO_C" >&6
44080 else
44081   cat >conftest.$ac_ext <<_ACEOF
44082 /* confdefs.h.  */
44083 _ACEOF
44084 cat confdefs.h >>conftest.$ac_ext
44085 cat >>conftest.$ac_ext <<_ACEOF
44086 /* end confdefs.h.  */
44087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44089 #define $ac_func innocuous_$ac_func
44090
44091 /* System header to define __stub macros and hopefully few prototypes,
44092     which can conflict with char $ac_func (); below.
44093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44094     <limits.h> exists even on freestanding compilers.  */
44095
44096 #ifdef __STDC__
44097 # include <limits.h>
44098 #else
44099 # include <assert.h>
44100 #endif
44101
44102 #undef $ac_func
44103
44104 /* Override any GCC internal prototype to avoid an error.
44105    Use char because int might match the return type of a GCC
44106    builtin and then its argument prototype would still apply.  */
44107 #ifdef __cplusplus
44108 extern "C"
44109 #endif
44110 char $ac_func ();
44111 /* The GNU C library defines this for functions which it implements
44112     to always fail with ENOSYS.  Some functions are actually named
44113     something starting with __ and the normal name is an alias.  */
44114 #if defined __stub_$ac_func || defined __stub___$ac_func
44115 choke me
44116 #endif
44117
44118 int
44119 main ()
44120 {
44121 return $ac_func ();
44122   ;
44123   return 0;
44124 }
44125 _ACEOF
44126 rm -f conftest.$ac_objext conftest$ac_exeext
44127 if { (ac_try="$ac_link"
44128 case "(($ac_try" in
44129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44130   *) ac_try_echo=$ac_try;;
44131 esac
44132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44133   (eval "$ac_link") 2>conftest.er1
44134   ac_status=$?
44135   grep -v '^ *+' conftest.er1 >conftest.err
44136   rm -f conftest.er1
44137   cat conftest.err >&5
44138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44139   (exit $ac_status); } && {
44140          test -z "$ac_c_werror_flag" ||
44141          test ! -s conftest.err
44142        } && test -s conftest$ac_exeext &&
44143        $as_test_x conftest$ac_exeext; then
44144   eval "$as_ac_var=yes"
44145 else
44146   echo "$as_me: failed program was:" >&5
44147 sed 's/^/| /' conftest.$ac_ext >&5
44148
44149         eval "$as_ac_var=no"
44150 fi
44151
44152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44153       conftest$ac_exeext conftest.$ac_ext
44154 fi
44155 ac_res=`eval echo '${'$as_ac_var'}'`
44156                { echo "$as_me:$LINENO: result: $ac_res" >&5
44157 echo "${ECHO_T}$ac_res" >&6; }
44158 if test `eval echo '${'$as_ac_var'}'` = yes; then
44159   cat >>confdefs.h <<_ACEOF
44160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44161 _ACEOF
44162
44163 fi
44164 done
44165
44166
44167     if test "$ac_cv_func_localtime" = "yes"; then
44168         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44169 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44170 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44171   echo $ECHO_N "(cached) $ECHO_C" >&6
44172 else
44173
44174             cat >conftest.$ac_ext <<_ACEOF
44175 /* confdefs.h.  */
44176 _ACEOF
44177 cat confdefs.h >>conftest.$ac_ext
44178 cat >>conftest.$ac_ext <<_ACEOF
44179 /* end confdefs.h.  */
44180
44181                     #include <time.h>
44182
44183 int
44184 main ()
44185 {
44186
44187                     struct tm tm;
44188                     tm.tm_gmtoff++;
44189
44190   ;
44191   return 0;
44192 }
44193 _ACEOF
44194 rm -f conftest.$ac_objext
44195 if { (ac_try="$ac_compile"
44196 case "(($ac_try" in
44197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44198   *) ac_try_echo=$ac_try;;
44199 esac
44200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44201   (eval "$ac_compile") 2>conftest.er1
44202   ac_status=$?
44203   grep -v '^ *+' conftest.er1 >conftest.err
44204   rm -f conftest.er1
44205   cat conftest.err >&5
44206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44207   (exit $ac_status); } && {
44208          test -z "$ac_c_werror_flag" ||
44209          test ! -s conftest.err
44210        } && test -s conftest.$ac_objext; then
44211
44212                     wx_cv_struct_tm_has_gmtoff=yes
44213
44214 else
44215   echo "$as_me: failed program was:" >&5
44216 sed 's/^/| /' conftest.$ac_ext >&5
44217
44218         wx_cv_struct_tm_has_gmtoff=no
44219
44220 fi
44221
44222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44223
44224 fi
44225 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44226 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44227     fi
44228
44229     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44230         cat >>confdefs.h <<\_ACEOF
44231 #define WX_GMTOFF_IN_TM 1
44232 _ACEOF
44233
44234     fi
44235
44236     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44237 fi
44238
44239
44240 if test "$wxUSE_SOCKETS" = "yes"; then
44241     if test "$wxUSE_MGL" = 1; then
44242         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44243 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44244         wxUSE_SOCKETS="no"
44245     fi
44246 fi
44247
44248 if test "$wxUSE_SOCKETS" = "yes"; then
44249         if test "$TOOLKIT" != "MSW"; then
44250                 { echo "$as_me:$LINENO: checking for socket" >&5
44251 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44252 if test "${ac_cv_func_socket+set}" = set; then
44253   echo $ECHO_N "(cached) $ECHO_C" >&6
44254 else
44255   cat >conftest.$ac_ext <<_ACEOF
44256 /* confdefs.h.  */
44257 _ACEOF
44258 cat confdefs.h >>conftest.$ac_ext
44259 cat >>conftest.$ac_ext <<_ACEOF
44260 /* end confdefs.h.  */
44261 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44263 #define socket innocuous_socket
44264
44265 /* System header to define __stub macros and hopefully few prototypes,
44266     which can conflict with char socket (); below.
44267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44268     <limits.h> exists even on freestanding compilers.  */
44269
44270 #ifdef __STDC__
44271 # include <limits.h>
44272 #else
44273 # include <assert.h>
44274 #endif
44275
44276 #undef socket
44277
44278 /* Override any GCC internal prototype to avoid an error.
44279    Use char because int might match the return type of a GCC
44280    builtin and then its argument prototype would still apply.  */
44281 #ifdef __cplusplus
44282 extern "C"
44283 #endif
44284 char socket ();
44285 /* The GNU C library defines this for functions which it implements
44286     to always fail with ENOSYS.  Some functions are actually named
44287     something starting with __ and the normal name is an alias.  */
44288 #if defined __stub_socket || defined __stub___socket
44289 choke me
44290 #endif
44291
44292 int
44293 main ()
44294 {
44295 return socket ();
44296   ;
44297   return 0;
44298 }
44299 _ACEOF
44300 rm -f conftest.$ac_objext conftest$ac_exeext
44301 if { (ac_try="$ac_link"
44302 case "(($ac_try" in
44303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44304   *) ac_try_echo=$ac_try;;
44305 esac
44306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44307   (eval "$ac_link") 2>conftest.er1
44308   ac_status=$?
44309   grep -v '^ *+' conftest.er1 >conftest.err
44310   rm -f conftest.er1
44311   cat conftest.err >&5
44312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44313   (exit $ac_status); } && {
44314          test -z "$ac_c_werror_flag" ||
44315          test ! -s conftest.err
44316        } && test -s conftest$ac_exeext &&
44317        $as_test_x conftest$ac_exeext; then
44318   ac_cv_func_socket=yes
44319 else
44320   echo "$as_me: failed program was:" >&5
44321 sed 's/^/| /' conftest.$ac_ext >&5
44322
44323         ac_cv_func_socket=no
44324 fi
44325
44326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44327       conftest$ac_exeext conftest.$ac_ext
44328 fi
44329 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44330 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44331 if test $ac_cv_func_socket = yes; then
44332   :
44333 else
44334
44335                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44336 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44337 if test "${ac_cv_lib_socket_socket+set}" = set; then
44338   echo $ECHO_N "(cached) $ECHO_C" >&6
44339 else
44340   ac_check_lib_save_LIBS=$LIBS
44341 LIBS="-lsocket  $LIBS"
44342 cat >conftest.$ac_ext <<_ACEOF
44343 /* confdefs.h.  */
44344 _ACEOF
44345 cat confdefs.h >>conftest.$ac_ext
44346 cat >>conftest.$ac_ext <<_ACEOF
44347 /* end confdefs.h.  */
44348
44349 /* Override any GCC internal prototype to avoid an error.
44350    Use char because int might match the return type of a GCC
44351    builtin and then its argument prototype would still apply.  */
44352 #ifdef __cplusplus
44353 extern "C"
44354 #endif
44355 char socket ();
44356 int
44357 main ()
44358 {
44359 return socket ();
44360   ;
44361   return 0;
44362 }
44363 _ACEOF
44364 rm -f conftest.$ac_objext conftest$ac_exeext
44365 if { (ac_try="$ac_link"
44366 case "(($ac_try" in
44367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44368   *) ac_try_echo=$ac_try;;
44369 esac
44370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44371   (eval "$ac_link") 2>conftest.er1
44372   ac_status=$?
44373   grep -v '^ *+' conftest.er1 >conftest.err
44374   rm -f conftest.er1
44375   cat conftest.err >&5
44376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44377   (exit $ac_status); } && {
44378          test -z "$ac_c_werror_flag" ||
44379          test ! -s conftest.err
44380        } && test -s conftest$ac_exeext &&
44381        $as_test_x conftest$ac_exeext; then
44382   ac_cv_lib_socket_socket=yes
44383 else
44384   echo "$as_me: failed program was:" >&5
44385 sed 's/^/| /' conftest.$ac_ext >&5
44386
44387         ac_cv_lib_socket_socket=no
44388 fi
44389
44390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44391       conftest$ac_exeext conftest.$ac_ext
44392 LIBS=$ac_check_lib_save_LIBS
44393 fi
44394 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44395 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44396 if test $ac_cv_lib_socket_socket = yes; then
44397   if test "$INET_LINK" != " -lsocket"; then
44398                         INET_LINK="$INET_LINK -lsocket"
44399                     fi
44400 else
44401
44402                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44403 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44404                         wxUSE_SOCKETS=no
44405
44406
44407 fi
44408
44409
44410
44411 fi
44412
44413     fi
44414 fi
44415
44416 if test "$wxUSE_SOCKETS" = "yes" ; then
44417                 if test "$TOOLKIT" != "MSW"; then
44418                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44419 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44420 if test "${wx_cv_type_getsockname3+set}" = set; then
44421   echo $ECHO_N "(cached) $ECHO_C" >&6
44422 else
44423
44424                 ac_ext=cpp
44425 ac_cpp='$CXXCPP $CPPFLAGS'
44426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44429
44430                 cat >conftest.$ac_ext <<_ACEOF
44431 /* confdefs.h.  */
44432 _ACEOF
44433 cat confdefs.h >>conftest.$ac_ext
44434 cat >>conftest.$ac_ext <<_ACEOF
44435 /* end confdefs.h.  */
44436
44437                         #include <sys/types.h>
44438                         #include <sys/socket.h>
44439
44440 int
44441 main ()
44442 {
44443
44444                         socklen_t len;
44445                         getsockname(0, 0, &len);
44446
44447   ;
44448   return 0;
44449 }
44450 _ACEOF
44451 rm -f conftest.$ac_objext
44452 if { (ac_try="$ac_compile"
44453 case "(($ac_try" in
44454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44455   *) ac_try_echo=$ac_try;;
44456 esac
44457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44458   (eval "$ac_compile") 2>conftest.er1
44459   ac_status=$?
44460   grep -v '^ *+' conftest.er1 >conftest.err
44461   rm -f conftest.er1
44462   cat conftest.err >&5
44463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44464   (exit $ac_status); } && {
44465          test -z "$ac_cxx_werror_flag" ||
44466          test ! -s conftest.err
44467        } && test -s conftest.$ac_objext; then
44468   wx_cv_type_getsockname3=socklen_t
44469 else
44470   echo "$as_me: failed program was:" >&5
44471 sed 's/^/| /' conftest.$ac_ext >&5
44472
44473
44474                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44475                         if test "$GCC" = yes ; then
44476                             CFLAGS="-Werror $CFLAGS"
44477                         fi
44478
44479                         cat >conftest.$ac_ext <<_ACEOF
44480 /* confdefs.h.  */
44481 _ACEOF
44482 cat confdefs.h >>conftest.$ac_ext
44483 cat >>conftest.$ac_ext <<_ACEOF
44484 /* end confdefs.h.  */
44485
44486                                 #include <sys/types.h>
44487                                 #include <sys/socket.h>
44488
44489 int
44490 main ()
44491 {
44492
44493                                 size_t len;
44494                                 getsockname(0, 0, &len);
44495
44496   ;
44497   return 0;
44498 }
44499 _ACEOF
44500 rm -f conftest.$ac_objext
44501 if { (ac_try="$ac_compile"
44502 case "(($ac_try" in
44503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44504   *) ac_try_echo=$ac_try;;
44505 esac
44506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44507   (eval "$ac_compile") 2>conftest.er1
44508   ac_status=$?
44509   grep -v '^ *+' conftest.er1 >conftest.err
44510   rm -f conftest.er1
44511   cat conftest.err >&5
44512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44513   (exit $ac_status); } && {
44514          test -z "$ac_cxx_werror_flag" ||
44515          test ! -s conftest.err
44516        } && test -s conftest.$ac_objext; then
44517   wx_cv_type_getsockname3=size_t
44518 else
44519   echo "$as_me: failed program was:" >&5
44520 sed 's/^/| /' conftest.$ac_ext >&5
44521
44522         cat >conftest.$ac_ext <<_ACEOF
44523 /* confdefs.h.  */
44524 _ACEOF
44525 cat confdefs.h >>conftest.$ac_ext
44526 cat >>conftest.$ac_ext <<_ACEOF
44527 /* end confdefs.h.  */
44528
44529                                     #include <sys/types.h>
44530                                     #include <sys/socket.h>
44531
44532 int
44533 main ()
44534 {
44535
44536                                     int len;
44537                                     getsockname(0, 0, &len);
44538
44539   ;
44540   return 0;
44541 }
44542 _ACEOF
44543 rm -f conftest.$ac_objext
44544 if { (ac_try="$ac_compile"
44545 case "(($ac_try" in
44546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44547   *) ac_try_echo=$ac_try;;
44548 esac
44549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44550   (eval "$ac_compile") 2>conftest.er1
44551   ac_status=$?
44552   grep -v '^ *+' conftest.er1 >conftest.err
44553   rm -f conftest.er1
44554   cat conftest.err >&5
44555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44556   (exit $ac_status); } && {
44557          test -z "$ac_cxx_werror_flag" ||
44558          test ! -s conftest.err
44559        } && test -s conftest.$ac_objext; then
44560   wx_cv_type_getsockname3=int
44561 else
44562   echo "$as_me: failed program was:" >&5
44563 sed 's/^/| /' conftest.$ac_ext >&5
44564
44565         wx_cv_type_getsockname3=unknown
44566
44567 fi
44568
44569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44570
44571 fi
44572
44573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44574
44575                         CFLAGS="$CFLAGS_OLD"
44576
44577
44578 fi
44579
44580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44581                 ac_ext=c
44582 ac_cpp='$CPP $CPPFLAGS'
44583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44586
44587
44588 fi
44589 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44590 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44591
44592         if test "$wx_cv_type_getsockname3" = "unknown"; then
44593             wxUSE_SOCKETS=no
44594             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44595 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44596         else
44597             cat >>confdefs.h <<_ACEOF
44598 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44599 _ACEOF
44600
44601         fi
44602                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44603 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44604 if test "${wx_cv_type_getsockopt5+set}" = set; then
44605   echo $ECHO_N "(cached) $ECHO_C" >&6
44606 else
44607
44608                                                                                                 ac_ext=cpp
44609 ac_cpp='$CXXCPP $CPPFLAGS'
44610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44613
44614                 cat >conftest.$ac_ext <<_ACEOF
44615 /* confdefs.h.  */
44616 _ACEOF
44617 cat confdefs.h >>conftest.$ac_ext
44618 cat >>conftest.$ac_ext <<_ACEOF
44619 /* end confdefs.h.  */
44620
44621                         #include <sys/types.h>
44622                         #include <sys/socket.h>
44623
44624 int
44625 main ()
44626 {
44627
44628                         socklen_t len;
44629                         getsockopt(0, 0, 0, 0, &len);
44630
44631   ;
44632   return 0;
44633 }
44634 _ACEOF
44635 rm -f conftest.$ac_objext
44636 if { (ac_try="$ac_compile"
44637 case "(($ac_try" in
44638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44639   *) ac_try_echo=$ac_try;;
44640 esac
44641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44642   (eval "$ac_compile") 2>conftest.er1
44643   ac_status=$?
44644   grep -v '^ *+' conftest.er1 >conftest.err
44645   rm -f conftest.er1
44646   cat conftest.err >&5
44647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44648   (exit $ac_status); } && {
44649          test -z "$ac_cxx_werror_flag" ||
44650          test ! -s conftest.err
44651        } && test -s conftest.$ac_objext; then
44652   wx_cv_type_getsockopt5=socklen_t
44653 else
44654   echo "$as_me: failed program was:" >&5
44655 sed 's/^/| /' conftest.$ac_ext >&5
44656
44657
44658                         cat >conftest.$ac_ext <<_ACEOF
44659 /* confdefs.h.  */
44660 _ACEOF
44661 cat confdefs.h >>conftest.$ac_ext
44662 cat >>conftest.$ac_ext <<_ACEOF
44663 /* end confdefs.h.  */
44664
44665                                 #include <sys/types.h>
44666                                 #include <sys/socket.h>
44667
44668 int
44669 main ()
44670 {
44671
44672                                 size_t len;
44673                                 getsockopt(0, 0, 0, 0, &len);
44674
44675   ;
44676   return 0;
44677 }
44678 _ACEOF
44679 rm -f conftest.$ac_objext
44680 if { (ac_try="$ac_compile"
44681 case "(($ac_try" in
44682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44683   *) ac_try_echo=$ac_try;;
44684 esac
44685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44686   (eval "$ac_compile") 2>conftest.er1
44687   ac_status=$?
44688   grep -v '^ *+' conftest.er1 >conftest.err
44689   rm -f conftest.er1
44690   cat conftest.err >&5
44691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692   (exit $ac_status); } && {
44693          test -z "$ac_cxx_werror_flag" ||
44694          test ! -s conftest.err
44695        } && test -s conftest.$ac_objext; then
44696   wx_cv_type_getsockopt5=size_t
44697 else
44698   echo "$as_me: failed program was:" >&5
44699 sed 's/^/| /' conftest.$ac_ext >&5
44700
44701         cat >conftest.$ac_ext <<_ACEOF
44702 /* confdefs.h.  */
44703 _ACEOF
44704 cat confdefs.h >>conftest.$ac_ext
44705 cat >>conftest.$ac_ext <<_ACEOF
44706 /* end confdefs.h.  */
44707
44708                                     #include <sys/types.h>
44709                                     #include <sys/socket.h>
44710
44711 int
44712 main ()
44713 {
44714
44715                                     int len;
44716                                     getsockopt(0, 0, 0, 0, &len);
44717
44718   ;
44719   return 0;
44720 }
44721 _ACEOF
44722 rm -f conftest.$ac_objext
44723 if { (ac_try="$ac_compile"
44724 case "(($ac_try" in
44725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44726   *) ac_try_echo=$ac_try;;
44727 esac
44728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44729   (eval "$ac_compile") 2>conftest.er1
44730   ac_status=$?
44731   grep -v '^ *+' conftest.er1 >conftest.err
44732   rm -f conftest.er1
44733   cat conftest.err >&5
44734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44735   (exit $ac_status); } && {
44736          test -z "$ac_cxx_werror_flag" ||
44737          test ! -s conftest.err
44738        } && test -s conftest.$ac_objext; then
44739   wx_cv_type_getsockopt5=int
44740 else
44741   echo "$as_me: failed program was:" >&5
44742 sed 's/^/| /' conftest.$ac_ext >&5
44743
44744         wx_cv_type_getsockopt5=unknown
44745
44746 fi
44747
44748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44749
44750 fi
44751
44752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44753
44754
44755 fi
44756
44757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44758                 ac_ext=c
44759 ac_cpp='$CPP $CPPFLAGS'
44760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44763
44764
44765 fi
44766 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44767 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44768
44769         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44770             wxUSE_SOCKETS=no
44771             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44772 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44773         else
44774             cat >>confdefs.h <<_ACEOF
44775 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44776 _ACEOF
44777
44778         fi
44779     fi
44780 fi
44781
44782 if test "$wxUSE_SOCKETS" = "yes" ; then
44783     if test "$wxUSE_IPV6" = "yes"; then
44784         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44785 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44786 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44787   echo $ECHO_N "(cached) $ECHO_C" >&6
44788 else
44789
44790                 cat >conftest.$ac_ext <<_ACEOF
44791 /* confdefs.h.  */
44792 _ACEOF
44793 cat confdefs.h >>conftest.$ac_ext
44794 cat >>conftest.$ac_ext <<_ACEOF
44795 /* end confdefs.h.  */
44796
44797                         #include <sys/types.h>
44798                         #include <sys/socket.h>
44799                         #include <netinet/in.h>
44800
44801 int
44802 main ()
44803 {
44804
44805                         struct sockaddr_in6 sa6;
44806
44807   ;
44808   return 0;
44809 }
44810 _ACEOF
44811 rm -f conftest.$ac_objext
44812 if { (ac_try="$ac_compile"
44813 case "(($ac_try" in
44814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44815   *) ac_try_echo=$ac_try;;
44816 esac
44817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44818   (eval "$ac_compile") 2>conftest.er1
44819   ac_status=$?
44820   grep -v '^ *+' conftest.er1 >conftest.err
44821   rm -f conftest.er1
44822   cat conftest.err >&5
44823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44824   (exit $ac_status); } && {
44825          test -z "$ac_c_werror_flag" ||
44826          test ! -s conftest.err
44827        } && test -s conftest.$ac_objext; then
44828   wx_cv_type_sockaddr_in6=yes
44829 else
44830   echo "$as_me: failed program was:" >&5
44831 sed 's/^/| /' conftest.$ac_ext >&5
44832
44833         wx_cv_type_sockaddr_in6=no
44834
44835 fi
44836
44837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44838
44839
44840 fi
44841 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44842 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44843
44844         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44845             cat >>confdefs.h <<\_ACEOF
44846 #define wxUSE_IPV6 1
44847 _ACEOF
44848
44849         else
44850             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44851 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44852         fi
44853     fi
44854
44855     cat >>confdefs.h <<\_ACEOF
44856 #define wxUSE_SOCKETS 1
44857 _ACEOF
44858
44859     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44860 fi
44861
44862 if test "$wxUSE_PROTOCOL" = "yes"; then
44863     if test "$wxUSE_SOCKETS" != "yes"; then
44864         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44865 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44866         wxUSE_PROTOCOL=no
44867     fi
44868 fi
44869
44870 if test "$wxUSE_PROTOCOL" = "yes"; then
44871     cat >>confdefs.h <<\_ACEOF
44872 #define wxUSE_PROTOCOL 1
44873 _ACEOF
44874
44875
44876     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44877         cat >>confdefs.h <<\_ACEOF
44878 #define wxUSE_PROTOCOL_HTTP 1
44879 _ACEOF
44880
44881     fi
44882     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44883         cat >>confdefs.h <<\_ACEOF
44884 #define wxUSE_PROTOCOL_FTP 1
44885 _ACEOF
44886
44887     fi
44888     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44889         cat >>confdefs.h <<\_ACEOF
44890 #define wxUSE_PROTOCOL_FILE 1
44891 _ACEOF
44892
44893     fi
44894 else
44895     if test "$wxUSE_FS_INET" = "yes"; then
44896         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44897 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44898         wxUSE_FS_INET="no"
44899     fi
44900 fi
44901
44902 if test "$wxUSE_URL" = "yes"; then
44903     if test "$wxUSE_PROTOCOL" != "yes"; then
44904         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44905 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44906         wxUSE_URL=no
44907     fi
44908     if test "$wxUSE_URL" = "yes"; then
44909         cat >>confdefs.h <<\_ACEOF
44910 #define wxUSE_URL 1
44911 _ACEOF
44912
44913     fi
44914 fi
44915
44916 if test "$wxUSE_VARIANT" = "yes"; then
44917     cat >>confdefs.h <<\_ACEOF
44918 #define wxUSE_VARIANT 1
44919 _ACEOF
44920
44921 fi
44922
44923 if test "$wxUSE_FS_INET" = "yes"; then
44924   cat >>confdefs.h <<\_ACEOF
44925 #define wxUSE_FS_INET 1
44926 _ACEOF
44927
44928 fi
44929
44930
44931 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44932     wxUSE_JOYSTICK=no
44933
44934         if test "$TOOLKIT" = "MSW"; then
44935         wxUSE_JOYSTICK=yes
44936
44937         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
44938         if test "$USE_DARWIN" = 1; then
44939                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44940 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44941             ac_ext=cpp
44942 ac_cpp='$CXXCPP $CPPFLAGS'
44943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44946
44947             cat >conftest.$ac_ext <<_ACEOF
44948 /* confdefs.h.  */
44949 _ACEOF
44950 cat confdefs.h >>conftest.$ac_ext
44951 cat >>conftest.$ac_ext <<_ACEOF
44952 /* end confdefs.h.  */
44953  #include <IOKit/hid/IOHIDLib.h>
44954 int
44955 main ()
44956 {
44957  IOHIDQueueInterface *qi = NULL;
44958                               IOHIDCallbackFunction cb = NULL;
44959                               qi->setEventCallout(NULL, cb, NULL, NULL);
44960   ;
44961   return 0;
44962 }
44963 _ACEOF
44964 rm -f conftest.$ac_objext
44965 if { (ac_try="$ac_compile"
44966 case "(($ac_try" in
44967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44968   *) ac_try_echo=$ac_try;;
44969 esac
44970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44971   (eval "$ac_compile") 2>conftest.er1
44972   ac_status=$?
44973   grep -v '^ *+' conftest.er1 >conftest.err
44974   rm -f conftest.er1
44975   cat conftest.err >&5
44976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44977   (exit $ac_status); } && {
44978          test -z "$ac_cxx_werror_flag" ||
44979          test ! -s conftest.err
44980        } && test -s conftest.$ac_objext; then
44981    wxUSE_JOYSTICK=yes
44982
44983 else
44984   echo "$as_me: failed program was:" >&5
44985 sed 's/^/| /' conftest.$ac_ext >&5
44986
44987
44988 fi
44989
44990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44991             ac_ext=c
44992 ac_cpp='$CPP $CPPFLAGS'
44993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44996
44997             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44998 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44999         fi
45000
45001         else
45002                 if test "$wxUSE_MGL" != 1; then
45003
45004 for ac_header in linux/joystick.h
45005 do
45006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45010   echo $ECHO_N "(cached) $ECHO_C" >&6
45011 else
45012   cat >conftest.$ac_ext <<_ACEOF
45013 /* confdefs.h.  */
45014 _ACEOF
45015 cat confdefs.h >>conftest.$ac_ext
45016 cat >>conftest.$ac_ext <<_ACEOF
45017 /* end confdefs.h.  */
45018 $ac_includes_default
45019
45020 #include <$ac_header>
45021 _ACEOF
45022 rm -f conftest.$ac_objext
45023 if { (ac_try="$ac_compile"
45024 case "(($ac_try" in
45025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45026   *) ac_try_echo=$ac_try;;
45027 esac
45028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45029   (eval "$ac_compile") 2>conftest.er1
45030   ac_status=$?
45031   grep -v '^ *+' conftest.er1 >conftest.err
45032   rm -f conftest.er1
45033   cat conftest.err >&5
45034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035   (exit $ac_status); } && {
45036          test -z "$ac_c_werror_flag" ||
45037          test ! -s conftest.err
45038        } && test -s conftest.$ac_objext; then
45039   eval "$as_ac_Header=yes"
45040 else
45041   echo "$as_me: failed program was:" >&5
45042 sed 's/^/| /' conftest.$ac_ext >&5
45043
45044         eval "$as_ac_Header=no"
45045 fi
45046
45047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45048 fi
45049 ac_res=`eval echo '${'$as_ac_Header'}'`
45050                { echo "$as_me:$LINENO: result: $ac_res" >&5
45051 echo "${ECHO_T}$ac_res" >&6; }
45052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45053   cat >>confdefs.h <<_ACEOF
45054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45055 _ACEOF
45056  wxUSE_JOYSTICK=yes
45057 fi
45058
45059 done
45060
45061         fi
45062     fi
45063
45064     if test "$wxUSE_JOYSTICK" = "yes"; then
45065         cat >>confdefs.h <<\_ACEOF
45066 #define wxUSE_JOYSTICK 1
45067 _ACEOF
45068
45069         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45070     else
45071         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45072 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45073     fi
45074 fi
45075
45076
45077
45078 if test "$wxUSE_FONTENUM" = "yes" ; then
45079   cat >>confdefs.h <<\_ACEOF
45080 #define wxUSE_FONTENUM 1
45081 _ACEOF
45082
45083 fi
45084
45085 if test "$wxUSE_FONTMAP" = "yes" ; then
45086   cat >>confdefs.h <<\_ACEOF
45087 #define wxUSE_FONTMAP 1
45088 _ACEOF
45089
45090 fi
45091
45092 if test "$wxUSE_UNICODE" = "yes" ; then
45093   cat >>confdefs.h <<\_ACEOF
45094 #define wxUSE_UNICODE 1
45095 _ACEOF
45096
45097
45098   if test "$USE_WIN32" != 1; then
45099       wxUSE_UNICODE_MSLU=no
45100   fi
45101
45102   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45103         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45104 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45105 if test "${ac_cv_lib_unicows_main+set}" = set; then
45106   echo $ECHO_N "(cached) $ECHO_C" >&6
45107 else
45108   ac_check_lib_save_LIBS=$LIBS
45109 LIBS="-lunicows  $LIBS"
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
45117
45118 int
45119 main ()
45120 {
45121 return main ();
45122   ;
45123   return 0;
45124 }
45125 _ACEOF
45126 rm -f conftest.$ac_objext conftest$ac_exeext
45127 if { (ac_try="$ac_link"
45128 case "(($ac_try" in
45129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45130   *) ac_try_echo=$ac_try;;
45131 esac
45132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45133   (eval "$ac_link") 2>conftest.er1
45134   ac_status=$?
45135   grep -v '^ *+' conftest.er1 >conftest.err
45136   rm -f conftest.er1
45137   cat conftest.err >&5
45138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45139   (exit $ac_status); } && {
45140          test -z "$ac_c_werror_flag" ||
45141          test ! -s conftest.err
45142        } && test -s conftest$ac_exeext &&
45143        $as_test_x conftest$ac_exeext; then
45144   ac_cv_lib_unicows_main=yes
45145 else
45146   echo "$as_me: failed program was:" >&5
45147 sed 's/^/| /' conftest.$ac_ext >&5
45148
45149         ac_cv_lib_unicows_main=no
45150 fi
45151
45152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45153       conftest$ac_exeext conftest.$ac_ext
45154 LIBS=$ac_check_lib_save_LIBS
45155 fi
45156 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45157 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45158 if test $ac_cv_lib_unicows_main = yes; then
45159
45160                 cat >>confdefs.h <<\_ACEOF
45161 #define wxUSE_UNICODE_MSLU 1
45162 _ACEOF
45163
45164
45165 else
45166
45167                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45168                              Applications will only run on Windows NT/2000/XP!" >&5
45169 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45170                              Applications will only run on Windows NT/2000/XP!" >&2;}
45171                 wxUSE_UNICODE_MSLU=no
45172
45173 fi
45174
45175     fi
45176 fi
45177
45178 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45179     cat >>confdefs.h <<\_ACEOF
45180 #define wxUSE_UNICODE_UTF8 1
45181 _ACEOF
45182
45183
45184     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45185         cat >>confdefs.h <<\_ACEOF
45186 #define wxUSE_UTF8_LOCALE_ONLY 1
45187 _ACEOF
45188
45189     fi
45190 fi
45191
45192
45193 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45194     cat >>confdefs.h <<\_ACEOF
45195 #define wxUSE_CONSTRAINTS 1
45196 _ACEOF
45197
45198     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45199 fi
45200
45201 if test "$wxUSE_MDI" = "yes"; then
45202     cat >>confdefs.h <<\_ACEOF
45203 #define wxUSE_MDI 1
45204 _ACEOF
45205
45206
45207     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45208         cat >>confdefs.h <<\_ACEOF
45209 #define wxUSE_MDI_ARCHITECTURE 1
45210 _ACEOF
45211
45212         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45213     fi
45214 fi
45215
45216 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45217     cat >>confdefs.h <<\_ACEOF
45218 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45219 _ACEOF
45220
45221     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45222 fi
45223
45224 if test "$wxUSE_HELP" = "yes"; then
45225     cat >>confdefs.h <<\_ACEOF
45226 #define wxUSE_HELP 1
45227 _ACEOF
45228
45229     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45230
45231     if test "$wxUSE_MSW" = 1; then
45232       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45233         cat >>confdefs.h <<\_ACEOF
45234 #define wxUSE_MS_HTML_HELP 1
45235 _ACEOF
45236
45237       fi
45238     fi
45239
45240     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45241       if test "$wxUSE_HTML" = "yes"; then
45242         cat >>confdefs.h <<\_ACEOF
45243 #define wxUSE_WXHTML_HELP 1
45244 _ACEOF
45245
45246       else
45247         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45248 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45249         wxUSE_WXHTML_HELP=no
45250       fi
45251     fi
45252 fi
45253
45254 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45255     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45256         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45257 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45258     else
45259         cat >>confdefs.h <<\_ACEOF
45260 #define wxUSE_PRINTING_ARCHITECTURE 1
45261 _ACEOF
45262
45263     fi
45264     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45265 fi
45266
45267 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45268   cat >>confdefs.h <<\_ACEOF
45269 #define wxUSE_POSTSCRIPT 1
45270 _ACEOF
45271
45272 fi
45273
45274 cat >>confdefs.h <<\_ACEOF
45275 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45276 _ACEOF
45277
45278
45279 if test "$wxUSE_SVG" = "yes"; then
45280     cat >>confdefs.h <<\_ACEOF
45281 #define wxUSE_SVG 1
45282 _ACEOF
45283
45284 fi
45285
45286
45287 if test "$wxUSE_METAFILE" = "yes"; then
45288     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45289         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45290 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45291         wxUSE_METAFILE=no
45292     fi
45293 fi
45294
45295
45296 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45297                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45298                           -o "$wxUSE_OLE"     = "yes" \
45299                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45300     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45301 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45302 if test "${ac_cv_header_ole2_h+set}" = set; then
45303   echo $ECHO_N "(cached) $ECHO_C" >&6
45304 else
45305   cat >conftest.$ac_ext <<_ACEOF
45306 /* confdefs.h.  */
45307 _ACEOF
45308 cat confdefs.h >>conftest.$ac_ext
45309 cat >>conftest.$ac_ext <<_ACEOF
45310 /* end confdefs.h.  */
45311
45312
45313 #include <ole2.h>
45314 _ACEOF
45315 rm -f conftest.$ac_objext
45316 if { (ac_try="$ac_compile"
45317 case "(($ac_try" in
45318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45319   *) ac_try_echo=$ac_try;;
45320 esac
45321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45322   (eval "$ac_compile") 2>conftest.er1
45323   ac_status=$?
45324   grep -v '^ *+' conftest.er1 >conftest.err
45325   rm -f conftest.er1
45326   cat conftest.err >&5
45327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45328   (exit $ac_status); } && {
45329          test -z "$ac_c_werror_flag" ||
45330          test ! -s conftest.err
45331        } && test -s conftest.$ac_objext; then
45332   ac_cv_header_ole2_h=yes
45333 else
45334   echo "$as_me: failed program was:" >&5
45335 sed 's/^/| /' conftest.$ac_ext >&5
45336
45337         ac_cv_header_ole2_h=no
45338 fi
45339
45340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45341 fi
45342 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45343 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45344
45345
45346
45347     if test "$ac_cv_header_ole2_h" = "yes" ; then
45348         if test "$GCC" = yes ; then
45349             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45350 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45351             cat >conftest.$ac_ext <<_ACEOF
45352 /* confdefs.h.  */
45353 _ACEOF
45354 cat confdefs.h >>conftest.$ac_ext
45355 cat >>conftest.$ac_ext <<_ACEOF
45356 /* end confdefs.h.  */
45357 #include <windows.h>
45358                             #include <ole2.h>
45359 int
45360 main ()
45361 {
45362
45363   ;
45364   return 0;
45365 }
45366 _ACEOF
45367 rm -f conftest.$ac_objext
45368 if { (ac_try="$ac_compile"
45369 case "(($ac_try" in
45370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45371   *) ac_try_echo=$ac_try;;
45372 esac
45373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45374   (eval "$ac_compile") 2>conftest.er1
45375   ac_status=$?
45376   grep -v '^ *+' conftest.er1 >conftest.err
45377   rm -f conftest.er1
45378   cat conftest.err >&5
45379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45380   (exit $ac_status); } && {
45381          test -z "$ac_c_werror_flag" ||
45382          test ! -s conftest.err
45383        } && test -s conftest.$ac_objext; then
45384   { echo "$as_me:$LINENO: result: no" >&5
45385 echo "${ECHO_T}no" >&6; }
45386 else
45387   echo "$as_me: failed program was:" >&5
45388 sed 's/^/| /' conftest.$ac_ext >&5
45389
45390         { echo "$as_me:$LINENO: result: yes" >&5
45391 echo "${ECHO_T}yes" >&6; }
45392                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45393 fi
45394
45395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45396             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45397             if test "$wxUSE_OLE" = "yes" ; then
45398                 cat >>confdefs.h <<\_ACEOF
45399 #define wxUSE_OLE 1
45400 _ACEOF
45401
45402                 cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_OLE_AUTOMATION 1
45404 _ACEOF
45405
45406                 cat >>confdefs.h <<\_ACEOF
45407 #define wxUSE_ACTIVEX 1
45408 _ACEOF
45409
45410                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45411             fi
45412         fi
45413
45414                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45415             cat >>confdefs.h <<\_ACEOF
45416 #define wxUSE_DATAOBJ 1
45417 _ACEOF
45418
45419         fi
45420     else
45421         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45422 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45423
45424         wxUSE_CLIPBOARD=no
45425         wxUSE_DRAG_AND_DROP=no
45426         wxUSE_DATAOBJ=no
45427         wxUSE_OLE=no
45428     fi
45429
45430     if test "$wxUSE_METAFILE" = "yes"; then
45431         cat >>confdefs.h <<\_ACEOF
45432 #define wxUSE_METAFILE 1
45433 _ACEOF
45434
45435
45436                 cat >>confdefs.h <<\_ACEOF
45437 #define wxUSE_ENH_METAFILE 1
45438 _ACEOF
45439
45440     fi
45441 fi
45442
45443 if test "$wxUSE_IPC" = "yes"; then
45444     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45445         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45446 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45447         wxUSE_IPC=no
45448     fi
45449
45450     if test "$wxUSE_IPC" = "yes"; then
45451         cat >>confdefs.h <<\_ACEOF
45452 #define wxUSE_IPC 1
45453 _ACEOF
45454
45455         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45456     fi
45457 fi
45458
45459 if test "$wxUSE_DATAOBJ" = "yes"; then
45460     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45461         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45462 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45463         wxUSE_DATAOBJ=no
45464     else
45465         cat >>confdefs.h <<\_ACEOF
45466 #define wxUSE_DATAOBJ 1
45467 _ACEOF
45468
45469     fi
45470 else
45471     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45472 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45473     wxUSE_CLIPBOARD=no
45474     wxUSE_DRAG_AND_DROP=no
45475 fi
45476
45477 if test "$wxUSE_CLIPBOARD" = "yes"; then
45478     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45479         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45480 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45481         wxUSE_CLIPBOARD=no
45482     fi
45483
45484     if test "$wxUSE_CLIPBOARD" = "yes"; then
45485         cat >>confdefs.h <<\_ACEOF
45486 #define wxUSE_CLIPBOARD 1
45487 _ACEOF
45488
45489     fi
45490 fi
45491
45492 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45493     if test "$wxUSE_GTK" = 1; then
45494         if test "$WXGTK12" != 1; then
45495             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45496 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45497             wxUSE_DRAG_AND_DROP=no
45498         fi
45499     fi
45500
45501     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45502             "$wxUSE_DFB" = 1; then
45503         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45504 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45505         wxUSE_DRAG_AND_DROP=no
45506     fi
45507
45508     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45509         cat >>confdefs.h <<\_ACEOF
45510 #define wxUSE_DRAG_AND_DROP 1
45511 _ACEOF
45512
45513     fi
45514
45515 fi
45516
45517 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45518     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45519 fi
45520
45521 if test "$wxUSE_SPLINES" = "yes" ; then
45522   cat >>confdefs.h <<\_ACEOF
45523 #define wxUSE_SPLINES 1
45524 _ACEOF
45525
45526 fi
45527
45528 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45529   cat >>confdefs.h <<\_ACEOF
45530 #define wxUSE_MOUSEWHEEL 1
45531 _ACEOF
45532
45533 fi
45534
45535
45536 USES_CONTROLS=0
45537 if test "$wxUSE_CONTROLS" = "yes"; then
45538   USES_CONTROLS=1
45539 fi
45540
45541 if test "$wxUSE_ACCEL" = "yes"; then
45542   cat >>confdefs.h <<\_ACEOF
45543 #define wxUSE_ACCEL 1
45544 _ACEOF
45545
45546   USES_CONTROLS=1
45547 fi
45548
45549 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45550   cat >>confdefs.h <<\_ACEOF
45551 #define wxUSE_ANIMATIONCTRL 1
45552 _ACEOF
45553
45554   USES_CONTROLS=1
45555   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45556 fi
45557
45558 if test "$wxUSE_BUTTON" = "yes"; then
45559   cat >>confdefs.h <<\_ACEOF
45560 #define wxUSE_BUTTON 1
45561 _ACEOF
45562
45563   USES_CONTROLS=1
45564 fi
45565
45566 if test "$wxUSE_BMPBUTTON" = "yes"; then
45567   cat >>confdefs.h <<\_ACEOF
45568 #define wxUSE_BMPBUTTON 1
45569 _ACEOF
45570
45571   USES_CONTROLS=1
45572 fi
45573
45574 if test "$wxUSE_CALCTRL" = "yes"; then
45575   cat >>confdefs.h <<\_ACEOF
45576 #define wxUSE_CALENDARCTRL 1
45577 _ACEOF
45578
45579   USES_CONTROLS=1
45580   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45581 fi
45582
45583 if test "$wxUSE_CARET" = "yes"; then
45584   cat >>confdefs.h <<\_ACEOF
45585 #define wxUSE_CARET 1
45586 _ACEOF
45587
45588   USES_CONTROLS=1
45589   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45590 fi
45591
45592 if test "$wxUSE_COLLPANE" = "yes"; then
45593     cat >>confdefs.h <<\_ACEOF
45594 #define wxUSE_COLLPANE 1
45595 _ACEOF
45596
45597     USES_CONTROLS=1
45598     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45599 fi
45600
45601 if test "$wxUSE_COMBOBOX" = "yes"; then
45602   cat >>confdefs.h <<\_ACEOF
45603 #define wxUSE_COMBOBOX 1
45604 _ACEOF
45605
45606   USES_CONTROLS=1
45607 fi
45608
45609 if test "$wxUSE_COMBOCTRL" = "yes"; then
45610   cat >>confdefs.h <<\_ACEOF
45611 #define wxUSE_COMBOCTRL 1
45612 _ACEOF
45613
45614   USES_CONTROLS=1
45615 fi
45616
45617 if test "$wxUSE_CHOICE" = "yes"; then
45618   cat >>confdefs.h <<\_ACEOF
45619 #define wxUSE_CHOICE 1
45620 _ACEOF
45621
45622   USES_CONTROLS=1
45623 fi
45624
45625 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45626     cat >>confdefs.h <<\_ACEOF
45627 #define wxUSE_CHOICEBOOK 1
45628 _ACEOF
45629
45630     USES_CONTROLS=1
45631 fi
45632
45633 if test "$wxUSE_CHECKBOX" = "yes"; then
45634   cat >>confdefs.h <<\_ACEOF
45635 #define wxUSE_CHECKBOX 1
45636 _ACEOF
45637
45638   USES_CONTROLS=1
45639 fi
45640
45641 if test "$wxUSE_CHECKLST" = "yes"; then
45642   cat >>confdefs.h <<\_ACEOF
45643 #define wxUSE_CHECKLISTBOX 1
45644 _ACEOF
45645
45646   USES_CONTROLS=1
45647 fi
45648
45649 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45650   cat >>confdefs.h <<\_ACEOF
45651 #define wxUSE_COLOURPICKERCTRL 1
45652 _ACEOF
45653
45654   USES_CONTROLS=1
45655 fi
45656
45657 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45658   cat >>confdefs.h <<\_ACEOF
45659 #define wxUSE_DATEPICKCTRL 1
45660 _ACEOF
45661
45662   USES_CONTROLS=1
45663 fi
45664
45665 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45666   cat >>confdefs.h <<\_ACEOF
45667 #define wxUSE_DIRPICKERCTRL 1
45668 _ACEOF
45669
45670   USES_CONTROLS=1
45671 fi
45672
45673 if test "$wxUSE_FILECTRL" = "yes"; then
45674   cat >>confdefs.h <<\_ACEOF
45675 #define wxUSE_FILECTRL 1
45676 _ACEOF
45677
45678   USES_CONTROLS=1
45679 fi
45680
45681 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45682   cat >>confdefs.h <<\_ACEOF
45683 #define wxUSE_FILEPICKERCTRL 1
45684 _ACEOF
45685
45686   USES_CONTROLS=1
45687 fi
45688
45689 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45690   cat >>confdefs.h <<\_ACEOF
45691 #define wxUSE_FONTPICKERCTRL 1
45692 _ACEOF
45693
45694   USES_CONTROLS=1
45695 fi
45696
45697 if test "$wxUSE_DISPLAY" = "yes"; then
45698     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45699         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45700 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45701         wxUSE_DISPLAY=no
45702     else
45703         cat >>confdefs.h <<\_ACEOF
45704 #define wxUSE_DISPLAY 1
45705 _ACEOF
45706
45707         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45708     fi
45709 fi
45710
45711 if test "$wxUSE_DETECT_SM" = "yes"; then
45712     cat >>confdefs.h <<\_ACEOF
45713 #define wxUSE_DETECT_SM 1
45714 _ACEOF
45715
45716 fi
45717
45718 if test "$wxUSE_GAUGE" = "yes"; then
45719   cat >>confdefs.h <<\_ACEOF
45720 #define wxUSE_GAUGE 1
45721 _ACEOF
45722
45723   USES_CONTROLS=1
45724 fi
45725
45726 if test "$wxUSE_GRID" = "yes"; then
45727   cat >>confdefs.h <<\_ACEOF
45728 #define wxUSE_GRID 1
45729 _ACEOF
45730
45731   USES_CONTROLS=1
45732   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45733 fi
45734
45735 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45736   cat >>confdefs.h <<\_ACEOF
45737 #define wxUSE_HYPERLINKCTRL 1
45738 _ACEOF
45739
45740   USES_CONTROLS=1
45741 fi
45742
45743 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45744   cat >>confdefs.h <<\_ACEOF
45745 #define wxUSE_BITMAPCOMBOBOX 1
45746 _ACEOF
45747
45748   USES_CONTROLS=1
45749 fi
45750
45751 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45752   cat >>confdefs.h <<\_ACEOF
45753 #define wxUSE_DATAVIEWCTRL 1
45754 _ACEOF
45755
45756   USES_CONTROLS=1
45757   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45758 fi
45759
45760 if test "$wxUSE_IMAGLIST" = "yes"; then
45761     cat >>confdefs.h <<\_ACEOF
45762 #define wxUSE_IMAGLIST 1
45763 _ACEOF
45764
45765 fi
45766
45767 if test "$wxUSE_LISTBOOK" = "yes"; then
45768     cat >>confdefs.h <<\_ACEOF
45769 #define wxUSE_LISTBOOK 1
45770 _ACEOF
45771
45772     USES_CONTROLS=1
45773 fi
45774
45775 if test "$wxUSE_LISTBOX" = "yes"; then
45776     cat >>confdefs.h <<\_ACEOF
45777 #define wxUSE_LISTBOX 1
45778 _ACEOF
45779
45780     USES_CONTROLS=1
45781 fi
45782
45783 if test "$wxUSE_LISTCTRL" = "yes"; then
45784     if test "$wxUSE_IMAGLIST" = "yes"; then
45785         cat >>confdefs.h <<\_ACEOF
45786 #define wxUSE_LISTCTRL 1
45787 _ACEOF
45788
45789         USES_CONTROLS=1
45790         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45791     else
45792         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45793 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45794     fi
45795 fi
45796
45797 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45798     cat >>confdefs.h <<\_ACEOF
45799 #define wxUSE_EDITABLELISTBOX 1
45800 _ACEOF
45801
45802     USES_CONTROLS=1
45803     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45804 fi
45805
45806 if test "$wxUSE_NOTEBOOK" = "yes"; then
45807     cat >>confdefs.h <<\_ACEOF
45808 #define wxUSE_NOTEBOOK 1
45809 _ACEOF
45810
45811     USES_CONTROLS=1
45812     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45813 fi
45814
45815 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45816     cat >>confdefs.h <<\_ACEOF
45817 #define wxUSE_NOTIFICATION_MESSAGE 1
45818 _ACEOF
45819
45820 fi
45821
45822 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45823   cat >>confdefs.h <<\_ACEOF
45824 #define wxUSE_ODCOMBOBOX 1
45825 _ACEOF
45826
45827   USES_CONTROLS=1
45828   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45829 fi
45830
45831 if test "$wxUSE_RADIOBOX" = "yes"; then
45832     cat >>confdefs.h <<\_ACEOF
45833 #define wxUSE_RADIOBOX 1
45834 _ACEOF
45835
45836     USES_CONTROLS=1
45837 fi
45838
45839 if test "$wxUSE_RADIOBTN" = "yes"; then
45840     cat >>confdefs.h <<\_ACEOF
45841 #define wxUSE_RADIOBTN 1
45842 _ACEOF
45843
45844     USES_CONTROLS=1
45845 fi
45846
45847 if test "$wxUSE_SASH" = "yes"; then
45848     cat >>confdefs.h <<\_ACEOF
45849 #define wxUSE_SASH 1
45850 _ACEOF
45851
45852     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45853 fi
45854
45855 if test "$wxUSE_SCROLLBAR" = "yes"; then
45856     cat >>confdefs.h <<\_ACEOF
45857 #define wxUSE_SCROLLBAR 1
45858 _ACEOF
45859
45860     USES_CONTROLS=1
45861     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45862 fi
45863
45864 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45865     cat >>confdefs.h <<\_ACEOF
45866 #define wxUSE_SEARCHCTRL 1
45867 _ACEOF
45868
45869     USES_CONTROLS=1
45870 fi
45871
45872 if test "$wxUSE_SLIDER" = "yes"; then
45873     cat >>confdefs.h <<\_ACEOF
45874 #define wxUSE_SLIDER 1
45875 _ACEOF
45876
45877     USES_CONTROLS=1
45878 fi
45879
45880 if test "$wxUSE_SPINBTN" = "yes"; then
45881     cat >>confdefs.h <<\_ACEOF
45882 #define wxUSE_SPINBTN 1
45883 _ACEOF
45884
45885     USES_CONTROLS=1
45886 fi
45887
45888 if test "$wxUSE_SPINCTRL" = "yes"; then
45889     cat >>confdefs.h <<\_ACEOF
45890 #define wxUSE_SPINCTRL 1
45891 _ACEOF
45892
45893     USES_CONTROLS=1
45894 fi
45895
45896 if test "$wxUSE_SPLITTER" = "yes"; then
45897     cat >>confdefs.h <<\_ACEOF
45898 #define wxUSE_SPLITTER 1
45899 _ACEOF
45900
45901     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45902 fi
45903
45904 if test "$wxUSE_STATBMP" = "yes"; then
45905     cat >>confdefs.h <<\_ACEOF
45906 #define wxUSE_STATBMP 1
45907 _ACEOF
45908
45909     USES_CONTROLS=1
45910 fi
45911
45912 if test "$wxUSE_STATBOX" = "yes"; then
45913     cat >>confdefs.h <<\_ACEOF
45914 #define wxUSE_STATBOX 1
45915 _ACEOF
45916
45917     USES_CONTROLS=1
45918 fi
45919
45920 if test "$wxUSE_STATTEXT" = "yes"; then
45921     cat >>confdefs.h <<\_ACEOF
45922 #define wxUSE_STATTEXT 1
45923 _ACEOF
45924
45925     USES_CONTROLS=1
45926 fi
45927
45928 if test "$wxUSE_STATLINE" = "yes"; then
45929     cat >>confdefs.h <<\_ACEOF
45930 #define wxUSE_STATLINE 1
45931 _ACEOF
45932
45933     USES_CONTROLS=1
45934 fi
45935
45936 if test "$wxUSE_STATUSBAR" = "yes"; then
45937         cat >>confdefs.h <<\_ACEOF
45938 #define wxUSE_NATIVE_STATUSBAR 1
45939 _ACEOF
45940
45941     cat >>confdefs.h <<\_ACEOF
45942 #define wxUSE_STATUSBAR 1
45943 _ACEOF
45944
45945     USES_CONTROLS=1
45946
45947     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45948 fi
45949
45950 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45951     cat >>confdefs.h <<\_ACEOF
45952 #define wxUSE_TAB_DIALOG 1
45953 _ACEOF
45954
45955 fi
45956
45957 if test "$wxUSE_TEXTCTRL" = "yes"; then
45958     cat >>confdefs.h <<\_ACEOF
45959 #define wxUSE_TEXTCTRL 1
45960 _ACEOF
45961
45962     USES_CONTROLS=1
45963     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45964
45965             cat >>confdefs.h <<\_ACEOF
45966 #define wxUSE_RICHEDIT 1
45967 _ACEOF
45968
45969     cat >>confdefs.h <<\_ACEOF
45970 #define wxUSE_RICHEDIT2 1
45971 _ACEOF
45972
45973 fi
45974
45975 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45976     if test "$wxUSE_COCOA" = 1 ; then
45977         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45978 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45979         wxUSE_TOGGLEBTN=no
45980     fi
45981
45982     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45983         cat >>confdefs.h <<\_ACEOF
45984 #define wxUSE_TOGGLEBTN 1
45985 _ACEOF
45986
45987         USES_CONTROLS=1
45988     fi
45989 fi
45990
45991 if test "$wxUSE_TOOLBAR" = "yes"; then
45992     cat >>confdefs.h <<\_ACEOF
45993 #define wxUSE_TOOLBAR 1
45994 _ACEOF
45995
45996     USES_CONTROLS=1
45997
45998     if test "$wxUSE_UNIVERSAL" = "yes"; then
45999         wxUSE_TOOLBAR_NATIVE="no"
46000     else
46001         wxUSE_TOOLBAR_NATIVE="yes"
46002         cat >>confdefs.h <<\_ACEOF
46003 #define wxUSE_TOOLBAR_NATIVE 1
46004 _ACEOF
46005
46006     fi
46007
46008     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46009 fi
46010
46011 if test "$wxUSE_TOOLTIPS" = "yes"; then
46012     if test "$wxUSE_MOTIF" = 1; then
46013         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46014 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46015     else
46016         if test "$wxUSE_UNIVERSAL" = "yes"; then
46017             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46018 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46019         else
46020             cat >>confdefs.h <<\_ACEOF
46021 #define wxUSE_TOOLTIPS 1
46022 _ACEOF
46023
46024         fi
46025     fi
46026 fi
46027
46028 if test "$wxUSE_TREEBOOK" = "yes"; then
46029     cat >>confdefs.h <<\_ACEOF
46030 #define wxUSE_TREEBOOK 1
46031 _ACEOF
46032
46033     USES_CONTROLS=1
46034 fi
46035
46036 if test "$wxUSE_TOOLBOOK" = "yes"; then
46037     cat >>confdefs.h <<\_ACEOF
46038 #define wxUSE_TOOLBOOK 1
46039 _ACEOF
46040
46041     USES_CONTROLS=1
46042 fi
46043
46044 if test "$wxUSE_TREECTRL" = "yes"; then
46045     if test "$wxUSE_IMAGLIST" = "yes"; then
46046         cat >>confdefs.h <<\_ACEOF
46047 #define wxUSE_TREECTRL 1
46048 _ACEOF
46049
46050         USES_CONTROLS=1
46051         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46052     else
46053         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46054 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46055     fi
46056 fi
46057
46058 if test "$wxUSE_POPUPWIN" = "yes"; then
46059     if test "$wxUSE_COCOA" = 1 ; then
46060         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46061 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46062     else
46063         if test "$wxUSE_PM" = 1; then
46064             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46065 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46066         else
46067             cat >>confdefs.h <<\_ACEOF
46068 #define wxUSE_POPUPWIN 1
46069 _ACEOF
46070
46071             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46072
46073             USES_CONTROLS=1
46074         fi
46075     fi
46076 fi
46077
46078 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46079     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46080         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46081 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46082     else
46083         cat >>confdefs.h <<\_ACEOF
46084 #define wxUSE_DIALUP_MANAGER 1
46085 _ACEOF
46086
46087         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46088     fi
46089 fi
46090
46091 if test "$wxUSE_TIPWINDOW" = "yes"; then
46092     if test "$wxUSE_PM" = 1; then
46093         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46094 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46095     else
46096         cat >>confdefs.h <<\_ACEOF
46097 #define wxUSE_TIPWINDOW 1
46098 _ACEOF
46099
46100     fi
46101 fi
46102
46103 if test "$USES_CONTROLS" = 1; then
46104     cat >>confdefs.h <<\_ACEOF
46105 #define wxUSE_CONTROLS 1
46106 _ACEOF
46107
46108 fi
46109
46110
46111 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46112     cat >>confdefs.h <<\_ACEOF
46113 #define wxUSE_ACCESSIBILITY 1
46114 _ACEOF
46115
46116     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46117 fi
46118
46119 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46120     cat >>confdefs.h <<\_ACEOF
46121 #define wxUSE_DRAGIMAGE 1
46122 _ACEOF
46123
46124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46125 fi
46126
46127 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46128     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46129         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46130 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46131     else
46132         cat >>confdefs.h <<\_ACEOF
46133 #define wxUSE_EXCEPTIONS 1
46134 _ACEOF
46135
46136         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46137     fi
46138 fi
46139
46140 USE_HTML=0
46141 if test "$wxUSE_HTML" = "yes"; then
46142     cat >>confdefs.h <<\_ACEOF
46143 #define wxUSE_HTML 1
46144 _ACEOF
46145
46146     USE_HTML=1
46147     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46148 fi
46149 if test "$wxUSE_WEBKIT" = "yes"; then
46150     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46151         old_CPPFLAGS="$CPPFLAGS"
46152         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46153         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46154 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46155 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46156   echo $ECHO_N "(cached) $ECHO_C" >&6
46157 else
46158   cat >conftest.$ac_ext <<_ACEOF
46159 /* confdefs.h.  */
46160 _ACEOF
46161 cat confdefs.h >>conftest.$ac_ext
46162 cat >>conftest.$ac_ext <<_ACEOF
46163 /* end confdefs.h.  */
46164
46165                            #include <Carbon/Carbon.h>
46166                            #include <WebKit/WebKit.h>
46167
46168
46169 #include <WebKit/HIWebView.h>
46170 _ACEOF
46171 rm -f conftest.$ac_objext
46172 if { (ac_try="$ac_compile"
46173 case "(($ac_try" in
46174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46175   *) ac_try_echo=$ac_try;;
46176 esac
46177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46178   (eval "$ac_compile") 2>conftest.er1
46179   ac_status=$?
46180   grep -v '^ *+' conftest.er1 >conftest.err
46181   rm -f conftest.er1
46182   cat conftest.err >&5
46183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46184   (exit $ac_status); } && {
46185          test -z "$ac_c_werror_flag" ||
46186          test ! -s conftest.err
46187        } && test -s conftest.$ac_objext; then
46188   ac_cv_header_WebKit_HIWebView_h=yes
46189 else
46190   echo "$as_me: failed program was:" >&5
46191 sed 's/^/| /' conftest.$ac_ext >&5
46192
46193         ac_cv_header_WebKit_HIWebView_h=no
46194 fi
46195
46196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46197 fi
46198 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46199 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46200 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46201
46202                            cat >>confdefs.h <<\_ACEOF
46203 #define wxUSE_WEBKIT 1
46204 _ACEOF
46205
46206                            WEBKIT_LINK="-framework WebKit"
46207
46208 else
46209
46210                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46211 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46212                            wxUSE_WEBKIT=no
46213
46214 fi
46215
46216
46217         CPPFLAGS="$old_CPPFLAGS"
46218     elif test "$wxUSE_COCOA" = 1; then
46219         cat >>confdefs.h <<\_ACEOF
46220 #define wxUSE_WEBKIT 1
46221 _ACEOF
46222
46223     else
46224         wxUSE_WEBKIT=no
46225     fi
46226     if test "$wxUSE_WEBKIT" = "yes"; then
46227         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46228     fi
46229 fi
46230
46231 USE_XRC=0
46232 if test "$wxUSE_XRC" = "yes"; then
46233     if test "$wxUSE_XML" != "yes"; then
46234         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46235 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46236         wxUSE_XRC=no
46237     else
46238         cat >>confdefs.h <<\_ACEOF
46239 #define wxUSE_XRC 1
46240 _ACEOF
46241
46242         USE_XRC=1
46243         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46244     fi
46245 fi
46246
46247 USE_AUI=0
46248 if test "$wxUSE_AUI" = "yes"; then
46249    cat >>confdefs.h <<\_ACEOF
46250 #define wxUSE_AUI 1
46251 _ACEOF
46252
46253    USE_AUI=1
46254    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46255 fi
46256
46257 USE_PROPGRID=0
46258 if test "$wxUSE_PROPGRID" = "yes"; then
46259    cat >>confdefs.h <<\_ACEOF
46260 #define wxUSE_PROPGRID 1
46261 _ACEOF
46262
46263    USE_PROPGRID=1
46264    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46265 fi
46266
46267 USE_STC=0
46268 if test "$wxUSE_STC" = "yes"; then
46269    cat >>confdefs.h <<\_ACEOF
46270 #define wxUSE_STC 1
46271 _ACEOF
46272
46273    USE_STC=1
46274    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46275 fi
46276
46277 if test "$wxUSE_MENUS" = "yes"; then
46278     cat >>confdefs.h <<\_ACEOF
46279 #define wxUSE_MENUS 1
46280 _ACEOF
46281
46282     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46283 fi
46284
46285 if test "$wxUSE_METAFILE" = "yes"; then
46286     cat >>confdefs.h <<\_ACEOF
46287 #define wxUSE_METAFILE 1
46288 _ACEOF
46289
46290 fi
46291
46292 if test "$wxUSE_MIMETYPE" = "yes"; then
46293     cat >>confdefs.h <<\_ACEOF
46294 #define wxUSE_MIMETYPE 1
46295 _ACEOF
46296
46297 fi
46298
46299 if test "$wxUSE_MINIFRAME" = "yes"; then
46300     cat >>confdefs.h <<\_ACEOF
46301 #define wxUSE_MINIFRAME 1
46302 _ACEOF
46303
46304 fi
46305
46306 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46307     cat >>confdefs.h <<\_ACEOF
46308 #define wxUSE_SYSTEM_OPTIONS 1
46309 _ACEOF
46310
46311 fi
46312
46313 if test "$wxUSE_TASKBARICON" = "yes"; then
46314     cat >>confdefs.h <<\_ACEOF
46315 #define wxUSE_TASKBARICON 1
46316 _ACEOF
46317
46318     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46319 fi
46320
46321
46322 if test "$wxUSE_VALIDATORS" = "yes"; then
46323     cat >>confdefs.h <<\_ACEOF
46324 #define wxUSE_VALIDATORS 1
46325 _ACEOF
46326
46327     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46328 fi
46329
46330 if test "$wxUSE_PALETTE" = "yes" ; then
46331     if test "$wxUSE_DFB" = 1; then
46332         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46333 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46334         wxUSE_PALETTE=no
46335     else
46336         cat >>confdefs.h <<\_ACEOF
46337 #define wxUSE_PALETTE 1
46338 _ACEOF
46339
46340     fi
46341 fi
46342
46343 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46344     LIBS=" -lunicows $LIBS"
46345 fi
46346
46347 USE_RICHTEXT=0
46348 if test "$wxUSE_RICHTEXT" = "yes"; then
46349     cat >>confdefs.h <<\_ACEOF
46350 #define wxUSE_RICHTEXT 1
46351 _ACEOF
46352
46353     USE_RICHTEXT=1
46354     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46355 fi
46356
46357
46358 if test "$wxUSE_IMAGE" = "yes" ; then
46359     cat >>confdefs.h <<\_ACEOF
46360 #define wxUSE_IMAGE 1
46361 _ACEOF
46362
46363
46364     if test "$wxUSE_GIF" = "yes" ; then
46365       cat >>confdefs.h <<\_ACEOF
46366 #define wxUSE_GIF 1
46367 _ACEOF
46368
46369     fi
46370
46371     if test "$wxUSE_PCX" = "yes" ; then
46372       cat >>confdefs.h <<\_ACEOF
46373 #define wxUSE_PCX 1
46374 _ACEOF
46375
46376     fi
46377
46378     if test "$wxUSE_TGA" = "yes" ; then
46379       cat >>confdefs.h <<\_ACEOF
46380 #define wxUSE_TGA 1
46381 _ACEOF
46382
46383     fi
46384
46385     if test "$wxUSE_IFF" = "yes" ; then
46386       cat >>confdefs.h <<\_ACEOF
46387 #define wxUSE_IFF 1
46388 _ACEOF
46389
46390     fi
46391
46392     if test "$wxUSE_PNM" = "yes" ; then
46393       cat >>confdefs.h <<\_ACEOF
46394 #define wxUSE_PNM 1
46395 _ACEOF
46396
46397     fi
46398
46399     if test "$wxUSE_XPM" = "yes" ; then
46400       cat >>confdefs.h <<\_ACEOF
46401 #define wxUSE_XPM 1
46402 _ACEOF
46403
46404     fi
46405
46406     if test "$wxUSE_ICO_CUR" = "yes" ; then
46407       cat >>confdefs.h <<\_ACEOF
46408 #define wxUSE_ICO_CUR 1
46409 _ACEOF
46410
46411     fi
46412 fi
46413
46414
46415 if test "$wxUSE_ABOUTDLG" = "yes"; then
46416     cat >>confdefs.h <<\_ACEOF
46417 #define wxUSE_ABOUTDLG 1
46418 _ACEOF
46419
46420 fi
46421
46422 if test "$wxUSE_CHOICEDLG" = "yes"; then
46423     cat >>confdefs.h <<\_ACEOF
46424 #define wxUSE_CHOICEDLG 1
46425 _ACEOF
46426
46427 fi
46428
46429 if test "$wxUSE_COLOURDLG" = "yes"; then
46430     cat >>confdefs.h <<\_ACEOF
46431 #define wxUSE_COLOURDLG 1
46432 _ACEOF
46433
46434 fi
46435
46436 if test "$wxUSE_FILEDLG" = "yes"; then
46437     cat >>confdefs.h <<\_ACEOF
46438 #define wxUSE_FILEDLG 1
46439 _ACEOF
46440
46441 fi
46442
46443 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46444     cat >>confdefs.h <<\_ACEOF
46445 #define wxUSE_FINDREPLDLG 1
46446 _ACEOF
46447
46448 fi
46449
46450 if test "$wxUSE_FONTDLG" = "yes"; then
46451     cat >>confdefs.h <<\_ACEOF
46452 #define wxUSE_FONTDLG 1
46453 _ACEOF
46454
46455 fi
46456
46457 if test "$wxUSE_DIRDLG" = "yes"; then
46458     if test "$wxUSE_TREECTRL" != "yes"; then
46459         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46460 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46461     else
46462         cat >>confdefs.h <<\_ACEOF
46463 #define wxUSE_DIRDLG 1
46464 _ACEOF
46465
46466     fi
46467 fi
46468
46469 if test "$wxUSE_MSGDLG" = "yes"; then
46470     cat >>confdefs.h <<\_ACEOF
46471 #define wxUSE_MSGDLG 1
46472 _ACEOF
46473
46474 fi
46475
46476 if test "$wxUSE_NUMBERDLG" = "yes"; then
46477     cat >>confdefs.h <<\_ACEOF
46478 #define wxUSE_NUMBERDLG 1
46479 _ACEOF
46480
46481 fi
46482
46483 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46484     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46485        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46486 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46487     else
46488         cat >>confdefs.h <<\_ACEOF
46489 #define wxUSE_PROGRESSDLG 1
46490 _ACEOF
46491
46492     fi
46493 fi
46494
46495 if test "$wxUSE_SPLASH" = "yes"; then
46496     cat >>confdefs.h <<\_ACEOF
46497 #define wxUSE_SPLASH 1
46498 _ACEOF
46499
46500     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46501 fi
46502
46503 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46504     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46505        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46506 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46507     else
46508         cat >>confdefs.h <<\_ACEOF
46509 #define wxUSE_STARTUP_TIPS 1
46510 _ACEOF
46511
46512     fi
46513 fi
46514
46515 if test "$wxUSE_TEXTDLG" = "yes"; then
46516     cat >>confdefs.h <<\_ACEOF
46517 #define wxUSE_TEXTDLG 1
46518 _ACEOF
46519
46520 fi
46521
46522 if test "$wxUSE_WIZARDDLG" = "yes"; then
46523     cat >>confdefs.h <<\_ACEOF
46524 #define wxUSE_WIZARDDLG 1
46525 _ACEOF
46526
46527     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46528 fi
46529
46530
46531 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46532     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46533         cat >>confdefs.h <<\_ACEOF
46534 #define wxUSE_OWNER_DRAWN 1
46535 _ACEOF
46536
46537     fi
46538 fi
46539
46540
46541 if test "$wxUSE_MSW" = 1 ; then
46542
46543     if test "$wxUSE_DC_CACHEING" = "yes"; then
46544         cat >>confdefs.h <<\_ACEOF
46545 #define wxUSE_DC_CACHEING 1
46546 _ACEOF
46547
46548     fi
46549
46550     if test "$wxUSE_DIB" = "yes"; then
46551         cat >>confdefs.h <<\_ACEOF
46552 #define wxUSE_WXDIB 1
46553 _ACEOF
46554
46555     fi
46556
46557     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46558         cat >>confdefs.h <<\_ACEOF
46559 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46560 _ACEOF
46561
46562     fi
46563
46564     if test "$wxUSE_UXTHEME" = "yes"; then
46565         cat >>confdefs.h <<\_ACEOF
46566 #define wxUSE_UXTHEME 1
46567 _ACEOF
46568
46569     fi
46570
46571 fi
46572
46573 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46574     cat >>confdefs.h <<\_ACEOF
46575 #define wxUSE_AUTOID_MANAGEMENT 1
46576 _ACEOF
46577
46578 fi
46579
46580 if test "$USE_WIN32" = 1 ; then
46581     if test "$wxUSE_INICONF" = "yes"; then
46582         cat >>confdefs.h <<\_ACEOF
46583 #define wxUSE_INICONF 1
46584 _ACEOF
46585
46586     fi
46587
46588     if test "$wxUSE_REGKEY" = "yes"; then
46589         cat >>confdefs.h <<\_ACEOF
46590 #define wxUSE_REGKEY 1
46591 _ACEOF
46592
46593     fi
46594 fi
46595
46596
46597 if test "$wxUSE_MAC" = 1; then
46598         wxUSE_GRAPHICS_CONTEXT="yes"
46599 fi
46600
46601 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46602    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46603       cat >>confdefs.h <<\_ACEOF
46604 #define wxUSE_GRAPHICS_CONTEXT 1
46605 _ACEOF
46606
46607    elif test "$wxUSE_GTK" != 1; then
46608             cat >>confdefs.h <<\_ACEOF
46609 #define wxUSE_GRAPHICS_CONTEXT 1
46610 _ACEOF
46611
46612    else
46613
46614 pkg_failed=no
46615 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46616 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46617
46618 if test -n "$PKG_CONFIG"; then
46619     if test -n "$CAIRO_CFLAGS"; then
46620         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46621     else
46622         if test -n "$PKG_CONFIG" && \
46623     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46624   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46625   ac_status=$?
46626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46627   (exit $ac_status); }; then
46628   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46629 else
46630   pkg_failed=yes
46631 fi
46632     fi
46633 else
46634         pkg_failed=untried
46635 fi
46636 if test -n "$PKG_CONFIG"; then
46637     if test -n "$CAIRO_LIBS"; then
46638         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46639     else
46640         if test -n "$PKG_CONFIG" && \
46641     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46642   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46643   ac_status=$?
46644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46645   (exit $ac_status); }; then
46646   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46647 else
46648   pkg_failed=yes
46649 fi
46650     fi
46651 else
46652         pkg_failed=untried
46653 fi
46654
46655
46656
46657 if test $pkg_failed = yes; then
46658
46659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46660         _pkg_short_errors_supported=yes
46661 else
46662         _pkg_short_errors_supported=no
46663 fi
46664         if test $_pkg_short_errors_supported = yes; then
46665                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46666         else
46667                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46668         fi
46669         # Put the nasty error message in config.log where it belongs
46670         echo "$CAIRO_PKG_ERRORS" >&5
46671
46672         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46673 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46674
46675 elif test $pkg_failed = untried; then
46676         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46677 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46678
46679 else
46680         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46681         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46682         { echo "$as_me:$LINENO: result: yes" >&5
46683 echo "${ECHO_T}yes" >&6; }
46684         cat >>confdefs.h <<\_ACEOF
46685 #define wxUSE_GRAPHICS_CONTEXT 1
46686 _ACEOF
46687
46688 fi
46689    fi
46690 fi
46691
46692
46693 USE_MEDIA=0
46694
46695 if test "$wxUSE_MEDIACTRL" = "yes"; then
46696     USE_MEDIA=1
46697
46698                 if test "$wxUSE_GTK" = 1; then
46699         wxUSE_GSTREAMER="no"
46700
46701                                                                 GST_VERSION_MAJOR=0
46702         GST_VERSION_MINOR=10
46703         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46704
46705         if test "$wxUSE_GSTREAMER8" = "no"; then
46706
46707 pkg_failed=no
46708 { echo "$as_me:$LINENO: checking for GST" >&5
46709 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46710
46711 if test -n "$PKG_CONFIG"; then
46712     if test -n "$GST_CFLAGS"; then
46713         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46714     else
46715         if test -n "$PKG_CONFIG" && \
46716     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46717   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46718   ac_status=$?
46719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46720   (exit $ac_status); }; then
46721   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46722 else
46723   pkg_failed=yes
46724 fi
46725     fi
46726 else
46727         pkg_failed=untried
46728 fi
46729 if test -n "$PKG_CONFIG"; then
46730     if test -n "$GST_LIBS"; then
46731         pkg_cv_GST_LIBS="$GST_LIBS"
46732     else
46733         if test -n "$PKG_CONFIG" && \
46734     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46735   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46736   ac_status=$?
46737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46738   (exit $ac_status); }; then
46739   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46740 else
46741   pkg_failed=yes
46742 fi
46743     fi
46744 else
46745         pkg_failed=untried
46746 fi
46747
46748
46749
46750 if test $pkg_failed = yes; then
46751
46752 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46753         _pkg_short_errors_supported=yes
46754 else
46755         _pkg_short_errors_supported=no
46756 fi
46757         if test $_pkg_short_errors_supported = yes; then
46758                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46759         else
46760                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46761         fi
46762         # Put the nasty error message in config.log where it belongs
46763         echo "$GST_PKG_ERRORS" >&5
46764
46765
46766                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46767 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46768                     GST_VERSION_MINOR=8
46769
46770
46771 elif test $pkg_failed = untried; then
46772
46773                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46774 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46775                     GST_VERSION_MINOR=8
46776
46777
46778 else
46779         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46780         GST_LIBS=$pkg_cv_GST_LIBS
46781         { echo "$as_me:$LINENO: result: yes" >&5
46782 echo "${ECHO_T}yes" >&6; }
46783
46784                     wxUSE_GSTREAMER="yes"
46785                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46786
46787 fi
46788         else
46789                         GST_VERSION_MINOR=8
46790         fi
46791
46792         if test $GST_VERSION_MINOR = "8"; then
46793             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46794
46795 pkg_failed=no
46796 { echo "$as_me:$LINENO: checking for GST" >&5
46797 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46798
46799 if test -n "$PKG_CONFIG"; then
46800     if test -n "$GST_CFLAGS"; then
46801         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46802     else
46803         if test -n "$PKG_CONFIG" && \
46804     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46805   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46806   ac_status=$?
46807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808   (exit $ac_status); }; then
46809   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46810 else
46811   pkg_failed=yes
46812 fi
46813     fi
46814 else
46815         pkg_failed=untried
46816 fi
46817 if test -n "$PKG_CONFIG"; then
46818     if test -n "$GST_LIBS"; then
46819         pkg_cv_GST_LIBS="$GST_LIBS"
46820     else
46821         if test -n "$PKG_CONFIG" && \
46822     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46823   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46824   ac_status=$?
46825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46826   (exit $ac_status); }; then
46827   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46828 else
46829   pkg_failed=yes
46830 fi
46831     fi
46832 else
46833         pkg_failed=untried
46834 fi
46835
46836
46837
46838 if test $pkg_failed = yes; then
46839
46840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46841         _pkg_short_errors_supported=yes
46842 else
46843         _pkg_short_errors_supported=no
46844 fi
46845         if test $_pkg_short_errors_supported = yes; then
46846                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46847         else
46848                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46849         fi
46850         # Put the nasty error message in config.log where it belongs
46851         echo "$GST_PKG_ERRORS" >&5
46852
46853
46854                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46855 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46856
46857 elif test $pkg_failed = untried; then
46858
46859                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46860 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46861
46862 else
46863         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46864         GST_LIBS=$pkg_cv_GST_LIBS
46865         { echo "$as_me:$LINENO: result: yes" >&5
46866 echo "${ECHO_T}yes" >&6; }
46867         wxUSE_GSTREAMER="yes"
46868 fi
46869         fi
46870
46871
46872         if test "$wxUSE_GSTREAMER" = "yes"; then
46873             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46874             EXTRALIBS_MEDIA="$GST_LIBS"
46875
46876             cat >>confdefs.h <<\_ACEOF
46877 #define wxUSE_GSTREAMER 1
46878 _ACEOF
46879
46880         else
46881             USE_MEDIA=0
46882         fi
46883     fi
46884
46885     if test $USE_MEDIA = 1; then
46886         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46887         cat >>confdefs.h <<\_ACEOF
46888 #define wxUSE_MEDIACTRL 1
46889 _ACEOF
46890
46891     fi
46892 fi
46893
46894
46895 if test "$cross_compiling" = "yes"; then
46896         OSINFO="\"$host\""
46897 else
46898         OSINFO=`uname -s -r -m`
46899     OSINFO="\"$OSINFO\""
46900 fi
46901
46902 cat >>confdefs.h <<_ACEOF
46903 #define WXWIN_OS_DESCRIPTION $OSINFO
46904 _ACEOF
46905
46906
46907
46908 if test "x$prefix" != "xNONE"; then
46909     wxPREFIX=$prefix
46910 else
46911     wxPREFIX=$ac_default_prefix
46912 fi
46913
46914 cat >>confdefs.h <<_ACEOF
46915 #define wxINSTALL_PREFIX "$wxPREFIX"
46916 _ACEOF
46917
46918
46919
46920
46921 STD_BASE_LIBS="base"
46922 STD_GUI_LIBS=""
46923 BUILT_WX_LIBS="base"
46924 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46925
46926 if test "$wxUSE_SOCKETS" = "yes" ; then
46927     STD_BASE_LIBS="net $STD_BASE_LIBS"
46928     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46929 fi
46930 if test "$wxUSE_XML" = "yes" ; then
46931     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46932     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46933 fi
46934
46935 if test "$wxUSE_GUI" = "yes"; then
46936     STD_GUI_LIBS="adv core"
46937     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46938
46939     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46940         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46941         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46942     fi
46943     if test "$wxUSE_HTML" = "yes" ; then
46944         STD_GUI_LIBS="html $STD_GUI_LIBS"
46945         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46946     fi
46947     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46948         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46949     fi
46950     if test "$wxUSE_OPENGL" = "yes" ; then
46951         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46952     fi
46953     if test "$wxUSE_AUI" = "yes" ; then
46954         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46955     fi
46956     if test "$wxUSE_PROPGRID" = "yes" ; then
46957         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
46958     fi
46959     if test "$wxUSE_STC" = "yes" ; then
46960         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46961     fi
46962     if test "$wxUSE_XRC" = "yes" ; then
46963         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46964         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46965     fi
46966 fi
46967
46968
46969
46970
46971
46972
46973
46974
46975 if test "$wxUSE_MAC" = 1 ; then
46976     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46977         if test "$USE_DARWIN" = 1; then
46978             LDFLAGS="$LDFLAGS -framework QuickTime"
46979         fi
46980     fi
46981     if test "$USE_DARWIN" = 1; then
46982         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System"
46983     fi
46984 fi
46985 if test "$wxUSE_COCOA" = 1 ; then
46986     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46987     if test "$wxUSE_MEDIACTRL" = "yes"; then
46988         LDFLAGS="$LDFLAGS -framework QuickTime"
46989     fi
46990 fi
46991 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46992     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46993 fi
46994
46995 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46996
46997 if test "$wxUSE_GUI" = "yes"; then
46998
46999
47000         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47001                      erase event exec font image minimal mobile \
47002                      mobile/wxedit mobile/styles render \
47003                      shaped svg taborder vscroll widgets"
47004
47005     if test "$wxUSE_MONOLITHIC" != "yes"; then
47006         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47007     fi
47008     if test "$TOOLKIT" = "MSW"; then
47009         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47010         if test "$wxUSE_UNIVERSAL" != "yes"; then
47011             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47012         fi
47013     fi
47014     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47015         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47016     fi
47017 else
47018     SAMPLES_SUBDIRS="console"
47019     if test "$wxUSE_SOCKETS" = "yes" ; then
47020         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47021     fi
47022     if test "$wxUSE_IPC" = "yes" ; then
47023         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47024     fi
47025 fi
47026
47027
47028 if test "x$INTELCC" = "xyes" ; then
47029                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47030 elif test "$GCC" = yes ; then
47031     CWARNINGS="-Wall -Wundef"
47032 fi
47033
47034 if test "x$INTELCXX" = "xyes" ; then
47035                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
47036 elif test "$GXX" = yes ; then
47037         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47038 fi
47039
47040
47041 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47042 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47043
47044
47045 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47046  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47047  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47048  $CPPFLAGS `
47049
47050 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47051 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47052 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47053 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47054 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47055
47056 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47057
47058
47059 if test "x$MWCC" = "xyes"; then
47060
47061             CC="$CC -cwd source -I-"
47062     CXX="$CXX -cwd source -I-"
47063 fi
47064
47065
47066 LIBS=`echo $LIBS`
47067 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47068 EXTRALIBS_XML="$EXPAT_LINK"
47069 EXTRALIBS_HTML="$MSPACK_LINK"
47070 EXTRALIBS_MEDIA="$GST_LIBS"
47071 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47072 if test "$wxUSE_GUI" = "yes"; then
47073     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47074 fi
47075 if test "$wxUSE_OPENGL" = "yes"; then
47076     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47077 fi
47078
47079 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47080
47081 WXCONFIG_LIBS="$LIBS"
47082
47083 if test "$wxUSE_REGEX" = "builtin" ; then
47084     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47085 fi
47086 if test "$wxUSE_EXPAT" = "builtin" ; then
47087     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47088 fi
47089 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47090     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47091 fi
47092 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47093     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47094 fi
47095 if test "$wxUSE_LIBPNG" = "builtin" ; then
47096     wxconfig_3rdparty="png $wxconfig_3rdparty"
47097 fi
47098 if test "$wxUSE_ZLIB" = "builtin" ; then
47099     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47100 fi
47101
47102 for i in $wxconfig_3rdparty ; do
47103     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47104 done
47105
47106
47107 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47108     WXUNIV=1
47109
47110     case "$wxUNIV_THEMES" in
47111         ''|all)
47112             cat >>confdefs.h <<\_ACEOF
47113 #define wxUSE_ALL_THEMES 1
47114 _ACEOF
47115
47116             ;;
47117
47118         *)
47119             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47120                 cat >>confdefs.h <<_ACEOF
47121 #define wxUSE_THEME_$t 1
47122 _ACEOF
47123
47124             done
47125     esac
47126 else
47127     WXUNIV=0
47128 fi
47129
47130
47131
47132
47133
47134
47135
47136
47137 if test $wxUSE_MONOLITHIC = "yes" ; then
47138     MONOLITHIC=1
47139 else
47140     MONOLITHIC=0
47141 fi
47142
47143 if test $wxUSE_PLUGINS = "yes" ; then
47144     USE_PLUGINS=1
47145 else
47146     USE_PLUGINS=0
47147 fi
47148
47149 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47150     USE_QA=1
47151 else
47152     USE_QA=0
47153 fi
47154
47155 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47156     OFFICIAL_BUILD=1
47157 else
47158     OFFICIAL_BUILD=0
47159 fi
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188 if test "$TOOLKIT" = "MAC"; then
47189     TOOLKIT_LOWERCASE=osx
47190 else
47191     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47192 fi
47193
47194
47195
47196
47197
47198
47199
47200
47201 case "$TOOLKIT" in
47202     GTK)
47203         TOOLKIT_DESC="GTK+"
47204         if test "$WXGTK2" = 1; then
47205             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47206             if test "$wxUSE_GTKPRINT" = "yes" ; then
47207                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47208             fi
47209             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47210                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47211             fi
47212             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47213                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47214             fi
47215             if test "$wxUSE_LIBHILDON" = "yes"; then
47216                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47217             fi
47218
47219             if test "$TOOLKIT_EXTRA" != ""; then
47220                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47221             fi
47222         fi
47223         ;;
47224
47225     ?*)
47226         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47227         ;;
47228
47229     *)
47230         TOOLKIT_DESC="base only"
47231         ;;
47232 esac
47233
47234 if test "$wxUSE_WINE" = "yes"; then
47235     BAKEFILE_FORCE_PLATFORM=win32
47236 fi
47237
47238 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47239 then
47240     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47241 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47242 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47243   echo $ECHO_N "(cached) $ECHO_C" >&6
47244 else
47245
47246             echo '#include <stdio.h>
47247                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47248
47249             echo '#include "conftest.h"
47250                   int main()
47251                   {
47252                      printf("%ls", test_var);
47253                      return 0;
47254                   }' > conftest.cpp
47255
47256             wx_cv_gcc_pch_bug="pch not supported"
47257
47258             if $CXX conftest.h >/dev/null 2>&1
47259             then
47260                 wx_cv_gcc_pch_bug=
47261
47262                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47263                 then
47264                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47265                         grep awidetest >/dev/null
47266                     then
47267                         wx_cv_gcc_pch_bug=no
47268                     else
47269                         wx_cv_gcc_pch_bug=yes
47270                     fi
47271                 fi
47272             fi
47273
47274             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47275
47276 fi
47277 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47278 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47279
47280     if test "$wx_cv_gcc_pch_bug" = yes; then
47281                         bk_use_pch=no
47282     fi
47283 fi
47284
47285
47286
47287
47288
47289
47290
47291     if test "x$BAKEFILE_HOST" = "x"; then
47292                if test "x${host}" = "x" ; then
47293                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47294 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47295    { (exit 1); exit 1; }; }
47296                fi
47297
47298         BAKEFILE_HOST="${host}"
47299     fi
47300
47301     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47302
47303     if test -n "$ac_tool_prefix"; then
47304   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47308 if test "${ac_cv_prog_RANLIB+set}" = set; then
47309   echo $ECHO_N "(cached) $ECHO_C" >&6
47310 else
47311   if test -n "$RANLIB"; then
47312   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47313 else
47314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47315 for as_dir in $PATH
47316 do
47317   IFS=$as_save_IFS
47318   test -z "$as_dir" && as_dir=.
47319   for ac_exec_ext in '' $ac_executable_extensions; do
47320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47321     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47323     break 2
47324   fi
47325 done
47326 done
47327 IFS=$as_save_IFS
47328
47329 fi
47330 fi
47331 RANLIB=$ac_cv_prog_RANLIB
47332 if test -n "$RANLIB"; then
47333   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47334 echo "${ECHO_T}$RANLIB" >&6; }
47335 else
47336   { echo "$as_me:$LINENO: result: no" >&5
47337 echo "${ECHO_T}no" >&6; }
47338 fi
47339
47340
47341 fi
47342 if test -z "$ac_cv_prog_RANLIB"; then
47343   ac_ct_RANLIB=$RANLIB
47344   # Extract the first word of "ranlib", so it can be a program name with args.
47345 set dummy ranlib; ac_word=$2
47346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47349   echo $ECHO_N "(cached) $ECHO_C" >&6
47350 else
47351   if test -n "$ac_ct_RANLIB"; then
47352   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47353 else
47354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47355 for as_dir in $PATH
47356 do
47357   IFS=$as_save_IFS
47358   test -z "$as_dir" && as_dir=.
47359   for ac_exec_ext in '' $ac_executable_extensions; do
47360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47361     ac_cv_prog_ac_ct_RANLIB="ranlib"
47362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47363     break 2
47364   fi
47365 done
47366 done
47367 IFS=$as_save_IFS
47368
47369 fi
47370 fi
47371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47372 if test -n "$ac_ct_RANLIB"; then
47373   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47374 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47375 else
47376   { echo "$as_me:$LINENO: result: no" >&5
47377 echo "${ECHO_T}no" >&6; }
47378 fi
47379
47380   if test "x$ac_ct_RANLIB" = x; then
47381     RANLIB=":"
47382   else
47383     case $cross_compiling:$ac_tool_warned in
47384 yes:)
47385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47386 whose name does not start with the host triplet.  If you think this
47387 configuration is useful to you, please write to autoconf@gnu.org." >&5
47388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47389 whose name does not start with the host triplet.  If you think this
47390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47391 ac_tool_warned=yes ;;
47392 esac
47393     RANLIB=$ac_ct_RANLIB
47394   fi
47395 else
47396   RANLIB="$ac_cv_prog_RANLIB"
47397 fi
47398
47399     # Find a good install program.  We prefer a C program (faster),
47400 # so one script is as good as another.  But avoid the broken or
47401 # incompatible versions:
47402 # SysV /etc/install, /usr/sbin/install
47403 # SunOS /usr/etc/install
47404 # IRIX /sbin/install
47405 # AIX /bin/install
47406 # AmigaOS /C/install, which installs bootblocks on floppy discs
47407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47410 # OS/2's system install, which has a completely different semantic
47411 # ./install, which can be erroneously created by make from ./install.sh.
47412 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47413 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47414 if test -z "$INSTALL"; then
47415 if test "${ac_cv_path_install+set}" = set; then
47416   echo $ECHO_N "(cached) $ECHO_C" >&6
47417 else
47418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47419 for as_dir in $PATH
47420 do
47421   IFS=$as_save_IFS
47422   test -z "$as_dir" && as_dir=.
47423   # Account for people who put trailing slashes in PATH elements.
47424 case $as_dir/ in
47425   ./ | .// | /cC/* | \
47426   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47427   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47428   /usr/ucb/* ) ;;
47429   *)
47430     # OSF1 and SCO ODT 3.0 have their own names for install.
47431     # Don't use installbsd from OSF since it installs stuff as root
47432     # by default.
47433     for ac_prog in ginstall scoinst install; do
47434       for ac_exec_ext in '' $ac_executable_extensions; do
47435         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47436           if test $ac_prog = install &&
47437             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47438             # AIX install.  It has an incompatible calling convention.
47439             :
47440           elif test $ac_prog = install &&
47441             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47442             # program-specific install script used by HP pwplus--don't use.
47443             :
47444           else
47445             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47446             break 3
47447           fi
47448         fi
47449       done
47450     done
47451     ;;
47452 esac
47453 done
47454 IFS=$as_save_IFS
47455
47456
47457 fi
47458   if test "${ac_cv_path_install+set}" = set; then
47459     INSTALL=$ac_cv_path_install
47460   else
47461     # As a last resort, use the slow shell script.  Don't cache a
47462     # value for INSTALL within a source directory, because that will
47463     # break other packages using the cache if that directory is
47464     # removed, or if the value is a relative name.
47465     INSTALL=$ac_install_sh
47466   fi
47467 fi
47468 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47469 echo "${ECHO_T}$INSTALL" >&6; }
47470
47471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47472 # It thinks the first close brace ends the variable substitution.
47473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47474
47475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47476
47477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47478
47479     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47480 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47481 LN_S=$as_ln_s
47482 if test "$LN_S" = "ln -s"; then
47483   { echo "$as_me:$LINENO: result: yes" >&5
47484 echo "${ECHO_T}yes" >&6; }
47485 else
47486   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47487 echo "${ECHO_T}no, using $LN_S" >&6; }
47488 fi
47489
47490
47491     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47492 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47493 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47494 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47495   echo $ECHO_N "(cached) $ECHO_C" >&6
47496 else
47497   cat >conftest.make <<\_ACEOF
47498 SHELL = /bin/sh
47499 all:
47500         @echo '@@@%%%=$(MAKE)=@@@%%%'
47501 _ACEOF
47502 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47503 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47504   *@@@%%%=?*=@@@%%%*)
47505     eval ac_cv_prog_make_${ac_make}_set=yes;;
47506   *)
47507     eval ac_cv_prog_make_${ac_make}_set=no;;
47508 esac
47509 rm -f conftest.make
47510 fi
47511 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47512   { echo "$as_me:$LINENO: result: yes" >&5
47513 echo "${ECHO_T}yes" >&6; }
47514   SET_MAKE=
47515 else
47516   { echo "$as_me:$LINENO: result: no" >&5
47517 echo "${ECHO_T}no" >&6; }
47518   SET_MAKE="MAKE=${MAKE-make}"
47519 fi
47520
47521
47522
47523     if test "x$SUNCXX" = "xyes"; then
47524                                 AR=$CXX
47525         AROPTIONS="-xar -o"
47526
47527     elif test "x$SGICC" = "xyes"; then
47528                 AR=$CXX
47529         AROPTIONS="-ar -o"
47530
47531     else
47532         if test -n "$ac_tool_prefix"; then
47533   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47534 set dummy ${ac_tool_prefix}ar; ac_word=$2
47535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47537 if test "${ac_cv_prog_AR+set}" = set; then
47538   echo $ECHO_N "(cached) $ECHO_C" >&6
47539 else
47540   if test -n "$AR"; then
47541   ac_cv_prog_AR="$AR" # Let the user override the test.
47542 else
47543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47544 for as_dir in $PATH
47545 do
47546   IFS=$as_save_IFS
47547   test -z "$as_dir" && as_dir=.
47548   for ac_exec_ext in '' $ac_executable_extensions; do
47549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47550     ac_cv_prog_AR="${ac_tool_prefix}ar"
47551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47552     break 2
47553   fi
47554 done
47555 done
47556 IFS=$as_save_IFS
47557
47558 fi
47559 fi
47560 AR=$ac_cv_prog_AR
47561 if test -n "$AR"; then
47562   { echo "$as_me:$LINENO: result: $AR" >&5
47563 echo "${ECHO_T}$AR" >&6; }
47564 else
47565   { echo "$as_me:$LINENO: result: no" >&5
47566 echo "${ECHO_T}no" >&6; }
47567 fi
47568
47569
47570 fi
47571 if test -z "$ac_cv_prog_AR"; then
47572   ac_ct_AR=$AR
47573   # Extract the first word of "ar", so it can be a program name with args.
47574 set dummy ar; ac_word=$2
47575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47577 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47578   echo $ECHO_N "(cached) $ECHO_C" >&6
47579 else
47580   if test -n "$ac_ct_AR"; then
47581   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47582 else
47583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47584 for as_dir in $PATH
47585 do
47586   IFS=$as_save_IFS
47587   test -z "$as_dir" && as_dir=.
47588   for ac_exec_ext in '' $ac_executable_extensions; do
47589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47590     ac_cv_prog_ac_ct_AR="ar"
47591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47592     break 2
47593   fi
47594 done
47595 done
47596 IFS=$as_save_IFS
47597
47598 fi
47599 fi
47600 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47601 if test -n "$ac_ct_AR"; then
47602   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47603 echo "${ECHO_T}$ac_ct_AR" >&6; }
47604 else
47605   { echo "$as_me:$LINENO: result: no" >&5
47606 echo "${ECHO_T}no" >&6; }
47607 fi
47608
47609   if test "x$ac_ct_AR" = x; then
47610     AR="ar"
47611   else
47612     case $cross_compiling:$ac_tool_warned in
47613 yes:)
47614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47615 whose name does not start with the host triplet.  If you think this
47616 configuration is useful to you, please write to autoconf@gnu.org." >&5
47617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47618 whose name does not start with the host triplet.  If you think this
47619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47620 ac_tool_warned=yes ;;
47621 esac
47622     AR=$ac_ct_AR
47623   fi
47624 else
47625   AR="$ac_cv_prog_AR"
47626 fi
47627
47628         AROPTIONS=rcu
47629     fi
47630
47631
47632     if test -n "$ac_tool_prefix"; then
47633   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47634 set dummy ${ac_tool_prefix}strip; ac_word=$2
47635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47637 if test "${ac_cv_prog_STRIP+set}" = set; then
47638   echo $ECHO_N "(cached) $ECHO_C" >&6
47639 else
47640   if test -n "$STRIP"; then
47641   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47642 else
47643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47644 for as_dir in $PATH
47645 do
47646   IFS=$as_save_IFS
47647   test -z "$as_dir" && as_dir=.
47648   for ac_exec_ext in '' $ac_executable_extensions; do
47649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47650     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47652     break 2
47653   fi
47654 done
47655 done
47656 IFS=$as_save_IFS
47657
47658 fi
47659 fi
47660 STRIP=$ac_cv_prog_STRIP
47661 if test -n "$STRIP"; then
47662   { echo "$as_me:$LINENO: result: $STRIP" >&5
47663 echo "${ECHO_T}$STRIP" >&6; }
47664 else
47665   { echo "$as_me:$LINENO: result: no" >&5
47666 echo "${ECHO_T}no" >&6; }
47667 fi
47668
47669
47670 fi
47671 if test -z "$ac_cv_prog_STRIP"; then
47672   ac_ct_STRIP=$STRIP
47673   # Extract the first word of "strip", so it can be a program name with args.
47674 set dummy strip; ac_word=$2
47675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47677 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47678   echo $ECHO_N "(cached) $ECHO_C" >&6
47679 else
47680   if test -n "$ac_ct_STRIP"; then
47681   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47682 else
47683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47684 for as_dir in $PATH
47685 do
47686   IFS=$as_save_IFS
47687   test -z "$as_dir" && as_dir=.
47688   for ac_exec_ext in '' $ac_executable_extensions; do
47689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47690     ac_cv_prog_ac_ct_STRIP="strip"
47691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47692     break 2
47693   fi
47694 done
47695 done
47696 IFS=$as_save_IFS
47697
47698 fi
47699 fi
47700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47701 if test -n "$ac_ct_STRIP"; then
47702   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47703 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47704 else
47705   { echo "$as_me:$LINENO: result: no" >&5
47706 echo "${ECHO_T}no" >&6; }
47707 fi
47708
47709   if test "x$ac_ct_STRIP" = x; then
47710     STRIP=":"
47711   else
47712     case $cross_compiling:$ac_tool_warned in
47713 yes:)
47714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47715 whose name does not start with the host triplet.  If you think this
47716 configuration is useful to you, please write to autoconf@gnu.org." >&5
47717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47718 whose name does not start with the host triplet.  If you think this
47719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47720 ac_tool_warned=yes ;;
47721 esac
47722     STRIP=$ac_ct_STRIP
47723   fi
47724 else
47725   STRIP="$ac_cv_prog_STRIP"
47726 fi
47727
47728     if test -n "$ac_tool_prefix"; then
47729   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47730 set dummy ${ac_tool_prefix}nm; ac_word=$2
47731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47733 if test "${ac_cv_prog_NM+set}" = set; then
47734   echo $ECHO_N "(cached) $ECHO_C" >&6
47735 else
47736   if test -n "$NM"; then
47737   ac_cv_prog_NM="$NM" # Let the user override the test.
47738 else
47739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47740 for as_dir in $PATH
47741 do
47742   IFS=$as_save_IFS
47743   test -z "$as_dir" && as_dir=.
47744   for ac_exec_ext in '' $ac_executable_extensions; do
47745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47746     ac_cv_prog_NM="${ac_tool_prefix}nm"
47747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47748     break 2
47749   fi
47750 done
47751 done
47752 IFS=$as_save_IFS
47753
47754 fi
47755 fi
47756 NM=$ac_cv_prog_NM
47757 if test -n "$NM"; then
47758   { echo "$as_me:$LINENO: result: $NM" >&5
47759 echo "${ECHO_T}$NM" >&6; }
47760 else
47761   { echo "$as_me:$LINENO: result: no" >&5
47762 echo "${ECHO_T}no" >&6; }
47763 fi
47764
47765
47766 fi
47767 if test -z "$ac_cv_prog_NM"; then
47768   ac_ct_NM=$NM
47769   # Extract the first word of "nm", so it can be a program name with args.
47770 set dummy nm; ac_word=$2
47771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47773 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47774   echo $ECHO_N "(cached) $ECHO_C" >&6
47775 else
47776   if test -n "$ac_ct_NM"; then
47777   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47778 else
47779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47780 for as_dir in $PATH
47781 do
47782   IFS=$as_save_IFS
47783   test -z "$as_dir" && as_dir=.
47784   for ac_exec_ext in '' $ac_executable_extensions; do
47785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47786     ac_cv_prog_ac_ct_NM="nm"
47787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47788     break 2
47789   fi
47790 done
47791 done
47792 IFS=$as_save_IFS
47793
47794 fi
47795 fi
47796 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47797 if test -n "$ac_ct_NM"; then
47798   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47799 echo "${ECHO_T}$ac_ct_NM" >&6; }
47800 else
47801   { echo "$as_me:$LINENO: result: no" >&5
47802 echo "${ECHO_T}no" >&6; }
47803 fi
47804
47805   if test "x$ac_ct_NM" = x; then
47806     NM=":"
47807   else
47808     case $cross_compiling:$ac_tool_warned in
47809 yes:)
47810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47811 whose name does not start with the host triplet.  If you think this
47812 configuration is useful to you, please write to autoconf@gnu.org." >&5
47813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47814 whose name does not start with the host triplet.  If you think this
47815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47816 ac_tool_warned=yes ;;
47817 esac
47818     NM=$ac_ct_NM
47819   fi
47820 else
47821   NM="$ac_cv_prog_NM"
47822 fi
47823
47824
47825             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47826 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47827     INSTALL_TEST_DIR=acbftest$$
47828     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47829     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47830         rmdir $INSTALL_TEST_DIR
47831                         INSTALL_DIR='$(INSTALL) -d'
47832         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47833 echo "${ECHO_T}$INSTALL -d" >&6; }
47834     else
47835         INSTALL_DIR="mkdir -p"
47836         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47837 echo "${ECHO_T}mkdir -p" >&6; }
47838     fi
47839
47840
47841     LDFLAGS_GUI=
47842     case ${BAKEFILE_HOST} in
47843         *-*-cygwin* | *-*-mingw32* )
47844         LDFLAGS_GUI="-mwindows"
47845     esac
47846
47847
47848     fi
47849
47850         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47851 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47852 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47853   echo $ECHO_N "(cached) $ECHO_C" >&6
47854 else
47855
47856         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47857                 egrep -s GNU > /dev/null); then
47858             bakefile_cv_prog_makeisgnu="yes"
47859         else
47860             bakefile_cv_prog_makeisgnu="no"
47861         fi
47862
47863 fi
47864 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47865 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47866
47867     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47868         IF_GNU_MAKE=""
47869     else
47870         IF_GNU_MAKE="#"
47871     fi
47872
47873
47874
47875     PLATFORM_UNIX=0
47876     PLATFORM_WIN32=0
47877     PLATFORM_MSDOS=0
47878     PLATFORM_MAC=0
47879     PLATFORM_MACOS=0
47880     PLATFORM_MACOSX=0
47881     PLATFORM_OS2=0
47882     PLATFORM_BEOS=0
47883
47884     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47885         case "${BAKEFILE_HOST}" in
47886             *-*-mingw32* )
47887                 PLATFORM_WIN32=1
47888             ;;
47889             *-pc-msdosdjgpp )
47890                 PLATFORM_MSDOS=1
47891             ;;
47892             *-pc-os2_emx | *-pc-os2-emx )
47893                 PLATFORM_OS2=1
47894             ;;
47895             *-*-darwin* )
47896                 PLATFORM_MAC=1
47897                 PLATFORM_MACOSX=1
47898             ;;
47899             *-*-beos* )
47900                 PLATFORM_BEOS=1
47901             ;;
47902             powerpc-apple-macos* )
47903                 PLATFORM_MAC=1
47904                 PLATFORM_MACOS=1
47905             ;;
47906             * )
47907                 PLATFORM_UNIX=1
47908             ;;
47909         esac
47910     else
47911         case "$BAKEFILE_FORCE_PLATFORM" in
47912             win32 )
47913                 PLATFORM_WIN32=1
47914             ;;
47915             msdos )
47916                 PLATFORM_MSDOS=1
47917             ;;
47918             os2 )
47919                 PLATFORM_OS2=1
47920             ;;
47921             darwin )
47922                 PLATFORM_MAC=1
47923                 PLATFORM_MACOSX=1
47924             ;;
47925             unix )
47926                 PLATFORM_UNIX=1
47927             ;;
47928             beos )
47929                 PLATFORM_BEOS=1
47930             ;;
47931             * )
47932                                             ;;
47933         esac
47934     fi
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945
47946     # Check whether --enable-omf was given.
47947 if test "${enable_omf+set}" = set; then
47948   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47949 fi
47950
47951
47952     case "${BAKEFILE_HOST}" in
47953       *-*-darwin* )
47954                         if test "x$GCC" = "xyes"; then
47955             CFLAGS="$CFLAGS -fno-common"
47956             CXXFLAGS="$CXXFLAGS -fno-common"
47957         fi
47958         if test "x$XLCC" = "xyes"; then
47959             CFLAGS="$CFLAGS -qnocommon"
47960             CXXFLAGS="$CXXFLAGS -qnocommon"
47961         fi
47962         ;;
47963
47964       *-pc-os2_emx | *-pc-os2-emx )
47965         if test "x$bk_os2_use_omf" = "xyes" ; then
47966             AR=emxomfar
47967             RANLIB=:
47968             LDFLAGS="-Zomf $LDFLAGS"
47969             CFLAGS="-Zomf $CFLAGS"
47970             CXXFLAGS="-Zomf $CXXFLAGS"
47971             OS2_LIBEXT="lib"
47972         else
47973             OS2_LIBEXT="a"
47974         fi
47975         ;;
47976
47977       i*86-*-beos* )
47978         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47979         ;;
47980     esac
47981
47982
47983     SO_SUFFIX="so"
47984     SO_SUFFIX_MODULE="so"
47985     EXEEXT=""
47986     LIBPREFIX="lib"
47987     LIBEXT=".a"
47988     DLLPREFIX="lib"
47989     DLLPREFIX_MODULE=""
47990     DLLIMP_SUFFIX=""
47991     dlldir="$libdir"
47992
47993     case "${BAKEFILE_HOST}" in
47994         *-hp-hpux* )
47995             SO_SUFFIX="sl"
47996             SO_SUFFIX_MODULE="sl"
47997         ;;
47998         *-*-aix* )
47999                                                                         SO_SUFFIX="a"
48000             SO_SUFFIX_MODULE="a"
48001         ;;
48002         *-*-cygwin* )
48003             SO_SUFFIX="dll"
48004             SO_SUFFIX_MODULE="dll"
48005             DLLIMP_SUFFIX="dll.a"
48006             EXEEXT=".exe"
48007             DLLPREFIX="cyg"
48008             dlldir="$bindir"
48009         ;;
48010         *-*-mingw32* )
48011             SO_SUFFIX="dll"
48012             SO_SUFFIX_MODULE="dll"
48013             DLLIMP_SUFFIX="dll.a"
48014             EXEEXT=".exe"
48015             DLLPREFIX=""
48016             dlldir="$bindir"
48017         ;;
48018         *-pc-msdosdjgpp )
48019             EXEEXT=".exe"
48020             DLLPREFIX=""
48021             dlldir="$bindir"
48022         ;;
48023         *-pc-os2_emx | *-pc-os2-emx )
48024             SO_SUFFIX="dll"
48025             SO_SUFFIX_MODULE="dll"
48026             DLLIMP_SUFFIX=$OS2_LIBEXT
48027             EXEEXT=".exe"
48028             DLLPREFIX=""
48029             LIBPREFIX=""
48030             LIBEXT=".$OS2_LIBEXT"
48031             dlldir="$bindir"
48032         ;;
48033         *-*-darwin* )
48034             SO_SUFFIX="dylib"
48035             SO_SUFFIX_MODULE="bundle"
48036         ;;
48037     esac
48038
48039     if test "x$DLLIMP_SUFFIX" = "x" ; then
48040         DLLIMP_SUFFIX="$SO_SUFFIX"
48041     fi
48042
48043
48044
48045
48046
48047
48048
48049
48050
48051
48052
48053
48054         PIC_FLAG=""
48055     if test "x$GCC" = "xyes"; then
48056                 PIC_FLAG="-fPIC"
48057     fi
48058
48059         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48060     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48061     WINDOWS_IMPLIB=0
48062
48063     case "${BAKEFILE_HOST}" in
48064       *-hp-hpux* )
48065                 if test "x$GCC" != "xyes"; then
48066                         LDFLAGS="$LDFLAGS -L/usr/lib"
48067
48068             SHARED_LD_CC="${CC} -b -o"
48069             SHARED_LD_CXX="${CXX} -b -o"
48070             PIC_FLAG="+Z"
48071         fi
48072       ;;
48073
48074       *-*-linux* )
48075         if test "$INTELCC" = "yes"; then
48076             PIC_FLAG="-KPIC"
48077         elif test "x$SUNCXX" = "xyes"; then
48078             SHARED_LD_CC="${CC} -G -o"
48079             SHARED_LD_CXX="${CXX} -G -o"
48080             PIC_FLAG="-KPIC"
48081         fi
48082       ;;
48083
48084       *-*-solaris2* )
48085         if test "x$SUNCXX" = xyes ; then
48086             SHARED_LD_CC="${CC} -G -o"
48087             SHARED_LD_CXX="${CXX} -G -o"
48088             PIC_FLAG="-KPIC"
48089         fi
48090       ;;
48091
48092       *-*-darwin* )
48093
48094 D='$'
48095 cat <<EOF >shared-ld-sh
48096 #!/bin/sh
48097 #-----------------------------------------------------------------------------
48098 #-- Name:        distrib/mac/shared-ld-sh
48099 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48100 #-- Author:      Gilles Depeyrot
48101 #-- Copyright:   (c) 2002 Gilles Depeyrot
48102 #-- Licence:     any use permitted
48103 #-----------------------------------------------------------------------------
48104
48105 verbose=0
48106 args=""
48107 objects=""
48108 linking_flag="-dynamiclib"
48109 ldargs="-r -keep_private_externs -nostdlib"
48110
48111 if test "x${D}CXX" = "x"; then
48112     CXX="c++"
48113 fi
48114
48115 while test ${D}# -gt 0; do
48116     case ${D}1 in
48117
48118        -v)
48119         verbose=1
48120         ;;
48121
48122        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48123         # collect these options and values
48124         args="${D}{args} ${D}1 ${D}2"
48125         shift
48126         ;;
48127
48128        -arch|-isysroot)
48129         # collect these options and values
48130         ldargs="${D}{ldargs} ${D}1 ${D}2"
48131         shift
48132         ;;
48133
48134        -s|-Wl,*)
48135         # collect these load args
48136         ldargs="${D}{ldargs} ${D}1"
48137         ;;
48138
48139        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48140         # collect these options
48141         args="${D}{args} ${D}1"
48142         ;;
48143
48144        -dynamiclib|-bundle)
48145         linking_flag="${D}1"
48146         ;;
48147
48148        -*)
48149         echo "shared-ld: unhandled option '${D}1'"
48150         exit 1
48151         ;;
48152
48153         *.o | *.a | *.dylib)
48154         # collect object files
48155         objects="${D}{objects} ${D}1"
48156         ;;
48157
48158         *)
48159         echo "shared-ld: unhandled argument '${D}1'"
48160         exit 1
48161         ;;
48162
48163     esac
48164     shift
48165 done
48166
48167 status=0
48168
48169 #
48170 # Link one module containing all the others
48171 #
48172 if test ${D}{verbose} = 1; then
48173     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48174 fi
48175 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48176 status=${D}?
48177
48178 #
48179 # Link the shared library from the single module created, but only if the
48180 # previous command didn't fail:
48181 #
48182 if test ${D}{status} = 0; then
48183     if test ${D}{verbose} = 1; then
48184         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48185     fi
48186     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48187     status=${D}?
48188 fi
48189
48190 #
48191 # Remove intermediate module
48192 #
48193 rm -f master.${D}${D}.o
48194
48195 exit ${D}status
48196 EOF
48197
48198         chmod +x shared-ld-sh
48199
48200         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48201         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48202
48203
48204                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48205 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48206 if test "${bakefile_cv_gcc31+set}" = set; then
48207   echo $ECHO_N "(cached) $ECHO_C" >&6
48208 else
48209
48210            cat >conftest.$ac_ext <<_ACEOF
48211 /* confdefs.h.  */
48212 _ACEOF
48213 cat confdefs.h >>conftest.$ac_ext
48214 cat >>conftest.$ac_ext <<_ACEOF
48215 /* end confdefs.h.  */
48216
48217 int
48218 main ()
48219 {
48220
48221                    #if (__GNUC__ < 3) || \
48222                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48223                        This is old gcc
48224                    #endif
48225
48226   ;
48227   return 0;
48228 }
48229 _ACEOF
48230 rm -f conftest.$ac_objext
48231 if { (ac_try="$ac_compile"
48232 case "(($ac_try" in
48233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48234   *) ac_try_echo=$ac_try;;
48235 esac
48236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48237   (eval "$ac_compile") 2>conftest.er1
48238   ac_status=$?
48239   grep -v '^ *+' conftest.er1 >conftest.err
48240   rm -f conftest.er1
48241   cat conftest.err >&5
48242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48243   (exit $ac_status); } && {
48244          test -z "$ac_c_werror_flag" ||
48245          test ! -s conftest.err
48246        } && test -s conftest.$ac_objext; then
48247
48248                    bakefile_cv_gcc31=yes
48249
48250 else
48251   echo "$as_me: failed program was:" >&5
48252 sed 's/^/| /' conftest.$ac_ext >&5
48253
48254
48255                    bakefile_cv_gcc31=no
48256
48257
48258 fi
48259
48260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48261
48262 fi
48263 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48264 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48265         if test "$bakefile_cv_gcc31" = "no"; then
48266                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48267             SHARED_LD_CXX="$SHARED_LD_CC"
48268         else
48269                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48270             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48271         fi
48272
48273         if test "x$GCC" == "xyes"; then
48274             PIC_FLAG="-dynamic -fPIC"
48275         fi
48276         if test "x$XLCC" = "xyes"; then
48277             PIC_FLAG="-dynamic -DPIC"
48278         fi
48279       ;;
48280
48281       *-*-aix* )
48282         if test "x$GCC" = "xyes"; then
48283                                                             PIC_FLAG=""
48284
48285                                                                                     case "${BAKEFILE_HOST}" in
48286                 *-*-aix5* )
48287                     LD_EXPFULL="-Wl,-bexpfull"
48288                     ;;
48289             esac
48290
48291             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48292             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48293         else
48294                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48295 set dummy makeC++SharedLib; ac_word=$2
48296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48298 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48299   echo $ECHO_N "(cached) $ECHO_C" >&6
48300 else
48301   if test -n "$AIX_CXX_LD"; then
48302   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48303 else
48304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48305 for as_dir in $PATH
48306 do
48307   IFS=$as_save_IFS
48308   test -z "$as_dir" && as_dir=.
48309   for ac_exec_ext in '' $ac_executable_extensions; do
48310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48311     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48313     break 2
48314   fi
48315 done
48316 done
48317 IFS=$as_save_IFS
48318
48319   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48320 fi
48321 fi
48322 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48323 if test -n "$AIX_CXX_LD"; then
48324   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48325 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48326 else
48327   { echo "$as_me:$LINENO: result: no" >&5
48328 echo "${ECHO_T}no" >&6; }
48329 fi
48330
48331
48332             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48333             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48334         fi
48335       ;;
48336
48337       *-*-beos* )
48338                         SHARED_LD_CC="${LD} -nostart -o"
48339         SHARED_LD_CXX="${LD} -nostart -o"
48340       ;;
48341
48342       *-*-irix* )
48343                 if test "x$GCC" != "xyes"; then
48344             PIC_FLAG="-KPIC"
48345         fi
48346       ;;
48347
48348       *-*-cygwin* | *-*-mingw32* )
48349         PIC_FLAG=""
48350         SHARED_LD_CC="\$(CC) -shared -o"
48351         SHARED_LD_CXX="\$(CXX) -shared -o"
48352         WINDOWS_IMPLIB=1
48353       ;;
48354
48355       *-pc-os2_emx | *-pc-os2-emx )
48356         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48357         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48358         PIC_FLAG=""
48359
48360 D='$'
48361 cat <<EOF >dllar.sh
48362 #!/bin/sh
48363 #
48364 # dllar - a tool to build both a .dll and an .a file
48365 # from a set of object (.o) files for EMX/OS2.
48366 #
48367 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48368 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48369 #
48370 #  This script will accept a set of files on the command line.
48371 #  All the public symbols from the .o files will be exported into
48372 #  a .DEF file, then linker will be run (through gcc) against them to
48373 #  build a shared library consisting of all given .o files. All libraries
48374 #  (.a) will be first decompressed into component .o files then act as
48375 #  described above. You can optionally give a description (-d "description")
48376 #  which will be put into .DLL. To see the list of accepted options (as well
48377 #  as command-line format) simply run this program without options. The .DLL
48378 #  is built to be imported by name (there is no guarantee that new versions
48379 #  of the library you build will have same ordinals for same symbols).
48380 #
48381 #  dllar is free software; you can redistribute it and/or modify
48382 #  it under the terms of the GNU General Public License as published by
48383 #  the Free Software Foundation; either version 2, or (at your option)
48384 #  any later version.
48385 #
48386 #  dllar is distributed in the hope that it will be useful,
48387 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48388 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48389 #  GNU General Public License for more details.
48390 #
48391 #  You should have received a copy of the GNU General Public License
48392 #  along with dllar; see the file COPYING.  If not, write to the Free
48393 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48394 #  02111-1307, USA.
48395
48396 # To successfuly run this program you will need:
48397 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48398 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48399 #  - gcc
48400 #    (used to build the .dll)
48401 #  - emxexp
48402 #    (used to create .def file from .o files)
48403 #  - emximp
48404 #    (used to create .a file from .def file)
48405 #  - GNU text utilites (cat, sort, uniq)
48406 #    used to process emxexp output
48407 #  - GNU file utilities (mv, rm)
48408 #  - GNU sed
48409 #  - lxlite (optional, see flag below)
48410 #    (used for general .dll cleanup)
48411 #
48412
48413 flag_USE_LXLITE=1;
48414
48415 #
48416 # helper functions
48417 # basnam, variant of basename, which does _not_ remove the path, _iff_
48418 #                              second argument (suffix to remove) is given
48419 basnam(){
48420     case ${D}# in
48421     1)
48422         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48423         ;;
48424     2)
48425         echo ${D}1 | sed 's/'${D}2'${D}//'
48426         ;;
48427     *)
48428         echo "error in basnam ${D}*"
48429         exit 8
48430         ;;
48431     esac
48432 }
48433
48434 # Cleanup temporary files and output
48435 CleanUp() {
48436     cd ${D}curDir
48437     for i in ${D}inputFiles ; do
48438         case ${D}i in
48439         *!)
48440             rm -rf \`basnam ${D}i !\`
48441             ;;
48442         *)
48443             ;;
48444         esac
48445     done
48446
48447     # Kill result in case of failure as there is just to many stupid make/nmake
48448     # things out there which doesn't do this.
48449     if [ ${D}# -eq 0 ]; then
48450         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48451     fi
48452 }
48453
48454 # Print usage and exit script with rc=1.
48455 PrintHelp() {
48456  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48457  echo '       [-name-mangler-script script.sh]'
48458  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48459  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48460  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48461  echo '       [*.o] [*.a]'
48462  echo '*> "output_file" should have no extension.'
48463  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48464  echo '   The import library name is derived from this and is set to "name".a,'
48465  echo '   unless overridden by -import'
48466  echo '*> "importlib_name" should have no extension.'
48467  echo '   If it has the .o, or .a extension, it is automatically removed.'
48468  echo '   This name is used as the import library name and may be longer and'
48469  echo '   more descriptive than the DLL name which has to follow the old '
48470  echo '   8.3 convention of FAT.'
48471  echo '*> "script.sh may be given to override the output_file name by a'
48472  echo '   different name. It is mainly useful if the regular make process'
48473  echo '   of some package does not take into account OS/2 restriction of'
48474  echo '   DLL name lengths. It takes the importlib name as input and is'
48475  echo '   supposed to procude a shorter name as output. The script should'
48476  echo '   expect to get importlib_name without extension and should produce'
48477  echo '   a (max.) 8 letter name without extension.'
48478  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48479  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48480  echo '   These flags will be put at the start of GCC command line.'
48481  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48482  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48483  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48484  echo '   If the last character of a symbol is "*", all symbols beginning'
48485  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48486  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48487  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48488  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48489  echo '   C runtime DLLs.'
48490  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48491  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48492  echo '   unchanged to GCC at the end of command line.'
48493  echo '*> If you create a DLL from a library and you do not specify -o,'
48494  echo '   the basename for DLL and import library will be set to library name,'
48495  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48496  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48497  echo '   library will be renamed into gcc_s.a.'
48498  echo '--------'
48499  echo 'Example:'
48500  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48501  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48502  CleanUp
48503  exit 1
48504 }
48505
48506 # Execute a command.
48507 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48508 # @Uses    Whatever CleanUp() uses.
48509 doCommand() {
48510     echo "${D}*"
48511     eval ${D}*
48512     rcCmd=${D}?
48513
48514     if [ ${D}rcCmd -ne 0 ]; then
48515         echo "command failed, exit code="${D}rcCmd
48516         CleanUp
48517         exit ${D}rcCmd
48518     fi
48519 }
48520
48521 # main routine
48522 # setup globals
48523 cmdLine=${D}*
48524 outFile=""
48525 outimpFile=""
48526 inputFiles=""
48527 renameScript=""
48528 description=""
48529 CC=gcc.exe
48530 CFLAGS="-s -Zcrtdll"
48531 EXTRA_CFLAGS=""
48532 EXPORT_BY_ORDINALS=0
48533 exclude_symbols=""
48534 library_flags=""
48535 curDir=\`pwd\`
48536 curDirS=curDir
48537 case ${D}curDirS in
48538 */)
48539   ;;
48540 *)
48541   curDirS=${D}{curDirS}"/"
48542   ;;
48543 esac
48544 # Parse commandline
48545 libsToLink=0
48546 omfLinking=0
48547 while [ ${D}1 ]; do
48548     case ${D}1 in
48549     -ord*)
48550         EXPORT_BY_ORDINALS=1;
48551         ;;
48552     -o*)
48553         shift
48554         outFile=${D}1
48555         ;;
48556     -i*)
48557         shift
48558         outimpFile=${D}1
48559         ;;
48560     -name-mangler-script)
48561         shift
48562         renameScript=${D}1
48563         ;;
48564     -d*)
48565         shift
48566         description=${D}1
48567         ;;
48568     -f*)
48569         shift
48570         CFLAGS=${D}1
48571         ;;
48572     -c*)
48573         shift
48574         CC=${D}1
48575         ;;
48576     -h*)
48577         PrintHelp
48578         ;;
48579     -ex*)
48580         shift
48581         exclude_symbols=${D}{exclude_symbols}${D}1" "
48582         ;;
48583     -libf*)
48584         shift
48585         library_flags=${D}{library_flags}${D}1" "
48586         ;;
48587     -nocrt*)
48588         CFLAGS="-s"
48589         ;;
48590     -nolxl*)
48591         flag_USE_LXLITE=0
48592         ;;
48593     -* | /*)
48594         case ${D}1 in
48595         -L* | -l*)
48596             libsToLink=1
48597             ;;
48598         -Zomf)
48599             omfLinking=1
48600             ;;
48601         *)
48602             ;;
48603         esac
48604         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48605         ;;
48606     *.dll)
48607         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48608         if [ ${D}omfLinking -eq 1 ]; then
48609             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48610         else
48611             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48612         fi
48613         ;;
48614     *)
48615         found=0;
48616         if [ ${D}libsToLink -ne 0 ]; then
48617             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48618         else
48619             for file in ${D}1 ; do
48620                 if [ -f ${D}file ]; then
48621                     inputFiles="${D}{inputFiles} ${D}file"
48622                     found=1
48623                 fi
48624             done
48625             if [ ${D}found -eq 0 ]; then
48626                 echo "ERROR: No file(s) found: "${D}1
48627                 exit 8
48628             fi
48629         fi
48630       ;;
48631     esac
48632     shift
48633 done # iterate cmdline words
48634
48635 #
48636 if [ -z "${D}inputFiles" ]; then
48637     echo "dllar: no input files"
48638     PrintHelp
48639 fi
48640
48641 # Now extract all .o files from .a files
48642 newInputFiles=""
48643 for file in ${D}inputFiles ; do
48644     case ${D}file in
48645     *.a | *.lib)
48646         case ${D}file in
48647         *.a)
48648             suffix=".a"
48649             AR="ar"
48650             ;;
48651         *.lib)
48652             suffix=".lib"
48653             AR="emxomfar"
48654             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48655             ;;
48656         *)
48657             ;;
48658         esac
48659         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48660         mkdir ${D}dirname
48661         if [ ${D}? -ne 0 ]; then
48662             echo "Failed to create subdirectory ./${D}dirname"
48663             CleanUp
48664             exit 8;
48665         fi
48666         # Append '!' to indicate archive
48667         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48668         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48669         cd ${D}curDir
48670         found=0;
48671         for subfile in ${D}dirname/*.o* ; do
48672             if [ -f ${D}subfile ]; then
48673                 found=1
48674                 if [ -s ${D}subfile ]; then
48675                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48676                     newInputFiles="${D}newInputFiles ${D}subfile"
48677                 fi
48678             fi
48679         done
48680         if [ ${D}found -eq 0 ]; then
48681             echo "WARNING: there are no files in archive \\'${D}file\\'"
48682         fi
48683         ;;
48684     *)
48685         newInputFiles="${D}{newInputFiles} ${D}file"
48686         ;;
48687     esac
48688 done
48689 inputFiles="${D}newInputFiles"
48690
48691 # Output filename(s).
48692 do_backup=0;
48693 if [ -z ${D}outFile ]; then
48694     do_backup=1;
48695     set outFile ${D}inputFiles; outFile=${D}2
48696 fi
48697
48698 # If it is an archive, remove the '!' and the '_%' suffixes
48699 case ${D}outFile in
48700 *_%!)
48701     outFile=\`basnam ${D}outFile _%!\`
48702     ;;
48703 *)
48704     ;;
48705 esac
48706 case ${D}outFile in
48707 *.dll)
48708     outFile=\`basnam ${D}outFile .dll\`
48709     ;;
48710 *.DLL)
48711     outFile=\`basnam ${D}outFile .DLL\`
48712     ;;
48713 *.o)
48714     outFile=\`basnam ${D}outFile .o\`
48715     ;;
48716 *.obj)
48717     outFile=\`basnam ${D}outFile .obj\`
48718     ;;
48719 *.a)
48720     outFile=\`basnam ${D}outFile .a\`
48721     ;;
48722 *.lib)
48723     outFile=\`basnam ${D}outFile .lib\`
48724     ;;
48725 *)
48726     ;;
48727 esac
48728 case ${D}outimpFile in
48729 *.a)
48730     outimpFile=\`basnam ${D}outimpFile .a\`
48731     ;;
48732 *.lib)
48733     outimpFile=\`basnam ${D}outimpFile .lib\`
48734     ;;
48735 *)
48736     ;;
48737 esac
48738 if [ -z ${D}outimpFile ]; then
48739     outimpFile=${D}outFile
48740 fi
48741 defFile="${D}{outFile}.def"
48742 arcFile="${D}{outimpFile}.a"
48743 arcFile2="${D}{outimpFile}.lib"
48744
48745 #create ${D}dllFile as something matching 8.3 restrictions,
48746 if [ -z ${D}renameScript ] ; then
48747     dllFile="${D}outFile"
48748 else
48749     dllFile=\`${D}renameScript ${D}outimpFile\`
48750 fi
48751
48752 if [ ${D}do_backup -ne 0 ] ; then
48753     if [ -f ${D}arcFile ] ; then
48754         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48755     fi
48756     if [ -f ${D}arcFile2 ] ; then
48757         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48758     fi
48759 fi
48760
48761 # Extract public symbols from all the object files.
48762 tmpdefFile=${D}{defFile}_%
48763 rm -f ${D}tmpdefFile
48764 for file in ${D}inputFiles ; do
48765     case ${D}file in
48766     *!)
48767         ;;
48768     *)
48769         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48770         ;;
48771     esac
48772 done
48773
48774 # Create the def file.
48775 rm -f ${D}defFile
48776 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48777 dllFile="${D}{dllFile}.dll"
48778 if [ ! -z ${D}description ]; then
48779     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48780 fi
48781 echo "EXPORTS" >> ${D}defFile
48782
48783 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48784 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48785
48786 # Checks if the export is ok or not.
48787 for word in ${D}exclude_symbols; do
48788     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48789     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48790 done
48791
48792
48793 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48794     sed "=" < ${D}tmpdefFile | \\
48795     sed '
48796       N
48797       : loop
48798       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48799       t loop
48800     ' > ${D}{tmpdefFile}%
48801     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48802 else
48803     rm -f ${D}{tmpdefFile}%
48804 fi
48805 cat ${D}tmpdefFile >> ${D}defFile
48806 rm -f ${D}tmpdefFile
48807
48808 # Do linking, create implib, and apply lxlite.
48809 gccCmdl="";
48810 for file in ${D}inputFiles ; do
48811     case ${D}file in
48812     *!)
48813         ;;
48814     *)
48815         gccCmdl="${D}gccCmdl ${D}file"
48816         ;;
48817     esac
48818 done
48819 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48820 touch "${D}{outFile}.dll"
48821
48822 doCommand "emximp -o ${D}arcFile ${D}defFile"
48823 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48824     add_flags="";
48825     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48826         add_flags="-ynd"
48827     fi
48828     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48829 fi
48830 doCommand "emxomf -s -l ${D}arcFile"
48831
48832 # Successful exit.
48833 CleanUp 1
48834 exit 0
48835 EOF
48836
48837         chmod +x dllar.sh
48838       ;;
48839
48840       powerpc-apple-macos* | \
48841       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48842       *-*-mirbsd* | \
48843       *-*-sunos4* | \
48844       *-*-osf* | \
48845       *-*-dgux5* | \
48846       *-*-sysv5* | \
48847       *-pc-msdosdjgpp )
48848               ;;
48849
48850       *)
48851         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48852 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48853    { (exit 1); exit 1; }; }
48854     esac
48855
48856     if test "x$PIC_FLAG" != "x" ; then
48857         PIC_FLAG="$PIC_FLAG -DPIC"
48858     fi
48859
48860     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48861         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48862     fi
48863     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48864         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48865     fi
48866
48867
48868
48869
48870
48871
48872
48873
48874
48875     USE_SOVERSION=0
48876     USE_SOVERLINUX=0
48877     USE_SOVERSOLARIS=0
48878     USE_SOVERCYGWIN=0
48879     USE_SOSYMLINKS=0
48880     USE_MACVERSION=0
48881     SONAME_FLAG=
48882
48883     case "${BAKEFILE_HOST}" in
48884       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48885       *-*-k*bsd*-gnu | *-*-mirbsd* )
48886         if test "x$SUNCXX" = "xyes"; then
48887             SONAME_FLAG="-h "
48888         else
48889             SONAME_FLAG="-Wl,-soname,"
48890         fi
48891         USE_SOVERSION=1
48892         USE_SOVERLINUX=1
48893         USE_SOSYMLINKS=1
48894       ;;
48895
48896       *-*-solaris2* )
48897         SONAME_FLAG="-h "
48898         USE_SOVERSION=1
48899         USE_SOVERSOLARIS=1
48900         USE_SOSYMLINKS=1
48901       ;;
48902
48903       *-*-darwin* )
48904         USE_MACVERSION=1
48905         USE_SOVERSION=1
48906         USE_SOSYMLINKS=1
48907       ;;
48908
48909       *-*-cygwin* )
48910         USE_SOVERSION=1
48911         USE_SOVERCYGWIN=1
48912       ;;
48913     esac
48914
48915
48916
48917
48918
48919
48920
48921
48922
48923
48924     # Check whether --enable-dependency-tracking was given.
48925 if test "${enable_dependency_tracking+set}" = set; then
48926   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48927 fi
48928
48929
48930     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48931 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48932
48933     BK_DEPS=""
48934     if test "x$bk_use_trackdeps" = "xno" ; then
48935         DEPS_TRACKING=0
48936         { echo "$as_me:$LINENO: result: disabled" >&5
48937 echo "${ECHO_T}disabled" >&6; }
48938     else
48939         DEPS_TRACKING=1
48940
48941         if test "x$GCC" = "xyes"; then
48942             DEPSMODE=gcc
48943             case "${BAKEFILE_HOST}" in
48944                 *-*-darwin* )
48945                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48946                 ;;
48947                 * )
48948                     DEPSFLAG="-MMD"
48949                 ;;
48950             esac
48951             { echo "$as_me:$LINENO: result: gcc" >&5
48952 echo "${ECHO_T}gcc" >&6; }
48953         elif test "x$MWCC" = "xyes"; then
48954             DEPSMODE=mwcc
48955             DEPSFLAG="-MM"
48956             { echo "$as_me:$LINENO: result: mwcc" >&5
48957 echo "${ECHO_T}mwcc" >&6; }
48958         elif test "x$SUNCC" = "xyes"; then
48959             DEPSMODE=unixcc
48960             DEPSFLAG="-xM1"
48961             { echo "$as_me:$LINENO: result: Sun cc" >&5
48962 echo "${ECHO_T}Sun cc" >&6; }
48963         elif test "x$SGICC" = "xyes"; then
48964             DEPSMODE=unixcc
48965             DEPSFLAG="-M"
48966             { echo "$as_me:$LINENO: result: SGI cc" >&5
48967 echo "${ECHO_T}SGI cc" >&6; }
48968         elif test "x$HPCC" = "xyes"; then
48969             DEPSMODE=unixcc
48970             DEPSFLAG="+make"
48971             { echo "$as_me:$LINENO: result: HP cc" >&5
48972 echo "${ECHO_T}HP cc" >&6; }
48973         elif test "x$COMPAQCC" = "xyes"; then
48974             DEPSMODE=gcc
48975             DEPSFLAG="-MD"
48976             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48977 echo "${ECHO_T}Compaq cc" >&6; }
48978         else
48979             DEPS_TRACKING=0
48980             { echo "$as_me:$LINENO: result: none" >&5
48981 echo "${ECHO_T}none" >&6; }
48982         fi
48983
48984         if test $DEPS_TRACKING = 1 ; then
48985
48986 D='$'
48987 cat <<EOF >bk-deps
48988 #!/bin/sh
48989
48990 # This script is part of Bakefile (http://www.bakefile.org) autoconf
48991 # script. It is used to track C/C++ files dependencies in portable way.
48992 #
48993 # Permission is given to use this file in any way.
48994
48995 DEPSMODE=${DEPSMODE}
48996 DEPSDIR=.deps
48997 DEPSFLAG="${DEPSFLAG}"
48998
48999 mkdir -p ${D}DEPSDIR
49000
49001 if test ${D}DEPSMODE = gcc ; then
49002     ${D}* ${D}{DEPSFLAG}
49003     status=${D}?
49004
49005     # determine location of created files:
49006     while test ${D}# -gt 0; do
49007         case "${D}1" in
49008             -o )
49009                 shift
49010                 objfile=${D}1
49011             ;;
49012             -* )
49013             ;;
49014             * )
49015                 srcfile=${D}1
49016             ;;
49017         esac
49018         shift
49019     done
49020     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49021     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49022
49023     # if the compiler failed, we're done:
49024     if test ${D}{status} != 0 ; then
49025         rm -f ${D}depfile
49026         exit ${D}{status}
49027     fi
49028
49029     # move created file to the location we want it in:
49030     if test -f ${D}depfile ; then
49031         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49032         rm -f ${D}depfile
49033     else
49034         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49035         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
49036         if test ! -f ${D}depfile ; then
49037             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49038             depfile="${D}objfile.d"
49039         fi
49040         if test -f ${D}depfile ; then
49041             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49042             rm -f ${D}depfile
49043         fi
49044     fi
49045     exit 0
49046 elif test ${D}DEPSMODE = mwcc ; then
49047     ${D}* || exit ${D}?
49048     # Run mwcc again with -MM and redirect into the dep file we want
49049     # NOTE: We can't use shift here because we need ${D}* to be valid
49050     prevarg=
49051     for arg in ${D}* ; do
49052         if test "${D}prevarg" = "-o"; then
49053             objfile=${D}arg
49054         else
49055             case "${D}arg" in
49056                 -* )
49057                 ;;
49058                 * )
49059                     srcfile=${D}arg
49060                 ;;
49061             esac
49062         fi
49063         prevarg="${D}arg"
49064     done
49065     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
49066     exit 0
49067 elif test ${D}DEPSMODE = unixcc; then
49068     ${D}* || exit ${D}?
49069     # Run compiler again with deps flag and redirect into the dep file.
49070     # It doesn't work if the '-o FILE' option is used, but without it the
49071     # dependency file will contain the wrong name for the object. So it is
49072     # removed from the command line, and the dep file is fixed with sed.
49073     cmd=""
49074     while test ${D}# -gt 0; do
49075         case "${D}1" in
49076             -o )
49077                 shift
49078                 objfile=${D}1
49079             ;;
49080             * )
49081                 eval arg${D}#=\\${D}1
49082                 cmd="${D}cmd \\${D}arg${D}#"
49083             ;;
49084         esac
49085         shift
49086     done
49087     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
49088     exit 0
49089 else
49090     ${D}*
49091     exit ${D}?
49092 fi
49093 EOF
49094
49095             chmod +x bk-deps
49096                                     BK_DEPS="`pwd`/bk-deps"
49097         fi
49098     fi
49099
49100
49101
49102
49103
49104     case ${BAKEFILE_HOST} in
49105         *-*-cygwin* | *-*-mingw32* )
49106                         if test -n "$ac_tool_prefix"; then
49107   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49108 set dummy ${ac_tool_prefix}windres; ac_word=$2
49109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49111 if test "${ac_cv_prog_WINDRES+set}" = set; then
49112   echo $ECHO_N "(cached) $ECHO_C" >&6
49113 else
49114   if test -n "$WINDRES"; then
49115   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49116 else
49117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49118 for as_dir in $PATH
49119 do
49120   IFS=$as_save_IFS
49121   test -z "$as_dir" && as_dir=.
49122   for ac_exec_ext in '' $ac_executable_extensions; do
49123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49124     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49126     break 2
49127   fi
49128 done
49129 done
49130 IFS=$as_save_IFS
49131
49132 fi
49133 fi
49134 WINDRES=$ac_cv_prog_WINDRES
49135 if test -n "$WINDRES"; then
49136   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49137 echo "${ECHO_T}$WINDRES" >&6; }
49138 else
49139   { echo "$as_me:$LINENO: result: no" >&5
49140 echo "${ECHO_T}no" >&6; }
49141 fi
49142
49143
49144 fi
49145 if test -z "$ac_cv_prog_WINDRES"; then
49146   ac_ct_WINDRES=$WINDRES
49147   # Extract the first word of "windres", so it can be a program name with args.
49148 set dummy windres; ac_word=$2
49149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49151 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49152   echo $ECHO_N "(cached) $ECHO_C" >&6
49153 else
49154   if test -n "$ac_ct_WINDRES"; then
49155   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49156 else
49157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49158 for as_dir in $PATH
49159 do
49160   IFS=$as_save_IFS
49161   test -z "$as_dir" && as_dir=.
49162   for ac_exec_ext in '' $ac_executable_extensions; do
49163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49164     ac_cv_prog_ac_ct_WINDRES="windres"
49165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49166     break 2
49167   fi
49168 done
49169 done
49170 IFS=$as_save_IFS
49171
49172 fi
49173 fi
49174 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49175 if test -n "$ac_ct_WINDRES"; then
49176   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49177 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49178 else
49179   { echo "$as_me:$LINENO: result: no" >&5
49180 echo "${ECHO_T}no" >&6; }
49181 fi
49182
49183   if test "x$ac_ct_WINDRES" = x; then
49184     WINDRES=""
49185   else
49186     case $cross_compiling:$ac_tool_warned in
49187 yes:)
49188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49189 whose name does not start with the host triplet.  If you think this
49190 configuration is useful to you, please write to autoconf@gnu.org." >&5
49191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49192 whose name does not start with the host triplet.  If you think this
49193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49194 ac_tool_warned=yes ;;
49195 esac
49196     WINDRES=$ac_ct_WINDRES
49197   fi
49198 else
49199   WINDRES="$ac_cv_prog_WINDRES"
49200 fi
49201
49202          ;;
49203
49204       *-*-darwin* | powerpc-apple-macos* )
49205             # Extract the first word of "Rez", so it can be a program name with args.
49206 set dummy Rez; ac_word=$2
49207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49209 if test "${ac_cv_prog_REZ+set}" = set; then
49210   echo $ECHO_N "(cached) $ECHO_C" >&6
49211 else
49212   if test -n "$REZ"; then
49213   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49214 else
49215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49216 for as_dir in $PATH
49217 do
49218   IFS=$as_save_IFS
49219   test -z "$as_dir" && as_dir=.
49220   for ac_exec_ext in '' $ac_executable_extensions; do
49221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49222     ac_cv_prog_REZ="Rez"
49223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49224     break 2
49225   fi
49226 done
49227 done
49228 IFS=$as_save_IFS
49229
49230   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49231 fi
49232 fi
49233 REZ=$ac_cv_prog_REZ
49234 if test -n "$REZ"; then
49235   { echo "$as_me:$LINENO: result: $REZ" >&5
49236 echo "${ECHO_T}$REZ" >&6; }
49237 else
49238   { echo "$as_me:$LINENO: result: no" >&5
49239 echo "${ECHO_T}no" >&6; }
49240 fi
49241
49242
49243             # Extract the first word of "SetFile", so it can be a program name with args.
49244 set dummy SetFile; ac_word=$2
49245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49247 if test "${ac_cv_prog_SETFILE+set}" = set; then
49248   echo $ECHO_N "(cached) $ECHO_C" >&6
49249 else
49250   if test -n "$SETFILE"; then
49251   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49252 else
49253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49254 for as_dir in $PATH
49255 do
49256   IFS=$as_save_IFS
49257   test -z "$as_dir" && as_dir=.
49258   for ac_exec_ext in '' $ac_executable_extensions; do
49259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49260     ac_cv_prog_SETFILE="SetFile"
49261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49262     break 2
49263   fi
49264 done
49265 done
49266 IFS=$as_save_IFS
49267
49268   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49269 fi
49270 fi
49271 SETFILE=$ac_cv_prog_SETFILE
49272 if test -n "$SETFILE"; then
49273   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49274 echo "${ECHO_T}$SETFILE" >&6; }
49275 else
49276   { echo "$as_me:$LINENO: result: no" >&5
49277 echo "${ECHO_T}no" >&6; }
49278 fi
49279
49280
49281         ;;
49282     esac
49283
49284
49285
49286
49287
49288
49289     BAKEFILE_BAKEFILE_M4_VERSION="0.2.3"
49290
49291
49292 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.3"
49293
49294
49295
49296     # Check whether --enable-precomp-headers was given.
49297 if test "${enable_precomp_headers+set}" = set; then
49298   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49299 fi
49300
49301
49302     GCC_PCH=0
49303     ICC_PCH=0
49304     USE_PCH=0
49305     BK_MAKE_PCH=""
49306
49307     case ${BAKEFILE_HOST} in
49308         *-*-cygwin* )
49309                                                 bk_use_pch="no"
49310             ;;
49311     esac
49312
49313     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49314         if test "x$GCC" = "xyes"; then
49315                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49316 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49317             cat >conftest.$ac_ext <<_ACEOF
49318 /* confdefs.h.  */
49319 _ACEOF
49320 cat confdefs.h >>conftest.$ac_ext
49321 cat >>conftest.$ac_ext <<_ACEOF
49322 /* end confdefs.h.  */
49323
49324 int
49325 main ()
49326 {
49327
49328                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49329                         There is no PCH support
49330                     #endif
49331                     #if (__GNUC__ < 3)
49332                         There is no PCH support
49333                     #endif
49334                     #if (__GNUC__ == 3) && \
49335                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49336                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49337                        ( defined(__INTEL_COMPILER) )
49338                         There is no PCH support
49339                     #endif
49340
49341   ;
49342   return 0;
49343 }
49344 _ACEOF
49345 rm -f conftest.$ac_objext
49346 if { (ac_try="$ac_compile"
49347 case "(($ac_try" in
49348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49349   *) ac_try_echo=$ac_try;;
49350 esac
49351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49352   (eval "$ac_compile") 2>conftest.er1
49353   ac_status=$?
49354   grep -v '^ *+' conftest.er1 >conftest.err
49355   rm -f conftest.er1
49356   cat conftest.err >&5
49357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49358   (exit $ac_status); } && {
49359          test -z "$ac_c_werror_flag" ||
49360          test ! -s conftest.err
49361        } && test -s conftest.$ac_objext; then
49362
49363                     { echo "$as_me:$LINENO: result: yes" >&5
49364 echo "${ECHO_T}yes" >&6; }
49365                     GCC_PCH=1
49366
49367 else
49368   echo "$as_me: failed program was:" >&5
49369 sed 's/^/| /' conftest.$ac_ext >&5
49370
49371
49372                     cat >conftest.$ac_ext <<_ACEOF
49373 /* confdefs.h.  */
49374 _ACEOF
49375 cat confdefs.h >>conftest.$ac_ext
49376 cat >>conftest.$ac_ext <<_ACEOF
49377 /* end confdefs.h.  */
49378
49379 int
49380 main ()
49381 {
49382
49383                             #if !defined(__INTEL_COMPILER) || \
49384                                 (__INTEL_COMPILER < 800)
49385                                 There is no PCH support
49386                             #endif
49387
49388   ;
49389   return 0;
49390 }
49391 _ACEOF
49392 rm -f conftest.$ac_objext
49393 if { (ac_try="$ac_compile"
49394 case "(($ac_try" in
49395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49396   *) ac_try_echo=$ac_try;;
49397 esac
49398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49399   (eval "$ac_compile") 2>conftest.er1
49400   ac_status=$?
49401   grep -v '^ *+' conftest.er1 >conftest.err
49402   rm -f conftest.er1
49403   cat conftest.err >&5
49404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49405   (exit $ac_status); } && {
49406          test -z "$ac_c_werror_flag" ||
49407          test ! -s conftest.err
49408        } && test -s conftest.$ac_objext; then
49409
49410                             { echo "$as_me:$LINENO: result: yes" >&5
49411 echo "${ECHO_T}yes" >&6; }
49412                             ICC_PCH=1
49413
49414 else
49415   echo "$as_me: failed program was:" >&5
49416 sed 's/^/| /' conftest.$ac_ext >&5
49417
49418
49419                             { echo "$as_me:$LINENO: result: no" >&5
49420 echo "${ECHO_T}no" >&6; }
49421
49422 fi
49423
49424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49425
49426 fi
49427
49428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49429             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49430                 USE_PCH=1
49431
49432 D='$'
49433 cat <<EOF >bk-make-pch
49434 #!/bin/sh
49435
49436 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49437 # script. It is used to generated precompiled headers.
49438 #
49439 # Permission is given to use this file in any way.
49440
49441 outfile="${D}{1}"
49442 header="${D}{2}"
49443 shift
49444 shift
49445
49446 compiler=""
49447 headerfile=""
49448
49449 while test ${D}{#} -gt 0; do
49450     add_to_cmdline=1
49451     case "${D}{1}" in
49452         -I* )
49453             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49454             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49455                 headerfile="${D}{incdir}/${D}{header}"
49456             fi
49457         ;;
49458         -use-pch|-use_pch )
49459             shift
49460             add_to_cmdline=0
49461         ;;
49462     esac
49463     if test ${D}add_to_cmdline = 1 ; then
49464         compiler="${D}{compiler} ${D}{1}"
49465     fi
49466     shift
49467 done
49468
49469 if test "x${D}{headerfile}" = "x" ; then
49470     echo "error: can't find header ${D}{header} in include paths" >&2
49471 else
49472     if test -f ${D}{outfile} ; then
49473         rm -f ${D}{outfile}
49474     else
49475         mkdir -p \`dirname ${D}{outfile}\`
49476     fi
49477     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49478     mkdir -p .deps
49479     if test "x${GCC_PCH}" = "x1" ; then
49480         # can do this because gcc is >= 3.4:
49481         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49482     elif test "x${ICC_PCH}" = "x1" ; then
49483         filename=pch_gen-${D}${D}
49484         file=${D}{filename}.c
49485         dfile=${D}{filename}.d
49486         cat > ${D}file <<EOT
49487 #include "${D}header"
49488 EOT
49489         # using -MF icc complains about differing command lines in creation/use
49490         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49491           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49492           rm -f ${D}file ${D}dfile ${D}{filename}.o
49493     fi
49494     exit ${D}{?}
49495 fi
49496 EOF
49497
49498                 chmod +x bk-make-pch
49499                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49500             fi
49501         fi
49502     fi
49503
49504
49505
49506
49507
49508     COND_BUILD_DEBUG="#"
49509     if test "x$BUILD" = "xdebug" ; then
49510         COND_BUILD_DEBUG=""
49511     fi
49512
49513     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49514     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49515         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49516     fi
49517
49518     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49519     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49520         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49521     fi
49522
49523     COND_BUILD_DEBUG_UNICODE_0="#"
49524     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49525         COND_BUILD_DEBUG_UNICODE_0=""
49526     fi
49527
49528     COND_BUILD_DEBUG_UNICODE_1="#"
49529     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49530         COND_BUILD_DEBUG_UNICODE_1=""
49531     fi
49532
49533     COND_BUILD_RELEASE="#"
49534     if test "x$BUILD" = "xrelease" ; then
49535         COND_BUILD_RELEASE=""
49536     fi
49537
49538     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49539     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49540         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49541     fi
49542
49543     COND_BUILD_RELEASE_UNICODE_0="#"
49544     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49545         COND_BUILD_RELEASE_UNICODE_0=""
49546     fi
49547
49548     COND_BUILD_RELEASE_UNICODE_1="#"
49549     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49550         COND_BUILD_RELEASE_UNICODE_1=""
49551     fi
49552
49553     COND_DEBUG_FLAG_1="#"
49554     if test "x$DEBUG_FLAG" = "x1" ; then
49555         COND_DEBUG_FLAG_1=""
49556     fi
49557
49558     COND_DEBUG_INFO_0="#"
49559     if test "x$DEBUG_INFO" = "x0" ; then
49560         COND_DEBUG_INFO_0=""
49561     fi
49562
49563     COND_DEBUG_INFO_1="#"
49564     if test "x$DEBUG_INFO" = "x1" ; then
49565         COND_DEBUG_INFO_1=""
49566     fi
49567
49568     COND_DEPS_TRACKING_0="#"
49569     if test "x$DEPS_TRACKING" = "x0" ; then
49570         COND_DEPS_TRACKING_0=""
49571     fi
49572
49573     COND_DEPS_TRACKING_1="#"
49574     if test "x$DEPS_TRACKING" = "x1" ; then
49575         COND_DEPS_TRACKING_1=""
49576     fi
49577
49578     COND_GCC_PCH_1="#"
49579     if test "x$GCC_PCH" = "x1" ; then
49580         COND_GCC_PCH_1=""
49581     fi
49582
49583     COND_ICC_PCH_1="#"
49584     if test "x$ICC_PCH" = "x1" ; then
49585         COND_ICC_PCH_1=""
49586     fi
49587
49588     COND_MONOLITHIC_0="#"
49589     if test "x$MONOLITHIC" = "x0" ; then
49590         COND_MONOLITHIC_0=""
49591     fi
49592
49593     COND_MONOLITHIC_0_SHARED_0="#"
49594     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49595         COND_MONOLITHIC_0_SHARED_0=""
49596     fi
49597
49598     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49599     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49600         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49601     fi
49602
49603     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49604     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49605         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49606     fi
49607
49608     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49609     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49610         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49611     fi
49612
49613     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49614     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49615         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49616     fi
49617
49618     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49619     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49620         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49621     fi
49622
49623     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49624     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49625         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49626     fi
49627
49628     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49629     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49630         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49631     fi
49632
49633     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49634     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49635         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49636     fi
49637
49638     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49639     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49640         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49641     fi
49642
49643     COND_MONOLITHIC_0_SHARED_1="#"
49644     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49645         COND_MONOLITHIC_0_SHARED_1=""
49646     fi
49647
49648     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49649     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49650         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49651     fi
49652
49653     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49654     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49655         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49656     fi
49657
49658     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49659     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49660         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49661     fi
49662
49663     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49664     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49665         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49666     fi
49667
49668     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49669     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49670         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49671     fi
49672
49673     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49674     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49675         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49676     fi
49677
49678     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49679     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49680         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49681     fi
49682
49683     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49684     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49685         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49686     fi
49687
49688     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49689     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49690         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49691     fi
49692
49693     COND_MONOLITHIC_0_USE_AUI_1="#"
49694     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49695         COND_MONOLITHIC_0_USE_AUI_1=""
49696     fi
49697
49698     COND_MONOLITHIC_0_USE_GUI_1="#"
49699     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49700         COND_MONOLITHIC_0_USE_GUI_1=""
49701     fi
49702
49703     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49704     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49705         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49706     fi
49707
49708     COND_MONOLITHIC_0_USE_HTML_1="#"
49709     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49710         COND_MONOLITHIC_0_USE_HTML_1=""
49711     fi
49712
49713     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49714     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49715         COND_MONOLITHIC_0_USE_MEDIA_1=""
49716     fi
49717
49718     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
49719     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49720         COND_MONOLITHIC_0_USE_PROPGRID_1=""
49721     fi
49722
49723     COND_MONOLITHIC_0_USE_QA_1="#"
49724     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49725         COND_MONOLITHIC_0_USE_QA_1=""
49726     fi
49727
49728     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49729     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49730         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49731     fi
49732
49733     COND_MONOLITHIC_0_USE_STC_1="#"
49734     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49735         COND_MONOLITHIC_0_USE_STC_1=""
49736     fi
49737
49738     COND_MONOLITHIC_0_USE_XRC_1="#"
49739     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49740         COND_MONOLITHIC_0_USE_XRC_1=""
49741     fi
49742
49743     COND_MONOLITHIC_1="#"
49744     if test "x$MONOLITHIC" = "x1" ; then
49745         COND_MONOLITHIC_1=""
49746     fi
49747
49748     COND_MONOLITHIC_1_SHARED_0="#"
49749     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49750         COND_MONOLITHIC_1_SHARED_0=""
49751     fi
49752
49753     COND_MONOLITHIC_1_SHARED_1="#"
49754     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49755         COND_MONOLITHIC_1_SHARED_1=""
49756     fi
49757
49758     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49759     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49760         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49761     fi
49762
49763     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49764     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49765         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49766     fi
49767
49768     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49769     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49770         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49771     fi
49772
49773     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49774     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49775         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49776     fi
49777
49778     COND_PLATFORM_MACOSX_1="#"
49779     if test "x$PLATFORM_MACOSX" = "x1" ; then
49780         COND_PLATFORM_MACOSX_1=""
49781     fi
49782
49783     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49784     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49785         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49786     fi
49787
49788     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
49789     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
49790         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
49791     fi
49792
49793     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
49794     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49795         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
49796     fi
49797
49798     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
49799     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
49800         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
49801     fi
49802
49803     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
49804     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49805         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
49806     fi
49807
49808     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49809     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49810         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49811     fi
49812
49813     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49814     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49815         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49816     fi
49817
49818     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49819     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49820         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49821     fi
49822
49823     COND_PLATFORM_MACOS_1="#"
49824     if test "x$PLATFORM_MACOS" = "x1" ; then
49825         COND_PLATFORM_MACOS_1=""
49826     fi
49827
49828     COND_PLATFORM_MAC_0="#"
49829     if test "x$PLATFORM_MAC" = "x0" ; then
49830         COND_PLATFORM_MAC_0=""
49831     fi
49832
49833     COND_PLATFORM_MAC_1="#"
49834     if test "x$PLATFORM_MAC" = "x1" ; then
49835         COND_PLATFORM_MAC_1=""
49836     fi
49837
49838     COND_PLATFORM_MSDOS_0="#"
49839     if test "x$PLATFORM_MSDOS" = "x0" ; then
49840         COND_PLATFORM_MSDOS_0=""
49841     fi
49842
49843     COND_PLATFORM_MSDOS_1="#"
49844     if test "x$PLATFORM_MSDOS" = "x1" ; then
49845         COND_PLATFORM_MSDOS_1=""
49846     fi
49847
49848     COND_PLATFORM_OS2_1="#"
49849     if test "x$PLATFORM_OS2" = "x1" ; then
49850         COND_PLATFORM_OS2_1=""
49851     fi
49852
49853     COND_PLATFORM_UNIX_0="#"
49854     if test "x$PLATFORM_UNIX" = "x0" ; then
49855         COND_PLATFORM_UNIX_0=""
49856     fi
49857
49858     COND_PLATFORM_UNIX_1="#"
49859     if test "x$PLATFORM_UNIX" = "x1" ; then
49860         COND_PLATFORM_UNIX_1=""
49861     fi
49862
49863     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49864     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49865         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49866     fi
49867
49868     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49869     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49870         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49871     fi
49872
49873     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49874     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49875         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49876     fi
49877
49878     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49879     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49880         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49881     fi
49882
49883     COND_PLATFORM_WIN32_0="#"
49884     if test "x$PLATFORM_WIN32" = "x0" ; then
49885         COND_PLATFORM_WIN32_0=""
49886     fi
49887
49888     COND_PLATFORM_WIN32_1="#"
49889     if test "x$PLATFORM_WIN32" = "x1" ; then
49890         COND_PLATFORM_WIN32_1=""
49891     fi
49892
49893     COND_SHARED_0="#"
49894     if test "x$SHARED" = "x0" ; then
49895         COND_SHARED_0=""
49896     fi
49897
49898     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49899     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49900         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49901     fi
49902
49903     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49904     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49905         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49906     fi
49907
49908     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49909     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49910         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49911     fi
49912
49913     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49914     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49915         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49916     fi
49917
49918     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49919     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49920         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49921     fi
49922
49923     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49924     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49925         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49926     fi
49927
49928     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49929     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49930         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49931     fi
49932
49933     COND_SHARED_0_USE_STC_1="#"
49934     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49935         COND_SHARED_0_USE_STC_1=""
49936     fi
49937
49938     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49939     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49940         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49941     fi
49942
49943     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49944     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49945         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49946     fi
49947
49948     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49949     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49950         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49951     fi
49952
49953     COND_SHARED_1="#"
49954     if test "x$SHARED" = "x1" ; then
49955         COND_SHARED_1=""
49956     fi
49957
49958     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49959     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49960         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49961     fi
49962
49963     COND_TOOLKIT_="#"
49964     if test "x$TOOLKIT" = "x" ; then
49965         COND_TOOLKIT_=""
49966     fi
49967
49968     COND_TOOLKIT_COCOA="#"
49969     if test "x$TOOLKIT" = "xCOCOA" ; then
49970         COND_TOOLKIT_COCOA=""
49971     fi
49972
49973     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49974     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49975         COND_TOOLKIT_COCOA_USE_GUI_1=""
49976     fi
49977
49978     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49979     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49980         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49981     fi
49982
49983     COND_TOOLKIT_DFB="#"
49984     if test "x$TOOLKIT" = "xDFB" ; then
49985         COND_TOOLKIT_DFB=""
49986     fi
49987
49988     COND_TOOLKIT_DFB_USE_GUI_1="#"
49989     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49990         COND_TOOLKIT_DFB_USE_GUI_1=""
49991     fi
49992
49993     COND_TOOLKIT_GTK="#"
49994     if test "x$TOOLKIT" = "xGTK" ; then
49995         COND_TOOLKIT_GTK=""
49996     fi
49997
49998     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49999     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50000         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50001     fi
50002
50003     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50004     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50005         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50006     fi
50007
50008     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50009     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50010         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50011     fi
50012
50013     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50014     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50015         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50016     fi
50017
50018     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#"
50019     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then
50020         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0=""
50021     fi
50022
50023     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50024     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50025         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50026     fi
50027
50028     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50029     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50030         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50031     fi
50032
50033     COND_TOOLKIT_GTK_USE_GUI_1="#"
50034     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50035         COND_TOOLKIT_GTK_USE_GUI_1=""
50036     fi
50037
50038     COND_TOOLKIT_MAC="#"
50039     if test "x$TOOLKIT" = "xMAC" ; then
50040         COND_TOOLKIT_MAC=""
50041     fi
50042
50043     COND_TOOLKIT_MGL="#"
50044     if test "x$TOOLKIT" = "xMGL" ; then
50045         COND_TOOLKIT_MGL=""
50046     fi
50047
50048     COND_TOOLKIT_MGL_USE_GUI_1="#"
50049     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50050         COND_TOOLKIT_MGL_USE_GUI_1=""
50051     fi
50052
50053     COND_TOOLKIT_MOTIF="#"
50054     if test "x$TOOLKIT" = "xMOTIF" ; then
50055         COND_TOOLKIT_MOTIF=""
50056     fi
50057
50058     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50059     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50060         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50061     fi
50062
50063     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50064     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50065         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50066     fi
50067
50068     COND_TOOLKIT_MSW="#"
50069     if test "x$TOOLKIT" = "xMSW" ; then
50070         COND_TOOLKIT_MSW=""
50071     fi
50072
50073     COND_TOOLKIT_MSW_USE_GUI_1="#"
50074     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50075         COND_TOOLKIT_MSW_USE_GUI_1=""
50076     fi
50077
50078     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50079     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50080         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50081     fi
50082
50083     COND_TOOLKIT_MSW_WXUNIV_0="#"
50084     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50085         COND_TOOLKIT_MSW_WXUNIV_0=""
50086     fi
50087
50088     COND_TOOLKIT_OSX_CARBON="#"
50089     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50090         COND_TOOLKIT_OSX_CARBON=""
50091     fi
50092
50093     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50094     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50095         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50096     fi
50097
50098     COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50099     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50100         COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50101     fi
50102
50103     COND_TOOLKIT_OSX_COCOA="#"
50104     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50105         COND_TOOLKIT_OSX_COCOA=""
50106     fi
50107
50108     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50109     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50110         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50111     fi
50112
50113     COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50114     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50115         COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50116     fi
50117
50118     COND_TOOLKIT_OSX_IPHONE="#"
50119     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50120         COND_TOOLKIT_OSX_IPHONE=""
50121     fi
50122
50123     COND_TOOLKIT_PM="#"
50124     if test "x$TOOLKIT" = "xPM" ; then
50125         COND_TOOLKIT_PM=""
50126     fi
50127
50128     COND_TOOLKIT_PM_USE_GUI_1="#"
50129     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50130         COND_TOOLKIT_PM_USE_GUI_1=""
50131     fi
50132
50133     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50134     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50135         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50136     fi
50137
50138     COND_TOOLKIT_WINCE="#"
50139     if test "x$TOOLKIT" = "xWINCE" ; then
50140         COND_TOOLKIT_WINCE=""
50141     fi
50142
50143     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50144     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50145         COND_TOOLKIT_WINCE_USE_GUI_1=""
50146     fi
50147
50148     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50149     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50150         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50151     fi
50152
50153     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50154     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50155         COND_TOOLKIT_WINCE_WXUNIV_0=""
50156     fi
50157
50158     COND_TOOLKIT_X11="#"
50159     if test "x$TOOLKIT" = "xX11" ; then
50160         COND_TOOLKIT_X11=""
50161     fi
50162
50163     COND_TOOLKIT_X11_USE_GUI_1="#"
50164     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50165         COND_TOOLKIT_X11_USE_GUI_1=""
50166     fi
50167
50168     COND_UNICODE_1="#"
50169     if test "x$UNICODE" = "x1" ; then
50170         COND_UNICODE_1=""
50171     fi
50172
50173     COND_USE_EXCEPTIONS_0="#"
50174     if test "x$USE_EXCEPTIONS" = "x0" ; then
50175         COND_USE_EXCEPTIONS_0=""
50176     fi
50177
50178     COND_USE_EXCEPTIONS_1="#"
50179     if test "x$USE_EXCEPTIONS" = "x1" ; then
50180         COND_USE_EXCEPTIONS_1=""
50181     fi
50182
50183     COND_USE_GUI_0="#"
50184     if test "x$USE_GUI" = "x0" ; then
50185         COND_USE_GUI_0=""
50186     fi
50187
50188     COND_USE_GUI_1="#"
50189     if test "x$USE_GUI" = "x1" ; then
50190         COND_USE_GUI_1=""
50191     fi
50192
50193     COND_USE_GUI_1_USE_OPENGL_1="#"
50194     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50195         COND_USE_GUI_1_USE_OPENGL_1=""
50196     fi
50197
50198     COND_USE_GUI_1_WXUNIV_0="#"
50199     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50200         COND_USE_GUI_1_WXUNIV_0=""
50201     fi
50202
50203     COND_USE_GUI_1_WXUNIV_1="#"
50204     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50205         COND_USE_GUI_1_WXUNIV_1=""
50206     fi
50207
50208     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50209     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50210         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50211     fi
50212
50213     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50214     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50215         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50216     fi
50217
50218     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50219     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50220         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50221     fi
50222
50223     COND_USE_OPENGL_1="#"
50224     if test "x$USE_OPENGL" = "x1" ; then
50225         COND_USE_OPENGL_1=""
50226     fi
50227
50228     COND_USE_PCH_1="#"
50229     if test "x$USE_PCH" = "x1" ; then
50230         COND_USE_PCH_1=""
50231     fi
50232
50233     COND_USE_PLUGINS_0="#"
50234     if test "x$USE_PLUGINS" = "x0" ; then
50235         COND_USE_PLUGINS_0=""
50236     fi
50237
50238     COND_USE_RTTI_0="#"
50239     if test "x$USE_RTTI" = "x0" ; then
50240         COND_USE_RTTI_0=""
50241     fi
50242
50243     COND_USE_RTTI_1="#"
50244     if test "x$USE_RTTI" = "x1" ; then
50245         COND_USE_RTTI_1=""
50246     fi
50247
50248     COND_USE_SOSYMLINKS_1="#"
50249     if test "x$USE_SOSYMLINKS" = "x1" ; then
50250         COND_USE_SOSYMLINKS_1=""
50251     fi
50252
50253     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50254     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50255         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50256     fi
50257
50258     COND_USE_SOVERLINUX_1="#"
50259     if test "x$USE_SOVERLINUX" = "x1" ; then
50260         COND_USE_SOVERLINUX_1=""
50261     fi
50262
50263     COND_USE_SOVERSION_0="#"
50264     if test "x$USE_SOVERSION" = "x0" ; then
50265         COND_USE_SOVERSION_0=""
50266     fi
50267
50268     COND_USE_SOVERSOLARIS_1="#"
50269     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50270         COND_USE_SOVERSOLARIS_1=""
50271     fi
50272
50273     COND_USE_STC_1="#"
50274     if test "x$USE_STC" = "x1" ; then
50275         COND_USE_STC_1=""
50276     fi
50277
50278     COND_USE_THREADS_0="#"
50279     if test "x$USE_THREADS" = "x0" ; then
50280         COND_USE_THREADS_0=""
50281     fi
50282
50283     COND_USE_THREADS_1="#"
50284     if test "x$USE_THREADS" = "x1" ; then
50285         COND_USE_THREADS_1=""
50286     fi
50287
50288     COND_USE_XRC_1="#"
50289     if test "x$USE_XRC" = "x1" ; then
50290         COND_USE_XRC_1=""
50291     fi
50292
50293     COND_WINDOWS_IMPLIB_1="#"
50294     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50295         COND_WINDOWS_IMPLIB_1=""
50296     fi
50297
50298     COND_WITH_PLUGIN_SDL_1="#"
50299     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50300         COND_WITH_PLUGIN_SDL_1=""
50301     fi
50302
50303     COND_WXUNIV_0="#"
50304     if test "x$WXUNIV" = "x0" ; then
50305         COND_WXUNIV_0=""
50306     fi
50307
50308     COND_WXUNIV_1="#"
50309     if test "x$WXUNIV" = "x1" ; then
50310         COND_WXUNIV_1=""
50311     fi
50312
50313     COND_WXUSE_EXPAT_BUILTIN="#"
50314     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50315         COND_WXUSE_EXPAT_BUILTIN=""
50316     fi
50317
50318     COND_WXUSE_LIBJPEG_BUILTIN="#"
50319     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50320         COND_WXUSE_LIBJPEG_BUILTIN=""
50321     fi
50322
50323     COND_WXUSE_LIBPNG_BUILTIN="#"
50324     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50325         COND_WXUSE_LIBPNG_BUILTIN=""
50326     fi
50327
50328     COND_WXUSE_LIBTIFF_BUILTIN="#"
50329     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50330         COND_WXUSE_LIBTIFF_BUILTIN=""
50331     fi
50332
50333     COND_WXUSE_REGEX_BUILTIN="#"
50334     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50335         COND_WXUSE_REGEX_BUILTIN=""
50336     fi
50337
50338     COND_WXUSE_ZLIB_BUILTIN="#"
50339     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50340         COND_WXUSE_ZLIB_BUILTIN=""
50341     fi
50342
50343
50344
50345     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50346         { { 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
50347 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;}
50348    { (exit 1); exit 1; }; }
50349     fi
50350
50351     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50352         { { 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
50353 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;}
50354    { (exit 1); exit 1; }; }
50355     fi
50356
50357
50358 case ${INSTALL} in
50359   /* ) # Absolute
50360      ;;
50361   ?:* ) # Drive letter, considered as absolute.
50362      ;;
50363   *)
50364      INSTALL=`pwd`/${INSTALL} ;;
50365 esac
50366
50367 if test "$wxUSE_GUI" = "yes"; then
50368
50369 if test "$wxUSE_MSW" = 1 ; then
50370     if test "x$WINDRES" = "x"; then
50371         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50372 echo "$as_me: error: Required windres program not found" >&2;}
50373    { (exit 1); exit 1; }; }
50374     fi
50375
50376     RESCOMP="$WINDRES"
50377 fi
50378
50379 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50380             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50381     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50382
50383         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50384
50385     # Extract the first word of "DeRez", so it can be a program name with args.
50386 set dummy DeRez; ac_word=$2
50387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50389 if test "${ac_cv_prog_DEREZ+set}" = set; then
50390   echo $ECHO_N "(cached) $ECHO_C" >&6
50391 else
50392   if test -n "$DEREZ"; then
50393   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50394 else
50395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50396 for as_dir in $PATH
50397 do
50398   IFS=$as_save_IFS
50399   test -z "$as_dir" && as_dir=.
50400   for ac_exec_ext in '' $ac_executable_extensions; do
50401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50402     ac_cv_prog_DEREZ="DeRez"
50403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50404     break 2
50405   fi
50406 done
50407 done
50408 IFS=$as_save_IFS
50409
50410   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50411 fi
50412 fi
50413 DEREZ=$ac_cv_prog_DEREZ
50414 if test -n "$DEREZ"; then
50415   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50416 echo "${ECHO_T}$DEREZ" >&6; }
50417 else
50418   { echo "$as_me:$LINENO: result: no" >&5
50419 echo "${ECHO_T}no" >&6; }
50420 fi
50421
50422
50423
50424     MACSETFILE="\$(SETFILE)"
50425
50426             if test "$wxUSE_OSX_CARBON" = 1; then
50427         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50428         RESCOMP="$REZ"
50429         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50430     else
50431         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50432         RESCOMP="cat /dev/null \| $REZ"
50433         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50434     fi
50435
50436 else
50437         MACSETFILE="@true"
50438
50439     if test "$wxUSE_PM" = 1; then
50440         RESCOMP="emxbind"
50441         WXCONFIG_RESFLAGS="-ep"
50442
50443                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50444     else
50445         POSTLINK_COMMAND="@true"
50446     fi
50447 fi
50448
50449 fi
50450
50451
50452 if test $GCC_PCH = 1
50453 then
50454     if test "$wx_cv_gcc_pch_bug" = yes; then
50455         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50456 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50457         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50458 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50459         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50460 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50461     fi
50462
50463     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50464     # the headers that benefit from precompilation are mostly C++ headers.
50465     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50466     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50467     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50468 fi
50469
50470
50471 if test "$wxUSE_MAC" = 1 ; then
50472     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50473         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50474         mv temp bk-deps
50475         chmod +x bk-deps
50476     fi
50477 fi
50478
50479 if test "$wxUSE_SHARED" = "yes"; then
50480                 case "${host}" in
50481       *-pc-os2_emx | *-pc-os2-emx )
50482         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50483         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50484         cp -p ${srcdir}/src/os2/dllnames.sh .
50485         cp -p ${srcdir}/src/os2/dllar.sh .
50486       ;;
50487     esac
50488 fi
50489 if test "$wxUSE_OMF" = "yes"; then
50490     case "${host}" in
50491       *-pc-os2_emx | *-pc-os2-emx )
50492         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50493         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50494         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50495       ;;
50496     esac
50497 fi
50498
50499 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50500
50501
50502 case "${host}" in
50503     *-*-solaris2* )
50504                         if test "$GCC" = yes; then
50505             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50506             LIBS=`echo $LIBS | sed 's/-mt//'`
50507             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50508         fi
50509         ;;
50510
50511     *-*-linux* )
50512                         if test "x$SUNCXX" = xyes; then
50513             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50514             LIBS=`echo $LIBS | sed 's/-pthread//'`
50515             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50516         fi
50517         ;;
50518 esac
50519
50520 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50521 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50522
50523 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50524
50525
50526
50527
50528
50529
50530
50531
50532
50533
50534
50535
50536
50537
50538
50539
50540
50541
50542
50543
50544
50545
50546
50547
50548
50549
50550
50551
50552
50553
50554
50555
50556
50557
50558
50559
50560
50561
50562
50563
50564
50565
50566
50567
50568
50569
50570
50571
50572
50573
50574
50575
50576
50577
50578
50579
50580
50581
50582
50583
50584 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50585 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50586 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50587 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50588   echo $ECHO_N "(cached) $ECHO_C" >&6
50589 else
50590   cat >conftest.make <<\_ACEOF
50591 SHELL = /bin/sh
50592 all:
50593         @echo '@@@%%%=$(MAKE)=@@@%%%'
50594 _ACEOF
50595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50596 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50597   *@@@%%%=?*=@@@%%%*)
50598     eval ac_cv_prog_make_${ac_make}_set=yes;;
50599   *)
50600     eval ac_cv_prog_make_${ac_make}_set=no;;
50601 esac
50602 rm -f conftest.make
50603 fi
50604 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50605   { echo "$as_me:$LINENO: result: yes" >&5
50606 echo "${ECHO_T}yes" >&6; }
50607   SET_MAKE=
50608 else
50609   { echo "$as_me:$LINENO: result: no" >&5
50610 echo "${ECHO_T}no" >&6; }
50611   SET_MAKE="MAKE=${MAKE-make}"
50612 fi
50613
50614
50615
50616 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50617
50618
50619 if test "$USE_WIN32" = 1; then
50620     ac_config_commands="$ac_config_commands
50621             rcdefs.h
50622         "
50623
50624 fi
50625
50626 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50627
50628
50629 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50630
50631
50632 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50633
50634
50635 if test "$wx_cv_version_script" = "yes"; then
50636     ac_config_files="$ac_config_files version-script"
50637
50638 fi
50639 ac_config_files="$ac_config_files Makefile"
50640
50641
50642 ac_config_commands="$ac_config_commands wx-config"
50643
50644
50645
50646 if test "$wxWITH_SUBDIRS" != "no"; then
50647 if test "$wxUSE_GUI" = "yes"; then
50648     SUBDIRS="samples demos utils"
50649 else
50650             SUBDIRS="samples utils"
50651 fi
50652
50653
50654
50655 # Check whether --with-cppunit-prefix was given.
50656 if test "${with_cppunit_prefix+set}" = set; then
50657   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50658 else
50659   cppunit_config_prefix=""
50660 fi
50661
50662
50663 # Check whether --with-cppunit-exec-prefix was given.
50664 if test "${with_cppunit_exec_prefix+set}" = set; then
50665   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50666 else
50667   cppunit_config_exec_prefix=""
50668 fi
50669
50670
50671   if test x$cppunit_config_exec_prefix != x ; then
50672      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50673      if test x${CPPUNIT_CONFIG+set} != xset ; then
50674         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50675      fi
50676   fi
50677   if test x$cppunit_config_prefix != x ; then
50678      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50679      if test x${CPPUNIT_CONFIG+set} != xset ; then
50680         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50681      fi
50682   fi
50683
50684   # Extract the first word of "cppunit-config", so it can be a program name with args.
50685 set dummy cppunit-config; ac_word=$2
50686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50688 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50689   echo $ECHO_N "(cached) $ECHO_C" >&6
50690 else
50691   case $CPPUNIT_CONFIG in
50692   [\\/]* | ?:[\\/]*)
50693   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50694   ;;
50695   *)
50696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50697 for as_dir in $PATH
50698 do
50699   IFS=$as_save_IFS
50700   test -z "$as_dir" && as_dir=.
50701   for ac_exec_ext in '' $ac_executable_extensions; do
50702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50703     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50705     break 2
50706   fi
50707 done
50708 done
50709 IFS=$as_save_IFS
50710
50711   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50712   ;;
50713 esac
50714 fi
50715 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50716 if test -n "$CPPUNIT_CONFIG"; then
50717   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50718 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50719 else
50720   { echo "$as_me:$LINENO: result: no" >&5
50721 echo "${ECHO_T}no" >&6; }
50722 fi
50723
50724
50725   cppunit_version_min=1.8.0
50726
50727   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50728 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50729   no_cppunit=""
50730   if test "$CPPUNIT_CONFIG" = "no" ; then
50731     { echo "$as_me:$LINENO: result: no" >&5
50732 echo "${ECHO_T}no" >&6; }
50733     no_cppunit=yes
50734   else
50735     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50736     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50737     cppunit_version=`$CPPUNIT_CONFIG --version`
50738
50739     cppunit_major_version=`echo $cppunit_version | \
50740            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50741     cppunit_minor_version=`echo $cppunit_version | \
50742            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50743     cppunit_micro_version=`echo $cppunit_version | \
50744            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50745
50746     cppunit_major_min=`echo $cppunit_version_min | \
50747            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50748     cppunit_minor_min=`echo $cppunit_version_min | \
50749            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50750     cppunit_micro_min=`echo $cppunit_version_min | \
50751            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50752
50753     cppunit_version_proper=`expr \
50754         $cppunit_major_version \> $cppunit_major_min \| \
50755         $cppunit_major_version \= $cppunit_major_min \& \
50756         $cppunit_minor_version \> $cppunit_minor_min \| \
50757         $cppunit_major_version \= $cppunit_major_min \& \
50758         $cppunit_minor_version \= $cppunit_minor_min \& \
50759         $cppunit_micro_version \>= $cppunit_micro_min `
50760
50761     if test "$cppunit_version_proper" = "1" ; then
50762       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50763 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50764     else
50765       { echo "$as_me:$LINENO: result: no" >&5
50766 echo "${ECHO_T}no" >&6; }
50767       no_cppunit=yes
50768     fi
50769   fi
50770
50771   if test "x$no_cppunit" = x ; then
50772      SUBDIRS="$SUBDIRS tests"
50773   else
50774      CPPUNIT_CFLAGS=""
50775      CPPUNIT_LIBS=""
50776      :
50777   fi
50778
50779
50780
50781
50782
50783 for subdir in $SUBDIRS; do
50784     if test -d ${srcdir}/${subdir} ; then
50785         if test "$wxUSE_GUI" = "yes"; then
50786             if test ${subdir} = "samples"; then
50787                                                 makefiles="samples/Makefile.in $makefiles"
50788                 for sample in $SAMPLES_SUBDIRS; do
50789                     if test -d $srcdir/samples/$sample; then
50790                         makefiles="samples/$sample/Makefile.in $makefiles"
50791                     fi
50792                 done
50793             else
50794                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50795                 eval "disabled=\$$disabled_var"
50796                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50797                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50798             fi
50799         else
50800                                     if test ${subdir} = "samples"; then
50801                                                 makefiles="samples/Makefile.in $makefiles"
50802                 for sample in `echo $SAMPLES_SUBDIRS`; do
50803                     if test -d $srcdir/samples/$sample; then
50804                         makefiles="samples/$sample/Makefile.in $makefiles"
50805                     fi
50806                 done
50807             elif test ${subdir} = "utils"; then
50808                 makefiles=""
50809                 for util in ifacecheck ; do
50810                     if test -d $srcdir/utils/$util ; then
50811                         makefiles="utils/$util/src/Makefile.in \
50812                                    $makefiles"
50813                     fi
50814                 done
50815             else
50816                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50817             fi
50818         fi
50819
50820         for mkin in $makefiles ; do
50821             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50822             ac_config_files="$ac_config_files $mk"
50823
50824         done
50825     fi
50826 done
50827 fi
50828 cat >confcache <<\_ACEOF
50829 # This file is a shell script that caches the results of configure
50830 # tests run on this system so they can be shared between configure
50831 # scripts and configure runs, see configure's option --config-cache.
50832 # It is not useful on other systems.  If it contains results you don't
50833 # want to keep, you may remove or edit it.
50834 #
50835 # config.status only pays attention to the cache file if you give it
50836 # the --recheck option to rerun configure.
50837 #
50838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50840 # following values.
50841
50842 _ACEOF
50843
50844 # The following way of writing the cache mishandles newlines in values,
50845 # but we know of no workaround that is simple, portable, and efficient.
50846 # So, we kill variables containing newlines.
50847 # Ultrix sh set writes to stderr and can't be redirected directly,
50848 # and sets the high bit in the cache file unless we assign to the vars.
50849 (
50850   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50851     eval ac_val=\$$ac_var
50852     case $ac_val in #(
50853     *${as_nl}*)
50854       case $ac_var in #(
50855       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50856 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50857       esac
50858       case $ac_var in #(
50859       _ | IFS | as_nl) ;; #(
50860       *) $as_unset $ac_var ;;
50861       esac ;;
50862     esac
50863   done
50864
50865   (set) 2>&1 |
50866     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50867     *${as_nl}ac_space=\ *)
50868       # `set' does not quote correctly, so add quotes (double-quote
50869       # substitution turns \\\\ into \\, and sed turns \\ into \).
50870       sed -n \
50871         "s/'/'\\\\''/g;
50872           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50873       ;; #(
50874     *)
50875       # `set' quotes correctly as required by POSIX, so do not add quotes.
50876       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50877       ;;
50878     esac |
50879     sort
50880 ) |
50881   sed '
50882      /^ac_cv_env_/b end
50883      t clear
50884      :clear
50885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50886      t end
50887      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50888      :end' >>confcache
50889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50890   if test -w "$cache_file"; then
50891     test "x$cache_file" != "x/dev/null" &&
50892       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50893 echo "$as_me: updating cache $cache_file" >&6;}
50894     cat confcache >$cache_file
50895   else
50896     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50897 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50898   fi
50899 fi
50900 rm -f confcache
50901
50902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50903 # Let make expand exec_prefix.
50904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50905
50906 DEFS=-DHAVE_CONFIG_H
50907
50908 ac_libobjs=
50909 ac_ltlibobjs=
50910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50911   # 1. Remove the extension, and $U if already installed.
50912   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50913   ac_i=`echo "$ac_i" | sed "$ac_script"`
50914   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50915   #    will be set to the directory where LIBOBJS objects are built.
50916   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50917   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50918 done
50919 LIBOBJS=$ac_libobjs
50920
50921 LTLIBOBJS=$ac_ltlibobjs
50922
50923
50924
50925 : ${CONFIG_STATUS=./config.status}
50926 ac_clean_files_save=$ac_clean_files
50927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50930 cat >$CONFIG_STATUS <<_ACEOF
50931 #! $SHELL
50932 # Generated by $as_me.
50933 # Run this file to recreate the current configuration.
50934 # Compiler output produced by configure, useful for debugging
50935 # configure, is in config.log if it exists.
50936
50937 debug=false
50938 ac_cs_recheck=false
50939 ac_cs_silent=false
50940 SHELL=\${CONFIG_SHELL-$SHELL}
50941 _ACEOF
50942
50943 cat >>$CONFIG_STATUS <<\_ACEOF
50944 ## --------------------- ##
50945 ## M4sh Initialization.  ##
50946 ## --------------------- ##
50947
50948 # Be more Bourne compatible
50949 DUALCASE=1; export DUALCASE # for MKS sh
50950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50951   emulate sh
50952   NULLCMD=:
50953   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50954   # is contrary to our usage.  Disable this feature.
50955   alias -g '${1+"$@"}'='"$@"'
50956   setopt NO_GLOB_SUBST
50957 else
50958   case `(set -o) 2>/dev/null` in
50959   *posix*) set -o posix ;;
50960 esac
50961
50962 fi
50963
50964
50965
50966
50967 # PATH needs CR
50968 # Avoid depending upon Character Ranges.
50969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50972 as_cr_digits='0123456789'
50973 as_cr_alnum=$as_cr_Letters$as_cr_digits
50974
50975 # The user is always right.
50976 if test "${PATH_SEPARATOR+set}" != set; then
50977   echo "#! /bin/sh" >conf$$.sh
50978   echo  "exit 0"   >>conf$$.sh
50979   chmod +x conf$$.sh
50980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50981     PATH_SEPARATOR=';'
50982   else
50983     PATH_SEPARATOR=:
50984   fi
50985   rm -f conf$$.sh
50986 fi
50987
50988 # Support unset when possible.
50989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50990   as_unset=unset
50991 else
50992   as_unset=false
50993 fi
50994
50995
50996 # IFS
50997 # We need space, tab and new line, in precisely that order.  Quoting is
50998 # there to prevent editors from complaining about space-tab.
50999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51000 # splitting by setting IFS to empty value.)
51001 as_nl='
51002 '
51003 IFS=" ""        $as_nl"
51004
51005 # Find who we are.  Look in the path if we contain no directory separator.
51006 case $0 in
51007   *[\\/]* ) as_myself=$0 ;;
51008   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51009 for as_dir in $PATH
51010 do
51011   IFS=$as_save_IFS
51012   test -z "$as_dir" && as_dir=.
51013   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51014 done
51015 IFS=$as_save_IFS
51016
51017      ;;
51018 esac
51019 # We did not find ourselves, most probably we were run as `sh COMMAND'
51020 # in which case we are not to be found in the path.
51021 if test "x$as_myself" = x; then
51022   as_myself=$0
51023 fi
51024 if test ! -f "$as_myself"; then
51025   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51026   { (exit 1); exit 1; }
51027 fi
51028
51029 # Work around bugs in pre-3.0 UWIN ksh.
51030 for as_var in ENV MAIL MAILPATH
51031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51032 done
51033 PS1='$ '
51034 PS2='> '
51035 PS4='+ '
51036
51037 # NLS nuisances.
51038 for as_var in \
51039   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51040   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51041   LC_TELEPHONE LC_TIME
51042 do
51043   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51044     eval $as_var=C; export $as_var
51045   else
51046     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51047   fi
51048 done
51049
51050 # Required to use basename.
51051 if expr a : '\(a\)' >/dev/null 2>&1 &&
51052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51053   as_expr=expr
51054 else
51055   as_expr=false
51056 fi
51057
51058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51059   as_basename=basename
51060 else
51061   as_basename=false
51062 fi
51063
51064
51065 # Name of the executable.
51066 as_me=`$as_basename -- "$0" ||
51067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51068          X"$0" : 'X\(//\)$' \| \
51069          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51070 echo X/"$0" |
51071     sed '/^.*\/\([^/][^/]*\)\/*$/{
51072             s//\1/
51073             q
51074           }
51075           /^X\/\(\/\/\)$/{
51076             s//\1/
51077             q
51078           }
51079           /^X\/\(\/\).*/{
51080             s//\1/
51081             q
51082           }
51083           s/.*/./; q'`
51084
51085 # CDPATH.
51086 $as_unset CDPATH
51087
51088
51089
51090   as_lineno_1=$LINENO
51091   as_lineno_2=$LINENO
51092   test "x$as_lineno_1" != "x$as_lineno_2" &&
51093   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51094
51095   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51096   # uniformly replaced by the line number.  The first 'sed' inserts a
51097   # line-number line after each line using $LINENO; the second 'sed'
51098   # does the real work.  The second script uses 'N' to pair each
51099   # line-number line with the line containing $LINENO, and appends
51100   # trailing '-' during substitution so that $LINENO is not a special
51101   # case at line end.
51102   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51103   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51104   # E. McMahon (1931-1989) for sed's syntax.  :-)
51105   sed -n '
51106     p
51107     /[$]LINENO/=
51108   ' <$as_myself |
51109     sed '
51110       s/[$]LINENO.*/&-/
51111       t lineno
51112       b
51113       :lineno
51114       N
51115       :loop
51116       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51117       t loop
51118       s/-\n.*//
51119     ' >$as_me.lineno &&
51120   chmod +x "$as_me.lineno" ||
51121     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51122    { (exit 1); exit 1; }; }
51123
51124   # Don't try to exec as it changes $[0], causing all sort of problems
51125   # (the dirname of $[0] is not the place where we might find the
51126   # original and so on.  Autoconf is especially sensitive to this).
51127   . "./$as_me.lineno"
51128   # Exit status is that of the last command.
51129   exit
51130 }
51131
51132
51133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51134   as_dirname=dirname
51135 else
51136   as_dirname=false
51137 fi
51138
51139 ECHO_C= ECHO_N= ECHO_T=
51140 case `echo -n x` in
51141 -n*)
51142   case `echo 'x\c'` in
51143   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51144   *)   ECHO_C='\c';;
51145   esac;;
51146 *)
51147   ECHO_N='-n';;
51148 esac
51149
51150 if expr a : '\(a\)' >/dev/null 2>&1 &&
51151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51152   as_expr=expr
51153 else
51154   as_expr=false
51155 fi
51156
51157 rm -f conf$$ conf$$.exe conf$$.file
51158 if test -d conf$$.dir; then
51159   rm -f conf$$.dir/conf$$.file
51160 else
51161   rm -f conf$$.dir
51162   mkdir conf$$.dir
51163 fi
51164 echo >conf$$.file
51165 if ln -s conf$$.file conf$$ 2>/dev/null; then
51166   as_ln_s='ln -s'
51167   # ... but there are two gotchas:
51168   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51169   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51170   # In both cases, we have to default to `cp -p'.
51171   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51172     as_ln_s='cp -p'
51173 elif ln conf$$.file conf$$ 2>/dev/null; then
51174   as_ln_s=ln
51175 else
51176   as_ln_s='cp -p'
51177 fi
51178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51179 rmdir conf$$.dir 2>/dev/null
51180
51181 if mkdir -p . 2>/dev/null; then
51182   as_mkdir_p=:
51183 else
51184   test -d ./-p && rmdir ./-p
51185   as_mkdir_p=false
51186 fi
51187
51188 if test -x / >/dev/null 2>&1; then
51189   as_test_x='test -x'
51190 else
51191   if ls -dL / >/dev/null 2>&1; then
51192     as_ls_L_option=L
51193   else
51194     as_ls_L_option=
51195   fi
51196   as_test_x='
51197     eval sh -c '\''
51198       if test -d "$1"; then
51199         test -d "$1/.";
51200       else
51201         case $1 in
51202         -*)set "./$1";;
51203         esac;
51204         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51205         ???[sx]*):;;*)false;;esac;fi
51206     '\'' sh
51207   '
51208 fi
51209 as_executable_p=$as_test_x
51210
51211 # Sed expression to map a string onto a valid CPP name.
51212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51213
51214 # Sed expression to map a string onto a valid variable name.
51215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51216
51217
51218 exec 6>&1
51219
51220 # Save the log message, to keep $[0] and so on meaningful, and to
51221 # report actual input values of CONFIG_FILES etc. instead of their
51222 # values after options handling.
51223 ac_log="
51224 This file was extended by wxWidgets $as_me 2.9.0, which was
51225 generated by GNU Autoconf 2.61.  Invocation command line was
51226
51227   CONFIG_FILES    = $CONFIG_FILES
51228   CONFIG_HEADERS  = $CONFIG_HEADERS
51229   CONFIG_LINKS    = $CONFIG_LINKS
51230   CONFIG_COMMANDS = $CONFIG_COMMANDS
51231   $ $0 $@
51232
51233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51234 "
51235
51236 _ACEOF
51237
51238 cat >>$CONFIG_STATUS <<_ACEOF
51239 # Files that config.status was made for.
51240 config_files="$ac_config_files"
51241 config_headers="$ac_config_headers"
51242 config_commands="$ac_config_commands"
51243
51244 _ACEOF
51245
51246 cat >>$CONFIG_STATUS <<\_ACEOF
51247 ac_cs_usage="\
51248 \`$as_me' instantiates files from templates according to the
51249 current configuration.
51250
51251 Usage: $0 [OPTIONS] [FILE]...
51252
51253   -h, --help       print this help, then exit
51254   -V, --version    print version number and configuration settings, then exit
51255   -q, --quiet      do not print progress messages
51256   -d, --debug      don't remove temporary files
51257       --recheck    update $as_me by reconfiguring in the same conditions
51258   --file=FILE[:TEMPLATE]
51259                    instantiate the configuration file FILE
51260   --header=FILE[:TEMPLATE]
51261                    instantiate the configuration header FILE
51262
51263 Configuration files:
51264 $config_files
51265
51266 Configuration headers:
51267 $config_headers
51268
51269 Configuration commands:
51270 $config_commands
51271
51272 Report bugs to <bug-autoconf@gnu.org>."
51273
51274 _ACEOF
51275 cat >>$CONFIG_STATUS <<_ACEOF
51276 ac_cs_version="\\
51277 wxWidgets config.status 2.9.0
51278 configured by $0, generated by GNU Autoconf 2.61,
51279   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51280
51281 Copyright (C) 2006 Free Software Foundation, Inc.
51282 This config.status script is free software; the Free Software Foundation
51283 gives unlimited permission to copy, distribute and modify it."
51284
51285 ac_pwd='$ac_pwd'
51286 srcdir='$srcdir'
51287 INSTALL='$INSTALL'
51288 _ACEOF
51289
51290 cat >>$CONFIG_STATUS <<\_ACEOF
51291 # If no file are specified by the user, then we need to provide default
51292 # value.  By we need to know if files were specified by the user.
51293 ac_need_defaults=:
51294 while test $# != 0
51295 do
51296   case $1 in
51297   --*=*)
51298     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51299     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51300     ac_shift=:
51301     ;;
51302   *)
51303     ac_option=$1
51304     ac_optarg=$2
51305     ac_shift=shift
51306     ;;
51307   esac
51308
51309   case $ac_option in
51310   # Handling of the options.
51311   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51312     ac_cs_recheck=: ;;
51313   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51314     echo "$ac_cs_version"; exit ;;
51315   --debug | --debu | --deb | --de | --d | -d )
51316     debug=: ;;
51317   --file | --fil | --fi | --f )
51318     $ac_shift
51319     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51320     ac_need_defaults=false;;
51321   --header | --heade | --head | --hea )
51322     $ac_shift
51323     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51324     ac_need_defaults=false;;
51325   --he | --h)
51326     # Conflict between --help and --header
51327     { echo "$as_me: error: ambiguous option: $1
51328 Try \`$0 --help' for more information." >&2
51329    { (exit 1); exit 1; }; };;
51330   --help | --hel | -h )
51331     echo "$ac_cs_usage"; exit ;;
51332   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51333   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51334     ac_cs_silent=: ;;
51335
51336   # This is an error.
51337   -*) { echo "$as_me: error: unrecognized option: $1
51338 Try \`$0 --help' for more information." >&2
51339    { (exit 1); exit 1; }; } ;;
51340
51341   *) ac_config_targets="$ac_config_targets $1"
51342      ac_need_defaults=false ;;
51343
51344   esac
51345   shift
51346 done
51347
51348 ac_configure_extra_args=
51349
51350 if $ac_cs_silent; then
51351   exec 6>/dev/null
51352   ac_configure_extra_args="$ac_configure_extra_args --silent"
51353 fi
51354
51355 _ACEOF
51356 cat >>$CONFIG_STATUS <<_ACEOF
51357 if \$ac_cs_recheck; then
51358   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51359   CONFIG_SHELL=$SHELL
51360   export CONFIG_SHELL
51361   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51362 fi
51363
51364 _ACEOF
51365 cat >>$CONFIG_STATUS <<\_ACEOF
51366 exec 5>>config.log
51367 {
51368   echo
51369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51370 ## Running $as_me. ##
51371 _ASBOX
51372   echo "$ac_log"
51373 } >&5
51374
51375 _ACEOF
51376 cat >>$CONFIG_STATUS <<_ACEOF
51377 #
51378 # INIT-COMMANDS
51379 #
51380
51381             CPP="$CPP"
51382             infile="$srcdir/include/wx/msw/genrcdefs.h"
51383             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51384
51385
51386  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51387  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51388  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51389                      LN_S="${LN_S}"
51390
51391
51392 _ACEOF
51393
51394 cat >>$CONFIG_STATUS <<\_ACEOF
51395
51396 # Handling of arguments.
51397 for ac_config_target in $ac_config_targets
51398 do
51399   case $ac_config_target in
51400     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51401     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51402     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51403     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51404     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51405     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51406     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51407     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51408     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51409
51410   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51411 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51412    { (exit 1); exit 1; }; };;
51413   esac
51414 done
51415
51416
51417 # If the user did not use the arguments to specify the items to instantiate,
51418 # then the envvar interface is used.  Set only those that are not.
51419 # We use the long form for the default assignment because of an extremely
51420 # bizarre bug on SunOS 4.1.3.
51421 if $ac_need_defaults; then
51422   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51423   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51424   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51425 fi
51426
51427 # Have a temporary directory for convenience.  Make it in the build tree
51428 # simply because there is no reason against having it here, and in addition,
51429 # creating and moving files from /tmp can sometimes cause problems.
51430 # Hook for its removal unless debugging.
51431 # Note that there is a small window in which the directory will not be cleaned:
51432 # after its creation but before its name has been assigned to `$tmp'.
51433 $debug ||
51434 {
51435   tmp=
51436   trap 'exit_status=$?
51437   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51438 ' 0
51439   trap '{ (exit 1); exit 1; }' 1 2 13 15
51440 }
51441 # Create a (secure) tmp directory for tmp files.
51442
51443 {
51444   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51445   test -n "$tmp" && test -d "$tmp"
51446 }  ||
51447 {
51448   tmp=./conf$$-$RANDOM
51449   (umask 077 && mkdir "$tmp")
51450 } ||
51451 {
51452    echo "$me: cannot create a temporary directory in ." >&2
51453    { (exit 1); exit 1; }
51454 }
51455
51456 #
51457 # Set up the sed scripts for CONFIG_FILES section.
51458 #
51459
51460 # No need to generate the scripts if there are no CONFIG_FILES.
51461 # This happens for instance when ./config.status config.h
51462 if test -n "$CONFIG_FILES"; then
51463
51464 _ACEOF
51465
51466
51467
51468 ac_delim='%!_!# '
51469 for ac_last_try in false false false false false :; do
51470   cat >conf$$subs.sed <<_ACEOF
51471 SHELL!$SHELL$ac_delim
51472 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51473 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51474 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51475 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51476 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51477 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51478 exec_prefix!$exec_prefix$ac_delim
51479 prefix!$prefix$ac_delim
51480 program_transform_name!$program_transform_name$ac_delim
51481 bindir!$bindir$ac_delim
51482 sbindir!$sbindir$ac_delim
51483 libexecdir!$libexecdir$ac_delim
51484 datarootdir!$datarootdir$ac_delim
51485 datadir!$datadir$ac_delim
51486 sysconfdir!$sysconfdir$ac_delim
51487 sharedstatedir!$sharedstatedir$ac_delim
51488 localstatedir!$localstatedir$ac_delim
51489 includedir!$includedir$ac_delim
51490 oldincludedir!$oldincludedir$ac_delim
51491 docdir!$docdir$ac_delim
51492 infodir!$infodir$ac_delim
51493 htmldir!$htmldir$ac_delim
51494 dvidir!$dvidir$ac_delim
51495 pdfdir!$pdfdir$ac_delim
51496 psdir!$psdir$ac_delim
51497 libdir!$libdir$ac_delim
51498 localedir!$localedir$ac_delim
51499 mandir!$mandir$ac_delim
51500 DEFS!$DEFS$ac_delim
51501 ECHO_C!$ECHO_C$ac_delim
51502 ECHO_N!$ECHO_N$ac_delim
51503 ECHO_T!$ECHO_T$ac_delim
51504 LIBS!$LIBS$ac_delim
51505 build_alias!$build_alias$ac_delim
51506 host_alias!$host_alias$ac_delim
51507 target_alias!$target_alias$ac_delim
51508 build!$build$ac_delim
51509 build_cpu!$build_cpu$ac_delim
51510 build_vendor!$build_vendor$ac_delim
51511 build_os!$build_os$ac_delim
51512 host!$host$ac_delim
51513 host_cpu!$host_cpu$ac_delim
51514 host_vendor!$host_vendor$ac_delim
51515 host_os!$host_os$ac_delim
51516 target!$target$ac_delim
51517 target_cpu!$target_cpu$ac_delim
51518 target_vendor!$target_vendor$ac_delim
51519 target_os!$target_os$ac_delim
51520 wx_top_builddir!$wx_top_builddir$ac_delim
51521 CC!$CC$ac_delim
51522 CFLAGS!$CFLAGS$ac_delim
51523 LDFLAGS!$LDFLAGS$ac_delim
51524 CPPFLAGS!$CPPFLAGS$ac_delim
51525 ac_ct_CC!$ac_ct_CC$ac_delim
51526 EXEEXT!$EXEEXT$ac_delim
51527 OBJEXT!$OBJEXT$ac_delim
51528 CPP!$CPP$ac_delim
51529 GREP!$GREP$ac_delim
51530 EGREP!$EGREP$ac_delim
51531 CXX!$CXX$ac_delim
51532 CXXFLAGS!$CXXFLAGS$ac_delim
51533 ac_ct_CXX!$ac_ct_CXX$ac_delim
51534 AR!$AR$ac_delim
51535 subdirs!$subdirs$ac_delim
51536 PKG_CONFIG!$PKG_CONFIG$ac_delim
51537 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51538 GTK_LIBS!$GTK_LIBS$ac_delim
51539 GTK_CONFIG!$GTK_CONFIG$ac_delim
51540 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51541 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51542 XMKMF!$XMKMF$ac_delim
51543 X_CFLAGS!$X_CFLAGS$ac_delim
51544 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51545 X_LIBS!$X_LIBS$ac_delim
51546 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51547 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51548 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51549 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51550 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51551 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51552 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51553 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51554 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51555 LIBICONV!$LIBICONV$ac_delim
51556 SDL_CONFIG!$SDL_CONFIG$ac_delim
51557 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51558 SDL_LIBS!$SDL_LIBS$ac_delim
51559 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51560 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51561 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51562 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51563 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51564 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51565 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51566 HILDON_LIBS!$HILDON_LIBS$ac_delim
51567 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51568 _ACEOF
51569
51570   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51571     break
51572   elif $ac_last_try; then
51573     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51574 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51575    { (exit 1); exit 1; }; }
51576   else
51577     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51578   fi
51579 done
51580
51581 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51582 if test -n "$ac_eof"; then
51583   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51584   ac_eof=`expr $ac_eof + 1`
51585 fi
51586
51587 cat >>$CONFIG_STATUS <<_ACEOF
51588 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51590 _ACEOF
51591 sed '
51592 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51593 s/^/s,@/; s/!/@,|#_!!_#|/
51594 :n
51595 t n
51596 s/'"$ac_delim"'$/,g/; t
51597 s/$/\\/; p
51598 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51599 ' >>$CONFIG_STATUS <conf$$subs.sed
51600 rm -f conf$$subs.sed
51601 cat >>$CONFIG_STATUS <<_ACEOF
51602 CEOF$ac_eof
51603 _ACEOF
51604
51605
51606 ac_delim='%!_!# '
51607 for ac_last_try in false false false false false :; do
51608   cat >conf$$subs.sed <<_ACEOF
51609 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51610 GST_CFLAGS!$GST_CFLAGS$ac_delim
51611 GST_LIBS!$GST_LIBS$ac_delim
51612 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51613 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51614 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51615 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51616 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51617 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51618 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51619 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51620 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51621 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51622 VENDOR!$VENDOR$ac_delim
51623 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51624 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51625 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51626 WXUNIV!$WXUNIV$ac_delim
51627 MONOLITHIC!$MONOLITHIC$ac_delim
51628 USE_PLUGINS!$USE_PLUGINS$ac_delim
51629 CXXWARNINGS!$CXXWARNINGS$ac_delim
51630 EXTRALIBS!$EXTRALIBS$ac_delim
51631 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51632 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51633 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51634 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51635 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51636 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51637 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51638 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51639 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51640 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51641 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51642 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51643 UNICODE!$UNICODE$ac_delim
51644 BUILD!$BUILD$ac_delim
51645 DEBUG_INFO!$DEBUG_INFO$ac_delim
51646 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51647 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51648 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51649 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51650 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51651 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51652 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51653 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51654 RANLIB!$RANLIB$ac_delim
51655 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51656 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51657 INSTALL_DATA!$INSTALL_DATA$ac_delim
51658 LN_S!$LN_S$ac_delim
51659 SET_MAKE!$SET_MAKE$ac_delim
51660 MAKE_SET!$MAKE_SET$ac_delim
51661 AROPTIONS!$AROPTIONS$ac_delim
51662 STRIP!$STRIP$ac_delim
51663 NM!$NM$ac_delim
51664 INSTALL_DIR!$INSTALL_DIR$ac_delim
51665 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51666 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51667 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51668 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51669 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51670 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51671 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51672 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51673 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51674 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51675 SO_SUFFIX!$SO_SUFFIX$ac_delim
51676 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51677 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51678 LIBPREFIX!$LIBPREFIX$ac_delim
51679 LIBEXT!$LIBEXT$ac_delim
51680 DLLPREFIX!$DLLPREFIX$ac_delim
51681 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51682 dlldir!$dlldir$ac_delim
51683 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51684 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51685 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51686 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51687 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51688 PIC_FLAG!$PIC_FLAG$ac_delim
51689 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51690 USE_SOVERSION!$USE_SOVERSION$ac_delim
51691 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51692 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51693 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51694 USE_MACVERSION!$USE_MACVERSION$ac_delim
51695 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51696 SONAME_FLAG!$SONAME_FLAG$ac_delim
51697 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51698 BK_DEPS!$BK_DEPS$ac_delim
51699 WINDRES!$WINDRES$ac_delim
51700 REZ!$REZ$ac_delim
51701 SETFILE!$SETFILE$ac_delim
51702 GCC_PCH!$GCC_PCH$ac_delim
51703 ICC_PCH!$ICC_PCH$ac_delim
51704 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51705 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51706 _ACEOF
51707
51708   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51709     break
51710   elif $ac_last_try; then
51711     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51712 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51713    { (exit 1); exit 1; }; }
51714   else
51715     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51716   fi
51717 done
51718
51719 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51720 if test -n "$ac_eof"; then
51721   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51722   ac_eof=`expr $ac_eof + 1`
51723 fi
51724
51725 cat >>$CONFIG_STATUS <<_ACEOF
51726 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51728 _ACEOF
51729 sed '
51730 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51731 s/^/s,@/; s/!/@,|#_!!_#|/
51732 :n
51733 t n
51734 s/'"$ac_delim"'$/,g/; t
51735 s/$/\\/; p
51736 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51737 ' >>$CONFIG_STATUS <conf$$subs.sed
51738 rm -f conf$$subs.sed
51739 cat >>$CONFIG_STATUS <<_ACEOF
51740 CEOF$ac_eof
51741 _ACEOF
51742
51743
51744 ac_delim='%!_!# '
51745 for ac_last_try in false false false false false :; do
51746   cat >conf$$subs.sed <<_ACEOF
51747 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51748 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51749 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51750 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51751 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51752 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51753 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51754 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51755 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51756 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51757 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51758 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51759 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51760 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51761 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51762 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51763 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51764 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51765 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51766 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51767 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51768 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51769 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
51770 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51771 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51772 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51773 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51774 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51775 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51776 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51777 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51778 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51779 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
51780 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51781 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51782 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51783 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51784 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51785 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51786 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51787 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51788 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
51789 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51790 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51791 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51792 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51793 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51794 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51795 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51796 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51797 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51798 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51799 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51800 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51801 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
51802 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
51803 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
51804 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
51805 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
51806 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51807 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
51808 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51809 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51810 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51811 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51812 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51813 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51814 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51815 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51816 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51817 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51818 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51819 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51820 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51821 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51822 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51823 COND_SHARED_0!$COND_SHARED_0$ac_delim
51824 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51825 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51826 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51827 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51828 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51829 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51830 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51831 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51832 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
51833 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
51834 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
51835 COND_SHARED_1!$COND_SHARED_1$ac_delim
51836 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51837 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51838 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51839 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51840 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51841 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51842 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51843 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51844 _ACEOF
51845
51846   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51847     break
51848   elif $ac_last_try; then
51849     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51851    { (exit 1); exit 1; }; }
51852   else
51853     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51854   fi
51855 done
51856
51857 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51858 if test -n "$ac_eof"; then
51859   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51860   ac_eof=`expr $ac_eof + 1`
51861 fi
51862
51863 cat >>$CONFIG_STATUS <<_ACEOF
51864 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51866 _ACEOF
51867 sed '
51868 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51869 s/^/s,@/; s/!/@,|#_!!_#|/
51870 :n
51871 t n
51872 s/'"$ac_delim"'$/,g/; t
51873 s/$/\\/; p
51874 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51875 ' >>$CONFIG_STATUS <conf$$subs.sed
51876 rm -f conf$$subs.sed
51877 cat >>$CONFIG_STATUS <<_ACEOF
51878 CEOF$ac_eof
51879 _ACEOF
51880
51881
51882 ac_delim='%!_!# '
51883 for ac_last_try in false false false false false :; do
51884   cat >conf$$subs.sed <<_ACEOF
51885 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
51886 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
51887 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
51888 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
51889 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0$ac_delim
51890 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
51891 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
51892 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
51893 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
51894 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
51895 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
51896 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
51897 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
51898 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
51899 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
51900 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
51901 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
51902 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
51903 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
51904 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
51905 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
51906 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
51907 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
51908 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51909 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
51910 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
51911 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
51912 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
51913 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
51914 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
51915 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
51916 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
51917 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
51918 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
51919 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
51920 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
51921 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
51922 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
51923 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
51924 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
51925 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
51926 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
51927 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51928 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51929 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51930 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
51931 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
51932 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
51933 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
51934 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
51935 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
51936 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
51937 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
51938 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
51939 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
51940 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
51941 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
51942 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
51943 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
51944 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
51945 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
51946 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
51947 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
51948 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
51949 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
51950 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
51951 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
51952 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
51953 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
51954 DEREZ!$DEREZ$ac_delim
51955 SHARED!$SHARED$ac_delim
51956 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
51957 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
51958 USE_GUI!$USE_GUI$ac_delim
51959 AFMINSTALL!$AFMINSTALL$ac_delim
51960 WIN32INSTALL!$WIN32INSTALL$ac_delim
51961 TOOLKIT!$TOOLKIT$ac_delim
51962 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
51963 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
51964 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
51965 cross_compiling!$cross_compiling$ac_delim
51966 WIDGET_SET!$WIDGET_SET$ac_delim
51967 WX_RELEASE!$WX_RELEASE$ac_delim
51968 WX_VERSION!$WX_VERSION$ac_delim
51969 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
51970 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
51971 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
51972 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
51973 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
51974 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
51975 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
51976 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
51977 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
51978 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
51979 GUIDIST!$GUIDIST$ac_delim
51980 DISTDIR!$DISTDIR$ac_delim
51981 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
51982 _ACEOF
51983
51984   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51985     break
51986   elif $ac_last_try; then
51987     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51988 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51989    { (exit 1); exit 1; }; }
51990   else
51991     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51992   fi
51993 done
51994
51995 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51996 if test -n "$ac_eof"; then
51997   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51998   ac_eof=`expr $ac_eof + 1`
51999 fi
52000
52001 cat >>$CONFIG_STATUS <<_ACEOF
52002 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52004 _ACEOF
52005 sed '
52006 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52007 s/^/s,@/; s/!/@,|#_!!_#|/
52008 :n
52009 t n
52010 s/'"$ac_delim"'$/,g/; t
52011 s/$/\\/; p
52012 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52013 ' >>$CONFIG_STATUS <conf$$subs.sed
52014 rm -f conf$$subs.sed
52015 cat >>$CONFIG_STATUS <<_ACEOF
52016 CEOF$ac_eof
52017 _ACEOF
52018
52019
52020 ac_delim='%!_!# '
52021 for ac_last_try in false false false false false :; do
52022   cat >conf$$subs.sed <<_ACEOF
52023 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52024 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52025 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52026 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52027 RESCOMP!$RESCOMP$ac_delim
52028 RESFLAGS!$RESFLAGS$ac_delim
52029 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52030 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52031 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52032 LIBWXMACRES!$LIBWXMACRES$ac_delim
52033 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52034 MACSETFILE!$MACSETFILE$ac_delim
52035 GCC!$GCC$ac_delim
52036 DLLTOOL!$DLLTOOL$ac_delim
52037 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52038 LIBOBJS!$LIBOBJS$ac_delim
52039 LTLIBOBJS!$LTLIBOBJS$ac_delim
52040 _ACEOF
52041
52042   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
52043     break
52044   elif $ac_last_try; then
52045     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52046 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52047    { (exit 1); exit 1; }; }
52048   else
52049     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52050   fi
52051 done
52052
52053 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52054 if test -n "$ac_eof"; then
52055   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52056   ac_eof=`expr $ac_eof + 1`
52057 fi
52058
52059 cat >>$CONFIG_STATUS <<_ACEOF
52060 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52062 _ACEOF
52063 sed '
52064 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52065 s/^/s,@/; s/!/@,|#_!!_#|/
52066 :n
52067 t n
52068 s/'"$ac_delim"'$/,g/; t
52069 s/$/\\/; p
52070 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52071 ' >>$CONFIG_STATUS <conf$$subs.sed
52072 rm -f conf$$subs.sed
52073 cat >>$CONFIG_STATUS <<_ACEOF
52074 :end
52075 s/|#_!!_#|//g
52076 CEOF$ac_eof
52077 _ACEOF
52078
52079
52080 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52081 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52082 # trailing colons and then remove the whole line if VPATH becomes empty
52083 # (actually we leave an empty line to preserve line numbers).
52084 if test "x$srcdir" = x.; then
52085   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52086 s/:*\$(srcdir):*/:/
52087 s/:*\${srcdir}:*/:/
52088 s/:*@srcdir@:*/:/
52089 s/^\([^=]*=[     ]*\):*/\1/
52090 s/:*$//
52091 s/^[^=]*=[       ]*$//
52092 }'
52093 fi
52094
52095 cat >>$CONFIG_STATUS <<\_ACEOF
52096 fi # test -n "$CONFIG_FILES"
52097
52098
52099 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52100 do
52101   case $ac_tag in
52102   :[FHLC]) ac_mode=$ac_tag; continue;;
52103   esac
52104   case $ac_mode$ac_tag in
52105   :[FHL]*:*);;
52106   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52107 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52108    { (exit 1); exit 1; }; };;
52109   :[FH]-) ac_tag=-:-;;
52110   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52111   esac
52112   ac_save_IFS=$IFS
52113   IFS=:
52114   set x $ac_tag
52115   IFS=$ac_save_IFS
52116   shift
52117   ac_file=$1
52118   shift
52119
52120   case $ac_mode in
52121   :L) ac_source=$1;;
52122   :[FH])
52123     ac_file_inputs=
52124     for ac_f
52125     do
52126       case $ac_f in
52127       -) ac_f="$tmp/stdin";;
52128       *) # Look for the file first in the build tree, then in the source tree
52129          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52130          # because $ac_f cannot contain `:'.
52131          test -f "$ac_f" ||
52132            case $ac_f in
52133            [\\/$]*) false;;
52134            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52135            esac ||
52136            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52137 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52138    { (exit 1); exit 1; }; };;
52139       esac
52140       ac_file_inputs="$ac_file_inputs $ac_f"
52141     done
52142
52143     # Let's still pretend it is `configure' which instantiates (i.e., don't
52144     # use $as_me), people would be surprised to read:
52145     #    /* config.h.  Generated by config.status.  */
52146     configure_input="Generated from "`IFS=:
52147           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52148     if test x"$ac_file" != x-; then
52149       configure_input="$ac_file.  $configure_input"
52150       { echo "$as_me:$LINENO: creating $ac_file" >&5
52151 echo "$as_me: creating $ac_file" >&6;}
52152     fi
52153
52154     case $ac_tag in
52155     *:-:* | *:-) cat >"$tmp/stdin";;
52156     esac
52157     ;;
52158   esac
52159
52160   ac_dir=`$as_dirname -- "$ac_file" ||
52161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52162          X"$ac_file" : 'X\(//\)[^/]' \| \
52163          X"$ac_file" : 'X\(//\)$' \| \
52164          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52165 echo X"$ac_file" |
52166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52167             s//\1/
52168             q
52169           }
52170           /^X\(\/\/\)[^/].*/{
52171             s//\1/
52172             q
52173           }
52174           /^X\(\/\/\)$/{
52175             s//\1/
52176             q
52177           }
52178           /^X\(\/\).*/{
52179             s//\1/
52180             q
52181           }
52182           s/.*/./; q'`
52183   { as_dir="$ac_dir"
52184   case $as_dir in #(
52185   -*) as_dir=./$as_dir;;
52186   esac
52187   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52188     as_dirs=
52189     while :; do
52190       case $as_dir in #(
52191       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52192       *) as_qdir=$as_dir;;
52193       esac
52194       as_dirs="'$as_qdir' $as_dirs"
52195       as_dir=`$as_dirname -- "$as_dir" ||
52196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52197          X"$as_dir" : 'X\(//\)[^/]' \| \
52198          X"$as_dir" : 'X\(//\)$' \| \
52199          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52200 echo X"$as_dir" |
52201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52202             s//\1/
52203             q
52204           }
52205           /^X\(\/\/\)[^/].*/{
52206             s//\1/
52207             q
52208           }
52209           /^X\(\/\/\)$/{
52210             s//\1/
52211             q
52212           }
52213           /^X\(\/\).*/{
52214             s//\1/
52215             q
52216           }
52217           s/.*/./; q'`
52218       test -d "$as_dir" && break
52219     done
52220     test -z "$as_dirs" || eval "mkdir $as_dirs"
52221   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52222 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52223    { (exit 1); exit 1; }; }; }
52224   ac_builddir=.
52225
52226 case "$ac_dir" in
52227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52228 *)
52229   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52230   # A ".." for each directory in $ac_dir_suffix.
52231   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52232   case $ac_top_builddir_sub in
52233   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52234   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52235   esac ;;
52236 esac
52237 ac_abs_top_builddir=$ac_pwd
52238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52239 # for backward compatibility:
52240 ac_top_builddir=$ac_top_build_prefix
52241
52242 case $srcdir in
52243   .)  # We are building in place.
52244     ac_srcdir=.
52245     ac_top_srcdir=$ac_top_builddir_sub
52246     ac_abs_top_srcdir=$ac_pwd ;;
52247   [\\/]* | ?:[\\/]* )  # Absolute name.
52248     ac_srcdir=$srcdir$ac_dir_suffix;
52249     ac_top_srcdir=$srcdir
52250     ac_abs_top_srcdir=$srcdir ;;
52251   *) # Relative name.
52252     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52253     ac_top_srcdir=$ac_top_build_prefix$srcdir
52254     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52255 esac
52256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52257
52258
52259   case $ac_mode in
52260   :F)
52261   #
52262   # CONFIG_FILE
52263   #
52264
52265   case $INSTALL in
52266   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52267   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52268   esac
52269 _ACEOF
52270
52271 cat >>$CONFIG_STATUS <<\_ACEOF
52272 # If the template does not know about datarootdir, expand it.
52273 # FIXME: This hack should be removed a few years after 2.60.
52274 ac_datarootdir_hack=; ac_datarootdir_seen=
52275
52276 case `sed -n '/datarootdir/ {
52277   p
52278   q
52279 }
52280 /@datadir@/p
52281 /@docdir@/p
52282 /@infodir@/p
52283 /@localedir@/p
52284 /@mandir@/p
52285 ' $ac_file_inputs` in
52286 *datarootdir*) ac_datarootdir_seen=yes;;
52287 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52288   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52289 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52290 _ACEOF
52291 cat >>$CONFIG_STATUS <<_ACEOF
52292   ac_datarootdir_hack='
52293   s&@datadir@&$datadir&g
52294   s&@docdir@&$docdir&g
52295   s&@infodir@&$infodir&g
52296   s&@localedir@&$localedir&g
52297   s&@mandir@&$mandir&g
52298     s&\\\${datarootdir}&$datarootdir&g' ;;
52299 esac
52300 _ACEOF
52301
52302 # Neutralize VPATH when `$srcdir' = `.'.
52303 # Shell code in configure.ac might set extrasub.
52304 # FIXME: do we really want to maintain this feature?
52305 cat >>$CONFIG_STATUS <<_ACEOF
52306   sed "$ac_vpsub
52307 $extrasub
52308 _ACEOF
52309 cat >>$CONFIG_STATUS <<\_ACEOF
52310 :t
52311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52312 s&@configure_input@&$configure_input&;t t
52313 s&@top_builddir@&$ac_top_builddir_sub&;t t
52314 s&@srcdir@&$ac_srcdir&;t t
52315 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52316 s&@top_srcdir@&$ac_top_srcdir&;t t
52317 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52318 s&@builddir@&$ac_builddir&;t t
52319 s&@abs_builddir@&$ac_abs_builddir&;t t
52320 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52321 s&@INSTALL@&$ac_INSTALL&;t t
52322 $ac_datarootdir_hack
52323 " $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
52324
52325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52326   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52327   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52328   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52329 which seems to be undefined.  Please make sure it is defined." >&5
52330 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52331 which seems to be undefined.  Please make sure it is defined." >&2;}
52332
52333   rm -f "$tmp/stdin"
52334   case $ac_file in
52335   -) cat "$tmp/out"; rm -f "$tmp/out";;
52336   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52337   esac
52338  ;;
52339   :H)
52340   #
52341   # CONFIG_HEADER
52342   #
52343 _ACEOF
52344
52345 # Transform confdefs.h into a sed script `conftest.defines', that
52346 # substitutes the proper values into config.h.in to produce config.h.
52347 rm -f conftest.defines conftest.tail
52348 # First, append a space to every undef/define line, to ease matching.
52349 echo 's/$/ /' >conftest.defines
52350 # Then, protect against being on the right side of a sed subst, or in
52351 # an unquoted here document, in config.status.  If some macros were
52352 # called several times there might be several #defines for the same
52353 # symbol, which is useless.  But do not sort them, since the last
52354 # AC_DEFINE must be honored.
52355 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52356 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52357 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52358 # PARAMS is the parameter list in the macro definition--in most cases, it's
52359 # just an empty string.
52360 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52361 ac_dB='\\)[      (].*,\\1define\\2'
52362 ac_dC=' '
52363 ac_dD=' ,'
52364
52365 uniq confdefs.h |
52366   sed -n '
52367         t rset
52368         :rset
52369         s/^[     ]*#[    ]*define[       ][      ]*//
52370         t ok
52371         d
52372         :ok
52373         s/[\\&,]/\\&/g
52374         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52375         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52376   ' >>conftest.defines
52377
52378 # Remove the space that was appended to ease matching.
52379 # Then replace #undef with comments.  This is necessary, for
52380 # example, in the case of _POSIX_SOURCE, which is predefined and required
52381 # on some systems where configure will not decide to define it.
52382 # (The regexp can be short, since the line contains either #define or #undef.)
52383 echo 's/ $//
52384 s,^[     #]*u.*,/* & */,' >>conftest.defines
52385
52386 # Break up conftest.defines:
52387 ac_max_sed_lines=50
52388
52389 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52390 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52391 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52392 # et cetera.
52393 ac_in='$ac_file_inputs'
52394 ac_out='"$tmp/out1"'
52395 ac_nxt='"$tmp/out2"'
52396
52397 while :
52398 do
52399   # Write a here document:
52400     cat >>$CONFIG_STATUS <<_ACEOF
52401     # First, check the format of the line:
52402     cat >"\$tmp/defines.sed" <<\\CEOF
52403 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52404 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52405 b
52406 :def
52407 _ACEOF
52408   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52409   echo 'CEOF
52410     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52411   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52412   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52413   grep . conftest.tail >/dev/null || break
52414   rm -f conftest.defines
52415   mv conftest.tail conftest.defines
52416 done
52417 rm -f conftest.defines conftest.tail
52418
52419 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52420 cat >>$CONFIG_STATUS <<\_ACEOF
52421   if test x"$ac_file" != x-; then
52422     echo "/* $configure_input  */" >"$tmp/config.h"
52423     cat "$ac_result" >>"$tmp/config.h"
52424     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52425       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52426 echo "$as_me: $ac_file is unchanged" >&6;}
52427     else
52428       rm -f $ac_file
52429       mv "$tmp/config.h" $ac_file
52430     fi
52431   else
52432     echo "/* $configure_input  */"
52433     cat "$ac_result"
52434   fi
52435   rm -f "$tmp/out12"
52436  ;;
52437
52438   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52439 echo "$as_me: executing $ac_file commands" >&6;}
52440  ;;
52441   esac
52442
52443
52444   case $ac_file$ac_mode in
52445     "rcdefs.h":C)
52446             mkdir -p $outdir &&
52447             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52448          ;;
52449     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52450     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52451     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52452     "wx-config":C)  rm -f wx-config
52453                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52454                     ;;
52455
52456   esac
52457 done # for ac_tag
52458
52459
52460 { (exit 0); exit 0; }
52461 _ACEOF
52462 chmod +x $CONFIG_STATUS
52463 ac_clean_files=$ac_clean_files_save
52464
52465
52466 # configure is writing to config.log, and then calls config.status.
52467 # config.status does its own redirection, appending to config.log.
52468 # Unfortunately, on DOS this fails, as config.log is still kept open
52469 # by configure, so config.status won't be able to write to it; its
52470 # output is simply discarded.  So we exec the FD to /dev/null,
52471 # effectively closing config.log, so it can be properly (re)opened and
52472 # appended to by config.status.  When coming back to configure, we
52473 # need to make the FD available again.
52474 if test "$no_create" != yes; then
52475   ac_cs_success=:
52476   ac_config_status_args=
52477   test "$silent" = yes &&
52478     ac_config_status_args="$ac_config_status_args --quiet"
52479   exec 5>/dev/null
52480   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52481   exec 5>>config.log
52482   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52483   # would make configure fail if this is the last instruction.
52484   $ac_cs_success || { (exit 1); exit 1; }
52485 fi
52486
52487 #
52488 # CONFIG_SUBDIRS section.
52489 #
52490 if test "$no_recursion" != yes; then
52491
52492   # Remove --cache-file and --srcdir arguments so they do not pile up.
52493   ac_sub_configure_args=
52494   ac_prev=
52495   eval "set x $ac_configure_args"
52496   shift
52497   for ac_arg
52498   do
52499     if test -n "$ac_prev"; then
52500       ac_prev=
52501       continue
52502     fi
52503     case $ac_arg in
52504     -cache-file | --cache-file | --cache-fil | --cache-fi \
52505     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52506       ac_prev=cache_file ;;
52507     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52508     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52509     | --c=*)
52510       ;;
52511     --config-cache | -C)
52512       ;;
52513     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52514       ac_prev=srcdir ;;
52515     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52516       ;;
52517     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52518       ac_prev=prefix ;;
52519     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52520       ;;
52521     *)
52522       case $ac_arg in
52523       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52524       esac
52525       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52526     esac
52527   done
52528
52529   # Always prepend --prefix to ensure using the same prefix
52530   # in subdir configurations.
52531   ac_arg="--prefix=$prefix"
52532   case $ac_arg in
52533   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52534   esac
52535   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52536
52537   # Pass --silent
52538   if test "$silent" = yes; then
52539     ac_sub_configure_args="--silent $ac_sub_configure_args"
52540   fi
52541
52542   ac_popdir=`pwd`
52543   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52544
52545     # Do not complain, so a configure script can configure whichever
52546     # parts of a large source tree are present.
52547     test -d "$srcdir/$ac_dir" || continue
52548
52549     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52550     echo "$as_me:$LINENO: $ac_msg" >&5
52551     echo "$ac_msg" >&6
52552     { as_dir="$ac_dir"
52553   case $as_dir in #(
52554   -*) as_dir=./$as_dir;;
52555   esac
52556   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52557     as_dirs=
52558     while :; do
52559       case $as_dir in #(
52560       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52561       *) as_qdir=$as_dir;;
52562       esac
52563       as_dirs="'$as_qdir' $as_dirs"
52564       as_dir=`$as_dirname -- "$as_dir" ||
52565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52566          X"$as_dir" : 'X\(//\)[^/]' \| \
52567          X"$as_dir" : 'X\(//\)$' \| \
52568          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52569 echo X"$as_dir" |
52570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52571             s//\1/
52572             q
52573           }
52574           /^X\(\/\/\)[^/].*/{
52575             s//\1/
52576             q
52577           }
52578           /^X\(\/\/\)$/{
52579             s//\1/
52580             q
52581           }
52582           /^X\(\/\).*/{
52583             s//\1/
52584             q
52585           }
52586           s/.*/./; q'`
52587       test -d "$as_dir" && break
52588     done
52589     test -z "$as_dirs" || eval "mkdir $as_dirs"
52590   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52591 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52592    { (exit 1); exit 1; }; }; }
52593     ac_builddir=.
52594
52595 case "$ac_dir" in
52596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52597 *)
52598   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52599   # A ".." for each directory in $ac_dir_suffix.
52600   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52601   case $ac_top_builddir_sub in
52602   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52603   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52604   esac ;;
52605 esac
52606 ac_abs_top_builddir=$ac_pwd
52607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52608 # for backward compatibility:
52609 ac_top_builddir=$ac_top_build_prefix
52610
52611 case $srcdir in
52612   .)  # We are building in place.
52613     ac_srcdir=.
52614     ac_top_srcdir=$ac_top_builddir_sub
52615     ac_abs_top_srcdir=$ac_pwd ;;
52616   [\\/]* | ?:[\\/]* )  # Absolute name.
52617     ac_srcdir=$srcdir$ac_dir_suffix;
52618     ac_top_srcdir=$srcdir
52619     ac_abs_top_srcdir=$srcdir ;;
52620   *) # Relative name.
52621     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52622     ac_top_srcdir=$ac_top_build_prefix$srcdir
52623     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52624 esac
52625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52626
52627
52628     cd "$ac_dir"
52629
52630     # Check for guested configure; otherwise get Cygnus style configure.
52631     if test -f "$ac_srcdir/configure.gnu"; then
52632       ac_sub_configure=$ac_srcdir/configure.gnu
52633     elif test -f "$ac_srcdir/configure"; then
52634       ac_sub_configure=$ac_srcdir/configure
52635     elif test -f "$ac_srcdir/configure.in"; then
52636       # This should be Cygnus configure.
52637       ac_sub_configure=$ac_aux_dir/configure
52638     else
52639       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52641       ac_sub_configure=
52642     fi
52643
52644     # The recursion is here.
52645     if test -n "$ac_sub_configure"; then
52646       # Make the cache file name correct relative to the subdirectory.
52647       case $cache_file in
52648       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52649       *) # Relative name.
52650         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52651       esac
52652
52653       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52654 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52655       # The eval makes quoting arguments work.
52656       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52657            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52658         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52659 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52660    { (exit 1); exit 1; }; }
52661     fi
52662
52663     cd "$ac_popdir"
52664   done
52665 fi
52666
52667
52668 echo
52669 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52670 echo ""
52671 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52672 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52673
52674 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52675 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52676 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52677 if test "$wxUSE_UNICODE" = "yes"; then
52678     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52679         echo " (using UTF-8)"
52680     else
52681         echo " (using wchar_t)"
52682     fi
52683 else
52684     echo
52685 fi
52686
52687 echo "  What level of wxWidgets compatibility should be enabled?"
52688 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52689 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52690
52691 echo "  Which libraries should wxWidgets use?"
52692 echo "                                       STL                ${wxUSE_STL}"
52693 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52694 echo "                                       png                ${wxUSE_LIBPNG-none}"
52695 echo "                                       regex              ${wxUSE_REGEX}"
52696 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52697 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52698 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52699 fi
52700 echo "                                       zlib               ${wxUSE_ZLIB}"
52701 echo "                                       expat              ${wxUSE_EXPAT}"
52702 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52703 echo "                                       sdl                ${wxUSE_LIBSDL}"
52704
52705 echo ""
52706