don't disable optimize if --enable-debug_info was specified, this makes it impossible...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 54853 2008-07-30 15:48:24Z SC .
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_RICHTEXT_1
836 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
837 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
838 COND_MONOLITHIC_0_SHARED_1
839 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
845 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
846 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
847 COND_MONOLITHIC_0_USE_AUI_1
848 COND_MONOLITHIC_0_USE_GUI_1
849 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
850 COND_MONOLITHIC_0_USE_HTML_1
851 COND_MONOLITHIC_0_USE_MEDIA_1
852 COND_MONOLITHIC_0_USE_QA_1
853 COND_MONOLITHIC_0_USE_RICHTEXT_1
854 COND_MONOLITHIC_0_USE_STC_1
855 COND_MONOLITHIC_0_USE_XRC_1
856 COND_MONOLITHIC_1
857 COND_MONOLITHIC_1_SHARED_0
858 COND_MONOLITHIC_1_SHARED_1
859 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
860 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
861 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
862 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
863 COND_PLATFORM_MACOSX_1
864 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
865 COND_PLATFORM_MACOSX_1_TOOLKIT_
866 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
867 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
868 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
869 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
870 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
871 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
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_MAC_USE_GUI_1
920 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_MGL
922 COND_TOOLKIT_MGL_USE_GUI_1
923 COND_TOOLKIT_MOTIF
924 COND_TOOLKIT_MOTIF_USE_GUI_1
925 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_MSW
927 COND_TOOLKIT_MSW_USE_GUI_1
928 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_MSW_WXUNIV_0
930 COND_TOOLKIT_PM
931 COND_TOOLKIT_PM_USE_GUI_1
932 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_WINCE
934 COND_TOOLKIT_WINCE_USE_GUI_1
935 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_WINCE_WXUNIV_0
937 COND_TOOLKIT_X11
938 COND_TOOLKIT_X11_USE_GUI_1
939 COND_UNICODE_1
940 COND_USE_EXCEPTIONS_0
941 COND_USE_EXCEPTIONS_1
942 COND_USE_GUI_0
943 COND_USE_GUI_1
944 COND_USE_GUI_1_USE_OPENGL_1
945 COND_USE_GUI_1_WXUNIV_0
946 COND_USE_GUI_1_WXUNIV_1
947 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
948 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
949 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
950 COND_USE_OPENGL_1
951 COND_USE_PCH_1
952 COND_USE_PLUGINS_0
953 COND_USE_RTTI_0
954 COND_USE_RTTI_1
955 COND_USE_SOSYMLINKS_1
956 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
957 COND_USE_SOVERLINUX_1
958 COND_USE_SOVERSION_0
959 COND_USE_SOVERSOLARIS_1
960 COND_USE_STC_1
961 COND_USE_THREADS_0
962 COND_USE_THREADS_1
963 COND_USE_XRC_1
964 COND_WINDOWS_IMPLIB_1
965 COND_WITH_PLUGIN_SDL_1
966 COND_WXUNIV_0
967 COND_WXUNIV_1
968 COND_WXUSE_EXPAT_BUILTIN
969 COND_WXUSE_LIBJPEG_BUILTIN
970 COND_WXUSE_LIBPNG_BUILTIN
971 COND_WXUSE_LIBTIFF_BUILTIN
972 COND_WXUSE_REGEX_BUILTIN
973 COND_WXUSE_ZLIB_BUILTIN
974 DEREZ
975 SHARED
976 WX_LIBRARY_BASENAME_NOGUI
977 WX_LIBRARY_BASENAME_GUI
978 USE_GUI
979 AFMINSTALL
980 WIN32INSTALL
981 TOOLKIT
982 TOOLKIT_DIR
983 TOOLCHAIN_NAME
984 TOOLCHAIN_FULLNAME
985 cross_compiling
986 WIDGET_SET
987 WX_RELEASE
988 WX_VERSION
989 WX_SUBVERSION
990 WX_CHARTYPE
991 WX_DEBUGTYPE
992 WXCONFIG_CPPFLAGS
993 WXCONFIG_CFLAGS
994 WXCONFIG_CXXFLAGS
995 WXCONFIG_LIBS
996 WXCONFIG_RPATH
997 WXCONFIG_LDFLAGS_GUI
998 WXCONFIG_RESFLAGS
999 GUIDIST
1000 DISTDIR
1001 SAMPLES_SUBDIRS
1002 LDFLAGS_GL
1003 OPENGL_LIBS
1004 DMALLOC_LIBS
1005 WX_VERSION_TAG
1006 RESCOMP
1007 RESFLAGS
1008 RESPROGRAMOBJ
1009 WX_RESOURCES_MACOSX_ASCII
1010 WX_RESOURCES_MACOSX_DATA
1011 LIBWXMACRES
1012 POSTLINK_COMMAND
1013 MACSETFILE
1014 GCC
1015 DLLTOOL
1016 CPPUNIT_CONFIG
1017 LIBOBJS
1018 LTLIBOBJS'
1019 ac_subst_files=''
1020       ac_precious_vars='build_alias
1021 host_alias
1022 target_alias
1023 CC
1024 CFLAGS
1025 LDFLAGS
1026 LIBS
1027 CPPFLAGS
1028 CPP
1029 CXX
1030 CXXFLAGS
1031 CCC
1032 PKG_CONFIG
1033 DIRECTFB_CFLAGS
1034 DIRECTFB_LIBS
1035 XMKMF
1036 PANGOX_CFLAGS
1037 PANGOX_LIBS
1038 PANGOFT2_CFLAGS
1039 PANGOFT2_LIBS
1040 PANGOXFT_CFLAGS
1041 PANGOXFT_LIBS
1042 GTKPRINT_CFLAGS
1043 GTKPRINT_LIBS
1044 LIBGNOMEPRINTUI_CFLAGS
1045 LIBGNOMEPRINTUI_LIBS
1046 GNOMEVFS_CFLAGS
1047 GNOMEVFS_LIBS
1048 HILDON_CFLAGS
1049 HILDON_LIBS
1050 CAIRO_CFLAGS
1051 CAIRO_LIBS
1052 GST_CFLAGS
1053 GST_LIBS'
1054 ac_subdirs_all='src/tiff
1055 src/expat'
1056
1057 # Initialize some variables set by options.
1058 ac_init_help=
1059 ac_init_version=false
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1076
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1102
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1106 do
1107   # If the previous option needs an argument, assign it.
1108   if test -n "$ac_prev"; then
1109     eval $ac_prev=\$ac_option
1110     ac_prev=
1111     continue
1112   fi
1113
1114   case $ac_option in
1115   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116   *)    ac_optarg=yes ;;
1117   esac
1118
1119   # Accept the important Cygnus configure options, so we can diagnose typos.
1120
1121   case $ac_dashdash$ac_option in
1122   --)
1123     ac_dashdash=yes ;;
1124
1125   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1126     ac_prev=bindir ;;
1127   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1128     bindir=$ac_optarg ;;
1129
1130   -build | --build | --buil | --bui | --bu)
1131     ac_prev=build_alias ;;
1132   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1133     build_alias=$ac_optarg ;;
1134
1135   -cache-file | --cache-file | --cache-fil | --cache-fi \
1136   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1137     ac_prev=cache_file ;;
1138   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1139   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1140     cache_file=$ac_optarg ;;
1141
1142   --config-cache | -C)
1143     cache_file=config.cache ;;
1144
1145   -datadir | --datadir | --datadi | --datad)
1146     ac_prev=datadir ;;
1147   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1148     datadir=$ac_optarg ;;
1149
1150   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1151   | --dataroo | --dataro | --datar)
1152     ac_prev=datarootdir ;;
1153   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1154   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1155     datarootdir=$ac_optarg ;;
1156
1157   -disable-* | --disable-*)
1158     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1164     eval enable_$ac_feature=no ;;
1165
1166   -docdir | --docdir | --docdi | --doc | --do)
1167     ac_prev=docdir ;;
1168   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1169     docdir=$ac_optarg ;;
1170
1171   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1172     ac_prev=dvidir ;;
1173   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1174     dvidir=$ac_optarg ;;
1175
1176   -enable-* | --enable-*)
1177     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181    { (exit 1); exit 1; }; }
1182     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1183     eval enable_$ac_feature=\$ac_optarg ;;
1184
1185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187   | --exec | --exe | --ex)
1188     ac_prev=exec_prefix ;;
1189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191   | --exec=* | --exe=* | --ex=*)
1192     exec_prefix=$ac_optarg ;;
1193
1194   -gas | --gas | --ga | --g)
1195     # Obsolete; use --with-gas.
1196     with_gas=yes ;;
1197
1198   -help | --help | --hel | --he | -h)
1199     ac_init_help=long ;;
1200   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201     ac_init_help=recursive ;;
1202   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203     ac_init_help=short ;;
1204
1205   -host | --host | --hos | --ho)
1206     ac_prev=host_alias ;;
1207   -host=* | --host=* | --hos=* | --ho=*)
1208     host_alias=$ac_optarg ;;
1209
1210   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211     ac_prev=htmldir ;;
1212   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213   | --ht=*)
1214     htmldir=$ac_optarg ;;
1215
1216   -includedir | --includedir | --includedi | --included | --include \
1217   | --includ | --inclu | --incl | --inc)
1218     ac_prev=includedir ;;
1219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220   | --includ=* | --inclu=* | --incl=* | --inc=*)
1221     includedir=$ac_optarg ;;
1222
1223   -infodir | --infodir | --infodi | --infod | --info | --inf)
1224     ac_prev=infodir ;;
1225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226     infodir=$ac_optarg ;;
1227
1228   -libdir | --libdir | --libdi | --libd)
1229     ac_prev=libdir ;;
1230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231     libdir=$ac_optarg ;;
1232
1233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234   | --libexe | --libex | --libe)
1235     ac_prev=libexecdir ;;
1236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237   | --libexe=* | --libex=* | --libe=*)
1238     libexecdir=$ac_optarg ;;
1239
1240   -localedir | --localedir | --localedi | --localed | --locale)
1241     ac_prev=localedir ;;
1242   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243     localedir=$ac_optarg ;;
1244
1245   -localstatedir | --localstatedir | --localstatedi | --localstated \
1246   | --localstate | --localstat | --localsta | --localst | --locals)
1247     ac_prev=localstatedir ;;
1248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250     localstatedir=$ac_optarg ;;
1251
1252   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253     ac_prev=mandir ;;
1254   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255     mandir=$ac_optarg ;;
1256
1257   -nfp | --nfp | --nf)
1258     # Obsolete; use --without-fp.
1259     with_fp=no ;;
1260
1261   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262   | --no-cr | --no-c | -n)
1263     no_create=yes ;;
1264
1265   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267     no_recursion=yes ;;
1268
1269   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271   | --oldin | --oldi | --old | --ol | --o)
1272     ac_prev=oldincludedir ;;
1273   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276     oldincludedir=$ac_optarg ;;
1277
1278   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279     ac_prev=prefix ;;
1280   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281     prefix=$ac_optarg ;;
1282
1283   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284   | --program-pre | --program-pr | --program-p)
1285     ac_prev=program_prefix ;;
1286   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288     program_prefix=$ac_optarg ;;
1289
1290   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291   | --program-suf | --program-su | --program-s)
1292     ac_prev=program_suffix ;;
1293   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295     program_suffix=$ac_optarg ;;
1296
1297   -program-transform-name | --program-transform-name \
1298   | --program-transform-nam | --program-transform-na \
1299   | --program-transform-n | --program-transform- \
1300   | --program-transform | --program-transfor \
1301   | --program-transfo | --program-transf \
1302   | --program-trans | --program-tran \
1303   | --progr-tra | --program-tr | --program-t)
1304     ac_prev=program_transform_name ;;
1305   -program-transform-name=* | --program-transform-name=* \
1306   | --program-transform-nam=* | --program-transform-na=* \
1307   | --program-transform-n=* | --program-transform-=* \
1308   | --program-transform=* | --program-transfor=* \
1309   | --program-transfo=* | --program-transf=* \
1310   | --program-trans=* | --program-tran=* \
1311   | --progr-tra=* | --program-tr=* | --program-t=*)
1312     program_transform_name=$ac_optarg ;;
1313
1314   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315     ac_prev=pdfdir ;;
1316   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317     pdfdir=$ac_optarg ;;
1318
1319   -psdir | --psdir | --psdi | --psd | --ps)
1320     ac_prev=psdir ;;
1321   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322     psdir=$ac_optarg ;;
1323
1324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325   | -silent | --silent | --silen | --sile | --sil)
1326     silent=yes ;;
1327
1328   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329     ac_prev=sbindir ;;
1330   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331   | --sbi=* | --sb=*)
1332     sbindir=$ac_optarg ;;
1333
1334   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336   | --sharedst | --shareds | --shared | --share | --shar \
1337   | --sha | --sh)
1338     ac_prev=sharedstatedir ;;
1339   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342   | --sha=* | --sh=*)
1343     sharedstatedir=$ac_optarg ;;
1344
1345   -site | --site | --sit)
1346     ac_prev=site ;;
1347   -site=* | --site=* | --sit=*)
1348     site=$ac_optarg ;;
1349
1350   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351     ac_prev=srcdir ;;
1352   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353     srcdir=$ac_optarg ;;
1354
1355   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356   | --syscon | --sysco | --sysc | --sys | --sy)
1357     ac_prev=sysconfdir ;;
1358   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360     sysconfdir=$ac_optarg ;;
1361
1362   -target | --target | --targe | --targ | --tar | --ta | --t)
1363     ac_prev=target_alias ;;
1364   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365     target_alias=$ac_optarg ;;
1366
1367   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368     verbose=yes ;;
1369
1370   -version | --version | --versio | --versi | --vers | -V)
1371     ac_init_version=: ;;
1372
1373   -with-* | --with-*)
1374     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377       { echo "$as_me: error: invalid package name: $ac_package" >&2
1378    { (exit 1); exit 1; }; }
1379     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1380     eval with_$ac_package=\$ac_optarg ;;
1381
1382   -without-* | --without-*)
1383     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1384     # Reject names that are not valid shell variable names.
1385     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386       { echo "$as_me: error: invalid package name: $ac_package" >&2
1387    { (exit 1); exit 1; }; }
1388     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1389     eval with_$ac_package=no ;;
1390
1391   --x)
1392     # Obsolete; use --with-x.
1393     with_x=yes ;;
1394
1395   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1396   | --x-incl | --x-inc | --x-in | --x-i)
1397     ac_prev=x_includes ;;
1398   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1399   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1400     x_includes=$ac_optarg ;;
1401
1402   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1403   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1404     ac_prev=x_libraries ;;
1405   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1406   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1407     x_libraries=$ac_optarg ;;
1408
1409   -*) { echo "$as_me: error: unrecognized option: $ac_option
1410 Try \`$0 --help' for more information." >&2
1411    { (exit 1); exit 1; }; }
1412     ;;
1413
1414   *=*)
1415     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1416     # Reject names that are not valid shell variable names.
1417     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1418       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1419    { (exit 1); exit 1; }; }
1420     eval $ac_envvar=\$ac_optarg
1421     export $ac_envvar ;;
1422
1423   *)
1424     # FIXME: should be removed in autoconf 3.0.
1425     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1426     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1427       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1428     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1429     ;;
1430
1431   esac
1432 done
1433
1434 if test -n "$ac_prev"; then
1435   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1436   { echo "$as_me: error: missing argument to $ac_option" >&2
1437    { (exit 1); exit 1; }; }
1438 fi
1439
1440 # Be sure to have absolute directory names.
1441 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1442                 datadir sysconfdir sharedstatedir localstatedir includedir \
1443                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1444                 libdir localedir mandir
1445 do
1446   eval ac_val=\$$ac_var
1447   case $ac_val in
1448     [\\/$]* | ?:[\\/]* )  continue;;
1449     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450   esac
1451   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1452    { (exit 1); exit 1; }; }
1453 done
1454
1455 # There might be people who depend on the old broken behavior: `$host'
1456 # used to hold the argument of --host etc.
1457 # FIXME: To remove some day.
1458 build=$build_alias
1459 host=$host_alias
1460 target=$target_alias
1461
1462 # FIXME: To remove some day.
1463 if test "x$host_alias" != x; then
1464   if test "x$build_alias" = x; then
1465     cross_compiling=maybe
1466     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1467     If a cross compiler is detected then cross compile mode will be used." >&2
1468   elif test "x$build_alias" != "x$host_alias"; then
1469     cross_compiling=yes
1470   fi
1471 fi
1472
1473 ac_tool_prefix=
1474 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1475
1476 test "$silent" = yes && exec 6>/dev/null
1477
1478
1479 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1480 ac_ls_di=`ls -di .` &&
1481 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1482   { echo "$as_me: error: Working directory cannot be determined" >&2
1483    { (exit 1); exit 1; }; }
1484 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1485   { echo "$as_me: error: pwd does not report name of working directory" >&2
1486    { (exit 1); exit 1; }; }
1487
1488
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491   ac_srcdir_defaulted=yes
1492   # Try the directory containing this script, then the parent directory.
1493   ac_confdir=`$as_dirname -- "$0" ||
1494 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495          X"$0" : 'X\(//\)[^/]' \| \
1496          X"$0" : 'X\(//\)$' \| \
1497          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1498 echo X"$0" |
1499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)[^/].*/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\/\)$/{
1508             s//\1/
1509             q
1510           }
1511           /^X\(\/\).*/{
1512             s//\1/
1513             q
1514           }
1515           s/.*/./; q'`
1516   srcdir=$ac_confdir
1517   if test ! -r "$srcdir/$ac_unique_file"; then
1518     srcdir=..
1519   fi
1520 else
1521   ac_srcdir_defaulted=no
1522 fi
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1526    { (exit 1); exit 1; }; }
1527 fi
1528 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 ac_abs_confdir=`(
1530         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1531    { (exit 1); exit 1; }; }
1532         pwd)`
1533 # When building in place, set srcdir=.
1534 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535   srcdir=.
1536 fi
1537 # Remove unnecessary trailing slashes from srcdir.
1538 # Double slashes in file names in object file debugging info
1539 # mess up M-x gdb in Emacs.
1540 case $srcdir in
1541 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1542 esac
1543 for ac_var in $ac_precious_vars; do
1544   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1545   eval ac_env_${ac_var}_value=\$${ac_var}
1546   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1548 done
1549
1550 #
1551 # Report the --help message.
1552 #
1553 if test "$ac_init_help" = "long"; then
1554   # Omit some internal or obsolete options to make the list less imposing.
1555   # This message is too long to be a string in the A/UX 3.1 sh.
1556   cat <<_ACEOF
1557 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1558
1559 Usage: $0 [OPTION]... [VAR=VALUE]...
1560
1561 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1562 VAR=VALUE.  See below for descriptions of some of the useful variables.
1563
1564 Defaults for the options are specified in brackets.
1565
1566 Configuration:
1567   -h, --help              display this help and exit
1568       --help=short        display options specific to this package
1569       --help=recursive    display the short help of all the included packages
1570   -V, --version           display version information and exit
1571   -q, --quiet, --silent   do not print \`checking...' messages
1572       --cache-file=FILE   cache test results in FILE [disabled]
1573   -C, --config-cache      alias for \`--cache-file=config.cache'
1574   -n, --no-create         do not create output files
1575       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1576
1577 Installation directories:
1578   --prefix=PREFIX         install architecture-independent files in PREFIX
1579                           [$ac_default_prefix]
1580   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1581                           [PREFIX]
1582
1583 By default, \`make install' will install all the files in
1584 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1585 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1586 for instance \`--prefix=\$HOME'.
1587
1588 For better control, use the options below.
1589
1590 Fine tuning of the installation directories:
1591   --bindir=DIR           user executables [EPREFIX/bin]
1592   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1593   --libexecdir=DIR       program executables [EPREFIX/libexec]
1594   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1595   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1596   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1597   --libdir=DIR           object code libraries [EPREFIX/lib]
1598   --includedir=DIR       C header files [PREFIX/include]
1599   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1600   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1601   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1602   --infodir=DIR          info documentation [DATAROOTDIR/info]
1603   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1604   --mandir=DIR           man documentation [DATAROOTDIR/man]
1605   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1606   --htmldir=DIR          html documentation [DOCDIR]
1607   --dvidir=DIR           dvi documentation [DOCDIR]
1608   --pdfdir=DIR           pdf documentation [DOCDIR]
1609   --psdir=DIR            ps documentation [DOCDIR]
1610 _ACEOF
1611
1612   cat <<\_ACEOF
1613
1614 X features:
1615   --x-includes=DIR    X include files are in DIR
1616   --x-libraries=DIR   X library files are in DIR
1617
1618 System types:
1619   --build=BUILD     configure for building on BUILD [guessed]
1620   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1621   --target=TARGET   configure for building compilers for TARGET [HOST]
1622 _ACEOF
1623 fi
1624
1625 if test -n "$ac_init_help"; then
1626   case $ac_init_help in
1627      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1628    esac
1629   cat <<\_ACEOF
1630
1631 Optional Features:
1632   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1633   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1634   --disable-gui           don't build GUI parts of the library
1635   --enable-monolithic     build wxWidgets as single library
1636   --enable-plugins        build parts of wxWidgets as loadable components
1637   --enable-official_build official build of wxWidgets (win32 DLL only)
1638   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1639   --disable-all-features  disable all optional features to build minimal library
1640   --enable-universal      use wxWidgets GUI controls instead of native ones
1641   --enable-nanox          use NanoX
1642   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1643   --enable-gpe            use GNOME PDA Environment features if possible
1644   --disable-shared        create static library instead of shared
1645   --enable-debug          same as debug_flag and debug_info
1646   --enable-stl            use STL for containers
1647   --enable-std_iostreams  use standard C++ stream classes
1648   --enable-std_string     use standard C++ string classes
1649   --disable-unicode       compile without Unicode support
1650   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1651   --enable-utf8           use UTF-8 representation for strings (Unix only)
1652   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1653   --enable-extended_rtti  use extended RTTI (XTI)
1654   --enable-omf            use OMF object format
1655   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1656   --enable-debug_info     create code with debugging information
1657   --disable-optimise      compile without optimisations
1658   --enable-debug_gdb      create code with extra GDB debugging information
1659   --enable-debug_cntxt    use wxDebugContext
1660   --enable-mem_tracing    create code with memory tracing
1661   --enable-profile        create code with profiling information
1662   --enable-no_rtti        create code without RTTI information
1663   --enable-no_exceptions  create code without C++ exceptions handling
1664   --enable-permissive     compile code disregarding strict ANSI
1665   --enable-no_deps        create code without dependency information
1666   --disable-vararg_macros don't use vararg macros, even if they are supported
1667   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1668   --enable-compat26       enable wxWidgets 2.6 compatibility
1669   --disable-compat28      disable wxWidgets 2.8 compatibility
1670   --disable-rpath         disable use of rpath for uninstalled builds
1671   --enable-objc_uniquifying enable Objective-C class name uniquifying
1672   --disable-visibility    disable use of ELF symbols visibility even if supported
1673   --enable-intl           use internationalization system
1674   --enable-xlocale        use x-locale support (requires wxLocale)
1675   --enable-config         use wxConfig (and derived) classes
1676   --enable-protocols      use wxProtocol and derived classes
1677   --enable-ftp            use wxFTP (requires wxProtocol
1678   --enable-http           use wxHTTP (requires wxProtocol
1679   --enable-fileproto      use wxFileProto class (requires wxProtocol
1680   --enable-sockets        use socket/network classes
1681   --enable-ipv6           enable IPv6 support in wxSocket
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontenum       use wxFontEnumerator class
1704   --enable-fontmap        use font encodings conversion classes
1705   --enable-fs_archive     use virtual archive filesystems
1706   --enable-fs_inet        use virtual HTTP/FTP filesystems
1707   --enable-fs_zip         now replaced by fs_archive
1708   --enable-geometry       use geometry class
1709   --enable-log            use logging system
1710   --enable-longlong       use wxLongLong class
1711   --enable-mimetype       use wxMimeTypesManager
1712   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1713   --enable-snglinst       use wxSingleInstanceChecker class
1714   --enable-sound          use wxSound class
1715   --enable-stdpaths       use wxStandardPaths class
1716   --enable-stopwatch      use wxStopWatch class
1717   --enable-streams        use wxStream etc classes
1718   --enable-sysoptions     use wxSystemOptions
1719   --enable-tarstream      use wxTar streams
1720   --enable-textbuf        use wxTextBuffer class
1721   --enable-textfile       use wxTextFile class
1722   --enable-timer          use wxTimer class
1723   --enable-variant        use wxVariant class
1724   --enable-zipstream      use wxZip streams
1725   --enable-url            use wxURL class
1726   --enable-protocol       use wxProtocol class
1727   --enable-protocol-http  HTTP support in wxProtocol
1728   --enable-protocol-ftp   FTP support in wxProtocol
1729   --enable-protocol-file  FILE support in wxProtocol
1730   --enable-threads        use threads
1731   --enable-iniconf        use wxIniConfig (Win32 only)
1732   --enable-regkey         use wxRegKey class (Win32 only)
1733   --enable-docview        use document view architecture
1734   --enable-help           use help subsystem
1735   --enable-mshtmlhelp     use MS HTML Help (win32)
1736   --enable-html           use wxHTML sub-library
1737   --enable-htmlhelp       use wxHTML-based help
1738   --enable-xrc            use XRC resources sub-library
1739   --enable-aui            use AUI docking library
1740   --enable-stc            use wxStyledTextCtrl library
1741   --enable-constraints    use layout-constraints system
1742   --enable-loggui         use standard GUI logger
1743   --enable-logwin         use wxLogWindow
1744   --enable-logdialog      use wxLogDialog
1745   --enable-mdi            use multiple document interface architecture
1746   --enable-mdidoc         use docview architecture with MDI
1747   --enable-mediactrl      use wxMediaCtrl class
1748   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1749   --enable-webkit         use wxWebKitCtrl (Mac)
1750   --enable-richtext       use wxRichTextCtrl
1751   --enable-graphics_ctx   use graphics context 2D drawing API
1752   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1753   --enable-printarch      use printing architecture
1754   --enable-svg            use wxSVGFileDC device context
1755   --enable-clipboard      use wxClipboard class
1756   --enable-dnd            use Drag'n'Drop classes
1757   --enable-metafile       use win32 metafiles
1758   --disable-controls      disable compilation of all standard controls
1759   --enable-accel          use accelerators
1760   --enable-animatectrl    use wxAnimationCtrl class
1761   --enable-button         use wxButton class
1762   --enable-bmpbutton      use wxBitmapButton class
1763   --enable-bmpcombobox    use wxBitmapComboBox class
1764   --enable-calendar       use wxCalendarCtrl class
1765   --enable-caret          use wxCaret class
1766   --enable-checkbox       use wxCheckBox class
1767   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1768   --enable-choice         use wxChoice class
1769   --enable-choicebook     use wxChoicebook class
1770   --enable-collpane       use wxCollapsiblePane class
1771   --enable-colourpicker   use wxColourPickerCtrl class
1772   --enable-combobox       use wxComboBox class
1773   --enable-comboctrl      use wxComboCtrl class
1774   --enable-datepick       use wxDatePickerCtrl class
1775   --enable-dirpicker      use wxDirPickerCtrl class
1776   --enable-display        use wxDisplay class
1777   --enable-detect_sm      use code to detect X11 session manager
1778   --enable-editablebox    use wxEditableListBox class
1779   --enable-filepicker     use wxFilePickerCtrl class
1780   --enable-filectrl       use wxFileCtrl class
1781   --enable-fontpicker     use wxFontPickerCtrl class
1782   --enable-gauge          use wxGauge class
1783   --enable-grid           use wxGrid class
1784   --enable-dataviewctrl   use wxDataViewCtrl class
1785   --enable-hyperlink      use wxHyperlinkCtrl class
1786   --enable-imaglist       use wxImageList class
1787   --enable-listbook       use wxListbook class
1788   --enable-listbox        use wxListBox class
1789   --enable-listctrl       use wxListCtrl class
1790   --enable-notebook       use wxNotebook class
1791   --enable-notifmsg       use wxNotificationMessage class
1792   --enable-odcombobox     use wxOwnerDrawnComboBox class
1793   --enable-radiobox       use wxRadioBox class
1794   --enable-radiobtn       use wxRadioButton class
1795   --enable-sash           use wxSashWindow class
1796   --enable-scrollbar      use wxScrollBar class and scrollable windows
1797   --enable-searchctrl     use wxSearchCtrl class
1798   --enable-slider         use wxSlider class
1799   --enable-spinbtn        use wxSpinButton class
1800   --enable-spinctrl       use wxSpinCtrl class
1801   --enable-splitter       use wxSplitterWindow class
1802   --enable-statbmp        use wxStaticBitmap class
1803   --enable-statbox        use wxStaticBox class
1804   --enable-statline       use wxStaticLine class
1805   --enable-stattext       use wxStaticText class
1806   --enable-statusbar      use wxStatusBar class
1807   --enable-tabdialog      use wxTabControl class
1808   --enable-taskbaricon    use wxTaskBarIcon class
1809   --enable-textctrl       use wxTextCtrl class
1810   --enable-togglebtn      use wxToggleButton class
1811   --enable-toolbar        use wxToolBar class
1812   --enable-tbarnative     use native wxToolBar class
1813   --enable-treebook       use wxTreebook class
1814   --enable-toolbook       use wxToolbook class
1815   --enable-treectrl       use wxTreeCtrl class
1816   --enable-tipwindow      use wxTipWindow class
1817   --enable-popupwin       use wxPopUpWindow class
1818   --enable-commondlg      use all common dialogs
1819   --enable-aboutdlg       use wxAboutBox
1820   --enable-choicedlg      use wxChoiceDialog
1821   --enable-coldlg         use wxColourDialog
1822   --enable-filedlg        use wxFileDialog
1823   --enable-finddlg        use wxFindReplaceDialog
1824   --enable-fontdlg        use wxFontDialog
1825   --enable-dirdlg         use wxDirDialog
1826   --enable-msgdlg         use wxMessageDialog
1827   --enable-numberdlg      use wxNumberEntryDialog
1828   --enable-splash         use wxSplashScreen
1829   --enable-textdlg        use wxTextDialog
1830   --enable-tipdlg         use startup tips
1831   --enable-progressdlg    use wxProgressDialog
1832   --enable-wizarddlg      use wxWizard
1833   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1834   --enable-miniframe      use wxMiniFrame class
1835   --enable-tooltips       use wxToolTip class
1836   --enable-splines        use spline drawing code
1837   --enable-mousewheel     use mousewheel
1838   --enable-validators     use wxValidator and derived classes
1839   --enable-busyinfo       use wxBusyInfo
1840   --enable-joystick       use wxJoystick
1841   --enable-metafiles      use wxMetaFile (Win32 only)
1842   --enable-dragimage      use wxDragImage
1843   --enable-accessibility  enable accessibility support
1844   --enable-palette        use wxPalette class
1845   --enable-image          use wxImage class
1846   --enable-gif            use gif images (GIF file format)
1847   --enable-pcx            use pcx images (PCX file format)
1848   --enable-tga            use tga images (TGA file format)
1849   --enable-iff            use iff images (IFF file format)
1850   --enable-pnm            use pnm images (PNM file format)
1851   --enable-xpm            use xpm images (XPM file format)
1852   --enable-ico_cur        use Windows ICO and CUR formats
1853   --enable-dccache        cache temporary wxDC objects (Win32 only)
1854   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1855   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1856   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1857   --enable-wxdib          use wxDIB class (Win32 only)
1858   --enable-autoidman      use automatic ids management
1859   --disable-largefile     omit support for large files
1860   --disable-gtktest       do not try to compile and run a test GTK+ program
1861   --disable-gtktest       Do not try to compile and run a test GTK program
1862   --disable-sdltest       Do not try to compile and run a test SDL program
1863   --enable-omf            use OMF object format (OS/2)
1864   --disable-dependency-tracking
1865                           don't use dependency tracking even if the compiler
1866                           can
1867   --disable-precomp-headers
1868                           don't use precompiled headers even if compiler can
1869
1870 Optional Packages:
1871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1873   --without-subdirs       don't generate makefiles for samples/demos/...
1874   --with-flavour=NAME     specify a name to identify this build
1875   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1876   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1877   --with-motif            use Motif/Lesstif
1878   --with-mac              use Mac OS X
1879   --with-cocoa            use Cocoa
1880   --with-wine             use Wine
1881   --with-msw              use MS-Windows
1882   --with-pm               use OS/2 Presentation Manager
1883   --with-mgl              use SciTech MGL
1884   --with-directfb         use DirectFB
1885   --with-microwin         use MicroWindows
1886   --with-x11              use X11
1887   --with-libpng           use libpng (PNG image format)
1888   --with-libjpeg          use libjpeg (JPEG file format)
1889   --with-libtiff          use libtiff (TIFF file format)
1890   --with-libxpm           use libxpm (XPM file format)
1891   --with-libiconv         use libiconv (character conversion)
1892   --with-libmspack        use libmspack (CHM help files loading)
1893   --without-gtkprint      don't use GTK printing support
1894   --without-gnomeprint    don't use GNOME printing libraries
1895   --with-gnomevfs         use GNOME VFS for associating MIME types
1896   --with-hildon           use Hildon framework for Nokia 770
1897   --with-opengl           use OpenGL (or Mesa)
1898   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1899   --with-sdl              use SDL for audio on Unix
1900   --with-regex            enable support for wxRegEx class
1901   --with-zlib             use zlib for LZW compression
1902   --with-expat            enable XML support using expat parser
1903   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1904   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1905   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1906   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1907   --with-x                use the X Window System
1908   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1909   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1910   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1911   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1912   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1913
1914 Some influential environment variables:
1915   CC          C compiler command
1916   CFLAGS      C compiler flags
1917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1918               nonstandard directory <lib dir>
1919   LIBS        libraries to pass to the linker, e.g. -l<library>
1920   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1921               you have headers in a nonstandard directory <include dir>
1922   CPP         C preprocessor
1923   CXX         C++ compiler command
1924   CXXFLAGS    C++ compiler flags
1925   PKG_CONFIG  path to pkg-config utility
1926   DIRECTFB_CFLAGS
1927               C compiler flags for DIRECTFB, overriding pkg-config
1928   DIRECTFB_LIBS
1929               linker flags for DIRECTFB, overriding pkg-config
1930   XMKMF       Path to xmkmf, Makefile generator for X Window System
1931   PANGOX_CFLAGS
1932               C compiler flags for PANGOX, overriding pkg-config
1933   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1934   PANGOFT2_CFLAGS
1935               C compiler flags for PANGOFT2, overriding pkg-config
1936   PANGOFT2_LIBS
1937               linker flags for PANGOFT2, overriding pkg-config
1938   PANGOXFT_CFLAGS
1939               C compiler flags for PANGOXFT, overriding pkg-config
1940   PANGOXFT_LIBS
1941               linker flags for PANGOXFT, overriding pkg-config
1942   GTKPRINT_CFLAGS
1943               C compiler flags for GTKPRINT, overriding pkg-config
1944   GTKPRINT_LIBS
1945               linker flags for GTKPRINT, overriding pkg-config
1946   LIBGNOMEPRINTUI_CFLAGS
1947               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1948   LIBGNOMEPRINTUI_LIBS
1949               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1950   GNOMEVFS_CFLAGS
1951               C compiler flags for GNOMEVFS, overriding pkg-config
1952   GNOMEVFS_LIBS
1953               linker flags for GNOMEVFS, overriding pkg-config
1954   HILDON_CFLAGS
1955               C compiler flags for HILDON, overriding pkg-config
1956   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1957   CAIRO_CFLAGS
1958               C compiler flags for CAIRO, overriding pkg-config
1959   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1960   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1961   GST_LIBS    linker flags for GST, overriding pkg-config
1962
1963 Use these variables to override the choices made by `configure' or to help
1964 it to find libraries and programs with nonstandard names/locations.
1965
1966 Report bugs to <wx-dev@lists.wxwidgets.org>.
1967 _ACEOF
1968 ac_status=$?
1969 fi
1970
1971 if test "$ac_init_help" = "recursive"; then
1972   # If there are subdirs, report their specific --help.
1973   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1974     test -d "$ac_dir" || continue
1975     ac_builddir=.
1976
1977 case "$ac_dir" in
1978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979 *)
1980   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1981   # A ".." for each directory in $ac_dir_suffix.
1982   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1983   case $ac_top_builddir_sub in
1984   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1986   esac ;;
1987 esac
1988 ac_abs_top_builddir=$ac_pwd
1989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1990 # for backward compatibility:
1991 ac_top_builddir=$ac_top_build_prefix
1992
1993 case $srcdir in
1994   .)  # We are building in place.
1995     ac_srcdir=.
1996     ac_top_srcdir=$ac_top_builddir_sub
1997     ac_abs_top_srcdir=$ac_pwd ;;
1998   [\\/]* | ?:[\\/]* )  # Absolute name.
1999     ac_srcdir=$srcdir$ac_dir_suffix;
2000     ac_top_srcdir=$srcdir
2001     ac_abs_top_srcdir=$srcdir ;;
2002   *) # Relative name.
2003     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2004     ac_top_srcdir=$ac_top_build_prefix$srcdir
2005     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2006 esac
2007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2008
2009     cd "$ac_dir" || { ac_status=$?; continue; }
2010     # Check for guested configure.
2011     if test -f "$ac_srcdir/configure.gnu"; then
2012       echo &&
2013       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2014     elif test -f "$ac_srcdir/configure"; then
2015       echo &&
2016       $SHELL "$ac_srcdir/configure" --help=recursive
2017     else
2018       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2019     fi || ac_status=$?
2020     cd "$ac_pwd" || { ac_status=$?; break; }
2021   done
2022 fi
2023
2024 test -n "$ac_init_help" && exit $ac_status
2025 if $ac_init_version; then
2026   cat <<\_ACEOF
2027 wxWidgets configure 2.9.0
2028 generated by GNU Autoconf 2.61
2029
2030 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2031 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2032 This configure script is free software; the Free Software Foundation
2033 gives unlimited permission to copy, distribute and modify it.
2034 _ACEOF
2035   exit
2036 fi
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by wxWidgets $as_me 2.9.0, which was
2042 generated by GNU Autoconf 2.61.  Invocation command line was
2043
2044   $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2062
2063 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2064 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2067 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2068 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2069 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078   echo "PATH: $as_dir"
2079 done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105   for ac_arg
2106   do
2107     case $ac_arg in
2108     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110     | -silent | --silent | --silen | --sile | --sil)
2111       continue ;;
2112     *\'*)
2113       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114     esac
2115     case $ac_pass in
2116     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2117     2)
2118       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2119       if test $ac_must_keep_next = true; then
2120         ac_must_keep_next=false # Got value, back to normal.
2121       else
2122         case $ac_arg in
2123           *=* | --config-cache | -C | -disable-* | --disable-* \
2124           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126           | -with-* | --with-* | -without-* | --without-* | --x)
2127             case "$ac_configure_args0 " in
2128               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129             esac
2130             ;;
2131           -* ) ac_must_keep_next=true ;;
2132         esac
2133       fi
2134       ac_configure_args="$ac_configure_args '$ac_arg'"
2135       ;;
2136     esac
2137   done
2138 done
2139 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2140 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log.  We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148   # Save into config.log some information that might help in debugging.
2149   {
2150     echo
2151
2152     cat <<\_ASBOX
2153 ## ---------------- ##
2154 ## Cache variables. ##
2155 ## ---------------- ##
2156 _ASBOX
2157     echo
2158     # The following way of writing the cache mishandles newlines in values,
2159 (
2160   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161     eval ac_val=\$$ac_var
2162     case $ac_val in #(
2163     *${as_nl}*)
2164       case $ac_var in #(
2165       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2166 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2167       esac
2168       case $ac_var in #(
2169       _ | IFS | as_nl) ;; #(
2170       *) $as_unset $ac_var ;;
2171       esac ;;
2172     esac
2173   done
2174   (set) 2>&1 |
2175     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2176     *${as_nl}ac_space=\ *)
2177       sed -n \
2178         "s/'\''/'\''\\\\'\'''\''/g;
2179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2180       ;; #(
2181     *)
2182       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183       ;;
2184     esac |
2185     sort
2186 )
2187     echo
2188
2189     cat <<\_ASBOX
2190 ## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##
2193 _ASBOX
2194     echo
2195     for ac_var in $ac_subst_vars
2196     do
2197       eval ac_val=\$$ac_var
2198       case $ac_val in
2199       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200       esac
2201       echo "$ac_var='\''$ac_val'\''"
2202     done | sort
2203     echo
2204
2205     if test -n "$ac_subst_files"; then
2206       cat <<\_ASBOX
2207 ## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##
2210 _ASBOX
2211       echo
2212       for ac_var in $ac_subst_files
2213       do
2214         eval ac_val=\$$ac_var
2215         case $ac_val in
2216         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217         esac
2218         echo "$ac_var='\''$ac_val'\''"
2219       done | sort
2220       echo
2221     fi
2222
2223     if test -s confdefs.h; then
2224       cat <<\_ASBOX
2225 ## ----------- ##
2226 ## confdefs.h. ##
2227 ## ----------- ##
2228 _ASBOX
2229       echo
2230       cat confdefs.h
2231       echo
2232     fi
2233     test "$ac_signal" != 0 &&
2234       echo "$as_me: caught signal $ac_signal"
2235     echo "$as_me: exit $exit_status"
2236   } >&5
2237   rm -f core *.core core.conftest.* &&
2238     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239     exit $exit_status
2240 ' 0
2241 for ac_signal in 1 2 13 15; do
2242   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2243 done
2244 ac_signal=0
2245
2246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2247 rm -f -r conftest* confdefs.h
2248
2249 # Predefined preprocessor variables.
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2253 _ACEOF
2254
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258 _ACEOF
2259
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 _ACEOF
2264
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_STRING "$PACKAGE_STRING"
2268 _ACEOF
2269
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273 _ACEOF
2274
2275
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer explicitly selected file to automatically selected ones.
2278 if test -n "$CONFIG_SITE"; then
2279   set x "$CONFIG_SITE"
2280 elif test "x$prefix" != xNONE; then
2281   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2282 else
2283   set x "$ac_default_prefix/share/config.site" \
2284         "$ac_default_prefix/etc/config.site"
2285 fi
2286 shift
2287 for ac_site_file
2288 do
2289   if test -r "$ac_site_file"; then
2290     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2291 echo "$as_me: loading site script $ac_site_file" >&6;}
2292     sed 's/^/| /' "$ac_site_file" >&5
2293     . "$ac_site_file"
2294   fi
2295 done
2296
2297 if test -r "$cache_file"; then
2298   # Some versions of bash will fail to source /dev/null (special
2299   # files actually), so we avoid doing that.
2300   if test -f "$cache_file"; then
2301     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2302 echo "$as_me: loading cache $cache_file" >&6;}
2303     case $cache_file in
2304       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305       *)                      . "./$cache_file";;
2306     esac
2307   fi
2308 else
2309   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2310 echo "$as_me: creating cache $cache_file" >&6;}
2311   >$cache_file
2312 fi
2313
2314 # Check that the precious variables saved in the cache have kept the same
2315 # value.
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319   eval ac_new_set=\$ac_env_${ac_var}_set
2320   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321   eval ac_new_val=\$ac_env_${ac_var}_value
2322   case $ac_old_set,$ac_new_set in
2323     set,)
2324       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326       ac_cache_corrupted=: ;;
2327     ,set)
2328       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2329 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330       ac_cache_corrupted=: ;;
2331     ,);;
2332     *)
2333       if test "x$ac_old_val" != "x$ac_new_val"; then
2334         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2335 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2337 echo "$as_me:   former value:  $ac_old_val" >&2;}
2338         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2339 echo "$as_me:   current value: $ac_new_val" >&2;}
2340         ac_cache_corrupted=:
2341       fi;;
2342   esac
2343   # Pass precious variables to config.status.
2344   if test "$ac_new_set" = set; then
2345     case $ac_new_val in
2346     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2347     *) ac_arg=$ac_var=$ac_new_val ;;
2348     esac
2349     case " $ac_configure_args " in
2350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2351       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2352     esac
2353   fi
2354 done
2355 if $ac_cache_corrupted; then
2356   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2358   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2360    { (exit 1); exit 1; }; }
2361 fi
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395
2396
2397 ac_aux_dir=
2398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2399   if test -f "$ac_dir/install-sh"; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/install-sh -c"
2402     break
2403   elif test -f "$ac_dir/install.sh"; then
2404     ac_aux_dir=$ac_dir
2405     ac_install_sh="$ac_aux_dir/install.sh -c"
2406     break
2407   elif test -f "$ac_dir/shtool"; then
2408     ac_aux_dir=$ac_dir
2409     ac_install_sh="$ac_aux_dir/shtool install -c"
2410     break
2411   fi
2412 done
2413 if test -z "$ac_aux_dir"; then
2414   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2415 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418
2419 # These three variables are undocumented and unsupported,
2420 # and are intended to be withdrawn in a future Autoconf release.
2421 # They can cause serious problems if a builder's source tree is in a directory
2422 # whose full name contains unusual characters.
2423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2425 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2426
2427
2428 # Make sure we can run config.sub.
2429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2430   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2431 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2432    { (exit 1); exit 1; }; }
2433
2434 { echo "$as_me:$LINENO: checking build system type" >&5
2435 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2436 if test "${ac_cv_build+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   ac_build_alias=$build_alias
2440 test "x$ac_build_alias" = x &&
2441   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2442 test "x$ac_build_alias" = x &&
2443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2445    { (exit 1); exit 1; }; }
2446 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2447   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2448 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2449    { (exit 1); exit 1; }; }
2450
2451 fi
2452 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2453 echo "${ECHO_T}$ac_cv_build" >&6; }
2454 case $ac_cv_build in
2455 *-*-*) ;;
2456 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2457 echo "$as_me: error: invalid value of canonical build" >&2;}
2458    { (exit 1); exit 1; }; };;
2459 esac
2460 build=$ac_cv_build
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_build
2463 shift
2464 build_cpu=$1
2465 build_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 build_os=$*
2470 IFS=$ac_save_IFS
2471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2472
2473
2474 { echo "$as_me:$LINENO: checking host system type" >&5
2475 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2476 if test "${ac_cv_host+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test "x$host_alias" = x; then
2480   ac_cv_host=$ac_cv_build
2481 else
2482   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2483     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2484 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2485    { (exit 1); exit 1; }; }
2486 fi
2487
2488 fi
2489 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2490 echo "${ECHO_T}$ac_cv_host" >&6; }
2491 case $ac_cv_host in
2492 *-*-*) ;;
2493 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2494 echo "$as_me: error: invalid value of canonical host" >&2;}
2495    { (exit 1); exit 1; }; };;
2496 esac
2497 host=$ac_cv_host
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_host
2500 shift
2501 host_cpu=$1
2502 host_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 host_os=$*
2507 IFS=$ac_save_IFS
2508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2509
2510
2511 { echo "$as_me:$LINENO: checking target system type" >&5
2512 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2513 if test "${ac_cv_target+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   if test "x$target_alias" = x; then
2517   ac_cv_target=$ac_cv_host
2518 else
2519   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2520     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524
2525 fi
2526 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2527 echo "${ECHO_T}$ac_cv_target" >&6; }
2528 case $ac_cv_target in
2529 *-*-*) ;;
2530 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2531 echo "$as_me: error: invalid value of canonical target" >&2;}
2532    { (exit 1); exit 1; }; };;
2533 esac
2534 target=$ac_cv_target
2535 ac_save_IFS=$IFS; IFS='-'
2536 set x $ac_cv_target
2537 shift
2538 target_cpu=$1
2539 target_vendor=$2
2540 shift; shift
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2543 target_os=$*
2544 IFS=$ac_save_IFS
2545 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2546
2547
2548 # The aliases save the names the user supplied, while $host etc.
2549 # will get canonicalized.
2550 test -n "$target_alias" &&
2551   test "$program_prefix$program_suffix$program_transform_name" = \
2552     NONENONEs,x,x, &&
2553   program_prefix=${target_alias}-
2554
2555
2556
2557 wx_major_version_number=2
2558 wx_minor_version_number=9
2559 wx_release_number=0
2560 wx_subrelease_number=0
2561
2562 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2563 WX_VERSION=$WX_RELEASE.$wx_release_number
2564 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2565
2566 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2567
2568
2569 wx_top_builddir="`pwd`"
2570
2571
2572
2573
2574 USE_UNIX=1
2575 USE_OS2=0
2576 USE_WIN32=0
2577 USE_DOS=0
2578 USE_BEOS=0
2579 USE_MAC=0
2580
2581 USE_AIX=
2582 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2583 USE_GNU=                            USE_HPUX=
2584 USE_LINUX=
2585 USE_NETBSD=
2586 USE_OPENBSD=
2587 USE_OSF=                            USE_SGI=
2588 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2589 USE_ULTRIX=
2590 USE_UNIXWARE=
2591
2592 USE_ALPHA=
2593
2594 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2595
2596 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2597
2598 DEFAULT_wxUSE_COCOA=0
2599 DEFAULT_wxUSE_GTK=0
2600 DEFAULT_wxUSE_MAC=0
2601 DEFAULT_wxUSE_MGL=0
2602 DEFAULT_wxUSE_MICROWIN=0
2603 DEFAULT_wxUSE_MOTIF=0
2604 DEFAULT_wxUSE_MSW=0
2605 DEFAULT_wxUSE_PM=0
2606 DEFAULT_wxUSE_X11=0
2607 DEFAULT_wxUSE_DFB=0
2608
2609 DEFAULT_DEFAULT_wxUSE_COCOA=0
2610 DEFAULT_DEFAULT_wxUSE_GTK=0
2611 DEFAULT_DEFAULT_wxUSE_MAC=0
2612 DEFAULT_DEFAULT_wxUSE_MGL=0
2613 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2614 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2615 DEFAULT_DEFAULT_wxUSE_MSW=0
2616 DEFAULT_DEFAULT_wxUSE_PM=0
2617 DEFAULT_DEFAULT_wxUSE_X11=0
2618 DEFAULT_DEFAULT_wxUSE_DFB=0
2619
2620 PROGRAM_EXT=
2621 SO_SUFFIX=so
2622 SAMPLES_RPATH_FLAG=
2623 SAMPLES_RPATH_POSTLINK=
2624
2625 DEFAULT_STD_FLAG=yes
2626
2627 case "${host}" in
2628   *-hp-hpux* )
2629     USE_HPUX=1
2630     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2631     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2632     SO_SUFFIX=sl
2633     cat >>confdefs.h <<\_ACEOF
2634 #define __HPUX__ 1
2635 _ACEOF
2636
2637
2638             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2639   ;;
2640   *-*-linux* )
2641     USE_LINUX=1
2642     cat >>confdefs.h <<\_ACEOF
2643 #define __LINUX__ 1
2644 _ACEOF
2645
2646     TMP=`uname -m`
2647     if test "x$TMP" = "xalpha"; then
2648       USE_ALPHA=1
2649       cat >>confdefs.h <<\_ACEOF
2650 #define __ALPHA__ 1
2651 _ACEOF
2652
2653     fi
2654     DEFAULT_DEFAULT_wxUSE_GTK=1
2655   ;;
2656   *-*-gnu* | *-*-k*bsd*-gnu )
2657     USE_GNU=1
2658     TMP=`uname -m`
2659     if test "x$TMP" = "xalpha"; then
2660       USE_ALPHA=1
2661       cat >>confdefs.h <<\_ACEOF
2662 #define __ALPHA__ 1
2663 _ACEOF
2664
2665     fi
2666     DEFAULT_DEFAULT_wxUSE_GTK=1
2667   ;;
2668   *-*-irix5* | *-*-irix6* )
2669     USE_SGI=1
2670     USE_SVR4=1
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __SGI__ 1
2673 _ACEOF
2674
2675     cat >>confdefs.h <<\_ACEOF
2676 #define __SVR4__ 1
2677 _ACEOF
2678
2679     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2680   ;;
2681   *-*-solaris2* )
2682     USE_SUN=1
2683     USE_SOLARIS=1
2684     USE_SVR4=1
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SUN__ 1
2687 _ACEOF
2688
2689     cat >>confdefs.h <<\_ACEOF
2690 #define __SOLARIS__ 1
2691 _ACEOF
2692
2693     cat >>confdefs.h <<\_ACEOF
2694 #define __SVR4__ 1
2695 _ACEOF
2696
2697     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2698     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2699   ;;
2700   *-*-sunos4* )
2701     USE_SUN=1
2702     USE_SUNOS=1
2703     USE_BSD=1
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __SUN__ 1
2706 _ACEOF
2707
2708     cat >>confdefs.h <<\_ACEOF
2709 #define __SUNOS__ 1
2710 _ACEOF
2711
2712     cat >>confdefs.h <<\_ACEOF
2713 #define __BSD__ 1
2714 _ACEOF
2715
2716     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2717   ;;
2718   *-*-freebsd*)
2719     USE_BSD=1
2720     USE_FREEBSD=1
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __FREEBSD__ 1
2723 _ACEOF
2724
2725     cat >>confdefs.h <<\_ACEOF
2726 #define __BSD__ 1
2727 _ACEOF
2728
2729     DEFAULT_DEFAULT_wxUSE_GTK=1
2730   ;;
2731   *-*-openbsd*|*-*-mirbsd*)
2732     USE_BSD=1
2733     USE_OPENBSD=1
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __OPENBSD__ 1
2736 _ACEOF
2737
2738     cat >>confdefs.h <<\_ACEOF
2739 #define __BSD__ 1
2740 _ACEOF
2741
2742     DEFAULT_DEFAULT_wxUSE_GTK=1
2743   ;;
2744   *-*-netbsd*)
2745     USE_BSD=1
2746     USE_NETBSD=1
2747     cat >>confdefs.h <<\_ACEOF
2748 #define __NETBSD__ 1
2749 _ACEOF
2750
2751     cat >>confdefs.h <<\_ACEOF
2752 #define __BSD__ 1
2753 _ACEOF
2754
2755     DEFAULT_DEFAULT_wxUSE_GTK=1
2756     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2757
2758             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2759   ;;
2760   *-*-osf* )
2761     USE_ALPHA=1
2762     USE_OSF=1
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __ALPHA__ 1
2765 _ACEOF
2766
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __OSF__ 1
2769 _ACEOF
2770
2771     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2772     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2773   ;;
2774   *-*-dgux5* )
2775     USE_ALPHA=1
2776     USE_SVR4=1
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __ALPHA__ 1
2779 _ACEOF
2780
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __SVR4__ 1
2783 _ACEOF
2784
2785     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2786   ;;
2787   *-*-sysv5* )
2788     USE_SYSV=1
2789     USE_SVR4=1
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __SYSV__ 1
2792 _ACEOF
2793
2794     cat >>confdefs.h <<\_ACEOF
2795 #define __SVR4__ 1
2796 _ACEOF
2797
2798     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2799   ;;
2800   *-*-aix* )
2801     USE_AIX=1
2802     USE_SYSV=1
2803     USE_SVR4=1
2804                         SO_SUFFIX=a
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __AIX__ 1
2807 _ACEOF
2808
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __SYSV__ 1
2811 _ACEOF
2812
2813     cat >>confdefs.h <<\_ACEOF
2814 #define __SVR4__ 1
2815 _ACEOF
2816
2817     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2818   ;;
2819
2820   *-*-*UnixWare*)
2821     USE_SYSV=1
2822     USE_SVR4=1
2823     USE_UNIXWARE=1
2824     cat >>confdefs.h <<\_ACEOF
2825 #define __UNIXWARE__ 1
2826 _ACEOF
2827
2828   ;;
2829
2830   *-*-cygwin* | *-*-mingw32* )
2831                 SO_SUFFIX=dll
2832     PROGRAM_EXT=".exe"
2833     DEFAULT_DEFAULT_wxUSE_MSW=1
2834   ;;
2835
2836   *-pc-msdosdjgpp )
2837     USE_UNIX=0
2838     USE_DOS=1
2839     cat >>confdefs.h <<\_ACEOF
2840 #define __DOS__ 1
2841 _ACEOF
2842
2843     PROGRAM_EXT=".exe"
2844     DEFAULT_DEFAULT_wxUSE_MGL=1
2845   ;;
2846
2847   *-pc-os2_emx | *-pc-os2-emx )
2848     cat >>confdefs.h <<\_ACEOF
2849 #define __EMX__ 1
2850 _ACEOF
2851
2852     USE_OS2=1
2853     cat >>confdefs.h <<\_ACEOF
2854 #define __OS2__ 1
2855 _ACEOF
2856
2857     PROGRAM_EXT=".exe"
2858     DEFAULT_DEFAULT_wxUSE_PM=1
2859         CXX=gcc
2860     LDFLAGS="$LDFLAGS -Zcrtdll"
2861                         ac_executable_extensions=".exe"
2862     export ac_executable_extensions
2863             ac_save_IFS="$IFS"
2864     IFS='\\'
2865     ac_TEMP_PATH=
2866     for ac_dir in $PATH; do
2867       IFS=$ac_save_IFS
2868       if test -z "$ac_TEMP_PATH"; then
2869         ac_TEMP_PATH="$ac_dir"
2870       else
2871         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2872       fi
2873     done
2874     export PATH="$ac_TEMP_PATH"
2875     unset ac_TEMP_PATH
2876     DEFAULT_STD_FLAG=no
2877   ;;
2878
2879   *-*-darwin* )
2880         USE_BSD=1
2881     USE_DARWIN=1
2882     SO_SUFFIX=dylib
2883     cat >>confdefs.h <<\_ACEOF
2884 #define __BSD__ 1
2885 _ACEOF
2886
2887     cat >>confdefs.h <<\_ACEOF
2888 #define __DARWIN__ 1
2889 _ACEOF
2890
2891     cat >>confdefs.h <<\_ACEOF
2892 #define TARGET_CARBON 1
2893 _ACEOF
2894
2895     DEFAULT_DEFAULT_wxUSE_MAC=1
2896     DEFAULT_STD_FLAG=no
2897   ;;
2898   powerpc-apple-macos* )
2899         USE_UNIX=0
2900             ac_cv_c_bigendian=yes
2901     SO_SUFFIX=shlib
2902             DEFAULT_DEFAULT_wxUSE_MAC=1
2903     DEFAULT_STD_FLAG=no
2904   ;;
2905
2906   *-*-beos* )
2907         USE_BEOS=1
2908     cat >>confdefs.h <<\_ACEOF
2909 #define __BEOS__ 1
2910 _ACEOF
2911
2912   ;;
2913
2914   *)
2915     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2916 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2917     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2918 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2919
2920     DEFAULT_DEFAULT_wxUSE_X11=1
2921     DEFAULT_wxUSE_SHARED=no
2922 esac
2923
2924
2925
2926 DEFAULT_wxUSE_ALL_FEATURES=yes
2927
2928 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2929 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2930
2931 DEFAULT_wxUSE_DMALLOC=no
2932 DEFAULT_wxUSE_LIBGNOMEVFS=no
2933 DEFAULT_wxUSE_LIBHILDON=no
2934 DEFAULT_wxUSE_LIBMSPACK=no
2935 DEFAULT_wxUSE_LIBSDL=no
2936 DEFAULT_wxUSE_OPENGL=no
2937
2938 DEFAULT_wxUSE_ACCESSIBILITY=no
2939 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2940 DEFAULT_wxUSE_IPV6=no
2941 DEFAULT_wxUSE_MEDIACTRL=no
2942 DEFAULT_wxUSE_TAB_DIALOG=no
2943 DEFAULT_wxUSE_GSTREAMER8=no
2944
2945 DEFAULT_wxUSE_UNICODE_UTF8=auto
2946 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2947
2948 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2949
2950 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2951
2952 DEFAULT_wxUSE_GTK2=yes
2953
2954 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2955
2956
2957
2958
2959
2960           enablestring=disable
2961           defaultval=
2962           if test -z "$defaultval"; then
2963               if test x"$enablestring" = xdisable; then
2964                   defaultval=yes
2965               else
2966                   defaultval=no
2967               fi
2968           fi
2969
2970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2971 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2972           # Check whether --enable-gui was given.
2973 if test "${enable_gui+set}" = set; then
2974   enableval=$enable_gui;
2975                           if test "$enableval" = yes; then
2976                             wx_cv_use_gui='wxUSE_GUI=yes'
2977                           else
2978                             wx_cv_use_gui='wxUSE_GUI=no'
2979                           fi
2980
2981 else
2982
2983                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2984
2985 fi
2986
2987
2988           eval "$wx_cv_use_gui"
2989
2990           if test x"$enablestring" = xdisable; then
2991             if test $wxUSE_GUI = yes; then
2992               result=no
2993             else
2994               result=yes
2995             fi
2996           else
2997             result=$wxUSE_GUI
2998           fi
2999
3000           { echo "$as_me:$LINENO: result: $result" >&5
3001 echo "${ECHO_T}$result" >&6; }
3002
3003
3004           enablestring=
3005           defaultval=
3006           if test -z "$defaultval"; then
3007               if test x"$enablestring" = xdisable; then
3008                   defaultval=yes
3009               else
3010                   defaultval=no
3011               fi
3012           fi
3013
3014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3015 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3016           # Check whether --enable-monolithic was given.
3017 if test "${enable_monolithic+set}" = set; then
3018   enableval=$enable_monolithic;
3019                           if test "$enableval" = yes; then
3020                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3021                           else
3022                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3023                           fi
3024
3025 else
3026
3027                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3028
3029 fi
3030
3031
3032           eval "$wx_cv_use_monolithic"
3033
3034           if test x"$enablestring" = xdisable; then
3035             if test $wxUSE_MONOLITHIC = yes; then
3036               result=no
3037             else
3038               result=yes
3039             fi
3040           else
3041             result=$wxUSE_MONOLITHIC
3042           fi
3043
3044           { echo "$as_me:$LINENO: result: $result" >&5
3045 echo "${ECHO_T}$result" >&6; }
3046
3047
3048           enablestring=
3049           defaultval=
3050           if test -z "$defaultval"; then
3051               if test x"$enablestring" = xdisable; then
3052                   defaultval=yes
3053               else
3054                   defaultval=no
3055               fi
3056           fi
3057
3058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3059 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3060           # Check whether --enable-plugins was given.
3061 if test "${enable_plugins+set}" = set; then
3062   enableval=$enable_plugins;
3063                           if test "$enableval" = yes; then
3064                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3065                           else
3066                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3067                           fi
3068
3069 else
3070
3071                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3072
3073 fi
3074
3075
3076           eval "$wx_cv_use_plugins"
3077
3078           if test x"$enablestring" = xdisable; then
3079             if test $wxUSE_PLUGINS = yes; then
3080               result=no
3081             else
3082               result=yes
3083             fi
3084           else
3085             result=$wxUSE_PLUGINS
3086           fi
3087
3088           { echo "$as_me:$LINENO: result: $result" >&5
3089 echo "${ECHO_T}$result" >&6; }
3090
3091
3092           withstring=without
3093           defaultval=$wxUSE_ALL_FEATURES
3094           if test -z "$defaultval"; then
3095               if test x"$withstring" = xwithout; then
3096                   defaultval=yes
3097               else
3098                   defaultval=no
3099               fi
3100           fi
3101           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3102 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3103
3104 # Check whether --with-subdirs was given.
3105 if test "${with_subdirs+set}" = set; then
3106   withval=$with_subdirs;
3107                         if test "$withval" = yes; then
3108                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3109                         else
3110                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3111                         fi
3112
3113 else
3114
3115                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3116
3117 fi
3118
3119
3120           eval "$wx_cv_use_subdirs"
3121
3122           if test x"$withstring" = xwithout; then
3123             if test $wxWITH_SUBDIRS = yes; then
3124               result=no
3125             else
3126               result=yes
3127             fi
3128           else
3129             result=$wxWITH_SUBDIRS
3130           fi
3131
3132           { echo "$as_me:$LINENO: result: $result" >&5
3133 echo "${ECHO_T}$result" >&6; }
3134
3135
3136 # Check whether --with-flavour was given.
3137 if test "${with_flavour+set}" = set; then
3138   withval=$with_flavour; WX_FLAVOUR="$withval"
3139 fi
3140
3141
3142           enablestring=
3143           defaultval=
3144           if test -z "$defaultval"; then
3145               if test x"$enablestring" = xdisable; then
3146                   defaultval=yes
3147               else
3148                   defaultval=no
3149               fi
3150           fi
3151
3152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3153 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3154           # Check whether --enable-official_build was given.
3155 if test "${enable_official_build+set}" = set; then
3156   enableval=$enable_official_build;
3157                           if test "$enableval" = yes; then
3158                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3159                           else
3160                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3161                           fi
3162
3163 else
3164
3165                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3166
3167 fi
3168
3169
3170           eval "$wx_cv_use_official_build"
3171
3172           if test x"$enablestring" = xdisable; then
3173             if test $wxUSE_OFFICIAL_BUILD = yes; then
3174               result=no
3175             else
3176               result=yes
3177             fi
3178           else
3179             result=$wxUSE_OFFICIAL_BUILD
3180           fi
3181
3182           { echo "$as_me:$LINENO: result: $result" >&5
3183 echo "${ECHO_T}$result" >&6; }
3184
3185 # Check whether --enable-vendor was given.
3186 if test "${enable_vendor+set}" = set; then
3187   enableval=$enable_vendor; VENDOR="$enableval"
3188 fi
3189
3190 if test "x$VENDOR" = "x"; then
3191     VENDOR="custom"
3192 fi
3193
3194
3195           enablestring=disable
3196           defaultval=
3197           if test -z "$defaultval"; then
3198               if test x"$enablestring" = xdisable; then
3199                   defaultval=yes
3200               else
3201                   defaultval=no
3202               fi
3203           fi
3204
3205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3206 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3207           # Check whether --enable-all-features was given.
3208 if test "${enable_all_features+set}" = set; then
3209   enableval=$enable_all_features;
3210                           if test "$enableval" = yes; then
3211                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3212                           else
3213                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3214                           fi
3215
3216 else
3217
3218                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3219
3220 fi
3221
3222
3223           eval "$wx_cv_use_all_features"
3224
3225           if test x"$enablestring" = xdisable; then
3226             if test $wxUSE_ALL_FEATURES = yes; then
3227               result=no
3228             else
3229               result=yes
3230             fi
3231           else
3232             result=$wxUSE_ALL_FEATURES
3233           fi
3234
3235           { echo "$as_me:$LINENO: result: $result" >&5
3236 echo "${ECHO_T}$result" >&6; }
3237
3238
3239
3240 if test "$wxUSE_GUI" = "yes"; then
3241
3242
3243           enablestring=
3244           defaultval=
3245           if test -z "$defaultval"; then
3246               if test x"$enablestring" = xdisable; then
3247                   defaultval=yes
3248               else
3249                   defaultval=no
3250               fi
3251           fi
3252
3253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3254 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3255           # Check whether --enable-universal was given.
3256 if test "${enable_universal+set}" = set; then
3257   enableval=$enable_universal;
3258                           if test "$enableval" = yes; then
3259                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3260                           else
3261                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3262                           fi
3263
3264 else
3265
3266                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3267
3268 fi
3269
3270
3271           eval "$wx_cv_use_universal"
3272
3273           if test x"$enablestring" = xdisable; then
3274             if test $wxUSE_UNIVERSAL = yes; then
3275               result=no
3276             else
3277               result=yes
3278             fi
3279           else
3280             result=$wxUSE_UNIVERSAL
3281           fi
3282
3283           { echo "$as_me:$LINENO: result: $result" >&5
3284 echo "${ECHO_T}$result" >&6; }
3285
3286 if test "$wxUSE_UNIVERSAL" = "yes"; then
3287
3288 # Check whether --with-themes was given.
3289 if test "${with_themes+set}" = set; then
3290   withval=$with_themes; wxUNIV_THEMES="$withval"
3291 fi
3292
3293 fi
3294
3295
3296 # Check whether --with-gtk was given.
3297 if test "${with_gtk+set}" = set; then
3298   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3299 fi
3300
3301
3302 # Check whether --with-motif was given.
3303 if test "${with_motif+set}" = set; then
3304   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3305 fi
3306
3307
3308 # Check whether --with-mac was given.
3309 if test "${with_mac+set}" = set; then
3310   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3311 fi
3312
3313
3314 # Check whether --with-cocoa was given.
3315 if test "${with_cocoa+set}" = set; then
3316   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3317 fi
3318
3319
3320 # Check whether --with-wine was given.
3321 if test "${with_wine+set}" = set; then
3322   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3323 fi
3324
3325
3326 # Check whether --with-msw was given.
3327 if test "${with_msw+set}" = set; then
3328   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3329 fi
3330
3331
3332 # Check whether --with-pm was given.
3333 if test "${with_pm+set}" = set; then
3334   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3335 fi
3336
3337
3338 # Check whether --with-mgl was given.
3339 if test "${with_mgl+set}" = set; then
3340   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3341 fi
3342
3343
3344 # Check whether --with-directfb was given.
3345 if test "${with_directfb+set}" = set; then
3346   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3347 fi
3348
3349
3350 # Check whether --with-microwin was given.
3351 if test "${with_microwin+set}" = set; then
3352   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3353 fi
3354
3355
3356 # Check whether --with-x11 was given.
3357 if test "${with_x11+set}" = set; then
3358   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3359 fi
3360
3361
3362           enablestring=
3363           defaultval=
3364           if test -z "$defaultval"; then
3365               if test x"$enablestring" = xdisable; then
3366                   defaultval=yes
3367               else
3368                   defaultval=no
3369               fi
3370           fi
3371
3372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3373 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3374           # Check whether --enable-nanox was given.
3375 if test "${enable_nanox+set}" = set; then
3376   enableval=$enable_nanox;
3377                           if test "$enableval" = yes; then
3378                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3379                           else
3380                             wx_cv_use_nanox='wxUSE_NANOX=no'
3381                           fi
3382
3383 else
3384
3385                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3386
3387 fi
3388
3389
3390           eval "$wx_cv_use_nanox"
3391
3392           if test x"$enablestring" = xdisable; then
3393             if test $wxUSE_NANOX = yes; then
3394               result=no
3395             else
3396               result=yes
3397             fi
3398           else
3399             result=$wxUSE_NANOX
3400           fi
3401
3402           { echo "$as_me:$LINENO: result: $result" >&5
3403 echo "${ECHO_T}$result" >&6; }
3404
3405
3406 # Check whether --enable-gtk2 was given.
3407 if test "${enable_gtk2+set}" = set; then
3408   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3409 fi
3410
3411
3412           enablestring=
3413           defaultval=
3414           if test -z "$defaultval"; then
3415               if test x"$enablestring" = xdisable; then
3416                   defaultval=yes
3417               else
3418                   defaultval=no
3419               fi
3420           fi
3421
3422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3423 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3424           # Check whether --enable-gpe was given.
3425 if test "${enable_gpe+set}" = set; then
3426   enableval=$enable_gpe;
3427                           if test "$enableval" = yes; then
3428                             wx_cv_use_gpe='wxUSE_GPE=yes'
3429                           else
3430                             wx_cv_use_gpe='wxUSE_GPE=no'
3431                           fi
3432
3433 else
3434
3435                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3436
3437 fi
3438
3439
3440           eval "$wx_cv_use_gpe"
3441
3442           if test x"$enablestring" = xdisable; then
3443             if test $wxUSE_GPE = yes; then
3444               result=no
3445             else
3446               result=yes
3447             fi
3448           else
3449             result=$wxUSE_GPE
3450           fi
3451
3452           { echo "$as_me:$LINENO: result: $result" >&5
3453 echo "${ECHO_T}$result" >&6; }
3454
3455
3456
3457 { echo "$as_me:$LINENO: checking for toolkit" >&5
3458 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3459
3460 # In Wine, we need to default to MSW, not GTK or MOTIF
3461 if test "$wxUSE_WINE" = "yes"; then
3462     DEFAULT_DEFAULT_wxUSE_GTK=0
3463     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3464     DEFAULT_DEFAULT_wxUSE_MSW=1
3465     wxUSE_SHARED=no
3466     CC=${CC:-winegcc}
3467     CXX=${CXX:-wineg++}
3468 fi
3469
3470
3471 if test "$wxUSE_GUI" = "yes"; then
3472
3473     if test "$USE_BEOS" = 1; then
3474         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3475 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3476    { (exit 1); exit 1; }; }
3477     fi
3478
3479     if test "$TOOLKIT_GIVEN" = 1; then
3480             for toolkit in $ALL_TOOLKITS; do
3481         var=wxUSE_$toolkit
3482         eval "value=\$${var}"
3483         if test "x$value" = "xno"; then
3484           eval "$var=0"
3485         elif test "x$value" != "x"; then
3486           eval "$var=1"
3487         fi
3488
3489         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3490           eval "wx${toolkit}_VERSION=$value"
3491         fi
3492       done
3493     else
3494             for toolkit in $ALL_TOOLKITS; do
3495         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3496         eval "wxUSE_$toolkit=\$${var}"
3497       done
3498     fi
3499
3500             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
3501                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
3502                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3503
3504         case "${host}" in
3505       *-pc-os2_emx | *-pc-os2-emx )
3506         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3507     esac
3508
3509     case "$NUM_TOOLKITS" in
3510       1)
3511       ;;
3512       0)
3513         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3514 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3515    { (exit 1); exit 1; }; }
3516       ;;
3517       *)
3518         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3519 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3520    { (exit 1); exit 1; }; }
3521     esac
3522
3523     # to be removed when --disable-gtk2 isn't needed
3524     if test "x$wxUSE_GTK2" = "xyes"; then
3525         wxGTK_VERSION=2
3526     elif test "x$wxUSE_GTK2" = "xno"; then
3527         wxGTK_VERSION=1
3528     fi
3529
3530     for toolkit in $ALL_TOOLKITS; do
3531         var=wxUSE_$toolkit
3532         eval "value=\$${var}"
3533         if test "$value" = 1; then
3534           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3535           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3536 echo "${ECHO_T}$toolkit_echo" >&6; }
3537         fi
3538     done
3539 else
3540     if test "x$host_alias" != "x"; then
3541         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3542 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3543     else
3544         { echo "$as_me:$LINENO: result: base only" >&5
3545 echo "${ECHO_T}base only" >&6; }
3546     fi
3547 fi
3548
3549
3550
3551           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3552 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3553
3554 # Check whether --with-libpng was given.
3555 if test "${with_libpng+set}" = set; then
3556   withval=$with_libpng;
3557                         if test "$withval" = yes; then
3558                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3559                         elif test "$withval" = no; then
3560                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3561                         elif test "$withval" = sys; then
3562                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3563                         elif test "$withval" = builtin; then
3564                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3565                         else
3566                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3567 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3568    { (exit 1); exit 1; }; }
3569                         fi
3570
3571 else
3572
3573                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3574
3575 fi
3576
3577
3578           eval "$wx_cv_use_libpng"
3579
3580           if test "$wxUSE_LIBPNG" = yes; then
3581             { echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6; }
3583           elif test "$wxUSE_LIBPNG" = no; then
3584             { echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6; }
3586           elif test "$wxUSE_LIBPNG" = sys; then
3587             { echo "$as_me:$LINENO: result: system version" >&5
3588 echo "${ECHO_T}system version" >&6; }
3589           elif test "$wxUSE_LIBPNG" = builtin; then
3590             { echo "$as_me:$LINENO: result: builtin version" >&5
3591 echo "${ECHO_T}builtin version" >&6; }
3592           else
3593             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3594 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3595    { (exit 1); exit 1; }; }
3596           fi
3597
3598
3599           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3600 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3601
3602 # Check whether --with-libjpeg was given.
3603 if test "${with_libjpeg+set}" = set; then
3604   withval=$with_libjpeg;
3605                         if test "$withval" = yes; then
3606                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3607                         elif test "$withval" = no; then
3608                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3609                         elif test "$withval" = sys; then
3610                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3611                         elif test "$withval" = builtin; then
3612                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3613                         else
3614                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3615 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3616    { (exit 1); exit 1; }; }
3617                         fi
3618
3619 else
3620
3621                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3622
3623 fi
3624
3625
3626           eval "$wx_cv_use_libjpeg"
3627
3628           if test "$wxUSE_LIBJPEG" = yes; then
3629             { echo "$as_me:$LINENO: result: yes" >&5
3630 echo "${ECHO_T}yes" >&6; }
3631           elif test "$wxUSE_LIBJPEG" = no; then
3632             { echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6; }
3634           elif test "$wxUSE_LIBJPEG" = sys; then
3635             { echo "$as_me:$LINENO: result: system version" >&5
3636 echo "${ECHO_T}system version" >&6; }
3637           elif test "$wxUSE_LIBJPEG" = builtin; then
3638             { echo "$as_me:$LINENO: result: builtin version" >&5
3639 echo "${ECHO_T}builtin version" >&6; }
3640           else
3641             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3642 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3643    { (exit 1); exit 1; }; }
3644           fi
3645
3646
3647           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3648 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3649
3650 # Check whether --with-libtiff was given.
3651 if test "${with_libtiff+set}" = set; then
3652   withval=$with_libtiff;
3653                         if test "$withval" = yes; then
3654                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3655                         elif test "$withval" = no; then
3656                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3657                         elif test "$withval" = sys; then
3658                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3659                         elif test "$withval" = builtin; then
3660                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3661                         else
3662                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3663 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3664    { (exit 1); exit 1; }; }
3665                         fi
3666
3667 else
3668
3669                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3670
3671 fi
3672
3673
3674           eval "$wx_cv_use_libtiff"
3675
3676           if test "$wxUSE_LIBTIFF" = yes; then
3677             { echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6; }
3679           elif test "$wxUSE_LIBTIFF" = no; then
3680             { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3682           elif test "$wxUSE_LIBTIFF" = sys; then
3683             { echo "$as_me:$LINENO: result: system version" >&5
3684 echo "${ECHO_T}system version" >&6; }
3685           elif test "$wxUSE_LIBTIFF" = builtin; then
3686             { echo "$as_me:$LINENO: result: builtin version" >&5
3687 echo "${ECHO_T}builtin version" >&6; }
3688           else
3689             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3690 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3691    { (exit 1); exit 1; }; }
3692           fi
3693
3694
3695           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3696 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3697
3698 # Check whether --with-libxpm was given.
3699 if test "${with_libxpm+set}" = set; then
3700   withval=$with_libxpm;
3701                         if test "$withval" = yes; then
3702                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3703                         elif test "$withval" = no; then
3704                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3705                         elif test "$withval" = sys; then
3706                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3707                         elif test "$withval" = builtin; then
3708                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3709                         else
3710                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3711 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3712    { (exit 1); exit 1; }; }
3713                         fi
3714
3715 else
3716
3717                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3718
3719 fi
3720
3721
3722           eval "$wx_cv_use_libxpm"
3723
3724           if test "$wxUSE_LIBXPM" = yes; then
3725             { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3727           elif test "$wxUSE_LIBXPM" = no; then
3728             { echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6; }
3730           elif test "$wxUSE_LIBXPM" = sys; then
3731             { echo "$as_me:$LINENO: result: system version" >&5
3732 echo "${ECHO_T}system version" >&6; }
3733           elif test "$wxUSE_LIBXPM" = builtin; then
3734             { echo "$as_me:$LINENO: result: builtin version" >&5
3735 echo "${ECHO_T}builtin version" >&6; }
3736           else
3737             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3738 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3739    { (exit 1); exit 1; }; }
3740           fi
3741
3742
3743           withstring=
3744           defaultval=$wxUSE_ALL_FEATURES
3745           if test -z "$defaultval"; then
3746               if test x"$withstring" = xwithout; then
3747                   defaultval=yes
3748               else
3749                   defaultval=no
3750               fi
3751           fi
3752           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3753 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3754
3755 # Check whether --with-libiconv was given.
3756 if test "${with_libiconv+set}" = set; then
3757   withval=$with_libiconv;
3758                         if test "$withval" = yes; then
3759                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3760                         else
3761                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3762                         fi
3763
3764 else
3765
3766                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3767
3768 fi
3769
3770
3771           eval "$wx_cv_use_libiconv"
3772
3773           if test x"$withstring" = xwithout; then
3774             if test $wxUSE_LIBICONV = yes; then
3775               result=no
3776             else
3777               result=yes
3778             fi
3779           else
3780             result=$wxUSE_LIBICONV
3781           fi
3782
3783           { echo "$as_me:$LINENO: result: $result" >&5
3784 echo "${ECHO_T}$result" >&6; }
3785
3786
3787           withstring=
3788           defaultval=$wxUSE_ALL_FEATURES
3789           if test -z "$defaultval"; then
3790               if test x"$withstring" = xwithout; then
3791                   defaultval=yes
3792               else
3793                   defaultval=no
3794               fi
3795           fi
3796           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3797 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3798
3799 # Check whether --with-libmspack was given.
3800 if test "${with_libmspack+set}" = set; then
3801   withval=$with_libmspack;
3802                         if test "$withval" = yes; then
3803                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3804                         else
3805                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3806                         fi
3807
3808 else
3809
3810                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3811
3812 fi
3813
3814
3815           eval "$wx_cv_use_libmspack"
3816
3817           if test x"$withstring" = xwithout; then
3818             if test $wxUSE_LIBMSPACK = yes; then
3819               result=no
3820             else
3821               result=yes
3822             fi
3823           else
3824             result=$wxUSE_LIBMSPACK
3825           fi
3826
3827           { echo "$as_me:$LINENO: result: $result" >&5
3828 echo "${ECHO_T}$result" >&6; }
3829
3830
3831           withstring=without
3832           defaultval=$wxUSE_ALL_FEATURES
3833           if test -z "$defaultval"; then
3834               if test x"$withstring" = xwithout; then
3835                   defaultval=yes
3836               else
3837                   defaultval=no
3838               fi
3839           fi
3840           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3841 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3842
3843 # Check whether --with-gtkprint was given.
3844 if test "${with_gtkprint+set}" = set; then
3845   withval=$with_gtkprint;
3846                         if test "$withval" = yes; then
3847                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3848                         else
3849                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3850                         fi
3851
3852 else
3853
3854                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3855
3856 fi
3857
3858
3859           eval "$wx_cv_use_gtkprint"
3860
3861           if test x"$withstring" = xwithout; then
3862             if test $wxUSE_GTKPRINT = yes; then
3863               result=no
3864             else
3865               result=yes
3866             fi
3867           else
3868             result=$wxUSE_GTKPRINT
3869           fi
3870
3871           { echo "$as_me:$LINENO: result: $result" >&5
3872 echo "${ECHO_T}$result" >&6; }
3873
3874
3875           withstring=without
3876           defaultval=$wxUSE_ALL_FEATURES
3877           if test -z "$defaultval"; then
3878               if test x"$withstring" = xwithout; then
3879                   defaultval=yes
3880               else
3881                   defaultval=no
3882               fi
3883           fi
3884           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3885 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3886
3887 # Check whether --with-gnomeprint was given.
3888 if test "${with_gnomeprint+set}" = set; then
3889   withval=$with_gnomeprint;
3890                         if test "$withval" = yes; then
3891                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3892                         else
3893                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3894                         fi
3895
3896 else
3897
3898                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3899
3900 fi
3901
3902
3903           eval "$wx_cv_use_gnomeprint"
3904
3905           if test x"$withstring" = xwithout; then
3906             if test $wxUSE_LIBGNOMEPRINT = yes; then
3907               result=no
3908             else
3909               result=yes
3910             fi
3911           else
3912             result=$wxUSE_LIBGNOMEPRINT
3913           fi
3914
3915           { echo "$as_me:$LINENO: result: $result" >&5
3916 echo "${ECHO_T}$result" >&6; }
3917
3918
3919           withstring=
3920           defaultval=$wxUSE_ALL_FEATURES
3921           if test -z "$defaultval"; then
3922               if test x"$withstring" = xwithout; then
3923                   defaultval=yes
3924               else
3925                   defaultval=no
3926               fi
3927           fi
3928           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3929 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3930
3931 # Check whether --with-gnomevfs was given.
3932 if test "${with_gnomevfs+set}" = set; then
3933   withval=$with_gnomevfs;
3934                         if test "$withval" = yes; then
3935                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3936                         else
3937                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3938                         fi
3939
3940 else
3941
3942                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3943
3944 fi
3945
3946
3947           eval "$wx_cv_use_gnomevfs"
3948
3949           if test x"$withstring" = xwithout; then
3950             if test $wxUSE_LIBGNOMEVFS = yes; then
3951               result=no
3952             else
3953               result=yes
3954             fi
3955           else
3956             result=$wxUSE_LIBGNOMEVFS
3957           fi
3958
3959           { echo "$as_me:$LINENO: result: $result" >&5
3960 echo "${ECHO_T}$result" >&6; }
3961
3962
3963           withstring=
3964           defaultval=$wxUSE_ALL_FEATURES
3965           if test -z "$defaultval"; then
3966               if test x"$withstring" = xwithout; then
3967                   defaultval=yes
3968               else
3969                   defaultval=no
3970               fi
3971           fi
3972           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3973 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3974
3975 # Check whether --with-hildon was given.
3976 if test "${with_hildon+set}" = set; then
3977   withval=$with_hildon;
3978                         if test "$withval" = yes; then
3979                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3980                         else
3981                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3982                         fi
3983
3984 else
3985
3986                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3987
3988 fi
3989
3990
3991           eval "$wx_cv_use_hildon"
3992
3993           if test x"$withstring" = xwithout; then
3994             if test $wxUSE_LIBHILDON = yes; then
3995               result=no
3996             else
3997               result=yes
3998             fi
3999           else
4000             result=$wxUSE_LIBHILDON
4001           fi
4002
4003           { echo "$as_me:$LINENO: result: $result" >&5
4004 echo "${ECHO_T}$result" >&6; }
4005
4006
4007           withstring=
4008           defaultval=$wxUSE_ALL_FEATURES
4009           if test -z "$defaultval"; then
4010               if test x"$withstring" = xwithout; then
4011                   defaultval=yes
4012               else
4013                   defaultval=no
4014               fi
4015           fi
4016           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4017 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4018
4019 # Check whether --with-opengl was given.
4020 if test "${with_opengl+set}" = set; then
4021   withval=$with_opengl;
4022                         if test "$withval" = yes; then
4023                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4024                         else
4025                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4026                         fi
4027
4028 else
4029
4030                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4031
4032 fi
4033
4034
4035           eval "$wx_cv_use_opengl"
4036
4037           if test x"$withstring" = xwithout; then
4038             if test $wxUSE_OPENGL = yes; then
4039               result=no
4040             else
4041               result=yes
4042             fi
4043           else
4044             result=$wxUSE_OPENGL
4045           fi
4046
4047           { echo "$as_me:$LINENO: result: $result" >&5
4048 echo "${ECHO_T}$result" >&6; }
4049
4050
4051 fi
4052
4053
4054           withstring=
4055           defaultval=$wxUSE_ALL_FEATURES
4056           if test -z "$defaultval"; then
4057               if test x"$withstring" = xwithout; then
4058                   defaultval=yes
4059               else
4060                   defaultval=no
4061               fi
4062           fi
4063           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4064 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4065
4066 # Check whether --with-dmalloc was given.
4067 if test "${with_dmalloc+set}" = set; then
4068   withval=$with_dmalloc;
4069                         if test "$withval" = yes; then
4070                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4071                         else
4072                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4073                         fi
4074
4075 else
4076
4077                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4078
4079 fi
4080
4081
4082           eval "$wx_cv_use_dmalloc"
4083
4084           if test x"$withstring" = xwithout; then
4085             if test $wxUSE_DMALLOC = yes; then
4086               result=no
4087             else
4088               result=yes
4089             fi
4090           else
4091             result=$wxUSE_DMALLOC
4092           fi
4093
4094           { echo "$as_me:$LINENO: result: $result" >&5
4095 echo "${ECHO_T}$result" >&6; }
4096
4097
4098           withstring=
4099           defaultval=$wxUSE_ALL_FEATURES
4100           if test -z "$defaultval"; then
4101               if test x"$withstring" = xwithout; then
4102                   defaultval=yes
4103               else
4104                   defaultval=no
4105               fi
4106           fi
4107           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4108 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4109
4110 # Check whether --with-sdl was given.
4111 if test "${with_sdl+set}" = set; then
4112   withval=$with_sdl;
4113                         if test "$withval" = yes; then
4114                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4115                         else
4116                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4117                         fi
4118
4119 else
4120
4121                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4122
4123 fi
4124
4125
4126           eval "$wx_cv_use_sdl"
4127
4128           if test x"$withstring" = xwithout; then
4129             if test $wxUSE_LIBSDL = yes; then
4130               result=no
4131             else
4132               result=yes
4133             fi
4134           else
4135             result=$wxUSE_LIBSDL
4136           fi
4137
4138           { echo "$as_me:$LINENO: result: $result" >&5
4139 echo "${ECHO_T}$result" >&6; }
4140
4141
4142           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4143 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4144
4145 # Check whether --with-regex was given.
4146 if test "${with_regex+set}" = set; then
4147   withval=$with_regex;
4148                         if test "$withval" = yes; then
4149                           wx_cv_use_regex='wxUSE_REGEX=yes'
4150                         elif test "$withval" = no; then
4151                           wx_cv_use_regex='wxUSE_REGEX=no'
4152                         elif test "$withval" = sys; then
4153                           wx_cv_use_regex='wxUSE_REGEX=sys'
4154                         elif test "$withval" = builtin; then
4155                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4156                         else
4157                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4158 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4159    { (exit 1); exit 1; }; }
4160                         fi
4161
4162 else
4163
4164                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4165
4166 fi
4167
4168
4169           eval "$wx_cv_use_regex"
4170
4171           if test "$wxUSE_REGEX" = yes; then
4172             { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4174           elif test "$wxUSE_REGEX" = no; then
4175             { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4177           elif test "$wxUSE_REGEX" = sys; then
4178             { echo "$as_me:$LINENO: result: system version" >&5
4179 echo "${ECHO_T}system version" >&6; }
4180           elif test "$wxUSE_REGEX" = builtin; then
4181             { echo "$as_me:$LINENO: result: builtin version" >&5
4182 echo "${ECHO_T}builtin version" >&6; }
4183           else
4184             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4185 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4186    { (exit 1); exit 1; }; }
4187           fi
4188
4189
4190           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4191 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4192
4193 # Check whether --with-zlib was given.
4194 if test "${with_zlib+set}" = set; then
4195   withval=$with_zlib;
4196                         if test "$withval" = yes; then
4197                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4198                         elif test "$withval" = no; then
4199                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4200                         elif test "$withval" = sys; then
4201                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4202                         elif test "$withval" = builtin; then
4203                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4204                         else
4205                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4206 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4207    { (exit 1); exit 1; }; }
4208                         fi
4209
4210 else
4211
4212                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4213
4214 fi
4215
4216
4217           eval "$wx_cv_use_zlib"
4218
4219           if test "$wxUSE_ZLIB" = yes; then
4220             { echo "$as_me:$LINENO: result: yes" >&5
4221 echo "${ECHO_T}yes" >&6; }
4222           elif test "$wxUSE_ZLIB" = no; then
4223             { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4225           elif test "$wxUSE_ZLIB" = sys; then
4226             { echo "$as_me:$LINENO: result: system version" >&5
4227 echo "${ECHO_T}system version" >&6; }
4228           elif test "$wxUSE_ZLIB" = builtin; then
4229             { echo "$as_me:$LINENO: result: builtin version" >&5
4230 echo "${ECHO_T}builtin version" >&6; }
4231           else
4232             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4233 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4234    { (exit 1); exit 1; }; }
4235           fi
4236
4237
4238           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4239 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4240
4241 # Check whether --with-expat was given.
4242 if test "${with_expat+set}" = set; then
4243   withval=$with_expat;
4244                         if test "$withval" = yes; then
4245                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4246                         elif test "$withval" = no; then
4247                           wx_cv_use_expat='wxUSE_EXPAT=no'
4248                         elif test "$withval" = sys; then
4249                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4250                         elif test "$withval" = builtin; then
4251                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4252                         else
4253                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4254 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4255    { (exit 1); exit 1; }; }
4256                         fi
4257
4258 else
4259
4260                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4261
4262 fi
4263
4264
4265           eval "$wx_cv_use_expat"
4266
4267           if test "$wxUSE_EXPAT" = yes; then
4268             { echo "$as_me:$LINENO: result: yes" >&5
4269 echo "${ECHO_T}yes" >&6; }
4270           elif test "$wxUSE_EXPAT" = no; then
4271             { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273           elif test "$wxUSE_EXPAT" = sys; then
4274             { echo "$as_me:$LINENO: result: system version" >&5
4275 echo "${ECHO_T}system version" >&6; }
4276           elif test "$wxUSE_EXPAT" = builtin; then
4277             { echo "$as_me:$LINENO: result: builtin version" >&5
4278 echo "${ECHO_T}builtin version" >&6; }
4279           else
4280             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4281 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4282    { (exit 1); exit 1; }; }
4283           fi
4284
4285
4286 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4287 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4288
4289 # Check whether --with-macosx-sdk was given.
4290 if test "${with_macosx_sdk+set}" = set; then
4291   withval=$with_macosx_sdk;
4292         wxUSE_MACOSX_SDK=$withval
4293         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4294
4295 fi
4296
4297 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4298 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4299
4300 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4301 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4302
4303 # Check whether --with-macosx-version-min was given.
4304 if test "${with_macosx_version_min+set}" = set; then
4305   withval=$with_macosx_version_min;
4306         wxUSE_MACOSX_VERSION_MIN=$withval
4307         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4308
4309 fi
4310
4311 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4312 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4313
4314
4315
4316           enablestring=disable
4317           defaultval=
4318           if test -z "$defaultval"; then
4319               if test x"$enablestring" = xdisable; then
4320                   defaultval=yes
4321               else
4322                   defaultval=no
4323               fi
4324           fi
4325
4326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4327 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4328           # Check whether --enable-shared was given.
4329 if test "${enable_shared+set}" = set; then
4330   enableval=$enable_shared;
4331                           if test "$enableval" = yes; then
4332                             wx_cv_use_shared='wxUSE_SHARED=yes'
4333                           else
4334                             wx_cv_use_shared='wxUSE_SHARED=no'
4335                           fi
4336
4337 else
4338
4339                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4340
4341 fi
4342
4343
4344           eval "$wx_cv_use_shared"
4345
4346           if test x"$enablestring" = xdisable; then
4347             if test $wxUSE_SHARED = yes; then
4348               result=no
4349             else
4350               result=yes
4351             fi
4352           else
4353             result=$wxUSE_SHARED
4354           fi
4355
4356           { echo "$as_me:$LINENO: result: $result" >&5
4357 echo "${ECHO_T}$result" >&6; }
4358
4359
4360           enablestring=
4361           defaultval=
4362           if test -z "$defaultval"; then
4363               if test x"$enablestring" = xdisable; then
4364                   defaultval=yes
4365               else
4366                   defaultval=no
4367               fi
4368           fi
4369
4370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4371 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4372           # Check whether --enable-debug was given.
4373 if test "${enable_debug+set}" = set; then
4374   enableval=$enable_debug;
4375                           if test "$enableval" = yes; then
4376                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4377                           else
4378                             wx_cv_use_debug='wxUSE_DEBUG=no'
4379                           fi
4380
4381 else
4382
4383                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4384
4385 fi
4386
4387
4388           eval "$wx_cv_use_debug"
4389
4390           if test x"$enablestring" = xdisable; then
4391             if test $wxUSE_DEBUG = yes; then
4392               result=no
4393             else
4394               result=yes
4395             fi
4396           else
4397             result=$wxUSE_DEBUG
4398           fi
4399
4400           { echo "$as_me:$LINENO: result: $result" >&5
4401 echo "${ECHO_T}$result" >&6; }
4402
4403
4404           enablestring=
4405           defaultval=
4406           if test -z "$defaultval"; then
4407               if test x"$enablestring" = xdisable; then
4408                   defaultval=yes
4409               else
4410                   defaultval=no
4411               fi
4412           fi
4413
4414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4415 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4416           # Check whether --enable-stl was given.
4417 if test "${enable_stl+set}" = set; then
4418   enableval=$enable_stl;
4419                           if test "$enableval" = yes; then
4420                             wx_cv_use_stl='wxUSE_STL=yes'
4421                           else
4422                             wx_cv_use_stl='wxUSE_STL=no'
4423                           fi
4424
4425 else
4426
4427                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4428
4429 fi
4430
4431
4432           eval "$wx_cv_use_stl"
4433
4434           if test x"$enablestring" = xdisable; then
4435             if test $wxUSE_STL = yes; then
4436               result=no
4437             else
4438               result=yes
4439             fi
4440           else
4441             result=$wxUSE_STL
4442           fi
4443
4444           { echo "$as_me:$LINENO: result: $result" >&5
4445 echo "${ECHO_T}$result" >&6; }
4446
4447
4448           enablestring=
4449           defaultval=
4450           if test -z "$defaultval"; then
4451               if test x"$enablestring" = xdisable; then
4452                   defaultval=yes
4453               else
4454                   defaultval=no
4455               fi
4456           fi
4457
4458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4459 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4460           # Check whether --enable-std_iostreams was given.
4461 if test "${enable_std_iostreams+set}" = set; then
4462   enableval=$enable_std_iostreams;
4463                           if test "$enableval" = yes; then
4464                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4465                           else
4466                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4467                           fi
4468
4469 else
4470
4471                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4472
4473 fi
4474
4475
4476           eval "$wx_cv_use_std_iostreams"
4477
4478           if test x"$enablestring" = xdisable; then
4479             if test $wxUSE_STD_IOSTREAM = yes; then
4480               result=no
4481             else
4482               result=yes
4483             fi
4484           else
4485             result=$wxUSE_STD_IOSTREAM
4486           fi
4487
4488           { echo "$as_me:$LINENO: result: $result" >&5
4489 echo "${ECHO_T}$result" >&6; }
4490
4491
4492           enablestring=
4493           defaultval=
4494           if test -z "$defaultval"; then
4495               if test x"$enablestring" = xdisable; then
4496                   defaultval=yes
4497               else
4498                   defaultval=no
4499               fi
4500           fi
4501
4502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4503 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4504           # Check whether --enable-std_string was given.
4505 if test "${enable_std_string+set}" = set; then
4506   enableval=$enable_std_string;
4507                           if test "$enableval" = yes; then
4508                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4509                           else
4510                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4511                           fi
4512
4513 else
4514
4515                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4516
4517 fi
4518
4519
4520           eval "$wx_cv_use_std_string"
4521
4522           if test x"$enablestring" = xdisable; then
4523             if test $wxUSE_STD_STRING = yes; then
4524               result=no
4525             else
4526               result=yes
4527             fi
4528           else
4529             result=$wxUSE_STD_STRING
4530           fi
4531
4532           { echo "$as_me:$LINENO: result: $result" >&5
4533 echo "${ECHO_T}$result" >&6; }
4534
4535
4536           enablestring=disable
4537           defaultval=
4538           if test -z "$defaultval"; then
4539               if test x"$enablestring" = xdisable; then
4540                   defaultval=yes
4541               else
4542                   defaultval=no
4543               fi
4544           fi
4545
4546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4547 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4548           # Check whether --enable-unicode was given.
4549 if test "${enable_unicode+set}" = set; then
4550   enableval=$enable_unicode;
4551                           if test "$enableval" = yes; then
4552                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4553                           else
4554                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4555                           fi
4556
4557 else
4558
4559                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4560
4561 fi
4562
4563
4564           eval "$wx_cv_use_unicode"
4565
4566           if test x"$enablestring" = xdisable; then
4567             if test $wxUSE_UNICODE = yes; then
4568               result=no
4569             else
4570               result=yes
4571             fi
4572           else
4573             result=$wxUSE_UNICODE
4574           fi
4575
4576           { echo "$as_me:$LINENO: result: $result" >&5
4577 echo "${ECHO_T}$result" >&6; }
4578
4579
4580           enablestring=
4581           defaultval=
4582           if test -z "$defaultval"; then
4583               if test x"$enablestring" = xdisable; then
4584                   defaultval=yes
4585               else
4586                   defaultval=no
4587               fi
4588           fi
4589
4590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4591 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4592           # Check whether --enable-mslu was given.
4593 if test "${enable_mslu+set}" = set; then
4594   enableval=$enable_mslu;
4595                           if test "$enableval" = yes; then
4596                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4597                           else
4598                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4599                           fi
4600
4601 else
4602
4603                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4604
4605 fi
4606
4607
4608           eval "$wx_cv_use_mslu"
4609
4610           if test x"$enablestring" = xdisable; then
4611             if test $wxUSE_UNICODE_MSLU = yes; then
4612               result=no
4613             else
4614               result=yes
4615             fi
4616           else
4617             result=$wxUSE_UNICODE_MSLU
4618           fi
4619
4620           { echo "$as_me:$LINENO: result: $result" >&5
4621 echo "${ECHO_T}$result" >&6; }
4622
4623
4624           enablestring=
4625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4626 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4627           # Check whether --enable-utf8 was given.
4628 if test "${enable_utf8+set}" = set; then
4629   enableval=$enable_utf8;
4630                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4631
4632 else
4633
4634                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4635
4636 fi
4637
4638
4639           eval "$wx_cv_use_utf8"
4640
4641           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4642 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4643
4644
4645           enablestring=
4646           defaultval=
4647           if test -z "$defaultval"; then
4648               if test x"$enablestring" = xdisable; then
4649                   defaultval=yes
4650               else
4651                   defaultval=no
4652               fi
4653           fi
4654
4655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4656 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4657           # Check whether --enable-utf8only was given.
4658 if test "${enable_utf8only+set}" = set; then
4659   enableval=$enable_utf8only;
4660                           if test "$enableval" = yes; then
4661                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4662                           else
4663                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4664                           fi
4665
4666 else
4667
4668                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4669
4670 fi
4671
4672
4673           eval "$wx_cv_use_utf8only"
4674
4675           if test x"$enablestring" = xdisable; then
4676             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4677               result=no
4678             else
4679               result=yes
4680             fi
4681           else
4682             result=$wxUSE_UNICODE_UTF8_LOCALE
4683           fi
4684
4685           { echo "$as_me:$LINENO: result: $result" >&5
4686 echo "${ECHO_T}$result" >&6; }
4687
4688
4689           enablestring=
4690           defaultval=
4691           if test -z "$defaultval"; then
4692               if test x"$enablestring" = xdisable; then
4693                   defaultval=yes
4694               else
4695                   defaultval=no
4696               fi
4697           fi
4698
4699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4700 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4701           # Check whether --enable-extended_rtti was given.
4702 if test "${enable_extended_rtti+set}" = set; then
4703   enableval=$enable_extended_rtti;
4704                           if test "$enableval" = yes; then
4705                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4706                           else
4707                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4708                           fi
4709
4710 else
4711
4712                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4713
4714 fi
4715
4716
4717           eval "$wx_cv_use_extended_rtti"
4718
4719           if test x"$enablestring" = xdisable; then
4720             if test $wxUSE_EXTENDED_RTTI = yes; then
4721               result=no
4722             else
4723               result=yes
4724             fi
4725           else
4726             result=$wxUSE_EXTENDED_RTTI
4727           fi
4728
4729           { echo "$as_me:$LINENO: result: $result" >&5
4730 echo "${ECHO_T}$result" >&6; }
4731
4732 if test "$USE_OS2" = 1; then
4733     DEFAULT_wxUSE_OMF=no
4734
4735           enablestring=
4736           defaultval=
4737           if test -z "$defaultval"; then
4738               if test x"$enablestring" = xdisable; then
4739                   defaultval=yes
4740               else
4741                   defaultval=no
4742               fi
4743           fi
4744
4745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4746 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4747           # Check whether --enable-omf was given.
4748 if test "${enable_omf+set}" = set; then
4749   enableval=$enable_omf;
4750                           if test "$enableval" = yes; then
4751                             wx_cv_use_omf='wxUSE_OMF=yes'
4752                           else
4753                             wx_cv_use_omf='wxUSE_OMF=no'
4754                           fi
4755
4756 else
4757
4758                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4759
4760 fi
4761
4762
4763           eval "$wx_cv_use_omf"
4764
4765           if test x"$enablestring" = xdisable; then
4766             if test $wxUSE_OMF = yes; then
4767               result=no
4768             else
4769               result=yes
4770             fi
4771           else
4772             result=$wxUSE_OMF
4773           fi
4774
4775           { echo "$as_me:$LINENO: result: $result" >&5
4776 echo "${ECHO_T}$result" >&6; }
4777
4778 fi
4779
4780 if test "$wxUSE_DEBUG" = "yes"; then
4781     DEFAULT_wxUSE_DEBUG_FLAG=yes
4782     DEFAULT_wxUSE_DEBUG_INFO=yes
4783     BUILD=debug
4784 elif test "$wxUSE_DEBUG" = "no"; then
4785     DEFAULT_wxUSE_DEBUG_FLAG=no
4786     DEFAULT_wxUSE_DEBUG_INFO=no
4787     BUILD=release
4788 fi
4789
4790
4791           enablestring=
4792           defaultval=
4793           if test -z "$defaultval"; then
4794               if test x"$enablestring" = xdisable; then
4795                   defaultval=yes
4796               else
4797                   defaultval=no
4798               fi
4799           fi
4800
4801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4802 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4803           # Check whether --enable-debug_flag was given.
4804 if test "${enable_debug_flag+set}" = set; then
4805   enableval=$enable_debug_flag;
4806                           if test "$enableval" = yes; then
4807                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4808                           else
4809                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4810                           fi
4811
4812 else
4813
4814                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4815
4816 fi
4817
4818
4819           eval "$wx_cv_use_debug_flag"
4820
4821           if test x"$enablestring" = xdisable; then
4822             if test $wxUSE_DEBUG_FLAG = yes; then
4823               result=no
4824             else
4825               result=yes
4826             fi
4827           else
4828             result=$wxUSE_DEBUG_FLAG
4829           fi
4830
4831           { echo "$as_me:$LINENO: result: $result" >&5
4832 echo "${ECHO_T}$result" >&6; }
4833
4834
4835           enablestring=
4836           defaultval=
4837           if test -z "$defaultval"; then
4838               if test x"$enablestring" = xdisable; then
4839                   defaultval=yes
4840               else
4841                   defaultval=no
4842               fi
4843           fi
4844
4845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4846 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4847           # Check whether --enable-debug_info was given.
4848 if test "${enable_debug_info+set}" = set; then
4849   enableval=$enable_debug_info;
4850                           if test "$enableval" = yes; then
4851                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4852                           else
4853                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4854                           fi
4855
4856 else
4857
4858                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4859
4860 fi
4861
4862
4863           eval "$wx_cv_use_debug_info"
4864
4865           if test x"$enablestring" = xdisable; then
4866             if test $wxUSE_DEBUG_INFO = yes; then
4867               result=no
4868             else
4869               result=yes
4870             fi
4871           else
4872             result=$wxUSE_DEBUG_INFO
4873           fi
4874
4875           { echo "$as_me:$LINENO: result: $result" >&5
4876 echo "${ECHO_T}$result" >&6; }
4877
4878
4879 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4880     wxUSE_DEBUG=yes
4881     BUILD=debug
4882 fi
4883
4884 if test "$wxUSE_DEBUG" = "yes"; then
4885     DEFAULT_wxUSE_OPTIMISE=no
4886 fi
4887
4888
4889           enablestring=disable
4890           defaultval=
4891           if test -z "$defaultval"; then
4892               if test x"$enablestring" = xdisable; then
4893                   defaultval=yes
4894               else
4895                   defaultval=no
4896               fi
4897           fi
4898
4899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4900 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4901           # Check whether --enable-optimise was given.
4902 if test "${enable_optimise+set}" = set; then
4903   enableval=$enable_optimise;
4904                           if test "$enableval" = yes; then
4905                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4906                           else
4907                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4908                           fi
4909
4910 else
4911
4912                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4913
4914 fi
4915
4916
4917           eval "$wx_cv_use_optimise"
4918
4919           if test x"$enablestring" = xdisable; then
4920             if test $wxUSE_OPTIMISE = yes; then
4921               result=no
4922             else
4923               result=yes
4924             fi
4925           else
4926             result=$wxUSE_OPTIMISE
4927           fi
4928
4929           { echo "$as_me:$LINENO: result: $result" >&5
4930 echo "${ECHO_T}$result" >&6; }
4931
4932
4933
4934           enablestring=
4935           defaultval=
4936           if test -z "$defaultval"; then
4937               if test x"$enablestring" = xdisable; then
4938                   defaultval=yes
4939               else
4940                   defaultval=no
4941               fi
4942           fi
4943
4944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4945 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4946           # Check whether --enable-debug_gdb was given.
4947 if test "${enable_debug_gdb+set}" = set; then
4948   enableval=$enable_debug_gdb;
4949                           if test "$enableval" = yes; then
4950                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4951                           else
4952                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4953                           fi
4954
4955 else
4956
4957                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4958
4959 fi
4960
4961
4962           eval "$wx_cv_use_debug_gdb"
4963
4964           if test x"$enablestring" = xdisable; then
4965             if test $wxUSE_DEBUG_GDB = yes; then
4966               result=no
4967             else
4968               result=yes
4969             fi
4970           else
4971             result=$wxUSE_DEBUG_GDB
4972           fi
4973
4974           { echo "$as_me:$LINENO: result: $result" >&5
4975 echo "${ECHO_T}$result" >&6; }
4976
4977
4978           enablestring=
4979           defaultval=
4980           if test -z "$defaultval"; then
4981               if test x"$enablestring" = xdisable; then
4982                   defaultval=yes
4983               else
4984                   defaultval=no
4985               fi
4986           fi
4987
4988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4989 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4990           # Check whether --enable-debug_cntxt was given.
4991 if test "${enable_debug_cntxt+set}" = set; then
4992   enableval=$enable_debug_cntxt;
4993                           if test "$enableval" = yes; then
4994                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4995                           else
4996                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4997                           fi
4998
4999 else
5000
5001                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5002
5003 fi
5004
5005
5006           eval "$wx_cv_use_debug_cntxt"
5007
5008           if test x"$enablestring" = xdisable; then
5009             if test $wxUSE_DEBUG_CONTEXT = yes; then
5010               result=no
5011             else
5012               result=yes
5013             fi
5014           else
5015             result=$wxUSE_DEBUG_CONTEXT
5016           fi
5017
5018           { echo "$as_me:$LINENO: result: $result" >&5
5019 echo "${ECHO_T}$result" >&6; }
5020
5021
5022           enablestring=
5023           defaultval=
5024           if test -z "$defaultval"; then
5025               if test x"$enablestring" = xdisable; then
5026                   defaultval=yes
5027               else
5028                   defaultval=no
5029               fi
5030           fi
5031
5032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5033 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5034           # Check whether --enable-mem_tracing was given.
5035 if test "${enable_mem_tracing+set}" = set; then
5036   enableval=$enable_mem_tracing;
5037                           if test "$enableval" = yes; then
5038                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5039                           else
5040                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5041                           fi
5042
5043 else
5044
5045                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5046
5047 fi
5048
5049
5050           eval "$wx_cv_use_mem_tracing"
5051
5052           if test x"$enablestring" = xdisable; then
5053             if test $wxUSE_MEM_TRACING = yes; then
5054               result=no
5055             else
5056               result=yes
5057             fi
5058           else
5059             result=$wxUSE_MEM_TRACING
5060           fi
5061
5062           { echo "$as_me:$LINENO: result: $result" >&5
5063 echo "${ECHO_T}$result" >&6; }
5064
5065
5066           enablestring=
5067           defaultval=
5068           if test -z "$defaultval"; then
5069               if test x"$enablestring" = xdisable; then
5070                   defaultval=yes
5071               else
5072                   defaultval=no
5073               fi
5074           fi
5075
5076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5077 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5078           # Check whether --enable-profile was given.
5079 if test "${enable_profile+set}" = set; then
5080   enableval=$enable_profile;
5081                           if test "$enableval" = yes; then
5082                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5083                           else
5084                             wx_cv_use_profile='wxUSE_PROFILE=no'
5085                           fi
5086
5087 else
5088
5089                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5090
5091 fi
5092
5093
5094           eval "$wx_cv_use_profile"
5095
5096           if test x"$enablestring" = xdisable; then
5097             if test $wxUSE_PROFILE = yes; then
5098               result=no
5099             else
5100               result=yes
5101             fi
5102           else
5103             result=$wxUSE_PROFILE
5104           fi
5105
5106           { echo "$as_me:$LINENO: result: $result" >&5
5107 echo "${ECHO_T}$result" >&6; }
5108
5109
5110           enablestring=
5111           defaultval=
5112           if test -z "$defaultval"; then
5113               if test x"$enablestring" = xdisable; then
5114                   defaultval=yes
5115               else
5116                   defaultval=no
5117               fi
5118           fi
5119
5120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5121 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5122           # Check whether --enable-no_rtti was given.
5123 if test "${enable_no_rtti+set}" = set; then
5124   enableval=$enable_no_rtti;
5125                           if test "$enableval" = yes; then
5126                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5127                           else
5128                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5129                           fi
5130
5131 else
5132
5133                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5134
5135 fi
5136
5137
5138           eval "$wx_cv_use_no_rtti"
5139
5140           if test x"$enablestring" = xdisable; then
5141             if test $wxUSE_NO_RTTI = yes; then
5142               result=no
5143             else
5144               result=yes
5145             fi
5146           else
5147             result=$wxUSE_NO_RTTI
5148           fi
5149
5150           { echo "$as_me:$LINENO: result: $result" >&5
5151 echo "${ECHO_T}$result" >&6; }
5152
5153
5154           enablestring=
5155           defaultval=
5156           if test -z "$defaultval"; then
5157               if test x"$enablestring" = xdisable; then
5158                   defaultval=yes
5159               else
5160                   defaultval=no
5161               fi
5162           fi
5163
5164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5165 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5166           # Check whether --enable-no_exceptions was given.
5167 if test "${enable_no_exceptions+set}" = set; then
5168   enableval=$enable_no_exceptions;
5169                           if test "$enableval" = yes; then
5170                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5171                           else
5172                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5173                           fi
5174
5175 else
5176
5177                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5178
5179 fi
5180
5181
5182           eval "$wx_cv_use_no_exceptions"
5183
5184           if test x"$enablestring" = xdisable; then
5185             if test $wxUSE_NO_EXCEPTIONS = yes; then
5186               result=no
5187             else
5188               result=yes
5189             fi
5190           else
5191             result=$wxUSE_NO_EXCEPTIONS
5192           fi
5193
5194           { echo "$as_me:$LINENO: result: $result" >&5
5195 echo "${ECHO_T}$result" >&6; }
5196
5197
5198           enablestring=
5199           defaultval=
5200           if test -z "$defaultval"; then
5201               if test x"$enablestring" = xdisable; then
5202                   defaultval=yes
5203               else
5204                   defaultval=no
5205               fi
5206           fi
5207
5208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5209 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5210           # Check whether --enable-permissive was given.
5211 if test "${enable_permissive+set}" = set; then
5212   enableval=$enable_permissive;
5213                           if test "$enableval" = yes; then
5214                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5215                           else
5216                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5217                           fi
5218
5219 else
5220
5221                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5222
5223 fi
5224
5225
5226           eval "$wx_cv_use_permissive"
5227
5228           if test x"$enablestring" = xdisable; then
5229             if test $wxUSE_PERMISSIVE = yes; then
5230               result=no
5231             else
5232               result=yes
5233             fi
5234           else
5235             result=$wxUSE_PERMISSIVE
5236           fi
5237
5238           { echo "$as_me:$LINENO: result: $result" >&5
5239 echo "${ECHO_T}$result" >&6; }
5240
5241
5242           enablestring=
5243           defaultval=
5244           if test -z "$defaultval"; then
5245               if test x"$enablestring" = xdisable; then
5246                   defaultval=yes
5247               else
5248                   defaultval=no
5249               fi
5250           fi
5251
5252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5253 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5254           # Check whether --enable-no_deps was given.
5255 if test "${enable_no_deps+set}" = set; then
5256   enableval=$enable_no_deps;
5257                           if test "$enableval" = yes; then
5258                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5259                           else
5260                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5261                           fi
5262
5263 else
5264
5265                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5266
5267 fi
5268
5269
5270           eval "$wx_cv_use_no_deps"
5271
5272           if test x"$enablestring" = xdisable; then
5273             if test $wxUSE_NO_DEPS = yes; then
5274               result=no
5275             else
5276               result=yes
5277             fi
5278           else
5279             result=$wxUSE_NO_DEPS
5280           fi
5281
5282           { echo "$as_me:$LINENO: result: $result" >&5
5283 echo "${ECHO_T}$result" >&6; }
5284
5285
5286           enablestring=disable
5287           defaultval=
5288           if test -z "$defaultval"; then
5289               if test x"$enablestring" = xdisable; then
5290                   defaultval=yes
5291               else
5292                   defaultval=no
5293               fi
5294           fi
5295
5296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5297 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5298           # Check whether --enable-vararg_macros was given.
5299 if test "${enable_vararg_macros+set}" = set; then
5300   enableval=$enable_vararg_macros;
5301                           if test "$enableval" = yes; then
5302                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5303                           else
5304                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5305                           fi
5306
5307 else
5308
5309                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5310
5311 fi
5312
5313
5314           eval "$wx_cv_use_vararg_macros"
5315
5316           if test x"$enablestring" = xdisable; then
5317             if test $wxUSE_VARARG_MACROS = yes; then
5318               result=no
5319             else
5320               result=yes
5321             fi
5322           else
5323             result=$wxUSE_VARARG_MACROS
5324           fi
5325
5326           { echo "$as_me:$LINENO: result: $result" >&5
5327 echo "${ECHO_T}$result" >&6; }
5328
5329
5330           enablestring=
5331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5332 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5333           # Check whether --enable-universal_binary was given.
5334 if test "${enable_universal_binary+set}" = set; then
5335   enableval=$enable_universal_binary;
5336                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5337
5338 else
5339
5340                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5341
5342 fi
5343
5344
5345           eval "$wx_cv_use_universal_binary"
5346
5347           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5348 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5349
5350
5351
5352           enablestring=
5353           defaultval=
5354           if test -z "$defaultval"; then
5355               if test x"$enablestring" = xdisable; then
5356                   defaultval=yes
5357               else
5358                   defaultval=no
5359               fi
5360           fi
5361
5362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5363 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5364           # Check whether --enable-compat26 was given.
5365 if test "${enable_compat26+set}" = set; then
5366   enableval=$enable_compat26;
5367                           if test "$enableval" = yes; then
5368                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5369                           else
5370                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5371                           fi
5372
5373 else
5374
5375                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5376
5377 fi
5378
5379
5380           eval "$wx_cv_use_compat26"
5381
5382           if test x"$enablestring" = xdisable; then
5383             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5384               result=no
5385             else
5386               result=yes
5387             fi
5388           else
5389             result=$WXWIN_COMPATIBILITY_2_6
5390           fi
5391
5392           { echo "$as_me:$LINENO: result: $result" >&5
5393 echo "${ECHO_T}$result" >&6; }
5394
5395
5396           enablestring=disable
5397           defaultval=
5398           if test -z "$defaultval"; then
5399               if test x"$enablestring" = xdisable; then
5400                   defaultval=yes
5401               else
5402                   defaultval=no
5403               fi
5404           fi
5405
5406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5407 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5408           # Check whether --enable-compat28 was given.
5409 if test "${enable_compat28+set}" = set; then
5410   enableval=$enable_compat28;
5411                           if test "$enableval" = yes; then
5412                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5413                           else
5414                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5415                           fi
5416
5417 else
5418
5419                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5420
5421 fi
5422
5423
5424           eval "$wx_cv_use_compat28"
5425
5426           if test x"$enablestring" = xdisable; then
5427             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5428               result=no
5429             else
5430               result=yes
5431             fi
5432           else
5433             result=$WXWIN_COMPATIBILITY_2_8
5434           fi
5435
5436           { echo "$as_me:$LINENO: result: $result" >&5
5437 echo "${ECHO_T}$result" >&6; }
5438
5439
5440
5441           enablestring=disable
5442           defaultval=
5443           if test -z "$defaultval"; then
5444               if test x"$enablestring" = xdisable; then
5445                   defaultval=yes
5446               else
5447                   defaultval=no
5448               fi
5449           fi
5450
5451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5452 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5453           # Check whether --enable-rpath was given.
5454 if test "${enable_rpath+set}" = set; then
5455   enableval=$enable_rpath;
5456                           if test "$enableval" = yes; then
5457                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5458                           else
5459                             wx_cv_use_rpath='wxUSE_RPATH=no'
5460                           fi
5461
5462 else
5463
5464                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5465
5466 fi
5467
5468
5469           eval "$wx_cv_use_rpath"
5470
5471           if test x"$enablestring" = xdisable; then
5472             if test $wxUSE_RPATH = yes; then
5473               result=no
5474             else
5475               result=yes
5476             fi
5477           else
5478             result=$wxUSE_RPATH
5479           fi
5480
5481           { echo "$as_me:$LINENO: result: $result" >&5
5482 echo "${ECHO_T}$result" >&6; }
5483
5484
5485
5486           enablestring=
5487           defaultval=
5488           if test -z "$defaultval"; then
5489               if test x"$enablestring" = xdisable; then
5490                   defaultval=yes
5491               else
5492                   defaultval=no
5493               fi
5494           fi
5495
5496           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5497 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5498           # Check whether --enable-objc_uniquifying was given.
5499 if test "${enable_objc_uniquifying+set}" = set; then
5500   enableval=$enable_objc_uniquifying;
5501                           if test "$enableval" = yes; then
5502                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5503                           else
5504                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5505                           fi
5506
5507 else
5508
5509                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5510
5511 fi
5512
5513
5514           eval "$wx_cv_use_objc_uniquifying"
5515
5516           if test x"$enablestring" = xdisable; then
5517             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5518               result=no
5519             else
5520               result=yes
5521             fi
5522           else
5523             result=$wxUSE_OBJC_UNIQUIFYING
5524           fi
5525
5526           { echo "$as_me:$LINENO: result: $result" >&5
5527 echo "${ECHO_T}$result" >&6; }
5528
5529
5530
5531           enablestring=disable
5532           defaultval=
5533           if test -z "$defaultval"; then
5534               if test x"$enablestring" = xdisable; then
5535                   defaultval=yes
5536               else
5537                   defaultval=no
5538               fi
5539           fi
5540
5541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5542 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5543           # Check whether --enable-visibility was given.
5544 if test "${enable_visibility+set}" = set; then
5545   enableval=$enable_visibility;
5546                           if test "$enableval" = yes; then
5547                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5548                           else
5549                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5550                           fi
5551
5552 else
5553
5554                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5555
5556 fi
5557
5558
5559           eval "$wx_cv_use_visibility"
5560
5561           if test x"$enablestring" = xdisable; then
5562             if test $wxUSE_VISIBILITY = yes; then
5563               result=no
5564             else
5565               result=yes
5566             fi
5567           else
5568             result=$wxUSE_VISIBILITY
5569           fi
5570
5571           { echo "$as_me:$LINENO: result: $result" >&5
5572 echo "${ECHO_T}$result" >&6; }
5573
5574
5575
5576
5577           enablestring=
5578           defaultval=$wxUSE_ALL_FEATURES
5579           if test -z "$defaultval"; then
5580               if test x"$enablestring" = xdisable; then
5581                   defaultval=yes
5582               else
5583                   defaultval=no
5584               fi
5585           fi
5586
5587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5589           # Check whether --enable-intl was given.
5590 if test "${enable_intl+set}" = set; then
5591   enableval=$enable_intl;
5592                           if test "$enableval" = yes; then
5593                             wx_cv_use_intl='wxUSE_INTL=yes'
5594                           else
5595                             wx_cv_use_intl='wxUSE_INTL=no'
5596                           fi
5597
5598 else
5599
5600                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5601
5602 fi
5603
5604
5605           eval "$wx_cv_use_intl"
5606
5607           if test x"$enablestring" = xdisable; then
5608             if test $wxUSE_INTL = yes; then
5609               result=no
5610             else
5611               result=yes
5612             fi
5613           else
5614             result=$wxUSE_INTL
5615           fi
5616
5617           { echo "$as_me:$LINENO: result: $result" >&5
5618 echo "${ECHO_T}$result" >&6; }
5619
5620
5621           enablestring=
5622           defaultval=$wxUSE_ALL_FEATURES
5623           if test -z "$defaultval"; then
5624               if test x"$enablestring" = xdisable; then
5625                   defaultval=yes
5626               else
5627                   defaultval=no
5628               fi
5629           fi
5630
5631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5632 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5633           # Check whether --enable-xlocale was given.
5634 if test "${enable_xlocale+set}" = set; then
5635   enableval=$enable_xlocale;
5636                           if test "$enableval" = yes; then
5637                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5638                           else
5639                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5640                           fi
5641
5642 else
5643
5644                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5645
5646 fi
5647
5648
5649           eval "$wx_cv_use_xlocale"
5650
5651           if test x"$enablestring" = xdisable; then
5652             if test $wxUSE_XLOCALE = yes; then
5653               result=no
5654             else
5655               result=yes
5656             fi
5657           else
5658             result=$wxUSE_XLOCALE
5659           fi
5660
5661           { echo "$as_me:$LINENO: result: $result" >&5
5662 echo "${ECHO_T}$result" >&6; }
5663
5664
5665           enablestring=
5666           defaultval=$wxUSE_ALL_FEATURES
5667           if test -z "$defaultval"; then
5668               if test x"$enablestring" = xdisable; then
5669                   defaultval=yes
5670               else
5671                   defaultval=no
5672               fi
5673           fi
5674
5675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5676 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5677           # Check whether --enable-config was given.
5678 if test "${enable_config+set}" = set; then
5679   enableval=$enable_config;
5680                           if test "$enableval" = yes; then
5681                             wx_cv_use_config='wxUSE_CONFIG=yes'
5682                           else
5683                             wx_cv_use_config='wxUSE_CONFIG=no'
5684                           fi
5685
5686 else
5687
5688                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5689
5690 fi
5691
5692
5693           eval "$wx_cv_use_config"
5694
5695           if test x"$enablestring" = xdisable; then
5696             if test $wxUSE_CONFIG = yes; then
5697               result=no
5698             else
5699               result=yes
5700             fi
5701           else
5702             result=$wxUSE_CONFIG
5703           fi
5704
5705           { echo "$as_me:$LINENO: result: $result" >&5
5706 echo "${ECHO_T}$result" >&6; }
5707
5708
5709
5710           enablestring=
5711           defaultval=$wxUSE_ALL_FEATURES
5712           if test -z "$defaultval"; then
5713               if test x"$enablestring" = xdisable; then
5714                   defaultval=yes
5715               else
5716                   defaultval=no
5717               fi
5718           fi
5719
5720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5721 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5722           # Check whether --enable-protocols was given.
5723 if test "${enable_protocols+set}" = set; then
5724   enableval=$enable_protocols;
5725                           if test "$enableval" = yes; then
5726                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5727                           else
5728                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5729                           fi
5730
5731 else
5732
5733                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5734
5735 fi
5736
5737
5738           eval "$wx_cv_use_protocols"
5739
5740           if test x"$enablestring" = xdisable; then
5741             if test $wxUSE_PROTOCOL = yes; then
5742               result=no
5743             else
5744               result=yes
5745             fi
5746           else
5747             result=$wxUSE_PROTOCOL
5748           fi
5749
5750           { echo "$as_me:$LINENO: result: $result" >&5
5751 echo "${ECHO_T}$result" >&6; }
5752
5753
5754           enablestring=
5755           defaultval=$wxUSE_ALL_FEATURES
5756           if test -z "$defaultval"; then
5757               if test x"$enablestring" = xdisable; then
5758                   defaultval=yes
5759               else
5760                   defaultval=no
5761               fi
5762           fi
5763
5764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5765 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5766           # Check whether --enable-ftp was given.
5767 if test "${enable_ftp+set}" = set; then
5768   enableval=$enable_ftp;
5769                           if test "$enableval" = yes; then
5770                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5771                           else
5772                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5773                           fi
5774
5775 else
5776
5777                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5778
5779 fi
5780
5781
5782           eval "$wx_cv_use_ftp"
5783
5784           if test x"$enablestring" = xdisable; then
5785             if test $wxUSE_PROTOCOL_FTP = yes; then
5786               result=no
5787             else
5788               result=yes
5789             fi
5790           else
5791             result=$wxUSE_PROTOCOL_FTP
5792           fi
5793
5794           { echo "$as_me:$LINENO: result: $result" >&5
5795 echo "${ECHO_T}$result" >&6; }
5796
5797
5798           enablestring=
5799           defaultval=$wxUSE_ALL_FEATURES
5800           if test -z "$defaultval"; then
5801               if test x"$enablestring" = xdisable; then
5802                   defaultval=yes
5803               else
5804                   defaultval=no
5805               fi
5806           fi
5807
5808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5809 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5810           # Check whether --enable-http was given.
5811 if test "${enable_http+set}" = set; then
5812   enableval=$enable_http;
5813                           if test "$enableval" = yes; then
5814                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5815                           else
5816                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5817                           fi
5818
5819 else
5820
5821                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5822
5823 fi
5824
5825
5826           eval "$wx_cv_use_http"
5827
5828           if test x"$enablestring" = xdisable; then
5829             if test $wxUSE_PROTOCOL_HTTP = yes; then
5830               result=no
5831             else
5832               result=yes
5833             fi
5834           else
5835             result=$wxUSE_PROTOCOL_HTTP
5836           fi
5837
5838           { echo "$as_me:$LINENO: result: $result" >&5
5839 echo "${ECHO_T}$result" >&6; }
5840
5841
5842           enablestring=
5843           defaultval=$wxUSE_ALL_FEATURES
5844           if test -z "$defaultval"; then
5845               if test x"$enablestring" = xdisable; then
5846                   defaultval=yes
5847               else
5848                   defaultval=no
5849               fi
5850           fi
5851
5852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5853 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5854           # Check whether --enable-fileproto was given.
5855 if test "${enable_fileproto+set}" = set; then
5856   enableval=$enable_fileproto;
5857                           if test "$enableval" = yes; then
5858                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5859                           else
5860                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5861                           fi
5862
5863 else
5864
5865                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5866
5867 fi
5868
5869
5870           eval "$wx_cv_use_fileproto"
5871
5872           if test x"$enablestring" = xdisable; then
5873             if test $wxUSE_PROTOCOL_FILE = yes; then
5874               result=no
5875             else
5876               result=yes
5877             fi
5878           else
5879             result=$wxUSE_PROTOCOL_FILE
5880           fi
5881
5882           { echo "$as_me:$LINENO: result: $result" >&5
5883 echo "${ECHO_T}$result" >&6; }
5884
5885
5886           enablestring=
5887           defaultval=$wxUSE_ALL_FEATURES
5888           if test -z "$defaultval"; then
5889               if test x"$enablestring" = xdisable; then
5890                   defaultval=yes
5891               else
5892                   defaultval=no
5893               fi
5894           fi
5895
5896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5897 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5898           # Check whether --enable-sockets was given.
5899 if test "${enable_sockets+set}" = set; then
5900   enableval=$enable_sockets;
5901                           if test "$enableval" = yes; then
5902                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5903                           else
5904                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5905                           fi
5906
5907 else
5908
5909                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5910
5911 fi
5912
5913
5914           eval "$wx_cv_use_sockets"
5915
5916           if test x"$enablestring" = xdisable; then
5917             if test $wxUSE_SOCKETS = yes; then
5918               result=no
5919             else
5920               result=yes
5921             fi
5922           else
5923             result=$wxUSE_SOCKETS
5924           fi
5925
5926           { echo "$as_me:$LINENO: result: $result" >&5
5927 echo "${ECHO_T}$result" >&6; }
5928
5929
5930           enablestring=
5931           defaultval=$wxUSE_ALL_FEATURES
5932           if test -z "$defaultval"; then
5933               if test x"$enablestring" = xdisable; then
5934                   defaultval=yes
5935               else
5936                   defaultval=no
5937               fi
5938           fi
5939
5940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5941 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5942           # Check whether --enable-ipv6 was given.
5943 if test "${enable_ipv6+set}" = set; then
5944   enableval=$enable_ipv6;
5945                           if test "$enableval" = yes; then
5946                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5947                           else
5948                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5949                           fi
5950
5951 else
5952
5953                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5954
5955 fi
5956
5957
5958           eval "$wx_cv_use_ipv6"
5959
5960           if test x"$enablestring" = xdisable; then
5961             if test $wxUSE_IPV6 = yes; then
5962               result=no
5963             else
5964               result=yes
5965             fi
5966           else
5967             result=$wxUSE_IPV6
5968           fi
5969
5970           { echo "$as_me:$LINENO: result: $result" >&5
5971 echo "${ECHO_T}$result" >&6; }
5972
5973
5974           enablestring=
5975           defaultval=$wxUSE_ALL_FEATURES
5976           if test -z "$defaultval"; then
5977               if test x"$enablestring" = xdisable; then
5978                   defaultval=yes
5979               else
5980                   defaultval=no
5981               fi
5982           fi
5983
5984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5985 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5986           # Check whether --enable-ole was given.
5987 if test "${enable_ole+set}" = set; then
5988   enableval=$enable_ole;
5989                           if test "$enableval" = yes; then
5990                             wx_cv_use_ole='wxUSE_OLE=yes'
5991                           else
5992                             wx_cv_use_ole='wxUSE_OLE=no'
5993                           fi
5994
5995 else
5996
5997                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
5998
5999 fi
6000
6001
6002           eval "$wx_cv_use_ole"
6003
6004           if test x"$enablestring" = xdisable; then
6005             if test $wxUSE_OLE = yes; then
6006               result=no
6007             else
6008               result=yes
6009             fi
6010           else
6011             result=$wxUSE_OLE
6012           fi
6013
6014           { echo "$as_me:$LINENO: result: $result" >&5
6015 echo "${ECHO_T}$result" >&6; }
6016
6017
6018           enablestring=
6019           defaultval=$wxUSE_ALL_FEATURES
6020           if test -z "$defaultval"; then
6021               if test x"$enablestring" = xdisable; then
6022                   defaultval=yes
6023               else
6024                   defaultval=no
6025               fi
6026           fi
6027
6028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6029 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6030           # Check whether --enable-dataobj was given.
6031 if test "${enable_dataobj+set}" = set; then
6032   enableval=$enable_dataobj;
6033                           if test "$enableval" = yes; then
6034                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6035                           else
6036                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6037                           fi
6038
6039 else
6040
6041                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6042
6043 fi
6044
6045
6046           eval "$wx_cv_use_dataobj"
6047
6048           if test x"$enablestring" = xdisable; then
6049             if test $wxUSE_DATAOBJ = yes; then
6050               result=no
6051             else
6052               result=yes
6053             fi
6054           else
6055             result=$wxUSE_DATAOBJ
6056           fi
6057
6058           { echo "$as_me:$LINENO: result: $result" >&5
6059 echo "${ECHO_T}$result" >&6; }
6060
6061
6062
6063           enablestring=
6064           defaultval=$wxUSE_ALL_FEATURES
6065           if test -z "$defaultval"; then
6066               if test x"$enablestring" = xdisable; then
6067                   defaultval=yes
6068               else
6069                   defaultval=no
6070               fi
6071           fi
6072
6073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6074 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6075           # Check whether --enable-ipc was given.
6076 if test "${enable_ipc+set}" = set; then
6077   enableval=$enable_ipc;
6078                           if test "$enableval" = yes; then
6079                             wx_cv_use_ipc='wxUSE_IPC=yes'
6080                           else
6081                             wx_cv_use_ipc='wxUSE_IPC=no'
6082                           fi
6083
6084 else
6085
6086                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6087
6088 fi
6089
6090
6091           eval "$wx_cv_use_ipc"
6092
6093           if test x"$enablestring" = xdisable; then
6094             if test $wxUSE_IPC = yes; then
6095               result=no
6096             else
6097               result=yes
6098             fi
6099           else
6100             result=$wxUSE_IPC
6101           fi
6102
6103           { echo "$as_me:$LINENO: result: $result" >&5
6104 echo "${ECHO_T}$result" >&6; }
6105
6106
6107
6108           enablestring=
6109           defaultval=$wxUSE_ALL_FEATURES
6110           if test -z "$defaultval"; then
6111               if test x"$enablestring" = xdisable; then
6112                   defaultval=yes
6113               else
6114                   defaultval=no
6115               fi
6116           fi
6117
6118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6119 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6120           # Check whether --enable-baseevtloop was given.
6121 if test "${enable_baseevtloop+set}" = set; then
6122   enableval=$enable_baseevtloop;
6123                           if test "$enableval" = yes; then
6124                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6125                           else
6126                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6127                           fi
6128
6129 else
6130
6131                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6132
6133 fi
6134
6135
6136           eval "$wx_cv_use_baseevtloop"
6137
6138           if test x"$enablestring" = xdisable; then
6139             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6140               result=no
6141             else
6142               result=yes
6143             fi
6144           else
6145             result=$wxUSE_CONSOLE_EVENTLOOP
6146           fi
6147
6148           { echo "$as_me:$LINENO: result: $result" >&5
6149 echo "${ECHO_T}$result" >&6; }
6150
6151
6152           enablestring=
6153           defaultval=$wxUSE_ALL_FEATURES
6154           if test -z "$defaultval"; then
6155               if test x"$enablestring" = xdisable; then
6156                   defaultval=yes
6157               else
6158                   defaultval=no
6159               fi
6160           fi
6161
6162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6163 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6164           # Check whether --enable-epollloop was given.
6165 if test "${enable_epollloop+set}" = set; then
6166   enableval=$enable_epollloop;
6167                           if test "$enableval" = yes; then
6168                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6169                           else
6170                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6171                           fi
6172
6173 else
6174
6175                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6176
6177 fi
6178
6179
6180           eval "$wx_cv_use_epollloop"
6181
6182           if test x"$enablestring" = xdisable; then
6183             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6184               result=no
6185             else
6186               result=yes
6187             fi
6188           else
6189             result=$wxUSE_EPOLL_DISPATCHER
6190           fi
6191
6192           { echo "$as_me:$LINENO: result: $result" >&5
6193 echo "${ECHO_T}$result" >&6; }
6194
6195
6196           enablestring=
6197           defaultval=$wxUSE_ALL_FEATURES
6198           if test -z "$defaultval"; then
6199               if test x"$enablestring" = xdisable; then
6200                   defaultval=yes
6201               else
6202                   defaultval=no
6203               fi
6204           fi
6205
6206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6207 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6208           # Check whether --enable-selectloop was given.
6209 if test "${enable_selectloop+set}" = set; then
6210   enableval=$enable_selectloop;
6211                           if test "$enableval" = yes; then
6212                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6213                           else
6214                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6215                           fi
6216
6217 else
6218
6219                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6220
6221 fi
6222
6223
6224           eval "$wx_cv_use_selectloop"
6225
6226           if test x"$enablestring" = xdisable; then
6227             if test $wxUSE_SELECT_DISPATCHER = yes; then
6228               result=no
6229             else
6230               result=yes
6231             fi
6232           else
6233             result=$wxUSE_SELECT_DISPATCHER
6234           fi
6235
6236           { echo "$as_me:$LINENO: result: $result" >&5
6237 echo "${ECHO_T}$result" >&6; }
6238
6239
6240
6241           enablestring=
6242           defaultval=$wxUSE_ALL_FEATURES
6243           if test -z "$defaultval"; then
6244               if test x"$enablestring" = xdisable; then
6245                   defaultval=yes
6246               else
6247                   defaultval=no
6248               fi
6249           fi
6250
6251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6252 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6253           # Check whether --enable-apple_ieee was given.
6254 if test "${enable_apple_ieee+set}" = set; then
6255   enableval=$enable_apple_ieee;
6256                           if test "$enableval" = yes; then
6257                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6258                           else
6259                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6260                           fi
6261
6262 else
6263
6264                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6265
6266 fi
6267
6268
6269           eval "$wx_cv_use_apple_ieee"
6270
6271           if test x"$enablestring" = xdisable; then
6272             if test $wxUSE_APPLE_IEEE = yes; then
6273               result=no
6274             else
6275               result=yes
6276             fi
6277           else
6278             result=$wxUSE_APPLE_IEEE
6279           fi
6280
6281           { echo "$as_me:$LINENO: result: $result" >&5
6282 echo "${ECHO_T}$result" >&6; }
6283
6284
6285           enablestring=
6286           defaultval=$wxUSE_ALL_FEATURES
6287           if test -z "$defaultval"; then
6288               if test x"$enablestring" = xdisable; then
6289                   defaultval=yes
6290               else
6291                   defaultval=no
6292               fi
6293           fi
6294
6295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6296 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6297           # Check whether --enable-arcstream was given.
6298 if test "${enable_arcstream+set}" = set; then
6299   enableval=$enable_arcstream;
6300                           if test "$enableval" = yes; then
6301                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6302                           else
6303                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6304                           fi
6305
6306 else
6307
6308                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6309
6310 fi
6311
6312
6313           eval "$wx_cv_use_arcstream"
6314
6315           if test x"$enablestring" = xdisable; then
6316             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6317               result=no
6318             else
6319               result=yes
6320             fi
6321           else
6322             result=$wxUSE_ARCHIVE_STREAMS
6323           fi
6324
6325           { echo "$as_me:$LINENO: result: $result" >&5
6326 echo "${ECHO_T}$result" >&6; }
6327
6328
6329           enablestring=
6330           defaultval=$wxUSE_ALL_FEATURES
6331           if test -z "$defaultval"; then
6332               if test x"$enablestring" = xdisable; then
6333                   defaultval=yes
6334               else
6335                   defaultval=no
6336               fi
6337           fi
6338
6339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6340 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6341           # Check whether --enable-base64 was given.
6342 if test "${enable_base64+set}" = set; then
6343   enableval=$enable_base64;
6344                           if test "$enableval" = yes; then
6345                             wx_cv_use_base64='wxUSE_BASE64=yes'
6346                           else
6347                             wx_cv_use_base64='wxUSE_BASE64=no'
6348                           fi
6349
6350 else
6351
6352                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6353
6354 fi
6355
6356
6357           eval "$wx_cv_use_base64"
6358
6359           if test x"$enablestring" = xdisable; then
6360             if test $wxUSE_BASE64 = yes; then
6361               result=no
6362             else
6363               result=yes
6364             fi
6365           else
6366             result=$wxUSE_BASE64
6367           fi
6368
6369           { echo "$as_me:$LINENO: result: $result" >&5
6370 echo "${ECHO_T}$result" >&6; }
6371
6372
6373           enablestring=
6374           defaultval=$wxUSE_ALL_FEATURES
6375           if test -z "$defaultval"; then
6376               if test x"$enablestring" = xdisable; then
6377                   defaultval=yes
6378               else
6379                   defaultval=no
6380               fi
6381           fi
6382
6383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6384 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6385           # Check whether --enable-backtrace was given.
6386 if test "${enable_backtrace+set}" = set; then
6387   enableval=$enable_backtrace;
6388                           if test "$enableval" = yes; then
6389                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6390                           else
6391                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6392                           fi
6393
6394 else
6395
6396                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6397
6398 fi
6399
6400
6401           eval "$wx_cv_use_backtrace"
6402
6403           if test x"$enablestring" = xdisable; then
6404             if test $wxUSE_STACKWALKER = yes; then
6405               result=no
6406             else
6407               result=yes
6408             fi
6409           else
6410             result=$wxUSE_STACKWALKER
6411           fi
6412
6413           { echo "$as_me:$LINENO: result: $result" >&5
6414 echo "${ECHO_T}$result" >&6; }
6415
6416
6417           enablestring=
6418           defaultval=$wxUSE_ALL_FEATURES
6419           if test -z "$defaultval"; then
6420               if test x"$enablestring" = xdisable; then
6421                   defaultval=yes
6422               else
6423                   defaultval=no
6424               fi
6425           fi
6426
6427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6428 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6429           # Check whether --enable-catch_segvs was given.
6430 if test "${enable_catch_segvs+set}" = set; then
6431   enableval=$enable_catch_segvs;
6432                           if test "$enableval" = yes; then
6433                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6434                           else
6435                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6436                           fi
6437
6438 else
6439
6440                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6441
6442 fi
6443
6444
6445           eval "$wx_cv_use_catch_segvs"
6446
6447           if test x"$enablestring" = xdisable; then
6448             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6449               result=no
6450             else
6451               result=yes
6452             fi
6453           else
6454             result=$wxUSE_ON_FATAL_EXCEPTION
6455           fi
6456
6457           { echo "$as_me:$LINENO: result: $result" >&5
6458 echo "${ECHO_T}$result" >&6; }
6459
6460
6461           enablestring=
6462           defaultval=$wxUSE_ALL_FEATURES
6463           if test -z "$defaultval"; then
6464               if test x"$enablestring" = xdisable; then
6465                   defaultval=yes
6466               else
6467                   defaultval=no
6468               fi
6469           fi
6470
6471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6472 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6473           # Check whether --enable-cmdline was given.
6474 if test "${enable_cmdline+set}" = set; then
6475   enableval=$enable_cmdline;
6476                           if test "$enableval" = yes; then
6477                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6478                           else
6479                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6480                           fi
6481
6482 else
6483
6484                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6485
6486 fi
6487
6488
6489           eval "$wx_cv_use_cmdline"
6490
6491           if test x"$enablestring" = xdisable; then
6492             if test $wxUSE_CMDLINE_PARSER = yes; then
6493               result=no
6494             else
6495               result=yes
6496             fi
6497           else
6498             result=$wxUSE_CMDLINE_PARSER
6499           fi
6500
6501           { echo "$as_me:$LINENO: result: $result" >&5
6502 echo "${ECHO_T}$result" >&6; }
6503
6504
6505           enablestring=
6506           defaultval=$wxUSE_ALL_FEATURES
6507           if test -z "$defaultval"; then
6508               if test x"$enablestring" = xdisable; then
6509                   defaultval=yes
6510               else
6511                   defaultval=no
6512               fi
6513           fi
6514
6515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6516 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6517           # Check whether --enable-datetime was given.
6518 if test "${enable_datetime+set}" = set; then
6519   enableval=$enable_datetime;
6520                           if test "$enableval" = yes; then
6521                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6522                           else
6523                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6524                           fi
6525
6526 else
6527
6528                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6529
6530 fi
6531
6532
6533           eval "$wx_cv_use_datetime"
6534
6535           if test x"$enablestring" = xdisable; then
6536             if test $wxUSE_DATETIME = yes; then
6537               result=no
6538             else
6539               result=yes
6540             fi
6541           else
6542             result=$wxUSE_DATETIME
6543           fi
6544
6545           { echo "$as_me:$LINENO: result: $result" >&5
6546 echo "${ECHO_T}$result" >&6; }
6547
6548
6549           enablestring=
6550           defaultval=$wxUSE_ALL_FEATURES
6551           if test -z "$defaultval"; then
6552               if test x"$enablestring" = xdisable; then
6553                   defaultval=yes
6554               else
6555                   defaultval=no
6556               fi
6557           fi
6558
6559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6560 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6561           # Check whether --enable-debugreport was given.
6562 if test "${enable_debugreport+set}" = set; then
6563   enableval=$enable_debugreport;
6564                           if test "$enableval" = yes; then
6565                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6566                           else
6567                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6568                           fi
6569
6570 else
6571
6572                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6573
6574 fi
6575
6576
6577           eval "$wx_cv_use_debugreport"
6578
6579           if test x"$enablestring" = xdisable; then
6580             if test $wxUSE_DEBUGREPORT = yes; then
6581               result=no
6582             else
6583               result=yes
6584             fi
6585           else
6586             result=$wxUSE_DEBUGREPORT
6587           fi
6588
6589           { echo "$as_me:$LINENO: result: $result" >&5
6590 echo "${ECHO_T}$result" >&6; }
6591
6592
6593           enablestring=
6594           defaultval=$wxUSE_ALL_FEATURES
6595           if test -z "$defaultval"; then
6596               if test x"$enablestring" = xdisable; then
6597                   defaultval=yes
6598               else
6599                   defaultval=no
6600               fi
6601           fi
6602
6603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6604 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6605           # Check whether --enable-dialupman was given.
6606 if test "${enable_dialupman+set}" = set; then
6607   enableval=$enable_dialupman;
6608                           if test "$enableval" = yes; then
6609                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6610                           else
6611                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6612                           fi
6613
6614 else
6615
6616                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6617
6618 fi
6619
6620
6621           eval "$wx_cv_use_dialupman"
6622
6623           if test x"$enablestring" = xdisable; then
6624             if test $wxUSE_DIALUP_MANAGER = yes; then
6625               result=no
6626             else
6627               result=yes
6628             fi
6629           else
6630             result=$wxUSE_DIALUP_MANAGER
6631           fi
6632
6633           { echo "$as_me:$LINENO: result: $result" >&5
6634 echo "${ECHO_T}$result" >&6; }
6635
6636
6637           enablestring=
6638           defaultval=$wxUSE_ALL_FEATURES
6639           if test -z "$defaultval"; then
6640               if test x"$enablestring" = xdisable; then
6641                   defaultval=yes
6642               else
6643                   defaultval=no
6644               fi
6645           fi
6646
6647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6648 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6649           # Check whether --enable-dynlib was given.
6650 if test "${enable_dynlib+set}" = set; then
6651   enableval=$enable_dynlib;
6652                           if test "$enableval" = yes; then
6653                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6654                           else
6655                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6656                           fi
6657
6658 else
6659
6660                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6661
6662 fi
6663
6664
6665           eval "$wx_cv_use_dynlib"
6666
6667           if test x"$enablestring" = xdisable; then
6668             if test $wxUSE_DYNLIB_CLASS = yes; then
6669               result=no
6670             else
6671               result=yes
6672             fi
6673           else
6674             result=$wxUSE_DYNLIB_CLASS
6675           fi
6676
6677           { echo "$as_me:$LINENO: result: $result" >&5
6678 echo "${ECHO_T}$result" >&6; }
6679
6680
6681           enablestring=
6682           defaultval=$wxUSE_ALL_FEATURES
6683           if test -z "$defaultval"; then
6684               if test x"$enablestring" = xdisable; then
6685                   defaultval=yes
6686               else
6687                   defaultval=no
6688               fi
6689           fi
6690
6691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6692 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6693           # Check whether --enable-dynamicloader was given.
6694 if test "${enable_dynamicloader+set}" = set; then
6695   enableval=$enable_dynamicloader;
6696                           if test "$enableval" = yes; then
6697                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6698                           else
6699                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6700                           fi
6701
6702 else
6703
6704                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6705
6706 fi
6707
6708
6709           eval "$wx_cv_use_dynamicloader"
6710
6711           if test x"$enablestring" = xdisable; then
6712             if test $wxUSE_DYNAMIC_LOADER = yes; then
6713               result=no
6714             else
6715               result=yes
6716             fi
6717           else
6718             result=$wxUSE_DYNAMIC_LOADER
6719           fi
6720
6721           { echo "$as_me:$LINENO: result: $result" >&5
6722 echo "${ECHO_T}$result" >&6; }
6723
6724
6725           enablestring=
6726           defaultval=$wxUSE_ALL_FEATURES
6727           if test -z "$defaultval"; then
6728               if test x"$enablestring" = xdisable; then
6729                   defaultval=yes
6730               else
6731                   defaultval=no
6732               fi
6733           fi
6734
6735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6736 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6737           # Check whether --enable-exceptions was given.
6738 if test "${enable_exceptions+set}" = set; then
6739   enableval=$enable_exceptions;
6740                           if test "$enableval" = yes; then
6741                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6742                           else
6743                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6744                           fi
6745
6746 else
6747
6748                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6749
6750 fi
6751
6752
6753           eval "$wx_cv_use_exceptions"
6754
6755           if test x"$enablestring" = xdisable; then
6756             if test $wxUSE_EXCEPTIONS = yes; then
6757               result=no
6758             else
6759               result=yes
6760             fi
6761           else
6762             result=$wxUSE_EXCEPTIONS
6763           fi
6764
6765           { echo "$as_me:$LINENO: result: $result" >&5
6766 echo "${ECHO_T}$result" >&6; }
6767
6768
6769           enablestring=
6770           defaultval=$wxUSE_ALL_FEATURES
6771           if test -z "$defaultval"; then
6772               if test x"$enablestring" = xdisable; then
6773                   defaultval=yes
6774               else
6775                   defaultval=no
6776               fi
6777           fi
6778
6779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6780 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6781           # Check whether --enable-ffile was given.
6782 if test "${enable_ffile+set}" = set; then
6783   enableval=$enable_ffile;
6784                           if test "$enableval" = yes; then
6785                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6786                           else
6787                             wx_cv_use_ffile='wxUSE_FFILE=no'
6788                           fi
6789
6790 else
6791
6792                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6793
6794 fi
6795
6796
6797           eval "$wx_cv_use_ffile"
6798
6799           if test x"$enablestring" = xdisable; then
6800             if test $wxUSE_FFILE = yes; then
6801               result=no
6802             else
6803               result=yes
6804             fi
6805           else
6806             result=$wxUSE_FFILE
6807           fi
6808
6809           { echo "$as_me:$LINENO: result: $result" >&5
6810 echo "${ECHO_T}$result" >&6; }
6811
6812
6813           enablestring=
6814           defaultval=$wxUSE_ALL_FEATURES
6815           if test -z "$defaultval"; then
6816               if test x"$enablestring" = xdisable; then
6817                   defaultval=yes
6818               else
6819                   defaultval=no
6820               fi
6821           fi
6822
6823           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6824 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6825           # Check whether --enable-file was given.
6826 if test "${enable_file+set}" = set; then
6827   enableval=$enable_file;
6828                           if test "$enableval" = yes; then
6829                             wx_cv_use_file='wxUSE_FILE=yes'
6830                           else
6831                             wx_cv_use_file='wxUSE_FILE=no'
6832                           fi
6833
6834 else
6835
6836                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6837
6838 fi
6839
6840
6841           eval "$wx_cv_use_file"
6842
6843           if test x"$enablestring" = xdisable; then
6844             if test $wxUSE_FILE = yes; then
6845               result=no
6846             else
6847               result=yes
6848             fi
6849           else
6850             result=$wxUSE_FILE
6851           fi
6852
6853           { echo "$as_me:$LINENO: result: $result" >&5
6854 echo "${ECHO_T}$result" >&6; }
6855
6856
6857           enablestring=
6858           defaultval=$wxUSE_ALL_FEATURES
6859           if test -z "$defaultval"; then
6860               if test x"$enablestring" = xdisable; then
6861                   defaultval=yes
6862               else
6863                   defaultval=no
6864               fi
6865           fi
6866
6867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6868 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6869           # Check whether --enable-filesystem was given.
6870 if test "${enable_filesystem+set}" = set; then
6871   enableval=$enable_filesystem;
6872                           if test "$enableval" = yes; then
6873                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6874                           else
6875                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6876                           fi
6877
6878 else
6879
6880                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6881
6882 fi
6883
6884
6885           eval "$wx_cv_use_filesystem"
6886
6887           if test x"$enablestring" = xdisable; then
6888             if test $wxUSE_FILESYSTEM = yes; then
6889               result=no
6890             else
6891               result=yes
6892             fi
6893           else
6894             result=$wxUSE_FILESYSTEM
6895           fi
6896
6897           { echo "$as_me:$LINENO: result: $result" >&5
6898 echo "${ECHO_T}$result" >&6; }
6899
6900
6901           enablestring=
6902           defaultval=$wxUSE_ALL_FEATURES
6903           if test -z "$defaultval"; then
6904               if test x"$enablestring" = xdisable; then
6905                   defaultval=yes
6906               else
6907                   defaultval=no
6908               fi
6909           fi
6910
6911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6912 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6913           # Check whether --enable-fontenum was given.
6914 if test "${enable_fontenum+set}" = set; then
6915   enableval=$enable_fontenum;
6916                           if test "$enableval" = yes; then
6917                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6918                           else
6919                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6920                           fi
6921
6922 else
6923
6924                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6925
6926 fi
6927
6928
6929           eval "$wx_cv_use_fontenum"
6930
6931           if test x"$enablestring" = xdisable; then
6932             if test $wxUSE_FONTENUM = yes; then
6933               result=no
6934             else
6935               result=yes
6936             fi
6937           else
6938             result=$wxUSE_FONTENUM
6939           fi
6940
6941           { echo "$as_me:$LINENO: result: $result" >&5
6942 echo "${ECHO_T}$result" >&6; }
6943
6944
6945           enablestring=
6946           defaultval=$wxUSE_ALL_FEATURES
6947           if test -z "$defaultval"; then
6948               if test x"$enablestring" = xdisable; then
6949                   defaultval=yes
6950               else
6951                   defaultval=no
6952               fi
6953           fi
6954
6955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6956 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6957           # Check whether --enable-fontmap was given.
6958 if test "${enable_fontmap+set}" = set; then
6959   enableval=$enable_fontmap;
6960                           if test "$enableval" = yes; then
6961                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6962                           else
6963                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6964                           fi
6965
6966 else
6967
6968                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6969
6970 fi
6971
6972
6973           eval "$wx_cv_use_fontmap"
6974
6975           if test x"$enablestring" = xdisable; then
6976             if test $wxUSE_FONTMAP = yes; then
6977               result=no
6978             else
6979               result=yes
6980             fi
6981           else
6982             result=$wxUSE_FONTMAP
6983           fi
6984
6985           { echo "$as_me:$LINENO: result: $result" >&5
6986 echo "${ECHO_T}$result" >&6; }
6987
6988
6989           enablestring=
6990           defaultval=$wxUSE_ALL_FEATURES
6991           if test -z "$defaultval"; then
6992               if test x"$enablestring" = xdisable; then
6993                   defaultval=yes
6994               else
6995                   defaultval=no
6996               fi
6997           fi
6998
6999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7000 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7001           # Check whether --enable-fs_archive was given.
7002 if test "${enable_fs_archive+set}" = set; then
7003   enableval=$enable_fs_archive;
7004                           if test "$enableval" = yes; then
7005                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7006                           else
7007                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7008                           fi
7009
7010 else
7011
7012                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7013
7014 fi
7015
7016
7017           eval "$wx_cv_use_fs_archive"
7018
7019           if test x"$enablestring" = xdisable; then
7020             if test $wxUSE_FS_ARCHIVE = yes; then
7021               result=no
7022             else
7023               result=yes
7024             fi
7025           else
7026             result=$wxUSE_FS_ARCHIVE
7027           fi
7028
7029           { echo "$as_me:$LINENO: result: $result" >&5
7030 echo "${ECHO_T}$result" >&6; }
7031
7032
7033           enablestring=
7034           defaultval=$wxUSE_ALL_FEATURES
7035           if test -z "$defaultval"; then
7036               if test x"$enablestring" = xdisable; then
7037                   defaultval=yes
7038               else
7039                   defaultval=no
7040               fi
7041           fi
7042
7043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7044 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7045           # Check whether --enable-fs_inet was given.
7046 if test "${enable_fs_inet+set}" = set; then
7047   enableval=$enable_fs_inet;
7048                           if test "$enableval" = yes; then
7049                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7050                           else
7051                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7052                           fi
7053
7054 else
7055
7056                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7057
7058 fi
7059
7060
7061           eval "$wx_cv_use_fs_inet"
7062
7063           if test x"$enablestring" = xdisable; then
7064             if test $wxUSE_FS_INET = yes; then
7065               result=no
7066             else
7067               result=yes
7068             fi
7069           else
7070             result=$wxUSE_FS_INET
7071           fi
7072
7073           { echo "$as_me:$LINENO: result: $result" >&5
7074 echo "${ECHO_T}$result" >&6; }
7075
7076
7077           enablestring=
7078           defaultval=$wxUSE_ALL_FEATURES
7079           if test -z "$defaultval"; then
7080               if test x"$enablestring" = xdisable; then
7081                   defaultval=yes
7082               else
7083                   defaultval=no
7084               fi
7085           fi
7086
7087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7088 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7089           # Check whether --enable-fs_zip was given.
7090 if test "${enable_fs_zip+set}" = set; then
7091   enableval=$enable_fs_zip;
7092                           if test "$enableval" = yes; then
7093                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7094                           else
7095                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7096                           fi
7097
7098 else
7099
7100                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7101
7102 fi
7103
7104
7105           eval "$wx_cv_use_fs_zip"
7106
7107           if test x"$enablestring" = xdisable; then
7108             if test $wxUSE_FS_ZIP = yes; then
7109               result=no
7110             else
7111               result=yes
7112             fi
7113           else
7114             result=$wxUSE_FS_ZIP
7115           fi
7116
7117           { echo "$as_me:$LINENO: result: $result" >&5
7118 echo "${ECHO_T}$result" >&6; }
7119
7120
7121           enablestring=
7122           defaultval=$wxUSE_ALL_FEATURES
7123           if test -z "$defaultval"; then
7124               if test x"$enablestring" = xdisable; then
7125                   defaultval=yes
7126               else
7127                   defaultval=no
7128               fi
7129           fi
7130
7131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7132 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7133           # Check whether --enable-geometry was given.
7134 if test "${enable_geometry+set}" = set; then
7135   enableval=$enable_geometry;
7136                           if test "$enableval" = yes; then
7137                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7138                           else
7139                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7140                           fi
7141
7142 else
7143
7144                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7145
7146 fi
7147
7148
7149           eval "$wx_cv_use_geometry"
7150
7151           if test x"$enablestring" = xdisable; then
7152             if test $wxUSE_GEOMETRY = yes; then
7153               result=no
7154             else
7155               result=yes
7156             fi
7157           else
7158             result=$wxUSE_GEOMETRY
7159           fi
7160
7161           { echo "$as_me:$LINENO: result: $result" >&5
7162 echo "${ECHO_T}$result" >&6; }
7163
7164
7165           enablestring=
7166           defaultval=$wxUSE_ALL_FEATURES
7167           if test -z "$defaultval"; then
7168               if test x"$enablestring" = xdisable; then
7169                   defaultval=yes
7170               else
7171                   defaultval=no
7172               fi
7173           fi
7174
7175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7176 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7177           # Check whether --enable-log was given.
7178 if test "${enable_log+set}" = set; then
7179   enableval=$enable_log;
7180                           if test "$enableval" = yes; then
7181                             wx_cv_use_log='wxUSE_LOG=yes'
7182                           else
7183                             wx_cv_use_log='wxUSE_LOG=no'
7184                           fi
7185
7186 else
7187
7188                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7189
7190 fi
7191
7192
7193           eval "$wx_cv_use_log"
7194
7195           if test x"$enablestring" = xdisable; then
7196             if test $wxUSE_LOG = yes; then
7197               result=no
7198             else
7199               result=yes
7200             fi
7201           else
7202             result=$wxUSE_LOG
7203           fi
7204
7205           { echo "$as_me:$LINENO: result: $result" >&5
7206 echo "${ECHO_T}$result" >&6; }
7207
7208
7209           enablestring=
7210           defaultval=$wxUSE_ALL_FEATURES
7211           if test -z "$defaultval"; then
7212               if test x"$enablestring" = xdisable; then
7213                   defaultval=yes
7214               else
7215                   defaultval=no
7216               fi
7217           fi
7218
7219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7220 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7221           # Check whether --enable-longlong was given.
7222 if test "${enable_longlong+set}" = set; then
7223   enableval=$enable_longlong;
7224                           if test "$enableval" = yes; then
7225                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7226                           else
7227                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7228                           fi
7229
7230 else
7231
7232                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7233
7234 fi
7235
7236
7237           eval "$wx_cv_use_longlong"
7238
7239           if test x"$enablestring" = xdisable; then
7240             if test $wxUSE_LONGLONG = yes; then
7241               result=no
7242             else
7243               result=yes
7244             fi
7245           else
7246             result=$wxUSE_LONGLONG
7247           fi
7248
7249           { echo "$as_me:$LINENO: result: $result" >&5
7250 echo "${ECHO_T}$result" >&6; }
7251
7252
7253           enablestring=
7254           defaultval=$wxUSE_ALL_FEATURES
7255           if test -z "$defaultval"; then
7256               if test x"$enablestring" = xdisable; then
7257                   defaultval=yes
7258               else
7259                   defaultval=no
7260               fi
7261           fi
7262
7263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7264 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7265           # Check whether --enable-mimetype was given.
7266 if test "${enable_mimetype+set}" = set; then
7267   enableval=$enable_mimetype;
7268                           if test "$enableval" = yes; then
7269                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7270                           else
7271                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7272                           fi
7273
7274 else
7275
7276                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7277
7278 fi
7279
7280
7281           eval "$wx_cv_use_mimetype"
7282
7283           if test x"$enablestring" = xdisable; then
7284             if test $wxUSE_MIMETYPE = yes; then
7285               result=no
7286             else
7287               result=yes
7288             fi
7289           else
7290             result=$wxUSE_MIMETYPE
7291           fi
7292
7293           { echo "$as_me:$LINENO: result: $result" >&5
7294 echo "${ECHO_T}$result" >&6; }
7295
7296
7297           enablestring=
7298           defaultval=$wxUSE_ALL_FEATURES
7299           if test -z "$defaultval"; then
7300               if test x"$enablestring" = xdisable; then
7301                   defaultval=yes
7302               else
7303                   defaultval=no
7304               fi
7305           fi
7306
7307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7308 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7309           # Check whether --enable-printfposparam was given.
7310 if test "${enable_printfposparam+set}" = set; then
7311   enableval=$enable_printfposparam;
7312                           if test "$enableval" = yes; then
7313                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7314                           else
7315                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7316                           fi
7317
7318 else
7319
7320                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7321
7322 fi
7323
7324
7325           eval "$wx_cv_use_printfposparam"
7326
7327           if test x"$enablestring" = xdisable; then
7328             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7329               result=no
7330             else
7331               result=yes
7332             fi
7333           else
7334             result=$wxUSE_PRINTF_POS_PARAMS
7335           fi
7336
7337           { echo "$as_me:$LINENO: result: $result" >&5
7338 echo "${ECHO_T}$result" >&6; }
7339
7340
7341           enablestring=
7342           defaultval=$wxUSE_ALL_FEATURES
7343           if test -z "$defaultval"; then
7344               if test x"$enablestring" = xdisable; then
7345                   defaultval=yes
7346               else
7347                   defaultval=no
7348               fi
7349           fi
7350
7351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7352 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7353           # Check whether --enable-snglinst was given.
7354 if test "${enable_snglinst+set}" = set; then
7355   enableval=$enable_snglinst;
7356                           if test "$enableval" = yes; then
7357                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7358                           else
7359                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7360                           fi
7361
7362 else
7363
7364                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7365
7366 fi
7367
7368
7369           eval "$wx_cv_use_snglinst"
7370
7371           if test x"$enablestring" = xdisable; then
7372             if test $wxUSE_SNGLINST_CHECKER = yes; then
7373               result=no
7374             else
7375               result=yes
7376             fi
7377           else
7378             result=$wxUSE_SNGLINST_CHECKER
7379           fi
7380
7381           { echo "$as_me:$LINENO: result: $result" >&5
7382 echo "${ECHO_T}$result" >&6; }
7383
7384
7385           enablestring=
7386           defaultval=$wxUSE_ALL_FEATURES
7387           if test -z "$defaultval"; then
7388               if test x"$enablestring" = xdisable; then
7389                   defaultval=yes
7390               else
7391                   defaultval=no
7392               fi
7393           fi
7394
7395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7396 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7397           # Check whether --enable-sound was given.
7398 if test "${enable_sound+set}" = set; then
7399   enableval=$enable_sound;
7400                           if test "$enableval" = yes; then
7401                             wx_cv_use_sound='wxUSE_SOUND=yes'
7402                           else
7403                             wx_cv_use_sound='wxUSE_SOUND=no'
7404                           fi
7405
7406 else
7407
7408                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7409
7410 fi
7411
7412
7413           eval "$wx_cv_use_sound"
7414
7415           if test x"$enablestring" = xdisable; then
7416             if test $wxUSE_SOUND = yes; then
7417               result=no
7418             else
7419               result=yes
7420             fi
7421           else
7422             result=$wxUSE_SOUND
7423           fi
7424
7425           { echo "$as_me:$LINENO: result: $result" >&5
7426 echo "${ECHO_T}$result" >&6; }
7427
7428
7429           enablestring=
7430           defaultval=$wxUSE_ALL_FEATURES
7431           if test -z "$defaultval"; then
7432               if test x"$enablestring" = xdisable; then
7433                   defaultval=yes
7434               else
7435                   defaultval=no
7436               fi
7437           fi
7438
7439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7440 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7441           # Check whether --enable-stdpaths was given.
7442 if test "${enable_stdpaths+set}" = set; then
7443   enableval=$enable_stdpaths;
7444                           if test "$enableval" = yes; then
7445                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7446                           else
7447                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7448                           fi
7449
7450 else
7451
7452                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7453
7454 fi
7455
7456
7457           eval "$wx_cv_use_stdpaths"
7458
7459           if test x"$enablestring" = xdisable; then
7460             if test $wxUSE_STDPATHS = yes; then
7461               result=no
7462             else
7463               result=yes
7464             fi
7465           else
7466             result=$wxUSE_STDPATHS
7467           fi
7468
7469           { echo "$as_me:$LINENO: result: $result" >&5
7470 echo "${ECHO_T}$result" >&6; }
7471
7472
7473           enablestring=
7474           defaultval=$wxUSE_ALL_FEATURES
7475           if test -z "$defaultval"; then
7476               if test x"$enablestring" = xdisable; then
7477                   defaultval=yes
7478               else
7479                   defaultval=no
7480               fi
7481           fi
7482
7483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7484 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7485           # Check whether --enable-stopwatch was given.
7486 if test "${enable_stopwatch+set}" = set; then
7487   enableval=$enable_stopwatch;
7488                           if test "$enableval" = yes; then
7489                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7490                           else
7491                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7492                           fi
7493
7494 else
7495
7496                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7497
7498 fi
7499
7500
7501           eval "$wx_cv_use_stopwatch"
7502
7503           if test x"$enablestring" = xdisable; then
7504             if test $wxUSE_STOPWATCH = yes; then
7505               result=no
7506             else
7507               result=yes
7508             fi
7509           else
7510             result=$wxUSE_STOPWATCH
7511           fi
7512
7513           { echo "$as_me:$LINENO: result: $result" >&5
7514 echo "${ECHO_T}$result" >&6; }
7515
7516
7517           enablestring=
7518           defaultval=$wxUSE_ALL_FEATURES
7519           if test -z "$defaultval"; then
7520               if test x"$enablestring" = xdisable; then
7521                   defaultval=yes
7522               else
7523                   defaultval=no
7524               fi
7525           fi
7526
7527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7528 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7529           # Check whether --enable-streams was given.
7530 if test "${enable_streams+set}" = set; then
7531   enableval=$enable_streams;
7532                           if test "$enableval" = yes; then
7533                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7534                           else
7535                             wx_cv_use_streams='wxUSE_STREAMS=no'
7536                           fi
7537
7538 else
7539
7540                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7541
7542 fi
7543
7544
7545           eval "$wx_cv_use_streams"
7546
7547           if test x"$enablestring" = xdisable; then
7548             if test $wxUSE_STREAMS = yes; then
7549               result=no
7550             else
7551               result=yes
7552             fi
7553           else
7554             result=$wxUSE_STREAMS
7555           fi
7556
7557           { echo "$as_me:$LINENO: result: $result" >&5
7558 echo "${ECHO_T}$result" >&6; }
7559
7560
7561           enablestring=
7562           defaultval=$wxUSE_ALL_FEATURES
7563           if test -z "$defaultval"; then
7564               if test x"$enablestring" = xdisable; then
7565                   defaultval=yes
7566               else
7567                   defaultval=no
7568               fi
7569           fi
7570
7571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7572 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7573           # Check whether --enable-system_options was given.
7574 if test "${enable_system_options+set}" = set; then
7575   enableval=$enable_system_options;
7576                           if test "$enableval" = yes; then
7577                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7578                           else
7579                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7580                           fi
7581
7582 else
7583
7584                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7585
7586 fi
7587
7588
7589           eval "$wx_cv_use_system_options"
7590
7591           if test x"$enablestring" = xdisable; then
7592             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7593               result=no
7594             else
7595               result=yes
7596             fi
7597           else
7598             result=$wxUSE_SYSTEM_OPTIONS
7599           fi
7600
7601           { echo "$as_me:$LINENO: result: $result" >&5
7602 echo "${ECHO_T}$result" >&6; }
7603
7604
7605           enablestring=
7606           defaultval=$wxUSE_ALL_FEATURES
7607           if test -z "$defaultval"; then
7608               if test x"$enablestring" = xdisable; then
7609                   defaultval=yes
7610               else
7611                   defaultval=no
7612               fi
7613           fi
7614
7615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7616 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7617           # Check whether --enable-tarstream was given.
7618 if test "${enable_tarstream+set}" = set; then
7619   enableval=$enable_tarstream;
7620                           if test "$enableval" = yes; then
7621                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7622                           else
7623                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7624                           fi
7625
7626 else
7627
7628                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7629
7630 fi
7631
7632
7633           eval "$wx_cv_use_tarstream"
7634
7635           if test x"$enablestring" = xdisable; then
7636             if test $wxUSE_TARSTREAM = yes; then
7637               result=no
7638             else
7639               result=yes
7640             fi
7641           else
7642             result=$wxUSE_TARSTREAM
7643           fi
7644
7645           { echo "$as_me:$LINENO: result: $result" >&5
7646 echo "${ECHO_T}$result" >&6; }
7647
7648
7649           enablestring=
7650           defaultval=$wxUSE_ALL_FEATURES
7651           if test -z "$defaultval"; then
7652               if test x"$enablestring" = xdisable; then
7653                   defaultval=yes
7654               else
7655                   defaultval=no
7656               fi
7657           fi
7658
7659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7660 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7661           # Check whether --enable-textbuf was given.
7662 if test "${enable_textbuf+set}" = set; then
7663   enableval=$enable_textbuf;
7664                           if test "$enableval" = yes; then
7665                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7666                           else
7667                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7668                           fi
7669
7670 else
7671
7672                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7673
7674 fi
7675
7676
7677           eval "$wx_cv_use_textbuf"
7678
7679           if test x"$enablestring" = xdisable; then
7680             if test $wxUSE_TEXTBUFFER = yes; then
7681               result=no
7682             else
7683               result=yes
7684             fi
7685           else
7686             result=$wxUSE_TEXTBUFFER
7687           fi
7688
7689           { echo "$as_me:$LINENO: result: $result" >&5
7690 echo "${ECHO_T}$result" >&6; }
7691
7692
7693           enablestring=
7694           defaultval=$wxUSE_ALL_FEATURES
7695           if test -z "$defaultval"; then
7696               if test x"$enablestring" = xdisable; then
7697                   defaultval=yes
7698               else
7699                   defaultval=no
7700               fi
7701           fi
7702
7703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7704 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7705           # Check whether --enable-textfile was given.
7706 if test "${enable_textfile+set}" = set; then
7707   enableval=$enable_textfile;
7708                           if test "$enableval" = yes; then
7709                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7710                           else
7711                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7712                           fi
7713
7714 else
7715
7716                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7717
7718 fi
7719
7720
7721           eval "$wx_cv_use_textfile"
7722
7723           if test x"$enablestring" = xdisable; then
7724             if test $wxUSE_TEXTFILE = yes; then
7725               result=no
7726             else
7727               result=yes
7728             fi
7729           else
7730             result=$wxUSE_TEXTFILE
7731           fi
7732
7733           { echo "$as_me:$LINENO: result: $result" >&5
7734 echo "${ECHO_T}$result" >&6; }
7735
7736
7737           enablestring=
7738           defaultval=$wxUSE_ALL_FEATURES
7739           if test -z "$defaultval"; then
7740               if test x"$enablestring" = xdisable; then
7741                   defaultval=yes
7742               else
7743                   defaultval=no
7744               fi
7745           fi
7746
7747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7748 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7749           # Check whether --enable-timer was given.
7750 if test "${enable_timer+set}" = set; then
7751   enableval=$enable_timer;
7752                           if test "$enableval" = yes; then
7753                             wx_cv_use_timer='wxUSE_TIMER=yes'
7754                           else
7755                             wx_cv_use_timer='wxUSE_TIMER=no'
7756                           fi
7757
7758 else
7759
7760                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7761
7762 fi
7763
7764
7765           eval "$wx_cv_use_timer"
7766
7767           if test x"$enablestring" = xdisable; then
7768             if test $wxUSE_TIMER = yes; then
7769               result=no
7770             else
7771               result=yes
7772             fi
7773           else
7774             result=$wxUSE_TIMER
7775           fi
7776
7777           { echo "$as_me:$LINENO: result: $result" >&5
7778 echo "${ECHO_T}$result" >&6; }
7779
7780
7781           enablestring=
7782           defaultval=$wxUSE_ALL_FEATURES
7783           if test -z "$defaultval"; then
7784               if test x"$enablestring" = xdisable; then
7785                   defaultval=yes
7786               else
7787                   defaultval=no
7788               fi
7789           fi
7790
7791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7792 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7793           # Check whether --enable-variant was given.
7794 if test "${enable_variant+set}" = set; then
7795   enableval=$enable_variant;
7796                           if test "$enableval" = yes; then
7797                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7798                           else
7799                             wx_cv_use_variant='wxUSE_VARIANT=no'
7800                           fi
7801
7802 else
7803
7804                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7805
7806 fi
7807
7808
7809           eval "$wx_cv_use_variant"
7810
7811           if test x"$enablestring" = xdisable; then
7812             if test $wxUSE_VARIANT = yes; then
7813               result=no
7814             else
7815               result=yes
7816             fi
7817           else
7818             result=$wxUSE_VARIANT
7819           fi
7820
7821           { echo "$as_me:$LINENO: result: $result" >&5
7822 echo "${ECHO_T}$result" >&6; }
7823
7824
7825           enablestring=
7826           defaultval=$wxUSE_ALL_FEATURES
7827           if test -z "$defaultval"; then
7828               if test x"$enablestring" = xdisable; then
7829                   defaultval=yes
7830               else
7831                   defaultval=no
7832               fi
7833           fi
7834
7835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7836 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7837           # Check whether --enable-zipstream was given.
7838 if test "${enable_zipstream+set}" = set; then
7839   enableval=$enable_zipstream;
7840                           if test "$enableval" = yes; then
7841                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7842                           else
7843                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7844                           fi
7845
7846 else
7847
7848                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7849
7850 fi
7851
7852
7853           eval "$wx_cv_use_zipstream"
7854
7855           if test x"$enablestring" = xdisable; then
7856             if test $wxUSE_ZIPSTREAM = yes; then
7857               result=no
7858             else
7859               result=yes
7860             fi
7861           else
7862             result=$wxUSE_ZIPSTREAM
7863           fi
7864
7865           { echo "$as_me:$LINENO: result: $result" >&5
7866 echo "${ECHO_T}$result" >&6; }
7867
7868
7869
7870           enablestring=
7871           defaultval=$wxUSE_ALL_FEATURES
7872           if test -z "$defaultval"; then
7873               if test x"$enablestring" = xdisable; then
7874                   defaultval=yes
7875               else
7876                   defaultval=no
7877               fi
7878           fi
7879
7880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7881 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7882           # Check whether --enable-url was given.
7883 if test "${enable_url+set}" = set; then
7884   enableval=$enable_url;
7885                           if test "$enableval" = yes; then
7886                             wx_cv_use_url='wxUSE_URL=yes'
7887                           else
7888                             wx_cv_use_url='wxUSE_URL=no'
7889                           fi
7890
7891 else
7892
7893                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7894
7895 fi
7896
7897
7898           eval "$wx_cv_use_url"
7899
7900           if test x"$enablestring" = xdisable; then
7901             if test $wxUSE_URL = yes; then
7902               result=no
7903             else
7904               result=yes
7905             fi
7906           else
7907             result=$wxUSE_URL
7908           fi
7909
7910           { echo "$as_me:$LINENO: result: $result" >&5
7911 echo "${ECHO_T}$result" >&6; }
7912
7913
7914           enablestring=
7915           defaultval=$wxUSE_ALL_FEATURES
7916           if test -z "$defaultval"; then
7917               if test x"$enablestring" = xdisable; then
7918                   defaultval=yes
7919               else
7920                   defaultval=no
7921               fi
7922           fi
7923
7924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7925 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7926           # Check whether --enable-protocol was given.
7927 if test "${enable_protocol+set}" = set; then
7928   enableval=$enable_protocol;
7929                           if test "$enableval" = yes; then
7930                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7931                           else
7932                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7933                           fi
7934
7935 else
7936
7937                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7938
7939 fi
7940
7941
7942           eval "$wx_cv_use_protocol"
7943
7944           if test x"$enablestring" = xdisable; then
7945             if test $wxUSE_PROTOCOL = yes; then
7946               result=no
7947             else
7948               result=yes
7949             fi
7950           else
7951             result=$wxUSE_PROTOCOL
7952           fi
7953
7954           { echo "$as_me:$LINENO: result: $result" >&5
7955 echo "${ECHO_T}$result" >&6; }
7956
7957
7958           enablestring=
7959           defaultval=$wxUSE_ALL_FEATURES
7960           if test -z "$defaultval"; then
7961               if test x"$enablestring" = xdisable; then
7962                   defaultval=yes
7963               else
7964                   defaultval=no
7965               fi
7966           fi
7967
7968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7969 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7970           # Check whether --enable-protocol_http was given.
7971 if test "${enable_protocol_http+set}" = set; then
7972   enableval=$enable_protocol_http;
7973                           if test "$enableval" = yes; then
7974                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7975                           else
7976                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7977                           fi
7978
7979 else
7980
7981                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7982
7983 fi
7984
7985
7986           eval "$wx_cv_use_protocol_http"
7987
7988           if test x"$enablestring" = xdisable; then
7989             if test $wxUSE_PROTOCOL_HTTP = yes; then
7990               result=no
7991             else
7992               result=yes
7993             fi
7994           else
7995             result=$wxUSE_PROTOCOL_HTTP
7996           fi
7997
7998           { echo "$as_me:$LINENO: result: $result" >&5
7999 echo "${ECHO_T}$result" >&6; }
8000
8001
8002           enablestring=
8003           defaultval=$wxUSE_ALL_FEATURES
8004           if test -z "$defaultval"; then
8005               if test x"$enablestring" = xdisable; then
8006                   defaultval=yes
8007               else
8008                   defaultval=no
8009               fi
8010           fi
8011
8012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8013 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8014           # Check whether --enable-protocol_ftp was given.
8015 if test "${enable_protocol_ftp+set}" = set; then
8016   enableval=$enable_protocol_ftp;
8017                           if test "$enableval" = yes; then
8018                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8019                           else
8020                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8021                           fi
8022
8023 else
8024
8025                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8026
8027 fi
8028
8029
8030           eval "$wx_cv_use_protocol_ftp"
8031
8032           if test x"$enablestring" = xdisable; then
8033             if test $wxUSE_PROTOCOL_FTP = yes; then
8034               result=no
8035             else
8036               result=yes
8037             fi
8038           else
8039             result=$wxUSE_PROTOCOL_FTP
8040           fi
8041
8042           { echo "$as_me:$LINENO: result: $result" >&5
8043 echo "${ECHO_T}$result" >&6; }
8044
8045
8046           enablestring=
8047           defaultval=$wxUSE_ALL_FEATURES
8048           if test -z "$defaultval"; then
8049               if test x"$enablestring" = xdisable; then
8050                   defaultval=yes
8051               else
8052                   defaultval=no
8053               fi
8054           fi
8055
8056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8057 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8058           # Check whether --enable-protocol_file was given.
8059 if test "${enable_protocol_file+set}" = set; then
8060   enableval=$enable_protocol_file;
8061                           if test "$enableval" = yes; then
8062                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8063                           else
8064                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8065                           fi
8066
8067 else
8068
8069                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8070
8071 fi
8072
8073
8074           eval "$wx_cv_use_protocol_file"
8075
8076           if test x"$enablestring" = xdisable; then
8077             if test $wxUSE_PROTOCOL_FILE = yes; then
8078               result=no
8079             else
8080               result=yes
8081             fi
8082           else
8083             result=$wxUSE_PROTOCOL_FILE
8084           fi
8085
8086           { echo "$as_me:$LINENO: result: $result" >&5
8087 echo "${ECHO_T}$result" >&6; }
8088
8089
8090
8091           enablestring=
8092           defaultval=$wxUSE_ALL_FEATURES
8093           if test -z "$defaultval"; then
8094               if test x"$enablestring" = xdisable; then
8095                   defaultval=yes
8096               else
8097                   defaultval=no
8098               fi
8099           fi
8100
8101           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8102 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8103           # Check whether --enable-threads was given.
8104 if test "${enable_threads+set}" = set; then
8105   enableval=$enable_threads;
8106                           if test "$enableval" = yes; then
8107                             wx_cv_use_threads='wxUSE_THREADS=yes'
8108                           else
8109                             wx_cv_use_threads='wxUSE_THREADS=no'
8110                           fi
8111
8112 else
8113
8114                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8115
8116 fi
8117
8118
8119           eval "$wx_cv_use_threads"
8120
8121           if test x"$enablestring" = xdisable; then
8122             if test $wxUSE_THREADS = yes; then
8123               result=no
8124             else
8125               result=yes
8126             fi
8127           else
8128             result=$wxUSE_THREADS
8129           fi
8130
8131           { echo "$as_me:$LINENO: result: $result" >&5
8132 echo "${ECHO_T}$result" >&6; }
8133
8134
8135
8136           enablestring=
8137           defaultval=
8138           if test -z "$defaultval"; then
8139               if test x"$enablestring" = xdisable; then
8140                   defaultval=yes
8141               else
8142                   defaultval=no
8143               fi
8144           fi
8145
8146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8147 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8148           # Check whether --enable-iniconf was given.
8149 if test "${enable_iniconf+set}" = set; then
8150   enableval=$enable_iniconf;
8151                           if test "$enableval" = yes; then
8152                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8153                           else
8154                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8155                           fi
8156
8157 else
8158
8159                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8160
8161 fi
8162
8163
8164           eval "$wx_cv_use_iniconf"
8165
8166           if test x"$enablestring" = xdisable; then
8167             if test $wxUSE_INICONF = yes; then
8168               result=no
8169             else
8170               result=yes
8171             fi
8172           else
8173             result=$wxUSE_INICONF
8174           fi
8175
8176           { echo "$as_me:$LINENO: result: $result" >&5
8177 echo "${ECHO_T}$result" >&6; }
8178
8179
8180           enablestring=
8181           defaultval=$wxUSE_ALL_FEATURES
8182           if test -z "$defaultval"; then
8183               if test x"$enablestring" = xdisable; then
8184                   defaultval=yes
8185               else
8186                   defaultval=no
8187               fi
8188           fi
8189
8190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8191 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8192           # Check whether --enable-regkey was given.
8193 if test "${enable_regkey+set}" = set; then
8194   enableval=$enable_regkey;
8195                           if test "$enableval" = yes; then
8196                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8197                           else
8198                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8199                           fi
8200
8201 else
8202
8203                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8204
8205 fi
8206
8207
8208           eval "$wx_cv_use_regkey"
8209
8210           if test x"$enablestring" = xdisable; then
8211             if test $wxUSE_REGKEY = yes; then
8212               result=no
8213             else
8214               result=yes
8215             fi
8216           else
8217             result=$wxUSE_REGKEY
8218           fi
8219
8220           { echo "$as_me:$LINENO: result: $result" >&5
8221 echo "${ECHO_T}$result" >&6; }
8222
8223
8224 if test "$wxUSE_GUI" = "yes"; then
8225
8226
8227
8228           enablestring=
8229           defaultval=$wxUSE_ALL_FEATURES
8230           if test -z "$defaultval"; then
8231               if test x"$enablestring" = xdisable; then
8232                   defaultval=yes
8233               else
8234                   defaultval=no
8235               fi
8236           fi
8237
8238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8239 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8240           # Check whether --enable-docview was given.
8241 if test "${enable_docview+set}" = set; then
8242   enableval=$enable_docview;
8243                           if test "$enableval" = yes; then
8244                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8245                           else
8246                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8247                           fi
8248
8249 else
8250
8251                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8252
8253 fi
8254
8255
8256           eval "$wx_cv_use_docview"
8257
8258           if test x"$enablestring" = xdisable; then
8259             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8260               result=no
8261             else
8262               result=yes
8263             fi
8264           else
8265             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8266           fi
8267
8268           { echo "$as_me:$LINENO: result: $result" >&5
8269 echo "${ECHO_T}$result" >&6; }
8270
8271
8272           enablestring=
8273           defaultval=$wxUSE_ALL_FEATURES
8274           if test -z "$defaultval"; then
8275               if test x"$enablestring" = xdisable; then
8276                   defaultval=yes
8277               else
8278                   defaultval=no
8279               fi
8280           fi
8281
8282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8283 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8284           # Check whether --enable-help was given.
8285 if test "${enable_help+set}" = set; then
8286   enableval=$enable_help;
8287                           if test "$enableval" = yes; then
8288                             wx_cv_use_help='wxUSE_HELP=yes'
8289                           else
8290                             wx_cv_use_help='wxUSE_HELP=no'
8291                           fi
8292
8293 else
8294
8295                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8296
8297 fi
8298
8299
8300           eval "$wx_cv_use_help"
8301
8302           if test x"$enablestring" = xdisable; then
8303             if test $wxUSE_HELP = yes; then
8304               result=no
8305             else
8306               result=yes
8307             fi
8308           else
8309             result=$wxUSE_HELP
8310           fi
8311
8312           { echo "$as_me:$LINENO: result: $result" >&5
8313 echo "${ECHO_T}$result" >&6; }
8314
8315
8316           enablestring=
8317           defaultval=$wxUSE_ALL_FEATURES
8318           if test -z "$defaultval"; then
8319               if test x"$enablestring" = xdisable; then
8320                   defaultval=yes
8321               else
8322                   defaultval=no
8323               fi
8324           fi
8325
8326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8327 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8328           # Check whether --enable-mshtmlhelp was given.
8329 if test "${enable_mshtmlhelp+set}" = set; then
8330   enableval=$enable_mshtmlhelp;
8331                           if test "$enableval" = yes; then
8332                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8333                           else
8334                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8335                           fi
8336
8337 else
8338
8339                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8340
8341 fi
8342
8343
8344           eval "$wx_cv_use_mshtmlhelp"
8345
8346           if test x"$enablestring" = xdisable; then
8347             if test $wxUSE_MS_HTML_HELP = yes; then
8348               result=no
8349             else
8350               result=yes
8351             fi
8352           else
8353             result=$wxUSE_MS_HTML_HELP
8354           fi
8355
8356           { echo "$as_me:$LINENO: result: $result" >&5
8357 echo "${ECHO_T}$result" >&6; }
8358
8359
8360           enablestring=
8361           defaultval=$wxUSE_ALL_FEATURES
8362           if test -z "$defaultval"; then
8363               if test x"$enablestring" = xdisable; then
8364                   defaultval=yes
8365               else
8366                   defaultval=no
8367               fi
8368           fi
8369
8370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8371 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8372           # Check whether --enable-html was given.
8373 if test "${enable_html+set}" = set; then
8374   enableval=$enable_html;
8375                           if test "$enableval" = yes; then
8376                             wx_cv_use_html='wxUSE_HTML=yes'
8377                           else
8378                             wx_cv_use_html='wxUSE_HTML=no'
8379                           fi
8380
8381 else
8382
8383                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8384
8385 fi
8386
8387
8388           eval "$wx_cv_use_html"
8389
8390           if test x"$enablestring" = xdisable; then
8391             if test $wxUSE_HTML = yes; then
8392               result=no
8393             else
8394               result=yes
8395             fi
8396           else
8397             result=$wxUSE_HTML
8398           fi
8399
8400           { echo "$as_me:$LINENO: result: $result" >&5
8401 echo "${ECHO_T}$result" >&6; }
8402
8403
8404           enablestring=
8405           defaultval=$wxUSE_ALL_FEATURES
8406           if test -z "$defaultval"; then
8407               if test x"$enablestring" = xdisable; then
8408                   defaultval=yes
8409               else
8410                   defaultval=no
8411               fi
8412           fi
8413
8414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8415 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8416           # Check whether --enable-htmlhelp was given.
8417 if test "${enable_htmlhelp+set}" = set; then
8418   enableval=$enable_htmlhelp;
8419                           if test "$enableval" = yes; then
8420                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8421                           else
8422                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8423                           fi
8424
8425 else
8426
8427                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8428
8429 fi
8430
8431
8432           eval "$wx_cv_use_htmlhelp"
8433
8434           if test x"$enablestring" = xdisable; then
8435             if test $wxUSE_WXHTML_HELP = yes; then
8436               result=no
8437             else
8438               result=yes
8439             fi
8440           else
8441             result=$wxUSE_WXHTML_HELP
8442           fi
8443
8444           { echo "$as_me:$LINENO: result: $result" >&5
8445 echo "${ECHO_T}$result" >&6; }
8446
8447
8448           enablestring=
8449           defaultval=$wxUSE_ALL_FEATURES
8450           if test -z "$defaultval"; then
8451               if test x"$enablestring" = xdisable; then
8452                   defaultval=yes
8453               else
8454                   defaultval=no
8455               fi
8456           fi
8457
8458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8459 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8460           # Check whether --enable-xrc was given.
8461 if test "${enable_xrc+set}" = set; then
8462   enableval=$enable_xrc;
8463                           if test "$enableval" = yes; then
8464                             wx_cv_use_xrc='wxUSE_XRC=yes'
8465                           else
8466                             wx_cv_use_xrc='wxUSE_XRC=no'
8467                           fi
8468
8469 else
8470
8471                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8472
8473 fi
8474
8475
8476           eval "$wx_cv_use_xrc"
8477
8478           if test x"$enablestring" = xdisable; then
8479             if test $wxUSE_XRC = yes; then
8480               result=no
8481             else
8482               result=yes
8483             fi
8484           else
8485             result=$wxUSE_XRC
8486           fi
8487
8488           { echo "$as_me:$LINENO: result: $result" >&5
8489 echo "${ECHO_T}$result" >&6; }
8490
8491
8492           enablestring=
8493           defaultval=$wxUSE_ALL_FEATURES
8494           if test -z "$defaultval"; then
8495               if test x"$enablestring" = xdisable; then
8496                   defaultval=yes
8497               else
8498                   defaultval=no
8499               fi
8500           fi
8501
8502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8503 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8504           # Check whether --enable-aui was given.
8505 if test "${enable_aui+set}" = set; then
8506   enableval=$enable_aui;
8507                           if test "$enableval" = yes; then
8508                             wx_cv_use_aui='wxUSE_AUI=yes'
8509                           else
8510                             wx_cv_use_aui='wxUSE_AUI=no'
8511                           fi
8512
8513 else
8514
8515                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8516
8517 fi
8518
8519
8520           eval "$wx_cv_use_aui"
8521
8522           if test x"$enablestring" = xdisable; then
8523             if test $wxUSE_AUI = yes; then
8524               result=no
8525             else
8526               result=yes
8527             fi
8528           else
8529             result=$wxUSE_AUI
8530           fi
8531
8532           { echo "$as_me:$LINENO: result: $result" >&5
8533 echo "${ECHO_T}$result" >&6; }
8534
8535
8536           enablestring=
8537           defaultval=$wxUSE_ALL_FEATURES
8538           if test -z "$defaultval"; then
8539               if test x"$enablestring" = xdisable; then
8540                   defaultval=yes
8541               else
8542                   defaultval=no
8543               fi
8544           fi
8545
8546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8547 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8548           # Check whether --enable-stc was given.
8549 if test "${enable_stc+set}" = set; then
8550   enableval=$enable_stc;
8551                           if test "$enableval" = yes; then
8552                             wx_cv_use_stc='wxUSE_STC=yes'
8553                           else
8554                             wx_cv_use_stc='wxUSE_STC=no'
8555                           fi
8556
8557 else
8558
8559                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8560
8561 fi
8562
8563
8564           eval "$wx_cv_use_stc"
8565
8566           if test x"$enablestring" = xdisable; then
8567             if test $wxUSE_STC = yes; then
8568               result=no
8569             else
8570               result=yes
8571             fi
8572           else
8573             result=$wxUSE_STC
8574           fi
8575
8576           { echo "$as_me:$LINENO: result: $result" >&5
8577 echo "${ECHO_T}$result" >&6; }
8578
8579
8580           enablestring=
8581           defaultval=$wxUSE_ALL_FEATURES
8582           if test -z "$defaultval"; then
8583               if test x"$enablestring" = xdisable; then
8584                   defaultval=yes
8585               else
8586                   defaultval=no
8587               fi
8588           fi
8589
8590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8591 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8592           # Check whether --enable-constraints was given.
8593 if test "${enable_constraints+set}" = set; then
8594   enableval=$enable_constraints;
8595                           if test "$enableval" = yes; then
8596                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8597                           else
8598                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8599                           fi
8600
8601 else
8602
8603                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8604
8605 fi
8606
8607
8608           eval "$wx_cv_use_constraints"
8609
8610           if test x"$enablestring" = xdisable; then
8611             if test $wxUSE_CONSTRAINTS = yes; then
8612               result=no
8613             else
8614               result=yes
8615             fi
8616           else
8617             result=$wxUSE_CONSTRAINTS
8618           fi
8619
8620           { echo "$as_me:$LINENO: result: $result" >&5
8621 echo "${ECHO_T}$result" >&6; }
8622
8623
8624           enablestring=
8625           defaultval=$wxUSE_ALL_FEATURES
8626           if test -z "$defaultval"; then
8627               if test x"$enablestring" = xdisable; then
8628                   defaultval=yes
8629               else
8630                   defaultval=no
8631               fi
8632           fi
8633
8634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8635 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8636           # Check whether --enable-loggui was given.
8637 if test "${enable_loggui+set}" = set; then
8638   enableval=$enable_loggui;
8639                           if test "$enableval" = yes; then
8640                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8641                           else
8642                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8643                           fi
8644
8645 else
8646
8647                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8648
8649 fi
8650
8651
8652           eval "$wx_cv_use_loggui"
8653
8654           if test x"$enablestring" = xdisable; then
8655             if test $wxUSE_LOGGUI = yes; then
8656               result=no
8657             else
8658               result=yes
8659             fi
8660           else
8661             result=$wxUSE_LOGGUI
8662           fi
8663
8664           { echo "$as_me:$LINENO: result: $result" >&5
8665 echo "${ECHO_T}$result" >&6; }
8666
8667
8668           enablestring=
8669           defaultval=$wxUSE_ALL_FEATURES
8670           if test -z "$defaultval"; then
8671               if test x"$enablestring" = xdisable; then
8672                   defaultval=yes
8673               else
8674                   defaultval=no
8675               fi
8676           fi
8677
8678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8679 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8680           # Check whether --enable-logwin was given.
8681 if test "${enable_logwin+set}" = set; then
8682   enableval=$enable_logwin;
8683                           if test "$enableval" = yes; then
8684                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8685                           else
8686                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8687                           fi
8688
8689 else
8690
8691                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8692
8693 fi
8694
8695
8696           eval "$wx_cv_use_logwin"
8697
8698           if test x"$enablestring" = xdisable; then
8699             if test $wxUSE_LOGWINDOW = yes; then
8700               result=no
8701             else
8702               result=yes
8703             fi
8704           else
8705             result=$wxUSE_LOGWINDOW
8706           fi
8707
8708           { echo "$as_me:$LINENO: result: $result" >&5
8709 echo "${ECHO_T}$result" >&6; }
8710
8711
8712           enablestring=
8713           defaultval=$wxUSE_ALL_FEATURES
8714           if test -z "$defaultval"; then
8715               if test x"$enablestring" = xdisable; then
8716                   defaultval=yes
8717               else
8718                   defaultval=no
8719               fi
8720           fi
8721
8722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8723 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8724           # Check whether --enable-logdialog was given.
8725 if test "${enable_logdialog+set}" = set; then
8726   enableval=$enable_logdialog;
8727                           if test "$enableval" = yes; then
8728                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8729                           else
8730                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8731                           fi
8732
8733 else
8734
8735                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8736
8737 fi
8738
8739
8740           eval "$wx_cv_use_logdialog"
8741
8742           if test x"$enablestring" = xdisable; then
8743             if test $wxUSE_LOGDIALOG = yes; then
8744               result=no
8745             else
8746               result=yes
8747             fi
8748           else
8749             result=$wxUSE_LOGDIALOG
8750           fi
8751
8752           { echo "$as_me:$LINENO: result: $result" >&5
8753 echo "${ECHO_T}$result" >&6; }
8754
8755
8756           enablestring=
8757           defaultval=$wxUSE_ALL_FEATURES
8758           if test -z "$defaultval"; then
8759               if test x"$enablestring" = xdisable; then
8760                   defaultval=yes
8761               else
8762                   defaultval=no
8763               fi
8764           fi
8765
8766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8767 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8768           # Check whether --enable-mdi was given.
8769 if test "${enable_mdi+set}" = set; then
8770   enableval=$enable_mdi;
8771                           if test "$enableval" = yes; then
8772                             wx_cv_use_mdi='wxUSE_MDI=yes'
8773                           else
8774                             wx_cv_use_mdi='wxUSE_MDI=no'
8775                           fi
8776
8777 else
8778
8779                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8780
8781 fi
8782
8783
8784           eval "$wx_cv_use_mdi"
8785
8786           if test x"$enablestring" = xdisable; then
8787             if test $wxUSE_MDI = yes; then
8788               result=no
8789             else
8790               result=yes
8791             fi
8792           else
8793             result=$wxUSE_MDI
8794           fi
8795
8796           { echo "$as_me:$LINENO: result: $result" >&5
8797 echo "${ECHO_T}$result" >&6; }
8798
8799
8800           enablestring=
8801           defaultval=$wxUSE_ALL_FEATURES
8802           if test -z "$defaultval"; then
8803               if test x"$enablestring" = xdisable; then
8804                   defaultval=yes
8805               else
8806                   defaultval=no
8807               fi
8808           fi
8809
8810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8811 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8812           # Check whether --enable-mdidoc was given.
8813 if test "${enable_mdidoc+set}" = set; then
8814   enableval=$enable_mdidoc;
8815                           if test "$enableval" = yes; then
8816                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8817                           else
8818                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8819                           fi
8820
8821 else
8822
8823                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8824
8825 fi
8826
8827
8828           eval "$wx_cv_use_mdidoc"
8829
8830           if test x"$enablestring" = xdisable; then
8831             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8832               result=no
8833             else
8834               result=yes
8835             fi
8836           else
8837             result=$wxUSE_MDI_ARCHITECTURE
8838           fi
8839
8840           { echo "$as_me:$LINENO: result: $result" >&5
8841 echo "${ECHO_T}$result" >&6; }
8842
8843
8844           enablestring=
8845           defaultval=$wxUSE_ALL_FEATURES
8846           if test -z "$defaultval"; then
8847               if test x"$enablestring" = xdisable; then
8848                   defaultval=yes
8849               else
8850                   defaultval=no
8851               fi
8852           fi
8853
8854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8855 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8856           # Check whether --enable-mediactrl was given.
8857 if test "${enable_mediactrl+set}" = set; then
8858   enableval=$enable_mediactrl;
8859                           if test "$enableval" = yes; then
8860                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8861                           else
8862                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8863                           fi
8864
8865 else
8866
8867                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8868
8869 fi
8870
8871
8872           eval "$wx_cv_use_mediactrl"
8873
8874           if test x"$enablestring" = xdisable; then
8875             if test $wxUSE_MEDIACTRL = yes; then
8876               result=no
8877             else
8878               result=yes
8879             fi
8880           else
8881             result=$wxUSE_MEDIACTRL
8882           fi
8883
8884           { echo "$as_me:$LINENO: result: $result" >&5
8885 echo "${ECHO_T}$result" >&6; }
8886
8887
8888           enablestring=
8889           defaultval=$wxUSE_ALL_FEATURES
8890           if test -z "$defaultval"; then
8891               if test x"$enablestring" = xdisable; then
8892                   defaultval=yes
8893               else
8894                   defaultval=no
8895               fi
8896           fi
8897
8898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8899 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8900           # Check whether --enable-gstreamer8 was given.
8901 if test "${enable_gstreamer8+set}" = set; then
8902   enableval=$enable_gstreamer8;
8903                           if test "$enableval" = yes; then
8904                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8905                           else
8906                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8907                           fi
8908
8909 else
8910
8911                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8912
8913 fi
8914
8915
8916           eval "$wx_cv_use_gstreamer8"
8917
8918           if test x"$enablestring" = xdisable; then
8919             if test $wxUSE_GSTREAMER8 = yes; then
8920               result=no
8921             else
8922               result=yes
8923             fi
8924           else
8925             result=$wxUSE_GSTREAMER8
8926           fi
8927
8928           { echo "$as_me:$LINENO: result: $result" >&5
8929 echo "${ECHO_T}$result" >&6; }
8930
8931
8932           enablestring=
8933           defaultval=$wxUSE_ALL_FEATURES
8934           if test -z "$defaultval"; then
8935               if test x"$enablestring" = xdisable; then
8936                   defaultval=yes
8937               else
8938                   defaultval=no
8939               fi
8940           fi
8941
8942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8943 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8944           # Check whether --enable-webkit was given.
8945 if test "${enable_webkit+set}" = set; then
8946   enableval=$enable_webkit;
8947                           if test "$enableval" = yes; then
8948                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
8949                           else
8950                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
8951                           fi
8952
8953 else
8954
8955                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
8956
8957 fi
8958
8959
8960           eval "$wx_cv_use_webkit"
8961
8962           if test x"$enablestring" = xdisable; then
8963             if test $wxUSE_WEBKIT = yes; then
8964               result=no
8965             else
8966               result=yes
8967             fi
8968           else
8969             result=$wxUSE_WEBKIT
8970           fi
8971
8972           { echo "$as_me:$LINENO: result: $result" >&5
8973 echo "${ECHO_T}$result" >&6; }
8974
8975
8976           enablestring=
8977           defaultval=$wxUSE_ALL_FEATURES
8978           if test -z "$defaultval"; then
8979               if test x"$enablestring" = xdisable; then
8980                   defaultval=yes
8981               else
8982                   defaultval=no
8983               fi
8984           fi
8985
8986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8987 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8988           # Check whether --enable-richtext was given.
8989 if test "${enable_richtext+set}" = set; then
8990   enableval=$enable_richtext;
8991                           if test "$enableval" = yes; then
8992                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
8993                           else
8994                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
8995                           fi
8996
8997 else
8998
8999                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9000
9001 fi
9002
9003
9004           eval "$wx_cv_use_richtext"
9005
9006           if test x"$enablestring" = xdisable; then
9007             if test $wxUSE_RICHTEXT = yes; then
9008               result=no
9009             else
9010               result=yes
9011             fi
9012           else
9013             result=$wxUSE_RICHTEXT
9014           fi
9015
9016           { echo "$as_me:$LINENO: result: $result" >&5
9017 echo "${ECHO_T}$result" >&6; }
9018
9019
9020           enablestring=
9021           defaultval=$wxUSE_ALL_FEATURES
9022           if test -z "$defaultval"; then
9023               if test x"$enablestring" = xdisable; then
9024                   defaultval=yes
9025               else
9026                   defaultval=no
9027               fi
9028           fi
9029
9030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9031 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9032           # Check whether --enable-graphics_ctx was given.
9033 if test "${enable_graphics_ctx+set}" = set; then
9034   enableval=$enable_graphics_ctx;
9035                           if test "$enableval" = yes; then
9036                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9037                           else
9038                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9039                           fi
9040
9041 else
9042
9043                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9044
9045 fi
9046
9047
9048           eval "$wx_cv_use_graphics_ctx"
9049
9050           if test x"$enablestring" = xdisable; then
9051             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9052               result=no
9053             else
9054               result=yes
9055             fi
9056           else
9057             result=$wxUSE_GRAPHICS_CONTEXT
9058           fi
9059
9060           { echo "$as_me:$LINENO: result: $result" >&5
9061 echo "${ECHO_T}$result" >&6; }
9062
9063
9064           enablestring=
9065           defaultval=$wxUSE_ALL_FEATURES
9066           if test -z "$defaultval"; then
9067               if test x"$enablestring" = xdisable; then
9068                   defaultval=yes
9069               else
9070                   defaultval=no
9071               fi
9072           fi
9073
9074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9075 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9076           # Check whether --enable-postscript was given.
9077 if test "${enable_postscript+set}" = set; then
9078   enableval=$enable_postscript;
9079                           if test "$enableval" = yes; then
9080                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9081                           else
9082                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9083                           fi
9084
9085 else
9086
9087                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9088
9089 fi
9090
9091
9092           eval "$wx_cv_use_postscript"
9093
9094           if test x"$enablestring" = xdisable; then
9095             if test $wxUSE_POSTSCRIPT = yes; then
9096               result=no
9097             else
9098               result=yes
9099             fi
9100           else
9101             result=$wxUSE_POSTSCRIPT
9102           fi
9103
9104           { echo "$as_me:$LINENO: result: $result" >&5
9105 echo "${ECHO_T}$result" >&6; }
9106
9107
9108           enablestring=
9109           defaultval=$wxUSE_ALL_FEATURES
9110           if test -z "$defaultval"; then
9111               if test x"$enablestring" = xdisable; then
9112                   defaultval=yes
9113               else
9114                   defaultval=no
9115               fi
9116           fi
9117
9118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9119 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9120           # Check whether --enable-printarch was given.
9121 if test "${enable_printarch+set}" = set; then
9122   enableval=$enable_printarch;
9123                           if test "$enableval" = yes; then
9124                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9125                           else
9126                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9127                           fi
9128
9129 else
9130
9131                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9132
9133 fi
9134
9135
9136           eval "$wx_cv_use_printarch"
9137
9138           if test x"$enablestring" = xdisable; then
9139             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9140               result=no
9141             else
9142               result=yes
9143             fi
9144           else
9145             result=$wxUSE_PRINTING_ARCHITECTURE
9146           fi
9147
9148           { echo "$as_me:$LINENO: result: $result" >&5
9149 echo "${ECHO_T}$result" >&6; }
9150
9151
9152           enablestring=
9153           defaultval=$wxUSE_ALL_FEATURES
9154           if test -z "$defaultval"; then
9155               if test x"$enablestring" = xdisable; then
9156                   defaultval=yes
9157               else
9158                   defaultval=no
9159               fi
9160           fi
9161
9162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9163 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9164           # Check whether --enable-svg was given.
9165 if test "${enable_svg+set}" = set; then
9166   enableval=$enable_svg;
9167                           if test "$enableval" = yes; then
9168                             wx_cv_use_svg='wxUSE_SVG=yes'
9169                           else
9170                             wx_cv_use_svg='wxUSE_SVG=no'
9171                           fi
9172
9173 else
9174
9175                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9176
9177 fi
9178
9179
9180           eval "$wx_cv_use_svg"
9181
9182           if test x"$enablestring" = xdisable; then
9183             if test $wxUSE_SVG = yes; then
9184               result=no
9185             else
9186               result=yes
9187             fi
9188           else
9189             result=$wxUSE_SVG
9190           fi
9191
9192           { echo "$as_me:$LINENO: result: $result" >&5
9193 echo "${ECHO_T}$result" >&6; }
9194
9195
9196
9197
9198           enablestring=
9199           defaultval=$wxUSE_ALL_FEATURES
9200           if test -z "$defaultval"; then
9201               if test x"$enablestring" = xdisable; then
9202                   defaultval=yes
9203               else
9204                   defaultval=no
9205               fi
9206           fi
9207
9208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9209 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9210           # Check whether --enable-clipboard was given.
9211 if test "${enable_clipboard+set}" = set; then
9212   enableval=$enable_clipboard;
9213                           if test "$enableval" = yes; then
9214                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9215                           else
9216                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9217                           fi
9218
9219 else
9220
9221                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9222
9223 fi
9224
9225
9226           eval "$wx_cv_use_clipboard"
9227
9228           if test x"$enablestring" = xdisable; then
9229             if test $wxUSE_CLIPBOARD = yes; then
9230               result=no
9231             else
9232               result=yes
9233             fi
9234           else
9235             result=$wxUSE_CLIPBOARD
9236           fi
9237
9238           { echo "$as_me:$LINENO: result: $result" >&5
9239 echo "${ECHO_T}$result" >&6; }
9240
9241
9242           enablestring=
9243           defaultval=$wxUSE_ALL_FEATURES
9244           if test -z "$defaultval"; then
9245               if test x"$enablestring" = xdisable; then
9246                   defaultval=yes
9247               else
9248                   defaultval=no
9249               fi
9250           fi
9251
9252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9253 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9254           # Check whether --enable-dnd was given.
9255 if test "${enable_dnd+set}" = set; then
9256   enableval=$enable_dnd;
9257                           if test "$enableval" = yes; then
9258                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9259                           else
9260                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9261                           fi
9262
9263 else
9264
9265                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9266
9267 fi
9268
9269
9270           eval "$wx_cv_use_dnd"
9271
9272           if test x"$enablestring" = xdisable; then
9273             if test $wxUSE_DRAG_AND_DROP = yes; then
9274               result=no
9275             else
9276               result=yes
9277             fi
9278           else
9279             result=$wxUSE_DRAG_AND_DROP
9280           fi
9281
9282           { echo "$as_me:$LINENO: result: $result" >&5
9283 echo "${ECHO_T}$result" >&6; }
9284
9285
9286           enablestring=
9287           defaultval=$wxUSE_ALL_FEATURES
9288           if test -z "$defaultval"; then
9289               if test x"$enablestring" = xdisable; then
9290                   defaultval=yes
9291               else
9292                   defaultval=no
9293               fi
9294           fi
9295
9296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9297 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9298           # Check whether --enable-metafile was given.
9299 if test "${enable_metafile+set}" = set; then
9300   enableval=$enable_metafile;
9301                           if test "$enableval" = yes; then
9302                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9303                           else
9304                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9305                           fi
9306
9307 else
9308
9309                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9310
9311 fi
9312
9313
9314           eval "$wx_cv_use_metafile"
9315
9316           if test x"$enablestring" = xdisable; then
9317             if test $wxUSE_METAFILE = yes; then
9318               result=no
9319             else
9320               result=yes
9321             fi
9322           else
9323             result=$wxUSE_METAFILE
9324           fi
9325
9326           { echo "$as_me:$LINENO: result: $result" >&5
9327 echo "${ECHO_T}$result" >&6; }
9328
9329
9330
9331 DEFAULT_wxUSE_CONTROLS=none
9332
9333           enablestring=disable
9334           defaultval=
9335           if test -z "$defaultval"; then
9336               if test x"$enablestring" = xdisable; then
9337                   defaultval=yes
9338               else
9339                   defaultval=no
9340               fi
9341           fi
9342
9343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9344 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9345           # Check whether --enable-controls was given.
9346 if test "${enable_controls+set}" = set; then
9347   enableval=$enable_controls;
9348                           if test "$enableval" = yes; then
9349                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9350                           else
9351                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9352                           fi
9353
9354 else
9355
9356                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9357
9358 fi
9359
9360
9361           eval "$wx_cv_use_controls"
9362
9363           if test x"$enablestring" = xdisable; then
9364             if test $wxUSE_CONTROLS = yes; then
9365               result=no
9366             else
9367               result=yes
9368             fi
9369           else
9370             result=$wxUSE_CONTROLS
9371           fi
9372
9373           { echo "$as_me:$LINENO: result: $result" >&5
9374 echo "${ECHO_T}$result" >&6; }
9375
9376
9377 if test "$wxUSE_CONTROLS" = "yes"; then
9378   DEFAULT_wxUSE_ACCEL=yes
9379   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9380   DEFAULT_wxUSE_BMPBUTTON=yes
9381   DEFAULT_wxUSE_BUTTON=yes
9382   DEFAULT_wxUSE_CALCTRL=yes
9383   DEFAULT_wxUSE_CARET=yes
9384   DEFAULT_wxUSE_COMBOBOX=yes
9385   DEFAULT_wxUSE_CHECKBOX=yes
9386   DEFAULT_wxUSE_CHECKLISTBOX=yes
9387   DEFAULT_wxUSE_CHOICE=yes
9388   DEFAULT_wxUSE_CHOICEBOOK=yes
9389   DEFAULT_wxUSE_COLLPANE=yes
9390   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9391   DEFAULT_wxUSE_COMBOBOX=yes
9392   DEFAULT_wxUSE_DATEPICKCTRL=yes
9393   DEFAULT_wxUSE_DISPLAY=yes
9394   DEFAULT_wxUSE_DETECT_SM=yes
9395   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9396   DEFAULT_wxUSE_FILECTRL=yes
9397   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9398   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9399   DEFAULT_wxUSE_GAUGE=yes
9400   DEFAULT_wxUSE_GRID=yes
9401   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9402   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9403   DEFAULT_wxUSE_IMAGLIST=yes
9404   DEFAULT_wxUSE_LISTBOOK=yes
9405   DEFAULT_wxUSE_LISTBOX=yes
9406   DEFAULT_wxUSE_LISTCTRL=yes
9407   DEFAULT_wxUSE_NOTEBOOK=yes
9408   DEFAULT_wxUSE_RADIOBOX=yes
9409   DEFAULT_wxUSE_RADIOBTN=yes
9410   DEFAULT_wxUSE_SASH=yes
9411   DEFAULT_wxUSE_SCROLLBAR=yes
9412   DEFAULT_wxUSE_SEARCHCTRL=yes
9413   DEFAULT_wxUSE_SLIDER=yes
9414   DEFAULT_wxUSE_SPINBTN=yes
9415   DEFAULT_wxUSE_SPINCTRL=yes
9416   DEFAULT_wxUSE_SPLITTER=yes
9417   DEFAULT_wxUSE_STATBMP=yes
9418   DEFAULT_wxUSE_STATBOX=yes
9419   DEFAULT_wxUSE_STATLINE=yes
9420   DEFAULT_wxUSE_STATUSBAR=yes
9421   DEFAULT_wxUSE_TAB_DIALOG=yes
9422   DEFAULT_wxUSE_TOGGLEBTN=yes
9423   DEFAULT_wxUSE_TOOLBAR=yes
9424   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9425   DEFAULT_wxUSE_TOOLTIPS=yes
9426   DEFAULT_wxUSE_TREEBOOK=yes
9427   DEFAULT_wxUSE_TOOLBOOK=yes
9428   DEFAULT_wxUSE_TREECTRL=yes
9429   DEFAULT_wxUSE_POPUPWIN=yes
9430   DEFAULT_wxUSE_TIPWINDOW=yes
9431 elif test "$wxUSE_CONTROLS" = "no"; then
9432   DEFAULT_wxUSE_ACCEL=no
9433   DEFAULT_wxUSE_ANIMATIONCTRL=no
9434   DEFAULT_wxUSE_BMPBUTTON=no
9435   DEFAULT_wxUSE_BUTTON=no
9436   DEFAULT_wxUSE_CALCTRL=no
9437   DEFAULT_wxUSE_CARET=no
9438   DEFAULT_wxUSE_COLLPANE=no
9439   DEFAULT_wxUSE_COMBOBOX=no
9440   DEFAULT_wxUSE_CHECKBOX=no
9441   DEFAULT_wxUSE_CHECKLISTBOX=no
9442   DEFAULT_wxUSE_CHOICE=no
9443   DEFAULT_wxUSE_CHOICEBOOK=no
9444   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9445   DEFAULT_wxUSE_COMBOBOX=no
9446   DEFAULT_wxUSE_DATEPICKCTRL=no
9447   DEFAULT_wxUSE_DISPLAY=no
9448   DEFAULT_wxUSE_DETECT_SM=no
9449   DEFAULT_wxUSE_DIRPICKERCTRL=no
9450   DEFAULT_wxUSE_FILECTRL=no
9451   DEFAULT_wxUSE_FILEPICKERCTRL=no
9452   DEFAULT_wxUSE_FONTPICKERCTRL=no
9453   DEFAULT_wxUSE_GAUGE=no
9454   DEFAULT_wxUSE_GRID=no
9455   DEFAULT_wxUSE_HYPERLINKCTRL=no
9456   DEFAULT_wxUSE_DATAVIEWCTRL=no
9457   DEFAULT_wxUSE_IMAGLIST=no
9458   DEFAULT_wxUSE_LISTBOOK=no
9459   DEFAULT_wxUSE_LISTBOX=no
9460   DEFAULT_wxUSE_LISTCTRL=no
9461   DEFAULT_wxUSE_NOTEBOOK=no
9462   DEFAULT_wxUSE_RADIOBOX=no
9463   DEFAULT_wxUSE_RADIOBTN=no
9464   DEFAULT_wxUSE_SASH=no
9465   DEFAULT_wxUSE_SCROLLBAR=no
9466   DEFAULT_wxUSE_SEARCHCTRL=no
9467   DEFAULT_wxUSE_SLIDER=no
9468   DEFAULT_wxUSE_SPINBTN=no
9469   DEFAULT_wxUSE_SPINCTRL=no
9470   DEFAULT_wxUSE_SPLITTER=no
9471   DEFAULT_wxUSE_STATBMP=no
9472   DEFAULT_wxUSE_STATBOX=no
9473   DEFAULT_wxUSE_STATLINE=no
9474   DEFAULT_wxUSE_STATUSBAR=no
9475   DEFAULT_wxUSE_TAB_DIALOG=no
9476   DEFAULT_wxUSE_TOGGLEBTN=no
9477   DEFAULT_wxUSE_TOOLBAR=no
9478   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9479   DEFAULT_wxUSE_TOOLTIPS=no
9480   DEFAULT_wxUSE_TREEBOOK=no
9481   DEFAULT_wxUSE_TOOLBOOK=no
9482   DEFAULT_wxUSE_TREECTRL=no
9483   DEFAULT_wxUSE_POPUPWIN=no
9484   DEFAULT_wxUSE_TIPWINDOW=no
9485 fi
9486
9487
9488           enablestring=
9489           defaultval=$wxUSE_ALL_FEATURES
9490           if test -z "$defaultval"; then
9491               if test x"$enablestring" = xdisable; then
9492                   defaultval=yes
9493               else
9494                   defaultval=no
9495               fi
9496           fi
9497
9498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9499 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9500           # Check whether --enable-accel was given.
9501 if test "${enable_accel+set}" = set; then
9502   enableval=$enable_accel;
9503                           if test "$enableval" = yes; then
9504                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9505                           else
9506                             wx_cv_use_accel='wxUSE_ACCEL=no'
9507                           fi
9508
9509 else
9510
9511                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9512
9513 fi
9514
9515
9516           eval "$wx_cv_use_accel"
9517
9518           if test x"$enablestring" = xdisable; then
9519             if test $wxUSE_ACCEL = yes; then
9520               result=no
9521             else
9522               result=yes
9523             fi
9524           else
9525             result=$wxUSE_ACCEL
9526           fi
9527
9528           { echo "$as_me:$LINENO: result: $result" >&5
9529 echo "${ECHO_T}$result" >&6; }
9530
9531
9532           enablestring=
9533           defaultval=$wxUSE_ALL_FEATURES
9534           if test -z "$defaultval"; then
9535               if test x"$enablestring" = xdisable; then
9536                   defaultval=yes
9537               else
9538                   defaultval=no
9539               fi
9540           fi
9541
9542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9543 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9544           # Check whether --enable-animatectrl was given.
9545 if test "${enable_animatectrl+set}" = set; then
9546   enableval=$enable_animatectrl;
9547                           if test "$enableval" = yes; then
9548                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9549                           else
9550                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9551                           fi
9552
9553 else
9554
9555                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9556
9557 fi
9558
9559
9560           eval "$wx_cv_use_animatectrl"
9561
9562           if test x"$enablestring" = xdisable; then
9563             if test $wxUSE_ANIMATIONCTRL = yes; then
9564               result=no
9565             else
9566               result=yes
9567             fi
9568           else
9569             result=$wxUSE_ANIMATIONCTRL
9570           fi
9571
9572           { echo "$as_me:$LINENO: result: $result" >&5
9573 echo "${ECHO_T}$result" >&6; }
9574
9575
9576           enablestring=
9577           defaultval=$wxUSE_ALL_FEATURES
9578           if test -z "$defaultval"; then
9579               if test x"$enablestring" = xdisable; then
9580                   defaultval=yes
9581               else
9582                   defaultval=no
9583               fi
9584           fi
9585
9586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9587 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9588           # Check whether --enable-button was given.
9589 if test "${enable_button+set}" = set; then
9590   enableval=$enable_button;
9591                           if test "$enableval" = yes; then
9592                             wx_cv_use_button='wxUSE_BUTTON=yes'
9593                           else
9594                             wx_cv_use_button='wxUSE_BUTTON=no'
9595                           fi
9596
9597 else
9598
9599                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9600
9601 fi
9602
9603
9604           eval "$wx_cv_use_button"
9605
9606           if test x"$enablestring" = xdisable; then
9607             if test $wxUSE_BUTTON = yes; then
9608               result=no
9609             else
9610               result=yes
9611             fi
9612           else
9613             result=$wxUSE_BUTTON
9614           fi
9615
9616           { echo "$as_me:$LINENO: result: $result" >&5
9617 echo "${ECHO_T}$result" >&6; }
9618
9619
9620           enablestring=
9621           defaultval=$wxUSE_ALL_FEATURES
9622           if test -z "$defaultval"; then
9623               if test x"$enablestring" = xdisable; then
9624                   defaultval=yes
9625               else
9626                   defaultval=no
9627               fi
9628           fi
9629
9630           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9631 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9632           # Check whether --enable-bmpbutton was given.
9633 if test "${enable_bmpbutton+set}" = set; then
9634   enableval=$enable_bmpbutton;
9635                           if test "$enableval" = yes; then
9636                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9637                           else
9638                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9639                           fi
9640
9641 else
9642
9643                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9644
9645 fi
9646
9647
9648           eval "$wx_cv_use_bmpbutton"
9649
9650           if test x"$enablestring" = xdisable; then
9651             if test $wxUSE_BMPBUTTON = yes; then
9652               result=no
9653             else
9654               result=yes
9655             fi
9656           else
9657             result=$wxUSE_BMPBUTTON
9658           fi
9659
9660           { echo "$as_me:$LINENO: result: $result" >&5
9661 echo "${ECHO_T}$result" >&6; }
9662
9663
9664           enablestring=
9665           defaultval=$wxUSE_ALL_FEATURES
9666           if test -z "$defaultval"; then
9667               if test x"$enablestring" = xdisable; then
9668                   defaultval=yes
9669               else
9670                   defaultval=no
9671               fi
9672           fi
9673
9674           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9675 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9676           # Check whether --enable-bmpcombobox was given.
9677 if test "${enable_bmpcombobox+set}" = set; then
9678   enableval=$enable_bmpcombobox;
9679                           if test "$enableval" = yes; then
9680                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9681                           else
9682                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9683                           fi
9684
9685 else
9686
9687                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9688
9689 fi
9690
9691
9692           eval "$wx_cv_use_bmpcombobox"
9693
9694           if test x"$enablestring" = xdisable; then
9695             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9696               result=no
9697             else
9698               result=yes
9699             fi
9700           else
9701             result=$wxUSE_BITMAPCOMBOBOX
9702           fi
9703
9704           { echo "$as_me:$LINENO: result: $result" >&5
9705 echo "${ECHO_T}$result" >&6; }
9706
9707
9708           enablestring=
9709           defaultval=$wxUSE_ALL_FEATURES
9710           if test -z "$defaultval"; then
9711               if test x"$enablestring" = xdisable; then
9712                   defaultval=yes
9713               else
9714                   defaultval=no
9715               fi
9716           fi
9717
9718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9719 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9720           # Check whether --enable-calendar was given.
9721 if test "${enable_calendar+set}" = set; then
9722   enableval=$enable_calendar;
9723                           if test "$enableval" = yes; then
9724                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9725                           else
9726                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9727                           fi
9728
9729 else
9730
9731                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9732
9733 fi
9734
9735
9736           eval "$wx_cv_use_calendar"
9737
9738           if test x"$enablestring" = xdisable; then
9739             if test $wxUSE_CALCTRL = yes; then
9740               result=no
9741             else
9742               result=yes
9743             fi
9744           else
9745             result=$wxUSE_CALCTRL
9746           fi
9747
9748           { echo "$as_me:$LINENO: result: $result" >&5
9749 echo "${ECHO_T}$result" >&6; }
9750
9751
9752           enablestring=
9753           defaultval=$wxUSE_ALL_FEATURES
9754           if test -z "$defaultval"; then
9755               if test x"$enablestring" = xdisable; then
9756                   defaultval=yes
9757               else
9758                   defaultval=no
9759               fi
9760           fi
9761
9762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9763 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9764           # Check whether --enable-caret was given.
9765 if test "${enable_caret+set}" = set; then
9766   enableval=$enable_caret;
9767                           if test "$enableval" = yes; then
9768                             wx_cv_use_caret='wxUSE_CARET=yes'
9769                           else
9770                             wx_cv_use_caret='wxUSE_CARET=no'
9771                           fi
9772
9773 else
9774
9775                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9776
9777 fi
9778
9779
9780           eval "$wx_cv_use_caret"
9781
9782           if test x"$enablestring" = xdisable; then
9783             if test $wxUSE_CARET = yes; then
9784               result=no
9785             else
9786               result=yes
9787             fi
9788           else
9789             result=$wxUSE_CARET
9790           fi
9791
9792           { echo "$as_me:$LINENO: result: $result" >&5
9793 echo "${ECHO_T}$result" >&6; }
9794
9795
9796           enablestring=
9797           defaultval=$wxUSE_ALL_FEATURES
9798           if test -z "$defaultval"; then
9799               if test x"$enablestring" = xdisable; then
9800                   defaultval=yes
9801               else
9802                   defaultval=no
9803               fi
9804           fi
9805
9806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9807 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9808           # Check whether --enable-checkbox was given.
9809 if test "${enable_checkbox+set}" = set; then
9810   enableval=$enable_checkbox;
9811                           if test "$enableval" = yes; then
9812                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9813                           else
9814                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9815                           fi
9816
9817 else
9818
9819                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9820
9821 fi
9822
9823
9824           eval "$wx_cv_use_checkbox"
9825
9826           if test x"$enablestring" = xdisable; then
9827             if test $wxUSE_CHECKBOX = yes; then
9828               result=no
9829             else
9830               result=yes
9831             fi
9832           else
9833             result=$wxUSE_CHECKBOX
9834           fi
9835
9836           { echo "$as_me:$LINENO: result: $result" >&5
9837 echo "${ECHO_T}$result" >&6; }
9838
9839
9840           enablestring=
9841           defaultval=$wxUSE_ALL_FEATURES
9842           if test -z "$defaultval"; then
9843               if test x"$enablestring" = xdisable; then
9844                   defaultval=yes
9845               else
9846                   defaultval=no
9847               fi
9848           fi
9849
9850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9851 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9852           # Check whether --enable-checklst was given.
9853 if test "${enable_checklst+set}" = set; then
9854   enableval=$enable_checklst;
9855                           if test "$enableval" = yes; then
9856                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9857                           else
9858                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9859                           fi
9860
9861 else
9862
9863                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9864
9865 fi
9866
9867
9868           eval "$wx_cv_use_checklst"
9869
9870           if test x"$enablestring" = xdisable; then
9871             if test $wxUSE_CHECKLST = yes; then
9872               result=no
9873             else
9874               result=yes
9875             fi
9876           else
9877             result=$wxUSE_CHECKLST
9878           fi
9879
9880           { echo "$as_me:$LINENO: result: $result" >&5
9881 echo "${ECHO_T}$result" >&6; }
9882
9883
9884           enablestring=
9885           defaultval=$wxUSE_ALL_FEATURES
9886           if test -z "$defaultval"; then
9887               if test x"$enablestring" = xdisable; then
9888                   defaultval=yes
9889               else
9890                   defaultval=no
9891               fi
9892           fi
9893
9894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9895 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9896           # Check whether --enable-choice was given.
9897 if test "${enable_choice+set}" = set; then
9898   enableval=$enable_choice;
9899                           if test "$enableval" = yes; then
9900                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9901                           else
9902                             wx_cv_use_choice='wxUSE_CHOICE=no'
9903                           fi
9904
9905 else
9906
9907                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9908
9909 fi
9910
9911
9912           eval "$wx_cv_use_choice"
9913
9914           if test x"$enablestring" = xdisable; then
9915             if test $wxUSE_CHOICE = yes; then
9916               result=no
9917             else
9918               result=yes
9919             fi
9920           else
9921             result=$wxUSE_CHOICE
9922           fi
9923
9924           { echo "$as_me:$LINENO: result: $result" >&5
9925 echo "${ECHO_T}$result" >&6; }
9926
9927
9928           enablestring=
9929           defaultval=$wxUSE_ALL_FEATURES
9930           if test -z "$defaultval"; then
9931               if test x"$enablestring" = xdisable; then
9932                   defaultval=yes
9933               else
9934                   defaultval=no
9935               fi
9936           fi
9937
9938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9939 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9940           # Check whether --enable-choicebook was given.
9941 if test "${enable_choicebook+set}" = set; then
9942   enableval=$enable_choicebook;
9943                           if test "$enableval" = yes; then
9944                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9945                           else
9946                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9947                           fi
9948
9949 else
9950
9951                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9952
9953 fi
9954
9955
9956           eval "$wx_cv_use_choicebook"
9957
9958           if test x"$enablestring" = xdisable; then
9959             if test $wxUSE_CHOICEBOOK = yes; then
9960               result=no
9961             else
9962               result=yes
9963             fi
9964           else
9965             result=$wxUSE_CHOICEBOOK
9966           fi
9967
9968           { echo "$as_me:$LINENO: result: $result" >&5
9969 echo "${ECHO_T}$result" >&6; }
9970
9971
9972           enablestring=
9973           defaultval=$wxUSE_ALL_FEATURES
9974           if test -z "$defaultval"; then
9975               if test x"$enablestring" = xdisable; then
9976                   defaultval=yes
9977               else
9978                   defaultval=no
9979               fi
9980           fi
9981
9982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9983 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9984           # Check whether --enable-collpane was given.
9985 if test "${enable_collpane+set}" = set; then
9986   enableval=$enable_collpane;
9987                           if test "$enableval" = yes; then
9988                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9989                           else
9990                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9991                           fi
9992
9993 else
9994
9995                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9996
9997 fi
9998
9999
10000           eval "$wx_cv_use_collpane"
10001
10002           if test x"$enablestring" = xdisable; then
10003             if test $wxUSE_COLLPANE = yes; then
10004               result=no
10005             else
10006               result=yes
10007             fi
10008           else
10009             result=$wxUSE_COLLPANE
10010           fi
10011
10012           { echo "$as_me:$LINENO: result: $result" >&5
10013 echo "${ECHO_T}$result" >&6; }
10014
10015
10016           enablestring=
10017           defaultval=$wxUSE_ALL_FEATURES
10018           if test -z "$defaultval"; then
10019               if test x"$enablestring" = xdisable; then
10020                   defaultval=yes
10021               else
10022                   defaultval=no
10023               fi
10024           fi
10025
10026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10027 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10028           # Check whether --enable-colourpicker was given.
10029 if test "${enable_colourpicker+set}" = set; then
10030   enableval=$enable_colourpicker;
10031                           if test "$enableval" = yes; then
10032                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10033                           else
10034                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10035                           fi
10036
10037 else
10038
10039                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_colourpicker"
10045
10046           if test x"$enablestring" = xdisable; then
10047             if test $wxUSE_COLOURPICKERCTRL = yes; then
10048               result=no
10049             else
10050               result=yes
10051             fi
10052           else
10053             result=$wxUSE_COLOURPICKERCTRL
10054           fi
10055
10056           { echo "$as_me:$LINENO: result: $result" >&5
10057 echo "${ECHO_T}$result" >&6; }
10058
10059
10060           enablestring=
10061           defaultval=$wxUSE_ALL_FEATURES
10062           if test -z "$defaultval"; then
10063               if test x"$enablestring" = xdisable; then
10064                   defaultval=yes
10065               else
10066                   defaultval=no
10067               fi
10068           fi
10069
10070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10071 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10072           # Check whether --enable-combobox was given.
10073 if test "${enable_combobox+set}" = set; then
10074   enableval=$enable_combobox;
10075                           if test "$enableval" = yes; then
10076                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10077                           else
10078                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10079                           fi
10080
10081 else
10082
10083                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10084
10085 fi
10086
10087
10088           eval "$wx_cv_use_combobox"
10089
10090           if test x"$enablestring" = xdisable; then
10091             if test $wxUSE_COMBOBOX = yes; then
10092               result=no
10093             else
10094               result=yes
10095             fi
10096           else
10097             result=$wxUSE_COMBOBOX
10098           fi
10099
10100           { echo "$as_me:$LINENO: result: $result" >&5
10101 echo "${ECHO_T}$result" >&6; }
10102
10103
10104           enablestring=
10105           defaultval=$wxUSE_ALL_FEATURES
10106           if test -z "$defaultval"; then
10107               if test x"$enablestring" = xdisable; then
10108                   defaultval=yes
10109               else
10110                   defaultval=no
10111               fi
10112           fi
10113
10114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10115 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10116           # Check whether --enable-comboctrl was given.
10117 if test "${enable_comboctrl+set}" = set; then
10118   enableval=$enable_comboctrl;
10119                           if test "$enableval" = yes; then
10120                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10121                           else
10122                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10123                           fi
10124
10125 else
10126
10127                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10128
10129 fi
10130
10131
10132           eval "$wx_cv_use_comboctrl"
10133
10134           if test x"$enablestring" = xdisable; then
10135             if test $wxUSE_COMBOCTRL = yes; then
10136               result=no
10137             else
10138               result=yes
10139             fi
10140           else
10141             result=$wxUSE_COMBOCTRL
10142           fi
10143
10144           { echo "$as_me:$LINENO: result: $result" >&5
10145 echo "${ECHO_T}$result" >&6; }
10146
10147
10148           enablestring=
10149           defaultval=$wxUSE_ALL_FEATURES
10150           if test -z "$defaultval"; then
10151               if test x"$enablestring" = xdisable; then
10152                   defaultval=yes
10153               else
10154                   defaultval=no
10155               fi
10156           fi
10157
10158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10159 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10160           # Check whether --enable-datepick was given.
10161 if test "${enable_datepick+set}" = set; then
10162   enableval=$enable_datepick;
10163                           if test "$enableval" = yes; then
10164                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10165                           else
10166                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10167                           fi
10168
10169 else
10170
10171                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10172
10173 fi
10174
10175
10176           eval "$wx_cv_use_datepick"
10177
10178           if test x"$enablestring" = xdisable; then
10179             if test $wxUSE_DATEPICKCTRL = yes; then
10180               result=no
10181             else
10182               result=yes
10183             fi
10184           else
10185             result=$wxUSE_DATEPICKCTRL
10186           fi
10187
10188           { echo "$as_me:$LINENO: result: $result" >&5
10189 echo "${ECHO_T}$result" >&6; }
10190
10191
10192           enablestring=
10193           defaultval=$wxUSE_ALL_FEATURES
10194           if test -z "$defaultval"; then
10195               if test x"$enablestring" = xdisable; then
10196                   defaultval=yes
10197               else
10198                   defaultval=no
10199               fi
10200           fi
10201
10202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10203 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10204           # Check whether --enable-dirpicker was given.
10205 if test "${enable_dirpicker+set}" = set; then
10206   enableval=$enable_dirpicker;
10207                           if test "$enableval" = yes; then
10208                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10209                           else
10210                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10211                           fi
10212
10213 else
10214
10215                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10216
10217 fi
10218
10219
10220           eval "$wx_cv_use_dirpicker"
10221
10222           if test x"$enablestring" = xdisable; then
10223             if test $wxUSE_DIRPICKERCTRL = yes; then
10224               result=no
10225             else
10226               result=yes
10227             fi
10228           else
10229             result=$wxUSE_DIRPICKERCTRL
10230           fi
10231
10232           { echo "$as_me:$LINENO: result: $result" >&5
10233 echo "${ECHO_T}$result" >&6; }
10234
10235
10236           enablestring=
10237           defaultval=$wxUSE_ALL_FEATURES
10238           if test -z "$defaultval"; then
10239               if test x"$enablestring" = xdisable; then
10240                   defaultval=yes
10241               else
10242                   defaultval=no
10243               fi
10244           fi
10245
10246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10247 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10248           # Check whether --enable-display was given.
10249 if test "${enable_display+set}" = set; then
10250   enableval=$enable_display;
10251                           if test "$enableval" = yes; then
10252                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10253                           else
10254                             wx_cv_use_display='wxUSE_DISPLAY=no'
10255                           fi
10256
10257 else
10258
10259                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10260
10261 fi
10262
10263
10264           eval "$wx_cv_use_display"
10265
10266           if test x"$enablestring" = xdisable; then
10267             if test $wxUSE_DISPLAY = yes; then
10268               result=no
10269             else
10270               result=yes
10271             fi
10272           else
10273             result=$wxUSE_DISPLAY
10274           fi
10275
10276           { echo "$as_me:$LINENO: result: $result" >&5
10277 echo "${ECHO_T}$result" >&6; }
10278
10279
10280           enablestring=
10281           defaultval=$wxUSE_ALL_FEATURES
10282           if test -z "$defaultval"; then
10283               if test x"$enablestring" = xdisable; then
10284                   defaultval=yes
10285               else
10286                   defaultval=no
10287               fi
10288           fi
10289
10290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10292           # Check whether --enable-detect_sm was given.
10293 if test "${enable_detect_sm+set}" = set; then
10294   enableval=$enable_detect_sm;
10295                           if test "$enableval" = yes; then
10296                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10297                           else
10298                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10299                           fi
10300
10301 else
10302
10303                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10304
10305 fi
10306
10307
10308           eval "$wx_cv_use_detect_sm"
10309
10310           if test x"$enablestring" = xdisable; then
10311             if test $wxUSE_DETECT_SM = yes; then
10312               result=no
10313             else
10314               result=yes
10315             fi
10316           else
10317             result=$wxUSE_DETECT_SM
10318           fi
10319
10320           { echo "$as_me:$LINENO: result: $result" >&5
10321 echo "${ECHO_T}$result" >&6; }
10322
10323
10324           enablestring=
10325           defaultval=$wxUSE_ALL_FEATURES
10326           if test -z "$defaultval"; then
10327               if test x"$enablestring" = xdisable; then
10328                   defaultval=yes
10329               else
10330                   defaultval=no
10331               fi
10332           fi
10333
10334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10335 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10336           # Check whether --enable-editablebox was given.
10337 if test "${enable_editablebox+set}" = set; then
10338   enableval=$enable_editablebox;
10339                           if test "$enableval" = yes; then
10340                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10341                           else
10342                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10343                           fi
10344
10345 else
10346
10347                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10348
10349 fi
10350
10351
10352           eval "$wx_cv_use_editablebox"
10353
10354           if test x"$enablestring" = xdisable; then
10355             if test $wxUSE_EDITABLELISTBOX = yes; then
10356               result=no
10357             else
10358               result=yes
10359             fi
10360           else
10361             result=$wxUSE_EDITABLELISTBOX
10362           fi
10363
10364           { echo "$as_me:$LINENO: result: $result" >&5
10365 echo "${ECHO_T}$result" >&6; }
10366
10367
10368           enablestring=
10369           defaultval=$wxUSE_ALL_FEATURES
10370           if test -z "$defaultval"; then
10371               if test x"$enablestring" = xdisable; then
10372                   defaultval=yes
10373               else
10374                   defaultval=no
10375               fi
10376           fi
10377
10378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10379 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10380           # Check whether --enable-filepicker was given.
10381 if test "${enable_filepicker+set}" = set; then
10382   enableval=$enable_filepicker;
10383                           if test "$enableval" = yes; then
10384                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10385                           else
10386                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10387                           fi
10388
10389 else
10390
10391                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10392
10393 fi
10394
10395
10396           eval "$wx_cv_use_filepicker"
10397
10398           if test x"$enablestring" = xdisable; then
10399             if test $wxUSE_FILEPICKERCTRL = yes; then
10400               result=no
10401             else
10402               result=yes
10403             fi
10404           else
10405             result=$wxUSE_FILEPICKERCTRL
10406           fi
10407
10408           { echo "$as_me:$LINENO: result: $result" >&5
10409 echo "${ECHO_T}$result" >&6; }
10410
10411
10412           enablestring=
10413           defaultval=$wxUSE_ALL_FEATURES
10414           if test -z "$defaultval"; then
10415               if test x"$enablestring" = xdisable; then
10416                   defaultval=yes
10417               else
10418                   defaultval=no
10419               fi
10420           fi
10421
10422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10423 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10424           # Check whether --enable-filectrl was given.
10425 if test "${enable_filectrl+set}" = set; then
10426   enableval=$enable_filectrl;
10427                           if test "$enableval" = yes; then
10428                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10429                           else
10430                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10431                           fi
10432
10433 else
10434
10435                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10436
10437 fi
10438
10439
10440           eval "$wx_cv_use_filectrl"
10441
10442           if test x"$enablestring" = xdisable; then
10443             if test $wxUSE_FILECTRL = yes; then
10444               result=no
10445             else
10446               result=yes
10447             fi
10448           else
10449             result=$wxUSE_FILECTRL
10450           fi
10451
10452           { echo "$as_me:$LINENO: result: $result" >&5
10453 echo "${ECHO_T}$result" >&6; }
10454
10455
10456           enablestring=
10457           defaultval=$wxUSE_ALL_FEATURES
10458           if test -z "$defaultval"; then
10459               if test x"$enablestring" = xdisable; then
10460                   defaultval=yes
10461               else
10462                   defaultval=no
10463               fi
10464           fi
10465
10466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10467 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10468           # Check whether --enable-fontpicker was given.
10469 if test "${enable_fontpicker+set}" = set; then
10470   enableval=$enable_fontpicker;
10471                           if test "$enableval" = yes; then
10472                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10473                           else
10474                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10475                           fi
10476
10477 else
10478
10479                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10480
10481 fi
10482
10483
10484           eval "$wx_cv_use_fontpicker"
10485
10486           if test x"$enablestring" = xdisable; then
10487             if test $wxUSE_FONTPICKERCTRL = yes; then
10488               result=no
10489             else
10490               result=yes
10491             fi
10492           else
10493             result=$wxUSE_FONTPICKERCTRL
10494           fi
10495
10496           { echo "$as_me:$LINENO: result: $result" >&5
10497 echo "${ECHO_T}$result" >&6; }
10498
10499
10500           enablestring=
10501           defaultval=$wxUSE_ALL_FEATURES
10502           if test -z "$defaultval"; then
10503               if test x"$enablestring" = xdisable; then
10504                   defaultval=yes
10505               else
10506                   defaultval=no
10507               fi
10508           fi
10509
10510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10511 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10512           # Check whether --enable-gauge was given.
10513 if test "${enable_gauge+set}" = set; then
10514   enableval=$enable_gauge;
10515                           if test "$enableval" = yes; then
10516                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10517                           else
10518                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10519                           fi
10520
10521 else
10522
10523                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10524
10525 fi
10526
10527
10528           eval "$wx_cv_use_gauge"
10529
10530           if test x"$enablestring" = xdisable; then
10531             if test $wxUSE_GAUGE = yes; then
10532               result=no
10533             else
10534               result=yes
10535             fi
10536           else
10537             result=$wxUSE_GAUGE
10538           fi
10539
10540           { echo "$as_me:$LINENO: result: $result" >&5
10541 echo "${ECHO_T}$result" >&6; }
10542
10543
10544           enablestring=
10545           defaultval=$wxUSE_ALL_FEATURES
10546           if test -z "$defaultval"; then
10547               if test x"$enablestring" = xdisable; then
10548                   defaultval=yes
10549               else
10550                   defaultval=no
10551               fi
10552           fi
10553
10554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10555 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10556           # Check whether --enable-grid was given.
10557 if test "${enable_grid+set}" = set; then
10558   enableval=$enable_grid;
10559                           if test "$enableval" = yes; then
10560                             wx_cv_use_grid='wxUSE_GRID=yes'
10561                           else
10562                             wx_cv_use_grid='wxUSE_GRID=no'
10563                           fi
10564
10565 else
10566
10567                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10568
10569 fi
10570
10571
10572           eval "$wx_cv_use_grid"
10573
10574           if test x"$enablestring" = xdisable; then
10575             if test $wxUSE_GRID = yes; then
10576               result=no
10577             else
10578               result=yes
10579             fi
10580           else
10581             result=$wxUSE_GRID
10582           fi
10583
10584           { echo "$as_me:$LINENO: result: $result" >&5
10585 echo "${ECHO_T}$result" >&6; }
10586
10587
10588           enablestring=
10589           defaultval=$wxUSE_ALL_FEATURES
10590           if test -z "$defaultval"; then
10591               if test x"$enablestring" = xdisable; then
10592                   defaultval=yes
10593               else
10594                   defaultval=no
10595               fi
10596           fi
10597
10598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10599 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10600           # Check whether --enable-dataviewctrl was given.
10601 if test "${enable_dataviewctrl+set}" = set; then
10602   enableval=$enable_dataviewctrl;
10603                           if test "$enableval" = yes; then
10604                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10605                           else
10606                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10607                           fi
10608
10609 else
10610
10611                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10612
10613 fi
10614
10615
10616           eval "$wx_cv_use_dataviewctrl"
10617
10618           if test x"$enablestring" = xdisable; then
10619             if test $wxUSE_DATAVIEWCTRL = yes; then
10620               result=no
10621             else
10622               result=yes
10623             fi
10624           else
10625             result=$wxUSE_DATAVIEWCTRL
10626           fi
10627
10628           { echo "$as_me:$LINENO: result: $result" >&5
10629 echo "${ECHO_T}$result" >&6; }
10630
10631
10632           enablestring=
10633           defaultval=$wxUSE_ALL_FEATURES
10634           if test -z "$defaultval"; then
10635               if test x"$enablestring" = xdisable; then
10636                   defaultval=yes
10637               else
10638                   defaultval=no
10639               fi
10640           fi
10641
10642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10643 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10644           # Check whether --enable-hyperlink was given.
10645 if test "${enable_hyperlink+set}" = set; then
10646   enableval=$enable_hyperlink;
10647                           if test "$enableval" = yes; then
10648                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10649                           else
10650                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10651                           fi
10652
10653 else
10654
10655                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10656
10657 fi
10658
10659
10660           eval "$wx_cv_use_hyperlink"
10661
10662           if test x"$enablestring" = xdisable; then
10663             if test $wxUSE_HYPERLINKCTRL = yes; then
10664               result=no
10665             else
10666               result=yes
10667             fi
10668           else
10669             result=$wxUSE_HYPERLINKCTRL
10670           fi
10671
10672           { echo "$as_me:$LINENO: result: $result" >&5
10673 echo "${ECHO_T}$result" >&6; }
10674
10675
10676           enablestring=
10677           defaultval=$wxUSE_ALL_FEATURES
10678           if test -z "$defaultval"; then
10679               if test x"$enablestring" = xdisable; then
10680                   defaultval=yes
10681               else
10682                   defaultval=no
10683               fi
10684           fi
10685
10686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10687 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10688           # Check whether --enable-imaglist was given.
10689 if test "${enable_imaglist+set}" = set; then
10690   enableval=$enable_imaglist;
10691                           if test "$enableval" = yes; then
10692                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10693                           else
10694                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10695                           fi
10696
10697 else
10698
10699                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10700
10701 fi
10702
10703
10704           eval "$wx_cv_use_imaglist"
10705
10706           if test x"$enablestring" = xdisable; then
10707             if test $wxUSE_IMAGLIST = yes; then
10708               result=no
10709             else
10710               result=yes
10711             fi
10712           else
10713             result=$wxUSE_IMAGLIST
10714           fi
10715
10716           { echo "$as_me:$LINENO: result: $result" >&5
10717 echo "${ECHO_T}$result" >&6; }
10718
10719
10720           enablestring=
10721           defaultval=$wxUSE_ALL_FEATURES
10722           if test -z "$defaultval"; then
10723               if test x"$enablestring" = xdisable; then
10724                   defaultval=yes
10725               else
10726                   defaultval=no
10727               fi
10728           fi
10729
10730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10731 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10732           # Check whether --enable-listbook was given.
10733 if test "${enable_listbook+set}" = set; then
10734   enableval=$enable_listbook;
10735                           if test "$enableval" = yes; then
10736                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10737                           else
10738                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10739                           fi
10740
10741 else
10742
10743                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10744
10745 fi
10746
10747
10748           eval "$wx_cv_use_listbook"
10749
10750           if test x"$enablestring" = xdisable; then
10751             if test $wxUSE_LISTBOOK = yes; then
10752               result=no
10753             else
10754               result=yes
10755             fi
10756           else
10757             result=$wxUSE_LISTBOOK
10758           fi
10759
10760           { echo "$as_me:$LINENO: result: $result" >&5
10761 echo "${ECHO_T}$result" >&6; }
10762
10763
10764           enablestring=
10765           defaultval=$wxUSE_ALL_FEATURES
10766           if test -z "$defaultval"; then
10767               if test x"$enablestring" = xdisable; then
10768                   defaultval=yes
10769               else
10770                   defaultval=no
10771               fi
10772           fi
10773
10774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10775 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10776           # Check whether --enable-listbox was given.
10777 if test "${enable_listbox+set}" = set; then
10778   enableval=$enable_listbox;
10779                           if test "$enableval" = yes; then
10780                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10781                           else
10782                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10783                           fi
10784
10785 else
10786
10787                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10788
10789 fi
10790
10791
10792           eval "$wx_cv_use_listbox"
10793
10794           if test x"$enablestring" = xdisable; then
10795             if test $wxUSE_LISTBOX = yes; then
10796               result=no
10797             else
10798               result=yes
10799             fi
10800           else
10801             result=$wxUSE_LISTBOX
10802           fi
10803
10804           { echo "$as_me:$LINENO: result: $result" >&5
10805 echo "${ECHO_T}$result" >&6; }
10806
10807
10808           enablestring=
10809           defaultval=$wxUSE_ALL_FEATURES
10810           if test -z "$defaultval"; then
10811               if test x"$enablestring" = xdisable; then
10812                   defaultval=yes
10813               else
10814                   defaultval=no
10815               fi
10816           fi
10817
10818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10819 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10820           # Check whether --enable-listctrl was given.
10821 if test "${enable_listctrl+set}" = set; then
10822   enableval=$enable_listctrl;
10823                           if test "$enableval" = yes; then
10824                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10825                           else
10826                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10827                           fi
10828
10829 else
10830
10831                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10832
10833 fi
10834
10835
10836           eval "$wx_cv_use_listctrl"
10837
10838           if test x"$enablestring" = xdisable; then
10839             if test $wxUSE_LISTCTRL = yes; then
10840               result=no
10841             else
10842               result=yes
10843             fi
10844           else
10845             result=$wxUSE_LISTCTRL
10846           fi
10847
10848           { echo "$as_me:$LINENO: result: $result" >&5
10849 echo "${ECHO_T}$result" >&6; }
10850
10851
10852           enablestring=
10853           defaultval=$wxUSE_ALL_FEATURES
10854           if test -z "$defaultval"; then
10855               if test x"$enablestring" = xdisable; then
10856                   defaultval=yes
10857               else
10858                   defaultval=no
10859               fi
10860           fi
10861
10862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10863 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10864           # Check whether --enable-notebook was given.
10865 if test "${enable_notebook+set}" = set; then
10866   enableval=$enable_notebook;
10867                           if test "$enableval" = yes; then
10868                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10869                           else
10870                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10871                           fi
10872
10873 else
10874
10875                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10876
10877 fi
10878
10879
10880           eval "$wx_cv_use_notebook"
10881
10882           if test x"$enablestring" = xdisable; then
10883             if test $wxUSE_NOTEBOOK = yes; then
10884               result=no
10885             else
10886               result=yes
10887             fi
10888           else
10889             result=$wxUSE_NOTEBOOK
10890           fi
10891
10892           { echo "$as_me:$LINENO: result: $result" >&5
10893 echo "${ECHO_T}$result" >&6; }
10894
10895
10896           enablestring=
10897           defaultval=$wxUSE_ALL_FEATURES
10898           if test -z "$defaultval"; then
10899               if test x"$enablestring" = xdisable; then
10900                   defaultval=yes
10901               else
10902                   defaultval=no
10903               fi
10904           fi
10905
10906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10907 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10908           # Check whether --enable-notifmsg was given.
10909 if test "${enable_notifmsg+set}" = set; then
10910   enableval=$enable_notifmsg;
10911                           if test "$enableval" = yes; then
10912                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10913                           else
10914                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10915                           fi
10916
10917 else
10918
10919                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10920
10921 fi
10922
10923
10924           eval "$wx_cv_use_notifmsg"
10925
10926           if test x"$enablestring" = xdisable; then
10927             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10928               result=no
10929             else
10930               result=yes
10931             fi
10932           else
10933             result=$wxUSE_NOTIFICATION_MESSAGE
10934           fi
10935
10936           { echo "$as_me:$LINENO: result: $result" >&5
10937 echo "${ECHO_T}$result" >&6; }
10938
10939
10940           enablestring=
10941           defaultval=$wxUSE_ALL_FEATURES
10942           if test -z "$defaultval"; then
10943               if test x"$enablestring" = xdisable; then
10944                   defaultval=yes
10945               else
10946                   defaultval=no
10947               fi
10948           fi
10949
10950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10951 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10952           # Check whether --enable-odcombobox was given.
10953 if test "${enable_odcombobox+set}" = set; then
10954   enableval=$enable_odcombobox;
10955                           if test "$enableval" = yes; then
10956                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10957                           else
10958                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10959                           fi
10960
10961 else
10962
10963                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_odcombobox"
10969
10970           if test x"$enablestring" = xdisable; then
10971             if test $wxUSE_ODCOMBOBOX = yes; then
10972               result=no
10973             else
10974               result=yes
10975             fi
10976           else
10977             result=$wxUSE_ODCOMBOBOX
10978           fi
10979
10980           { echo "$as_me:$LINENO: result: $result" >&5
10981 echo "${ECHO_T}$result" >&6; }
10982
10983
10984           enablestring=
10985           defaultval=$wxUSE_ALL_FEATURES
10986           if test -z "$defaultval"; then
10987               if test x"$enablestring" = xdisable; then
10988                   defaultval=yes
10989               else
10990                   defaultval=no
10991               fi
10992           fi
10993
10994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10995 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10996           # Check whether --enable-radiobox was given.
10997 if test "${enable_radiobox+set}" = set; then
10998   enableval=$enable_radiobox;
10999                           if test "$enableval" = yes; then
11000                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11001                           else
11002                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11003                           fi
11004
11005 else
11006
11007                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11008
11009 fi
11010
11011
11012           eval "$wx_cv_use_radiobox"
11013
11014           if test x"$enablestring" = xdisable; then
11015             if test $wxUSE_RADIOBOX = yes; then
11016               result=no
11017             else
11018               result=yes
11019             fi
11020           else
11021             result=$wxUSE_RADIOBOX
11022           fi
11023
11024           { echo "$as_me:$LINENO: result: $result" >&5
11025 echo "${ECHO_T}$result" >&6; }
11026
11027
11028           enablestring=
11029           defaultval=$wxUSE_ALL_FEATURES
11030           if test -z "$defaultval"; then
11031               if test x"$enablestring" = xdisable; then
11032                   defaultval=yes
11033               else
11034                   defaultval=no
11035               fi
11036           fi
11037
11038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11039 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11040           # Check whether --enable-radiobtn was given.
11041 if test "${enable_radiobtn+set}" = set; then
11042   enableval=$enable_radiobtn;
11043                           if test "$enableval" = yes; then
11044                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11045                           else
11046                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11047                           fi
11048
11049 else
11050
11051                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11052
11053 fi
11054
11055
11056           eval "$wx_cv_use_radiobtn"
11057
11058           if test x"$enablestring" = xdisable; then
11059             if test $wxUSE_RADIOBTN = yes; then
11060               result=no
11061             else
11062               result=yes
11063             fi
11064           else
11065             result=$wxUSE_RADIOBTN
11066           fi
11067
11068           { echo "$as_me:$LINENO: result: $result" >&5
11069 echo "${ECHO_T}$result" >&6; }
11070
11071
11072           enablestring=
11073           defaultval=$wxUSE_ALL_FEATURES
11074           if test -z "$defaultval"; then
11075               if test x"$enablestring" = xdisable; then
11076                   defaultval=yes
11077               else
11078                   defaultval=no
11079               fi
11080           fi
11081
11082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11083 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11084           # Check whether --enable-sash was given.
11085 if test "${enable_sash+set}" = set; then
11086   enableval=$enable_sash;
11087                           if test "$enableval" = yes; then
11088                             wx_cv_use_sash='wxUSE_SASH=yes'
11089                           else
11090                             wx_cv_use_sash='wxUSE_SASH=no'
11091                           fi
11092
11093 else
11094
11095                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11096
11097 fi
11098
11099
11100           eval "$wx_cv_use_sash"
11101
11102           if test x"$enablestring" = xdisable; then
11103             if test $wxUSE_SASH = yes; then
11104               result=no
11105             else
11106               result=yes
11107             fi
11108           else
11109             result=$wxUSE_SASH
11110           fi
11111
11112           { echo "$as_me:$LINENO: result: $result" >&5
11113 echo "${ECHO_T}$result" >&6; }
11114
11115
11116           enablestring=
11117           defaultval=$wxUSE_ALL_FEATURES
11118           if test -z "$defaultval"; then
11119               if test x"$enablestring" = xdisable; then
11120                   defaultval=yes
11121               else
11122                   defaultval=no
11123               fi
11124           fi
11125
11126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11127 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11128           # Check whether --enable-scrollbar was given.
11129 if test "${enable_scrollbar+set}" = set; then
11130   enableval=$enable_scrollbar;
11131                           if test "$enableval" = yes; then
11132                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11133                           else
11134                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11135                           fi
11136
11137 else
11138
11139                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11140
11141 fi
11142
11143
11144           eval "$wx_cv_use_scrollbar"
11145
11146           if test x"$enablestring" = xdisable; then
11147             if test $wxUSE_SCROLLBAR = yes; then
11148               result=no
11149             else
11150               result=yes
11151             fi
11152           else
11153             result=$wxUSE_SCROLLBAR
11154           fi
11155
11156           { echo "$as_me:$LINENO: result: $result" >&5
11157 echo "${ECHO_T}$result" >&6; }
11158
11159
11160           enablestring=
11161           defaultval=$wxUSE_ALL_FEATURES
11162           if test -z "$defaultval"; then
11163               if test x"$enablestring" = xdisable; then
11164                   defaultval=yes
11165               else
11166                   defaultval=no
11167               fi
11168           fi
11169
11170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11171 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11172           # Check whether --enable-searchctrl was given.
11173 if test "${enable_searchctrl+set}" = set; then
11174   enableval=$enable_searchctrl;
11175                           if test "$enableval" = yes; then
11176                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11177                           else
11178                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11179                           fi
11180
11181 else
11182
11183                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11184
11185 fi
11186
11187
11188           eval "$wx_cv_use_searchctrl"
11189
11190           if test x"$enablestring" = xdisable; then
11191             if test $wxUSE_SEARCHCTRL = yes; then
11192               result=no
11193             else
11194               result=yes
11195             fi
11196           else
11197             result=$wxUSE_SEARCHCTRL
11198           fi
11199
11200           { echo "$as_me:$LINENO: result: $result" >&5
11201 echo "${ECHO_T}$result" >&6; }
11202
11203
11204           enablestring=
11205           defaultval=$wxUSE_ALL_FEATURES
11206           if test -z "$defaultval"; then
11207               if test x"$enablestring" = xdisable; then
11208                   defaultval=yes
11209               else
11210                   defaultval=no
11211               fi
11212           fi
11213
11214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11215 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11216           # Check whether --enable-slider was given.
11217 if test "${enable_slider+set}" = set; then
11218   enableval=$enable_slider;
11219                           if test "$enableval" = yes; then
11220                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11221                           else
11222                             wx_cv_use_slider='wxUSE_SLIDER=no'
11223                           fi
11224
11225 else
11226
11227                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11228
11229 fi
11230
11231
11232           eval "$wx_cv_use_slider"
11233
11234           if test x"$enablestring" = xdisable; then
11235             if test $wxUSE_SLIDER = yes; then
11236               result=no
11237             else
11238               result=yes
11239             fi
11240           else
11241             result=$wxUSE_SLIDER
11242           fi
11243
11244           { echo "$as_me:$LINENO: result: $result" >&5
11245 echo "${ECHO_T}$result" >&6; }
11246
11247
11248           enablestring=
11249           defaultval=$wxUSE_ALL_FEATURES
11250           if test -z "$defaultval"; then
11251               if test x"$enablestring" = xdisable; then
11252                   defaultval=yes
11253               else
11254                   defaultval=no
11255               fi
11256           fi
11257
11258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11259 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11260           # Check whether --enable-spinbtn was given.
11261 if test "${enable_spinbtn+set}" = set; then
11262   enableval=$enable_spinbtn;
11263                           if test "$enableval" = yes; then
11264                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11265                           else
11266                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11267                           fi
11268
11269 else
11270
11271                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11272
11273 fi
11274
11275
11276           eval "$wx_cv_use_spinbtn"
11277
11278           if test x"$enablestring" = xdisable; then
11279             if test $wxUSE_SPINBTN = yes; then
11280               result=no
11281             else
11282               result=yes
11283             fi
11284           else
11285             result=$wxUSE_SPINBTN
11286           fi
11287
11288           { echo "$as_me:$LINENO: result: $result" >&5
11289 echo "${ECHO_T}$result" >&6; }
11290
11291
11292           enablestring=
11293           defaultval=$wxUSE_ALL_FEATURES
11294           if test -z "$defaultval"; then
11295               if test x"$enablestring" = xdisable; then
11296                   defaultval=yes
11297               else
11298                   defaultval=no
11299               fi
11300           fi
11301
11302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11303 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11304           # Check whether --enable-spinctrl was given.
11305 if test "${enable_spinctrl+set}" = set; then
11306   enableval=$enable_spinctrl;
11307                           if test "$enableval" = yes; then
11308                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11309                           else
11310                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11311                           fi
11312
11313 else
11314
11315                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11316
11317 fi
11318
11319
11320           eval "$wx_cv_use_spinctrl"
11321
11322           if test x"$enablestring" = xdisable; then
11323             if test $wxUSE_SPINCTRL = yes; then
11324               result=no
11325             else
11326               result=yes
11327             fi
11328           else
11329             result=$wxUSE_SPINCTRL
11330           fi
11331
11332           { echo "$as_me:$LINENO: result: $result" >&5
11333 echo "${ECHO_T}$result" >&6; }
11334
11335
11336           enablestring=
11337           defaultval=$wxUSE_ALL_FEATURES
11338           if test -z "$defaultval"; then
11339               if test x"$enablestring" = xdisable; then
11340                   defaultval=yes
11341               else
11342                   defaultval=no
11343               fi
11344           fi
11345
11346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11347 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11348           # Check whether --enable-splitter was given.
11349 if test "${enable_splitter+set}" = set; then
11350   enableval=$enable_splitter;
11351                           if test "$enableval" = yes; then
11352                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11353                           else
11354                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11355                           fi
11356
11357 else
11358
11359                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11360
11361 fi
11362
11363
11364           eval "$wx_cv_use_splitter"
11365
11366           if test x"$enablestring" = xdisable; then
11367             if test $wxUSE_SPLITTER = yes; then
11368               result=no
11369             else
11370               result=yes
11371             fi
11372           else
11373             result=$wxUSE_SPLITTER
11374           fi
11375
11376           { echo "$as_me:$LINENO: result: $result" >&5
11377 echo "${ECHO_T}$result" >&6; }
11378
11379
11380           enablestring=
11381           defaultval=$wxUSE_ALL_FEATURES
11382           if test -z "$defaultval"; then
11383               if test x"$enablestring" = xdisable; then
11384                   defaultval=yes
11385               else
11386                   defaultval=no
11387               fi
11388           fi
11389
11390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11391 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11392           # Check whether --enable-statbmp was given.
11393 if test "${enable_statbmp+set}" = set; then
11394   enableval=$enable_statbmp;
11395                           if test "$enableval" = yes; then
11396                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11397                           else
11398                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11399                           fi
11400
11401 else
11402
11403                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11404
11405 fi
11406
11407
11408           eval "$wx_cv_use_statbmp"
11409
11410           if test x"$enablestring" = xdisable; then
11411             if test $wxUSE_STATBMP = yes; then
11412               result=no
11413             else
11414               result=yes
11415             fi
11416           else
11417             result=$wxUSE_STATBMP
11418           fi
11419
11420           { echo "$as_me:$LINENO: result: $result" >&5
11421 echo "${ECHO_T}$result" >&6; }
11422
11423
11424           enablestring=
11425           defaultval=$wxUSE_ALL_FEATURES
11426           if test -z "$defaultval"; then
11427               if test x"$enablestring" = xdisable; then
11428                   defaultval=yes
11429               else
11430                   defaultval=no
11431               fi
11432           fi
11433
11434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11435 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11436           # Check whether --enable-statbox was given.
11437 if test "${enable_statbox+set}" = set; then
11438   enableval=$enable_statbox;
11439                           if test "$enableval" = yes; then
11440                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11441                           else
11442                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11443                           fi
11444
11445 else
11446
11447                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11448
11449 fi
11450
11451
11452           eval "$wx_cv_use_statbox"
11453
11454           if test x"$enablestring" = xdisable; then
11455             if test $wxUSE_STATBOX = yes; then
11456               result=no
11457             else
11458               result=yes
11459             fi
11460           else
11461             result=$wxUSE_STATBOX
11462           fi
11463
11464           { echo "$as_me:$LINENO: result: $result" >&5
11465 echo "${ECHO_T}$result" >&6; }
11466
11467
11468           enablestring=
11469           defaultval=$wxUSE_ALL_FEATURES
11470           if test -z "$defaultval"; then
11471               if test x"$enablestring" = xdisable; then
11472                   defaultval=yes
11473               else
11474                   defaultval=no
11475               fi
11476           fi
11477
11478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11479 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11480           # Check whether --enable-statline was given.
11481 if test "${enable_statline+set}" = set; then
11482   enableval=$enable_statline;
11483                           if test "$enableval" = yes; then
11484                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11485                           else
11486                             wx_cv_use_statline='wxUSE_STATLINE=no'
11487                           fi
11488
11489 else
11490
11491                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11492
11493 fi
11494
11495
11496           eval "$wx_cv_use_statline"
11497
11498           if test x"$enablestring" = xdisable; then
11499             if test $wxUSE_STATLINE = yes; then
11500               result=no
11501             else
11502               result=yes
11503             fi
11504           else
11505             result=$wxUSE_STATLINE
11506           fi
11507
11508           { echo "$as_me:$LINENO: result: $result" >&5
11509 echo "${ECHO_T}$result" >&6; }
11510
11511
11512           enablestring=
11513           defaultval=$wxUSE_ALL_FEATURES
11514           if test -z "$defaultval"; then
11515               if test x"$enablestring" = xdisable; then
11516                   defaultval=yes
11517               else
11518                   defaultval=no
11519               fi
11520           fi
11521
11522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11523 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11524           # Check whether --enable-stattext was given.
11525 if test "${enable_stattext+set}" = set; then
11526   enableval=$enable_stattext;
11527                           if test "$enableval" = yes; then
11528                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11529                           else
11530                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11531                           fi
11532
11533 else
11534
11535                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11536
11537 fi
11538
11539
11540           eval "$wx_cv_use_stattext"
11541
11542           if test x"$enablestring" = xdisable; then
11543             if test $wxUSE_STATTEXT = yes; then
11544               result=no
11545             else
11546               result=yes
11547             fi
11548           else
11549             result=$wxUSE_STATTEXT
11550           fi
11551
11552           { echo "$as_me:$LINENO: result: $result" >&5
11553 echo "${ECHO_T}$result" >&6; }
11554
11555
11556           enablestring=
11557           defaultval=$wxUSE_ALL_FEATURES
11558           if test -z "$defaultval"; then
11559               if test x"$enablestring" = xdisable; then
11560                   defaultval=yes
11561               else
11562                   defaultval=no
11563               fi
11564           fi
11565
11566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11567 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11568           # Check whether --enable-statusbar was given.
11569 if test "${enable_statusbar+set}" = set; then
11570   enableval=$enable_statusbar;
11571                           if test "$enableval" = yes; then
11572                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11573                           else
11574                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11575                           fi
11576
11577 else
11578
11579                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11580
11581 fi
11582
11583
11584           eval "$wx_cv_use_statusbar"
11585
11586           if test x"$enablestring" = xdisable; then
11587             if test $wxUSE_STATUSBAR = yes; then
11588               result=no
11589             else
11590               result=yes
11591             fi
11592           else
11593             result=$wxUSE_STATUSBAR
11594           fi
11595
11596           { echo "$as_me:$LINENO: result: $result" >&5
11597 echo "${ECHO_T}$result" >&6; }
11598
11599
11600           enablestring=
11601           defaultval=$wxUSE_ALL_FEATURES
11602           if test -z "$defaultval"; then
11603               if test x"$enablestring" = xdisable; then
11604                   defaultval=yes
11605               else
11606                   defaultval=no
11607               fi
11608           fi
11609
11610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11611 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11612           # Check whether --enable-tabdialog was given.
11613 if test "${enable_tabdialog+set}" = set; then
11614   enableval=$enable_tabdialog;
11615                           if test "$enableval" = yes; then
11616                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11617                           else
11618                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11619                           fi
11620
11621 else
11622
11623                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11624
11625 fi
11626
11627
11628           eval "$wx_cv_use_tabdialog"
11629
11630           if test x"$enablestring" = xdisable; then
11631             if test $wxUSE_TAB_DIALOG = yes; then
11632               result=no
11633             else
11634               result=yes
11635             fi
11636           else
11637             result=$wxUSE_TAB_DIALOG
11638           fi
11639
11640           { echo "$as_me:$LINENO: result: $result" >&5
11641 echo "${ECHO_T}$result" >&6; }
11642
11643
11644           enablestring=
11645           defaultval=$wxUSE_ALL_FEATURES
11646           if test -z "$defaultval"; then
11647               if test x"$enablestring" = xdisable; then
11648                   defaultval=yes
11649               else
11650                   defaultval=no
11651               fi
11652           fi
11653
11654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11655 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11656           # Check whether --enable-taskbaricon was given.
11657 if test "${enable_taskbaricon+set}" = set; then
11658   enableval=$enable_taskbaricon;
11659                           if test "$enableval" = yes; then
11660                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11661                           else
11662                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11663                           fi
11664
11665 else
11666
11667                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11668
11669 fi
11670
11671
11672           eval "$wx_cv_use_taskbaricon"
11673
11674           if test x"$enablestring" = xdisable; then
11675             if test $wxUSE_TASKBARICON = yes; then
11676               result=no
11677             else
11678               result=yes
11679             fi
11680           else
11681             result=$wxUSE_TASKBARICON
11682           fi
11683
11684           { echo "$as_me:$LINENO: result: $result" >&5
11685 echo "${ECHO_T}$result" >&6; }
11686
11687
11688           enablestring=
11689           defaultval=$wxUSE_ALL_FEATURES
11690           if test -z "$defaultval"; then
11691               if test x"$enablestring" = xdisable; then
11692                   defaultval=yes
11693               else
11694                   defaultval=no
11695               fi
11696           fi
11697
11698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11699 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11700           # Check whether --enable-textctrl was given.
11701 if test "${enable_textctrl+set}" = set; then
11702   enableval=$enable_textctrl;
11703                           if test "$enableval" = yes; then
11704                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11705                           else
11706                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11707                           fi
11708
11709 else
11710
11711                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11712
11713 fi
11714
11715
11716           eval "$wx_cv_use_textctrl"
11717
11718           if test x"$enablestring" = xdisable; then
11719             if test $wxUSE_TEXTCTRL = yes; then
11720               result=no
11721             else
11722               result=yes
11723             fi
11724           else
11725             result=$wxUSE_TEXTCTRL
11726           fi
11727
11728           { echo "$as_me:$LINENO: result: $result" >&5
11729 echo "${ECHO_T}$result" >&6; }
11730
11731
11732           enablestring=
11733           defaultval=$wxUSE_ALL_FEATURES
11734           if test -z "$defaultval"; then
11735               if test x"$enablestring" = xdisable; then
11736                   defaultval=yes
11737               else
11738                   defaultval=no
11739               fi
11740           fi
11741
11742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11743 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11744           # Check whether --enable-togglebtn was given.
11745 if test "${enable_togglebtn+set}" = set; then
11746   enableval=$enable_togglebtn;
11747                           if test "$enableval" = yes; then
11748                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11749                           else
11750                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11751                           fi
11752
11753 else
11754
11755                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11756
11757 fi
11758
11759
11760           eval "$wx_cv_use_togglebtn"
11761
11762           if test x"$enablestring" = xdisable; then
11763             if test $wxUSE_TOGGLEBTN = yes; then
11764               result=no
11765             else
11766               result=yes
11767             fi
11768           else
11769             result=$wxUSE_TOGGLEBTN
11770           fi
11771
11772           { echo "$as_me:$LINENO: result: $result" >&5
11773 echo "${ECHO_T}$result" >&6; }
11774
11775
11776           enablestring=
11777           defaultval=$wxUSE_ALL_FEATURES
11778           if test -z "$defaultval"; then
11779               if test x"$enablestring" = xdisable; then
11780                   defaultval=yes
11781               else
11782                   defaultval=no
11783               fi
11784           fi
11785
11786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11787 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11788           # Check whether --enable-toolbar was given.
11789 if test "${enable_toolbar+set}" = set; then
11790   enableval=$enable_toolbar;
11791                           if test "$enableval" = yes; then
11792                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11793                           else
11794                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11795                           fi
11796
11797 else
11798
11799                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11800
11801 fi
11802
11803
11804           eval "$wx_cv_use_toolbar"
11805
11806           if test x"$enablestring" = xdisable; then
11807             if test $wxUSE_TOOLBAR = yes; then
11808               result=no
11809             else
11810               result=yes
11811             fi
11812           else
11813             result=$wxUSE_TOOLBAR
11814           fi
11815
11816           { echo "$as_me:$LINENO: result: $result" >&5
11817 echo "${ECHO_T}$result" >&6; }
11818
11819
11820           enablestring=
11821           defaultval=$wxUSE_ALL_FEATURES
11822           if test -z "$defaultval"; then
11823               if test x"$enablestring" = xdisable; then
11824                   defaultval=yes
11825               else
11826                   defaultval=no
11827               fi
11828           fi
11829
11830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11831 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11832           # Check whether --enable-tbarnative was given.
11833 if test "${enable_tbarnative+set}" = set; then
11834   enableval=$enable_tbarnative;
11835                           if test "$enableval" = yes; then
11836                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11837                           else
11838                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11839                           fi
11840
11841 else
11842
11843                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11844
11845 fi
11846
11847
11848           eval "$wx_cv_use_tbarnative"
11849
11850           if test x"$enablestring" = xdisable; then
11851             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11852               result=no
11853             else
11854               result=yes
11855             fi
11856           else
11857             result=$wxUSE_TOOLBAR_NATIVE
11858           fi
11859
11860           { echo "$as_me:$LINENO: result: $result" >&5
11861 echo "${ECHO_T}$result" >&6; }
11862
11863
11864           enablestring=
11865           defaultval=$wxUSE_ALL_FEATURES
11866           if test -z "$defaultval"; then
11867               if test x"$enablestring" = xdisable; then
11868                   defaultval=yes
11869               else
11870                   defaultval=no
11871               fi
11872           fi
11873
11874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11875 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11876           # Check whether --enable-treebook was given.
11877 if test "${enable_treebook+set}" = set; then
11878   enableval=$enable_treebook;
11879                           if test "$enableval" = yes; then
11880                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11881                           else
11882                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11883                           fi
11884
11885 else
11886
11887                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11888
11889 fi
11890
11891
11892           eval "$wx_cv_use_treebook"
11893
11894           if test x"$enablestring" = xdisable; then
11895             if test $wxUSE_TREEBOOK = yes; then
11896               result=no
11897             else
11898               result=yes
11899             fi
11900           else
11901             result=$wxUSE_TREEBOOK
11902           fi
11903
11904           { echo "$as_me:$LINENO: result: $result" >&5
11905 echo "${ECHO_T}$result" >&6; }
11906
11907
11908           enablestring=
11909           defaultval=$wxUSE_ALL_FEATURES
11910           if test -z "$defaultval"; then
11911               if test x"$enablestring" = xdisable; then
11912                   defaultval=yes
11913               else
11914                   defaultval=no
11915               fi
11916           fi
11917
11918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11919 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11920           # Check whether --enable-toolbook was given.
11921 if test "${enable_toolbook+set}" = set; then
11922   enableval=$enable_toolbook;
11923                           if test "$enableval" = yes; then
11924                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11925                           else
11926                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
11927                           fi
11928
11929 else
11930
11931                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
11932
11933 fi
11934
11935
11936           eval "$wx_cv_use_toolbook"
11937
11938           if test x"$enablestring" = xdisable; then
11939             if test $wxUSE_TOOLBOOK = yes; then
11940               result=no
11941             else
11942               result=yes
11943             fi
11944           else
11945             result=$wxUSE_TOOLBOOK
11946           fi
11947
11948           { echo "$as_me:$LINENO: result: $result" >&5
11949 echo "${ECHO_T}$result" >&6; }
11950
11951
11952           enablestring=
11953           defaultval=$wxUSE_ALL_FEATURES
11954           if test -z "$defaultval"; then
11955               if test x"$enablestring" = xdisable; then
11956                   defaultval=yes
11957               else
11958                   defaultval=no
11959               fi
11960           fi
11961
11962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
11963 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
11964           # Check whether --enable-treectrl was given.
11965 if test "${enable_treectrl+set}" = set; then
11966   enableval=$enable_treectrl;
11967                           if test "$enableval" = yes; then
11968                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
11969                           else
11970                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
11971                           fi
11972
11973 else
11974
11975                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
11976
11977 fi
11978
11979
11980           eval "$wx_cv_use_treectrl"
11981
11982           if test x"$enablestring" = xdisable; then
11983             if test $wxUSE_TREECTRL = yes; then
11984               result=no
11985             else
11986               result=yes
11987             fi
11988           else
11989             result=$wxUSE_TREECTRL
11990           fi
11991
11992           { echo "$as_me:$LINENO: result: $result" >&5
11993 echo "${ECHO_T}$result" >&6; }
11994
11995
11996           enablestring=
11997           defaultval=$wxUSE_ALL_FEATURES
11998           if test -z "$defaultval"; then
11999               if test x"$enablestring" = xdisable; then
12000                   defaultval=yes
12001               else
12002                   defaultval=no
12003               fi
12004           fi
12005
12006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12007 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12008           # Check whether --enable-tipwindow was given.
12009 if test "${enable_tipwindow+set}" = set; then
12010   enableval=$enable_tipwindow;
12011                           if test "$enableval" = yes; then
12012                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12013                           else
12014                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12015                           fi
12016
12017 else
12018
12019                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12020
12021 fi
12022
12023
12024           eval "$wx_cv_use_tipwindow"
12025
12026           if test x"$enablestring" = xdisable; then
12027             if test $wxUSE_TIPWINDOW = yes; then
12028               result=no
12029             else
12030               result=yes
12031             fi
12032           else
12033             result=$wxUSE_TIPWINDOW
12034           fi
12035
12036           { echo "$as_me:$LINENO: result: $result" >&5
12037 echo "${ECHO_T}$result" >&6; }
12038
12039
12040           enablestring=
12041           defaultval=$wxUSE_ALL_FEATURES
12042           if test -z "$defaultval"; then
12043               if test x"$enablestring" = xdisable; then
12044                   defaultval=yes
12045               else
12046                   defaultval=no
12047               fi
12048           fi
12049
12050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
12051 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
12052           # Check whether --enable-popupwin was given.
12053 if test "${enable_popupwin+set}" = set; then
12054   enableval=$enable_popupwin;
12055                           if test "$enableval" = yes; then
12056                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12057                           else
12058                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
12059                           fi
12060
12061 else
12062
12063                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12064
12065 fi
12066
12067
12068           eval "$wx_cv_use_popupwin"
12069
12070           if test x"$enablestring" = xdisable; then
12071             if test $wxUSE_POPUPWIN = yes; then
12072               result=no
12073             else
12074               result=yes
12075             fi
12076           else
12077             result=$wxUSE_POPUPWIN
12078           fi
12079
12080           { echo "$as_me:$LINENO: result: $result" >&5
12081 echo "${ECHO_T}$result" >&6; }
12082
12083
12084
12085
12086           enablestring=
12087           defaultval=$wxUSE_ALL_FEATURES
12088           if test -z "$defaultval"; then
12089               if test x"$enablestring" = xdisable; then
12090                   defaultval=yes
12091               else
12092                   defaultval=no
12093               fi
12094           fi
12095
12096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12097 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12098           # Check whether --enable-commondlg was given.
12099 if test "${enable_commondlg+set}" = set; then
12100   enableval=$enable_commondlg;
12101                           if test "$enableval" = yes; then
12102                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12103                           else
12104                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12105                           fi
12106
12107 else
12108
12109                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12110
12111 fi
12112
12113
12114           eval "$wx_cv_use_commondlg"
12115
12116           if test x"$enablestring" = xdisable; then
12117             if test $wxUSE_COMMONDLGS = yes; then
12118               result=no
12119             else
12120               result=yes
12121             fi
12122           else
12123             result=$wxUSE_COMMONDLGS
12124           fi
12125
12126           { echo "$as_me:$LINENO: result: $result" >&5
12127 echo "${ECHO_T}$result" >&6; }
12128
12129
12130           enablestring=
12131           defaultval=$wxUSE_ALL_FEATURES
12132           if test -z "$defaultval"; then
12133               if test x"$enablestring" = xdisable; then
12134                   defaultval=yes
12135               else
12136                   defaultval=no
12137               fi
12138           fi
12139
12140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12141 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12142           # Check whether --enable-aboutdlg was given.
12143 if test "${enable_aboutdlg+set}" = set; then
12144   enableval=$enable_aboutdlg;
12145                           if test "$enableval" = yes; then
12146                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12147                           else
12148                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12149                           fi
12150
12151 else
12152
12153                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12154
12155 fi
12156
12157
12158           eval "$wx_cv_use_aboutdlg"
12159
12160           if test x"$enablestring" = xdisable; then
12161             if test $wxUSE_ABOUTDLG = yes; then
12162               result=no
12163             else
12164               result=yes
12165             fi
12166           else
12167             result=$wxUSE_ABOUTDLG
12168           fi
12169
12170           { echo "$as_me:$LINENO: result: $result" >&5
12171 echo "${ECHO_T}$result" >&6; }
12172
12173
12174           enablestring=
12175           defaultval=$wxUSE_ALL_FEATURES
12176           if test -z "$defaultval"; then
12177               if test x"$enablestring" = xdisable; then
12178                   defaultval=yes
12179               else
12180                   defaultval=no
12181               fi
12182           fi
12183
12184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12185 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12186           # Check whether --enable-choicedlg was given.
12187 if test "${enable_choicedlg+set}" = set; then
12188   enableval=$enable_choicedlg;
12189                           if test "$enableval" = yes; then
12190                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12191                           else
12192                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12193                           fi
12194
12195 else
12196
12197                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12198
12199 fi
12200
12201
12202           eval "$wx_cv_use_choicedlg"
12203
12204           if test x"$enablestring" = xdisable; then
12205             if test $wxUSE_CHOICEDLG = yes; then
12206               result=no
12207             else
12208               result=yes
12209             fi
12210           else
12211             result=$wxUSE_CHOICEDLG
12212           fi
12213
12214           { echo "$as_me:$LINENO: result: $result" >&5
12215 echo "${ECHO_T}$result" >&6; }
12216
12217
12218           enablestring=
12219           defaultval=$wxUSE_ALL_FEATURES
12220           if test -z "$defaultval"; then
12221               if test x"$enablestring" = xdisable; then
12222                   defaultval=yes
12223               else
12224                   defaultval=no
12225               fi
12226           fi
12227
12228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12229 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12230           # Check whether --enable-coldlg was given.
12231 if test "${enable_coldlg+set}" = set; then
12232   enableval=$enable_coldlg;
12233                           if test "$enableval" = yes; then
12234                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12235                           else
12236                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12237                           fi
12238
12239 else
12240
12241                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12242
12243 fi
12244
12245
12246           eval "$wx_cv_use_coldlg"
12247
12248           if test x"$enablestring" = xdisable; then
12249             if test $wxUSE_COLOURDLG = yes; then
12250               result=no
12251             else
12252               result=yes
12253             fi
12254           else
12255             result=$wxUSE_COLOURDLG
12256           fi
12257
12258           { echo "$as_me:$LINENO: result: $result" >&5
12259 echo "${ECHO_T}$result" >&6; }
12260
12261
12262           enablestring=
12263           defaultval=$wxUSE_ALL_FEATURES
12264           if test -z "$defaultval"; then
12265               if test x"$enablestring" = xdisable; then
12266                   defaultval=yes
12267               else
12268                   defaultval=no
12269               fi
12270           fi
12271
12272           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12273 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12274           # Check whether --enable-filedlg was given.
12275 if test "${enable_filedlg+set}" = set; then
12276   enableval=$enable_filedlg;
12277                           if test "$enableval" = yes; then
12278                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12279                           else
12280                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12281                           fi
12282
12283 else
12284
12285                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12286
12287 fi
12288
12289
12290           eval "$wx_cv_use_filedlg"
12291
12292           if test x"$enablestring" = xdisable; then
12293             if test $wxUSE_FILEDLG = yes; then
12294               result=no
12295             else
12296               result=yes
12297             fi
12298           else
12299             result=$wxUSE_FILEDLG
12300           fi
12301
12302           { echo "$as_me:$LINENO: result: $result" >&5
12303 echo "${ECHO_T}$result" >&6; }
12304
12305
12306           enablestring=
12307           defaultval=$wxUSE_ALL_FEATURES
12308           if test -z "$defaultval"; then
12309               if test x"$enablestring" = xdisable; then
12310                   defaultval=yes
12311               else
12312                   defaultval=no
12313               fi
12314           fi
12315
12316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12317 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12318           # Check whether --enable-finddlg was given.
12319 if test "${enable_finddlg+set}" = set; then
12320   enableval=$enable_finddlg;
12321                           if test "$enableval" = yes; then
12322                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12323                           else
12324                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12325                           fi
12326
12327 else
12328
12329                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12330
12331 fi
12332
12333
12334           eval "$wx_cv_use_finddlg"
12335
12336           if test x"$enablestring" = xdisable; then
12337             if test $wxUSE_FINDREPLDLG = yes; then
12338               result=no
12339             else
12340               result=yes
12341             fi
12342           else
12343             result=$wxUSE_FINDREPLDLG
12344           fi
12345
12346           { echo "$as_me:$LINENO: result: $result" >&5
12347 echo "${ECHO_T}$result" >&6; }
12348
12349
12350           enablestring=
12351           defaultval=$wxUSE_ALL_FEATURES
12352           if test -z "$defaultval"; then
12353               if test x"$enablestring" = xdisable; then
12354                   defaultval=yes
12355               else
12356                   defaultval=no
12357               fi
12358           fi
12359
12360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12361 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12362           # Check whether --enable-fontdlg was given.
12363 if test "${enable_fontdlg+set}" = set; then
12364   enableval=$enable_fontdlg;
12365                           if test "$enableval" = yes; then
12366                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12367                           else
12368                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12369                           fi
12370
12371 else
12372
12373                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12374
12375 fi
12376
12377
12378           eval "$wx_cv_use_fontdlg"
12379
12380           if test x"$enablestring" = xdisable; then
12381             if test $wxUSE_FONTDLG = yes; then
12382               result=no
12383             else
12384               result=yes
12385             fi
12386           else
12387             result=$wxUSE_FONTDLG
12388           fi
12389
12390           { echo "$as_me:$LINENO: result: $result" >&5
12391 echo "${ECHO_T}$result" >&6; }
12392
12393
12394           enablestring=
12395           defaultval=$wxUSE_ALL_FEATURES
12396           if test -z "$defaultval"; then
12397               if test x"$enablestring" = xdisable; then
12398                   defaultval=yes
12399               else
12400                   defaultval=no
12401               fi
12402           fi
12403
12404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12405 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12406           # Check whether --enable-dirdlg was given.
12407 if test "${enable_dirdlg+set}" = set; then
12408   enableval=$enable_dirdlg;
12409                           if test "$enableval" = yes; then
12410                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12411                           else
12412                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12413                           fi
12414
12415 else
12416
12417                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12418
12419 fi
12420
12421
12422           eval "$wx_cv_use_dirdlg"
12423
12424           if test x"$enablestring" = xdisable; then
12425             if test $wxUSE_DIRDLG = yes; then
12426               result=no
12427             else
12428               result=yes
12429             fi
12430           else
12431             result=$wxUSE_DIRDLG
12432           fi
12433
12434           { echo "$as_me:$LINENO: result: $result" >&5
12435 echo "${ECHO_T}$result" >&6; }
12436
12437
12438           enablestring=
12439           defaultval=$wxUSE_ALL_FEATURES
12440           if test -z "$defaultval"; then
12441               if test x"$enablestring" = xdisable; then
12442                   defaultval=yes
12443               else
12444                   defaultval=no
12445               fi
12446           fi
12447
12448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12449 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12450           # Check whether --enable-msgdlg was given.
12451 if test "${enable_msgdlg+set}" = set; then
12452   enableval=$enable_msgdlg;
12453                           if test "$enableval" = yes; then
12454                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12455                           else
12456                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12457                           fi
12458
12459 else
12460
12461                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12462
12463 fi
12464
12465
12466           eval "$wx_cv_use_msgdlg"
12467
12468           if test x"$enablestring" = xdisable; then
12469             if test $wxUSE_MSGDLG = yes; then
12470               result=no
12471             else
12472               result=yes
12473             fi
12474           else
12475             result=$wxUSE_MSGDLG
12476           fi
12477
12478           { echo "$as_me:$LINENO: result: $result" >&5
12479 echo "${ECHO_T}$result" >&6; }
12480
12481
12482           enablestring=
12483           defaultval=$wxUSE_ALL_FEATURES
12484           if test -z "$defaultval"; then
12485               if test x"$enablestring" = xdisable; then
12486                   defaultval=yes
12487               else
12488                   defaultval=no
12489               fi
12490           fi
12491
12492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12493 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12494           # Check whether --enable-numberdlg was given.
12495 if test "${enable_numberdlg+set}" = set; then
12496   enableval=$enable_numberdlg;
12497                           if test "$enableval" = yes; then
12498                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12499                           else
12500                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12501                           fi
12502
12503 else
12504
12505                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12506
12507 fi
12508
12509
12510           eval "$wx_cv_use_numberdlg"
12511
12512           if test x"$enablestring" = xdisable; then
12513             if test $wxUSE_NUMBERDLG = yes; then
12514               result=no
12515             else
12516               result=yes
12517             fi
12518           else
12519             result=$wxUSE_NUMBERDLG
12520           fi
12521
12522           { echo "$as_me:$LINENO: result: $result" >&5
12523 echo "${ECHO_T}$result" >&6; }
12524
12525
12526           enablestring=
12527           defaultval=$wxUSE_ALL_FEATURES
12528           if test -z "$defaultval"; then
12529               if test x"$enablestring" = xdisable; then
12530                   defaultval=yes
12531               else
12532                   defaultval=no
12533               fi
12534           fi
12535
12536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12537 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12538           # Check whether --enable-splash was given.
12539 if test "${enable_splash+set}" = set; then
12540   enableval=$enable_splash;
12541                           if test "$enableval" = yes; then
12542                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12543                           else
12544                             wx_cv_use_splash='wxUSE_SPLASH=no'
12545                           fi
12546
12547 else
12548
12549                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12550
12551 fi
12552
12553
12554           eval "$wx_cv_use_splash"
12555
12556           if test x"$enablestring" = xdisable; then
12557             if test $wxUSE_SPLASH = yes; then
12558               result=no
12559             else
12560               result=yes
12561             fi
12562           else
12563             result=$wxUSE_SPLASH
12564           fi
12565
12566           { echo "$as_me:$LINENO: result: $result" >&5
12567 echo "${ECHO_T}$result" >&6; }
12568
12569
12570           enablestring=
12571           defaultval=$wxUSE_ALL_FEATURES
12572           if test -z "$defaultval"; then
12573               if test x"$enablestring" = xdisable; then
12574                   defaultval=yes
12575               else
12576                   defaultval=no
12577               fi
12578           fi
12579
12580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12581 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12582           # Check whether --enable-textdlg was given.
12583 if test "${enable_textdlg+set}" = set; then
12584   enableval=$enable_textdlg;
12585                           if test "$enableval" = yes; then
12586                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12587                           else
12588                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12589                           fi
12590
12591 else
12592
12593                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12594
12595 fi
12596
12597
12598           eval "$wx_cv_use_textdlg"
12599
12600           if test x"$enablestring" = xdisable; then
12601             if test $wxUSE_TEXTDLG = yes; then
12602               result=no
12603             else
12604               result=yes
12605             fi
12606           else
12607             result=$wxUSE_TEXTDLG
12608           fi
12609
12610           { echo "$as_me:$LINENO: result: $result" >&5
12611 echo "${ECHO_T}$result" >&6; }
12612
12613
12614           enablestring=
12615           defaultval=$wxUSE_ALL_FEATURES
12616           if test -z "$defaultval"; then
12617               if test x"$enablestring" = xdisable; then
12618                   defaultval=yes
12619               else
12620                   defaultval=no
12621               fi
12622           fi
12623
12624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12625 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12626           # Check whether --enable-tipdlg was given.
12627 if test "${enable_tipdlg+set}" = set; then
12628   enableval=$enable_tipdlg;
12629                           if test "$enableval" = yes; then
12630                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12631                           else
12632                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12633                           fi
12634
12635 else
12636
12637                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12638
12639 fi
12640
12641
12642           eval "$wx_cv_use_tipdlg"
12643
12644           if test x"$enablestring" = xdisable; then
12645             if test $wxUSE_STARTUP_TIPS = yes; then
12646               result=no
12647             else
12648               result=yes
12649             fi
12650           else
12651             result=$wxUSE_STARTUP_TIPS
12652           fi
12653
12654           { echo "$as_me:$LINENO: result: $result" >&5
12655 echo "${ECHO_T}$result" >&6; }
12656
12657
12658           enablestring=
12659           defaultval=$wxUSE_ALL_FEATURES
12660           if test -z "$defaultval"; then
12661               if test x"$enablestring" = xdisable; then
12662                   defaultval=yes
12663               else
12664                   defaultval=no
12665               fi
12666           fi
12667
12668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12669 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12670           # Check whether --enable-progressdlg was given.
12671 if test "${enable_progressdlg+set}" = set; then
12672   enableval=$enable_progressdlg;
12673                           if test "$enableval" = yes; then
12674                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12675                           else
12676                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12677                           fi
12678
12679 else
12680
12681                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12682
12683 fi
12684
12685
12686           eval "$wx_cv_use_progressdlg"
12687
12688           if test x"$enablestring" = xdisable; then
12689             if test $wxUSE_PROGRESSDLG = yes; then
12690               result=no
12691             else
12692               result=yes
12693             fi
12694           else
12695             result=$wxUSE_PROGRESSDLG
12696           fi
12697
12698           { echo "$as_me:$LINENO: result: $result" >&5
12699 echo "${ECHO_T}$result" >&6; }
12700
12701
12702           enablestring=
12703           defaultval=$wxUSE_ALL_FEATURES
12704           if test -z "$defaultval"; then
12705               if test x"$enablestring" = xdisable; then
12706                   defaultval=yes
12707               else
12708                   defaultval=no
12709               fi
12710           fi
12711
12712           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12713 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12714           # Check whether --enable-wizarddlg was given.
12715 if test "${enable_wizarddlg+set}" = set; then
12716   enableval=$enable_wizarddlg;
12717                           if test "$enableval" = yes; then
12718                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12719                           else
12720                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12721                           fi
12722
12723 else
12724
12725                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12726
12727 fi
12728
12729
12730           eval "$wx_cv_use_wizarddlg"
12731
12732           if test x"$enablestring" = xdisable; then
12733             if test $wxUSE_WIZARDDLG = yes; then
12734               result=no
12735             else
12736               result=yes
12737             fi
12738           else
12739             result=$wxUSE_WIZARDDLG
12740           fi
12741
12742           { echo "$as_me:$LINENO: result: $result" >&5
12743 echo "${ECHO_T}$result" >&6; }
12744
12745
12746
12747
12748           enablestring=
12749           defaultval=$wxUSE_ALL_FEATURES
12750           if test -z "$defaultval"; then
12751               if test x"$enablestring" = xdisable; then
12752                   defaultval=yes
12753               else
12754                   defaultval=no
12755               fi
12756           fi
12757
12758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12759 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12760           # Check whether --enable-menus was given.
12761 if test "${enable_menus+set}" = set; then
12762   enableval=$enable_menus;
12763                           if test "$enableval" = yes; then
12764                             wx_cv_use_menus='wxUSE_MENUS=yes'
12765                           else
12766                             wx_cv_use_menus='wxUSE_MENUS=no'
12767                           fi
12768
12769 else
12770
12771                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12772
12773 fi
12774
12775
12776           eval "$wx_cv_use_menus"
12777
12778           if test x"$enablestring" = xdisable; then
12779             if test $wxUSE_MENUS = yes; then
12780               result=no
12781             else
12782               result=yes
12783             fi
12784           else
12785             result=$wxUSE_MENUS
12786           fi
12787
12788           { echo "$as_me:$LINENO: result: $result" >&5
12789 echo "${ECHO_T}$result" >&6; }
12790
12791
12792           enablestring=
12793           defaultval=$wxUSE_ALL_FEATURES
12794           if test -z "$defaultval"; then
12795               if test x"$enablestring" = xdisable; then
12796                   defaultval=yes
12797               else
12798                   defaultval=no
12799               fi
12800           fi
12801
12802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12803 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12804           # Check whether --enable-miniframe was given.
12805 if test "${enable_miniframe+set}" = set; then
12806   enableval=$enable_miniframe;
12807                           if test "$enableval" = yes; then
12808                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12809                           else
12810                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12811                           fi
12812
12813 else
12814
12815                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12816
12817 fi
12818
12819
12820           eval "$wx_cv_use_miniframe"
12821
12822           if test x"$enablestring" = xdisable; then
12823             if test $wxUSE_MINIFRAME = yes; then
12824               result=no
12825             else
12826               result=yes
12827             fi
12828           else
12829             result=$wxUSE_MINIFRAME
12830           fi
12831
12832           { echo "$as_me:$LINENO: result: $result" >&5
12833 echo "${ECHO_T}$result" >&6; }
12834
12835
12836           enablestring=
12837           defaultval=$wxUSE_ALL_FEATURES
12838           if test -z "$defaultval"; then
12839               if test x"$enablestring" = xdisable; then
12840                   defaultval=yes
12841               else
12842                   defaultval=no
12843               fi
12844           fi
12845
12846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12847 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12848           # Check whether --enable-tooltips was given.
12849 if test "${enable_tooltips+set}" = set; then
12850   enableval=$enable_tooltips;
12851                           if test "$enableval" = yes; then
12852                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12853                           else
12854                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12855                           fi
12856
12857 else
12858
12859                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12860
12861 fi
12862
12863
12864           eval "$wx_cv_use_tooltips"
12865
12866           if test x"$enablestring" = xdisable; then
12867             if test $wxUSE_TOOLTIPS = yes; then
12868               result=no
12869             else
12870               result=yes
12871             fi
12872           else
12873             result=$wxUSE_TOOLTIPS
12874           fi
12875
12876           { echo "$as_me:$LINENO: result: $result" >&5
12877 echo "${ECHO_T}$result" >&6; }
12878
12879
12880           enablestring=
12881           defaultval=$wxUSE_ALL_FEATURES
12882           if test -z "$defaultval"; then
12883               if test x"$enablestring" = xdisable; then
12884                   defaultval=yes
12885               else
12886                   defaultval=no
12887               fi
12888           fi
12889
12890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12891 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12892           # Check whether --enable-splines was given.
12893 if test "${enable_splines+set}" = set; then
12894   enableval=$enable_splines;
12895                           if test "$enableval" = yes; then
12896                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12897                           else
12898                             wx_cv_use_splines='wxUSE_SPLINES=no'
12899                           fi
12900
12901 else
12902
12903                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12904
12905 fi
12906
12907
12908           eval "$wx_cv_use_splines"
12909
12910           if test x"$enablestring" = xdisable; then
12911             if test $wxUSE_SPLINES = yes; then
12912               result=no
12913             else
12914               result=yes
12915             fi
12916           else
12917             result=$wxUSE_SPLINES
12918           fi
12919
12920           { echo "$as_me:$LINENO: result: $result" >&5
12921 echo "${ECHO_T}$result" >&6; }
12922
12923
12924           enablestring=
12925           defaultval=$wxUSE_ALL_FEATURES
12926           if test -z "$defaultval"; then
12927               if test x"$enablestring" = xdisable; then
12928                   defaultval=yes
12929               else
12930                   defaultval=no
12931               fi
12932           fi
12933
12934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12935 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12936           # Check whether --enable-mousewheel was given.
12937 if test "${enable_mousewheel+set}" = set; then
12938   enableval=$enable_mousewheel;
12939                           if test "$enableval" = yes; then
12940                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12941                           else
12942                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12943                           fi
12944
12945 else
12946
12947                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12948
12949 fi
12950
12951
12952           eval "$wx_cv_use_mousewheel"
12953
12954           if test x"$enablestring" = xdisable; then
12955             if test $wxUSE_MOUSEWHEEL = yes; then
12956               result=no
12957             else
12958               result=yes
12959             fi
12960           else
12961             result=$wxUSE_MOUSEWHEEL
12962           fi
12963
12964           { echo "$as_me:$LINENO: result: $result" >&5
12965 echo "${ECHO_T}$result" >&6; }
12966
12967
12968           enablestring=
12969           defaultval=$wxUSE_ALL_FEATURES
12970           if test -z "$defaultval"; then
12971               if test x"$enablestring" = xdisable; then
12972                   defaultval=yes
12973               else
12974                   defaultval=no
12975               fi
12976           fi
12977
12978           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
12979 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
12980           # Check whether --enable-validators was given.
12981 if test "${enable_validators+set}" = set; then
12982   enableval=$enable_validators;
12983                           if test "$enableval" = yes; then
12984                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
12985                           else
12986                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
12987                           fi
12988
12989 else
12990
12991                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
12992
12993 fi
12994
12995
12996           eval "$wx_cv_use_validators"
12997
12998           if test x"$enablestring" = xdisable; then
12999             if test $wxUSE_VALIDATORS = yes; then
13000               result=no
13001             else
13002               result=yes
13003             fi
13004           else
13005             result=$wxUSE_VALIDATORS
13006           fi
13007
13008           { echo "$as_me:$LINENO: result: $result" >&5
13009 echo "${ECHO_T}$result" >&6; }
13010
13011
13012           enablestring=
13013           defaultval=$wxUSE_ALL_FEATURES
13014           if test -z "$defaultval"; then
13015               if test x"$enablestring" = xdisable; then
13016                   defaultval=yes
13017               else
13018                   defaultval=no
13019               fi
13020           fi
13021
13022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13023 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13024           # Check whether --enable-busyinfo was given.
13025 if test "${enable_busyinfo+set}" = set; then
13026   enableval=$enable_busyinfo;
13027                           if test "$enableval" = yes; then
13028                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13029                           else
13030                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13031                           fi
13032
13033 else
13034
13035                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13036
13037 fi
13038
13039
13040           eval "$wx_cv_use_busyinfo"
13041
13042           if test x"$enablestring" = xdisable; then
13043             if test $wxUSE_BUSYINFO = yes; then
13044               result=no
13045             else
13046               result=yes
13047             fi
13048           else
13049             result=$wxUSE_BUSYINFO
13050           fi
13051
13052           { echo "$as_me:$LINENO: result: $result" >&5
13053 echo "${ECHO_T}$result" >&6; }
13054
13055
13056           enablestring=
13057           defaultval=$wxUSE_ALL_FEATURES
13058           if test -z "$defaultval"; then
13059               if test x"$enablestring" = xdisable; then
13060                   defaultval=yes
13061               else
13062                   defaultval=no
13063               fi
13064           fi
13065
13066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13067 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13068           # Check whether --enable-joystick was given.
13069 if test "${enable_joystick+set}" = set; then
13070   enableval=$enable_joystick;
13071                           if test "$enableval" = yes; then
13072                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13073                           else
13074                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13075                           fi
13076
13077 else
13078
13079                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13080
13081 fi
13082
13083
13084           eval "$wx_cv_use_joystick"
13085
13086           if test x"$enablestring" = xdisable; then
13087             if test $wxUSE_JOYSTICK = yes; then
13088               result=no
13089             else
13090               result=yes
13091             fi
13092           else
13093             result=$wxUSE_JOYSTICK
13094           fi
13095
13096           { echo "$as_me:$LINENO: result: $result" >&5
13097 echo "${ECHO_T}$result" >&6; }
13098
13099
13100           enablestring=
13101           defaultval=$wxUSE_ALL_FEATURES
13102           if test -z "$defaultval"; then
13103               if test x"$enablestring" = xdisable; then
13104                   defaultval=yes
13105               else
13106                   defaultval=no
13107               fi
13108           fi
13109
13110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13111 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13112           # Check whether --enable-metafile was given.
13113 if test "${enable_metafile+set}" = set; then
13114   enableval=$enable_metafile;
13115                           if test "$enableval" = yes; then
13116                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13117                           else
13118                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13119                           fi
13120
13121 else
13122
13123                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13124
13125 fi
13126
13127
13128           eval "$wx_cv_use_metafile"
13129
13130           if test x"$enablestring" = xdisable; then
13131             if test $wxUSE_METAFILE = yes; then
13132               result=no
13133             else
13134               result=yes
13135             fi
13136           else
13137             result=$wxUSE_METAFILE
13138           fi
13139
13140           { echo "$as_me:$LINENO: result: $result" >&5
13141 echo "${ECHO_T}$result" >&6; }
13142
13143
13144           enablestring=
13145           defaultval=$wxUSE_ALL_FEATURES
13146           if test -z "$defaultval"; then
13147               if test x"$enablestring" = xdisable; then
13148                   defaultval=yes
13149               else
13150                   defaultval=no
13151               fi
13152           fi
13153
13154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13155 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13156           # Check whether --enable-dragimage was given.
13157 if test "${enable_dragimage+set}" = set; then
13158   enableval=$enable_dragimage;
13159                           if test "$enableval" = yes; then
13160                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13161                           else
13162                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13163                           fi
13164
13165 else
13166
13167                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13168
13169 fi
13170
13171
13172           eval "$wx_cv_use_dragimage"
13173
13174           if test x"$enablestring" = xdisable; then
13175             if test $wxUSE_DRAGIMAGE = yes; then
13176               result=no
13177             else
13178               result=yes
13179             fi
13180           else
13181             result=$wxUSE_DRAGIMAGE
13182           fi
13183
13184           { echo "$as_me:$LINENO: result: $result" >&5
13185 echo "${ECHO_T}$result" >&6; }
13186
13187
13188           enablestring=
13189           defaultval=$wxUSE_ALL_FEATURES
13190           if test -z "$defaultval"; then
13191               if test x"$enablestring" = xdisable; then
13192                   defaultval=yes
13193               else
13194                   defaultval=no
13195               fi
13196           fi
13197
13198           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13199 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13200           # Check whether --enable-accessibility was given.
13201 if test "${enable_accessibility+set}" = set; then
13202   enableval=$enable_accessibility;
13203                           if test "$enableval" = yes; then
13204                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13205                           else
13206                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13207                           fi
13208
13209 else
13210
13211                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13212
13213 fi
13214
13215
13216           eval "$wx_cv_use_accessibility"
13217
13218           if test x"$enablestring" = xdisable; then
13219             if test $wxUSE_ACCESSIBILITY = yes; then
13220               result=no
13221             else
13222               result=yes
13223             fi
13224           else
13225             result=$wxUSE_ACCESSIBILITY
13226           fi
13227
13228           { echo "$as_me:$LINENO: result: $result" >&5
13229 echo "${ECHO_T}$result" >&6; }
13230
13231
13232
13233
13234           enablestring=
13235           defaultval=$wxUSE_ALL_FEATURES
13236           if test -z "$defaultval"; then
13237               if test x"$enablestring" = xdisable; then
13238                   defaultval=yes
13239               else
13240                   defaultval=no
13241               fi
13242           fi
13243
13244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13245 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13246           # Check whether --enable-palette was given.
13247 if test "${enable_palette+set}" = set; then
13248   enableval=$enable_palette;
13249                           if test "$enableval" = yes; then
13250                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13251                           else
13252                             wx_cv_use_palette='wxUSE_PALETTE=no'
13253                           fi
13254
13255 else
13256
13257                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13258
13259 fi
13260
13261
13262           eval "$wx_cv_use_palette"
13263
13264           if test x"$enablestring" = xdisable; then
13265             if test $wxUSE_PALETTE = yes; then
13266               result=no
13267             else
13268               result=yes
13269             fi
13270           else
13271             result=$wxUSE_PALETTE
13272           fi
13273
13274           { echo "$as_me:$LINENO: result: $result" >&5
13275 echo "${ECHO_T}$result" >&6; }
13276
13277
13278           enablestring=
13279           defaultval=$wxUSE_ALL_FEATURES
13280           if test -z "$defaultval"; then
13281               if test x"$enablestring" = xdisable; then
13282                   defaultval=yes
13283               else
13284                   defaultval=no
13285               fi
13286           fi
13287
13288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13289 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13290           # Check whether --enable-image was given.
13291 if test "${enable_image+set}" = set; then
13292   enableval=$enable_image;
13293                           if test "$enableval" = yes; then
13294                             wx_cv_use_image='wxUSE_IMAGE=yes'
13295                           else
13296                             wx_cv_use_image='wxUSE_IMAGE=no'
13297                           fi
13298
13299 else
13300
13301                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13302
13303 fi
13304
13305
13306           eval "$wx_cv_use_image"
13307
13308           if test x"$enablestring" = xdisable; then
13309             if test $wxUSE_IMAGE = yes; then
13310               result=no
13311             else
13312               result=yes
13313             fi
13314           else
13315             result=$wxUSE_IMAGE
13316           fi
13317
13318           { echo "$as_me:$LINENO: result: $result" >&5
13319 echo "${ECHO_T}$result" >&6; }
13320
13321
13322           enablestring=
13323           defaultval=$wxUSE_ALL_FEATURES
13324           if test -z "$defaultval"; then
13325               if test x"$enablestring" = xdisable; then
13326                   defaultval=yes
13327               else
13328                   defaultval=no
13329               fi
13330           fi
13331
13332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13333 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13334           # Check whether --enable-gif was given.
13335 if test "${enable_gif+set}" = set; then
13336   enableval=$enable_gif;
13337                           if test "$enableval" = yes; then
13338                             wx_cv_use_gif='wxUSE_GIF=yes'
13339                           else
13340                             wx_cv_use_gif='wxUSE_GIF=no'
13341                           fi
13342
13343 else
13344
13345                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13346
13347 fi
13348
13349
13350           eval "$wx_cv_use_gif"
13351
13352           if test x"$enablestring" = xdisable; then
13353             if test $wxUSE_GIF = yes; then
13354               result=no
13355             else
13356               result=yes
13357             fi
13358           else
13359             result=$wxUSE_GIF
13360           fi
13361
13362           { echo "$as_me:$LINENO: result: $result" >&5
13363 echo "${ECHO_T}$result" >&6; }
13364
13365
13366           enablestring=
13367           defaultval=$wxUSE_ALL_FEATURES
13368           if test -z "$defaultval"; then
13369               if test x"$enablestring" = xdisable; then
13370                   defaultval=yes
13371               else
13372                   defaultval=no
13373               fi
13374           fi
13375
13376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13377 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13378           # Check whether --enable-pcx was given.
13379 if test "${enable_pcx+set}" = set; then
13380   enableval=$enable_pcx;
13381                           if test "$enableval" = yes; then
13382                             wx_cv_use_pcx='wxUSE_PCX=yes'
13383                           else
13384                             wx_cv_use_pcx='wxUSE_PCX=no'
13385                           fi
13386
13387 else
13388
13389                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13390
13391 fi
13392
13393
13394           eval "$wx_cv_use_pcx"
13395
13396           if test x"$enablestring" = xdisable; then
13397             if test $wxUSE_PCX = yes; then
13398               result=no
13399             else
13400               result=yes
13401             fi
13402           else
13403             result=$wxUSE_PCX
13404           fi
13405
13406           { echo "$as_me:$LINENO: result: $result" >&5
13407 echo "${ECHO_T}$result" >&6; }
13408
13409
13410           enablestring=
13411           defaultval=$wxUSE_ALL_FEATURES
13412           if test -z "$defaultval"; then
13413               if test x"$enablestring" = xdisable; then
13414                   defaultval=yes
13415               else
13416                   defaultval=no
13417               fi
13418           fi
13419
13420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13421 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13422           # Check whether --enable-tga was given.
13423 if test "${enable_tga+set}" = set; then
13424   enableval=$enable_tga;
13425                           if test "$enableval" = yes; then
13426                             wx_cv_use_tga='wxUSE_TGA=yes'
13427                           else
13428                             wx_cv_use_tga='wxUSE_TGA=no'
13429                           fi
13430
13431 else
13432
13433                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13434
13435 fi
13436
13437
13438           eval "$wx_cv_use_tga"
13439
13440           if test x"$enablestring" = xdisable; then
13441             if test $wxUSE_TGA = yes; then
13442               result=no
13443             else
13444               result=yes
13445             fi
13446           else
13447             result=$wxUSE_TGA
13448           fi
13449
13450           { echo "$as_me:$LINENO: result: $result" >&5
13451 echo "${ECHO_T}$result" >&6; }
13452
13453
13454           enablestring=
13455           defaultval=$wxUSE_ALL_FEATURES
13456           if test -z "$defaultval"; then
13457               if test x"$enablestring" = xdisable; then
13458                   defaultval=yes
13459               else
13460                   defaultval=no
13461               fi
13462           fi
13463
13464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13465 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13466           # Check whether --enable-iff was given.
13467 if test "${enable_iff+set}" = set; then
13468   enableval=$enable_iff;
13469                           if test "$enableval" = yes; then
13470                             wx_cv_use_iff='wxUSE_IFF=yes'
13471                           else
13472                             wx_cv_use_iff='wxUSE_IFF=no'
13473                           fi
13474
13475 else
13476
13477                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13478
13479 fi
13480
13481
13482           eval "$wx_cv_use_iff"
13483
13484           if test x"$enablestring" = xdisable; then
13485             if test $wxUSE_IFF = yes; then
13486               result=no
13487             else
13488               result=yes
13489             fi
13490           else
13491             result=$wxUSE_IFF
13492           fi
13493
13494           { echo "$as_me:$LINENO: result: $result" >&5
13495 echo "${ECHO_T}$result" >&6; }
13496
13497
13498           enablestring=
13499           defaultval=$wxUSE_ALL_FEATURES
13500           if test -z "$defaultval"; then
13501               if test x"$enablestring" = xdisable; then
13502                   defaultval=yes
13503               else
13504                   defaultval=no
13505               fi
13506           fi
13507
13508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13509 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13510           # Check whether --enable-pnm was given.
13511 if test "${enable_pnm+set}" = set; then
13512   enableval=$enable_pnm;
13513                           if test "$enableval" = yes; then
13514                             wx_cv_use_pnm='wxUSE_PNM=yes'
13515                           else
13516                             wx_cv_use_pnm='wxUSE_PNM=no'
13517                           fi
13518
13519 else
13520
13521                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13522
13523 fi
13524
13525
13526           eval "$wx_cv_use_pnm"
13527
13528           if test x"$enablestring" = xdisable; then
13529             if test $wxUSE_PNM = yes; then
13530               result=no
13531             else
13532               result=yes
13533             fi
13534           else
13535             result=$wxUSE_PNM
13536           fi
13537
13538           { echo "$as_me:$LINENO: result: $result" >&5
13539 echo "${ECHO_T}$result" >&6; }
13540
13541
13542           enablestring=
13543           defaultval=$wxUSE_ALL_FEATURES
13544           if test -z "$defaultval"; then
13545               if test x"$enablestring" = xdisable; then
13546                   defaultval=yes
13547               else
13548                   defaultval=no
13549               fi
13550           fi
13551
13552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13553 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13554           # Check whether --enable-xpm was given.
13555 if test "${enable_xpm+set}" = set; then
13556   enableval=$enable_xpm;
13557                           if test "$enableval" = yes; then
13558                             wx_cv_use_xpm='wxUSE_XPM=yes'
13559                           else
13560                             wx_cv_use_xpm='wxUSE_XPM=no'
13561                           fi
13562
13563 else
13564
13565                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13566
13567 fi
13568
13569
13570           eval "$wx_cv_use_xpm"
13571
13572           if test x"$enablestring" = xdisable; then
13573             if test $wxUSE_XPM = yes; then
13574               result=no
13575             else
13576               result=yes
13577             fi
13578           else
13579             result=$wxUSE_XPM
13580           fi
13581
13582           { echo "$as_me:$LINENO: result: $result" >&5
13583 echo "${ECHO_T}$result" >&6; }
13584
13585
13586           enablestring=
13587           defaultval=$wxUSE_ALL_FEATURES
13588           if test -z "$defaultval"; then
13589               if test x"$enablestring" = xdisable; then
13590                   defaultval=yes
13591               else
13592                   defaultval=no
13593               fi
13594           fi
13595
13596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13597 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13598           # Check whether --enable-ico_cur was given.
13599 if test "${enable_ico_cur+set}" = set; then
13600   enableval=$enable_ico_cur;
13601                           if test "$enableval" = yes; then
13602                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13603                           else
13604                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13605                           fi
13606
13607 else
13608
13609                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13610
13611 fi
13612
13613
13614           eval "$wx_cv_use_ico_cur"
13615
13616           if test x"$enablestring" = xdisable; then
13617             if test $wxUSE_ICO_CUR = yes; then
13618               result=no
13619             else
13620               result=yes
13621             fi
13622           else
13623             result=$wxUSE_ICO_CUR
13624           fi
13625
13626           { echo "$as_me:$LINENO: result: $result" >&5
13627 echo "${ECHO_T}$result" >&6; }
13628
13629
13630
13631
13632           enablestring=
13633           defaultval=$wxUSE_ALL_FEATURES
13634           if test -z "$defaultval"; then
13635               if test x"$enablestring" = xdisable; then
13636                   defaultval=yes
13637               else
13638                   defaultval=no
13639               fi
13640           fi
13641
13642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13643 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13644           # Check whether --enable-dccache was given.
13645 if test "${enable_dccache+set}" = set; then
13646   enableval=$enable_dccache;
13647                           if test "$enableval" = yes; then
13648                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13649                           else
13650                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13651                           fi
13652
13653 else
13654
13655                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13656
13657 fi
13658
13659
13660           eval "$wx_cv_use_dccache"
13661
13662           if test x"$enablestring" = xdisable; then
13663             if test $wxUSE_DC_CACHEING = yes; then
13664               result=no
13665             else
13666               result=yes
13667             fi
13668           else
13669             result=$wxUSE_DC_CACHEING
13670           fi
13671
13672           { echo "$as_me:$LINENO: result: $result" >&5
13673 echo "${ECHO_T}$result" >&6; }
13674
13675
13676           enablestring=
13677           defaultval=$wxUSE_ALL_FEATURES
13678           if test -z "$defaultval"; then
13679               if test x"$enablestring" = xdisable; then
13680                   defaultval=yes
13681               else
13682                   defaultval=no
13683               fi
13684           fi
13685
13686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13687 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13688           # Check whether --enable-ps-in-msw was given.
13689 if test "${enable_ps_in_msw+set}" = set; then
13690   enableval=$enable_ps_in_msw;
13691                           if test "$enableval" = yes; then
13692                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13693                           else
13694                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13695                           fi
13696
13697 else
13698
13699                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13700
13701 fi
13702
13703
13704           eval "$wx_cv_use_ps_in_msw"
13705
13706           if test x"$enablestring" = xdisable; then
13707             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13708               result=no
13709             else
13710               result=yes
13711             fi
13712           else
13713             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13714           fi
13715
13716           { echo "$as_me:$LINENO: result: $result" >&5
13717 echo "${ECHO_T}$result" >&6; }
13718
13719
13720           enablestring=
13721           defaultval=$wxUSE_ALL_FEATURES
13722           if test -z "$defaultval"; then
13723               if test x"$enablestring" = xdisable; then
13724                   defaultval=yes
13725               else
13726                   defaultval=no
13727               fi
13728           fi
13729
13730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13731 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13732           # Check whether --enable-ownerdrawn was given.
13733 if test "${enable_ownerdrawn+set}" = set; then
13734   enableval=$enable_ownerdrawn;
13735                           if test "$enableval" = yes; then
13736                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13737                           else
13738                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13739                           fi
13740
13741 else
13742
13743                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13744
13745 fi
13746
13747
13748           eval "$wx_cv_use_ownerdrawn"
13749
13750           if test x"$enablestring" = xdisable; then
13751             if test $wxUSE_OWNER_DRAWN = yes; then
13752               result=no
13753             else
13754               result=yes
13755             fi
13756           else
13757             result=$wxUSE_OWNER_DRAWN
13758           fi
13759
13760           { echo "$as_me:$LINENO: result: $result" >&5
13761 echo "${ECHO_T}$result" >&6; }
13762
13763
13764           enablestring=
13765           defaultval=$wxUSE_ALL_FEATURES
13766           if test -z "$defaultval"; then
13767               if test x"$enablestring" = xdisable; then
13768                   defaultval=yes
13769               else
13770                   defaultval=no
13771               fi
13772           fi
13773
13774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13775 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13776           # Check whether --enable-uxtheme was given.
13777 if test "${enable_uxtheme+set}" = set; then
13778   enableval=$enable_uxtheme;
13779                           if test "$enableval" = yes; then
13780                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13781                           else
13782                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13783                           fi
13784
13785 else
13786
13787                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13788
13789 fi
13790
13791
13792           eval "$wx_cv_use_uxtheme"
13793
13794           if test x"$enablestring" = xdisable; then
13795             if test $wxUSE_UXTHEME = yes; then
13796               result=no
13797             else
13798               result=yes
13799             fi
13800           else
13801             result=$wxUSE_UXTHEME
13802           fi
13803
13804           { echo "$as_me:$LINENO: result: $result" >&5
13805 echo "${ECHO_T}$result" >&6; }
13806
13807
13808           enablestring=
13809           defaultval=$wxUSE_ALL_FEATURES
13810           if test -z "$defaultval"; then
13811               if test x"$enablestring" = xdisable; then
13812                   defaultval=yes
13813               else
13814                   defaultval=no
13815               fi
13816           fi
13817
13818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13819 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13820           # Check whether --enable-wxdib was given.
13821 if test "${enable_wxdib+set}" = set; then
13822   enableval=$enable_wxdib;
13823                           if test "$enableval" = yes; then
13824                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13825                           else
13826                             wx_cv_use_wxdib='wxUSE_DIB=no'
13827                           fi
13828
13829 else
13830
13831                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13832
13833 fi
13834
13835
13836           eval "$wx_cv_use_wxdib"
13837
13838           if test x"$enablestring" = xdisable; then
13839             if test $wxUSE_DIB = yes; then
13840               result=no
13841             else
13842               result=yes
13843             fi
13844           else
13845             result=$wxUSE_DIB
13846           fi
13847
13848           { echo "$as_me:$LINENO: result: $result" >&5
13849 echo "${ECHO_T}$result" >&6; }
13850
13851
13852 if test "$wxUSE_MSW" != 1; then
13853     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13854 fi
13855
13856
13857           enablestring=
13858           defaultval=$wxUSE_ALL_FEATURES
13859           if test -z "$defaultval"; then
13860               if test x"$enablestring" = xdisable; then
13861                   defaultval=yes
13862               else
13863                   defaultval=no
13864               fi
13865           fi
13866
13867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13868 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13869           # Check whether --enable-autoidman was given.
13870 if test "${enable_autoidman+set}" = set; then
13871   enableval=$enable_autoidman;
13872                           if test "$enableval" = yes; then
13873                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13874                           else
13875                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13876                           fi
13877
13878 else
13879
13880                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13881
13882 fi
13883
13884
13885           eval "$wx_cv_use_autoidman"
13886
13887           if test x"$enablestring" = xdisable; then
13888             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13889               result=no
13890             else
13891               result=yes
13892             fi
13893           else
13894             result=$wxUSE_AUTOID_MANAGEMENT
13895           fi
13896
13897           { echo "$as_me:$LINENO: result: $result" >&5
13898 echo "${ECHO_T}$result" >&6; }
13899
13900
13901 fi
13902
13903
13904 cat >confcache <<\_ACEOF
13905 # This file is a shell script that caches the results of configure
13906 # tests run on this system so they can be shared between configure
13907 # scripts and configure runs, see configure's option --config-cache.
13908 # It is not useful on other systems.  If it contains results you don't
13909 # want to keep, you may remove or edit it.
13910 #
13911 # config.status only pays attention to the cache file if you give it
13912 # the --recheck option to rerun configure.
13913 #
13914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13916 # following values.
13917
13918 _ACEOF
13919
13920 # The following way of writing the cache mishandles newlines in values,
13921 # but we know of no workaround that is simple, portable, and efficient.
13922 # So, we kill variables containing newlines.
13923 # Ultrix sh set writes to stderr and can't be redirected directly,
13924 # and sets the high bit in the cache file unless we assign to the vars.
13925 (
13926   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13927     eval ac_val=\$$ac_var
13928     case $ac_val in #(
13929     *${as_nl}*)
13930       case $ac_var in #(
13931       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13932 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13933       esac
13934       case $ac_var in #(
13935       _ | IFS | as_nl) ;; #(
13936       *) $as_unset $ac_var ;;
13937       esac ;;
13938     esac
13939   done
13940
13941   (set) 2>&1 |
13942     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13943     *${as_nl}ac_space=\ *)
13944       # `set' does not quote correctly, so add quotes (double-quote
13945       # substitution turns \\\\ into \\, and sed turns \\ into \).
13946       sed -n \
13947         "s/'/'\\\\''/g;
13948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13949       ;; #(
13950     *)
13951       # `set' quotes correctly as required by POSIX, so do not add quotes.
13952       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13953       ;;
13954     esac |
13955     sort
13956 ) |
13957   sed '
13958      /^ac_cv_env_/b end
13959      t clear
13960      :clear
13961      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13962      t end
13963      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13964      :end' >>confcache
13965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13966   if test -w "$cache_file"; then
13967     test "x$cache_file" != "x/dev/null" &&
13968       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13969 echo "$as_me: updating cache $cache_file" >&6;}
13970     cat confcache >$cache_file
13971   else
13972     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13973 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13974   fi
13975 fi
13976 rm -f confcache
13977
13978 CFLAGS=${CFLAGS:=}
13979
13980
13981
13982     ac_ext=c
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13987 if test -n "$ac_tool_prefix"; then
13988   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13992 if test "${ac_cv_prog_CC+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   if test -n "$CC"; then
13996   ac_cv_prog_CC="$CC" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001   IFS=$as_save_IFS
14002   test -z "$as_dir" && as_dir=.
14003   for ac_exec_ext in '' $ac_executable_extensions; do
14004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14005     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14007     break 2
14008   fi
14009 done
14010 done
14011 IFS=$as_save_IFS
14012
14013 fi
14014 fi
14015 CC=$ac_cv_prog_CC
14016 if test -n "$CC"; then
14017   { echo "$as_me:$LINENO: result: $CC" >&5
14018 echo "${ECHO_T}$CC" >&6; }
14019 else
14020   { echo "$as_me:$LINENO: result: no" >&5
14021 echo "${ECHO_T}no" >&6; }
14022 fi
14023
14024
14025 fi
14026 if test -z "$ac_cv_prog_CC"; then
14027   ac_ct_CC=$CC
14028   # Extract the first word of "gcc", so it can be a program name with args.
14029 set dummy gcc; ac_word=$2
14030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   if test -n "$ac_ct_CC"; then
14036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14037 else
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14040 do
14041   IFS=$as_save_IFS
14042   test -z "$as_dir" && as_dir=.
14043   for ac_exec_ext in '' $ac_executable_extensions; do
14044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14045     ac_cv_prog_ac_ct_CC="gcc"
14046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14047     break 2
14048   fi
14049 done
14050 done
14051 IFS=$as_save_IFS
14052
14053 fi
14054 fi
14055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14056 if test -n "$ac_ct_CC"; then
14057   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14058 echo "${ECHO_T}$ac_ct_CC" >&6; }
14059 else
14060   { echo "$as_me:$LINENO: result: no" >&5
14061 echo "${ECHO_T}no" >&6; }
14062 fi
14063
14064   if test "x$ac_ct_CC" = x; then
14065     CC=""
14066   else
14067     case $cross_compiling:$ac_tool_warned in
14068 yes:)
14069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14070 whose name does not start with the host triplet.  If you think this
14071 configuration is useful to you, please write to autoconf@gnu.org." >&5
14072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14073 whose name does not start with the host triplet.  If you think this
14074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14075 ac_tool_warned=yes ;;
14076 esac
14077     CC=$ac_ct_CC
14078   fi
14079 else
14080   CC="$ac_cv_prog_CC"
14081 fi
14082
14083 if test -z "$CC"; then
14084           if test -n "$ac_tool_prefix"; then
14085     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14086 set dummy ${ac_tool_prefix}cc; ac_word=$2
14087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14089 if test "${ac_cv_prog_CC+set}" = set; then
14090   echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092   if test -n "$CC"; then
14093   ac_cv_prog_CC="$CC" # Let the user override the test.
14094 else
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14097 do
14098   IFS=$as_save_IFS
14099   test -z "$as_dir" && as_dir=.
14100   for ac_exec_ext in '' $ac_executable_extensions; do
14101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102     ac_cv_prog_CC="${ac_tool_prefix}cc"
14103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14104     break 2
14105   fi
14106 done
14107 done
14108 IFS=$as_save_IFS
14109
14110 fi
14111 fi
14112 CC=$ac_cv_prog_CC
14113 if test -n "$CC"; then
14114   { echo "$as_me:$LINENO: result: $CC" >&5
14115 echo "${ECHO_T}$CC" >&6; }
14116 else
14117   { echo "$as_me:$LINENO: result: no" >&5
14118 echo "${ECHO_T}no" >&6; }
14119 fi
14120
14121
14122   fi
14123 fi
14124 if test -z "$CC"; then
14125   # Extract the first word of "cc", so it can be a program name with args.
14126 set dummy cc; ac_word=$2
14127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14129 if test "${ac_cv_prog_CC+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   if test -n "$CC"; then
14133   ac_cv_prog_CC="$CC" # Let the user override the test.
14134 else
14135   ac_prog_rejected=no
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14138 do
14139   IFS=$as_save_IFS
14140   test -z "$as_dir" && as_dir=.
14141   for ac_exec_ext in '' $ac_executable_extensions; do
14142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14143     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14144        ac_prog_rejected=yes
14145        continue
14146      fi
14147     ac_cv_prog_CC="cc"
14148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14149     break 2
14150   fi
14151 done
14152 done
14153 IFS=$as_save_IFS
14154
14155 if test $ac_prog_rejected = yes; then
14156   # We found a bogon in the path, so make sure we never use it.
14157   set dummy $ac_cv_prog_CC
14158   shift
14159   if test $# != 0; then
14160     # We chose a different compiler from the bogus one.
14161     # However, it has the same basename, so the bogon will be chosen
14162     # first if we set CC to just the basename; use the full file name.
14163     shift
14164     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14165   fi
14166 fi
14167 fi
14168 fi
14169 CC=$ac_cv_prog_CC
14170 if test -n "$CC"; then
14171   { echo "$as_me:$LINENO: result: $CC" >&5
14172 echo "${ECHO_T}$CC" >&6; }
14173 else
14174   { echo "$as_me:$LINENO: result: no" >&5
14175 echo "${ECHO_T}no" >&6; }
14176 fi
14177
14178
14179 fi
14180 if test -z "$CC"; then
14181   if test -n "$ac_tool_prefix"; then
14182   for ac_prog in cl.exe
14183   do
14184     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14188 if test "${ac_cv_prog_CC+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   if test -n "$CC"; then
14192   ac_cv_prog_CC="$CC" # Let the user override the test.
14193 else
14194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195 for as_dir in $PATH
14196 do
14197   IFS=$as_save_IFS
14198   test -z "$as_dir" && as_dir=.
14199   for ac_exec_ext in '' $ac_executable_extensions; do
14200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14201     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14203     break 2
14204   fi
14205 done
14206 done
14207 IFS=$as_save_IFS
14208
14209 fi
14210 fi
14211 CC=$ac_cv_prog_CC
14212 if test -n "$CC"; then
14213   { echo "$as_me:$LINENO: result: $CC" >&5
14214 echo "${ECHO_T}$CC" >&6; }
14215 else
14216   { echo "$as_me:$LINENO: result: no" >&5
14217 echo "${ECHO_T}no" >&6; }
14218 fi
14219
14220
14221     test -n "$CC" && break
14222   done
14223 fi
14224 if test -z "$CC"; then
14225   ac_ct_CC=$CC
14226   for ac_prog in cl.exe
14227 do
14228   # Extract the first word of "$ac_prog", so it can be a program name with args.
14229 set dummy $ac_prog; ac_word=$2
14230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   if test -n "$ac_ct_CC"; then
14236   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14240 do
14241   IFS=$as_save_IFS
14242   test -z "$as_dir" && as_dir=.
14243   for ac_exec_ext in '' $ac_executable_extensions; do
14244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14245     ac_cv_prog_ac_ct_CC="$ac_prog"
14246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14247     break 2
14248   fi
14249 done
14250 done
14251 IFS=$as_save_IFS
14252
14253 fi
14254 fi
14255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14256 if test -n "$ac_ct_CC"; then
14257   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14258 echo "${ECHO_T}$ac_ct_CC" >&6; }
14259 else
14260   { echo "$as_me:$LINENO: result: no" >&5
14261 echo "${ECHO_T}no" >&6; }
14262 fi
14263
14264
14265   test -n "$ac_ct_CC" && break
14266 done
14267
14268   if test "x$ac_ct_CC" = x; then
14269     CC=""
14270   else
14271     case $cross_compiling:$ac_tool_warned in
14272 yes:)
14273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14274 whose name does not start with the host triplet.  If you think this
14275 configuration is useful to you, please write to autoconf@gnu.org." >&5
14276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14277 whose name does not start with the host triplet.  If you think this
14278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14279 ac_tool_warned=yes ;;
14280 esac
14281     CC=$ac_ct_CC
14282   fi
14283 fi
14284
14285 fi
14286
14287
14288 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14289 See \`config.log' for more details." >&5
14290 echo "$as_me: error: no acceptable C compiler found in \$PATH
14291 See \`config.log' for more details." >&2;}
14292    { (exit 1); exit 1; }; }
14293
14294 # Provide some information about the compiler.
14295 echo "$as_me:$LINENO: checking for C compiler version" >&5
14296 ac_compiler=`set X $ac_compile; echo $2`
14297 { (ac_try="$ac_compiler --version >&5"
14298 case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_compiler --version >&5") 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }
14307 { (ac_try="$ac_compiler -v >&5"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_compiler -v >&5") 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }
14317 { (ac_try="$ac_compiler -V >&5"
14318 case "(($ac_try" in
14319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320   *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323   (eval "$ac_compiler -V >&5") 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }
14327
14328 cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334
14335 int
14336 main ()
14337 {
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 ac_clean_files_save=$ac_clean_files
14344 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14345 # Try to create an executable without -o first, disregard a.out.
14346 # It will help us diagnose broken compilers, and finding out an intuition
14347 # of exeext.
14348 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14349 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14350 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14351 #
14352 # List of possible output files, starting from the most likely.
14353 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14354 # only as a last resort.  b.out is created by i960 compilers.
14355 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14356 #
14357 # The IRIX 6 linker writes into existing files which may not be
14358 # executable, retaining their permissions.  Remove them first so a
14359 # subsequent execution test works.
14360 ac_rmfiles=
14361 for ac_file in $ac_files
14362 do
14363   case $ac_file in
14364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14365     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14366   esac
14367 done
14368 rm -f $ac_rmfiles
14369
14370 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; then
14380   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14381 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14382 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14383 # so that the user can short-circuit this test for compilers unknown to
14384 # Autoconf.
14385 for ac_file in $ac_files ''
14386 do
14387   test -f "$ac_file" || continue
14388   case $ac_file in
14389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14390         ;;
14391     [ab].out )
14392         # We found the default executable, but exeext='' is most
14393         # certainly right.
14394         break;;
14395     *.* )
14396         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14397         then :; else
14398            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14399         fi
14400         # We set ac_cv_exeext here because the later test for it is not
14401         # safe: cross compilers may not add the suffix if given an `-o'
14402         # argument, so we may need to know it at that point already.
14403         # Even if this section looks crufty: it has the advantage of
14404         # actually working.
14405         break;;
14406     * )
14407         break;;
14408   esac
14409 done
14410 test "$ac_cv_exeext" = no && ac_cv_exeext=
14411
14412 else
14413   ac_file=''
14414 fi
14415
14416 { echo "$as_me:$LINENO: result: $ac_file" >&5
14417 echo "${ECHO_T}$ac_file" >&6; }
14418 if test -z "$ac_file"; then
14419   echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14423 See \`config.log' for more details." >&5
14424 echo "$as_me: error: C compiler cannot create executables
14425 See \`config.log' for more details." >&2;}
14426    { (exit 77); exit 77; }; }
14427 fi
14428
14429 ac_exeext=$ac_cv_exeext
14430
14431 # Check that the compiler produces executables we can run.  If not, either
14432 # the compiler is broken, or we cross compile.
14433 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14434 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14435 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14436 # If not cross compiling, check that we can run a simple program.
14437 if test "$cross_compiling" != yes; then
14438   if { ac_try='./$ac_file'
14439   { (case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444   (eval "$ac_try") 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; }; then
14448     cross_compiling=no
14449   else
14450     if test "$cross_compiling" = maybe; then
14451         cross_compiling=yes
14452     else
14453         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14454 If you meant to cross compile, use \`--host'.
14455 See \`config.log' for more details." >&5
14456 echo "$as_me: error: cannot run C compiled programs.
14457 If you meant to cross compile, use \`--host'.
14458 See \`config.log' for more details." >&2;}
14459    { (exit 1); exit 1; }; }
14460     fi
14461   fi
14462 fi
14463 { echo "$as_me:$LINENO: result: yes" >&5
14464 echo "${ECHO_T}yes" >&6; }
14465
14466 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14467 ac_clean_files=$ac_clean_files_save
14468 # Check that the compiler produces executables we can run.  If not, either
14469 # the compiler is broken, or we cross compile.
14470 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14471 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14472 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14473 echo "${ECHO_T}$cross_compiling" >&6; }
14474
14475 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14476 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14477 if { (ac_try="$ac_link"
14478 case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483   (eval "$ac_link") 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; then
14487   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14488 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14489 # work properly (i.e., refer to `conftest.exe'), while it won't with
14490 # `rm'.
14491 for ac_file in conftest.exe conftest conftest.*; do
14492   test -f "$ac_file" || continue
14493   case $ac_file in
14494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14495     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14496           break;;
14497     * ) break;;
14498   esac
14499 done
14500 else
14501   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14502 See \`config.log' for more details." >&5
14503 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14504 See \`config.log' for more details." >&2;}
14505    { (exit 1); exit 1; }; }
14506 fi
14507
14508 rm -f conftest$ac_cv_exeext
14509 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14510 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14511
14512 rm -f conftest.$ac_ext
14513 EXEEXT=$ac_cv_exeext
14514 ac_exeext=$EXEEXT
14515 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14516 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14517 if test "${ac_cv_objext+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526
14527 int
14528 main ()
14529 {
14530
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.o conftest.obj
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539   *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542   (eval "$ac_compile") 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; then
14546   for ac_file in conftest.o conftest.obj conftest.*; do
14547   test -f "$ac_file" || continue;
14548   case $ac_file in
14549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14550     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14551        break;;
14552   esac
14553 done
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14559 See \`config.log' for more details." >&5
14560 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14561 See \`config.log' for more details." >&2;}
14562    { (exit 1); exit 1; }; }
14563 fi
14564
14565 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14566 fi
14567 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14568 echo "${ECHO_T}$ac_cv_objext" >&6; }
14569 OBJEXT=$ac_cv_objext
14570 ac_objext=$OBJEXT
14571 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14572 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14573 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h.  */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h.  */
14582
14583 int
14584 main ()
14585 {
14586 #ifndef __GNUC__
14587        choke me
14588 #endif
14589
14590   ;
14591   return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_compile") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } && {
14608          test -z "$ac_c_werror_flag" ||
14609          test ! -s conftest.err
14610        } && test -s conftest.$ac_objext; then
14611   ac_compiler_gnu=yes
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616         ac_compiler_gnu=no
14617 fi
14618
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14621
14622 fi
14623 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14624 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14625 GCC=`test $ac_compiler_gnu = yes && echo yes`
14626 ac_test_CFLAGS=${CFLAGS+set}
14627 ac_save_CFLAGS=$CFLAGS
14628 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14629 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14630 if test "${ac_cv_prog_cc_g+set}" = set; then
14631   echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633   ac_save_c_werror_flag=$ac_c_werror_flag
14634    ac_c_werror_flag=yes
14635    ac_cv_prog_cc_g=no
14636    CFLAGS="-g"
14637    cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643
14644 int
14645 main ()
14646 {
14647
14648   ;
14649   return 0;
14650 }
14651 _ACEOF
14652 rm -f conftest.$ac_objext
14653 if { (ac_try="$ac_compile"
14654 case "(($ac_try" in
14655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656   *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659   (eval "$ac_compile") 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } && {
14666          test -z "$ac_c_werror_flag" ||
14667          test ! -s conftest.err
14668        } && test -s conftest.$ac_objext; then
14669   ac_cv_prog_cc_g=yes
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674         CFLAGS=""
14675       cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681
14682 int
14683 main ()
14684 {
14685
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_compile") 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } && {
14704          test -z "$ac_c_werror_flag" ||
14705          test ! -s conftest.err
14706        } && test -s conftest.$ac_objext; then
14707   :
14708 else
14709   echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712         ac_c_werror_flag=$ac_save_c_werror_flag
14713          CFLAGS="-g"
14714          cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720
14721 int
14722 main ()
14723 {
14724
14725   ;
14726   return 0;
14727 }
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (ac_try="$ac_compile"
14731 case "(($ac_try" in
14732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733   *) ac_try_echo=$ac_try;;
14734 esac
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736   (eval "$ac_compile") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } && {
14743          test -z "$ac_c_werror_flag" ||
14744          test ! -s conftest.err
14745        } && test -s conftest.$ac_objext; then
14746   ac_cv_prog_cc_g=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751
14752 fi
14753
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 fi
14756
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761    ac_c_werror_flag=$ac_save_c_werror_flag
14762 fi
14763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14764 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14765 if test "$ac_test_CFLAGS" = set; then
14766   CFLAGS=$ac_save_CFLAGS
14767 elif test $ac_cv_prog_cc_g = yes; then
14768   if test "$GCC" = yes; then
14769     CFLAGS="-g -O2"
14770   else
14771     CFLAGS="-g"
14772   fi
14773 else
14774   if test "$GCC" = yes; then
14775     CFLAGS="-O2"
14776   else
14777     CFLAGS=
14778   fi
14779 fi
14780 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14781 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14782 if test "${ac_cv_prog_cc_c89+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   ac_cv_prog_cc_c89=no
14786 ac_save_CC=$CC
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 #include <stdarg.h>
14794 #include <stdio.h>
14795 #include <sys/types.h>
14796 #include <sys/stat.h>
14797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14798 struct buf { int x; };
14799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14800 static char *e (p, i)
14801      char **p;
14802      int i;
14803 {
14804   return p[i];
14805 }
14806 static char *f (char * (*g) (char **, int), char **p, ...)
14807 {
14808   char *s;
14809   va_list v;
14810   va_start (v,p);
14811   s = g (p, va_arg (v,int));
14812   va_end (v);
14813   return s;
14814 }
14815
14816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14817    function prototypes and stuff, but not '\xHH' hex character constants.
14818    These don't provoke an error unfortunately, instead are silently treated
14819    as 'x'.  The following induces an error, until -std is added to get
14820    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14821    array size at least.  It's necessary to write '\x00'==0 to get something
14822    that's true only with -std.  */
14823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14824
14825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14826    inside strings and character constants.  */
14827 #define FOO(x) 'x'
14828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14829
14830 int test (int i, double x);
14831 struct s1 {int (*f) (int a);};
14832 struct s2 {int (*f) (double a);};
14833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14834 int argc;
14835 char **argv;
14836 int
14837 main ()
14838 {
14839 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14840   ;
14841   return 0;
14842 }
14843 _ACEOF
14844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14845         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14846 do
14847   CC="$ac_save_CC $ac_arg"
14848   rm -f conftest.$ac_objext
14849 if { (ac_try="$ac_compile"
14850 case "(($ac_try" in
14851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852   *) ac_try_echo=$ac_try;;
14853 esac
14854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14855   (eval "$ac_compile") 2>conftest.er1
14856   ac_status=$?
14857   grep -v '^ *+' conftest.er1 >conftest.err
14858   rm -f conftest.er1
14859   cat conftest.err >&5
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); } && {
14862          test -z "$ac_c_werror_flag" ||
14863          test ! -s conftest.err
14864        } && test -s conftest.$ac_objext; then
14865   ac_cv_prog_cc_c89=$ac_arg
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870
14871 fi
14872
14873 rm -f core conftest.err conftest.$ac_objext
14874   test "x$ac_cv_prog_cc_c89" != "xno" && break
14875 done
14876 rm -f conftest.$ac_ext
14877 CC=$ac_save_CC
14878
14879 fi
14880 # AC_CACHE_VAL
14881 case "x$ac_cv_prog_cc_c89" in
14882   x)
14883     { echo "$as_me:$LINENO: result: none needed" >&5
14884 echo "${ECHO_T}none needed" >&6; } ;;
14885   xno)
14886     { echo "$as_me:$LINENO: result: unsupported" >&5
14887 echo "${ECHO_T}unsupported" >&6; } ;;
14888   *)
14889     CC="$CC $ac_cv_prog_cc_c89"
14890     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14891 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14892 esac
14893
14894
14895 ac_ext=c
14896 ac_cpp='$CPP $CPPFLAGS'
14897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14900
14901
14902
14903
14904     ac_ext=c
14905 ac_cpp='$CPP $CPPFLAGS'
14906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14909
14910     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14911 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14912 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14913   echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915   cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h.  */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h.  */
14921
14922 int
14923 main ()
14924 {
14925
14926              #ifndef __INTEL_COMPILER
14927                 choke me
14928              #endif
14929
14930   ;
14931   return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext
14935 if { (ac_try="$ac_compile"
14936 case "(($ac_try" in
14937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938   *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941   (eval "$ac_compile") 2>conftest.er1
14942   ac_status=$?
14943   grep -v '^ *+' conftest.er1 >conftest.err
14944   rm -f conftest.er1
14945   cat conftest.err >&5
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } && {
14948          test -z "$ac_c_werror_flag" ||
14949          test ! -s conftest.err
14950        } && test -s conftest.$ac_objext; then
14951   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956         bakefile_cv_c_compiler___INTEL_COMPILER=no
14957
14958 fi
14959
14960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961
14962
14963 fi
14964 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
14965 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
14966     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
14967         :; INTELCC=yes
14968     else
14969         :;
14970     fi
14971     ac_ext=c
14972 ac_cpp='$CPP $CPPFLAGS'
14973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14976
14977
14978
14979
14980         if test "x$GCC" != "xyes"; then
14981         if test "xCC" = "xC"; then
14982             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14983 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
14984 if test "${bakefile_cv_c_exto+set}" = set; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993
14994 int
14995 main ()
14996 {
14997
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest.$ac_ext.o
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004   (eval $ac_compile) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; then
15008   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15009     case $ac_file in
15010         conftest.$ac_ext.o)
15011             bakefile_cv_c_exto="-ext o"
15012             ;;
15013         *)
15014             ;;
15015     esac
15016 done
15017 else
15018   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15019 See \`config.log' for more details." >&5
15020 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15021 See \`config.log' for more details." >&2;}
15022    { (exit 1); exit 1; }; }
15023
15024 fi
15025
15026 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15027
15028 fi
15029 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15030 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15031 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15032     if test "c" = "c"; then
15033         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15034     fi
15035     if test "c" = "cxx"; then
15036         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15037     fi
15038 fi
15039
15040             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15041                 unset ac_cv_prog_cc_g
15042                 ac_test_CFLAGS=${CFLAGS+set}
15043 ac_save_CFLAGS=$CFLAGS
15044 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15045 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15046 if test "${ac_cv_prog_cc_g+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   ac_save_c_werror_flag=$ac_c_werror_flag
15050    ac_c_werror_flag=yes
15051    ac_cv_prog_cc_g=no
15052    CFLAGS="-g"
15053    cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059
15060 int
15061 main ()
15062 {
15063
15064   ;
15065   return 0;
15066 }
15067 _ACEOF
15068 rm -f conftest.$ac_objext
15069 if { (ac_try="$ac_compile"
15070 case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_compile") 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } && {
15082          test -z "$ac_c_werror_flag" ||
15083          test ! -s conftest.err
15084        } && test -s conftest.$ac_objext; then
15085   ac_cv_prog_cc_g=yes
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         CFLAGS=""
15091       cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097
15098 int
15099 main ()
15100 {
15101
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (ac_try="$ac_compile"
15108 case "(($ac_try" in
15109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110   *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113   (eval "$ac_compile") 2>conftest.er1
15114   ac_status=$?
15115   grep -v '^ *+' conftest.er1 >conftest.err
15116   rm -f conftest.er1
15117   cat conftest.err >&5
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); } && {
15120          test -z "$ac_c_werror_flag" ||
15121          test ! -s conftest.err
15122        } && test -s conftest.$ac_objext; then
15123   :
15124 else
15125   echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15127
15128         ac_c_werror_flag=$ac_save_c_werror_flag
15129          CFLAGS="-g"
15130          cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136
15137 int
15138 main ()
15139 {
15140
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext
15146 if { (ac_try="$ac_compile"
15147 case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152   (eval "$ac_compile") 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } && {
15159          test -z "$ac_c_werror_flag" ||
15160          test ! -s conftest.err
15161        } && test -s conftest.$ac_objext; then
15162   ac_cv_prog_cc_g=yes
15163 else
15164   echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167
15168 fi
15169
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175
15176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177    ac_c_werror_flag=$ac_save_c_werror_flag
15178 fi
15179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15181 if test "$ac_test_CFLAGS" = set; then
15182   CFLAGS=$ac_save_CFLAGS
15183 elif test $ac_cv_prog_cc_g = yes; then
15184   if test "$GCC" = yes; then
15185     CFLAGS="-g -O2"
15186   else
15187     CFLAGS="-g"
15188   fi
15189 else
15190   if test "$GCC" = yes; then
15191     CFLAGS="-O2"
15192   else
15193     CFLAGS=
15194   fi
15195 fi
15196             fi
15197         fi
15198
15199                         case `uname -s` in
15200             AIX*)
15201
15202
15203     ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15210 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15211 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220
15221 int
15222 main ()
15223 {
15224
15225              #ifndef __xlC__
15226                 choke me
15227              #endif
15228
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (ac_try="$ac_compile"
15235 case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_compile") 2>conftest.er1
15241   ac_status=$?
15242   grep -v '^ *+' conftest.er1 >conftest.err
15243   rm -f conftest.er1
15244   cat conftest.err >&5
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } && {
15247          test -z "$ac_c_werror_flag" ||
15248          test ! -s conftest.err
15249        } && test -s conftest.$ac_objext; then
15250   bakefile_cv_c_compiler___xlC__=yes
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255         bakefile_cv_c_compiler___xlC__=no
15256
15257 fi
15258
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260
15261
15262 fi
15263 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15264 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15265     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15266         :; XLCC=yes
15267     else
15268         :;
15269     fi
15270     ac_ext=c
15271 ac_cpp='$CPP $CPPFLAGS'
15272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15275
15276
15277
15278                 ;;
15279
15280             Darwin)
15281
15282
15283     ac_ext=c
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15288
15289     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15290 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15291 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300
15301 int
15302 main ()
15303 {
15304
15305              #ifndef __MWERKS__
15306                 choke me
15307              #endif
15308
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest.$ac_objext
15314 if { (ac_try="$ac_compile"
15315 case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_compile") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } && {
15327          test -z "$ac_c_werror_flag" ||
15328          test ! -s conftest.err
15329        } && test -s conftest.$ac_objext; then
15330   bakefile_cv_c_compiler___MWERKS__=yes
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335         bakefile_cv_c_compiler___MWERKS__=no
15336
15337 fi
15338
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340
15341
15342 fi
15343 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15344 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15345     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15346         :; MWCC=yes
15347     else
15348         :;
15349     fi
15350     ac_ext=c
15351 ac_cpp='$CPP $CPPFLAGS'
15352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15355
15356
15357
15358
15359
15360     ac_ext=c
15361 ac_cpp='$CPP $CPPFLAGS'
15362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15365
15366     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15367 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15368 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377
15378 int
15379 main ()
15380 {
15381
15382              #ifndef __xlC__
15383                 choke me
15384              #endif
15385
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext
15391 if { (ac_try="$ac_compile"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397   (eval "$ac_compile") 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } && {
15404          test -z "$ac_c_werror_flag" ||
15405          test ! -s conftest.err
15406        } && test -s conftest.$ac_objext; then
15407   bakefile_cv_c_compiler___xlC__=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412         bakefile_cv_c_compiler___xlC__=no
15413
15414 fi
15415
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417
15418
15419 fi
15420 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15421 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15422     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15423         :; XLCC=yes
15424     else
15425         :;
15426     fi
15427     ac_ext=c
15428 ac_cpp='$CPP $CPPFLAGS'
15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432
15433
15434
15435                 ;;
15436
15437             IRIX*)
15438
15439
15440     ac_ext=c
15441 ac_cpp='$CPP $CPPFLAGS'
15442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15445
15446     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15447 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15448 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457
15458 int
15459 main ()
15460 {
15461
15462              #ifndef _SGI_COMPILER_VERSION
15463                 choke me
15464              #endif
15465
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_compile") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } && {
15484          test -z "$ac_c_werror_flag" ||
15485          test ! -s conftest.err
15486        } && test -s conftest.$ac_objext; then
15487   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15488 else
15489   echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15491
15492         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15493
15494 fi
15495
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497
15498
15499 fi
15500 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15501 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15502     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15503         :; SGICC=yes
15504     else
15505         :;
15506     fi
15507     ac_ext=c
15508 ac_cpp='$CPP $CPPFLAGS'
15509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15512
15513
15514
15515                 ;;
15516
15517             Linux*)
15518
15519
15520     ac_ext=c
15521 ac_cpp='$CPP $CPPFLAGS'
15522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15525
15526     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15527 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15528 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537
15538 int
15539 main ()
15540 {
15541
15542              #ifndef __SUNPRO_C
15543                 choke me
15544              #endif
15545
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_compile") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } && {
15564          test -z "$ac_c_werror_flag" ||
15565          test ! -s conftest.err
15566        } && test -s conftest.$ac_objext; then
15567   bakefile_cv_c_compiler___SUNPRO_C=yes
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572         bakefile_cv_c_compiler___SUNPRO_C=no
15573
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577
15578
15579 fi
15580 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15581 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15582     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15583         :; SUNCC=yes
15584     else
15585         :;
15586     fi
15587     ac_ext=c
15588 ac_cpp='$CPP $CPPFLAGS'
15589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592
15593
15594
15595                 ;;
15596
15597             HP-UX*)
15598
15599
15600     ac_ext=c
15601 ac_cpp='$CPP $CPPFLAGS'
15602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15605
15606     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15607 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15608 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611   cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617
15618 int
15619 main ()
15620 {
15621
15622              #ifndef __HP_cc
15623                 choke me
15624              #endif
15625
15626   ;
15627   return 0;
15628 }
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (ac_try="$ac_compile"
15632 case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_compile") 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } && {
15644          test -z "$ac_c_werror_flag" ||
15645          test ! -s conftest.err
15646        } && test -s conftest.$ac_objext; then
15647   bakefile_cv_c_compiler___HP_cc=yes
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652         bakefile_cv_c_compiler___HP_cc=no
15653
15654 fi
15655
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657
15658
15659 fi
15660 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15661 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15662     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15663         :; HPCC=yes
15664     else
15665         :;
15666     fi
15667     ac_ext=c
15668 ac_cpp='$CPP $CPPFLAGS'
15669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15672
15673
15674
15675                 ;;
15676
15677             OSF1)
15678
15679
15680     ac_ext=c
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15685
15686     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15687 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15688 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15689   echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691   cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697
15698 int
15699 main ()
15700 {
15701
15702              #ifndef __DECC
15703                 choke me
15704              #endif
15705
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714   *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717   (eval "$ac_compile") 2>conftest.er1
15718   ac_status=$?
15719   grep -v '^ *+' conftest.er1 >conftest.err
15720   rm -f conftest.er1
15721   cat conftest.err >&5
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } && {
15724          test -z "$ac_c_werror_flag" ||
15725          test ! -s conftest.err
15726        } && test -s conftest.$ac_objext; then
15727   bakefile_cv_c_compiler___DECC=yes
15728 else
15729   echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732         bakefile_cv_c_compiler___DECC=no
15733
15734 fi
15735
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737
15738
15739 fi
15740 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15741 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15742     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15743         :; COMPAQCC=yes
15744     else
15745         :;
15746     fi
15747     ac_ext=c
15748 ac_cpp='$CPP $CPPFLAGS'
15749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15752
15753
15754
15755                 ;;
15756
15757             SunOS)
15758
15759
15760     ac_ext=c
15761 ac_cpp='$CPP $CPPFLAGS'
15762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15765
15766     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15767 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15768 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15769   echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771   cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777
15778 int
15779 main ()
15780 {
15781
15782              #ifndef __SUNPRO_C
15783                 choke me
15784              #endif
15785
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (ac_try="$ac_compile"
15792 case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_compile") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } && {
15804          test -z "$ac_c_werror_flag" ||
15805          test ! -s conftest.err
15806        } && test -s conftest.$ac_objext; then
15807   bakefile_cv_c_compiler___SUNPRO_C=yes
15808 else
15809   echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812         bakefile_cv_c_compiler___SUNPRO_C=no
15813
15814 fi
15815
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817
15818
15819 fi
15820 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15821 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15822     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15823         :; SUNCC=yes
15824     else
15825         :;
15826     fi
15827     ac_ext=c
15828 ac_cpp='$CPP $CPPFLAGS'
15829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15832
15833
15834
15835                 ;;
15836         esac
15837     fi
15838
15839
15840
15841 ac_ext=c
15842 ac_cpp='$CPP $CPPFLAGS'
15843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15846 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15847 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15848 # On Suns, sometimes $CPP names a directory.
15849 if test -n "$CPP" && test -d "$CPP"; then
15850   CPP=
15851 fi
15852 if test -z "$CPP"; then
15853   if test "${ac_cv_prog_CPP+set}" = set; then
15854   echo $ECHO_N "(cached) $ECHO_C" >&6
15855 else
15856       # Double quotes because CPP needs to be expanded
15857     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15858     do
15859       ac_preproc_ok=false
15860 for ac_c_preproc_warn_flag in '' yes
15861 do
15862   # Use a header file that comes with gcc, so configuring glibc
15863   # with a fresh cross-compiler works.
15864   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15865   # <limits.h> exists even on freestanding compilers.
15866   # On the NeXT, cc -E runs the code through the compiler's parser,
15867   # not just through cpp. "Syntax error" is here to catch this case.
15868   cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h.  */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h.  */
15874 #ifdef __STDC__
15875 # include <limits.h>
15876 #else
15877 # include <assert.h>
15878 #endif
15879                      Syntax error
15880 _ACEOF
15881 if { (ac_try="$ac_cpp conftest.$ac_ext"
15882 case "(($ac_try" in
15883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884   *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } >/dev/null && {
15894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15895          test ! -s conftest.err
15896        }; then
15897   :
15898 else
15899   echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902   # Broken: fails on valid input.
15903 continue
15904 fi
15905
15906 rm -f conftest.err conftest.$ac_ext
15907
15908   # OK, works on sane cases.  Now check whether nonexistent headers
15909   # can be detected and how.
15910   cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h.  */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h.  */
15916 #include <ac_nonexistent.h>
15917 _ACEOF
15918 if { (ac_try="$ac_cpp conftest.$ac_ext"
15919 case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } >/dev/null && {
15931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15932          test ! -s conftest.err
15933        }; then
15934   # Broken: success on invalid input.
15935 continue
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940   # Passes both tests.
15941 ac_preproc_ok=:
15942 break
15943 fi
15944
15945 rm -f conftest.err conftest.$ac_ext
15946
15947 done
15948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15949 rm -f conftest.err conftest.$ac_ext
15950 if $ac_preproc_ok; then
15951   break
15952 fi
15953
15954     done
15955     ac_cv_prog_CPP=$CPP
15956
15957 fi
15958   CPP=$ac_cv_prog_CPP
15959 else
15960   ac_cv_prog_CPP=$CPP
15961 fi
15962 { echo "$as_me:$LINENO: result: $CPP" >&5
15963 echo "${ECHO_T}$CPP" >&6; }
15964 ac_preproc_ok=false
15965 for ac_c_preproc_warn_flag in '' yes
15966 do
15967   # Use a header file that comes with gcc, so configuring glibc
15968   # with a fresh cross-compiler works.
15969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15970   # <limits.h> exists even on freestanding compilers.
15971   # On the NeXT, cc -E runs the code through the compiler's parser,
15972   # not just through cpp. "Syntax error" is here to catch this case.
15973   cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979 #ifdef __STDC__
15980 # include <limits.h>
15981 #else
15982 # include <assert.h>
15983 #endif
15984                      Syntax error
15985 _ACEOF
15986 if { (ac_try="$ac_cpp conftest.$ac_ext"
15987 case "(($ac_try" in
15988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989   *) ac_try_echo=$ac_try;;
15990 esac
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15993   ac_status=$?
15994   grep -v '^ *+' conftest.er1 >conftest.err
15995   rm -f conftest.er1
15996   cat conftest.err >&5
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); } >/dev/null && {
15999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16000          test ! -s conftest.err
16001        }; then
16002   :
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007   # Broken: fails on valid input.
16008 continue
16009 fi
16010
16011 rm -f conftest.err conftest.$ac_ext
16012
16013   # OK, works on sane cases.  Now check whether nonexistent headers
16014   # can be detected and how.
16015   cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021 #include <ac_nonexistent.h>
16022 _ACEOF
16023 if { (ac_try="$ac_cpp conftest.$ac_ext"
16024 case "(($ac_try" in
16025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026   *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16030   ac_status=$?
16031   grep -v '^ *+' conftest.er1 >conftest.err
16032   rm -f conftest.er1
16033   cat conftest.err >&5
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); } >/dev/null && {
16036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16037          test ! -s conftest.err
16038        }; then
16039   # Broken: success on invalid input.
16040 continue
16041 else
16042   echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16044
16045   # Passes both tests.
16046 ac_preproc_ok=:
16047 break
16048 fi
16049
16050 rm -f conftest.err conftest.$ac_ext
16051
16052 done
16053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16054 rm -f conftest.err conftest.$ac_ext
16055 if $ac_preproc_ok; then
16056   :
16057 else
16058   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16059 See \`config.log' for more details." >&5
16060 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16061 See \`config.log' for more details." >&2;}
16062    { (exit 1); exit 1; }; }
16063 fi
16064
16065 ac_ext=c
16066 ac_cpp='$CPP $CPPFLAGS'
16067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16070
16071
16072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16074 if test "${ac_cv_path_GREP+set}" = set; then
16075   echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077   # Extract the first word of "grep ggrep" to use in msg output
16078 if test -z "$GREP"; then
16079 set dummy grep ggrep; ac_prog_name=$2
16080 if test "${ac_cv_path_GREP+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   ac_path_GREP_found=false
16084 # Loop through the user's path and test for each of PROGNAME-LIST
16085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16087 do
16088   IFS=$as_save_IFS
16089   test -z "$as_dir" && as_dir=.
16090   for ac_prog in grep ggrep; do
16091   for ac_exec_ext in '' $ac_executable_extensions; do
16092     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16093     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16094     # Check for GNU ac_path_GREP and select it if it is found.
16095   # Check for GNU $ac_path_GREP
16096 case `"$ac_path_GREP" --version 2>&1` in
16097 *GNU*)
16098   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16099 *)
16100   ac_count=0
16101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16102   while :
16103   do
16104     cat "conftest.in" "conftest.in" >"conftest.tmp"
16105     mv "conftest.tmp" "conftest.in"
16106     cp "conftest.in" "conftest.nl"
16107     echo 'GREP' >> "conftest.nl"
16108     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16110     ac_count=`expr $ac_count + 1`
16111     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16112       # Best one so far, save it but keep looking for a better one
16113       ac_cv_path_GREP="$ac_path_GREP"
16114       ac_path_GREP_max=$ac_count
16115     fi
16116     # 10*(2^10) chars as input seems more than enough
16117     test $ac_count -gt 10 && break
16118   done
16119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16120 esac
16121
16122
16123     $ac_path_GREP_found && break 3
16124   done
16125 done
16126
16127 done
16128 IFS=$as_save_IFS
16129
16130
16131 fi
16132
16133 GREP="$ac_cv_path_GREP"
16134 if test -z "$GREP"; then
16135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16137    { (exit 1); exit 1; }; }
16138 fi
16139
16140 else
16141   ac_cv_path_GREP=$GREP
16142 fi
16143
16144
16145 fi
16146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16148  GREP="$ac_cv_path_GREP"
16149
16150
16151 { echo "$as_me:$LINENO: checking for egrep" >&5
16152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16153 if test "${ac_cv_path_EGREP+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16157    then ac_cv_path_EGREP="$GREP -E"
16158    else
16159      # Extract the first word of "egrep" to use in msg output
16160 if test -z "$EGREP"; then
16161 set dummy egrep; ac_prog_name=$2
16162 if test "${ac_cv_path_EGREP+set}" = set; then
16163   echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165   ac_path_EGREP_found=false
16166 # Loop through the user's path and test for each of PROGNAME-LIST
16167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16169 do
16170   IFS=$as_save_IFS
16171   test -z "$as_dir" && as_dir=.
16172   for ac_prog in egrep; do
16173   for ac_exec_ext in '' $ac_executable_extensions; do
16174     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16175     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16176     # Check for GNU ac_path_EGREP and select it if it is found.
16177   # Check for GNU $ac_path_EGREP
16178 case `"$ac_path_EGREP" --version 2>&1` in
16179 *GNU*)
16180   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16181 *)
16182   ac_count=0
16183   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16184   while :
16185   do
16186     cat "conftest.in" "conftest.in" >"conftest.tmp"
16187     mv "conftest.tmp" "conftest.in"
16188     cp "conftest.in" "conftest.nl"
16189     echo 'EGREP' >> "conftest.nl"
16190     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16192     ac_count=`expr $ac_count + 1`
16193     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16194       # Best one so far, save it but keep looking for a better one
16195       ac_cv_path_EGREP="$ac_path_EGREP"
16196       ac_path_EGREP_max=$ac_count
16197     fi
16198     # 10*(2^10) chars as input seems more than enough
16199     test $ac_count -gt 10 && break
16200   done
16201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16202 esac
16203
16204
16205     $ac_path_EGREP_found && break 3
16206   done
16207 done
16208
16209 done
16210 IFS=$as_save_IFS
16211
16212
16213 fi
16214
16215 EGREP="$ac_cv_path_EGREP"
16216 if test -z "$EGREP"; then
16217   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16219    { (exit 1); exit 1; }; }
16220 fi
16221
16222 else
16223   ac_cv_path_EGREP=$EGREP
16224 fi
16225
16226
16227    fi
16228 fi
16229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16231  EGREP="$ac_cv_path_EGREP"
16232
16233
16234 if test $ac_cv_c_compiler_gnu = yes; then
16235     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16236 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16237 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240     ac_pattern="Autoconf.*'x'"
16241   cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h.  */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h.  */
16247 #include <sgtty.h>
16248 Autoconf TIOCGETP
16249 _ACEOF
16250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16251   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16252   ac_cv_prog_gcc_traditional=yes
16253 else
16254   ac_cv_prog_gcc_traditional=no
16255 fi
16256 rm -f conftest*
16257
16258
16259   if test $ac_cv_prog_gcc_traditional = no; then
16260     cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266 #include <termio.h>
16267 Autoconf TCGETA
16268 _ACEOF
16269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16270   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16271   ac_cv_prog_gcc_traditional=yes
16272 fi
16273 rm -f conftest*
16274
16275   fi
16276 fi
16277 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16278 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16279   if test $ac_cv_prog_gcc_traditional = yes; then
16280     CC="$CC -traditional"
16281   fi
16282 fi
16283
16284
16285 CXXFLAGS=${CXXFLAGS:=}
16286
16287
16288
16289     ac_ext=cpp
16290 ac_cpp='$CXXCPP $CPPFLAGS'
16291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16294 if test -z "$CXX"; then
16295   if test -n "$CCC"; then
16296     CXX=$CCC
16297   else
16298     if test -n "$ac_tool_prefix"; then
16299   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16300   do
16301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16305 if test "${ac_cv_prog_CXX+set}" = set; then
16306   echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308   if test -n "$CXX"; then
16309   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16310 else
16311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16312 for as_dir in $PATH
16313 do
16314   IFS=$as_save_IFS
16315   test -z "$as_dir" && as_dir=.
16316   for ac_exec_ext in '' $ac_executable_extensions; do
16317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16318     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16320     break 2
16321   fi
16322 done
16323 done
16324 IFS=$as_save_IFS
16325
16326 fi
16327 fi
16328 CXX=$ac_cv_prog_CXX
16329 if test -n "$CXX"; then
16330   { echo "$as_me:$LINENO: result: $CXX" >&5
16331 echo "${ECHO_T}$CXX" >&6; }
16332 else
16333   { echo "$as_me:$LINENO: result: no" >&5
16334 echo "${ECHO_T}no" >&6; }
16335 fi
16336
16337
16338     test -n "$CXX" && break
16339   done
16340 fi
16341 if test -z "$CXX"; then
16342   ac_ct_CXX=$CXX
16343   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16344 do
16345   # Extract the first word of "$ac_prog", so it can be a program name with args.
16346 set dummy $ac_prog; ac_word=$2
16347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16349 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352   if test -n "$ac_ct_CXX"; then
16353   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16354 else
16355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16356 for as_dir in $PATH
16357 do
16358   IFS=$as_save_IFS
16359   test -z "$as_dir" && as_dir=.
16360   for ac_exec_ext in '' $ac_executable_extensions; do
16361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16362     ac_cv_prog_ac_ct_CXX="$ac_prog"
16363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16364     break 2
16365   fi
16366 done
16367 done
16368 IFS=$as_save_IFS
16369
16370 fi
16371 fi
16372 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16373 if test -n "$ac_ct_CXX"; then
16374   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16375 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16376 else
16377   { echo "$as_me:$LINENO: result: no" >&5
16378 echo "${ECHO_T}no" >&6; }
16379 fi
16380
16381
16382   test -n "$ac_ct_CXX" && break
16383 done
16384
16385   if test "x$ac_ct_CXX" = x; then
16386     CXX="g++"
16387   else
16388     case $cross_compiling:$ac_tool_warned in
16389 yes:)
16390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16391 whose name does not start with the host triplet.  If you think this
16392 configuration is useful to you, please write to autoconf@gnu.org." >&5
16393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16394 whose name does not start with the host triplet.  If you think this
16395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16396 ac_tool_warned=yes ;;
16397 esac
16398     CXX=$ac_ct_CXX
16399   fi
16400 fi
16401
16402   fi
16403 fi
16404 # Provide some information about the compiler.
16405 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16406 ac_compiler=`set X $ac_compile; echo $2`
16407 { (ac_try="$ac_compiler --version >&5"
16408 case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_compiler --version >&5") 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); }
16417 { (ac_try="$ac_compiler -v >&5"
16418 case "(($ac_try" in
16419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420   *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423   (eval "$ac_compiler -v >&5") 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }
16427 { (ac_try="$ac_compiler -V >&5"
16428 case "(($ac_try" in
16429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430   *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433   (eval "$ac_compiler -V >&5") 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }
16437
16438 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16439 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16440 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449
16450 int
16451 main ()
16452 {
16453 #ifndef __GNUC__
16454        choke me
16455 #endif
16456
16457   ;
16458   return 0;
16459 }
16460 _ACEOF
16461 rm -f conftest.$ac_objext
16462 if { (ac_try="$ac_compile"
16463 case "(($ac_try" in
16464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465   *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468   (eval "$ac_compile") 2>conftest.er1
16469   ac_status=$?
16470   grep -v '^ *+' conftest.er1 >conftest.err
16471   rm -f conftest.er1
16472   cat conftest.err >&5
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } && {
16475          test -z "$ac_cxx_werror_flag" ||
16476          test ! -s conftest.err
16477        } && test -s conftest.$ac_objext; then
16478   ac_compiler_gnu=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483         ac_compiler_gnu=no
16484 fi
16485
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16488
16489 fi
16490 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16491 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16492 GXX=`test $ac_compiler_gnu = yes && echo yes`
16493 ac_test_CXXFLAGS=${CXXFLAGS+set}
16494 ac_save_CXXFLAGS=$CXXFLAGS
16495 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16496 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16497 if test "${ac_cv_prog_cxx_g+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16501    ac_cxx_werror_flag=yes
16502    ac_cv_prog_cxx_g=no
16503    CXXFLAGS="-g"
16504    cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510
16511 int
16512 main ()
16513 {
16514
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_cxx_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest.$ac_objext; then
16536   ac_cv_prog_cxx_g=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         CXXFLAGS=""
16542       cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548
16549 int
16550 main ()
16551 {
16552
16553   ;
16554   return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (ac_try="$ac_compile"
16559 case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_compile") 2>conftest.er1
16565   ac_status=$?
16566   grep -v '^ *+' conftest.er1 >conftest.err
16567   rm -f conftest.er1
16568   cat conftest.err >&5
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } && {
16571          test -z "$ac_cxx_werror_flag" ||
16572          test ! -s conftest.err
16573        } && test -s conftest.$ac_objext; then
16574   :
16575 else
16576   echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16580          CXXFLAGS="-g"
16581          cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h.  */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h.  */
16587
16588 int
16589 main ()
16590 {
16591
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 rm -f conftest.$ac_objext
16597 if { (ac_try="$ac_compile"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_compile") 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } && {
16610          test -z "$ac_cxx_werror_flag" ||
16611          test ! -s conftest.err
16612        } && test -s conftest.$ac_objext; then
16613   ac_cv_prog_cxx_g=yes
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618
16619 fi
16620
16621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 fi
16623
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 fi
16626
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16629 fi
16630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16631 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16632 if test "$ac_test_CXXFLAGS" = set; then
16633   CXXFLAGS=$ac_save_CXXFLAGS
16634 elif test $ac_cv_prog_cxx_g = yes; then
16635   if test "$GXX" = yes; then
16636     CXXFLAGS="-g -O2"
16637   else
16638     CXXFLAGS="-g"
16639   fi
16640 else
16641   if test "$GXX" = yes; then
16642     CXXFLAGS="-O2"
16643   else
16644     CXXFLAGS=
16645   fi
16646 fi
16647 ac_ext=c
16648 ac_cpp='$CPP $CPPFLAGS'
16649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16652
16653
16654
16655
16656     ac_ext=cpp
16657 ac_cpp='$CXXCPP $CPPFLAGS'
16658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16661
16662     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16663 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16664 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673
16674 int
16675 main ()
16676 {
16677
16678              #ifndef __INTEL_COMPILER
16679                 choke me
16680              #endif
16681
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext
16687 if { (ac_try="$ac_compile"
16688 case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_compile") 2>conftest.er1
16694   ac_status=$?
16695   grep -v '^ *+' conftest.er1 >conftest.err
16696   rm -f conftest.er1
16697   cat conftest.err >&5
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } && {
16700          test -z "$ac_cxx_werror_flag" ||
16701          test ! -s conftest.err
16702        } && test -s conftest.$ac_objext; then
16703   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16709
16710 fi
16711
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713
16714
16715 fi
16716 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16717 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16718     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16719         :; INTELCXX=yes
16720     else
16721         :;
16722     fi
16723     ac_ext=c
16724 ac_cpp='$CPP $CPPFLAGS'
16725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16728
16729
16730
16731
16732         if test "x$GCXX" != "xyes"; then
16733         if test "xCXX" = "xC"; then
16734             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16735 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16736 if test "${bakefile_cv_c_exto+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745
16746 int
16747 main ()
16748 {
16749
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest.$ac_ext.o
16755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756   (eval $ac_compile) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; then
16760   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16761     case $ac_file in
16762         conftest.$ac_ext.o)
16763             bakefile_cv_c_exto="-ext o"
16764             ;;
16765         *)
16766             ;;
16767     esac
16768 done
16769 else
16770   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16771 See \`config.log' for more details." >&5
16772 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16773 See \`config.log' for more details." >&2;}
16774    { (exit 1); exit 1; }; }
16775
16776 fi
16777
16778 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16779
16780 fi
16781 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16782 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16783 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16784     if test "c" = "c"; then
16785         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16786     fi
16787     if test "c" = "cxx"; then
16788         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16789     fi
16790 fi
16791
16792             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16793                 unset ac_cv_prog_cc_g
16794                 ac_test_CFLAGS=${CFLAGS+set}
16795 ac_save_CFLAGS=$CFLAGS
16796 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16797 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16798 if test "${ac_cv_prog_cc_g+set}" = set; then
16799   echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801   ac_save_c_werror_flag=$ac_c_werror_flag
16802    ac_c_werror_flag=yes
16803    ac_cv_prog_cc_g=no
16804    CFLAGS="-g"
16805    cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811
16812 int
16813 main ()
16814 {
16815
16816   ;
16817   return 0;
16818 }
16819 _ACEOF
16820 rm -f conftest.$ac_objext
16821 if { (ac_try="$ac_compile"
16822 case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827   (eval "$ac_compile") 2>conftest.er1
16828   ac_status=$?
16829   grep -v '^ *+' conftest.er1 >conftest.err
16830   rm -f conftest.er1
16831   cat conftest.err >&5
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } && {
16834          test -z "$ac_c_werror_flag" ||
16835          test ! -s conftest.err
16836        } && test -s conftest.$ac_objext; then
16837   ac_cv_prog_cc_g=yes
16838 else
16839   echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842         CFLAGS=""
16843       cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 int
16851 main ()
16852 {
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_compile") 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } && {
16872          test -z "$ac_c_werror_flag" ||
16873          test ! -s conftest.err
16874        } && test -s conftest.$ac_objext; then
16875   :
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880         ac_c_werror_flag=$ac_save_c_werror_flag
16881          CFLAGS="-g"
16882          cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888
16889 int
16890 main ()
16891 {
16892
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext
16898 if { (ac_try="$ac_compile"
16899 case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_compile") 2>conftest.er1
16905   ac_status=$?
16906   grep -v '^ *+' conftest.er1 >conftest.err
16907   rm -f conftest.er1
16908   cat conftest.err >&5
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } && {
16911          test -z "$ac_c_werror_flag" ||
16912          test ! -s conftest.err
16913        } && test -s conftest.$ac_objext; then
16914   ac_cv_prog_cc_g=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919
16920 fi
16921
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 fi
16924
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926 fi
16927
16928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929    ac_c_werror_flag=$ac_save_c_werror_flag
16930 fi
16931 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16932 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16933 if test "$ac_test_CFLAGS" = set; then
16934   CFLAGS=$ac_save_CFLAGS
16935 elif test $ac_cv_prog_cc_g = yes; then
16936   if test "$GCC" = yes; then
16937     CFLAGS="-g -O2"
16938   else
16939     CFLAGS="-g"
16940   fi
16941 else
16942   if test "$GCC" = yes; then
16943     CFLAGS="-O2"
16944   else
16945     CFLAGS=
16946   fi
16947 fi
16948             fi
16949         fi
16950
16951                         case `uname -s` in
16952             AIX*)
16953
16954
16955     ac_ext=cpp
16956 ac_cpp='$CXXCPP $CPPFLAGS'
16957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16960
16961     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16962 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16963 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972
16973 int
16974 main ()
16975 {
16976
16977              #ifndef __xlC__
16978                 choke me
16979              #endif
16980
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989   *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992   (eval "$ac_compile") 2>conftest.er1
16993   ac_status=$?
16994   grep -v '^ *+' conftest.er1 >conftest.err
16995   rm -f conftest.er1
16996   cat conftest.err >&5
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } && {
16999          test -z "$ac_cxx_werror_flag" ||
17000          test ! -s conftest.err
17001        } && test -s conftest.$ac_objext; then
17002   bakefile_cv_cxx_compiler___xlC__=yes
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007         bakefile_cv_cxx_compiler___xlC__=no
17008
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012
17013
17014 fi
17015 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17016 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17017     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17018         :; XLCXX=yes
17019     else
17020         :;
17021     fi
17022     ac_ext=c
17023 ac_cpp='$CPP $CPPFLAGS'
17024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17027
17028
17029
17030                 ;;
17031
17032             Darwin)
17033
17034
17035     ac_ext=cpp
17036 ac_cpp='$CXXCPP $CPPFLAGS'
17037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17040
17041     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17042 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17043 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046   cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052
17053 int
17054 main ()
17055 {
17056
17057              #ifndef __MWERKS__
17058                 choke me
17059              #endif
17060
17061   ;
17062   return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_compile") 2>conftest.er1
17073   ac_status=$?
17074   grep -v '^ *+' conftest.er1 >conftest.err
17075   rm -f conftest.er1
17076   cat conftest.err >&5
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); } && {
17079          test -z "$ac_cxx_werror_flag" ||
17080          test ! -s conftest.err
17081        } && test -s conftest.$ac_objext; then
17082   bakefile_cv_cxx_compiler___MWERKS__=yes
17083 else
17084   echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17086
17087         bakefile_cv_cxx_compiler___MWERKS__=no
17088
17089 fi
17090
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092
17093
17094 fi
17095 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17096 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17097     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17098         :; MWCXX=yes
17099     else
17100         :;
17101     fi
17102     ac_ext=c
17103 ac_cpp='$CPP $CPPFLAGS'
17104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17107
17108
17109
17110
17111
17112     ac_ext=cpp
17113 ac_cpp='$CXXCPP $CPPFLAGS'
17114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17117
17118     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17119 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17120 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123   cat >conftest.$ac_ext <<_ACEOF
17124 /* confdefs.h.  */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h.  */
17129
17130 int
17131 main ()
17132 {
17133
17134              #ifndef __xlC__
17135                 choke me
17136              #endif
17137
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_compile") 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } && {
17156          test -z "$ac_cxx_werror_flag" ||
17157          test ! -s conftest.err
17158        } && test -s conftest.$ac_objext; then
17159   bakefile_cv_cxx_compiler___xlC__=yes
17160 else
17161   echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164         bakefile_cv_cxx_compiler___xlC__=no
17165
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169
17170
17171 fi
17172 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17173 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17174     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17175         :; XLCXX=yes
17176     else
17177         :;
17178     fi
17179     ac_ext=c
17180 ac_cpp='$CPP $CPPFLAGS'
17181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17184
17185
17186
17187                 ;;
17188
17189             IRIX*)
17190
17191
17192     ac_ext=cpp
17193 ac_cpp='$CXXCPP $CPPFLAGS'
17194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17197
17198     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17199 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17200 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17201   echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209
17210 int
17211 main ()
17212 {
17213
17214              #ifndef _SGI_COMPILER_VERSION
17215                 choke me
17216              #endif
17217
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext
17223 if { (ac_try="$ac_compile"
17224 case "(($ac_try" in
17225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226   *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229   (eval "$ac_compile") 2>conftest.er1
17230   ac_status=$?
17231   grep -v '^ *+' conftest.er1 >conftest.err
17232   rm -f conftest.er1
17233   cat conftest.err >&5
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } && {
17236          test -z "$ac_cxx_werror_flag" ||
17237          test ! -s conftest.err
17238        } && test -s conftest.$ac_objext; then
17239   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17245
17246 fi
17247
17248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17249
17250
17251 fi
17252 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17253 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17254     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17255         :; SGICXX=yes
17256     else
17257         :;
17258     fi
17259     ac_ext=c
17260 ac_cpp='$CPP $CPPFLAGS'
17261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17264
17265
17266
17267                 ;;
17268
17269             Linux*)
17270
17271
17272     ac_ext=cpp
17273 ac_cpp='$CXXCPP $CPPFLAGS'
17274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17277
17278     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17279 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17280 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289
17290 int
17291 main ()
17292 {
17293
17294              #ifndef __SUNPRO_CC
17295                 choke me
17296              #endif
17297
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309   (eval "$ac_compile") 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } && {
17316          test -z "$ac_cxx_werror_flag" ||
17317          test ! -s conftest.err
17318        } && test -s conftest.$ac_objext; then
17319   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17325
17326 fi
17327
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329
17330
17331 fi
17332 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17333 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17334     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17335         :; SUNCXX=yes
17336     else
17337         :;
17338     fi
17339     ac_ext=c
17340 ac_cpp='$CPP $CPPFLAGS'
17341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17344
17345
17346
17347                 ;;
17348
17349             HP-UX*)
17350
17351
17352     ac_ext=cpp
17353 ac_cpp='$CXXCPP $CPPFLAGS'
17354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17357
17358     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17359 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17360 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363   cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369
17370 int
17371 main ()
17372 {
17373
17374              #ifndef __HP_aCC
17375                 choke me
17376              #endif
17377
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (ac_try="$ac_compile"
17384 case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389   (eval "$ac_compile") 2>conftest.er1
17390   ac_status=$?
17391   grep -v '^ *+' conftest.er1 >conftest.err
17392   rm -f conftest.er1
17393   cat conftest.err >&5
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } && {
17396          test -z "$ac_cxx_werror_flag" ||
17397          test ! -s conftest.err
17398        } && test -s conftest.$ac_objext; then
17399   bakefile_cv_cxx_compiler___HP_aCC=yes
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404         bakefile_cv_cxx_compiler___HP_aCC=no
17405
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409
17410
17411 fi
17412 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17413 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17414     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17415         :; HPCXX=yes
17416     else
17417         :;
17418     fi
17419     ac_ext=c
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424
17425
17426
17427                 ;;
17428
17429             OSF1)
17430
17431
17432     ac_ext=cpp
17433 ac_cpp='$CXXCPP $CPPFLAGS'
17434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17437
17438     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17439 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17440 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449
17450 int
17451 main ()
17452 {
17453
17454              #ifndef __DECCXX
17455                 choke me
17456              #endif
17457
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext
17463 if { (ac_try="$ac_compile"
17464 case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_compile") 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } && {
17476          test -z "$ac_cxx_werror_flag" ||
17477          test ! -s conftest.err
17478        } && test -s conftest.$ac_objext; then
17479   bakefile_cv_cxx_compiler___DECCXX=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         bakefile_cv_cxx_compiler___DECCXX=no
17485
17486 fi
17487
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489
17490
17491 fi
17492 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17493 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17494     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17495         :; COMPAQCXX=yes
17496     else
17497         :;
17498     fi
17499     ac_ext=c
17500 ac_cpp='$CPP $CPPFLAGS'
17501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504
17505
17506
17507                 ;;
17508
17509             SunOS)
17510
17511
17512     ac_ext=cpp
17513 ac_cpp='$CXXCPP $CPPFLAGS'
17514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17517
17518     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17519 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17520 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529
17530 int
17531 main ()
17532 {
17533
17534              #ifndef __SUNPRO_CC
17535                 choke me
17536              #endif
17537
17538   ;
17539   return 0;
17540 }
17541 _ACEOF
17542 rm -f conftest.$ac_objext
17543 if { (ac_try="$ac_compile"
17544 case "(($ac_try" in
17545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546   *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549   (eval "$ac_compile") 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } && {
17556          test -z "$ac_cxx_werror_flag" ||
17557          test ! -s conftest.err
17558        } && test -s conftest.$ac_objext; then
17559   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17565
17566 fi
17567
17568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569
17570
17571 fi
17572 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17573 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17574     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17575         :; SUNCXX=yes
17576     else
17577         :;
17578     fi
17579     ac_ext=c
17580 ac_cpp='$CPP $CPPFLAGS'
17581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17584
17585
17586
17587                 ;;
17588         esac
17589     fi
17590
17591
17592
17593 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17594     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17595 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17596    { (exit 1); exit 1; }; }
17597 fi
17598
17599 if test "x$SUNCXX" != xyes; then
17600     if test -n "$ac_tool_prefix"; then
17601   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17602 set dummy ${ac_tool_prefix}ar; ac_word=$2
17603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17605 if test "${ac_cv_prog_AR+set}" = set; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608   if test -n "$AR"; then
17609   ac_cv_prog_AR="$AR" # Let the user override the test.
17610 else
17611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17612 for as_dir in $PATH
17613 do
17614   IFS=$as_save_IFS
17615   test -z "$as_dir" && as_dir=.
17616   for ac_exec_ext in '' $ac_executable_extensions; do
17617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17618     ac_cv_prog_AR="${ac_tool_prefix}ar"
17619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17620     break 2
17621   fi
17622 done
17623 done
17624 IFS=$as_save_IFS
17625
17626 fi
17627 fi
17628 AR=$ac_cv_prog_AR
17629 if test -n "$AR"; then
17630   { echo "$as_me:$LINENO: result: $AR" >&5
17631 echo "${ECHO_T}$AR" >&6; }
17632 else
17633   { echo "$as_me:$LINENO: result: no" >&5
17634 echo "${ECHO_T}no" >&6; }
17635 fi
17636
17637
17638 fi
17639 if test -z "$ac_cv_prog_AR"; then
17640   ac_ct_AR=$AR
17641   # Extract the first word of "ar", so it can be a program name with args.
17642 set dummy ar; ac_word=$2
17643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17646   echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648   if test -n "$ac_ct_AR"; then
17649   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17650 else
17651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17652 for as_dir in $PATH
17653 do
17654   IFS=$as_save_IFS
17655   test -z "$as_dir" && as_dir=.
17656   for ac_exec_ext in '' $ac_executable_extensions; do
17657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17658     ac_cv_prog_ac_ct_AR="ar"
17659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17660     break 2
17661   fi
17662 done
17663 done
17664 IFS=$as_save_IFS
17665
17666 fi
17667 fi
17668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17669 if test -n "$ac_ct_AR"; then
17670   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17671 echo "${ECHO_T}$ac_ct_AR" >&6; }
17672 else
17673   { echo "$as_me:$LINENO: result: no" >&5
17674 echo "${ECHO_T}no" >&6; }
17675 fi
17676
17677   if test "x$ac_ct_AR" = x; then
17678     AR=""
17679   else
17680     case $cross_compiling:$ac_tool_warned in
17681 yes:)
17682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17683 whose name does not start with the host triplet.  If you think this
17684 configuration is useful to you, please write to autoconf@gnu.org." >&5
17685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17686 whose name does not start with the host triplet.  If you think this
17687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17688 ac_tool_warned=yes ;;
17689 esac
17690     AR=$ac_ct_AR
17691   fi
17692 else
17693   AR="$ac_cv_prog_AR"
17694 fi
17695
17696     if test "x$AR" = "x" ; then
17697         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17698 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17699    { (exit 1); exit 1; }; }
17700     fi
17701 fi
17702
17703 retest_macosx_linking=no
17704
17705 #if test "$wxUSE_MAC" = 1; then
17706     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17707                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17708             # Implicitly turn on the new --with-macosx-sdk using the default
17709             # SDK which provides the behavior this option has always had.
17710             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17711                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17712 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17713                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17714 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17715                 wxUSE_MACOSX_SDK=yes
17716             fi
17717         else
17718             # Complain to user if he specified an argument to --enable-universal_binary
17719             # and also 1) specified --with-macosx-sdk using the default (yes) or
17720             # 2) specified --with-macosx-sdk using a path or 3) specified
17721             # --without-macosx-sdk (no).
17722             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17723                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17724 See \`config.log' for more details." >&5
17725 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17726 See \`config.log' for more details." >&2;}
17727    { (exit 1); exit 1; }; }
17728             else
17729                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17730                 # special-case the empty string because the below test simply
17731                 # converts "no" to the empty string anyway.
17732                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17733                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17734 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17735             fi
17736         fi
17737                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17738         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17739         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17740         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
17741         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
17742         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17743                                                                                                                 retest_macosx_linking=yes
17744
17745                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17746 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17747         bk_use_pch=no
17748     fi
17749 #fi
17750
17751 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17752     wxUSE_MACOSX_SDK=
17753 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17754     # TODO: Search for most recent SDK and use it.
17755     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17756 fi
17757
17758
17759 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17760     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17761 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17762     if ! test -d "$wxUSE_MACOSX_SDK"; then
17763         { { echo "$as_me:$LINENO: error: not found
17764 See \`config.log' for more details." >&5
17765 echo "$as_me: error: not found
17766 See \`config.log' for more details." >&2;}
17767    { (exit 1); exit 1; }; }
17768     else
17769         { echo "$as_me:$LINENO: result: exists" >&5
17770 echo "${ECHO_T}exists" >&6; }
17771     fi
17772     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17773     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17774     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17775     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17776     retest_macosx_linking=yes
17777             fi
17778
17779 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17780     wxUSE_MACOSX_VERSION_MIN=
17781 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17782     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17783         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17784 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17785
17786         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/'`
17787
17788         # If that failed, try again with the new key
17789         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17790
17791             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/'`
17792
17793         fi
17794
17795         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17796             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17797             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17798 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17799         else
17800             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17801 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17802             wxUSE_MACOSX_VERSION_MIN=
17803         fi
17804     else
17805         wxUSE_MACOSX_VERSION_MIN=
17806     fi
17807 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
17808     if test "$wxUSE_MAC" = 1; then
17809         # otherwise configure stops on leopard for universal_binary
17810         wxUSE_MACOSX_VERSION_MIN=10.4
17811     fi
17812 fi
17813
17814 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17815     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17816     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17817     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17818     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17819     retest_macosx_linking=yes
17820 fi
17821
17822 if test "x$retest_macosx_linking" = "xyes"; then
17823     ac_ext=c
17824 ac_cpp='$CPP $CPPFLAGS'
17825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17828
17829     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17830 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17831     cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h.  */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h.  */
17837
17838 int
17839 main ()
17840 {
17841
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (ac_try="$ac_link"
17848 case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_link") 2>conftest.er1
17854   ac_status=$?
17855   grep -v '^ *+' conftest.er1 >conftest.err
17856   rm -f conftest.er1
17857   cat conftest.err >&5
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && {
17860          test -z "$ac_c_werror_flag" ||
17861          test ! -s conftest.err
17862        } && test -s conftest$ac_exeext &&
17863        $as_test_x conftest$ac_exeext; then
17864   { echo "$as_me:$LINENO: result: yes" >&5
17865 echo "${ECHO_T}yes" >&6; }
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17871 See \`config.log' for more details." >&5
17872 echo "$as_me: error: no.  Try a different SDK
17873 See \`config.log' for more details." >&2;}
17874    { (exit 1); exit 1; }; }; exit 1
17875 fi
17876
17877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17878       conftest$ac_exeext conftest.$ac_ext
17879     ac_ext=c
17880 ac_cpp='$CPP $CPPFLAGS'
17881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17884
17885
17886     ac_ext=cpp
17887 ac_cpp='$CXXCPP $CPPFLAGS'
17888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17891
17892     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17893 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17894     cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900
17901 int
17902 main ()
17903 {
17904
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext conftest$ac_exeext
17910 if { (ac_try="$ac_link"
17911 case "(($ac_try" in
17912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913   *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916   (eval "$ac_link") 2>conftest.er1
17917   ac_status=$?
17918   grep -v '^ *+' conftest.er1 >conftest.err
17919   rm -f conftest.er1
17920   cat conftest.err >&5
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); } && {
17923          test -z "$ac_cxx_werror_flag" ||
17924          test ! -s conftest.err
17925        } && test -s conftest$ac_exeext &&
17926        $as_test_x conftest$ac_exeext; then
17927   { echo "$as_me:$LINENO: result: yes" >&5
17928 echo "${ECHO_T}yes" >&6; }
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17934 See \`config.log' for more details." >&5
17935 echo "$as_me: error: no.  Try a different SDK
17936 See \`config.log' for more details." >&2;}
17937    { (exit 1); exit 1; }; }; exit 1
17938 fi
17939
17940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17941       conftest$ac_exeext conftest.$ac_ext
17942     ac_ext=c
17943 ac_cpp='$CPP $CPPFLAGS'
17944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17947
17948 fi
17949
17950
17951 case "${host}" in
17952
17953                 *-*-darwin* )
17954         INSTALL_PROGRAM="cp -fp"
17955         INSTALL_DATA="cp -fp"
17956         ;;
17957     *)
17958         ;;
17959 esac
17960
17961
17962 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17963     CXXFLAGS="-qunique $CXXFLAGS"
17964 fi
17965
17966 case "${host}" in
17967   powerpc-*-darwin* )
17968     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17969 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17970     cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976
17977 int
17978 main ()
17979 {
17980 #ifndef __POWERPC__
17981         choke me for lack of PowerPC
17982 #endif
17983
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_compile") 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } && {
18002          test -z "$ac_c_werror_flag" ||
18003          test ! -s conftest.err
18004        } && test -s conftest.$ac_objext; then
18005   { echo "$as_me:$LINENO: result: yes" >&5
18006 echo "${ECHO_T}yes" >&6; }
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011         { echo "$as_me:$LINENO: result: no" >&5
18012 echo "${ECHO_T}no" >&6; }
18013         cat >>confdefs.h <<\_ACEOF
18014 #define __POWERPC__ 1
18015 _ACEOF
18016
18017
18018 fi
18019
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021   ;;
18022 esac
18023
18024 case "${host}" in
18025   *-*-darwin* )
18026     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18027 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18028     cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 #include <CoreFoundation/CFBase.h>
18035
18036 int
18037 main ()
18038 {
18039
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext
18045 if { (ac_try="$ac_compile"
18046 case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_compile") 2>conftest.er1
18052   ac_status=$?
18053   grep -v '^ *+' conftest.er1 >conftest.err
18054   rm -f conftest.er1
18055   cat conftest.err >&5
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); } && {
18058          test -z "$ac_c_werror_flag" ||
18059          test ! -s conftest.err
18060        } && test -s conftest.$ac_objext; then
18061   { echo "$as_me:$LINENO: result: yes" >&5
18062 echo "${ECHO_T}yes" >&6; }
18063 else
18064   echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067         { echo "$as_me:$LINENO: result: no" >&5
18068 echo "${ECHO_T}no" >&6; }
18069         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18070 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18071         cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h.  */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h.  */
18077 #define __CF_USE_FRAMEWORK_INCLUDES__
18078 #include <CoreFoundation/CFBase.h>
18079
18080 int
18081 main ()
18082 {
18083
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext
18089 if { (ac_try="$ac_compile"
18090 case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_compile") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } && {
18102          test -z "$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        } && test -s conftest.$ac_objext; then
18105   { echo "$as_me:$LINENO: result: yes" >&5
18106 echo "${ECHO_T}yes" >&6; }
18107                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18113 See \`config.log' for more details." >&5
18114 echo "$as_me: error: no.  CoreFoundation not available.
18115 See \`config.log' for more details." >&2;}
18116    { (exit 1); exit 1; }; }
18117
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121
18122
18123 fi
18124
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126   ;;
18127 esac
18128
18129 wants_win32=0
18130 doesnt_want_win32=0
18131 case "${host}" in
18132   *-*-cygwin*)
18133       if test "$wxUSE_MSW" = 1 ; then
18134         wants_win32=1
18135       else
18136                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18137 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18138 if test "${wx_cv_nocygwin+set}" = set; then
18139   echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141
18142                 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148
18149 int
18150 main ()
18151 {
18152
18153                         #ifdef __MINGW32__
18154                             choke me
18155                         #endif
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   wx_cv_nocygwin=no
18179 else
18180   echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18182
18183         wx_cv_nocygwin=yes
18184
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188
18189
18190 fi
18191 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18192 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18193
18194         if test "$wx_cv_nocygwin" = "yes"; then
18195             wants_win32=1
18196         else
18197             doesnt_want_win32=1
18198         fi
18199       fi
18200       if test "$wants_win32" = 1 ; then
18201         BAKEFILE_FORCE_PLATFORM=win32
18202       fi
18203   ;;
18204   *-*-mingw*)
18205       wants_win32=1
18206   ;;
18207 esac
18208
18209 if test "$wxUSE_WINE" = "yes"; then
18210     wants_win32=1
18211     LDFLAGS_GUI="-mwindows"
18212 fi
18213
18214 if test "$wants_win32" = 1 ; then
18215     USE_UNIX=0
18216     USE_WIN32=1
18217     cat >>confdefs.h <<\_ACEOF
18218 #define __WIN32__ 1
18219 _ACEOF
18220
18221     cat >>confdefs.h <<\_ACEOF
18222 #define __WIN95__ 1
18223 _ACEOF
18224
18225     cat >>confdefs.h <<\_ACEOF
18226 #define __WINDOWS__ 1
18227 _ACEOF
18228
18229     cat >>confdefs.h <<\_ACEOF
18230 #define __GNUWIN32__ 1
18231 _ACEOF
18232
18233     cat >>confdefs.h <<\_ACEOF
18234 #define STRICT 1
18235 _ACEOF
18236
18237 fi
18238 if test "$doesnt_want_win32" = 1 ; then
18239     USE_UNIX=1
18240     USE_WIN32=0
18241 fi
18242
18243 if test "$USE_UNIX" = 1 ; then
18244     wxUSE_UNIX=yes
18245     cat >>confdefs.h <<\_ACEOF
18246 #define __UNIX__ 1
18247 _ACEOF
18248
18249 fi
18250
18251 case "${host}" in
18252   *-pc-os2_emx | *-pc-os2-emx )
18253                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18254                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18255 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18256 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18257   echo $ECHO_N "(cached) $ECHO_C" >&6
18258 else
18259   ac_check_lib_save_LIBS=$LIBS
18260 LIBS="-lcExt  $LIBS"
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h.  */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h.  */
18267
18268 /* Override any GCC internal prototype to avoid an error.
18269    Use char because int might match the return type of a GCC
18270    builtin and then its argument prototype would still apply.  */
18271 #ifdef __cplusplus
18272 extern "C"
18273 #endif
18274 char drand48 ();
18275 int
18276 main ()
18277 {
18278 return drand48 ();
18279   ;
18280   return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_link") 2>conftest.er1
18291   ac_status=$?
18292   grep -v '^ *+' conftest.er1 >conftest.err
18293   rm -f conftest.er1
18294   cat conftest.err >&5
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); } && {
18297          test -z "$ac_c_werror_flag" ||
18298          test ! -s conftest.err
18299        } && test -s conftest$ac_exeext &&
18300        $as_test_x conftest$ac_exeext; then
18301   ac_cv_lib_cExt_drand48=yes
18302 else
18303   echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306         ac_cv_lib_cExt_drand48=no
18307 fi
18308
18309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18310       conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18312 fi
18313 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18314 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18315 if test $ac_cv_lib_cExt_drand48 = yes; then
18316   LIBS="$LIBS -lcExt"
18317 fi
18318
18319       else
18320                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18321       fi
18322                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18323 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18324 if test "${wx_cv_gccversion+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327
18328           if test "$cross_compiling" = yes; then
18329                 wx_cv_gccversion="EMX2"
18330
18331 else
18332   cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338
18339                   #include <stdio.h>
18340
18341                   int main()
18342                   {
18343                       FILE *f=fopen("conftestval", "w");
18344                       if (!f) exit(1);
18345                       fprintf(f,
18346                   #if (__GNUC__ < 3)
18347                               "EMX2"
18348                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18349                               "EMX3"
18350                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18351                               "Innotek5"
18352                   #else
18353                               "Innotek6"
18354                   #endif
18355                       );
18356                       exit(0);
18357                   }
18358
18359 _ACEOF
18360 rm -f conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_link") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371   { (case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_try") 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   wx_cv_gccversion=`cat conftestval`
18381 else
18382   echo "$as_me: program exited with status $ac_status" >&5
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ( exit $ac_status )
18387 wx_cv_gccversion="EMX2"
18388 fi
18389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18390 fi
18391
18392
18393
18394 fi
18395 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18396 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18397       if test "$wx_cv_gccversion" = "EMX2"; then
18398           LIBS="$LIBS -lstdcpp"
18399           LDFLAGS="$LDFLAGS -Zsysv-signals"
18400       else
18401           if test "$wx_cv_gccversion" = "EMX3"; then
18402               LIBS="$LIBS -lstdcxx -lgcc"
18403               LDFLAGS="$LDFLAGS -Zsysv-signals"
18404           else
18405               LIBS="$LIBS -lstdc++"
18406           fi
18407       fi
18408       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18409         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18410 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18411         wxUSE_OMF=yes
18412         enable_omf=yes
18413       fi
18414         ;;
18415   *)
18416
18417       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18418 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18419 if test "${ac_cv_string_strcasecmp+set}" = set; then
18420   echo $ECHO_N "(cached) $ECHO_C" >&6
18421 else
18422
18423           cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429
18430               #include <string.h>
18431
18432 int
18433 main ()
18434 {
18435
18436                   strcasecmp("foo", "bar");
18437
18438   ;
18439   return 0;
18440 }
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18450   ac_status=$?
18451   grep -v '^ *+' conftest.er1 >conftest.err
18452   rm -f conftest.er1
18453   cat conftest.err >&5
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } && {
18456          test -z "$ac_c_werror_flag" ||
18457          test ! -s conftest.err
18458        } && test -s conftest$ac_exeext &&
18459        $as_test_x conftest$ac_exeext; then
18460   ac_cv_string_strcasecmp=yes
18461 else
18462   echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465         ac_cv_string_strcasecmp=no
18466
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18470       conftest$ac_exeext conftest.$ac_ext
18471
18472 fi
18473 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18474 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18475
18476       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18477           cat >>confdefs.h <<\_ACEOF
18478 #define HAVE_STRCASECMP_IN_STRING_H 1
18479 _ACEOF
18480
18481       else
18482           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18483 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18484 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487
18488               cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h.  */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h.  */
18494
18495                   #include <strings.h>
18496
18497 int
18498 main ()
18499 {
18500
18501                       strcasecmp("foo", "bar");
18502
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_link") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } && {
18521          test -z "$ac_c_werror_flag" ||
18522          test ! -s conftest.err
18523        } && test -s conftest$ac_exeext &&
18524        $as_test_x conftest$ac_exeext; then
18525   ac_cv_strings_strcasecmp=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530         ac_cv_strings_strcasecmp=no
18531
18532 fi
18533
18534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18535       conftest$ac_exeext conftest.$ac_ext
18536
18537 fi
18538 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18539 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18540
18541           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18542               cat >>confdefs.h <<\_ACEOF
18543 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18544 _ACEOF
18545
18546           else
18547               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18548 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18549    { (exit 1); exit 1; }; }
18550           fi
18551       fi
18552
18553         ;;
18554 esac
18555
18556
18557 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18559 if test "${ac_cv_header_stdc+set}" = set; then
18560   echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562   cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h.  */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h.  */
18568 #include <stdlib.h>
18569 #include <stdarg.h>
18570 #include <string.h>
18571 #include <float.h>
18572
18573 int
18574 main ()
18575 {
18576
18577   ;
18578   return 0;
18579 }
18580 _ACEOF
18581 rm -f conftest.$ac_objext
18582 if { (ac_try="$ac_compile"
18583 case "(($ac_try" in
18584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585   *) ac_try_echo=$ac_try;;
18586 esac
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588   (eval "$ac_compile") 2>conftest.er1
18589   ac_status=$?
18590   grep -v '^ *+' conftest.er1 >conftest.err
18591   rm -f conftest.er1
18592   cat conftest.err >&5
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); } && {
18595          test -z "$ac_c_werror_flag" ||
18596          test ! -s conftest.err
18597        } && test -s conftest.$ac_objext; then
18598   ac_cv_header_stdc=yes
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603         ac_cv_header_stdc=no
18604 fi
18605
18606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607
18608 if test $ac_cv_header_stdc = yes; then
18609   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18610   cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h.  */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h.  */
18616 #include <string.h>
18617
18618 _ACEOF
18619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18620   $EGREP "memchr" >/dev/null 2>&1; then
18621   :
18622 else
18623   ac_cv_header_stdc=no
18624 fi
18625 rm -f conftest*
18626
18627 fi
18628
18629 if test $ac_cv_header_stdc = yes; then
18630   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18631   cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637 #include <stdlib.h>
18638
18639 _ACEOF
18640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18641   $EGREP "free" >/dev/null 2>&1; then
18642   :
18643 else
18644   ac_cv_header_stdc=no
18645 fi
18646 rm -f conftest*
18647
18648 fi
18649
18650 if test $ac_cv_header_stdc = yes; then
18651   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18652   if test "$cross_compiling" = yes; then
18653   :
18654 else
18655   cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661 #include <ctype.h>
18662 #include <stdlib.h>
18663 #if ((' ' & 0x0FF) == 0x020)
18664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18666 #else
18667 # define ISLOWER(c) \
18668                    (('a' <= (c) && (c) <= 'i') \
18669                      || ('j' <= (c) && (c) <= 'r') \
18670                      || ('s' <= (c) && (c) <= 'z'))
18671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18672 #endif
18673
18674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18675 int
18676 main ()
18677 {
18678   int i;
18679   for (i = 0; i < 256; i++)
18680     if (XOR (islower (i), ISLOWER (i))
18681         || toupper (i) != TOUPPER (i))
18682       return 2;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_link") 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_try") 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; }; then
18706   :
18707 else
18708   echo "$as_me: program exited with status $ac_status" >&5
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712 ( exit $ac_status )
18713 ac_cv_header_stdc=no
18714 fi
18715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18716 fi
18717
18718
18719 fi
18720 fi
18721 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18722 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18723 if test $ac_cv_header_stdc = yes; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define STDC_HEADERS 1
18727 _ACEOF
18728
18729 fi
18730
18731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18742                   inttypes.h stdint.h unistd.h
18743 do
18744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18748   echo $ECHO_N "(cached) $ECHO_C" >&6
18749 else
18750   cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 $ac_includes_default
18757
18758 #include <$ac_header>
18759 _ACEOF
18760 rm -f conftest.$ac_objext
18761 if { (ac_try="$ac_compile"
18762 case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_compile") 2>conftest.er1
18768   ac_status=$?
18769   grep -v '^ *+' conftest.er1 >conftest.err
18770   rm -f conftest.er1
18771   cat conftest.err >&5
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } && {
18774          test -z "$ac_c_werror_flag" ||
18775          test ! -s conftest.err
18776        } && test -s conftest.$ac_objext; then
18777   eval "$as_ac_Header=yes"
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782         eval "$as_ac_Header=no"
18783 fi
18784
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 fi
18787 ac_res=`eval echo '${'$as_ac_Header'}'`
18788                { echo "$as_me:$LINENO: result: $ac_res" >&5
18789 echo "${ECHO_T}$ac_res" >&6; }
18790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18791   cat >>confdefs.h <<_ACEOF
18792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18793 _ACEOF
18794
18795 fi
18796
18797 done
18798
18799
18800
18801
18802 for ac_header in langinfo.h wchar.h
18803 do
18804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816 $ac_includes_default
18817
18818 #include <$ac_header>
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_compile") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } && {
18834          test -z "$ac_c_werror_flag" ||
18835          test ! -s conftest.err
18836        } && test -s conftest.$ac_objext; then
18837   eval "$as_ac_Header=yes"
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842         eval "$as_ac_Header=no"
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846 fi
18847 ac_res=`eval echo '${'$as_ac_Header'}'`
18848                { echo "$as_me:$LINENO: result: $ac_res" >&5
18849 echo "${ECHO_T}$ac_res" >&6; }
18850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18851   cat >>confdefs.h <<_ACEOF
18852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18853 _ACEOF
18854
18855 fi
18856
18857 done
18858
18859
18860 if test "$ac_cv_header_wchar_h" != "yes"; then
18861
18862 for ac_header in wcstr.h
18863 do
18864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876 $ac_includes_default
18877
18878 #include <$ac_header>
18879 _ACEOF
18880 rm -f conftest.$ac_objext
18881 if { (ac_try="$ac_compile"
18882 case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_compile") 2>conftest.er1
18888   ac_status=$?
18889   grep -v '^ *+' conftest.er1 >conftest.err
18890   rm -f conftest.er1
18891   cat conftest.err >&5
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } && {
18894          test -z "$ac_c_werror_flag" ||
18895          test ! -s conftest.err
18896        } && test -s conftest.$ac_objext; then
18897   eval "$as_ac_Header=yes"
18898 else
18899   echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902         eval "$as_ac_Header=no"
18903 fi
18904
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906 fi
18907 ac_res=`eval echo '${'$as_ac_Header'}'`
18908                { echo "$as_me:$LINENO: result: $ac_res" >&5
18909 echo "${ECHO_T}$ac_res" >&6; }
18910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18911   cat >>confdefs.h <<_ACEOF
18912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18913 _ACEOF
18914
18915 fi
18916
18917 done
18918
18919 fi
18920
18921 case "${host}" in
18922   *-pc-os2_emx | *-pc-os2-emx )
18923                   if test $ac_cv_header_langinfo_h = "yes" \
18924                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18925                      -o "$wx_cv_gccversion" = "EMX3" \
18926                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18927           LIBS="$LIBS -lintl"
18928       fi
18929   ;;
18930 esac
18931
18932 if test "$USE_UNIX" = 1 ; then
18933
18934 for ac_header in sys/select.h
18935 do
18936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18940   echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942   cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948 $ac_includes_default
18949
18950 #include <$ac_header>
18951 _ACEOF
18952 rm -f conftest.$ac_objext
18953 if { (ac_try="$ac_compile"
18954 case "(($ac_try" in
18955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956   *) ac_try_echo=$ac_try;;
18957 esac
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959   (eval "$ac_compile") 2>conftest.er1
18960   ac_status=$?
18961   grep -v '^ *+' conftest.er1 >conftest.err
18962   rm -f conftest.er1
18963   cat conftest.err >&5
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); } && {
18966          test -z "$ac_c_werror_flag" ||
18967          test ! -s conftest.err
18968        } && test -s conftest.$ac_objext; then
18969   eval "$as_ac_Header=yes"
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974         eval "$as_ac_Header=no"
18975 fi
18976
18977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978 fi
18979 ac_res=`eval echo '${'$as_ac_Header'}'`
18980                { echo "$as_me:$LINENO: result: $ac_res" >&5
18981 echo "${ECHO_T}$ac_res" >&6; }
18982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18983   cat >>confdefs.h <<_ACEOF
18984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18985 _ACEOF
18986
18987 fi
18988
18989 done
18990
18991 fi
18992
18993
18994 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18995 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18996 if test "${ac_cv_c_const+set}" = set; then
18997   echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005
19006 int
19007 main ()
19008 {
19009 /* FIXME: Include the comments suggested by Paul. */
19010 #ifndef __cplusplus
19011   /* Ultrix mips cc rejects this.  */
19012   typedef int charset[2];
19013   const charset cs;
19014   /* SunOS 4.1.1 cc rejects this.  */
19015   char const *const *pcpcc;
19016   char **ppc;
19017   /* NEC SVR4.0.2 mips cc rejects this.  */
19018   struct point {int x, y;};
19019   static struct point const zero = {0,0};
19020   /* AIX XL C 1.02.0.0 rejects this.
19021      It does not let you subtract one const X* pointer from another in
19022      an arm of an if-expression whose if-part is not a constant
19023      expression */
19024   const char *g = "string";
19025   pcpcc = &g + (g ? g-g : 0);
19026   /* HPUX 7.0 cc rejects these. */
19027   ++pcpcc;
19028   ppc = (char**) pcpcc;
19029   pcpcc = (char const *const *) ppc;
19030   { /* SCO 3.2v4 cc rejects this.  */
19031     char *t;
19032     char const *s = 0 ? (char *) 0 : (char const *) 0;
19033
19034     *t++ = 0;
19035     if (s) return 0;
19036   }
19037   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19038     int x[] = {25, 17};
19039     const int *foo = &x[0];
19040     ++foo;
19041   }
19042   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19043     typedef const int *iptr;
19044     iptr p = 0;
19045     ++p;
19046   }
19047   { /* AIX XL C 1.02.0.0 rejects this saying
19048        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19049     struct s { int j; const int *ap[3]; };
19050     struct s *b; b->j = 5;
19051   }
19052   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19053     const int foo = 10;
19054     if (!foo) return 0;
19055   }
19056   return !cs[0] && !zero.x;
19057 #endif
19058
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 rm -f conftest.$ac_objext
19064 if { (ac_try="$ac_compile"
19065 case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_compile") 2>conftest.er1
19071   ac_status=$?
19072   grep -v '^ *+' conftest.er1 >conftest.err
19073   rm -f conftest.er1
19074   cat conftest.err >&5
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); } && {
19077          test -z "$ac_c_werror_flag" ||
19078          test ! -s conftest.err
19079        } && test -s conftest.$ac_objext; then
19080   ac_cv_c_const=yes
19081 else
19082   echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085         ac_cv_c_const=no
19086 fi
19087
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 fi
19090 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19091 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19092 if test $ac_cv_c_const = no; then
19093
19094 cat >>confdefs.h <<\_ACEOF
19095 #define const
19096 _ACEOF
19097
19098 fi
19099
19100 { echo "$as_me:$LINENO: checking for inline" >&5
19101 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19102 if test "${ac_cv_c_inline+set}" = set; then
19103   echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105   ac_cv_c_inline=no
19106 for ac_kw in inline __inline__ __inline; do
19107   cat >conftest.$ac_ext <<_ACEOF
19108 /* confdefs.h.  */
19109 _ACEOF
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h.  */
19113 #ifndef __cplusplus
19114 typedef int foo_t;
19115 static $ac_kw foo_t static_foo () {return 0; }
19116 $ac_kw foo_t foo () {return 0; }
19117 #endif
19118
19119 _ACEOF
19120 rm -f conftest.$ac_objext
19121 if { (ac_try="$ac_compile"
19122 case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_compile") 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } && {
19134          test -z "$ac_c_werror_flag" ||
19135          test ! -s conftest.err
19136        } && test -s conftest.$ac_objext; then
19137   ac_cv_c_inline=$ac_kw
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19146   test "$ac_cv_c_inline" != no && break
19147 done
19148
19149 fi
19150 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19151 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19152
19153
19154 case $ac_cv_c_inline in
19155   inline | yes) ;;
19156   *)
19157     case $ac_cv_c_inline in
19158       no) ac_val=;;
19159       *) ac_val=$ac_cv_c_inline;;
19160     esac
19161     cat >>confdefs.h <<_ACEOF
19162 #ifndef __cplusplus
19163 #define inline $ac_val
19164 #endif
19165 _ACEOF
19166     ;;
19167 esac
19168
19169
19170 { echo "$as_me:$LINENO: checking for short" >&5
19171 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19172 if test "${ac_cv_type_short+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 $ac_includes_default
19182 typedef short ac__type_new_;
19183 int
19184 main ()
19185 {
19186 if ((ac__type_new_ *) 0)
19187   return 0;
19188 if (sizeof (ac__type_new_))
19189   return 0;
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext
19195 if { (ac_try="$ac_compile"
19196 case "(($ac_try" in
19197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198   *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201   (eval "$ac_compile") 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } && {
19208          test -z "$ac_c_werror_flag" ||
19209          test ! -s conftest.err
19210        } && test -s conftest.$ac_objext; then
19211   ac_cv_type_short=yes
19212 else
19213   echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216         ac_cv_type_short=no
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 fi
19221 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19222 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19223
19224 # The cast to long int works around a bug in the HP C Compiler
19225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19227 # This bug is HP SR number 8606223364.
19228 { echo "$as_me:$LINENO: checking size of short" >&5
19229 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19230 if test "${ac_cv_sizeof_short+set}" = set; then
19231   echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233   if test "$cross_compiling" = yes; then
19234   # Depending upon the size, compute the lo and hi bounds.
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241 $ac_includes_default
19242    typedef short ac__type_sizeof_;
19243 int
19244 main ()
19245 {
19246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19247 test_array [0] = 0
19248
19249   ;
19250   return 0;
19251 }
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257   *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260   (eval "$ac_compile") 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } && {
19267          test -z "$ac_c_werror_flag" ||
19268          test ! -s conftest.err
19269        } && test -s conftest.$ac_objext; then
19270   ac_lo=0 ac_mid=0
19271   while :; do
19272     cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h.  */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h.  */
19278 $ac_includes_default
19279    typedef short ac__type_sizeof_;
19280 int
19281 main ()
19282 {
19283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19284 test_array [0] = 0
19285
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (ac_try="$ac_compile"
19292 case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_compile") 2>conftest.er1
19298   ac_status=$?
19299   grep -v '^ *+' conftest.er1 >conftest.err
19300   rm -f conftest.er1
19301   cat conftest.err >&5
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } && {
19304          test -z "$ac_c_werror_flag" ||
19305          test ! -s conftest.err
19306        } && test -s conftest.$ac_objext; then
19307   ac_hi=$ac_mid; break
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312         ac_lo=`expr $ac_mid + 1`
19313                         if test $ac_lo -le $ac_mid; then
19314                           ac_lo= ac_hi=
19315                           break
19316                         fi
19317                         ac_mid=`expr 2 '*' $ac_mid + 1`
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321   done
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326         cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h.  */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h.  */
19332 $ac_includes_default
19333    typedef short ac__type_sizeof_;
19334 int
19335 main ()
19336 {
19337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19338 test_array [0] = 0
19339
19340   ;
19341   return 0;
19342 }
19343 _ACEOF
19344 rm -f conftest.$ac_objext
19345 if { (ac_try="$ac_compile"
19346 case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_compile") 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } && {
19358          test -z "$ac_c_werror_flag" ||
19359          test ! -s conftest.err
19360        } && test -s conftest.$ac_objext; then
19361   ac_hi=-1 ac_mid=-1
19362   while :; do
19363     cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369 $ac_includes_default
19370    typedef short ac__type_sizeof_;
19371 int
19372 main ()
19373 {
19374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19375 test_array [0] = 0
19376
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 rm -f conftest.$ac_objext
19382 if { (ac_try="$ac_compile"
19383 case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_compile") 2>conftest.er1
19389   ac_status=$?
19390   grep -v '^ *+' conftest.er1 >conftest.err
19391   rm -f conftest.er1
19392   cat conftest.err >&5
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); } && {
19395          test -z "$ac_c_werror_flag" ||
19396          test ! -s conftest.err
19397        } && test -s conftest.$ac_objext; then
19398   ac_lo=$ac_mid; break
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403         ac_hi=`expr '(' $ac_mid ')' - 1`
19404                         if test $ac_mid -le $ac_hi; then
19405                           ac_lo= ac_hi=
19406                           break
19407                         fi
19408                         ac_mid=`expr 2 '*' $ac_mid`
19409 fi
19410
19411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19412   done
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417         ac_lo= ac_hi=
19418 fi
19419
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 fi
19422
19423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 # Binary search between lo and hi bounds.
19425 while test "x$ac_lo" != "x$ac_hi"; do
19426   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19427   cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 $ac_includes_default
19434    typedef short ac__type_sizeof_;
19435 int
19436 main ()
19437 {
19438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19439 test_array [0] = 0
19440
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449   *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452   (eval "$ac_compile") 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } && {
19459          test -z "$ac_c_werror_flag" ||
19460          test ! -s conftest.err
19461        } && test -s conftest.$ac_objext; then
19462   ac_hi=$ac_mid
19463 else
19464   echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467         ac_lo=`expr '(' $ac_mid ')' + 1`
19468 fi
19469
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471 done
19472 case $ac_lo in
19473 ?*) ac_cv_sizeof_short=$ac_lo;;
19474 '') if test "$ac_cv_type_short" = yes; then
19475      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19476 See \`config.log' for more details." >&5
19477 echo "$as_me: error: cannot compute sizeof (short)
19478 See \`config.log' for more details." >&2;}
19479    { (exit 77); exit 77; }; }
19480    else
19481      ac_cv_sizeof_short=0
19482    fi ;;
19483 esac
19484 else
19485   cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h.  */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h.  */
19491 $ac_includes_default
19492    typedef short ac__type_sizeof_;
19493 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19494 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19495 #include <stdio.h>
19496 #include <stdlib.h>
19497 int
19498 main ()
19499 {
19500
19501   FILE *f = fopen ("conftest.val", "w");
19502   if (! f)
19503     return 1;
19504   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19505     {
19506       long int i = longval ();
19507       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19508         return 1;
19509       fprintf (f, "%ld\n", i);
19510     }
19511   else
19512     {
19513       unsigned long int i = ulongval ();
19514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19515         return 1;
19516       fprintf (f, "%lu\n", i);
19517     }
19518   return ferror (f) || fclose (f) != 0;
19519
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 rm -f conftest$ac_exeext
19525 if { (ac_try="$ac_link"
19526 case "(($ac_try" in
19527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528   *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531   (eval "$ac_link") 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19535   { (case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_try") 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; }; then
19544   ac_cv_sizeof_short=`cat conftest.val`
19545 else
19546   echo "$as_me: program exited with status $ac_status" >&5
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ( exit $ac_status )
19551 if test "$ac_cv_type_short" = yes; then
19552      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19553 See \`config.log' for more details." >&5
19554 echo "$as_me: error: cannot compute sizeof (short)
19555 See \`config.log' for more details." >&2;}
19556    { (exit 77); exit 77; }; }
19557    else
19558      ac_cv_sizeof_short=0
19559    fi
19560 fi
19561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19562 fi
19563 rm -f conftest.val
19564 fi
19565 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19566 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19567
19568
19569
19570 cat >>confdefs.h <<_ACEOF
19571 #define SIZEOF_SHORT $ac_cv_sizeof_short
19572 _ACEOF
19573
19574
19575 { echo "$as_me:$LINENO: checking for void *" >&5
19576 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19577 if test "${ac_cv_type_void_p+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 $ac_includes_default
19587 typedef void * ac__type_new_;
19588 int
19589 main ()
19590 {
19591 if ((ac__type_new_ *) 0)
19592   return 0;
19593 if (sizeof (ac__type_new_))
19594   return 0;
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (ac_try="$ac_compile"
19601 case "(($ac_try" in
19602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603   *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606   (eval "$ac_compile") 2>conftest.er1
19607   ac_status=$?
19608   grep -v '^ *+' conftest.er1 >conftest.err
19609   rm -f conftest.er1
19610   cat conftest.err >&5
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); } && {
19613          test -z "$ac_c_werror_flag" ||
19614          test ! -s conftest.err
19615        } && test -s conftest.$ac_objext; then
19616   ac_cv_type_void_p=yes
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621         ac_cv_type_void_p=no
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625 fi
19626 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19627 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19628
19629 # The cast to long int works around a bug in the HP C Compiler
19630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19632 # This bug is HP SR number 8606223364.
19633 { echo "$as_me:$LINENO: checking size of void *" >&5
19634 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19635 if test "${ac_cv_sizeof_void_p+set}" = set; then
19636   echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638   if test "$cross_compiling" = yes; then
19639   # Depending upon the size, compute the lo and hi bounds.
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h.  */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h.  */
19646 $ac_includes_default
19647    typedef void * ac__type_sizeof_;
19648 int
19649 main ()
19650 {
19651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19652 test_array [0] = 0
19653
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_compile") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } && {
19672          test -z "$ac_c_werror_flag" ||
19673          test ! -s conftest.err
19674        } && test -s conftest.$ac_objext; then
19675   ac_lo=0 ac_mid=0
19676   while :; do
19677     cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683 $ac_includes_default
19684    typedef void * ac__type_sizeof_;
19685 int
19686 main ()
19687 {
19688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19689 test_array [0] = 0
19690
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699   *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702   (eval "$ac_compile") 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } && {
19709          test -z "$ac_c_werror_flag" ||
19710          test ! -s conftest.err
19711        } && test -s conftest.$ac_objext; then
19712   ac_hi=$ac_mid; break
19713 else
19714   echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717         ac_lo=`expr $ac_mid + 1`
19718                         if test $ac_lo -le $ac_mid; then
19719                           ac_lo= ac_hi=
19720                           break
19721                         fi
19722                         ac_mid=`expr 2 '*' $ac_mid + 1`
19723 fi
19724
19725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19726   done
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731         cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 $ac_includes_default
19738    typedef void * ac__type_sizeof_;
19739 int
19740 main ()
19741 {
19742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19743 test_array [0] = 0
19744
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753   *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756   (eval "$ac_compile") 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } && {
19763          test -z "$ac_c_werror_flag" ||
19764          test ! -s conftest.err
19765        } && test -s conftest.$ac_objext; then
19766   ac_hi=-1 ac_mid=-1
19767   while :; do
19768     cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 $ac_includes_default
19775    typedef void * ac__type_sizeof_;
19776 int
19777 main ()
19778 {
19779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19780 test_array [0] = 0
19781
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (ac_try="$ac_compile"
19788 case "(($ac_try" in
19789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790   *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793   (eval "$ac_compile") 2>conftest.er1
19794   ac_status=$?
19795   grep -v '^ *+' conftest.er1 >conftest.err
19796   rm -f conftest.er1
19797   cat conftest.err >&5
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } && {
19800          test -z "$ac_c_werror_flag" ||
19801          test ! -s conftest.err
19802        } && test -s conftest.$ac_objext; then
19803   ac_lo=$ac_mid; break
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808         ac_hi=`expr '(' $ac_mid ')' - 1`
19809                         if test $ac_mid -le $ac_hi; then
19810                           ac_lo= ac_hi=
19811                           break
19812                         fi
19813                         ac_mid=`expr 2 '*' $ac_mid`
19814 fi
19815
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817   done
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         ac_lo= ac_hi=
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 # Binary search between lo and hi bounds.
19830 while test "x$ac_lo" != "x$ac_hi"; do
19831   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19832   cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 $ac_includes_default
19839    typedef void * ac__type_sizeof_;
19840 int
19841 main ()
19842 {
19843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19844 test_array [0] = 0
19845
19846   ;
19847   return 0;
19848 }
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (ac_try="$ac_compile"
19852 case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_compile") 2>conftest.er1
19858   ac_status=$?
19859   grep -v '^ *+' conftest.er1 >conftest.err
19860   rm -f conftest.er1
19861   cat conftest.err >&5
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); } && {
19864          test -z "$ac_c_werror_flag" ||
19865          test ! -s conftest.err
19866        } && test -s conftest.$ac_objext; then
19867   ac_hi=$ac_mid
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872         ac_lo=`expr '(' $ac_mid ')' + 1`
19873 fi
19874
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876 done
19877 case $ac_lo in
19878 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19879 '') if test "$ac_cv_type_void_p" = yes; then
19880      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19881 See \`config.log' for more details." >&5
19882 echo "$as_me: error: cannot compute sizeof (void *)
19883 See \`config.log' for more details." >&2;}
19884    { (exit 77); exit 77; }; }
19885    else
19886      ac_cv_sizeof_void_p=0
19887    fi ;;
19888 esac
19889 else
19890   cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h.  */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h.  */
19896 $ac_includes_default
19897    typedef void * ac__type_sizeof_;
19898 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19899 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19900 #include <stdio.h>
19901 #include <stdlib.h>
19902 int
19903 main ()
19904 {
19905
19906   FILE *f = fopen ("conftest.val", "w");
19907   if (! f)
19908     return 1;
19909   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19910     {
19911       long int i = longval ();
19912       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19913         return 1;
19914       fprintf (f, "%ld\n", i);
19915     }
19916   else
19917     {
19918       unsigned long int i = ulongval ();
19919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19920         return 1;
19921       fprintf (f, "%lu\n", i);
19922     }
19923   return ferror (f) || fclose (f) != 0;
19924
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933   *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936   (eval "$ac_link") 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19940   { (case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945   (eval "$ac_try") 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_cv_sizeof_void_p=`cat conftest.val`
19950 else
19951   echo "$as_me: program exited with status $ac_status" >&5
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19954
19955 ( exit $ac_status )
19956 if test "$ac_cv_type_void_p" = yes; then
19957      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19958 See \`config.log' for more details." >&5
19959 echo "$as_me: error: cannot compute sizeof (void *)
19960 See \`config.log' for more details." >&2;}
19961    { (exit 77); exit 77; }; }
19962    else
19963      ac_cv_sizeof_void_p=0
19964    fi
19965 fi
19966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19967 fi
19968 rm -f conftest.val
19969 fi
19970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19971 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
19972
19973
19974
19975 cat >>confdefs.h <<_ACEOF
19976 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19977 _ACEOF
19978
19979
19980 { echo "$as_me:$LINENO: checking for int" >&5
19981 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19982 if test "${ac_cv_type_int+set}" = set; then
19983   echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985   cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 $ac_includes_default
19992 typedef int ac__type_new_;
19993 int
19994 main ()
19995 {
19996 if ((ac__type_new_ *) 0)
19997   return 0;
19998 if (sizeof (ac__type_new_))
19999   return 0;
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (ac_try="$ac_compile"
20006 case "(($ac_try" in
20007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008   *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011   (eval "$ac_compile") 2>conftest.er1
20012   ac_status=$?
20013   grep -v '^ *+' conftest.er1 >conftest.err
20014   rm -f conftest.er1
20015   cat conftest.err >&5
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); } && {
20018          test -z "$ac_c_werror_flag" ||
20019          test ! -s conftest.err
20020        } && test -s conftest.$ac_objext; then
20021   ac_cv_type_int=yes
20022 else
20023   echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026         ac_cv_type_int=no
20027 fi
20028
20029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030 fi
20031 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20032 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20033
20034 # The cast to long int works around a bug in the HP C Compiler
20035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20037 # This bug is HP SR number 8606223364.
20038 { echo "$as_me:$LINENO: checking size of int" >&5
20039 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20040 if test "${ac_cv_sizeof_int+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   if test "$cross_compiling" = yes; then
20044   # Depending upon the size, compute the lo and hi bounds.
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 $ac_includes_default
20052    typedef int ac__type_sizeof_;
20053 int
20054 main ()
20055 {
20056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20057 test_array [0] = 0
20058
20059   ;
20060   return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067   *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070   (eval "$ac_compile") 2>conftest.er1
20071   ac_status=$?
20072   grep -v '^ *+' conftest.er1 >conftest.err
20073   rm -f conftest.er1
20074   cat conftest.err >&5
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } && {
20077          test -z "$ac_c_werror_flag" ||
20078          test ! -s conftest.err
20079        } && test -s conftest.$ac_objext; then
20080   ac_lo=0 ac_mid=0
20081   while :; do
20082     cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088 $ac_includes_default
20089    typedef int ac__type_sizeof_;
20090 int
20091 main ()
20092 {
20093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20094 test_array [0] = 0
20095
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (ac_try="$ac_compile"
20102 case "(($ac_try" in
20103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104   *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107   (eval "$ac_compile") 2>conftest.er1
20108   ac_status=$?
20109   grep -v '^ *+' conftest.er1 >conftest.err
20110   rm -f conftest.er1
20111   cat conftest.err >&5
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } && {
20114          test -z "$ac_c_werror_flag" ||
20115          test ! -s conftest.err
20116        } && test -s conftest.$ac_objext; then
20117   ac_hi=$ac_mid; break
20118 else
20119   echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122         ac_lo=`expr $ac_mid + 1`
20123                         if test $ac_lo -le $ac_mid; then
20124                           ac_lo= ac_hi=
20125                           break
20126                         fi
20127                         ac_mid=`expr 2 '*' $ac_mid + 1`
20128 fi
20129
20130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131   done
20132 else
20133   echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20135
20136         cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h.  */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h.  */
20142 $ac_includes_default
20143    typedef int ac__type_sizeof_;
20144 int
20145 main ()
20146 {
20147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20148 test_array [0] = 0
20149
20150   ;
20151   return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_compile") 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } && {
20168          test -z "$ac_c_werror_flag" ||
20169          test ! -s conftest.err
20170        } && test -s conftest.$ac_objext; then
20171   ac_hi=-1 ac_mid=-1
20172   while :; do
20173     cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h.  */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h.  */
20179 $ac_includes_default
20180    typedef int ac__type_sizeof_;
20181 int
20182 main ()
20183 {
20184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20185 test_array [0] = 0
20186
20187   ;
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext
20192 if { (ac_try="$ac_compile"
20193 case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_compile") 2>conftest.er1
20199   ac_status=$?
20200   grep -v '^ *+' conftest.er1 >conftest.err
20201   rm -f conftest.er1
20202   cat conftest.err >&5
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && {
20205          test -z "$ac_c_werror_flag" ||
20206          test ! -s conftest.err
20207        } && test -s conftest.$ac_objext; then
20208   ac_lo=$ac_mid; break
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213         ac_hi=`expr '(' $ac_mid ')' - 1`
20214                         if test $ac_mid -le $ac_hi; then
20215                           ac_lo= ac_hi=
20216                           break
20217                         fi
20218                         ac_mid=`expr 2 '*' $ac_mid`
20219 fi
20220
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222   done
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227         ac_lo= ac_hi=
20228 fi
20229
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 fi
20232
20233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20234 # Binary search between lo and hi bounds.
20235 while test "x$ac_lo" != "x$ac_hi"; do
20236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20237   cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 $ac_includes_default
20244    typedef int ac__type_sizeof_;
20245 int
20246 main ()
20247 {
20248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20249 test_array [0] = 0
20250
20251   ;
20252   return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (ac_try="$ac_compile"
20257 case "(($ac_try" in
20258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259   *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262   (eval "$ac_compile") 2>conftest.er1
20263   ac_status=$?
20264   grep -v '^ *+' conftest.er1 >conftest.err
20265   rm -f conftest.er1
20266   cat conftest.err >&5
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); } && {
20269          test -z "$ac_c_werror_flag" ||
20270          test ! -s conftest.err
20271        } && test -s conftest.$ac_objext; then
20272   ac_hi=$ac_mid
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277         ac_lo=`expr '(' $ac_mid ')' + 1`
20278 fi
20279
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 done
20282 case $ac_lo in
20283 ?*) ac_cv_sizeof_int=$ac_lo;;
20284 '') if test "$ac_cv_type_int" = yes; then
20285      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20286 See \`config.log' for more details." >&5
20287 echo "$as_me: error: cannot compute sizeof (int)
20288 See \`config.log' for more details." >&2;}
20289    { (exit 77); exit 77; }; }
20290    else
20291      ac_cv_sizeof_int=0
20292    fi ;;
20293 esac
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301 $ac_includes_default
20302    typedef int ac__type_sizeof_;
20303 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20304 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20305 #include <stdio.h>
20306 #include <stdlib.h>
20307 int
20308 main ()
20309 {
20310
20311   FILE *f = fopen ("conftest.val", "w");
20312   if (! f)
20313     return 1;
20314   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20315     {
20316       long int i = longval ();
20317       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20318         return 1;
20319       fprintf (f, "%ld\n", i);
20320     }
20321   else
20322     {
20323       unsigned long int i = ulongval ();
20324       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20325         return 1;
20326       fprintf (f, "%lu\n", i);
20327     }
20328   return ferror (f) || fclose (f) != 0;
20329
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest$ac_exeext
20335 if { (ac_try="$ac_link"
20336 case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_link") 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20345   { (case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_try") 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; }; then
20354   ac_cv_sizeof_int=`cat conftest.val`
20355 else
20356   echo "$as_me: program exited with status $ac_status" >&5
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 ( exit $ac_status )
20361 if test "$ac_cv_type_int" = yes; then
20362      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20363 See \`config.log' for more details." >&5
20364 echo "$as_me: error: cannot compute sizeof (int)
20365 See \`config.log' for more details." >&2;}
20366    { (exit 77); exit 77; }; }
20367    else
20368      ac_cv_sizeof_int=0
20369    fi
20370 fi
20371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20372 fi
20373 rm -f conftest.val
20374 fi
20375 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20376 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20377
20378
20379
20380 cat >>confdefs.h <<_ACEOF
20381 #define SIZEOF_INT $ac_cv_sizeof_int
20382 _ACEOF
20383
20384
20385 { echo "$as_me:$LINENO: checking for long" >&5
20386 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20387 if test "${ac_cv_type_long+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390   cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 $ac_includes_default
20397 typedef long ac__type_new_;
20398 int
20399 main ()
20400 {
20401 if ((ac__type_new_ *) 0)
20402   return 0;
20403 if (sizeof (ac__type_new_))
20404   return 0;
20405   ;
20406   return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_compile") 2>conftest.er1
20417   ac_status=$?
20418   grep -v '^ *+' conftest.er1 >conftest.err
20419   rm -f conftest.er1
20420   cat conftest.err >&5
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } && {
20423          test -z "$ac_c_werror_flag" ||
20424          test ! -s conftest.err
20425        } && test -s conftest.$ac_objext; then
20426   ac_cv_type_long=yes
20427 else
20428   echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431         ac_cv_type_long=no
20432 fi
20433
20434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 fi
20436 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20437 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20438
20439 # The cast to long int works around a bug in the HP C Compiler
20440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20442 # This bug is HP SR number 8606223364.
20443 { echo "$as_me:$LINENO: checking size of long" >&5
20444 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20445 if test "${ac_cv_sizeof_long+set}" = set; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   if test "$cross_compiling" = yes; then
20449   # Depending upon the size, compute the lo and hi bounds.
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 $ac_includes_default
20457    typedef long ac__type_sizeof_;
20458 int
20459 main ()
20460 {
20461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20462 test_array [0] = 0
20463
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext
20469 if { (ac_try="$ac_compile"
20470 case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_compile") 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } && {
20482          test -z "$ac_c_werror_flag" ||
20483          test ! -s conftest.err
20484        } && test -s conftest.$ac_objext; then
20485   ac_lo=0 ac_mid=0
20486   while :; do
20487     cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 $ac_includes_default
20494    typedef long ac__type_sizeof_;
20495 int
20496 main ()
20497 {
20498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20499 test_array [0] = 0
20500
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_compile") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && {
20519          test -z "$ac_c_werror_flag" ||
20520          test ! -s conftest.err
20521        } && test -s conftest.$ac_objext; then
20522   ac_hi=$ac_mid; break
20523 else
20524   echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527         ac_lo=`expr $ac_mid + 1`
20528                         if test $ac_lo -le $ac_mid; then
20529                           ac_lo= ac_hi=
20530                           break
20531                         fi
20532                         ac_mid=`expr 2 '*' $ac_mid + 1`
20533 fi
20534
20535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536   done
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541         cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547 $ac_includes_default
20548    typedef long ac__type_sizeof_;
20549 int
20550 main ()
20551 {
20552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20553 test_array [0] = 0
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   ac_hi=-1 ac_mid=-1
20577   while :; do
20578     cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584 $ac_includes_default
20585    typedef long ac__type_sizeof_;
20586 int
20587 main ()
20588 {
20589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20590 test_array [0] = 0
20591
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603   (eval "$ac_compile") 2>conftest.er1
20604   ac_status=$?
20605   grep -v '^ *+' conftest.er1 >conftest.err
20606   rm -f conftest.er1
20607   cat conftest.err >&5
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); } && {
20610          test -z "$ac_c_werror_flag" ||
20611          test ! -s conftest.err
20612        } && test -s conftest.$ac_objext; then
20613   ac_lo=$ac_mid; break
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618         ac_hi=`expr '(' $ac_mid ')' - 1`
20619                         if test $ac_mid -le $ac_hi; then
20620                           ac_lo= ac_hi=
20621                           break
20622                         fi
20623                         ac_mid=`expr 2 '*' $ac_mid`
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627   done
20628 else
20629   echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632         ac_lo= ac_hi=
20633 fi
20634
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 fi
20637
20638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20639 # Binary search between lo and hi bounds.
20640 while test "x$ac_lo" != "x$ac_hi"; do
20641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20642   cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 $ac_includes_default
20649    typedef long ac__type_sizeof_;
20650 int
20651 main ()
20652 {
20653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20654 test_array [0] = 0
20655
20656   ;
20657   return 0;
20658 }
20659 _ACEOF
20660 rm -f conftest.$ac_objext
20661 if { (ac_try="$ac_compile"
20662 case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_compile") 2>conftest.er1
20668   ac_status=$?
20669   grep -v '^ *+' conftest.er1 >conftest.err
20670   rm -f conftest.er1
20671   cat conftest.err >&5
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } && {
20674          test -z "$ac_c_werror_flag" ||
20675          test ! -s conftest.err
20676        } && test -s conftest.$ac_objext; then
20677   ac_hi=$ac_mid
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682         ac_lo=`expr '(' $ac_mid ')' + 1`
20683 fi
20684
20685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686 done
20687 case $ac_lo in
20688 ?*) ac_cv_sizeof_long=$ac_lo;;
20689 '') if test "$ac_cv_type_long" = yes; then
20690      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20691 See \`config.log' for more details." >&5
20692 echo "$as_me: error: cannot compute sizeof (long)
20693 See \`config.log' for more details." >&2;}
20694    { (exit 77); exit 77; }; }
20695    else
20696      ac_cv_sizeof_long=0
20697    fi ;;
20698 esac
20699 else
20700   cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 $ac_includes_default
20707    typedef long ac__type_sizeof_;
20708 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20709 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20710 #include <stdio.h>
20711 #include <stdlib.h>
20712 int
20713 main ()
20714 {
20715
20716   FILE *f = fopen ("conftest.val", "w");
20717   if (! f)
20718     return 1;
20719   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20720     {
20721       long int i = longval ();
20722       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20723         return 1;
20724       fprintf (f, "%ld\n", i);
20725     }
20726   else
20727     {
20728       unsigned long int i = ulongval ();
20729       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20730         return 1;
20731       fprintf (f, "%lu\n", i);
20732     }
20733   return ferror (f) || fclose (f) != 0;
20734
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_link") 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20750   { (case "(($ac_try" in
20751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752   *) ac_try_echo=$ac_try;;
20753 esac
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755   (eval "$ac_try") 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; }; then
20759   ac_cv_sizeof_long=`cat conftest.val`
20760 else
20761   echo "$as_me: program exited with status $ac_status" >&5
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ( exit $ac_status )
20766 if test "$ac_cv_type_long" = yes; then
20767      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20768 See \`config.log' for more details." >&5
20769 echo "$as_me: error: cannot compute sizeof (long)
20770 See \`config.log' for more details." >&2;}
20771    { (exit 77); exit 77; }; }
20772    else
20773      ac_cv_sizeof_long=0
20774    fi
20775 fi
20776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20777 fi
20778 rm -f conftest.val
20779 fi
20780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20781 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20782
20783
20784
20785 cat >>confdefs.h <<_ACEOF
20786 #define SIZEOF_LONG $ac_cv_sizeof_long
20787 _ACEOF
20788
20789
20790 { echo "$as_me:$LINENO: checking for size_t" >&5
20791 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20792 if test "${ac_cv_type_size_t+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 $ac_includes_default
20802 typedef size_t ac__type_new_;
20803 int
20804 main ()
20805 {
20806 if ((ac__type_new_ *) 0)
20807   return 0;
20808 if (sizeof (ac__type_new_))
20809   return 0;
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (ac_try="$ac_compile"
20816 case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_compile") 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } && {
20828          test -z "$ac_c_werror_flag" ||
20829          test ! -s conftest.err
20830        } && test -s conftest.$ac_objext; then
20831   ac_cv_type_size_t=yes
20832 else
20833   echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836         ac_cv_type_size_t=no
20837 fi
20838
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 fi
20841 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20842 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20843
20844 # The cast to long int works around a bug in the HP C Compiler
20845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20847 # This bug is HP SR number 8606223364.
20848 { echo "$as_me:$LINENO: checking size of size_t" >&5
20849 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20850 if test "${ac_cv_sizeof_size_t+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853   if test "$cross_compiling" = yes; then
20854   # Depending upon the size, compute the lo and hi bounds.
20855 cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 $ac_includes_default
20862    typedef size_t ac__type_sizeof_;
20863 int
20864 main ()
20865 {
20866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20867 test_array [0] = 0
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest.$ac_objext; then
20890   ac_lo=0 ac_mid=0
20891   while :; do
20892     cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h.  */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h.  */
20898 $ac_includes_default
20899    typedef size_t ac__type_sizeof_;
20900 int
20901 main ()
20902 {
20903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20904 test_array [0] = 0
20905
20906   ;
20907   return 0;
20908 }
20909 _ACEOF
20910 rm -f conftest.$ac_objext
20911 if { (ac_try="$ac_compile"
20912 case "(($ac_try" in
20913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914   *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917   (eval "$ac_compile") 2>conftest.er1
20918   ac_status=$?
20919   grep -v '^ *+' conftest.er1 >conftest.err
20920   rm -f conftest.er1
20921   cat conftest.err >&5
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); } && {
20924          test -z "$ac_c_werror_flag" ||
20925          test ! -s conftest.err
20926        } && test -s conftest.$ac_objext; then
20927   ac_hi=$ac_mid; break
20928 else
20929   echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932         ac_lo=`expr $ac_mid + 1`
20933                         if test $ac_lo -le $ac_mid; then
20934                           ac_lo= ac_hi=
20935                           break
20936                         fi
20937                         ac_mid=`expr 2 '*' $ac_mid + 1`
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941   done
20942 else
20943   echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946         cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 $ac_includes_default
20953    typedef size_t ac__type_sizeof_;
20954 int
20955 main ()
20956 {
20957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20958 test_array [0] = 0
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } && {
20978          test -z "$ac_c_werror_flag" ||
20979          test ! -s conftest.err
20980        } && test -s conftest.$ac_objext; then
20981   ac_hi=-1 ac_mid=-1
20982   while :; do
20983     cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989 $ac_includes_default
20990    typedef size_t ac__type_sizeof_;
20991 int
20992 main ()
20993 {
20994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20995 test_array [0] = 0
20996
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext
21002 if { (ac_try="$ac_compile"
21003 case "(($ac_try" in
21004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005   *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008   (eval "$ac_compile") 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } && {
21015          test -z "$ac_c_werror_flag" ||
21016          test ! -s conftest.err
21017        } && test -s conftest.$ac_objext; then
21018   ac_lo=$ac_mid; break
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023         ac_hi=`expr '(' $ac_mid ')' - 1`
21024                         if test $ac_mid -le $ac_hi; then
21025                           ac_lo= ac_hi=
21026                           break
21027                         fi
21028                         ac_mid=`expr 2 '*' $ac_mid`
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032   done
21033 else
21034   echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037         ac_lo= ac_hi=
21038 fi
21039
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 # Binary search between lo and hi bounds.
21045 while test "x$ac_lo" != "x$ac_hi"; do
21046   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 $ac_includes_default
21054    typedef size_t ac__type_sizeof_;
21055 int
21056 main ()
21057 {
21058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21059 test_array [0] = 0
21060
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069   *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072   (eval "$ac_compile") 2>conftest.er1
21073   ac_status=$?
21074   grep -v '^ *+' conftest.er1 >conftest.err
21075   rm -f conftest.er1
21076   cat conftest.err >&5
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } && {
21079          test -z "$ac_c_werror_flag" ||
21080          test ! -s conftest.err
21081        } && test -s conftest.$ac_objext; then
21082   ac_hi=$ac_mid
21083 else
21084   echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087         ac_lo=`expr '(' $ac_mid ')' + 1`
21088 fi
21089
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 done
21092 case $ac_lo in
21093 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21094 '') if test "$ac_cv_type_size_t" = yes; then
21095      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21096 See \`config.log' for more details." >&5
21097 echo "$as_me: error: cannot compute sizeof (size_t)
21098 See \`config.log' for more details." >&2;}
21099    { (exit 77); exit 77; }; }
21100    else
21101      ac_cv_sizeof_size_t=0
21102    fi ;;
21103 esac
21104 else
21105   cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h.  */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h.  */
21111 $ac_includes_default
21112    typedef size_t ac__type_sizeof_;
21113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21115 #include <stdio.h>
21116 #include <stdlib.h>
21117 int
21118 main ()
21119 {
21120
21121   FILE *f = fopen ("conftest.val", "w");
21122   if (! f)
21123     return 1;
21124   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21125     {
21126       long int i = longval ();
21127       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21128         return 1;
21129       fprintf (f, "%ld\n", i);
21130     }
21131   else
21132     {
21133       unsigned long int i = ulongval ();
21134       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21135         return 1;
21136       fprintf (f, "%lu\n", i);
21137     }
21138   return ferror (f) || fclose (f) != 0;
21139
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest$ac_exeext
21145 if { (ac_try="$ac_link"
21146 case "(($ac_try" in
21147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148   *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151   (eval "$ac_link") 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21155   { (case "(($ac_try" in
21156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157   *) ac_try_echo=$ac_try;;
21158 esac
21159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160   (eval "$ac_try") 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); }; }; then
21164   ac_cv_sizeof_size_t=`cat conftest.val`
21165 else
21166   echo "$as_me: program exited with status $ac_status" >&5
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170 ( exit $ac_status )
21171 if test "$ac_cv_type_size_t" = yes; then
21172      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21173 See \`config.log' for more details." >&5
21174 echo "$as_me: error: cannot compute sizeof (size_t)
21175 See \`config.log' for more details." >&2;}
21176    { (exit 77); exit 77; }; }
21177    else
21178      ac_cv_sizeof_size_t=0
21179    fi
21180 fi
21181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21182 fi
21183 rm -f conftest.val
21184 fi
21185 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21186 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21187
21188
21189
21190 cat >>confdefs.h <<_ACEOF
21191 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21192 _ACEOF
21193
21194
21195
21196 case "${host}" in
21197     arm-*-linux* )
21198         { echo "$as_me:$LINENO: checking for long long" >&5
21199 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21200 if test "${ac_cv_type_long_long+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 $ac_includes_default
21210 typedef long long ac__type_new_;
21211 int
21212 main ()
21213 {
21214 if ((ac__type_new_ *) 0)
21215   return 0;
21216 if (sizeof (ac__type_new_))
21217   return 0;
21218   ;
21219   return 0;
21220 }
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229   (eval "$ac_compile") 2>conftest.er1
21230   ac_status=$?
21231   grep -v '^ *+' conftest.er1 >conftest.err
21232   rm -f conftest.er1
21233   cat conftest.err >&5
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); } && {
21236          test -z "$ac_c_werror_flag" ||
21237          test ! -s conftest.err
21238        } && test -s conftest.$ac_objext; then
21239   ac_cv_type_long_long=yes
21240 else
21241   echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244         ac_cv_type_long_long=no
21245 fi
21246
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248 fi
21249 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21250 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21251
21252 # The cast to long int works around a bug in the HP C Compiler
21253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21255 # This bug is HP SR number 8606223364.
21256 { echo "$as_me:$LINENO: checking size of long long" >&5
21257 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21258 if test "${ac_cv_sizeof_long_long+set}" = set; then
21259   echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261   if test "$cross_compiling" = yes; then
21262   # Depending upon the size, compute the lo and hi bounds.
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h.  */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h.  */
21269 $ac_includes_default
21270    typedef long long ac__type_sizeof_;
21271 int
21272 main ()
21273 {
21274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21275 test_array [0] = 0
21276
21277   ;
21278   return 0;
21279 }
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285   *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288   (eval "$ac_compile") 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } && {
21295          test -z "$ac_c_werror_flag" ||
21296          test ! -s conftest.err
21297        } && test -s conftest.$ac_objext; then
21298   ac_lo=0 ac_mid=0
21299   while :; do
21300     cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h.  */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h.  */
21306 $ac_includes_default
21307    typedef long long ac__type_sizeof_;
21308 int
21309 main ()
21310 {
21311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21312 test_array [0] = 0
21313
21314   ;
21315   return 0;
21316 }
21317 _ACEOF
21318 rm -f conftest.$ac_objext
21319 if { (ac_try="$ac_compile"
21320 case "(($ac_try" in
21321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322   *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325   (eval "$ac_compile") 2>conftest.er1
21326   ac_status=$?
21327   grep -v '^ *+' conftest.er1 >conftest.err
21328   rm -f conftest.er1
21329   cat conftest.err >&5
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); } && {
21332          test -z "$ac_c_werror_flag" ||
21333          test ! -s conftest.err
21334        } && test -s conftest.$ac_objext; then
21335   ac_hi=$ac_mid; break
21336 else
21337   echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21339
21340         ac_lo=`expr $ac_mid + 1`
21341                         if test $ac_lo -le $ac_mid; then
21342                           ac_lo= ac_hi=
21343                           break
21344                         fi
21345                         ac_mid=`expr 2 '*' $ac_mid + 1`
21346 fi
21347
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349   done
21350 else
21351   echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354         cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360 $ac_includes_default
21361    typedef long long ac__type_sizeof_;
21362 int
21363 main ()
21364 {
21365 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21366 test_array [0] = 0
21367
21368   ;
21369   return 0;
21370 }
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376   *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379   (eval "$ac_compile") 2>conftest.er1
21380   ac_status=$?
21381   grep -v '^ *+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } && {
21386          test -z "$ac_c_werror_flag" ||
21387          test ! -s conftest.err
21388        } && test -s conftest.$ac_objext; then
21389   ac_hi=-1 ac_mid=-1
21390   while :; do
21391     cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 $ac_includes_default
21398    typedef long long ac__type_sizeof_;
21399 int
21400 main ()
21401 {
21402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21403 test_array [0] = 0
21404
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_compile") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && {
21423          test -z "$ac_c_werror_flag" ||
21424          test ! -s conftest.err
21425        } && test -s conftest.$ac_objext; then
21426   ac_lo=$ac_mid; break
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         ac_hi=`expr '(' $ac_mid ')' - 1`
21432                         if test $ac_mid -le $ac_hi; then
21433                           ac_lo= ac_hi=
21434                           break
21435                         fi
21436                         ac_mid=`expr 2 '*' $ac_mid`
21437 fi
21438
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440   done
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         ac_lo= ac_hi=
21446 fi
21447
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 fi
21450
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452 # Binary search between lo and hi bounds.
21453 while test "x$ac_lo" != "x$ac_hi"; do
21454   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21455   cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461 $ac_includes_default
21462    typedef long long ac__type_sizeof_;
21463 int
21464 main ()
21465 {
21466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21467 test_array [0] = 0
21468
21469   ;
21470   return 0;
21471 }
21472 _ACEOF
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477   *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480   (eval "$ac_compile") 2>conftest.er1
21481   ac_status=$?
21482   grep -v '^ *+' conftest.er1 >conftest.err
21483   rm -f conftest.er1
21484   cat conftest.err >&5
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } && {
21487          test -z "$ac_c_werror_flag" ||
21488          test ! -s conftest.err
21489        } && test -s conftest.$ac_objext; then
21490   ac_hi=$ac_mid
21491 else
21492   echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495         ac_lo=`expr '(' $ac_mid ')' + 1`
21496 fi
21497
21498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499 done
21500 case $ac_lo in
21501 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21502 '') if test "$ac_cv_type_long_long" = yes; then
21503      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21504 See \`config.log' for more details." >&5
21505 echo "$as_me: error: cannot compute sizeof (long long)
21506 See \`config.log' for more details." >&2;}
21507    { (exit 77); exit 77; }; }
21508    else
21509      ac_cv_sizeof_long_long=0
21510    fi ;;
21511 esac
21512 else
21513   cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519 $ac_includes_default
21520    typedef long long ac__type_sizeof_;
21521 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21522 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21523 #include <stdio.h>
21524 #include <stdlib.h>
21525 int
21526 main ()
21527 {
21528
21529   FILE *f = fopen ("conftest.val", "w");
21530   if (! f)
21531     return 1;
21532   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21533     {
21534       long int i = longval ();
21535       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21536         return 1;
21537       fprintf (f, "%ld\n", i);
21538     }
21539   else
21540     {
21541       unsigned long int i = ulongval ();
21542       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21543         return 1;
21544       fprintf (f, "%lu\n", i);
21545     }
21546   return ferror (f) || fclose (f) != 0;
21547
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest$ac_exeext
21553 if { (ac_try="$ac_link"
21554 case "(($ac_try" in
21555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556   *) ac_try_echo=$ac_try;;
21557 esac
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559   (eval "$ac_link") 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21563   { (case "(($ac_try" in
21564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565   *) ac_try_echo=$ac_try;;
21566 esac
21567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568   (eval "$ac_try") 2>&5
21569   ac_status=$?
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); }; }; then
21572   ac_cv_sizeof_long_long=`cat conftest.val`
21573 else
21574   echo "$as_me: program exited with status $ac_status" >&5
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 ( exit $ac_status )
21579 if test "$ac_cv_type_long_long" = yes; then
21580      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21581 See \`config.log' for more details." >&5
21582 echo "$as_me: error: cannot compute sizeof (long long)
21583 See \`config.log' for more details." >&2;}
21584    { (exit 77); exit 77; }; }
21585    else
21586      ac_cv_sizeof_long_long=0
21587    fi
21588 fi
21589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21590 fi
21591 rm -f conftest.val
21592 fi
21593 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21594 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21595
21596
21597
21598 cat >>confdefs.h <<_ACEOF
21599 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21600 _ACEOF
21601
21602
21603     ;;
21604     *-hp-hpux* )
21605         { echo "$as_me:$LINENO: checking for long long" >&5
21606 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21607 if test "${ac_cv_type_long_long+set}" = set; then
21608   echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610   cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 $ac_includes_default
21617 typedef long long ac__type_new_;
21618 int
21619 main ()
21620 {
21621 if ((ac__type_new_ *) 0)
21622   return 0;
21623 if (sizeof (ac__type_new_))
21624   return 0;
21625   ;
21626   return 0;
21627 }
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633   *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636   (eval "$ac_compile") 2>conftest.er1
21637   ac_status=$?
21638   grep -v '^ *+' conftest.er1 >conftest.err
21639   rm -f conftest.er1
21640   cat conftest.err >&5
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && {
21643          test -z "$ac_c_werror_flag" ||
21644          test ! -s conftest.err
21645        } && test -s conftest.$ac_objext; then
21646   ac_cv_type_long_long=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_cv_type_long_long=no
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 fi
21656 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21657 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21658
21659 # The cast to long int works around a bug in the HP C Compiler
21660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21662 # This bug is HP SR number 8606223364.
21663 { echo "$as_me:$LINENO: checking size of long long" >&5
21664 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21665 if test "${ac_cv_sizeof_long_long+set}" = set; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   if test "$cross_compiling" = yes; then
21669   # Depending upon the size, compute the lo and hi bounds.
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 $ac_includes_default
21677    typedef long long ac__type_sizeof_;
21678 int
21679 main ()
21680 {
21681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21682 test_array [0] = 0
21683
21684   ;
21685   return 0;
21686 }
21687 _ACEOF
21688 rm -f conftest.$ac_objext
21689 if { (ac_try="$ac_compile"
21690 case "(($ac_try" in
21691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692   *) ac_try_echo=$ac_try;;
21693 esac
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695   (eval "$ac_compile") 2>conftest.er1
21696   ac_status=$?
21697   grep -v '^ *+' conftest.er1 >conftest.err
21698   rm -f conftest.er1
21699   cat conftest.err >&5
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } && {
21702          test -z "$ac_c_werror_flag" ||
21703          test ! -s conftest.err
21704        } && test -s conftest.$ac_objext; then
21705   ac_lo=0 ac_mid=0
21706   while :; do
21707     cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 $ac_includes_default
21714    typedef long long ac__type_sizeof_;
21715 int
21716 main ()
21717 {
21718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21719 test_array [0] = 0
21720
21721   ;
21722   return 0;
21723 }
21724 _ACEOF
21725 rm -f conftest.$ac_objext
21726 if { (ac_try="$ac_compile"
21727 case "(($ac_try" in
21728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729   *) ac_try_echo=$ac_try;;
21730 esac
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732   (eval "$ac_compile") 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } && {
21739          test -z "$ac_c_werror_flag" ||
21740          test ! -s conftest.err
21741        } && test -s conftest.$ac_objext; then
21742   ac_hi=$ac_mid; break
21743 else
21744   echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747         ac_lo=`expr $ac_mid + 1`
21748                         if test $ac_lo -le $ac_mid; then
21749                           ac_lo= ac_hi=
21750                           break
21751                         fi
21752                         ac_mid=`expr 2 '*' $ac_mid + 1`
21753 fi
21754
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756   done
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761         cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 $ac_includes_default
21768    typedef long long ac__type_sizeof_;
21769 int
21770 main ()
21771 {
21772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21773 test_array [0] = 0
21774
21775   ;
21776   return 0;
21777 }
21778 _ACEOF
21779 rm -f conftest.$ac_objext
21780 if { (ac_try="$ac_compile"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_compile") 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } && {
21793          test -z "$ac_c_werror_flag" ||
21794          test ! -s conftest.err
21795        } && test -s conftest.$ac_objext; then
21796   ac_hi=-1 ac_mid=-1
21797   while :; do
21798     cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 $ac_includes_default
21805    typedef long long ac__type_sizeof_;
21806 int
21807 main ()
21808 {
21809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21810 test_array [0] = 0
21811
21812   ;
21813   return 0;
21814 }
21815 _ACEOF
21816 rm -f conftest.$ac_objext
21817 if { (ac_try="$ac_compile"
21818 case "(($ac_try" in
21819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820   *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823   (eval "$ac_compile") 2>conftest.er1
21824   ac_status=$?
21825   grep -v '^ *+' conftest.er1 >conftest.err
21826   rm -f conftest.er1
21827   cat conftest.err >&5
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } && {
21830          test -z "$ac_c_werror_flag" ||
21831          test ! -s conftest.err
21832        } && test -s conftest.$ac_objext; then
21833   ac_lo=$ac_mid; break
21834 else
21835   echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838         ac_hi=`expr '(' $ac_mid ')' - 1`
21839                         if test $ac_mid -le $ac_hi; then
21840                           ac_lo= ac_hi=
21841                           break
21842                         fi
21843                         ac_mid=`expr 2 '*' $ac_mid`
21844 fi
21845
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847   done
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852         ac_lo= ac_hi=
21853 fi
21854
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 # Binary search between lo and hi bounds.
21860 while test "x$ac_lo" != "x$ac_hi"; do
21861   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21862   cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h.  */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h.  */
21868 $ac_includes_default
21869    typedef long long ac__type_sizeof_;
21870 int
21871 main ()
21872 {
21873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21874 test_array [0] = 0
21875
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (ac_try="$ac_compile"
21882 case "(($ac_try" in
21883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884   *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887   (eval "$ac_compile") 2>conftest.er1
21888   ac_status=$?
21889   grep -v '^ *+' conftest.er1 >conftest.err
21890   rm -f conftest.er1
21891   cat conftest.err >&5
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); } && {
21894          test -z "$ac_c_werror_flag" ||
21895          test ! -s conftest.err
21896        } && test -s conftest.$ac_objext; then
21897   ac_hi=$ac_mid
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902         ac_lo=`expr '(' $ac_mid ')' + 1`
21903 fi
21904
21905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 done
21907 case $ac_lo in
21908 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21909 '') if test "$ac_cv_type_long_long" = yes; then
21910      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21911 See \`config.log' for more details." >&5
21912 echo "$as_me: error: cannot compute sizeof (long long)
21913 See \`config.log' for more details." >&2;}
21914    { (exit 77); exit 77; }; }
21915    else
21916      ac_cv_sizeof_long_long=0
21917    fi ;;
21918 esac
21919 else
21920   cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h.  */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h.  */
21926 $ac_includes_default
21927    typedef long long ac__type_sizeof_;
21928 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21929 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21930 #include <stdio.h>
21931 #include <stdlib.h>
21932 int
21933 main ()
21934 {
21935
21936   FILE *f = fopen ("conftest.val", "w");
21937   if (! f)
21938     return 1;
21939   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21940     {
21941       long int i = longval ();
21942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21943         return 1;
21944       fprintf (f, "%ld\n", i);
21945     }
21946   else
21947     {
21948       unsigned long int i = ulongval ();
21949       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21950         return 1;
21951       fprintf (f, "%lu\n", i);
21952     }
21953   return ferror (f) || fclose (f) != 0;
21954
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963   *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966   (eval "$ac_link") 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21970   { (case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_try") 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   ac_cv_sizeof_long_long=`cat conftest.val`
21980 else
21981   echo "$as_me: program exited with status $ac_status" >&5
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 ( exit $ac_status )
21986 if test "$ac_cv_type_long_long" = yes; then
21987      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21988 See \`config.log' for more details." >&5
21989 echo "$as_me: error: cannot compute sizeof (long long)
21990 See \`config.log' for more details." >&2;}
21991    { (exit 77); exit 77; }; }
21992    else
21993      ac_cv_sizeof_long_long=0
21994    fi
21995 fi
21996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21997 fi
21998 rm -f conftest.val
21999 fi
22000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22001 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22002
22003
22004
22005 cat >>confdefs.h <<_ACEOF
22006 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22007 _ACEOF
22008
22009
22010         if test "$ac_cv_sizeof_long_long" != 0; then
22011                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22012         fi
22013     ;;
22014     * )
22015         { echo "$as_me:$LINENO: checking for long long" >&5
22016 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22017 if test "${ac_cv_type_long_long+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026 $ac_includes_default
22027 typedef long long ac__type_new_;
22028 int
22029 main ()
22030 {
22031 if ((ac__type_new_ *) 0)
22032   return 0;
22033 if (sizeof (ac__type_new_))
22034   return 0;
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_compile") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } && {
22053          test -z "$ac_c_werror_flag" ||
22054          test ! -s conftest.err
22055        } && test -s conftest.$ac_objext; then
22056   ac_cv_type_long_long=yes
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061         ac_cv_type_long_long=no
22062 fi
22063
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 fi
22066 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22067 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22068
22069 # The cast to long int works around a bug in the HP C Compiler
22070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22072 # This bug is HP SR number 8606223364.
22073 { echo "$as_me:$LINENO: checking size of long long" >&5
22074 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22075 if test "${ac_cv_sizeof_long_long+set}" = set; then
22076   echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078   if test "$cross_compiling" = yes; then
22079   # Depending upon the size, compute the lo and hi bounds.
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 $ac_includes_default
22087    typedef long long ac__type_sizeof_;
22088 int
22089 main ()
22090 {
22091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22092 test_array [0] = 0
22093
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_compile") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } && {
22112          test -z "$ac_c_werror_flag" ||
22113          test ! -s conftest.err
22114        } && test -s conftest.$ac_objext; then
22115   ac_lo=0 ac_mid=0
22116   while :; do
22117     cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 $ac_includes_default
22124    typedef long long ac__type_sizeof_;
22125 int
22126 main ()
22127 {
22128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22129 test_array [0] = 0
22130
22131   ;
22132   return 0;
22133 }
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139   *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142   (eval "$ac_compile") 2>conftest.er1
22143   ac_status=$?
22144   grep -v '^ *+' conftest.er1 >conftest.err
22145   rm -f conftest.er1
22146   cat conftest.err >&5
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); } && {
22149          test -z "$ac_c_werror_flag" ||
22150          test ! -s conftest.err
22151        } && test -s conftest.$ac_objext; then
22152   ac_hi=$ac_mid; break
22153 else
22154   echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157         ac_lo=`expr $ac_mid + 1`
22158                         if test $ac_lo -le $ac_mid; then
22159                           ac_lo= ac_hi=
22160                           break
22161                         fi
22162                         ac_mid=`expr 2 '*' $ac_mid + 1`
22163 fi
22164
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166   done
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171         cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 $ac_includes_default
22178    typedef long long ac__type_sizeof_;
22179 int
22180 main ()
22181 {
22182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22183 test_array [0] = 0
22184
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196   (eval "$ac_compile") 2>conftest.er1
22197   ac_status=$?
22198   grep -v '^ *+' conftest.er1 >conftest.err
22199   rm -f conftest.er1
22200   cat conftest.err >&5
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); } && {
22203          test -z "$ac_c_werror_flag" ||
22204          test ! -s conftest.err
22205        } && test -s conftest.$ac_objext; then
22206   ac_hi=-1 ac_mid=-1
22207   while :; do
22208     cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h.  */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h.  */
22214 $ac_includes_default
22215    typedef long long ac__type_sizeof_;
22216 int
22217 main ()
22218 {
22219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22220 test_array [0] = 0
22221
22222   ;
22223   return 0;
22224 }
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230   *) ac_try_echo=$ac_try;;
22231 esac
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233   (eval "$ac_compile") 2>conftest.er1
22234   ac_status=$?
22235   grep -v '^ *+' conftest.er1 >conftest.err
22236   rm -f conftest.er1
22237   cat conftest.err >&5
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } && {
22240          test -z "$ac_c_werror_flag" ||
22241          test ! -s conftest.err
22242        } && test -s conftest.$ac_objext; then
22243   ac_lo=$ac_mid; break
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248         ac_hi=`expr '(' $ac_mid ')' - 1`
22249                         if test $ac_mid -le $ac_hi; then
22250                           ac_lo= ac_hi=
22251                           break
22252                         fi
22253                         ac_mid=`expr 2 '*' $ac_mid`
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257   done
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262         ac_lo= ac_hi=
22263 fi
22264
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 fi
22267
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 # Binary search between lo and hi bounds.
22270 while test "x$ac_lo" != "x$ac_hi"; do
22271   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22272   cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 $ac_includes_default
22279    typedef long long ac__type_sizeof_;
22280 int
22281 main ()
22282 {
22283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22284 test_array [0] = 0
22285
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297   (eval "$ac_compile") 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } && {
22304          test -z "$ac_c_werror_flag" ||
22305          test ! -s conftest.err
22306        } && test -s conftest.$ac_objext; then
22307   ac_hi=$ac_mid
22308 else
22309   echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312         ac_lo=`expr '(' $ac_mid ')' + 1`
22313 fi
22314
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 done
22317 case $ac_lo in
22318 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22319 '') if test "$ac_cv_type_long_long" = yes; then
22320      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22321 See \`config.log' for more details." >&5
22322 echo "$as_me: error: cannot compute sizeof (long long)
22323 See \`config.log' for more details." >&2;}
22324    { (exit 77); exit 77; }; }
22325    else
22326      ac_cv_sizeof_long_long=0
22327    fi ;;
22328 esac
22329 else
22330   cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 $ac_includes_default
22337    typedef long long ac__type_sizeof_;
22338 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22339 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22340 #include <stdio.h>
22341 #include <stdlib.h>
22342 int
22343 main ()
22344 {
22345
22346   FILE *f = fopen ("conftest.val", "w");
22347   if (! f)
22348     return 1;
22349   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22350     {
22351       long int i = longval ();
22352       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22353         return 1;
22354       fprintf (f, "%ld\n", i);
22355     }
22356   else
22357     {
22358       unsigned long int i = ulongval ();
22359       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22360         return 1;
22361       fprintf (f, "%lu\n", i);
22362     }
22363   return ferror (f) || fclose (f) != 0;
22364
22365   ;
22366   return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373   *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376   (eval "$ac_link") 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22380   { (case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385   (eval "$ac_try") 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); }; }; then
22389   ac_cv_sizeof_long_long=`cat conftest.val`
22390 else
22391   echo "$as_me: program exited with status $ac_status" >&5
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 ( exit $ac_status )
22396 if test "$ac_cv_type_long_long" = yes; then
22397      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22398 See \`config.log' for more details." >&5
22399 echo "$as_me: error: cannot compute sizeof (long long)
22400 See \`config.log' for more details." >&2;}
22401    { (exit 77); exit 77; }; }
22402    else
22403      ac_cv_sizeof_long_long=0
22404    fi
22405 fi
22406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22407 fi
22408 rm -f conftest.val
22409 fi
22410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22411 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22412
22413
22414
22415 cat >>confdefs.h <<_ACEOF
22416 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22417 _ACEOF
22418
22419
22420 esac
22421
22422 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22423 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22424 if test "${ac_cv_type_wchar_t+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433
22434         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22435         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22436         #  error "fake wchar_t"
22437         #endif
22438         #ifdef HAVE_WCHAR_H
22439         #  ifdef __CYGWIN__
22440         #    include <stddef.h>
22441         #  endif
22442         #  include <wchar.h>
22443         #endif
22444         #ifdef HAVE_STDLIB_H
22445         #  include <stdlib.h>
22446         #endif
22447         #include <stdio.h>
22448
22449
22450
22451 typedef wchar_t ac__type_new_;
22452 int
22453 main ()
22454 {
22455 if ((ac__type_new_ *) 0)
22456   return 0;
22457 if (sizeof (ac__type_new_))
22458   return 0;
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 rm -f conftest.$ac_objext
22464 if { (ac_try="$ac_compile"
22465 case "(($ac_try" in
22466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467   *) ac_try_echo=$ac_try;;
22468 esac
22469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470   (eval "$ac_compile") 2>conftest.er1
22471   ac_status=$?
22472   grep -v '^ *+' conftest.er1 >conftest.err
22473   rm -f conftest.er1
22474   cat conftest.err >&5
22475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476   (exit $ac_status); } && {
22477          test -z "$ac_c_werror_flag" ||
22478          test ! -s conftest.err
22479        } && test -s conftest.$ac_objext; then
22480   ac_cv_type_wchar_t=yes
22481 else
22482   echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485         ac_cv_type_wchar_t=no
22486 fi
22487
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 fi
22490 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22491 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22492
22493 # The cast to long int works around a bug in the HP C Compiler
22494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22496 # This bug is HP SR number 8606223364.
22497 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22498 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22499 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22500   echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502   if test "$cross_compiling" = yes; then
22503   # Depending upon the size, compute the lo and hi bounds.
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510
22511         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22512         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22513         #  error "fake wchar_t"
22514         #endif
22515         #ifdef HAVE_WCHAR_H
22516         #  ifdef __CYGWIN__
22517         #    include <stddef.h>
22518         #  endif
22519         #  include <wchar.h>
22520         #endif
22521         #ifdef HAVE_STDLIB_H
22522         #  include <stdlib.h>
22523         #endif
22524         #include <stdio.h>
22525
22526
22527
22528    typedef wchar_t ac__type_sizeof_;
22529 int
22530 main ()
22531 {
22532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22533 test_array [0] = 0
22534
22535   ;
22536   return 0;
22537 }
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_compile") 2>conftest.er1
22547   ac_status=$?
22548   grep -v '^ *+' conftest.er1 >conftest.err
22549   rm -f conftest.er1
22550   cat conftest.err >&5
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } && {
22553          test -z "$ac_c_werror_flag" ||
22554          test ! -s conftest.err
22555        } && test -s conftest.$ac_objext; then
22556   ac_lo=0 ac_mid=0
22557   while :; do
22558     cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564
22565         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22566         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22567         #  error "fake wchar_t"
22568         #endif
22569         #ifdef HAVE_WCHAR_H
22570         #  ifdef __CYGWIN__
22571         #    include <stddef.h>
22572         #  endif
22573         #  include <wchar.h>
22574         #endif
22575         #ifdef HAVE_STDLIB_H
22576         #  include <stdlib.h>
22577         #endif
22578         #include <stdio.h>
22579
22580
22581
22582    typedef wchar_t ac__type_sizeof_;
22583 int
22584 main ()
22585 {
22586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22587 test_array [0] = 0
22588
22589   ;
22590   return 0;
22591 }
22592 _ACEOF
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597   *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600   (eval "$ac_compile") 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } && {
22607          test -z "$ac_c_werror_flag" ||
22608          test ! -s conftest.err
22609        } && test -s conftest.$ac_objext; then
22610   ac_hi=$ac_mid; break
22611 else
22612   echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615         ac_lo=`expr $ac_mid + 1`
22616                         if test $ac_lo -le $ac_mid; then
22617                           ac_lo= ac_hi=
22618                           break
22619                         fi
22620                         ac_mid=`expr 2 '*' $ac_mid + 1`
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624   done
22625 else
22626   echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629         cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635
22636         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22637         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22638         #  error "fake wchar_t"
22639         #endif
22640         #ifdef HAVE_WCHAR_H
22641         #  ifdef __CYGWIN__
22642         #    include <stddef.h>
22643         #  endif
22644         #  include <wchar.h>
22645         #endif
22646         #ifdef HAVE_STDLIB_H
22647         #  include <stdlib.h>
22648         #endif
22649         #include <stdio.h>
22650
22651
22652
22653    typedef wchar_t ac__type_sizeof_;
22654 int
22655 main ()
22656 {
22657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22658 test_array [0] = 0
22659
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 rm -f conftest.$ac_objext
22665 if { (ac_try="$ac_compile"
22666 case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671   (eval "$ac_compile") 2>conftest.er1
22672   ac_status=$?
22673   grep -v '^ *+' conftest.er1 >conftest.err
22674   rm -f conftest.er1
22675   cat conftest.err >&5
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); } && {
22678          test -z "$ac_c_werror_flag" ||
22679          test ! -s conftest.err
22680        } && test -s conftest.$ac_objext; then
22681   ac_hi=-1 ac_mid=-1
22682   while :; do
22683     cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689
22690         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22691         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22692         #  error "fake wchar_t"
22693         #endif
22694         #ifdef HAVE_WCHAR_H
22695         #  ifdef __CYGWIN__
22696         #    include <stddef.h>
22697         #  endif
22698         #  include <wchar.h>
22699         #endif
22700         #ifdef HAVE_STDLIB_H
22701         #  include <stdlib.h>
22702         #endif
22703         #include <stdio.h>
22704
22705
22706
22707    typedef wchar_t ac__type_sizeof_;
22708 int
22709 main ()
22710 {
22711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22712 test_array [0] = 0
22713
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext
22719 if { (ac_try="$ac_compile"
22720 case "(($ac_try" in
22721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722   *) ac_try_echo=$ac_try;;
22723 esac
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725   (eval "$ac_compile") 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && {
22732          test -z "$ac_c_werror_flag" ||
22733          test ! -s conftest.err
22734        } && test -s conftest.$ac_objext; then
22735   ac_lo=$ac_mid; break
22736 else
22737   echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740         ac_hi=`expr '(' $ac_mid ')' - 1`
22741                         if test $ac_mid -le $ac_hi; then
22742                           ac_lo= ac_hi=
22743                           break
22744                         fi
22745                         ac_mid=`expr 2 '*' $ac_mid`
22746 fi
22747
22748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22749   done
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754         ac_lo= ac_hi=
22755 fi
22756
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 fi
22759
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761 # Binary search between lo and hi bounds.
22762 while test "x$ac_lo" != "x$ac_hi"; do
22763   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22764   cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770
22771         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22772         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22773         #  error "fake wchar_t"
22774         #endif
22775         #ifdef HAVE_WCHAR_H
22776         #  ifdef __CYGWIN__
22777         #    include <stddef.h>
22778         #  endif
22779         #  include <wchar.h>
22780         #endif
22781         #ifdef HAVE_STDLIB_H
22782         #  include <stdlib.h>
22783         #endif
22784         #include <stdio.h>
22785
22786
22787
22788    typedef wchar_t ac__type_sizeof_;
22789 int
22790 main ()
22791 {
22792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22793 test_array [0] = 0
22794
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_compile") 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } && {
22813          test -z "$ac_c_werror_flag" ||
22814          test ! -s conftest.err
22815        } && test -s conftest.$ac_objext; then
22816   ac_hi=$ac_mid
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22820
22821         ac_lo=`expr '(' $ac_mid ')' + 1`
22822 fi
22823
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825 done
22826 case $ac_lo in
22827 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22828 '') if test "$ac_cv_type_wchar_t" = yes; then
22829      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22830 See \`config.log' for more details." >&5
22831 echo "$as_me: error: cannot compute sizeof (wchar_t)
22832 See \`config.log' for more details." >&2;}
22833    { (exit 77); exit 77; }; }
22834    else
22835      ac_cv_sizeof_wchar_t=0
22836    fi ;;
22837 esac
22838 else
22839   cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h.  */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h.  */
22845
22846         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22847         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22848         #  error "fake wchar_t"
22849         #endif
22850         #ifdef HAVE_WCHAR_H
22851         #  ifdef __CYGWIN__
22852         #    include <stddef.h>
22853         #  endif
22854         #  include <wchar.h>
22855         #endif
22856         #ifdef HAVE_STDLIB_H
22857         #  include <stdlib.h>
22858         #endif
22859         #include <stdio.h>
22860
22861
22862
22863    typedef wchar_t ac__type_sizeof_;
22864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22866 #include <stdio.h>
22867 #include <stdlib.h>
22868 int
22869 main ()
22870 {
22871
22872   FILE *f = fopen ("conftest.val", "w");
22873   if (! f)
22874     return 1;
22875   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22876     {
22877       long int i = longval ();
22878       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22879         return 1;
22880       fprintf (f, "%ld\n", i);
22881     }
22882   else
22883     {
22884       unsigned long int i = ulongval ();
22885       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22886         return 1;
22887       fprintf (f, "%lu\n", i);
22888     }
22889   return ferror (f) || fclose (f) != 0;
22890
22891   ;
22892   return 0;
22893 }
22894 _ACEOF
22895 rm -f conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899   *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902   (eval "$ac_link") 2>&5
22903   ac_status=$?
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22906   { (case "(($ac_try" in
22907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908   *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911   (eval "$ac_try") 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; }; then
22915   ac_cv_sizeof_wchar_t=`cat conftest.val`
22916 else
22917   echo "$as_me: program exited with status $ac_status" >&5
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921 ( exit $ac_status )
22922 if test "$ac_cv_type_wchar_t" = yes; then
22923      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22924 See \`config.log' for more details." >&5
22925 echo "$as_me: error: cannot compute sizeof (wchar_t)
22926 See \`config.log' for more details." >&2;}
22927    { (exit 77); exit 77; }; }
22928    else
22929      ac_cv_sizeof_wchar_t=0
22930    fi
22931 fi
22932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22933 fi
22934 rm -f conftest.val
22935 fi
22936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22937 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22938
22939
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22943 _ACEOF
22944
22945
22946 if test "$ac_cv_sizeof_wchar_t" != 0; then
22947     wxUSE_WCHAR_T=yes
22948 else
22949     wxUSE_WCHAR_T=no
22950 fi
22951
22952 { echo "$as_me:$LINENO: checking for va_copy" >&5
22953 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
22954 if test "${wx_cv_func_va_copy+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957
22958         ac_ext=cpp
22959 ac_cpp='$CXXCPP $CPPFLAGS'
22960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22963
22964         cat >conftest.$ac_ext <<_ACEOF
22965
22966             #include <stdarg.h>
22967             void foo(char *f, ...)
22968             {
22969                 va_list ap1, ap2;
22970                 va_start(ap1, f);
22971                 va_copy(ap2, ap1);
22972                 va_end(ap2);
22973                 va_end(ap1);
22974             }
22975             int main()
22976             {
22977                 foo("hi", 17);
22978                 return 0;
22979             }
22980 _ACEOF
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985   *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988   (eval "$ac_link") 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } && {
22995          test -z "$ac_cxx_werror_flag" ||
22996          test ! -s conftest.err
22997        } && test -s conftest$ac_exeext &&
22998        $as_test_x conftest$ac_exeext; then
22999   wx_cv_func_va_copy=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004         wx_cv_func_va_copy=no
23005
23006 fi
23007
23008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23009       conftest$ac_exeext conftest.$ac_ext
23010         ac_ext=c
23011 ac_cpp='$CPP $CPPFLAGS'
23012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23015
23016
23017
23018 fi
23019 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23020 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23021
23022 if test $wx_cv_func_va_copy = "yes"; then
23023     cat >>confdefs.h <<\_ACEOF
23024 #define HAVE_VA_COPY 1
23025 _ACEOF
23026
23027 else
23028         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23029 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23030 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23031   echo $ECHO_N "(cached) $ECHO_C" >&6
23032 else
23033
23034             if test "$cross_compiling" = yes; then
23035                   wx_cv_type_va_list_lvalue=yes
23036
23037 else
23038   cat >conftest.$ac_ext <<_ACEOF
23039
23040                 #include <stdarg.h>
23041                 int foo(char *f, ...)
23042                 {
23043                     va_list ap1, ap2;
23044                     va_start(ap1, f);
23045                     ap2 = ap1;
23046                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23047                         return 1;
23048                     va_end(ap2);
23049                     va_end(ap1);
23050                     return 0;
23051                 }
23052                 int main()
23053                 {
23054                     return foo("hi", 17);
23055                 }
23056 _ACEOF
23057 rm -f conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061   *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064   (eval "$ac_link") 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23068   { (case "(($ac_try" in
23069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070   *) ac_try_echo=$ac_try;;
23071 esac
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073   (eval "$ac_try") 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; }; then
23077   wx_cv_type_va_list_lvalue=yes
23078 else
23079   echo "$as_me: program exited with status $ac_status" >&5
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083 ( exit $ac_status )
23084 wx_cv_type_va_list_lvalue=no
23085 fi
23086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23087 fi
23088
23089
23090
23091
23092 fi
23093 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23094 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23095
23096     if test $wx_cv_type_va_list_lvalue != "yes"; then
23097                         cat >>confdefs.h <<\_ACEOF
23098 #define VA_LIST_IS_ARRAY 1
23099 _ACEOF
23100
23101     fi
23102 fi
23103
23104 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23105
23106 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23107 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23108 if test "${wx_cv_have_variadic_macros+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111
23112                         ac_ext=cpp
23113 ac_cpp='$CXXCPP $CPPFLAGS'
23114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23117
23118         cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h.  */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h.  */
23124
23125                     #include <stdio.h>
23126                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23127
23128 int
23129 main ()
23130 {
23131
23132                     test("%s %d %p", "test", 1, 0);
23133
23134
23135   ;
23136   return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } && {
23153          test -z "$ac_cxx_werror_flag" ||
23154          test ! -s conftest.err
23155        } && test -s conftest.$ac_objext; then
23156   wx_cv_have_variadic_macros=yes
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         wx_cv_have_variadic_macros=no
23162
23163 fi
23164
23165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166         ac_ext=c
23167 ac_cpp='$CPP $CPPFLAGS'
23168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23171
23172
23173
23174 fi
23175 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23176 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23177
23178 if test $wx_cv_have_variadic_macros = "yes"; then
23179     cat >>confdefs.h <<\_ACEOF
23180 #define HAVE_VARIADIC_MACROS 1
23181 _ACEOF
23182
23183 fi
23184
23185 fi
23186 # Check whether --enable-largefile was given.
23187 if test "${enable_largefile+set}" = set; then
23188   enableval=$enable_largefile;
23189 fi
23190
23191 if test "$enable_largefile" != no; then
23192             wx_largefile=no
23193
23194     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23195 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23196 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199
23200           cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206 #define _FILE_OFFSET_BITS 64
23207                           #include <sys/types.h>
23208 int
23209 main ()
23210 {
23211 typedef struct {
23212     unsigned int field: sizeof(off_t) == 8;
23213 } wxlf;
23214
23215   ;
23216   return 0;
23217 }
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223   *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226   (eval "$ac_compile") 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } && {
23233          test -z "$ac_c_werror_flag" ||
23234          test ! -s conftest.err
23235        } && test -s conftest.$ac_objext; then
23236   ac_cv_sys_file_offset_bits=64
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         ac_cv_sys_file_offset_bits=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245
23246
23247 fi
23248 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23249 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23250
23251     if test "$ac_cv_sys_file_offset_bits" != no; then
23252         wx_largefile=yes
23253         cat >>confdefs.h <<_ACEOF
23254 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23255 _ACEOF
23256
23257     fi
23258
23259     if test "x$wx_largefile" != "xyes"; then
23260
23261     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23262 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23263 if test "${ac_cv_sys_large_files+set}" = set; then
23264   echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266
23267           cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273 #define _LARGE_FILES 1
23274                           #include <sys/types.h>
23275 int
23276 main ()
23277 {
23278 typedef struct {
23279     unsigned int field: sizeof(off_t) == 8;
23280 } wxlf;
23281
23282   ;
23283   return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290   *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293   (eval "$ac_compile") 2>conftest.er1
23294   ac_status=$?
23295   grep -v '^ *+' conftest.er1 >conftest.err
23296   rm -f conftest.er1
23297   cat conftest.err >&5
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); } && {
23300          test -z "$ac_c_werror_flag" ||
23301          test ! -s conftest.err
23302        } && test -s conftest.$ac_objext; then
23303   ac_cv_sys_large_files=1
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308         ac_cv_sys_large_files=no
23309 fi
23310
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312
23313
23314 fi
23315 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23316 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23317
23318     if test "$ac_cv_sys_large_files" != no; then
23319         wx_largefile=yes
23320         cat >>confdefs.h <<_ACEOF
23321 #define _LARGE_FILES $ac_cv_sys_large_files
23322 _ACEOF
23323
23324     fi
23325
23326     fi
23327
23328     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23329 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23330     if test "x$wx_largefile" = "xyes"; then
23331         cat >>confdefs.h <<\_ACEOF
23332 #define HAVE_LARGEFILE_SUPPORT 1
23333 _ACEOF
23334
23335     fi
23336     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23337 echo "${ECHO_T}$wx_largefile" >&6; }
23338 fi
23339
23340
23341 if test "x$wx_largefile" = "xyes"; then
23342     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23343         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23344
23345                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23346             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23347 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23348 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23349   echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351
23352                     ac_ext=cpp
23353 ac_cpp='$CXXCPP $CPPFLAGS'
23354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23357
23358                     cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364
23365 int
23366 main ()
23367 {
23368
23369                             #ifndef __STDC_EXT__
23370                                 choke me
23371                             #endif
23372
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_compile") 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } && {
23391          test -z "$ac_cxx_werror_flag" ||
23392          test ! -s conftest.err
23393        } && test -s conftest.$ac_objext; then
23394   wx_cv_STDC_EXT_required=no
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399         wx_cv_STDC_EXT_required=yes
23400
23401 fi
23402
23403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404                     ac_ext=c
23405 ac_cpp='$CPP $CPPFLAGS'
23406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23409
23410
23411
23412 fi
23413 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23414 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23415             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23416                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23417             fi
23418         fi
23419     else
23420         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23421     fi
23422         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23423 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23424 if test "${ac_cv_sys_largefile_source+set}" = set; then
23425   echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427   while :; do
23428   cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h.  */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h.  */
23434 #include <sys/types.h> /* for off_t */
23435      #include <stdio.h>
23436 int
23437 main ()
23438 {
23439 int (*fp) (FILE *, off_t, int) = fseeko;
23440      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23441   ;
23442   return 0;
23443 }
23444 _ACEOF
23445 rm -f conftest.$ac_objext conftest$ac_exeext
23446 if { (ac_try="$ac_link"
23447 case "(($ac_try" in
23448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449   *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452   (eval "$ac_link") 2>conftest.er1
23453   ac_status=$?
23454   grep -v '^ *+' conftest.er1 >conftest.err
23455   rm -f conftest.er1
23456   cat conftest.err >&5
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } && {
23459          test -z "$ac_c_werror_flag" ||
23460          test ! -s conftest.err
23461        } && test -s conftest$ac_exeext &&
23462        $as_test_x conftest$ac_exeext; then
23463   ac_cv_sys_largefile_source=no; break
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468
23469 fi
23470
23471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23472       conftest$ac_exeext conftest.$ac_ext
23473   cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h.  */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h.  */
23479 #define _LARGEFILE_SOURCE 1
23480 #include <sys/types.h> /* for off_t */
23481      #include <stdio.h>
23482 int
23483 main ()
23484 {
23485 int (*fp) (FILE *, off_t, int) = fseeko;
23486      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23487   ;
23488   return 0;
23489 }
23490 _ACEOF
23491 rm -f conftest.$ac_objext conftest$ac_exeext
23492 if { (ac_try="$ac_link"
23493 case "(($ac_try" in
23494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23495   *) ac_try_echo=$ac_try;;
23496 esac
23497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23498   (eval "$ac_link") 2>conftest.er1
23499   ac_status=$?
23500   grep -v '^ *+' conftest.er1 >conftest.err
23501   rm -f conftest.er1
23502   cat conftest.err >&5
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); } && {
23505          test -z "$ac_c_werror_flag" ||
23506          test ! -s conftest.err
23507        } && test -s conftest$ac_exeext &&
23508        $as_test_x conftest$ac_exeext; then
23509   ac_cv_sys_largefile_source=1; break
23510 else
23511   echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23513
23514
23515 fi
23516
23517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23518       conftest$ac_exeext conftest.$ac_ext
23519   ac_cv_sys_largefile_source=unknown
23520   break
23521 done
23522 fi
23523 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23524 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23525 case $ac_cv_sys_largefile_source in #(
23526   no | unknown) ;;
23527   *)
23528 cat >>confdefs.h <<_ACEOF
23529 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23530 _ACEOF
23531 ;;
23532 esac
23533 rm -f conftest*
23534
23535 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23536 # in glibc 2.1.3, but that breaks too many other things.
23537 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23538 if test $ac_cv_sys_largefile_source != unknown; then
23539
23540 cat >>confdefs.h <<\_ACEOF
23541 #define HAVE_FSEEKO 1
23542 _ACEOF
23543
23544 fi
23545
23546     if test "$ac_cv_sys_largefile_source" != no; then
23547         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23548     fi
23549 fi
23550
23551 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23552 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23553 if test "${ac_cv_c_bigendian+set}" = set; then
23554   echo $ECHO_N "(cached) $ECHO_C" >&6
23555 else
23556   ac_cv_c_bigendian=unknown
23557 # See if sys/param.h defines the BYTE_ORDER macro.
23558 cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h.  */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h.  */
23564 #include <sys/types.h>
23565 #include <sys/param.h>
23566 int
23567 main ()
23568 {
23569
23570 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23571  bogus endian macros
23572 #endif
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (ac_try="$ac_compile"
23579 case "(($ac_try" in
23580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581   *) ac_try_echo=$ac_try;;
23582 esac
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584   (eval "$ac_compile") 2>conftest.er1
23585   ac_status=$?
23586   grep -v '^ *+' conftest.er1 >conftest.err
23587   rm -f conftest.er1
23588   cat conftest.err >&5
23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); } && {
23591          test -z "$ac_c_werror_flag" ||
23592          test ! -s conftest.err
23593        } && test -s conftest.$ac_objext; then
23594   # It does; now see whether it defined to BIG_ENDIAN or not.
23595 cat >conftest.$ac_ext <<_ACEOF
23596 /* confdefs.h.  */
23597 _ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h.  */
23601 #include <sys/types.h>
23602 #include <sys/param.h>
23603 int
23604 main ()
23605 {
23606
23607 #if BYTE_ORDER != BIG_ENDIAN
23608  not big endian
23609 #endif
23610   ;
23611   return 0;
23612 }
23613 _ACEOF
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
23616 case "(($ac_try" in
23617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618   *) ac_try_echo=$ac_try;;
23619 esac
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621   (eval "$ac_compile") 2>conftest.er1
23622   ac_status=$?
23623   grep -v '^ *+' conftest.er1 >conftest.err
23624   rm -f conftest.er1
23625   cat conftest.err >&5
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); } && {
23628          test -z "$ac_c_werror_flag" ||
23629          test ! -s conftest.err
23630        } && test -s conftest.$ac_objext; then
23631   ac_cv_c_bigendian=yes
23632 else
23633   echo "$as_me: failed program was:" >&5
23634 sed 's/^/| /' conftest.$ac_ext >&5
23635
23636         ac_cv_c_bigendian=no
23637 fi
23638
23639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 else
23641   echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23643
23644
23645 fi
23646
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 if test $ac_cv_c_bigendian = unknown; then
23649 if test "$cross_compiling" = yes; then
23650   ac_cv_c_bigendian=unknown
23651 else
23652   cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658 main () {
23659   /* Are we little or big endian?  From Harbison&Steele.  */
23660   union
23661   {
23662     long l;
23663     char c[sizeof (long)];
23664   } u;
23665   u.l = 1;
23666   exit (u.c[sizeof (long) - 1] == 1);
23667 }
23668 _ACEOF
23669 rm -f conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673   *) ac_try_echo=$ac_try;;
23674 esac
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676   (eval "$ac_link") 2>&5
23677   ac_status=$?
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23680   { (case "(($ac_try" in
23681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682   *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685   (eval "$ac_try") 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   ac_cv_c_bigendian=no
23690 else
23691   echo "$as_me: program exited with status $ac_status" >&5
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23694
23695 ( exit $ac_status )
23696 ac_cv_c_bigendian=yes
23697 fi
23698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23699 fi
23700
23701
23702 fi
23703 fi
23704 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23705 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23706 if test $ac_cv_c_bigendian = unknown; then
23707   { 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
23708 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;}
23709 fi
23710 if test $ac_cv_c_bigendian = yes; then
23711   cat >>confdefs.h <<\_ACEOF
23712 #define WORDS_BIGENDIAN 1
23713 _ACEOF
23714
23715 fi
23716
23717
23718
23719
23720     ac_ext=cpp
23721 ac_cpp='$CXXCPP $CPPFLAGS'
23722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23725
23726
23727
23728 for ac_header in iostream
23729 do
23730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742
23743
23744 #include <$ac_header>
23745 _ACEOF
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750   *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753   (eval "$ac_compile") 2>conftest.er1
23754   ac_status=$?
23755   grep -v '^ *+' conftest.er1 >conftest.err
23756   rm -f conftest.er1
23757   cat conftest.err >&5
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); } && {
23760          test -z "$ac_cxx_werror_flag" ||
23761          test ! -s conftest.err
23762        } && test -s conftest.$ac_objext; then
23763   eval "$as_ac_Header=yes"
23764 else
23765   echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23767
23768         eval "$as_ac_Header=no"
23769 fi
23770
23771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772 fi
23773 ac_res=`eval echo '${'$as_ac_Header'}'`
23774                { echo "$as_me:$LINENO: result: $ac_res" >&5
23775 echo "${ECHO_T}$ac_res" >&6; }
23776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23777   cat >>confdefs.h <<_ACEOF
23778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23779 _ACEOF
23780
23781 fi
23782
23783 done
23784
23785
23786     if test "$ac_cv_header_iostream" = "yes" ; then
23787       :
23788     else
23789       cat >>confdefs.h <<\_ACEOF
23790 #define wxUSE_IOSTREAMH 1
23791 _ACEOF
23792
23793     fi
23794
23795     ac_ext=c
23796 ac_cpp='$CPP $CPPFLAGS'
23797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23800
23801
23802
23803
23804   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23805 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23806 if test "${wx_cv_cpp_bool+set}" = set; then
23807   echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
23809
23810
23811     ac_ext=cpp
23812 ac_cpp='$CXXCPP $CPPFLAGS'
23813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23816
23817
23818     cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h.  */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h.  */
23824
23825
23826 int
23827 main ()
23828 {
23829
23830         bool b = true;
23831
23832         return 0;
23833
23834   ;
23835   return 0;
23836 }
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842   *) ac_try_echo=$ac_try;;
23843 esac
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845   (eval "$ac_compile") 2>conftest.er1
23846   ac_status=$?
23847   grep -v '^ *+' conftest.er1 >conftest.err
23848   rm -f conftest.er1
23849   cat conftest.err >&5
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); } && {
23852          test -z "$ac_cxx_werror_flag" ||
23853          test ! -s conftest.err
23854        } && test -s conftest.$ac_objext; then
23855
23856         wx_cv_cpp_bool=yes
23857
23858 else
23859   echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23861
23862
23863         wx_cv_cpp_bool=no
23864
23865
23866 fi
23867
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869
23870     ac_ext=c
23871 ac_cpp='$CPP $CPPFLAGS'
23872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23875
23876
23877 fi
23878 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23879 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23880
23881   if test "$wx_cv_cpp_bool" = "yes"; then
23882     cat >>confdefs.h <<\_ACEOF
23883 #define HAVE_BOOL 1
23884 _ACEOF
23885
23886   fi
23887
23888
23889
23890   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23891 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23892 if test "${wx_cv_explicit+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895
23896
23897     ac_ext=cpp
23898 ac_cpp='$CXXCPP $CPPFLAGS'
23899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23902
23903
23904             cat >conftest.$ac_ext <<_ACEOF
23905 /* confdefs.h.  */
23906 _ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h.  */
23910
23911         class Foo { public: explicit Foo(int) {} };
23912
23913 int
23914 main ()
23915 {
23916
23917         return 0;
23918
23919   ;
23920   return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927   *) ac_try_echo=$ac_try;;
23928 esac
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930   (eval "$ac_compile") 2>conftest.er1
23931   ac_status=$?
23932   grep -v '^ *+' conftest.er1 >conftest.err
23933   rm -f conftest.er1
23934   cat conftest.err >&5
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); } && {
23937          test -z "$ac_cxx_werror_flag" ||
23938          test ! -s conftest.err
23939        } && test -s conftest.$ac_objext; then
23940
23941         cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947
23948                 class Foo { public: explicit Foo(int) {} };
23949                 static void TakeFoo(const Foo& foo) { }
23950
23951 int
23952 main ()
23953 {
23954
23955                 TakeFoo(17);
23956                 return 0;
23957
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969   (eval "$ac_compile") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_cxx_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest.$ac_objext; then
23979   wx_cv_explicit=no
23980 else
23981   echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23983
23984         wx_cv_explicit=yes
23985
23986 fi
23987
23988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23989
23990 else
23991   echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23993
23994         wx_cv_explicit=no
23995
23996 fi
23997
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999
24000     ac_ext=c
24001 ac_cpp='$CPP $CPPFLAGS'
24002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24005
24006
24007 fi
24008 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24009 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24010
24011   if test "$wx_cv_explicit" = "yes"; then
24012     cat >>confdefs.h <<\_ACEOF
24013 #define HAVE_EXPLICIT 1
24014 _ACEOF
24015
24016   fi
24017
24018
24019 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
24020 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
24021 if test "${ac_cv_cxx_const_cast+set}" = set; then
24022   echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024
24025  ac_ext=cpp
24026 ac_cpp='$CXXCPP $CPPFLAGS'
24027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24030
24031  cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h.  */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h.  */
24037
24038 int
24039 main ()
24040 {
24041 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_compile") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } && {
24060          test -z "$ac_cxx_werror_flag" ||
24061          test ! -s conftest.err
24062        } && test -s conftest.$ac_objext; then
24063   ac_cv_cxx_const_cast=yes
24064 else
24065   echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068         ac_cv_cxx_const_cast=no
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072  ac_ext=c
24073 ac_cpp='$CPP $CPPFLAGS'
24074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24077
24078
24079 fi
24080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
24081 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
24082 if test "$ac_cv_cxx_const_cast" = yes; then
24083
24084 cat >>confdefs.h <<\_ACEOF
24085 #define HAVE_CONST_CAST
24086 _ACEOF
24087
24088 fi
24089
24090 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
24091 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
24092 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
24093   echo $ECHO_N "(cached) $ECHO_C" >&6
24094 else
24095
24096  ac_ext=cpp
24097 ac_cpp='$CXXCPP $CPPFLAGS'
24098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24101
24102  cat >conftest.$ac_ext <<_ACEOF
24103 /* confdefs.h.  */
24104 _ACEOF
24105 cat confdefs.h >>conftest.$ac_ext
24106 cat >>conftest.$ac_ext <<_ACEOF
24107 /* end confdefs.h.  */
24108 #include <typeinfo>
24109 class Base { public : Base () {} virtual void f () = 0;};
24110 class Derived : public Base { public : Derived () {} virtual void f () {} };
24111 class Unrelated { public : Unrelated () {} };
24112 int g (Unrelated&) { return 0; }
24113 int
24114 main ()
24115 {
24116
24117 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126   *) ac_try_echo=$ac_try;;
24127 esac
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129   (eval "$ac_compile") 2>conftest.er1
24130   ac_status=$?
24131   grep -v '^ *+' conftest.er1 >conftest.err
24132   rm -f conftest.er1
24133   cat conftest.err >&5
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); } && {
24136          test -z "$ac_cxx_werror_flag" ||
24137          test ! -s conftest.err
24138        } && test -s conftest.$ac_objext; then
24139   ac_cv_cxx_reinterpret_cast=yes
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144         ac_cv_cxx_reinterpret_cast=no
24145 fi
24146
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24148  ac_ext=c
24149 ac_cpp='$CPP $CPPFLAGS'
24150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24153
24154
24155 fi
24156 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
24157 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
24158 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
24159
24160 cat >>confdefs.h <<\_ACEOF
24161 #define HAVE_REINTERPRET_CAST
24162 _ACEOF
24163
24164 fi
24165
24166 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
24167 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
24168 if test "${ac_cv_cxx_static_cast+set}" = set; then
24169   echo $ECHO_N "(cached) $ECHO_C" >&6
24170 else
24171
24172  ac_ext=cpp
24173 ac_cpp='$CXXCPP $CPPFLAGS'
24174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24177
24178  cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h.  */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h.  */
24184 #include <typeinfo>
24185 class Base { public : Base () {} virtual void f () = 0; };
24186 class Derived : public Base { public : Derived () {} virtual void f () {} };
24187 int g (Derived&) { return 0; }
24188 int
24189 main ()
24190 {
24191
24192 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
24193   ;
24194   return 0;
24195 }
24196 _ACEOF
24197 rm -f conftest.$ac_objext
24198 if { (ac_try="$ac_compile"
24199 case "(($ac_try" in
24200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201   *) ac_try_echo=$ac_try;;
24202 esac
24203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204   (eval "$ac_compile") 2>conftest.er1
24205   ac_status=$?
24206   grep -v '^ *+' conftest.er1 >conftest.err
24207   rm -f conftest.er1
24208   cat conftest.err >&5
24209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210   (exit $ac_status); } && {
24211          test -z "$ac_cxx_werror_flag" ||
24212          test ! -s conftest.err
24213        } && test -s conftest.$ac_objext; then
24214   ac_cv_cxx_static_cast=yes
24215 else
24216   echo "$as_me: failed program was:" >&5
24217 sed 's/^/| /' conftest.$ac_ext >&5
24218
24219         ac_cv_cxx_static_cast=no
24220 fi
24221
24222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24223  ac_ext=c
24224 ac_cpp='$CPP $CPPFLAGS'
24225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24228
24229
24230 fi
24231 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24232 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24233 if test "$ac_cv_cxx_static_cast" = yes; then
24234
24235 cat >>confdefs.h <<\_ACEOF
24236 #define HAVE_STATIC_CAST
24237 _ACEOF
24238
24239 fi
24240
24241
24242 if test "x$SUNCXX" = xyes; then
24243     CXXFLAGS="-features=tmplife $CXXFLAGS"
24244 fi
24245
24246 if test "x$SUNCC" = xyes; then
24247     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24248 fi
24249
24250 if test "x$SGICC" = "xyes"; then
24251     CFLAGS="-woff 3970 $CFLAGS"
24252 fi
24253 if test "x$SGICXX" = "xyes"; then
24254     CXXFLAGS="-woff 3970 $CXXFLAGS"
24255 fi
24256
24257 if test "x$HPCC" = "xyes"; then
24258                     CFLAGS="+W 2011,2450 $CFLAGS"
24259 fi
24260 if test "x$HPCXX" = "xyes"; then
24261             CXXFLAGS="+W 2340 $CXXFLAGS"
24262 fi
24263
24264 if test "x$COMPAQCXX" = "xyes"; then
24265                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24266 fi
24267
24268 ac_ext=cpp
24269 ac_cpp='$CXXCPP $CPPFLAGS'
24270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24273
24274
24275 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24276     if test "$wxUSE_UNICODE" = "yes"; then
24277         std_string="std::wstring"
24278         char_type="wchar_t"
24279     else
24280         std_string="std::string"
24281         char_type="char"
24282     fi
24283
24284         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24285 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24286 if test "${wx_cv_class_stdstring+set}" = set; then
24287   echo $ECHO_N "(cached) $ECHO_C" >&6
24288 else
24289
24290             cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296 #include <string>
24297 int
24298 main ()
24299 {
24300 $std_string foo;
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (ac_try="$ac_compile"
24307 case "(($ac_try" in
24308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309   *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312   (eval "$ac_compile") 2>conftest.er1
24313   ac_status=$?
24314   grep -v '^ *+' conftest.er1 >conftest.err
24315   rm -f conftest.er1
24316   cat conftest.err >&5
24317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } && {
24319          test -z "$ac_cxx_werror_flag" ||
24320          test ! -s conftest.err
24321        } && test -s conftest.$ac_objext; then
24322   wx_cv_class_stdstring=yes
24323 else
24324   echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327         wx_cv_class_stdstring=no
24328
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332
24333
24334 fi
24335 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24336 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24337
24338     if test "$wx_cv_class_stdstring" = yes; then
24339         if test "$wxUSE_UNICODE" = "yes"; then
24340             cat >>confdefs.h <<\_ACEOF
24341 #define HAVE_STD_WSTRING 1
24342 _ACEOF
24343
24344         fi
24345                     else
24346         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24347 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24348 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24349   echo $ECHO_N "(cached) $ECHO_C" >&6
24350 else
24351
24352                 cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358
24359                     #ifdef HAVE_WCHAR_H
24360                     #  ifdef __CYGWIN__
24361                     #    include <stddef.h>
24362                     #  endif
24363                     #  include <wchar.h>
24364                     #endif
24365                     #ifdef HAVE_STDLIB_H
24366                     #  include <stdlib.h>
24367                     #endif
24368                     #include <stdio.h>
24369                     #include <string>
24370
24371 int
24372 main ()
24373 {
24374 std::basic_string<$char_type> foo;
24375                      const $char_type* dummy = foo.c_str();
24376   ;
24377   return 0;
24378 }
24379 _ACEOF
24380 rm -f conftest.$ac_objext
24381 if { (ac_try="$ac_compile"
24382 case "(($ac_try" in
24383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384   *) ac_try_echo=$ac_try;;
24385 esac
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387   (eval "$ac_compile") 2>conftest.er1
24388   ac_status=$?
24389   grep -v '^ *+' conftest.er1 >conftest.err
24390   rm -f conftest.er1
24391   cat conftest.err >&5
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); } && {
24394          test -z "$ac_cxx_werror_flag" ||
24395          test ! -s conftest.err
24396        } && test -s conftest.$ac_objext; then
24397   wx_cv_class_stdbasicstring=yes
24398 else
24399   echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24401
24402         wx_cv_class_stdbasicstring=no
24403
24404 fi
24405
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407
24408
24409 fi
24410 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24411 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24412
24413         if test "$wx_cv_class_stdbasicstring" != yes; then
24414             if test "$wxUSE_STL" = "yes"; then
24415                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24416 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24417    { (exit 1); exit 1; }; }
24418             elif test "$wxUSE_STD_STRING" = "yes"; then
24419                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24420 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24421    { (exit 1); exit 1; }; }
24422             else
24423                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24424 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24425                 wxUSE_STD_STRING=no
24426             fi
24427         fi
24428     fi
24429 fi
24430
24431 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24432     { echo "$as_me:$LINENO: checking for std::istream" >&5
24433 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24434 if test "${ac_cv_type_std__istream+set}" = set; then
24435   echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437   cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h.  */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h.  */
24443 #include <iostream>
24444
24445 typedef std::istream ac__type_new_;
24446 int
24447 main ()
24448 {
24449 if ((ac__type_new_ *) 0)
24450   return 0;
24451 if (sizeof (ac__type_new_))
24452   return 0;
24453   ;
24454   return 0;
24455 }
24456 _ACEOF
24457 rm -f conftest.$ac_objext
24458 if { (ac_try="$ac_compile"
24459 case "(($ac_try" in
24460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461   *) ac_try_echo=$ac_try;;
24462 esac
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464   (eval "$ac_compile") 2>conftest.er1
24465   ac_status=$?
24466   grep -v '^ *+' conftest.er1 >conftest.err
24467   rm -f conftest.er1
24468   cat conftest.err >&5
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } && {
24471          test -z "$ac_cxx_werror_flag" ||
24472          test ! -s conftest.err
24473        } && test -s conftest.$ac_objext; then
24474   ac_cv_type_std__istream=yes
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479         ac_cv_type_std__istream=no
24480 fi
24481
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 fi
24484 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24485 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24486 if test $ac_cv_type_std__istream = yes; then
24487
24488 cat >>confdefs.h <<_ACEOF
24489 #define HAVE_STD__ISTREAM 1
24490 _ACEOF
24491
24492
24493 else
24494   wxUSE_STD_IOSTREAM=no
24495 fi
24496 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24497 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24498 if test "${ac_cv_type_std__ostream+set}" = set; then
24499   echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501   cat >conftest.$ac_ext <<_ACEOF
24502 /* confdefs.h.  */
24503 _ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h.  */
24507 #include <iostream>
24508
24509 typedef std::ostream ac__type_new_;
24510 int
24511 main ()
24512 {
24513 if ((ac__type_new_ *) 0)
24514   return 0;
24515 if (sizeof (ac__type_new_))
24516   return 0;
24517   ;
24518   return 0;
24519 }
24520 _ACEOF
24521 rm -f conftest.$ac_objext
24522 if { (ac_try="$ac_compile"
24523 case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_compile") 2>conftest.er1
24529   ac_status=$?
24530   grep -v '^ *+' conftest.er1 >conftest.err
24531   rm -f conftest.er1
24532   cat conftest.err >&5
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); } && {
24535          test -z "$ac_cxx_werror_flag" ||
24536          test ! -s conftest.err
24537        } && test -s conftest.$ac_objext; then
24538   ac_cv_type_std__ostream=yes
24539 else
24540   echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542
24543         ac_cv_type_std__ostream=no
24544 fi
24545
24546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24547 fi
24548 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24549 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24550 if test $ac_cv_type_std__ostream = yes; then
24551
24552 cat >>confdefs.h <<_ACEOF
24553 #define HAVE_STD__OSTREAM 1
24554 _ACEOF
24555
24556
24557 else
24558   wxUSE_STD_IOSTREAM=no
24559 fi
24560
24561
24562     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24563         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24564             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24565 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24566    { (exit 1); exit 1; }; }
24567         else
24568             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24569 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24570         fi
24571     fi
24572 fi
24573
24574 if test "$wxUSE_STL" = "yes"; then
24575         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24576 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24577 if test "${wx_cv_lib_stl+set}" = set; then
24578   echo $ECHO_N "(cached) $ECHO_C" >&6
24579 else
24580   cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h.  */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h.  */
24586 #include <string>
24587             #include <functional>
24588             #include <algorithm>
24589             #include <vector>
24590             #include <list>
24591 int
24592 main ()
24593 {
24594 std::vector<int> moo;
24595              std::list<int> foo;
24596              std::vector<int>::iterator it =
24597                  std::find_if(moo.begin(), moo.end(),
24598                               std::bind2nd(std::less<int>(), 3));
24599   ;
24600   return 0;
24601 }
24602 _ACEOF
24603 rm -f conftest.$ac_objext
24604 if { (ac_try="$ac_compile"
24605 case "(($ac_try" in
24606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607   *) ac_try_echo=$ac_try;;
24608 esac
24609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610   (eval "$ac_compile") 2>conftest.er1
24611   ac_status=$?
24612   grep -v '^ *+' conftest.er1 >conftest.err
24613   rm -f conftest.er1
24614   cat conftest.err >&5
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); } && {
24617          test -z "$ac_cxx_werror_flag" ||
24618          test ! -s conftest.err
24619        } && test -s conftest.$ac_objext; then
24620   wx_cv_lib_stl=yes
24621 else
24622   echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24624
24625         wx_cv_lib_stl=no
24626
24627 fi
24628
24629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24630
24631 fi
24632 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24633 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24634
24635     if test "$wx_cv_lib_stl" != yes; then
24636          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24637 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24638    { (exit 1); exit 1; }; }
24639     fi
24640
24641         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24642 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24643 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646   cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h.  */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h.  */
24652 #include <string>
24653 int
24654 main ()
24655 {
24656 std::string foo, bar;
24657             foo.compare(bar);
24658             foo.compare(1, 1, bar);
24659             foo.compare(1, 1, bar, 1, 1);
24660             foo.compare("");
24661             foo.compare(1, 1, "");
24662             foo.compare(1, 1, "", 2);
24663   ;
24664   return 0;
24665 }
24666 _ACEOF
24667 rm -f conftest.$ac_objext
24668 if { (ac_try="$ac_compile"
24669 case "(($ac_try" in
24670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671   *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674   (eval "$ac_compile") 2>conftest.er1
24675   ac_status=$?
24676   grep -v '^ *+' conftest.er1 >conftest.err
24677   rm -f conftest.er1
24678   cat conftest.err >&5
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); } && {
24681          test -z "$ac_cxx_werror_flag" ||
24682          test ! -s conftest.err
24683        } && test -s conftest.$ac_objext; then
24684   wx_cv_func_stdstring_compare=yes
24685 else
24686   echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24688
24689         wx_cv_func_stdstring_compare=no
24690
24691 fi
24692
24693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24694
24695 fi
24696 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24697 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24698
24699     if test "$wx_cv_func_stdstring_compare" = yes; then
24700         cat >>confdefs.h <<\_ACEOF
24701 #define HAVE_STD_STRING_COMPARE 1
24702 _ACEOF
24703
24704     fi
24705
24706     if test "$wx_cv_class_gnuhashmapset" = yes; then
24707          cat >>confdefs.h <<\_ACEOF
24708 #define HAVE_EXT_HASH_MAP 1
24709 _ACEOF
24710
24711          cat >>confdefs.h <<\_ACEOF
24712 #define HAVE_GNU_CXX_HASH_MAP 1
24713 _ACEOF
24714
24715     fi
24716
24717     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24718 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24719 if test "${ac_cv_header_unordered_map+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728
24729
24730
24731 #include <unordered_map>
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_compile") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } && {
24747          test -z "$ac_cxx_werror_flag" ||
24748          test ! -s conftest.err
24749        } && test -s conftest.$ac_objext; then
24750   ac_cv_header_unordered_map=yes
24751 else
24752   echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755         ac_cv_header_unordered_map=no
24756 fi
24757
24758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24759 fi
24760 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24761 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24762 if test $ac_cv_header_unordered_map = yes; then
24763   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24764 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24765 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h.  */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h.  */
24774 #include <unordered_map>
24775                 #include <unordered_set>
24776 int
24777 main ()
24778 {
24779 std::unordered_map<double*, char*> test1;
24780                  std::unordered_set<char*> test2;
24781   ;
24782   return 0;
24783 }
24784 _ACEOF
24785 rm -f conftest.$ac_objext
24786 if { (ac_try="$ac_compile"
24787 case "(($ac_try" in
24788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789   *) ac_try_echo=$ac_try;;
24790 esac
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792   (eval "$ac_compile") 2>conftest.er1
24793   ac_status=$?
24794   grep -v '^ *+' conftest.er1 >conftest.err
24795   rm -f conftest.er1
24796   cat conftest.err >&5
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); } && {
24799          test -z "$ac_cxx_werror_flag" ||
24800          test ! -s conftest.err
24801        } && test -s conftest.$ac_objext; then
24802   wx_cv_class_stdunorderedmapset=yes
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807         wx_cv_class_stdunorderedmapset=no
24808 fi
24809
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811
24812
24813 fi
24814 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24815 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24816 fi
24817
24818
24819
24820     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24821          cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_STD_UNORDERED_MAP 1
24823 _ACEOF
24824
24825          cat >>confdefs.h <<\_ACEOF
24826 #define HAVE_STD_UNORDERED_SET 1
24827 _ACEOF
24828
24829     else
24830         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24831 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24832 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24833   echo $ECHO_N "(cached) $ECHO_C" >&6
24834 else
24835   cat >conftest.$ac_ext <<_ACEOF
24836 /* confdefs.h.  */
24837 _ACEOF
24838 cat confdefs.h >>conftest.$ac_ext
24839 cat >>conftest.$ac_ext <<_ACEOF
24840 /* end confdefs.h.  */
24841
24842
24843
24844 #include <tr1/unordered_map>
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850   *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853   (eval "$ac_compile") 2>conftest.er1
24854   ac_status=$?
24855   grep -v '^ *+' conftest.er1 >conftest.err
24856   rm -f conftest.er1
24857   cat conftest.err >&5
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); } && {
24860          test -z "$ac_cxx_werror_flag" ||
24861          test ! -s conftest.err
24862        } && test -s conftest.$ac_objext; then
24863   ac_cv_header_tr1_unordered_map=yes
24864 else
24865   echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868         ac_cv_header_tr1_unordered_map=no
24869 fi
24870
24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 fi
24873 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24874 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24875 if test $ac_cv_header_tr1_unordered_map = yes; then
24876   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24877 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24878 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881   cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887 #include <tr1/unordered_map>
24888                     #include <tr1/unordered_set>
24889 int
24890 main ()
24891 {
24892 std::tr1::unordered_map<double*, char*> test1;
24893                      std::tr1::unordered_set<char*> test2;
24894             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24895             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24896             #endif
24897   ;
24898   return 0;
24899 }
24900 _ACEOF
24901 rm -f conftest.$ac_objext
24902 if { (ac_try="$ac_compile"
24903 case "(($ac_try" in
24904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905   *) ac_try_echo=$ac_try;;
24906 esac
24907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908   (eval "$ac_compile") 2>conftest.er1
24909   ac_status=$?
24910   grep -v '^ *+' conftest.er1 >conftest.err
24911   rm -f conftest.er1
24912   cat conftest.err >&5
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); } && {
24915          test -z "$ac_cxx_werror_flag" ||
24916          test ! -s conftest.err
24917        } && test -s conftest.$ac_objext; then
24918   wx_cv_class_tr1unorderedmapset=yes
24919 else
24920   echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24922
24923         wx_cv_class_tr1unorderedmapset=no
24924 fi
24925
24926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24927
24928
24929 fi
24930 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
24931 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
24932 fi
24933
24934
24935
24936         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
24937             cat >>confdefs.h <<\_ACEOF
24938 #define HAVE_TR1_UNORDERED_MAP 1
24939 _ACEOF
24940
24941             cat >>confdefs.h <<\_ACEOF
24942 #define HAVE_TR1_UNORDERED_SET 1
24943 _ACEOF
24944
24945         else
24946                         { echo "$as_me:$LINENO: checking for hash_map" >&5
24947 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
24948 if test "${ac_cv_header_hash_map+set}" = set; then
24949   echo $ECHO_N "(cached) $ECHO_C" >&6
24950 else
24951   cat >conftest.$ac_ext <<_ACEOF
24952 /* confdefs.h.  */
24953 _ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h.  */
24957
24958
24959
24960 #include <hash_map>
24961 _ACEOF
24962 rm -f conftest.$ac_objext
24963 if { (ac_try="$ac_compile"
24964 case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969   (eval "$ac_compile") 2>conftest.er1
24970   ac_status=$?
24971   grep -v '^ *+' conftest.er1 >conftest.err
24972   rm -f conftest.er1
24973   cat conftest.err >&5
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); } && {
24976          test -z "$ac_cxx_werror_flag" ||
24977          test ! -s conftest.err
24978        } && test -s conftest.$ac_objext; then
24979   ac_cv_header_hash_map=yes
24980 else
24981   echo "$as_me: failed program was:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24983
24984         ac_cv_header_hash_map=no
24985 fi
24986
24987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24988 fi
24989 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24990 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
24991 if test $ac_cv_header_hash_map = yes; then
24992   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
24993 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
24994 if test "${wx_cv_class_stdhashmapset+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003 #include <hash_map>
25004                         #include <hash_set>
25005 int
25006 main ()
25007 {
25008 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25009                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25010   ;
25011   return 0;
25012 }
25013 _ACEOF
25014 rm -f conftest.$ac_objext
25015 if { (ac_try="$ac_compile"
25016 case "(($ac_try" in
25017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018   *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021   (eval "$ac_compile") 2>conftest.er1
25022   ac_status=$?
25023   grep -v '^ *+' conftest.er1 >conftest.err
25024   rm -f conftest.er1
25025   cat conftest.err >&5
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); } && {
25028          test -z "$ac_cxx_werror_flag" ||
25029          test ! -s conftest.err
25030        } && test -s conftest.$ac_objext; then
25031   wx_cv_class_stdhashmapset=yes
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036         wx_cv_class_stdhashmapset=no
25037 fi
25038
25039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25040
25041
25042 fi
25043 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25044 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25045 fi
25046
25047
25048
25049             if test "$wx_cv_class_stdhashmapset" = yes; then
25050                 cat >>confdefs.h <<\_ACEOF
25051 #define HAVE_HASH_MAP 1
25052 _ACEOF
25053
25054                 cat >>confdefs.h <<\_ACEOF
25055 #define HAVE_STD_HASH_MAP 1
25056 _ACEOF
25057
25058             fi
25059
25060             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25061 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25062 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25063   echo $ECHO_N "(cached) $ECHO_C" >&6
25064 else
25065   cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h.  */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h.  */
25071
25072
25073
25074 #include <ext/hash_map>
25075 _ACEOF
25076 rm -f conftest.$ac_objext
25077 if { (ac_try="$ac_compile"
25078 case "(($ac_try" in
25079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080   *) ac_try_echo=$ac_try;;
25081 esac
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083   (eval "$ac_compile") 2>conftest.er1
25084   ac_status=$?
25085   grep -v '^ *+' conftest.er1 >conftest.err
25086   rm -f conftest.er1
25087   cat conftest.err >&5
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); } && {
25090          test -z "$ac_cxx_werror_flag" ||
25091          test ! -s conftest.err
25092        } && test -s conftest.$ac_objext; then
25093   ac_cv_header_ext_hash_map=yes
25094 else
25095   echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25097
25098         ac_cv_header_ext_hash_map=no
25099 fi
25100
25101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 fi
25103 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25104 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25105 if test $ac_cv_header_ext_hash_map = yes; then
25106   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25107 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25108 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25109   echo $ECHO_N "(cached) $ECHO_C" >&6
25110 else
25111   cat >conftest.$ac_ext <<_ACEOF
25112 /* confdefs.h.  */
25113 _ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h.  */
25117 #include <ext/hash_map>
25118                         #include <ext/hash_set>
25119 int
25120 main ()
25121 {
25122 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25123                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25124   ;
25125   return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest.$ac_objext
25129 if { (ac_try="$ac_compile"
25130 case "(($ac_try" in
25131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132   *) ac_try_echo=$ac_try;;
25133 esac
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135   (eval "$ac_compile") 2>conftest.er1
25136   ac_status=$?
25137   grep -v '^ *+' conftest.er1 >conftest.err
25138   rm -f conftest.er1
25139   cat conftest.err >&5
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); } && {
25142          test -z "$ac_cxx_werror_flag" ||
25143          test ! -s conftest.err
25144        } && test -s conftest.$ac_objext; then
25145   wx_cv_class_gnuhashmapset=yes
25146 else
25147   echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150         wx_cv_class_gnuhashmapset=no
25151 fi
25152
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154
25155
25156 fi
25157 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25158 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25159 fi
25160
25161
25162
25163         fi
25164     fi
25165 fi
25166
25167
25168
25169   if test -n "$GCC"; then
25170     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25171 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25172     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25173   echo $ECHO_N "(cached) $ECHO_C" >&6
25174 else
25175
25176       cat >conftest.$ac_ext <<_ACEOF
25177 /* confdefs.h.  */
25178 _ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h.  */
25182
25183 int
25184 main ()
25185 {
25186
25187           unsigned int value=0;
25188           /* wxAtomicInc doesn't use return value here */
25189           __sync_fetch_and_add(&value, 2);
25190           __sync_sub_and_fetch(&value, 1);
25191           /* but wxAtomicDec does, so mimic that: */
25192           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25193
25194   ;
25195   return 0;
25196 }
25197 _ACEOF
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202   *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205   (eval "$ac_link") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } && {
25212          test -z "$ac_cxx_werror_flag" ||
25213          test ! -s conftest.err
25214        } && test -s conftest$ac_exeext &&
25215        $as_test_x conftest$ac_exeext; then
25216   wx_cv_cc_gcc_atomic_builtins=yes
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221         wx_cv_cc_gcc_atomic_builtins=no
25222 fi
25223
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225       conftest$ac_exeext conftest.$ac_ext
25226
25227 fi
25228
25229     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25230 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25231     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25232       cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_GCC_ATOMIC_BUILTINS 1
25234 _ACEOF
25235
25236     fi
25237   fi
25238
25239
25240 ac_ext=c
25241 ac_cpp='$CPP $CPPFLAGS'
25242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25245
25246
25247
25248 SEARCH_INCLUDE="\
25249     /usr/local/include        \
25250     /usr/local/X11/include    \
25251     /usr/local/include/X11    \
25252     /usr/local/X11R6/include  \
25253     /usr/local/include/X11R6  \
25254                               \
25255     /usr/Motif-2.1/include    \
25256     /usr/Motif-1.2/include    \
25257     /usr/include/Motif1.2     \
25258                               \
25259     /usr/dt/include           \
25260     /usr/openwin/include      \
25261                               \
25262     /usr/include/Xm           \
25263                               \
25264     /usr/X11R6/include        \
25265     /usr/X11R6.4/include      \
25266                               \
25267     /usr/include/X11R6        \
25268                               \
25269     /usr/X11/include          \
25270     /usr/include/X11          \
25271                               \
25272     /usr/XFree86/include/X11  \
25273     /usr/pkg/include          \
25274                               \
25275     /usr/local/X1R5/include  \
25276     /usr/local/include/X11R5  \
25277     /usr/X11R5/include        \
25278     /usr/include/X11R5        \
25279                               \
25280     /usr/local/X11R4/include  \
25281     /usr/local/include/X11R4  \
25282     /usr/X11R4/include        \
25283     /usr/include/X11R4        \
25284                               \
25285     /usr/openwin/share/include"
25286
25287 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25288 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25289
25290 case "${host}" in
25291     *-*-irix6* )
25292         if test "${wx_cv_std_libpath+set}" = set; then
25293   echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295
25296                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25297                     for e in a so sl dylib dll.a; do
25298                         libc="$d/libc.$e"
25299                         if test -f $libc; then
25300                             save_LIBS="$LIBS"
25301                             LIBS="$libc"
25302                             cat >conftest.$ac_ext <<_ACEOF
25303 int main() { return 0; }
25304 _ACEOF
25305 rm -f conftest.$ac_objext conftest$ac_exeext
25306 if { (ac_try="$ac_link"
25307 case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312   (eval "$ac_link") 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } && {
25319          test -z "$ac_c_werror_flag" ||
25320          test ! -s conftest.err
25321        } && test -s conftest$ac_exeext &&
25322        $as_test_x conftest$ac_exeext; then
25323   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328
25329 fi
25330
25331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25332       conftest$ac_exeext conftest.$ac_ext
25333                             LIBS="$save_LIBS"
25334                             if test "x$wx_cv_std_libpath" != "x"; then
25335                                 break 2
25336                             fi
25337                         fi
25338                     done
25339                 done
25340                 if test "x$wx_cv_std_libpath" = "x"; then
25341                     wx_cv_std_libpath="lib"
25342                 fi
25343
25344
25345 fi
25346
25347         ;;
25348
25349     *-*-solaris2* )
25350                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25351             wx_cv_std_libpath="lib/64"
25352         else
25353             wx_cv_std_libpath="lib"
25354         fi
25355         ;;
25356
25357     *-*-linux* )
25358                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25359                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25360             wx_cv_std_libpath="lib64"
25361         else
25362             wx_cv_std_libpath="lib"
25363         fi
25364         ;;
25365
25366     *)
25367         wx_cv_std_libpath="lib";
25368         ;;
25369 esac
25370
25371 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25372 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25373
25374 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25375
25376 if test "$build" != "$host" -a "$GCC" = yes; then
25377                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25378         cross_root=`dirname $cross_root`
25379         cross_root=`dirname $cross_root`
25380
25381                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25382         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25383         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25384
25385                 if test -z "$PKG_CONFIG_PATH"; then
25386             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25387             export PKG_CONFIG_PATH
25388         fi
25389
25390                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25391
25392 ac_find_includes=
25393 for ac_dir in $SEARCH_INCLUDE /usr/include;
25394   do
25395     if test -f "$ac_dir/X11/Intrinsic.h"; then
25396       ac_find_includes=$ac_dir
25397       break
25398     fi
25399   done
25400
25401             x_includes=$ac_find_includes
25402         fi
25403         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25404
25405   ac_find_libraries=
25406   for ac_dir in $SEARCH_LIB;
25407   do
25408     for ac_extension in a so sl dylib dll.a; do
25409       if test -f "$ac_dir/libXt.$ac_extension"; then
25410         ac_find_libraries=$ac_dir
25411         break 2
25412       fi
25413     done
25414   done
25415
25416             x_libraries=$ac_find_libraries
25417         fi
25418     fi
25419 fi
25420
25421
25422 cat >confcache <<\_ACEOF
25423 # This file is a shell script that caches the results of configure
25424 # tests run on this system so they can be shared between configure
25425 # scripts and configure runs, see configure's option --config-cache.
25426 # It is not useful on other systems.  If it contains results you don't
25427 # want to keep, you may remove or edit it.
25428 #
25429 # config.status only pays attention to the cache file if you give it
25430 # the --recheck option to rerun configure.
25431 #
25432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25434 # following values.
25435
25436 _ACEOF
25437
25438 # The following way of writing the cache mishandles newlines in values,
25439 # but we know of no workaround that is simple, portable, and efficient.
25440 # So, we kill variables containing newlines.
25441 # Ultrix sh set writes to stderr and can't be redirected directly,
25442 # and sets the high bit in the cache file unless we assign to the vars.
25443 (
25444   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25445     eval ac_val=\$$ac_var
25446     case $ac_val in #(
25447     *${as_nl}*)
25448       case $ac_var in #(
25449       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25450 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25451       esac
25452       case $ac_var in #(
25453       _ | IFS | as_nl) ;; #(
25454       *) $as_unset $ac_var ;;
25455       esac ;;
25456     esac
25457   done
25458
25459   (set) 2>&1 |
25460     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25461     *${as_nl}ac_space=\ *)
25462       # `set' does not quote correctly, so add quotes (double-quote
25463       # substitution turns \\\\ into \\, and sed turns \\ into \).
25464       sed -n \
25465         "s/'/'\\\\''/g;
25466           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25467       ;; #(
25468     *)
25469       # `set' quotes correctly as required by POSIX, so do not add quotes.
25470       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25471       ;;
25472     esac |
25473     sort
25474 ) |
25475   sed '
25476      /^ac_cv_env_/b end
25477      t clear
25478      :clear
25479      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25480      t end
25481      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25482      :end' >>confcache
25483 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25484   if test -w "$cache_file"; then
25485     test "x$cache_file" != "x/dev/null" &&
25486       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25487 echo "$as_me: updating cache $cache_file" >&6;}
25488     cat confcache >$cache_file
25489   else
25490     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25491 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25492   fi
25493 fi
25494 rm -f confcache
25495
25496 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25497     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25498 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25499 if test "${wx_cv_lib_glibc21+set}" = set; then
25500   echo $ECHO_N "(cached) $ECHO_C" >&6
25501 else
25502
25503         cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509 #include <features.h>
25510 int
25511 main ()
25512 {
25513
25514                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25515                 not glibc 2.1
25516                 #endif
25517
25518   ;
25519   return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (ac_try="$ac_compile"
25524 case "(($ac_try" in
25525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526   *) ac_try_echo=$ac_try;;
25527 esac
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529   (eval "$ac_compile") 2>conftest.er1
25530   ac_status=$?
25531   grep -v '^ *+' conftest.er1 >conftest.err
25532   rm -f conftest.er1
25533   cat conftest.err >&5
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); } && {
25536          test -z "$ac_c_werror_flag" ||
25537          test ! -s conftest.err
25538        } && test -s conftest.$ac_objext; then
25539
25540                 wx_cv_lib_glibc21=yes
25541
25542 else
25543   echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546
25547                 wx_cv_lib_glibc21=no
25548
25549
25550 fi
25551
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553
25554 fi
25555 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25556 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25557     if test "$wx_cv_lib_glibc21" = "yes"; then
25558         cat >>confdefs.h <<\_ACEOF
25559 #define wxHAVE_GLIBC2 1
25560 _ACEOF
25561
25562     fi
25563 fi
25564
25565 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25566     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25567         cat >>confdefs.h <<\_ACEOF
25568 #define _GNU_SOURCE 1
25569 _ACEOF
25570
25571     fi
25572 fi
25573
25574 have_cos=0
25575 have_floor=0
25576
25577 for ac_func in cos
25578 do
25579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25583   echo $ECHO_N "(cached) $ECHO_C" >&6
25584 else
25585   cat >conftest.$ac_ext <<_ACEOF
25586 /* confdefs.h.  */
25587 _ACEOF
25588 cat confdefs.h >>conftest.$ac_ext
25589 cat >>conftest.$ac_ext <<_ACEOF
25590 /* end confdefs.h.  */
25591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25593 #define $ac_func innocuous_$ac_func
25594
25595 /* System header to define __stub macros and hopefully few prototypes,
25596     which can conflict with char $ac_func (); below.
25597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25598     <limits.h> exists even on freestanding compilers.  */
25599
25600 #ifdef __STDC__
25601 # include <limits.h>
25602 #else
25603 # include <assert.h>
25604 #endif
25605
25606 #undef $ac_func
25607
25608 /* Override any GCC internal prototype to avoid an error.
25609    Use char because int might match the return type of a GCC
25610    builtin and then its argument prototype would still apply.  */
25611 #ifdef __cplusplus
25612 extern "C"
25613 #endif
25614 char $ac_func ();
25615 /* The GNU C library defines this for functions which it implements
25616     to always fail with ENOSYS.  Some functions are actually named
25617     something starting with __ and the normal name is an alias.  */
25618 #if defined __stub_$ac_func || defined __stub___$ac_func
25619 choke me
25620 #endif
25621
25622 int
25623 main ()
25624 {
25625 return $ac_func ();
25626   ;
25627   return 0;
25628 }
25629 _ACEOF
25630 rm -f conftest.$ac_objext conftest$ac_exeext
25631 if { (ac_try="$ac_link"
25632 case "(($ac_try" in
25633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634   *) ac_try_echo=$ac_try;;
25635 esac
25636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637   (eval "$ac_link") 2>conftest.er1
25638   ac_status=$?
25639   grep -v '^ *+' conftest.er1 >conftest.err
25640   rm -f conftest.er1
25641   cat conftest.err >&5
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); } && {
25644          test -z "$ac_c_werror_flag" ||
25645          test ! -s conftest.err
25646        } && test -s conftest$ac_exeext &&
25647        $as_test_x conftest$ac_exeext; then
25648   eval "$as_ac_var=yes"
25649 else
25650   echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25652
25653         eval "$as_ac_var=no"
25654 fi
25655
25656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25657       conftest$ac_exeext conftest.$ac_ext
25658 fi
25659 ac_res=`eval echo '${'$as_ac_var'}'`
25660                { echo "$as_me:$LINENO: result: $ac_res" >&5
25661 echo "${ECHO_T}$ac_res" >&6; }
25662 if test `eval echo '${'$as_ac_var'}'` = yes; then
25663   cat >>confdefs.h <<_ACEOF
25664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25665 _ACEOF
25666  have_cos=1
25667 fi
25668 done
25669
25670
25671 for ac_func in floor
25672 do
25673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25677   echo $ECHO_N "(cached) $ECHO_C" >&6
25678 else
25679   cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25687 #define $ac_func innocuous_$ac_func
25688
25689 /* System header to define __stub macros and hopefully few prototypes,
25690     which can conflict with char $ac_func (); below.
25691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25692     <limits.h> exists even on freestanding compilers.  */
25693
25694 #ifdef __STDC__
25695 # include <limits.h>
25696 #else
25697 # include <assert.h>
25698 #endif
25699
25700 #undef $ac_func
25701
25702 /* Override any GCC internal prototype to avoid an error.
25703    Use char because int might match the return type of a GCC
25704    builtin and then its argument prototype would still apply.  */
25705 #ifdef __cplusplus
25706 extern "C"
25707 #endif
25708 char $ac_func ();
25709 /* The GNU C library defines this for functions which it implements
25710     to always fail with ENOSYS.  Some functions are actually named
25711     something starting with __ and the normal name is an alias.  */
25712 #if defined __stub_$ac_func || defined __stub___$ac_func
25713 choke me
25714 #endif
25715
25716 int
25717 main ()
25718 {
25719 return $ac_func ();
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728   *) ac_try_echo=$ac_try;;
25729 esac
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731   (eval "$ac_link") 2>conftest.er1
25732   ac_status=$?
25733   grep -v '^ *+' conftest.er1 >conftest.err
25734   rm -f conftest.er1
25735   cat conftest.err >&5
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); } && {
25738          test -z "$ac_c_werror_flag" ||
25739          test ! -s conftest.err
25740        } && test -s conftest$ac_exeext &&
25741        $as_test_x conftest$ac_exeext; then
25742   eval "$as_ac_var=yes"
25743 else
25744   echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25746
25747         eval "$as_ac_var=no"
25748 fi
25749
25750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25751       conftest$ac_exeext conftest.$ac_ext
25752 fi
25753 ac_res=`eval echo '${'$as_ac_var'}'`
25754                { echo "$as_me:$LINENO: result: $ac_res" >&5
25755 echo "${ECHO_T}$ac_res" >&6; }
25756 if test `eval echo '${'$as_ac_var'}'` = yes; then
25757   cat >>confdefs.h <<_ACEOF
25758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25759 _ACEOF
25760  have_floor=1
25761 fi
25762 done
25763
25764 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25765 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25766 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25767     { echo "$as_me:$LINENO: result: yes" >&5
25768 echo "${ECHO_T}yes" >&6; }
25769 else
25770     { echo "$as_me:$LINENO: result: no" >&5
25771 echo "${ECHO_T}no" >&6; }
25772     LIBS="$LIBS -lm"
25773     # use different functions to avoid configure caching
25774     have_sin=0
25775     have_ceil=0
25776
25777 for ac_func in sin
25778 do
25779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25783   echo $ECHO_N "(cached) $ECHO_C" >&6
25784 else
25785   cat >conftest.$ac_ext <<_ACEOF
25786 /* confdefs.h.  */
25787 _ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h.  */
25791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25793 #define $ac_func innocuous_$ac_func
25794
25795 /* System header to define __stub macros and hopefully few prototypes,
25796     which can conflict with char $ac_func (); below.
25797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25798     <limits.h> exists even on freestanding compilers.  */
25799
25800 #ifdef __STDC__
25801 # include <limits.h>
25802 #else
25803 # include <assert.h>
25804 #endif
25805
25806 #undef $ac_func
25807
25808 /* Override any GCC internal prototype to avoid an error.
25809    Use char because int might match the return type of a GCC
25810    builtin and then its argument prototype would still apply.  */
25811 #ifdef __cplusplus
25812 extern "C"
25813 #endif
25814 char $ac_func ();
25815 /* The GNU C library defines this for functions which it implements
25816     to always fail with ENOSYS.  Some functions are actually named
25817     something starting with __ and the normal name is an alias.  */
25818 #if defined __stub_$ac_func || defined __stub___$ac_func
25819 choke me
25820 #endif
25821
25822 int
25823 main ()
25824 {
25825 return $ac_func ();
25826   ;
25827   return 0;
25828 }
25829 _ACEOF
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837   (eval "$ac_link") 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } && {
25844          test -z "$ac_c_werror_flag" ||
25845          test ! -s conftest.err
25846        } && test -s conftest$ac_exeext &&
25847        $as_test_x conftest$ac_exeext; then
25848   eval "$as_ac_var=yes"
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853         eval "$as_ac_var=no"
25854 fi
25855
25856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25857       conftest$ac_exeext conftest.$ac_ext
25858 fi
25859 ac_res=`eval echo '${'$as_ac_var'}'`
25860                { echo "$as_me:$LINENO: result: $ac_res" >&5
25861 echo "${ECHO_T}$ac_res" >&6; }
25862 if test `eval echo '${'$as_ac_var'}'` = yes; then
25863   cat >>confdefs.h <<_ACEOF
25864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25865 _ACEOF
25866  have_sin=1
25867 fi
25868 done
25869
25870
25871 for ac_func in ceil
25872 do
25873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25887 #define $ac_func innocuous_$ac_func
25888
25889 /* System header to define __stub macros and hopefully few prototypes,
25890     which can conflict with char $ac_func (); below.
25891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25892     <limits.h> exists even on freestanding compilers.  */
25893
25894 #ifdef __STDC__
25895 # include <limits.h>
25896 #else
25897 # include <assert.h>
25898 #endif
25899
25900 #undef $ac_func
25901
25902 /* Override any GCC internal prototype to avoid an error.
25903    Use char because int might match the return type of a GCC
25904    builtin and then its argument prototype would still apply.  */
25905 #ifdef __cplusplus
25906 extern "C"
25907 #endif
25908 char $ac_func ();
25909 /* The GNU C library defines this for functions which it implements
25910     to always fail with ENOSYS.  Some functions are actually named
25911     something starting with __ and the normal name is an alias.  */
25912 #if defined __stub_$ac_func || defined __stub___$ac_func
25913 choke me
25914 #endif
25915
25916 int
25917 main ()
25918 {
25919 return $ac_func ();
25920   ;
25921   return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (ac_try="$ac_link"
25926 case "(($ac_try" in
25927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928   *) ac_try_echo=$ac_try;;
25929 esac
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931   (eval "$ac_link") 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && {
25938          test -z "$ac_c_werror_flag" ||
25939          test ! -s conftest.err
25940        } && test -s conftest$ac_exeext &&
25941        $as_test_x conftest$ac_exeext; then
25942   eval "$as_ac_var=yes"
25943 else
25944   echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25946
25947         eval "$as_ac_var=no"
25948 fi
25949
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951       conftest$ac_exeext conftest.$ac_ext
25952 fi
25953 ac_res=`eval echo '${'$as_ac_var'}'`
25954                { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25956 if test `eval echo '${'$as_ac_var'}'` = yes; then
25957   cat >>confdefs.h <<_ACEOF
25958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25959 _ACEOF
25960  have_ceil=1
25961 fi
25962 done
25963
25964     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25965 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
25966     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25967         { echo "$as_me:$LINENO: result: yes" >&5
25968 echo "${ECHO_T}yes" >&6; }
25969     else
25970         { echo "$as_me:$LINENO: result: no" >&5
25971 echo "${ECHO_T}no" >&6; }
25972         # not sure we should warn the user, crash, etc.
25973     fi
25974 fi
25975
25976 ac_ext=cpp
25977 ac_cpp='$CXXCPP $CPPFLAGS'
25978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25981
25982 if test "wxUSE_UNICODE" = "yes"; then
25983
25984   for wx_func in wcstoull
25985   do
25986     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25987 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25988 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991
25992         cat >conftest.$ac_ext <<_ACEOF
25993
25994             /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999
26000
26001                 $ac_includes_default
26002
26003 int
26004 main ()
26005 {
26006
26007                 #ifndef $wx_func
26008                   &$wx_func;
26009                 #endif
26010
26011
26012   ;
26013   return 0;
26014 }
26015
26016 _ACEOF
26017 rm -f conftest.$ac_objext conftest$ac_exeext
26018 if { (ac_try="$ac_link"
26019 case "(($ac_try" in
26020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021   *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024   (eval "$ac_link") 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } && {
26031          test -z "$ac_cxx_werror_flag" ||
26032          test ! -s conftest.err
26033        } && test -s conftest$ac_exeext &&
26034        $as_test_x conftest$ac_exeext; then
26035   eval wx_cv_func_$wx_func=yes
26036 else
26037   echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040         eval wx_cv_func_$wx_func=no
26041 fi
26042
26043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26044       conftest$ac_exeext conftest.$ac_ext
26045
26046 fi
26047 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26048                { echo "$as_me:$LINENO: result: $ac_res" >&5
26049 echo "${ECHO_T}$ac_res" >&6; }
26050
26051     if eval test \$wx_cv_func_$wx_func = yes
26052     then
26053       cat >>confdefs.h <<_ACEOF
26054 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26055 _ACEOF
26056
26057
26058     else
26059       :
26060
26061     fi
26062   done
26063
26064 else
26065
26066   for wx_func in strtoull
26067   do
26068     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26069 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26070 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073
26074         cat >conftest.$ac_ext <<_ACEOF
26075
26076             /* confdefs.h.  */
26077 _ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h.  */
26081
26082
26083                 $ac_includes_default
26084
26085 int
26086 main ()
26087 {
26088
26089                 #ifndef $wx_func
26090                   &$wx_func;
26091                 #endif
26092
26093
26094   ;
26095   return 0;
26096 }
26097
26098 _ACEOF
26099 rm -f conftest.$ac_objext conftest$ac_exeext
26100 if { (ac_try="$ac_link"
26101 case "(($ac_try" in
26102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103   *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106   (eval "$ac_link") 2>conftest.er1
26107   ac_status=$?
26108   grep -v '^ *+' conftest.er1 >conftest.err
26109   rm -f conftest.er1
26110   cat conftest.err >&5
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); } && {
26113          test -z "$ac_cxx_werror_flag" ||
26114          test ! -s conftest.err
26115        } && test -s conftest$ac_exeext &&
26116        $as_test_x conftest$ac_exeext; then
26117   eval wx_cv_func_$wx_func=yes
26118 else
26119   echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26121
26122         eval wx_cv_func_$wx_func=no
26123 fi
26124
26125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26126       conftest$ac_exeext conftest.$ac_ext
26127
26128 fi
26129 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26130                { echo "$as_me:$LINENO: result: $ac_res" >&5
26131 echo "${ECHO_T}$ac_res" >&6; }
26132
26133     if eval test \$wx_cv_func_$wx_func = yes
26134     then
26135       cat >>confdefs.h <<_ACEOF
26136 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26137 _ACEOF
26138
26139
26140     else
26141       :
26142
26143     fi
26144   done
26145
26146 fi
26147 ac_ext=c
26148 ac_cpp='$CPP $CPPFLAGS'
26149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26152
26153
26154
26155
26156 if test "$wxUSE_REGEX" != "no"; then
26157     cat >>confdefs.h <<\_ACEOF
26158 #define wxUSE_REGEX 1
26159 _ACEOF
26160
26161
26162     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26163         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26164 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26165         wxUSE_REGEX=builtin
26166     fi
26167
26168     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26169                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26170 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26171 if test "${ac_cv_header_regex_h+set}" = set; then
26172   echo $ECHO_N "(cached) $ECHO_C" >&6
26173 else
26174   cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180
26181
26182 #include <regex.h>
26183 _ACEOF
26184 rm -f conftest.$ac_objext
26185 if { (ac_try="$ac_compile"
26186 case "(($ac_try" in
26187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188   *) ac_try_echo=$ac_try;;
26189 esac
26190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191   (eval "$ac_compile") 2>conftest.er1
26192   ac_status=$?
26193   grep -v '^ *+' conftest.er1 >conftest.err
26194   rm -f conftest.er1
26195   cat conftest.err >&5
26196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); } && {
26198          test -z "$ac_c_werror_flag" ||
26199          test ! -s conftest.err
26200        } && test -s conftest.$ac_objext; then
26201   ac_cv_header_regex_h=yes
26202 else
26203   echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26205
26206         ac_cv_header_regex_h=no
26207 fi
26208
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 fi
26211 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26212 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26213 if test $ac_cv_header_regex_h = yes; then
26214
26215
26216 for ac_func in regcomp re_search
26217 do
26218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26222   echo $ECHO_N "(cached) $ECHO_C" >&6
26223 else
26224   cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h.  */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h.  */
26230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26232 #define $ac_func innocuous_$ac_func
26233
26234 /* System header to define __stub macros and hopefully few prototypes,
26235     which can conflict with char $ac_func (); below.
26236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26237     <limits.h> exists even on freestanding compilers.  */
26238
26239 #ifdef __STDC__
26240 # include <limits.h>
26241 #else
26242 # include <assert.h>
26243 #endif
26244
26245 #undef $ac_func
26246
26247 /* Override any GCC internal prototype to avoid an error.
26248    Use char because int might match the return type of a GCC
26249    builtin and then its argument prototype would still apply.  */
26250 #ifdef __cplusplus
26251 extern "C"
26252 #endif
26253 char $ac_func ();
26254 /* The GNU C library defines this for functions which it implements
26255     to always fail with ENOSYS.  Some functions are actually named
26256     something starting with __ and the normal name is an alias.  */
26257 #if defined __stub_$ac_func || defined __stub___$ac_func
26258 choke me
26259 #endif
26260
26261 int
26262 main ()
26263 {
26264 return $ac_func ();
26265   ;
26266   return 0;
26267 }
26268 _ACEOF
26269 rm -f conftest.$ac_objext conftest$ac_exeext
26270 if { (ac_try="$ac_link"
26271 case "(($ac_try" in
26272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273   *) ac_try_echo=$ac_try;;
26274 esac
26275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26276   (eval "$ac_link") 2>conftest.er1
26277   ac_status=$?
26278   grep -v '^ *+' conftest.er1 >conftest.err
26279   rm -f conftest.er1
26280   cat conftest.err >&5
26281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); } && {
26283          test -z "$ac_c_werror_flag" ||
26284          test ! -s conftest.err
26285        } && test -s conftest$ac_exeext &&
26286        $as_test_x conftest$ac_exeext; then
26287   eval "$as_ac_var=yes"
26288 else
26289   echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26291
26292         eval "$as_ac_var=no"
26293 fi
26294
26295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26296       conftest$ac_exeext conftest.$ac_ext
26297 fi
26298 ac_res=`eval echo '${'$as_ac_var'}'`
26299                { echo "$as_me:$LINENO: result: $ac_res" >&5
26300 echo "${ECHO_T}$ac_res" >&6; }
26301 if test `eval echo '${'$as_ac_var'}'` = yes; then
26302   cat >>confdefs.h <<_ACEOF
26303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26304 _ACEOF
26305
26306 fi
26307 done
26308
26309 fi
26310
26311
26312
26313         if test "x$ac_cv_func_regcomp" != "xyes"; then
26314             if test "$wxUSE_REGEX" = "sys" ; then
26315                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26316 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26317    { (exit 1); exit 1; }; }
26318             else
26319                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26320 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26321                 wxUSE_REGEX=builtin
26322             fi
26323         else
26324                         wxUSE_REGEX=sys
26325                         cat >>confdefs.h <<\_ACEOF
26326 #define WX_NO_REGEX_ADVANCED 1
26327 _ACEOF
26328
26329         fi
26330     fi
26331 fi
26332
26333
26334 ZLIB_LINK=
26335 if test "$wxUSE_ZLIB" != "no" ; then
26336     cat >>confdefs.h <<\_ACEOF
26337 #define wxUSE_ZLIB 1
26338 _ACEOF
26339
26340
26341     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26342                                                 if test "$USE_DARWIN" = 1; then
26343             system_zlib_h_ok="yes"
26344         else
26345                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26346 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26347 if test "${ac_cv_header_zlib_h+set}" = set; then
26348   echo $ECHO_N "(cached) $ECHO_C" >&6
26349 else
26350   if test "$cross_compiling" = yes; then
26351                       unset ac_cv_header_zlib_h
26352
26353 else
26354   cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h.  */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h.  */
26360
26361                         #include <zlib.h>
26362                         #include <stdio.h>
26363
26364                         int main()
26365                         {
26366                             FILE *f=fopen("conftestval", "w");
26367                             if (!f) exit(1);
26368                             fprintf(f, "%s",
26369                                     ZLIB_VERSION[0] == '1' &&
26370                                     (ZLIB_VERSION[2] > '1' ||
26371                                     (ZLIB_VERSION[2] == '1' &&
26372                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26373                             exit(0);
26374                         }
26375
26376 _ACEOF
26377 rm -f conftest$ac_exeext
26378 if { (ac_try="$ac_link"
26379 case "(($ac_try" in
26380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26381   *) ac_try_echo=$ac_try;;
26382 esac
26383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26384   (eval "$ac_link") 2>&5
26385   ac_status=$?
26386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26388   { (case "(($ac_try" in
26389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390   *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393   (eval "$ac_try") 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); }; }; then
26397   ac_cv_header_zlib_h=`cat conftestval`
26398 else
26399   echo "$as_me: program exited with status $ac_status" >&5
26400 echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26402
26403 ( exit $ac_status )
26404 ac_cv_header_zlib_h=no
26405 fi
26406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26407 fi
26408
26409
26410
26411 fi
26412 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26413 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26414                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26415 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26416 if test "${ac_cv_header_zlib_h+set}" = set; then
26417   echo $ECHO_N "(cached) $ECHO_C" >&6
26418 else
26419   cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425
26426
26427 #include <zlib.h>
26428 _ACEOF
26429 rm -f conftest.$ac_objext
26430 if { (ac_try="$ac_compile"
26431 case "(($ac_try" in
26432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26433   *) ac_try_echo=$ac_try;;
26434 esac
26435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26436   (eval "$ac_compile") 2>conftest.er1
26437   ac_status=$?
26438   grep -v '^ *+' conftest.er1 >conftest.err
26439   rm -f conftest.er1
26440   cat conftest.err >&5
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); } && {
26443          test -z "$ac_c_werror_flag" ||
26444          test ! -s conftest.err
26445        } && test -s conftest.$ac_objext; then
26446   ac_cv_header_zlib_h=yes
26447 else
26448   echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26450
26451         ac_cv_header_zlib_h=no
26452 fi
26453
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455 fi
26456 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26457 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26458
26459
26460
26461             system_zlib_h_ok=$ac_cv_header_zlib_h
26462         fi
26463
26464         if test "$system_zlib_h_ok" = "yes"; then
26465             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26466 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26467 if test "${ac_cv_lib_z_deflate+set}" = set; then
26468   echo $ECHO_N "(cached) $ECHO_C" >&6
26469 else
26470   ac_check_lib_save_LIBS=$LIBS
26471 LIBS="-lz  $LIBS"
26472 cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h.  */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h.  */
26478
26479 /* Override any GCC internal prototype to avoid an error.
26480    Use char because int might match the return type of a GCC
26481    builtin and then its argument prototype would still apply.  */
26482 #ifdef __cplusplus
26483 extern "C"
26484 #endif
26485 char deflate ();
26486 int
26487 main ()
26488 {
26489 return deflate ();
26490   ;
26491   return 0;
26492 }
26493 _ACEOF
26494 rm -f conftest.$ac_objext conftest$ac_exeext
26495 if { (ac_try="$ac_link"
26496 case "(($ac_try" in
26497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498   *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501   (eval "$ac_link") 2>conftest.er1
26502   ac_status=$?
26503   grep -v '^ *+' conftest.er1 >conftest.err
26504   rm -f conftest.er1
26505   cat conftest.err >&5
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); } && {
26508          test -z "$ac_c_werror_flag" ||
26509          test ! -s conftest.err
26510        } && test -s conftest$ac_exeext &&
26511        $as_test_x conftest$ac_exeext; then
26512   ac_cv_lib_z_deflate=yes
26513 else
26514   echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26516
26517         ac_cv_lib_z_deflate=no
26518 fi
26519
26520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26521       conftest$ac_exeext conftest.$ac_ext
26522 LIBS=$ac_check_lib_save_LIBS
26523 fi
26524 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26525 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26526 if test $ac_cv_lib_z_deflate = yes; then
26527   ZLIB_LINK=" -lz"
26528 fi
26529
26530         fi
26531
26532         if test "x$ZLIB_LINK" = "x" ; then
26533             if test "$wxUSE_ZLIB" = "sys" ; then
26534                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26535 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26536    { (exit 1); exit 1; }; }
26537             else
26538                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26539 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26540                 wxUSE_ZLIB=builtin
26541             fi
26542         else
26543                         wxUSE_ZLIB=sys
26544         fi
26545     fi
26546 fi
26547
26548
26549 PNG_LINK=
26550 if test "$wxUSE_LIBPNG" != "no" ; then
26551     cat >>confdefs.h <<\_ACEOF
26552 #define wxUSE_LIBPNG 1
26553 _ACEOF
26554
26555
26556     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26557         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26558 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26559         wxUSE_LIBPNG=sys
26560     fi
26561
26562                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26563         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26564 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26565         wxUSE_LIBPNG=builtin
26566     fi
26567
26568     if test "$wxUSE_MGL" != 1 ; then
26569                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26570                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26571 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26572 if test "${ac_cv_header_png_h+set}" = set; then
26573   echo $ECHO_N "(cached) $ECHO_C" >&6
26574 else
26575   if test "$cross_compiling" = yes; then
26576                       unset ac_cv_header_png_h
26577
26578 else
26579   cat >conftest.$ac_ext <<_ACEOF
26580 /* confdefs.h.  */
26581 _ACEOF
26582 cat confdefs.h >>conftest.$ac_ext
26583 cat >>conftest.$ac_ext <<_ACEOF
26584 /* end confdefs.h.  */
26585
26586                         #include <png.h>
26587                         #include <stdio.h>
26588
26589                         int main()
26590                         {
26591                             FILE *f=fopen("conftestval", "w");
26592                             if (!f) exit(1);
26593                             fprintf(f, "%s",
26594                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26595                             exit(0);
26596                         }
26597
26598 _ACEOF
26599 rm -f conftest$ac_exeext
26600 if { (ac_try="$ac_link"
26601 case "(($ac_try" in
26602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26603   *) ac_try_echo=$ac_try;;
26604 esac
26605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26606   (eval "$ac_link") 2>&5
26607   ac_status=$?
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26610   { (case "(($ac_try" in
26611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612   *) ac_try_echo=$ac_try;;
26613 esac
26614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26615   (eval "$ac_try") 2>&5
26616   ac_status=$?
26617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618   (exit $ac_status); }; }; then
26619   ac_cv_header_png_h=`cat conftestval`
26620 else
26621   echo "$as_me: program exited with status $ac_status" >&5
26622 echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26624
26625 ( exit $ac_status )
26626 ac_cv_header_png_h=no
26627 fi
26628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26629 fi
26630
26631
26632
26633 fi
26634 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26635 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26636             { echo "$as_me:$LINENO: checking for png.h" >&5
26637 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26638 if test "${ac_cv_header_png_h+set}" = set; then
26639   echo $ECHO_N "(cached) $ECHO_C" >&6
26640 else
26641   cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647
26648
26649 #include <png.h>
26650 _ACEOF
26651 rm -f conftest.$ac_objext
26652 if { (ac_try="$ac_compile"
26653 case "(($ac_try" in
26654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26655   *) ac_try_echo=$ac_try;;
26656 esac
26657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26658   (eval "$ac_compile") 2>conftest.er1
26659   ac_status=$?
26660   grep -v '^ *+' conftest.er1 >conftest.err
26661   rm -f conftest.er1
26662   cat conftest.err >&5
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); } && {
26665          test -z "$ac_c_werror_flag" ||
26666          test ! -s conftest.err
26667        } && test -s conftest.$ac_objext; then
26668   ac_cv_header_png_h=yes
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673         ac_cv_header_png_h=no
26674 fi
26675
26676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26677 fi
26678 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26679 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26680
26681
26682
26683             if test "$ac_cv_header_png_h" = "yes"; then
26684                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26685 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26686 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26687   echo $ECHO_N "(cached) $ECHO_C" >&6
26688 else
26689   ac_check_lib_save_LIBS=$LIBS
26690 LIBS="-lpng -lz -lm $LIBS"
26691 cat >conftest.$ac_ext <<_ACEOF
26692 /* confdefs.h.  */
26693 _ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h.  */
26697
26698 /* Override any GCC internal prototype to avoid an error.
26699    Use char because int might match the return type of a GCC
26700    builtin and then its argument prototype would still apply.  */
26701 #ifdef __cplusplus
26702 extern "C"
26703 #endif
26704 char png_check_sig ();
26705 int
26706 main ()
26707 {
26708 return png_check_sig ();
26709   ;
26710   return 0;
26711 }
26712 _ACEOF
26713 rm -f conftest.$ac_objext conftest$ac_exeext
26714 if { (ac_try="$ac_link"
26715 case "(($ac_try" in
26716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717   *) ac_try_echo=$ac_try;;
26718 esac
26719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26720   (eval "$ac_link") 2>conftest.er1
26721   ac_status=$?
26722   grep -v '^ *+' conftest.er1 >conftest.err
26723   rm -f conftest.er1
26724   cat conftest.err >&5
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); } && {
26727          test -z "$ac_c_werror_flag" ||
26728          test ! -s conftest.err
26729        } && test -s conftest$ac_exeext &&
26730        $as_test_x conftest$ac_exeext; then
26731   ac_cv_lib_png_png_check_sig=yes
26732 else
26733   echo "$as_me: failed program was:" >&5
26734 sed 's/^/| /' conftest.$ac_ext >&5
26735
26736         ac_cv_lib_png_png_check_sig=no
26737 fi
26738
26739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26740       conftest$ac_exeext conftest.$ac_ext
26741 LIBS=$ac_check_lib_save_LIBS
26742 fi
26743 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26744 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26745 if test $ac_cv_lib_png_png_check_sig = yes; then
26746   PNG_LINK=" -lpng -lz"
26747 fi
26748
26749             fi
26750
26751             if test "x$PNG_LINK" = "x" ; then
26752                 if test "$wxUSE_LIBPNG" = "sys" ; then
26753                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26754 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26755    { (exit 1); exit 1; }; }
26756                 else
26757                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26758 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26759                     wxUSE_LIBPNG=builtin
26760                 fi
26761             else
26762                                 wxUSE_LIBPNG=sys
26763             fi
26764         fi
26765     fi
26766 fi
26767
26768
26769 JPEG_LINK=
26770 if test "$wxUSE_LIBJPEG" != "no" ; then
26771     cat >>confdefs.h <<\_ACEOF
26772 #define wxUSE_LIBJPEG 1
26773 _ACEOF
26774
26775
26776     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26777         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26778 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26779         wxUSE_LIBJPEG=sys
26780     fi
26781
26782     if test "$wxUSE_MGL" != 1 ; then
26783                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26784                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26785 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26786             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26787   echo $ECHO_N "(cached) $ECHO_C" >&6
26788 else
26789   cat >conftest.$ac_ext <<_ACEOF
26790 /* confdefs.h.  */
26791 _ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h.  */
26795
26796                         #undef HAVE_STDLIB_H
26797                         #include <stdio.h>
26798                         #include <jpeglib.h>
26799
26800 int
26801 main ()
26802 {
26803
26804
26805   ;
26806   return 0;
26807 }
26808 _ACEOF
26809 rm -f conftest.$ac_objext
26810 if { (ac_try="$ac_compile"
26811 case "(($ac_try" in
26812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813   *) ac_try_echo=$ac_try;;
26814 esac
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816   (eval "$ac_compile") 2>conftest.er1
26817   ac_status=$?
26818   grep -v '^ *+' conftest.er1 >conftest.err
26819   rm -f conftest.er1
26820   cat conftest.err >&5
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); } && {
26823          test -z "$ac_c_werror_flag" ||
26824          test ! -s conftest.err
26825        } && test -s conftest.$ac_objext; then
26826   ac_cv_header_jpeglib_h=yes
26827 else
26828   echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26830
26831         ac_cv_header_jpeglib_h=no
26832
26833 fi
26834
26835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26836
26837 fi
26838
26839             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26840 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26841
26842             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26843                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26844 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26845 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26846   echo $ECHO_N "(cached) $ECHO_C" >&6
26847 else
26848   ac_check_lib_save_LIBS=$LIBS
26849 LIBS="-ljpeg  $LIBS"
26850 cat >conftest.$ac_ext <<_ACEOF
26851 /* confdefs.h.  */
26852 _ACEOF
26853 cat confdefs.h >>conftest.$ac_ext
26854 cat >>conftest.$ac_ext <<_ACEOF
26855 /* end confdefs.h.  */
26856
26857 /* Override any GCC internal prototype to avoid an error.
26858    Use char because int might match the return type of a GCC
26859    builtin and then its argument prototype would still apply.  */
26860 #ifdef __cplusplus
26861 extern "C"
26862 #endif
26863 char jpeg_read_header ();
26864 int
26865 main ()
26866 {
26867 return jpeg_read_header ();
26868   ;
26869   return 0;
26870 }
26871 _ACEOF
26872 rm -f conftest.$ac_objext conftest$ac_exeext
26873 if { (ac_try="$ac_link"
26874 case "(($ac_try" in
26875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876   *) ac_try_echo=$ac_try;;
26877 esac
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879   (eval "$ac_link") 2>conftest.er1
26880   ac_status=$?
26881   grep -v '^ *+' conftest.er1 >conftest.err
26882   rm -f conftest.er1
26883   cat conftest.err >&5
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); } && {
26886          test -z "$ac_c_werror_flag" ||
26887          test ! -s conftest.err
26888        } && test -s conftest$ac_exeext &&
26889        $as_test_x conftest$ac_exeext; then
26890   ac_cv_lib_jpeg_jpeg_read_header=yes
26891 else
26892   echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26894
26895         ac_cv_lib_jpeg_jpeg_read_header=no
26896 fi
26897
26898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26899       conftest$ac_exeext conftest.$ac_ext
26900 LIBS=$ac_check_lib_save_LIBS
26901 fi
26902 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26903 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26904 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26905   JPEG_LINK=" -ljpeg"
26906 fi
26907
26908             fi
26909
26910             if test "x$JPEG_LINK" = "x" ; then
26911                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26912                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26913 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26914    { (exit 1); exit 1; }; }
26915                 else
26916                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26917 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26918                     wxUSE_LIBJPEG=builtin
26919                 fi
26920             else
26921                                 wxUSE_LIBJPEG=sys
26922
26923                 if test "$wxUSE_MSW" = 1; then
26924                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26925 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26926 if test "${ac_cv_type_boolean+set}" = set; then
26927   echo $ECHO_N "(cached) $ECHO_C" >&6
26928 else
26929   cat >conftest.$ac_ext <<_ACEOF
26930 /* confdefs.h.  */
26931 _ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h.  */
26935 #include <windows.h>
26936
26937 typedef boolean ac__type_new_;
26938 int
26939 main ()
26940 {
26941 if ((ac__type_new_ *) 0)
26942   return 0;
26943 if (sizeof (ac__type_new_))
26944   return 0;
26945   ;
26946   return 0;
26947 }
26948 _ACEOF
26949 rm -f conftest.$ac_objext
26950 if { (ac_try="$ac_compile"
26951 case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956   (eval "$ac_compile") 2>conftest.er1
26957   ac_status=$?
26958   grep -v '^ *+' conftest.er1 >conftest.err
26959   rm -f conftest.er1
26960   cat conftest.err >&5
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); } && {
26963          test -z "$ac_c_werror_flag" ||
26964          test ! -s conftest.err
26965        } && test -s conftest.$ac_objext; then
26966   ac_cv_type_boolean=yes
26967 else
26968   echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26970
26971         ac_cv_type_boolean=no
26972 fi
26973
26974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26975 fi
26976 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26977 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26978 if test $ac_cv_type_boolean = yes; then
26979
26980 cat >>confdefs.h <<_ACEOF
26981 #define HAVE_BOOLEAN 1
26982 _ACEOF
26983
26984
26985                             { echo "$as_me:$LINENO: checking for boolean" >&5
26986 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26987 if test "${ac_cv_type_boolean+set}" = set; then
26988   echo $ECHO_N "(cached) $ECHO_C" >&6
26989 else
26990   cat >conftest.$ac_ext <<_ACEOF
26991 /* confdefs.h.  */
26992 _ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h.  */
26996
26997                                     #undef HAVE_BOOLEAN
26998                                     #include <stdio.h>
26999                                     #include <jpeglib.h>
27000
27001
27002 typedef boolean ac__type_new_;
27003 int
27004 main ()
27005 {
27006 if ((ac__type_new_ *) 0)
27007   return 0;
27008 if (sizeof (ac__type_new_))
27009   return 0;
27010   ;
27011   return 0;
27012 }
27013 _ACEOF
27014 rm -f conftest.$ac_objext
27015 if { (ac_try="$ac_compile"
27016 case "(($ac_try" in
27017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018   *) ac_try_echo=$ac_try;;
27019 esac
27020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021   (eval "$ac_compile") 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } && {
27028          test -z "$ac_c_werror_flag" ||
27029          test ! -s conftest.err
27030        } && test -s conftest.$ac_objext; then
27031   ac_cv_type_boolean=yes
27032 else
27033   echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036         ac_cv_type_boolean=no
27037 fi
27038
27039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27040 fi
27041 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27042 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27043
27044 # The cast to long int works around a bug in the HP C Compiler
27045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27047 # This bug is HP SR number 8606223364.
27048 { echo "$as_me:$LINENO: checking size of boolean" >&5
27049 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27050 if test "${ac_cv_sizeof_boolean+set}" = set; then
27051   echo $ECHO_N "(cached) $ECHO_C" >&6
27052 else
27053   if test "$cross_compiling" = yes; then
27054   # Depending upon the size, compute the lo and hi bounds.
27055 cat >conftest.$ac_ext <<_ACEOF
27056 /* confdefs.h.  */
27057 _ACEOF
27058 cat confdefs.h >>conftest.$ac_ext
27059 cat >>conftest.$ac_ext <<_ACEOF
27060 /* end confdefs.h.  */
27061
27062                                     #undef HAVE_BOOLEAN
27063                                     #include <stdio.h>
27064                                     #include <jpeglib.h>
27065
27066
27067    typedef boolean ac__type_sizeof_;
27068 int
27069 main ()
27070 {
27071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27072 test_array [0] = 0
27073
27074   ;
27075   return 0;
27076 }
27077 _ACEOF
27078 rm -f conftest.$ac_objext
27079 if { (ac_try="$ac_compile"
27080 case "(($ac_try" in
27081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082   *) ac_try_echo=$ac_try;;
27083 esac
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085   (eval "$ac_compile") 2>conftest.er1
27086   ac_status=$?
27087   grep -v '^ *+' conftest.er1 >conftest.err
27088   rm -f conftest.er1
27089   cat conftest.err >&5
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); } && {
27092          test -z "$ac_c_werror_flag" ||
27093          test ! -s conftest.err
27094        } && test -s conftest.$ac_objext; then
27095   ac_lo=0 ac_mid=0
27096   while :; do
27097     cat >conftest.$ac_ext <<_ACEOF
27098 /* confdefs.h.  */
27099 _ACEOF
27100 cat confdefs.h >>conftest.$ac_ext
27101 cat >>conftest.$ac_ext <<_ACEOF
27102 /* end confdefs.h.  */
27103
27104                                     #undef HAVE_BOOLEAN
27105                                     #include <stdio.h>
27106                                     #include <jpeglib.h>
27107
27108
27109    typedef boolean ac__type_sizeof_;
27110 int
27111 main ()
27112 {
27113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27114 test_array [0] = 0
27115
27116   ;
27117   return 0;
27118 }
27119 _ACEOF
27120 rm -f conftest.$ac_objext
27121 if { (ac_try="$ac_compile"
27122 case "(($ac_try" in
27123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27124   *) ac_try_echo=$ac_try;;
27125 esac
27126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27127   (eval "$ac_compile") 2>conftest.er1
27128   ac_status=$?
27129   grep -v '^ *+' conftest.er1 >conftest.err
27130   rm -f conftest.er1
27131   cat conftest.err >&5
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); } && {
27134          test -z "$ac_c_werror_flag" ||
27135          test ! -s conftest.err
27136        } && test -s conftest.$ac_objext; then
27137   ac_hi=$ac_mid; break
27138 else
27139   echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27141
27142         ac_lo=`expr $ac_mid + 1`
27143                         if test $ac_lo -le $ac_mid; then
27144                           ac_lo= ac_hi=
27145                           break
27146                         fi
27147                         ac_mid=`expr 2 '*' $ac_mid + 1`
27148 fi
27149
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27151   done
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162
27163                                     #undef HAVE_BOOLEAN
27164                                     #include <stdio.h>
27165                                     #include <jpeglib.h>
27166
27167
27168    typedef boolean ac__type_sizeof_;
27169 int
27170 main ()
27171 {
27172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27173 test_array [0] = 0
27174
27175   ;
27176   return 0;
27177 }
27178 _ACEOF
27179 rm -f conftest.$ac_objext
27180 if { (ac_try="$ac_compile"
27181 case "(($ac_try" in
27182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183   *) ac_try_echo=$ac_try;;
27184 esac
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186   (eval "$ac_compile") 2>conftest.er1
27187   ac_status=$?
27188   grep -v '^ *+' conftest.er1 >conftest.err
27189   rm -f conftest.er1
27190   cat conftest.err >&5
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); } && {
27193          test -z "$ac_c_werror_flag" ||
27194          test ! -s conftest.err
27195        } && test -s conftest.$ac_objext; then
27196   ac_hi=-1 ac_mid=-1
27197   while :; do
27198     cat >conftest.$ac_ext <<_ACEOF
27199 /* confdefs.h.  */
27200 _ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h.  */
27204
27205                                     #undef HAVE_BOOLEAN
27206                                     #include <stdio.h>
27207                                     #include <jpeglib.h>
27208
27209
27210    typedef boolean ac__type_sizeof_;
27211 int
27212 main ()
27213 {
27214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27215 test_array [0] = 0
27216
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 rm -f conftest.$ac_objext
27222 if { (ac_try="$ac_compile"
27223 case "(($ac_try" in
27224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225   *) ac_try_echo=$ac_try;;
27226 esac
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228   (eval "$ac_compile") 2>conftest.er1
27229   ac_status=$?
27230   grep -v '^ *+' conftest.er1 >conftest.err
27231   rm -f conftest.er1
27232   cat conftest.err >&5
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); } && {
27235          test -z "$ac_c_werror_flag" ||
27236          test ! -s conftest.err
27237        } && test -s conftest.$ac_objext; then
27238   ac_lo=$ac_mid; break
27239 else
27240   echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27242
27243         ac_hi=`expr '(' $ac_mid ')' - 1`
27244                         if test $ac_mid -le $ac_hi; then
27245                           ac_lo= ac_hi=
27246                           break
27247                         fi
27248                         ac_mid=`expr 2 '*' $ac_mid`
27249 fi
27250
27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252   done
27253 else
27254   echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257         ac_lo= ac_hi=
27258 fi
27259
27260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27261 fi
27262
27263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264 # Binary search between lo and hi bounds.
27265 while test "x$ac_lo" != "x$ac_hi"; do
27266   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27267   cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h.  */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h.  */
27273
27274                                     #undef HAVE_BOOLEAN
27275                                     #include <stdio.h>
27276                                     #include <jpeglib.h>
27277
27278
27279    typedef boolean ac__type_sizeof_;
27280 int
27281 main ()
27282 {
27283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27284 test_array [0] = 0
27285
27286   ;
27287   return 0;
27288 }
27289 _ACEOF
27290 rm -f conftest.$ac_objext
27291 if { (ac_try="$ac_compile"
27292 case "(($ac_try" in
27293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294   *) ac_try_echo=$ac_try;;
27295 esac
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297   (eval "$ac_compile") 2>conftest.er1
27298   ac_status=$?
27299   grep -v '^ *+' conftest.er1 >conftest.err
27300   rm -f conftest.er1
27301   cat conftest.err >&5
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } && {
27304          test -z "$ac_c_werror_flag" ||
27305          test ! -s conftest.err
27306        } && test -s conftest.$ac_objext; then
27307   ac_hi=$ac_mid
27308 else
27309   echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27311
27312         ac_lo=`expr '(' $ac_mid ')' + 1`
27313 fi
27314
27315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27316 done
27317 case $ac_lo in
27318 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27319 '') if test "$ac_cv_type_boolean" = yes; then
27320      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27321 See \`config.log' for more details." >&5
27322 echo "$as_me: error: cannot compute sizeof (boolean)
27323 See \`config.log' for more details." >&2;}
27324    { (exit 77); exit 77; }; }
27325    else
27326      ac_cv_sizeof_boolean=0
27327    fi ;;
27328 esac
27329 else
27330   cat >conftest.$ac_ext <<_ACEOF
27331 /* confdefs.h.  */
27332 _ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h.  */
27336
27337                                     #undef HAVE_BOOLEAN
27338                                     #include <stdio.h>
27339                                     #include <jpeglib.h>
27340
27341
27342    typedef boolean ac__type_sizeof_;
27343 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27344 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27345 #include <stdio.h>
27346 #include <stdlib.h>
27347 int
27348 main ()
27349 {
27350
27351   FILE *f = fopen ("conftest.val", "w");
27352   if (! f)
27353     return 1;
27354   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27355     {
27356       long int i = longval ();
27357       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27358         return 1;
27359       fprintf (f, "%ld\n", i);
27360     }
27361   else
27362     {
27363       unsigned long int i = ulongval ();
27364       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27365         return 1;
27366       fprintf (f, "%lu\n", i);
27367     }
27368   return ferror (f) || fclose (f) != 0;
27369
27370   ;
27371   return 0;
27372 }
27373 _ACEOF
27374 rm -f conftest$ac_exeext
27375 if { (ac_try="$ac_link"
27376 case "(($ac_try" in
27377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378   *) ac_try_echo=$ac_try;;
27379 esac
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381   (eval "$ac_link") 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27385   { (case "(($ac_try" in
27386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387   *) ac_try_echo=$ac_try;;
27388 esac
27389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390   (eval "$ac_try") 2>&5
27391   ac_status=$?
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); }; }; then
27394   ac_cv_sizeof_boolean=`cat conftest.val`
27395 else
27396   echo "$as_me: program exited with status $ac_status" >&5
27397 echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ( exit $ac_status )
27401 if test "$ac_cv_type_boolean" = yes; then
27402      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27403 See \`config.log' for more details." >&5
27404 echo "$as_me: error: cannot compute sizeof (boolean)
27405 See \`config.log' for more details." >&2;}
27406    { (exit 77); exit 77; }; }
27407    else
27408      ac_cv_sizeof_boolean=0
27409    fi
27410 fi
27411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27412 fi
27413 rm -f conftest.val
27414 fi
27415 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27416 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27417
27418
27419
27420 cat >>confdefs.h <<_ACEOF
27421 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27422 _ACEOF
27423
27424
27425                             cat >>confdefs.h <<_ACEOF
27426 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27427 _ACEOF
27428
27429
27430 fi
27431
27432                 fi
27433             fi
27434         fi
27435     fi
27436 fi
27437
27438
27439 TIFF_LINK=
27440 TIFF_PREREQ_LINKS=-lm
27441 if test "$wxUSE_LIBTIFF" != "no" ; then
27442     cat >>confdefs.h <<\_ACEOF
27443 #define wxUSE_LIBTIFF 1
27444 _ACEOF
27445
27446
27447     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27448                         if test "$wxUSE_LIBJPEG" = "sys"; then
27449             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27450         fi
27451         if test "$wxUSE_ZLIB" = "sys"; then
27452             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27453         fi
27454         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27455 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27456 if test "${ac_cv_header_tiffio_h+set}" = set; then
27457   echo $ECHO_N "(cached) $ECHO_C" >&6
27458 else
27459   cat >conftest.$ac_ext <<_ACEOF
27460 /* confdefs.h.  */
27461 _ACEOF
27462 cat confdefs.h >>conftest.$ac_ext
27463 cat >>conftest.$ac_ext <<_ACEOF
27464 /* end confdefs.h.  */
27465
27466
27467
27468 #include <tiffio.h>
27469 _ACEOF
27470 rm -f conftest.$ac_objext
27471 if { (ac_try="$ac_compile"
27472 case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_compile") 2>conftest.er1
27478   ac_status=$?
27479   grep -v '^ *+' conftest.er1 >conftest.err
27480   rm -f conftest.er1
27481   cat conftest.err >&5
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); } && {
27484          test -z "$ac_c_werror_flag" ||
27485          test ! -s conftest.err
27486        } && test -s conftest.$ac_objext; then
27487   ac_cv_header_tiffio_h=yes
27488 else
27489   echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27491
27492         ac_cv_header_tiffio_h=no
27493 fi
27494
27495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27496 fi
27497 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27498 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27499 if test $ac_cv_header_tiffio_h = yes; then
27500
27501                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27502 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27503 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27504   echo $ECHO_N "(cached) $ECHO_C" >&6
27505 else
27506   ac_check_lib_save_LIBS=$LIBS
27507 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27508 cat >conftest.$ac_ext <<_ACEOF
27509 /* confdefs.h.  */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h.  */
27514
27515 /* Override any GCC internal prototype to avoid an error.
27516    Use char because int might match the return type of a GCC
27517    builtin and then its argument prototype would still apply.  */
27518 #ifdef __cplusplus
27519 extern "C"
27520 #endif
27521 char TIFFError ();
27522 int
27523 main ()
27524 {
27525 return TIFFError ();
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 rm -f conftest.$ac_objext conftest$ac_exeext
27531 if { (ac_try="$ac_link"
27532 case "(($ac_try" in
27533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534   *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537   (eval "$ac_link") 2>conftest.er1
27538   ac_status=$?
27539   grep -v '^ *+' conftest.er1 >conftest.err
27540   rm -f conftest.er1
27541   cat conftest.err >&5
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); } && {
27544          test -z "$ac_c_werror_flag" ||
27545          test ! -s conftest.err
27546        } && test -s conftest$ac_exeext &&
27547        $as_test_x conftest$ac_exeext; then
27548   ac_cv_lib_tiff_TIFFError=yes
27549 else
27550   echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27552
27553         ac_cv_lib_tiff_TIFFError=no
27554 fi
27555
27556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27557       conftest$ac_exeext conftest.$ac_ext
27558 LIBS=$ac_check_lib_save_LIBS
27559 fi
27560 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27561 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27562 if test $ac_cv_lib_tiff_TIFFError = yes; then
27563   TIFF_LINK=" -ltiff"
27564 fi
27565
27566
27567 fi
27568
27569
27570
27571         if test "x$TIFF_LINK" = "x" ; then
27572             if test "$wxUSE_LIBTIFF" = "sys" ; then
27573                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27574 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27575    { (exit 1); exit 1; }; }
27576             else
27577                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27578 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27579                 wxUSE_LIBTIFF=builtin
27580             fi
27581         else
27582                         wxUSE_LIBTIFF=sys
27583         fi
27584     fi
27585     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27586         if test "$wxUSE_LIBJPEG" = "no"; then
27587                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27588         fi
27589         subdirs="$subdirs src/tiff"
27590
27591     fi
27592 fi
27593
27594
27595 if test "$wxUSE_WCHAR_T" != "yes"; then
27596     if test "$wxUSE_EXPAT" != "no"; then
27597         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27598 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27599         wxUSE_EXPAT=no
27600     fi
27601     if test "$wxUSE_XML" != "no"; then
27602         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27603 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27604         wxUSE_XML=no
27605     fi
27606 fi
27607
27608 if test "$wxUSE_EXPAT" != "no"; then
27609     wxUSE_XML=yes
27610     cat >>confdefs.h <<\_ACEOF
27611 #define wxUSE_EXPAT 1
27612 _ACEOF
27613
27614     cat >>confdefs.h <<\_ACEOF
27615 #define wxUSE_XML 1
27616 _ACEOF
27617
27618
27619     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27620         { echo "$as_me:$LINENO: checking for expat.h" >&5
27621 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27622 if test "${ac_cv_header_expat_h+set}" = set; then
27623   echo $ECHO_N "(cached) $ECHO_C" >&6
27624 else
27625   cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631
27632
27633 #include <expat.h>
27634 _ACEOF
27635 rm -f conftest.$ac_objext
27636 if { (ac_try="$ac_compile"
27637 case "(($ac_try" in
27638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639   *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642   (eval "$ac_compile") 2>conftest.er1
27643   ac_status=$?
27644   grep -v '^ *+' conftest.er1 >conftest.err
27645   rm -f conftest.er1
27646   cat conftest.err >&5
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); } && {
27649          test -z "$ac_c_werror_flag" ||
27650          test ! -s conftest.err
27651        } && test -s conftest.$ac_objext; then
27652   ac_cv_header_expat_h=yes
27653 else
27654   echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657         ac_cv_header_expat_h=no
27658 fi
27659
27660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27661 fi
27662 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27663 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27664 if test $ac_cv_header_expat_h = yes; then
27665   found_expat_h=1
27666 fi
27667
27668
27669         if test "x$found_expat_h" = "x1"; then
27670                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27671 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27672 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675
27676                 ac_ext=cpp
27677 ac_cpp='$CXXCPP $CPPFLAGS'
27678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27681
27682                 cat >conftest.$ac_ext <<_ACEOF
27683 /* confdefs.h.  */
27684 _ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h.  */
27688 #include <expat.h>
27689 int
27690 main ()
27691 {
27692
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701   *) ac_try_echo=$ac_try;;
27702 esac
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704   (eval "$ac_compile") 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } && {
27711          test -z "$ac_cxx_werror_flag" ||
27712          test ! -s conftest.err
27713        } && test -s conftest.$ac_objext; then
27714   wx_cv_expat_is_not_broken=yes
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719         wx_cv_expat_is_not_broken=no
27720
27721 fi
27722
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724                 ac_ext=c
27725 ac_cpp='$CPP $CPPFLAGS'
27726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27729
27730
27731
27732 fi
27733 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27734 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27735             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27736                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27737 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27738 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27739   echo $ECHO_N "(cached) $ECHO_C" >&6
27740 else
27741   ac_check_lib_save_LIBS=$LIBS
27742 LIBS="-lexpat  $LIBS"
27743 cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h.  */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h.  */
27749
27750 /* Override any GCC internal prototype to avoid an error.
27751    Use char because int might match the return type of a GCC
27752    builtin and then its argument prototype would still apply.  */
27753 #ifdef __cplusplus
27754 extern "C"
27755 #endif
27756 char XML_ParserCreate ();
27757 int
27758 main ()
27759 {
27760 return XML_ParserCreate ();
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (ac_try="$ac_link"
27767 case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_link") 2>conftest.er1
27773   ac_status=$?
27774   grep -v '^ *+' conftest.er1 >conftest.err
27775   rm -f conftest.er1
27776   cat conftest.err >&5
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); } && {
27779          test -z "$ac_c_werror_flag" ||
27780          test ! -s conftest.err
27781        } && test -s conftest$ac_exeext &&
27782        $as_test_x conftest$ac_exeext; then
27783   ac_cv_lib_expat_XML_ParserCreate=yes
27784 else
27785   echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788         ac_cv_lib_expat_XML_ParserCreate=no
27789 fi
27790
27791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27792       conftest$ac_exeext conftest.$ac_ext
27793 LIBS=$ac_check_lib_save_LIBS
27794 fi
27795 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27796 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27797 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27798   EXPAT_LINK=" -lexpat"
27799 fi
27800
27801             fi
27802         fi
27803         if test "x$EXPAT_LINK" = "x" ; then
27804             if test "$wxUSE_EXPAT" = "sys" ; then
27805                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27806 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27807    { (exit 1); exit 1; }; }
27808             else
27809                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27810 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27811                 wxUSE_EXPAT=builtin
27812             fi
27813         else
27814                         wxUSE_EXPAT=sys
27815         fi
27816     fi
27817     if test "$wxUSE_EXPAT" = "builtin" ; then
27818                 subdirs="$subdirs src/expat"
27819
27820     fi
27821 fi
27822
27823
27824
27825 if test "$wxUSE_LIBMSPACK" != "no"; then
27826     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27827 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27828 if test "${ac_cv_header_mspack_h+set}" = set; then
27829   echo $ECHO_N "(cached) $ECHO_C" >&6
27830 else
27831   cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837
27838
27839 #include <mspack.h>
27840 _ACEOF
27841 rm -f conftest.$ac_objext
27842 if { (ac_try="$ac_compile"
27843 case "(($ac_try" in
27844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27845   *) ac_try_echo=$ac_try;;
27846 esac
27847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27848   (eval "$ac_compile") 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } && {
27855          test -z "$ac_c_werror_flag" ||
27856          test ! -s conftest.err
27857        } && test -s conftest.$ac_objext; then
27858   ac_cv_header_mspack_h=yes
27859 else
27860   echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27862
27863         ac_cv_header_mspack_h=no
27864 fi
27865
27866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27867 fi
27868 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27869 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27870 if test $ac_cv_header_mspack_h = yes; then
27871   found_mspack_h=1
27872 fi
27873
27874
27875     if test "x$found_mspack_h" = "x1"; then
27876         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27877 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27878 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881   ac_check_lib_save_LIBS=$LIBS
27882 LIBS="-lmspack  $LIBS"
27883 cat >conftest.$ac_ext <<_ACEOF
27884 /* confdefs.h.  */
27885 _ACEOF
27886 cat confdefs.h >>conftest.$ac_ext
27887 cat >>conftest.$ac_ext <<_ACEOF
27888 /* end confdefs.h.  */
27889
27890 /* Override any GCC internal prototype to avoid an error.
27891    Use char because int might match the return type of a GCC
27892    builtin and then its argument prototype would still apply.  */
27893 #ifdef __cplusplus
27894 extern "C"
27895 #endif
27896 char mspack_create_chm_decompressor ();
27897 int
27898 main ()
27899 {
27900 return mspack_create_chm_decompressor ();
27901   ;
27902   return 0;
27903 }
27904 _ACEOF
27905 rm -f conftest.$ac_objext conftest$ac_exeext
27906 if { (ac_try="$ac_link"
27907 case "(($ac_try" in
27908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909   *) ac_try_echo=$ac_try;;
27910 esac
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912   (eval "$ac_link") 2>conftest.er1
27913   ac_status=$?
27914   grep -v '^ *+' conftest.er1 >conftest.err
27915   rm -f conftest.er1
27916   cat conftest.err >&5
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); } && {
27919          test -z "$ac_c_werror_flag" ||
27920          test ! -s conftest.err
27921        } && test -s conftest$ac_exeext &&
27922        $as_test_x conftest$ac_exeext; then
27923   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27924 else
27925   echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27927
27928         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27929 fi
27930
27931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27932       conftest$ac_exeext conftest.$ac_ext
27933 LIBS=$ac_check_lib_save_LIBS
27934 fi
27935 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27936 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
27937 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27938   MSPACK_LINK=" -lmspack"
27939 fi
27940
27941     fi
27942     if test "x$MSPACK_LINK" = "x" ; then
27943         wxUSE_LIBMSPACK=no
27944     fi
27945 fi
27946
27947 if test "$wxUSE_LIBMSPACK" != "no"; then
27948     cat >>confdefs.h <<\_ACEOF
27949 #define wxUSE_LIBMSPACK 1
27950 _ACEOF
27951
27952 fi
27953
27954
27955
27956 AFMINSTALL=
27957 WIN32INSTALL=
27958
27959 TOOLKIT=
27960 TOOLKIT_INCLUDE=
27961 WIDGET_SET=
27962
27963 if test "$USE_WIN32" = 1 ; then
27964
27965 for ac_header in w32api.h
27966 do
27967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27971   echo $ECHO_N "(cached) $ECHO_C" >&6
27972 else
27973   cat >conftest.$ac_ext <<_ACEOF
27974 /* confdefs.h.  */
27975 _ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h.  */
27979
27980
27981 #include <$ac_header>
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987   *) ac_try_echo=$ac_try;;
27988 esac
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990   (eval "$ac_compile") 2>conftest.er1
27991   ac_status=$?
27992   grep -v '^ *+' conftest.er1 >conftest.err
27993   rm -f conftest.er1
27994   cat conftest.err >&5
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); } && {
27997          test -z "$ac_c_werror_flag" ||
27998          test ! -s conftest.err
27999        } && test -s conftest.$ac_objext; then
28000   eval "$as_ac_Header=yes"
28001 else
28002   echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28004
28005         eval "$as_ac_Header=no"
28006 fi
28007
28008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 fi
28010 ac_res=`eval echo '${'$as_ac_Header'}'`
28011                { echo "$as_me:$LINENO: result: $ac_res" >&5
28012 echo "${ECHO_T}$ac_res" >&6; }
28013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28014   cat >>confdefs.h <<_ACEOF
28015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28016 _ACEOF
28017
28018 fi
28019
28020 done
28021
28022     { echo "$as_me:$LINENO: checking for windows.h" >&5
28023 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28024 if test "${ac_cv_header_windows_h+set}" = set; then
28025   echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027   cat >conftest.$ac_ext <<_ACEOF
28028 /* confdefs.h.  */
28029 _ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h.  */
28033
28034
28035 #include <windows.h>
28036 _ACEOF
28037 rm -f conftest.$ac_objext
28038 if { (ac_try="$ac_compile"
28039 case "(($ac_try" in
28040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041   *) ac_try_echo=$ac_try;;
28042 esac
28043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044   (eval "$ac_compile") 2>conftest.er1
28045   ac_status=$?
28046   grep -v '^ *+' conftest.er1 >conftest.err
28047   rm -f conftest.er1
28048   cat conftest.err >&5
28049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050   (exit $ac_status); } && {
28051          test -z "$ac_c_werror_flag" ||
28052          test ! -s conftest.err
28053        } && test -s conftest.$ac_objext; then
28054   ac_cv_header_windows_h=yes
28055 else
28056   echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28058
28059         ac_cv_header_windows_h=no
28060 fi
28061
28062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28063 fi
28064 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28065 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28066 if test $ac_cv_header_windows_h = yes; then
28067   :
28068 else
28069
28070         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28071 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28072    { (exit 1); exit 1; }; }
28073
28074 fi
28075
28076
28077
28078             case "${host}" in
28079         x86_64-*-mingw32* )
28080                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28081         ;;
28082         * )
28083             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28084         ;;
28085     esac
28086     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28087         LIBS="$LIBS -loleacc"
28088     fi
28089
28090     case "${host}" in
28091         *-*-cygwin* )
28092                         LIBS="$LIBS -lkernel32 -luser32"
28093     esac
28094
28095         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28096     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28097
28098                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28099
28100         WIN32INSTALL=win32install
28101
28102         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28103 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28104 if test "${ac_cv_header_pbt_h+set}" = set; then
28105   echo $ECHO_N "(cached) $ECHO_C" >&6
28106 else
28107   cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113
28114
28115 #include <pbt.h>
28116 _ACEOF
28117 rm -f conftest.$ac_objext
28118 if { (ac_try="$ac_compile"
28119 case "(($ac_try" in
28120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121   *) ac_try_echo=$ac_try;;
28122 esac
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124   (eval "$ac_compile") 2>conftest.er1
28125   ac_status=$?
28126   grep -v '^ *+' conftest.er1 >conftest.err
28127   rm -f conftest.er1
28128   cat conftest.err >&5
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } && {
28131          test -z "$ac_c_werror_flag" ||
28132          test ! -s conftest.err
28133        } && test -s conftest.$ac_objext; then
28134   ac_cv_header_pbt_h=yes
28135 else
28136   echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28138
28139         ac_cv_header_pbt_h=no
28140 fi
28141
28142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28143 fi
28144 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28145 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28146 if test $ac_cv_header_pbt_h = yes; then
28147   :
28148 else
28149   cat >>confdefs.h <<\_ACEOF
28150 #define NEED_PBT_H 1
28151 _ACEOF
28152
28153 fi
28154
28155
28156 fi
28157
28158 if test "$wxUSE_GUI" = "yes"; then
28159     USE_GUI=1
28160
28161     GUI_TK_LIBRARY=
28162
28163     WXGTK12=
28164     WXGTK127=
28165     WXGTK2=
28166     WXGPE=
28167
28168     if test "$wxUSE_COCOA" = 1 ; then
28169         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28170             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28171 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28172             wxUSE_PRINTING_ARCHITECTURE=no
28173         fi
28174         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28175             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28176 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28177             wxUSE_DRAG_AND_DROP=no
28178         fi
28179         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28180             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28181 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28182             wxUSE_DRAGIMAGE=no
28183         fi
28184     fi
28185
28186     if test "$wxUSE_MSW" = 1 ; then
28187         TOOLKIT=MSW
28188         GUIDIST=MSW_DIST
28189
28190                 case "${host}" in
28191             *-*-mingw32* )
28192                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28193         esac
28194     fi
28195
28196     if test "$wxUSE_GTK" = 1; then
28197                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28198 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28199
28200         gtk_version_cached=1
28201         if test "${wx_cv_lib_gtk+set}" = set; then
28202   echo $ECHO_N "(cached) $ECHO_C" >&6
28203 else
28204
28205                                                 gtk_version_cached=0
28206                 { echo "$as_me:$LINENO: result: " >&5
28207 echo "${ECHO_T}" >&6; }
28208
28209                                                 GTK_MODULES=
28210                 if test "$wxUSE_THREADS" = "yes"; then
28211                     GTK_MODULES=gthread
28212                 fi
28213
28214                                 wx_cv_lib_gtk=
28215                 if test "x$wxGTK_VERSION" != "x1"
28216                 then
28217                                                                                 case "${host}" in
28218                         *-*-solaris2* )
28219                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28220                                 enable_gtktest=no
28221                             fi
28222                     esac
28223
28224                     # Check whether --enable-gtktest was given.
28225 if test "${enable_gtktest+set}" = set; then
28226   enableval=$enable_gtktest;
28227 else
28228   enable_gtktest=yes
28229 fi
28230
28231
28232   pkg_config_args=gtk+-2.0
28233   for module in . $GTK_MODULES
28234   do
28235       case "$module" in
28236          gthread)
28237              pkg_config_args="$pkg_config_args gthread-2.0"
28238          ;;
28239       esac
28240   done
28241
28242   no_gtk=""
28243
28244   # Extract the first word of "pkg-config", so it can be a program name with args.
28245 set dummy pkg-config; ac_word=$2
28246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28248 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28249   echo $ECHO_N "(cached) $ECHO_C" >&6
28250 else
28251   case $PKG_CONFIG in
28252   [\\/]* | ?:[\\/]*)
28253   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28254   ;;
28255   *)
28256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28257 for as_dir in $PATH
28258 do
28259   IFS=$as_save_IFS
28260   test -z "$as_dir" && as_dir=.
28261   for ac_exec_ext in '' $ac_executable_extensions; do
28262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28263     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28265     break 2
28266   fi
28267 done
28268 done
28269 IFS=$as_save_IFS
28270
28271   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28272   ;;
28273 esac
28274 fi
28275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28276 if test -n "$PKG_CONFIG"; then
28277   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28278 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28279 else
28280   { echo "$as_me:$LINENO: result: no" >&5
28281 echo "${ECHO_T}no" >&6; }
28282 fi
28283
28284
28285
28286   if test x$PKG_CONFIG != xno ; then
28287     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28288       :
28289     else
28290       echo "*** pkg-config too old; version 0.7 or better required."
28291       no_gtk=yes
28292       PKG_CONFIG=no
28293     fi
28294   else
28295     no_gtk=yes
28296   fi
28297
28298   min_gtk_version=2.4.0
28299   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28300 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28301
28302   if test x$PKG_CONFIG != xno ; then
28303     ## don't try to run the test against uninstalled libtool libs
28304     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28305           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28306           enable_gtktest=no
28307     fi
28308
28309     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28310           :
28311     else
28312           no_gtk=yes
28313     fi
28314   fi
28315
28316   if test x"$no_gtk" = x ; then
28317     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28318     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28319     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28320            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28321     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28322            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28323     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28324            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28325     if test "x$enable_gtktest" = "xyes" ; then
28326       ac_save_CFLAGS="$CFLAGS"
28327       ac_save_LIBS="$LIBS"
28328       CFLAGS="$CFLAGS $GTK_CFLAGS"
28329       LIBS="$GTK_LIBS $LIBS"
28330       rm -f conf.gtktest
28331       if test "$cross_compiling" = yes; then
28332   echo $ac_n "cross compiling; assumed OK... $ac_c"
28333 else
28334   cat >conftest.$ac_ext <<_ACEOF
28335 /* confdefs.h.  */
28336 _ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h.  */
28340
28341 #include <gtk/gtk.h>
28342 #include <stdio.h>
28343 #include <stdlib.h>
28344
28345 int
28346 main ()
28347 {
28348   int major, minor, micro;
28349   char *tmp_version;
28350
28351   system ("touch conf.gtktest");
28352
28353   /* HP/UX 9 (%@#!) writes to sscanf strings */
28354   tmp_version = g_strdup("$min_gtk_version");
28355   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28356      printf("%s, bad version string\n", "$min_gtk_version");
28357      exit(1);
28358    }
28359
28360   if ((gtk_major_version != $gtk_config_major_version) ||
28361       (gtk_minor_version != $gtk_config_minor_version) ||
28362       (gtk_micro_version != $gtk_config_micro_version))
28363     {
28364       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28365              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28366              gtk_major_version, gtk_minor_version, gtk_micro_version);
28367       printf ("*** was found! If pkg-config was correct, then it is best\n");
28368       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28369       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28370       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28371       printf("*** required on your system.\n");
28372       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28373       printf("*** to point to the correct configuration files\n");
28374     }
28375   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28376            (gtk_minor_version != GTK_MINOR_VERSION) ||
28377            (gtk_micro_version != GTK_MICRO_VERSION))
28378     {
28379       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28380              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28381       printf("*** library (version %d.%d.%d)\n",
28382              gtk_major_version, gtk_minor_version, gtk_micro_version);
28383     }
28384   else
28385     {
28386       if ((gtk_major_version > major) ||
28387         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28388         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28389       {
28390         return 0;
28391        }
28392      else
28393       {
28394         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28395                gtk_major_version, gtk_minor_version, gtk_micro_version);
28396         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28397                major, minor, micro);
28398         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28399         printf("***\n");
28400         printf("*** If you have already installed a sufficiently new version, this error\n");
28401         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28402         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28403         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28404         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28405         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28406         printf("*** so that the correct libraries are found at run-time))\n");
28407       }
28408     }
28409   return 1;
28410 }
28411
28412 _ACEOF
28413 rm -f conftest$ac_exeext
28414 if { (ac_try="$ac_link"
28415 case "(($ac_try" in
28416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417   *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420   (eval "$ac_link") 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28424   { (case "(($ac_try" in
28425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426   *) ac_try_echo=$ac_try;;
28427 esac
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429   (eval "$ac_try") 2>&5
28430   ac_status=$?
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); }; }; then
28433   :
28434 else
28435   echo "$as_me: program exited with status $ac_status" >&5
28436 echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28438
28439 ( exit $ac_status )
28440 no_gtk=yes
28441 fi
28442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28443 fi
28444
28445
28446        CFLAGS="$ac_save_CFLAGS"
28447        LIBS="$ac_save_LIBS"
28448      fi
28449   fi
28450   if test "x$no_gtk" = x ; then
28451      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28452 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28453      wx_cv_lib_gtk=2.0
28454   else
28455      { echo "$as_me:$LINENO: result: no" >&5
28456 echo "${ECHO_T}no" >&6; }
28457      if test "$PKG_CONFIG" = "no" ; then
28458        echo "*** A new enough version of pkg-config was not found."
28459        echo "*** See http://pkgconfig.sourceforge.net"
28460      else
28461        if test -f conf.gtktest ; then
28462         :
28463        else
28464           echo "*** Could not run GTK+ test program, checking why..."
28465           ac_save_CFLAGS="$CFLAGS"
28466           ac_save_LIBS="$LIBS"
28467           CFLAGS="$CFLAGS $GTK_CFLAGS"
28468           LIBS="$LIBS $GTK_LIBS"
28469           cat >conftest.$ac_ext <<_ACEOF
28470 /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475
28476 #include <gtk/gtk.h>
28477 #include <stdio.h>
28478
28479 int
28480 main ()
28481 {
28482  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28483   ;
28484   return 0;
28485 }
28486 _ACEOF
28487 rm -f conftest.$ac_objext conftest$ac_exeext
28488 if { (ac_try="$ac_link"
28489 case "(($ac_try" in
28490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491   *) ac_try_echo=$ac_try;;
28492 esac
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494   (eval "$ac_link") 2>conftest.er1
28495   ac_status=$?
28496   grep -v '^ *+' conftest.er1 >conftest.err
28497   rm -f conftest.er1
28498   cat conftest.err >&5
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); } && {
28501          test -z "$ac_c_werror_flag" ||
28502          test ! -s conftest.err
28503        } && test -s conftest$ac_exeext &&
28504        $as_test_x conftest$ac_exeext; then
28505    echo "*** The test program compiled, but did not run. This usually means"
28506           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28507           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28508           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28509           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28510           echo "*** is required on your system"
28511           echo "***"
28512           echo "*** If you have an old version installed, it is best to remove it, although"
28513           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28514 else
28515   echo "$as_me: failed program was:" >&5
28516 sed 's/^/| /' conftest.$ac_ext >&5
28517
28518          echo "*** The test program failed to compile or link. See the file config.log for the"
28519           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28520 fi
28521
28522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28523       conftest$ac_exeext conftest.$ac_ext
28524           CFLAGS="$ac_save_CFLAGS"
28525           LIBS="$ac_save_LIBS"
28526        fi
28527      fi
28528      GTK_CFLAGS=""
28529      GTK_LIBS=""
28530      :
28531   fi
28532
28533
28534   rm -f conf.gtktest
28535
28536
28537                                         case "${host}" in
28538                         *-*-solaris2* )
28539                             if test "$wxUSE_SHARED" != "yes"; then
28540                                 GTK_LIBS="$GTK_LIBS -lX11"
28541                             fi
28542                     esac
28543                 fi
28544
28545                                 if test -z "$wx_cv_lib_gtk"; then
28546                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28547
28548 # Check whether --with-gtk-prefix was given.
28549 if test "${with_gtk_prefix+set}" = set; then
28550   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28551 else
28552   gtk_config_prefix=""
28553 fi
28554
28555
28556 # Check whether --with-gtk-exec-prefix was given.
28557 if test "${with_gtk_exec_prefix+set}" = set; then
28558   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28559 else
28560   gtk_config_exec_prefix=""
28561 fi
28562
28563 # Check whether --enable-gtktest was given.
28564 if test "${enable_gtktest+set}" = set; then
28565   enableval=$enable_gtktest;
28566 else
28567   enable_gtktest=yes
28568 fi
28569
28570
28571   for module in . $GTK_MODULES
28572   do
28573       case "$module" in
28574          gthread)
28575              gtk_config_args="$gtk_config_args gthread"
28576          ;;
28577       esac
28578   done
28579
28580   if test x$gtk_config_exec_prefix != x ; then
28581      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28582      if test x${GTK_CONFIG+set} != xset ; then
28583         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28584      fi
28585   fi
28586   if test x$gtk_config_prefix != x ; then
28587      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28588      if test x${GTK_CONFIG+set} != xset ; then
28589         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28590      fi
28591   fi
28592
28593   # Extract the first word of "gtk-config", so it can be a program name with args.
28594 set dummy gtk-config; ac_word=$2
28595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28597 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28598   echo $ECHO_N "(cached) $ECHO_C" >&6
28599 else
28600   case $GTK_CONFIG in
28601   [\\/]* | ?:[\\/]*)
28602   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28603   ;;
28604   *)
28605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28606 for as_dir in $PATH
28607 do
28608   IFS=$as_save_IFS
28609   test -z "$as_dir" && as_dir=.
28610   for ac_exec_ext in '' $ac_executable_extensions; do
28611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28612     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28614     break 2
28615   fi
28616 done
28617 done
28618 IFS=$as_save_IFS
28619
28620   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28621   ;;
28622 esac
28623 fi
28624 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28625 if test -n "$GTK_CONFIG"; then
28626   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28627 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28628 else
28629   { echo "$as_me:$LINENO: result: no" >&5
28630 echo "${ECHO_T}no" >&6; }
28631 fi
28632
28633
28634   min_gtk_version=1.2.7
28635   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28636 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28637   no_gtk=""
28638   if test "$GTK_CONFIG" = "no" ; then
28639     no_gtk=yes
28640   else
28641     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28642     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28643     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28644            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28645     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28646            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28647     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28648            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28649     if test "x$enable_gtktest" = "xyes" ; then
28650       ac_save_CFLAGS="$CFLAGS"
28651       ac_save_LIBS="$LIBS"
28652       CFLAGS="$CFLAGS $GTK_CFLAGS"
28653       LIBS="$GTK_LIBS $LIBS"
28654       rm -f conf.gtktest
28655       if test "$cross_compiling" = yes; then
28656   echo $ac_n "cross compiling; assumed OK... $ac_c"
28657 else
28658   cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h.  */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h.  */
28664
28665 #include <gtk/gtk.h>
28666 #include <stdio.h>
28667 #include <stdlib.h>
28668
28669 int
28670 main ()
28671 {
28672   int major, minor, micro;
28673   char *tmp_version;
28674
28675   system ("touch conf.gtktest");
28676
28677   /* HP/UX 9 (%@#!) writes to sscanf strings */
28678   tmp_version = g_strdup("$min_gtk_version");
28679   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28680      printf("%s, bad version string\n", "$min_gtk_version");
28681      exit(1);
28682    }
28683
28684   if ((gtk_major_version != $gtk_config_major_version) ||
28685       (gtk_minor_version != $gtk_config_minor_version) ||
28686       (gtk_micro_version != $gtk_config_micro_version))
28687     {
28688       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28689              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28690              gtk_major_version, gtk_minor_version, gtk_micro_version);
28691       printf ("*** was found! If gtk-config was correct, then it is best\n");
28692       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28693       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28694       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28695       printf("*** required on your system.\n");
28696       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28697       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28698       printf("*** before re-running configure\n");
28699     }
28700 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28701   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28702            (gtk_minor_version != GTK_MINOR_VERSION) ||
28703            (gtk_micro_version != GTK_MICRO_VERSION))
28704     {
28705       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28706              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28707       printf("*** library (version %d.%d.%d)\n",
28708              gtk_major_version, gtk_minor_version, gtk_micro_version);
28709     }
28710 #endif /* defined (GTK_MAJOR_VERSION) ... */
28711   else
28712     {
28713       if ((gtk_major_version > major) ||
28714         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28715         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28716       {
28717         return 0;
28718        }
28719      else
28720       {
28721         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28722                gtk_major_version, gtk_minor_version, gtk_micro_version);
28723         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28724                major, minor, micro);
28725         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28726         printf("***\n");
28727         printf("*** If you have already installed a sufficiently new version, this error\n");
28728         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28729         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28730         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28731         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28732         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28733         printf("*** so that the correct libraries are found at run-time))\n");
28734       }
28735     }
28736   return 1;
28737 }
28738
28739 _ACEOF
28740 rm -f conftest$ac_exeext
28741 if { (ac_try="$ac_link"
28742 case "(($ac_try" in
28743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744   *) ac_try_echo=$ac_try;;
28745 esac
28746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28747   (eval "$ac_link") 2>&5
28748   ac_status=$?
28749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28751   { (case "(($ac_try" in
28752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753   *) ac_try_echo=$ac_try;;
28754 esac
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756   (eval "$ac_try") 2>&5
28757   ac_status=$?
28758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759   (exit $ac_status); }; }; then
28760   :
28761 else
28762   echo "$as_me: program exited with status $ac_status" >&5
28763 echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766 ( exit $ac_status )
28767 no_gtk=yes
28768 fi
28769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28770 fi
28771
28772
28773        CFLAGS="$ac_save_CFLAGS"
28774        LIBS="$ac_save_LIBS"
28775      fi
28776   fi
28777   if test "x$no_gtk" = x ; then
28778      { echo "$as_me:$LINENO: result: yes" >&5
28779 echo "${ECHO_T}yes" >&6; }
28780      wx_cv_lib_gtk=1.2.7
28781   else
28782      { echo "$as_me:$LINENO: result: no" >&5
28783 echo "${ECHO_T}no" >&6; }
28784      if test "$GTK_CONFIG" = "no" ; then
28785        echo "*** The gtk-config script installed by GTK could not be found"
28786        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28787        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28788        echo "*** full path to gtk-config."
28789      else
28790        if test -f conf.gtktest ; then
28791         :
28792        else
28793           echo "*** Could not run GTK test program, checking why..."
28794           CFLAGS="$CFLAGS $GTK_CFLAGS"
28795           LIBS="$LIBS $GTK_LIBS"
28796           cat >conftest.$ac_ext <<_ACEOF
28797 /* confdefs.h.  */
28798 _ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h.  */
28802
28803 #include <gtk/gtk.h>
28804 #include <stdio.h>
28805
28806 int
28807 main ()
28808 {
28809  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28810   ;
28811   return 0;
28812 }
28813 _ACEOF
28814 rm -f conftest.$ac_objext conftest$ac_exeext
28815 if { (ac_try="$ac_link"
28816 case "(($ac_try" in
28817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818   *) ac_try_echo=$ac_try;;
28819 esac
28820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821   (eval "$ac_link") 2>conftest.er1
28822   ac_status=$?
28823   grep -v '^ *+' conftest.er1 >conftest.err
28824   rm -f conftest.er1
28825   cat conftest.err >&5
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); } && {
28828          test -z "$ac_c_werror_flag" ||
28829          test ! -s conftest.err
28830        } && test -s conftest$ac_exeext &&
28831        $as_test_x conftest$ac_exeext; then
28832    echo "*** The test program compiled, but did not run. This usually means"
28833           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28834           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28835           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28836           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28837           echo "*** is required on your system"
28838           echo "***"
28839           echo "*** If you have an old version installed, it is best to remove it, although"
28840           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28841           echo "***"
28842           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28843           echo "*** came with the system with the command"
28844           echo "***"
28845           echo "***    rpm --erase --nodeps gtk gtk-devel"
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850          echo "*** The test program failed to compile or link. See the file config.log for the"
28851           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28852           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28853           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28854 fi
28855
28856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28857       conftest$ac_exeext conftest.$ac_ext
28858           CFLAGS="$ac_save_CFLAGS"
28859           LIBS="$ac_save_LIBS"
28860        fi
28861      fi
28862      GTK_CFLAGS=""
28863      GTK_LIBS=""
28864      :
28865   fi
28866
28867
28868   rm -f conf.gtktest
28869
28870
28871                         if test -z "$wx_cv_lib_gtk"; then
28872
28873 # Check whether --with-gtk-prefix was given.
28874 if test "${with_gtk_prefix+set}" = set; then
28875   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28876 else
28877   gtk_config_prefix=""
28878 fi
28879
28880
28881 # Check whether --with-gtk-exec-prefix was given.
28882 if test "${with_gtk_exec_prefix+set}" = set; then
28883   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28884 else
28885   gtk_config_exec_prefix=""
28886 fi
28887
28888 # Check whether --enable-gtktest was given.
28889 if test "${enable_gtktest+set}" = set; then
28890   enableval=$enable_gtktest;
28891 else
28892   enable_gtktest=yes
28893 fi
28894
28895
28896   for module in . $GTK_MODULES
28897   do
28898       case "$module" in
28899          gthread)
28900              gtk_config_args="$gtk_config_args gthread"
28901          ;;
28902       esac
28903   done
28904
28905   if test x$gtk_config_exec_prefix != x ; then
28906      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28907      if test x${GTK_CONFIG+set} != xset ; then
28908         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28909      fi
28910   fi
28911   if test x$gtk_config_prefix != x ; then
28912      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28913      if test x${GTK_CONFIG+set} != xset ; then
28914         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28915      fi
28916   fi
28917
28918   # Extract the first word of "gtk-config", so it can be a program name with args.
28919 set dummy gtk-config; ac_word=$2
28920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28922 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28923   echo $ECHO_N "(cached) $ECHO_C" >&6
28924 else
28925   case $GTK_CONFIG in
28926   [\\/]* | ?:[\\/]*)
28927   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28928   ;;
28929   *)
28930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28931 for as_dir in $PATH
28932 do
28933   IFS=$as_save_IFS
28934   test -z "$as_dir" && as_dir=.
28935   for ac_exec_ext in '' $ac_executable_extensions; do
28936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28937     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28939     break 2
28940   fi
28941 done
28942 done
28943 IFS=$as_save_IFS
28944
28945   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28946   ;;
28947 esac
28948 fi
28949 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28950 if test -n "$GTK_CONFIG"; then
28951   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28952 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28953 else
28954   { echo "$as_me:$LINENO: result: no" >&5
28955 echo "${ECHO_T}no" >&6; }
28956 fi
28957
28958
28959   min_gtk_version=1.2.3
28960   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28961 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28962   no_gtk=""
28963   if test "$GTK_CONFIG" = "no" ; then
28964     no_gtk=yes
28965   else
28966     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28967     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28968     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28969            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28970     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28971            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28972     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28973            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28974     if test "x$enable_gtktest" = "xyes" ; then
28975       ac_save_CFLAGS="$CFLAGS"
28976       ac_save_LIBS="$LIBS"
28977       CFLAGS="$CFLAGS $GTK_CFLAGS"
28978       LIBS="$GTK_LIBS $LIBS"
28979       rm -f conf.gtktest
28980       if test "$cross_compiling" = yes; then
28981   echo $ac_n "cross compiling; assumed OK... $ac_c"
28982 else
28983   cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990 #include <gtk/gtk.h>
28991 #include <stdio.h>
28992 #include <stdlib.h>
28993
28994 int
28995 main ()
28996 {
28997   int major, minor, micro;
28998   char *tmp_version;
28999
29000   system ("touch conf.gtktest");
29001
29002   /* HP/UX 9 (%@#!) writes to sscanf strings */
29003   tmp_version = g_strdup("$min_gtk_version");
29004   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29005      printf("%s, bad version string\n", "$min_gtk_version");
29006      exit(1);
29007    }
29008
29009   if ((gtk_major_version != $gtk_config_major_version) ||
29010       (gtk_minor_version != $gtk_config_minor_version) ||
29011       (gtk_micro_version != $gtk_config_micro_version))
29012     {
29013       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29014              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29015              gtk_major_version, gtk_minor_version, gtk_micro_version);
29016       printf ("*** was found! If gtk-config was correct, then it is best\n");
29017       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29018       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29019       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29020       printf("*** required on your system.\n");
29021       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29022       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29023       printf("*** before re-running configure\n");
29024     }
29025 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29026   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29027            (gtk_minor_version != GTK_MINOR_VERSION) ||
29028            (gtk_micro_version != GTK_MICRO_VERSION))
29029     {
29030       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29031              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29032       printf("*** library (version %d.%d.%d)\n",
29033              gtk_major_version, gtk_minor_version, gtk_micro_version);
29034     }
29035 #endif /* defined (GTK_MAJOR_VERSION) ... */
29036   else
29037     {
29038       if ((gtk_major_version > major) ||
29039         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29040         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29041       {
29042         return 0;
29043        }
29044      else
29045       {
29046         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29047                gtk_major_version, gtk_minor_version, gtk_micro_version);
29048         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29049                major, minor, micro);
29050         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29051         printf("***\n");
29052         printf("*** If you have already installed a sufficiently new version, this error\n");
29053         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29054         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29055         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29056         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29057         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29058         printf("*** so that the correct libraries are found at run-time))\n");
29059       }
29060     }
29061   return 1;
29062 }
29063
29064 _ACEOF
29065 rm -f conftest$ac_exeext
29066 if { (ac_try="$ac_link"
29067 case "(($ac_try" in
29068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069   *) ac_try_echo=$ac_try;;
29070 esac
29071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29072   (eval "$ac_link") 2>&5
29073   ac_status=$?
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29076   { (case "(($ac_try" in
29077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078   *) ac_try_echo=$ac_try;;
29079 esac
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081   (eval "$ac_try") 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; }; then
29085   :
29086 else
29087   echo "$as_me: program exited with status $ac_status" >&5
29088 echo "$as_me: failed program was:" >&5
29089 sed 's/^/| /' conftest.$ac_ext >&5
29090
29091 ( exit $ac_status )
29092 no_gtk=yes
29093 fi
29094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29095 fi
29096
29097
29098        CFLAGS="$ac_save_CFLAGS"
29099        LIBS="$ac_save_LIBS"
29100      fi
29101   fi
29102   if test "x$no_gtk" = x ; then
29103      { echo "$as_me:$LINENO: result: yes" >&5
29104 echo "${ECHO_T}yes" >&6; }
29105      wx_cv_lib_gtk=1.2.3
29106   else
29107      { echo "$as_me:$LINENO: result: no" >&5
29108 echo "${ECHO_T}no" >&6; }
29109      if test "$GTK_CONFIG" = "no" ; then
29110        echo "*** The gtk-config script installed by GTK could not be found"
29111        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29112        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29113        echo "*** full path to gtk-config."
29114      else
29115        if test -f conf.gtktest ; then
29116         :
29117        else
29118           echo "*** Could not run GTK test program, checking why..."
29119           CFLAGS="$CFLAGS $GTK_CFLAGS"
29120           LIBS="$LIBS $GTK_LIBS"
29121           cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127
29128 #include <gtk/gtk.h>
29129 #include <stdio.h>
29130
29131 int
29132 main ()
29133 {
29134  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29135   ;
29136   return 0;
29137 }
29138 _ACEOF
29139 rm -f conftest.$ac_objext conftest$ac_exeext
29140 if { (ac_try="$ac_link"
29141 case "(($ac_try" in
29142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143   *) ac_try_echo=$ac_try;;
29144 esac
29145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146   (eval "$ac_link") 2>conftest.er1
29147   ac_status=$?
29148   grep -v '^ *+' conftest.er1 >conftest.err
29149   rm -f conftest.er1
29150   cat conftest.err >&5
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); } && {
29153          test -z "$ac_c_werror_flag" ||
29154          test ! -s conftest.err
29155        } && test -s conftest$ac_exeext &&
29156        $as_test_x conftest$ac_exeext; then
29157    echo "*** The test program compiled, but did not run. This usually means"
29158           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29159           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29160           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29161           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29162           echo "*** is required on your system"
29163           echo "***"
29164           echo "*** If you have an old version installed, it is best to remove it, although"
29165           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29166           echo "***"
29167           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29168           echo "*** came with the system with the command"
29169           echo "***"
29170           echo "***    rpm --erase --nodeps gtk gtk-devel"
29171 else
29172   echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29174
29175          echo "*** The test program failed to compile or link. See the file config.log for the"
29176           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29177           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29178           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29179 fi
29180
29181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29182       conftest$ac_exeext conftest.$ac_ext
29183           CFLAGS="$ac_save_CFLAGS"
29184           LIBS="$ac_save_LIBS"
29185        fi
29186      fi
29187      GTK_CFLAGS=""
29188      GTK_LIBS=""
29189      :
29190   fi
29191
29192
29193   rm -f conf.gtktest
29194
29195                         fi
29196                     fi
29197                 fi
29198
29199                 if test -z "$wx_cv_lib_gtk"; then
29200                                         wx_cv_lib_gtk=none
29201                 else
29202                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29203                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29204                 fi
29205
29206
29207 fi
29208
29209
29210                         if test "$gtk_version_cached" = 1; then
29211             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29212 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29213         fi
29214
29215         case "$wx_cv_lib_gtk" in
29216             2.0)    WXGTK2=1
29217                     TOOLKIT_VERSION=2
29218                     ;;
29219             1.2.7)  WXGTK127=1
29220                     WXGTK12=1
29221                     ;;
29222             1.2.3)  WXGTK12=1
29223                     ;;
29224             *)      { { echo "$as_me:$LINENO: error:
29225 The development files for GTK+ were not found. For GTK+ 2, please
29226 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29227 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29228 and that the version is 1.2.3 or above. Also check that the
29229 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29230 --libs' are in the LD_LIBRARY_PATH or equivalent.
29231                             " >&5
29232 echo "$as_me: error:
29233 The development files for GTK+ were not found. For GTK+ 2, please
29234 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29235 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29236 and that the version is 1.2.3 or above. Also check that the
29237 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29238 --libs' are in the LD_LIBRARY_PATH or equivalent.
29239                             " >&2;}
29240    { (exit 1); exit 1; }; }
29241                     ;;
29242         esac
29243
29244         if test "$WXGTK2" = 1; then
29245             save_CFLAGS="$CFLAGS"
29246             save_LIBS="$LIBS"
29247             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29248             LIBS="$LIBS $wx_cv_libs_gtk"
29249
29250                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29251 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29252             cat >conftest.$ac_ext <<_ACEOF
29253 /* confdefs.h.  */
29254 _ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h.  */
29258
29259                             #include <gtk/gtk.h>
29260
29261 int
29262 main ()
29263 {
29264
29265                             #if !GTK_CHECK_VERSION(2,10,0)
29266                             Not GTK+ 2.10
29267                             #endif
29268
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 rm -f conftest.$ac_objext
29274 if { (ac_try="$ac_compile"
29275 case "(($ac_try" in
29276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277   *) ac_try_echo=$ac_try;;
29278 esac
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280   (eval "$ac_compile") 2>conftest.er1
29281   ac_status=$?
29282   grep -v '^ *+' conftest.er1 >conftest.err
29283   rm -f conftest.er1
29284   cat conftest.err >&5
29285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286   (exit $ac_status); } && {
29287          test -z "$ac_c_werror_flag" ||
29288          test ! -s conftest.err
29289        } && test -s conftest.$ac_objext; then
29290
29291                             cat >>confdefs.h <<\_ACEOF
29292 #define __WXGTK210__ 1
29293 _ACEOF
29294
29295                             cat >>confdefs.h <<\_ACEOF
29296 #define __WXGTK26__ 1
29297 _ACEOF
29298
29299                             { echo "$as_me:$LINENO: result: yes" >&5
29300 echo "${ECHO_T}yes" >&6; }
29301                             ac_wxgtk210=1
29302
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307
29308                             { echo "$as_me:$LINENO: result: no" >&5
29309 echo "${ECHO_T}no" >&6; }
29310                             ac_wxgtk210=0
29311
29312 fi
29313
29314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29315
29316             if test "$ac_wxgtk210" = 0; then
29317                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29318 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29319                 cat >conftest.$ac_ext <<_ACEOF
29320 /* confdefs.h.  */
29321 _ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h.  */
29325
29326                                 #include <gtk/gtk.h>
29327
29328 int
29329 main ()
29330 {
29331
29332                                 #if !GTK_CHECK_VERSION(2,6,0)
29333                                 Not GTK+ 2.6
29334                                 #endif
29335
29336   ;
29337   return 0;
29338 }
29339 _ACEOF
29340 rm -f conftest.$ac_objext
29341 if { (ac_try="$ac_compile"
29342 case "(($ac_try" in
29343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344   *) ac_try_echo=$ac_try;;
29345 esac
29346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347   (eval "$ac_compile") 2>conftest.er1
29348   ac_status=$?
29349   grep -v '^ *+' conftest.er1 >conftest.err
29350   rm -f conftest.er1
29351   cat conftest.err >&5
29352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353   (exit $ac_status); } && {
29354          test -z "$ac_c_werror_flag" ||
29355          test ! -s conftest.err
29356        } && test -s conftest.$ac_objext; then
29357
29358                                 cat >>confdefs.h <<\_ACEOF
29359 #define __WXGTK26__ 1
29360 _ACEOF
29361
29362                                 { echo "$as_me:$LINENO: result: yes" >&5
29363 echo "${ECHO_T}yes" >&6; }
29364                                 ac_wxgtk26=1
29365
29366 else
29367   echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29369
29370
29371                                 { echo "$as_me:$LINENO: result: no" >&5
29372 echo "${ECHO_T}no" >&6; }
29373                                 ac_wxgtk26=0
29374
29375 fi
29376
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378             fi
29379
29380             CFLAGS="$save_CFLAGS"
29381             LIBS="$save_LIBS"
29382         else
29383             if test "$wxUSE_UNICODE" = "yes"; then
29384                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29385 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29386                 wxUSE_UNICODE=no
29387             fi
29388
29389                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29390 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29391 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29392   echo $ECHO_N "(cached) $ECHO_C" >&6
29393 else
29394   ac_check_lib_save_LIBS=$LIBS
29395 LIBS="-lgdk  $LIBS"
29396 cat >conftest.$ac_ext <<_ACEOF
29397 /* confdefs.h.  */
29398 _ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h.  */
29402
29403 /* Override any GCC internal prototype to avoid an error.
29404    Use char because int might match the return type of a GCC
29405    builtin and then its argument prototype would still apply.  */
29406 #ifdef __cplusplus
29407 extern "C"
29408 #endif
29409 char gdk_im_open ();
29410 int
29411 main ()
29412 {
29413 return gdk_im_open ();
29414   ;
29415   return 0;
29416 }
29417 _ACEOF
29418 rm -f conftest.$ac_objext conftest$ac_exeext
29419 if { (ac_try="$ac_link"
29420 case "(($ac_try" in
29421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422   *) ac_try_echo=$ac_try;;
29423 esac
29424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425   (eval "$ac_link") 2>conftest.er1
29426   ac_status=$?
29427   grep -v '^ *+' conftest.er1 >conftest.err
29428   rm -f conftest.er1
29429   cat conftest.err >&5
29430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431   (exit $ac_status); } && {
29432          test -z "$ac_c_werror_flag" ||
29433          test ! -s conftest.err
29434        } && test -s conftest$ac_exeext &&
29435        $as_test_x conftest$ac_exeext; then
29436   ac_cv_lib_gdk_gdk_im_open=yes
29437 else
29438   echo "$as_me: failed program was:" >&5
29439 sed 's/^/| /' conftest.$ac_ext >&5
29440
29441         ac_cv_lib_gdk_gdk_im_open=no
29442 fi
29443
29444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29445       conftest$ac_exeext conftest.$ac_ext
29446 LIBS=$ac_check_lib_save_LIBS
29447 fi
29448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29449 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29450 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29451   cat >>confdefs.h <<\_ACEOF
29452 #define HAVE_XIM 1
29453 _ACEOF
29454
29455 fi
29456
29457
29458                                     if test "$USE_DARWIN" != 1; then
29459
29460 for ac_func in poll
29461 do
29462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29466   echo $ECHO_N "(cached) $ECHO_C" >&6
29467 else
29468   cat >conftest.$ac_ext <<_ACEOF
29469 /* confdefs.h.  */
29470 _ACEOF
29471 cat confdefs.h >>conftest.$ac_ext
29472 cat >>conftest.$ac_ext <<_ACEOF
29473 /* end confdefs.h.  */
29474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29476 #define $ac_func innocuous_$ac_func
29477
29478 /* System header to define __stub macros and hopefully few prototypes,
29479     which can conflict with char $ac_func (); below.
29480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29481     <limits.h> exists even on freestanding compilers.  */
29482
29483 #ifdef __STDC__
29484 # include <limits.h>
29485 #else
29486 # include <assert.h>
29487 #endif
29488
29489 #undef $ac_func
29490
29491 /* Override any GCC internal prototype to avoid an error.
29492    Use char because int might match the return type of a GCC
29493    builtin and then its argument prototype would still apply.  */
29494 #ifdef __cplusplus
29495 extern "C"
29496 #endif
29497 char $ac_func ();
29498 /* The GNU C library defines this for functions which it implements
29499     to always fail with ENOSYS.  Some functions are actually named
29500     something starting with __ and the normal name is an alias.  */
29501 #if defined __stub_$ac_func || defined __stub___$ac_func
29502 choke me
29503 #endif
29504
29505 int
29506 main ()
29507 {
29508 return $ac_func ();
29509   ;
29510   return 0;
29511 }
29512 _ACEOF
29513 rm -f conftest.$ac_objext conftest$ac_exeext
29514 if { (ac_try="$ac_link"
29515 case "(($ac_try" in
29516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517   *) ac_try_echo=$ac_try;;
29518 esac
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520   (eval "$ac_link") 2>conftest.er1
29521   ac_status=$?
29522   grep -v '^ *+' conftest.er1 >conftest.err
29523   rm -f conftest.er1
29524   cat conftest.err >&5
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); } && {
29527          test -z "$ac_c_werror_flag" ||
29528          test ! -s conftest.err
29529        } && test -s conftest$ac_exeext &&
29530        $as_test_x conftest$ac_exeext; then
29531   eval "$as_ac_var=yes"
29532 else
29533   echo "$as_me: failed program was:" >&5
29534 sed 's/^/| /' conftest.$ac_ext >&5
29535
29536         eval "$as_ac_var=no"
29537 fi
29538
29539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29540       conftest$ac_exeext conftest.$ac_ext
29541 fi
29542 ac_res=`eval echo '${'$as_ac_var'}'`
29543                { echo "$as_me:$LINENO: result: $ac_res" >&5
29544 echo "${ECHO_T}$ac_res" >&6; }
29545 if test `eval echo '${'$as_ac_var'}'` = yes; then
29546   cat >>confdefs.h <<_ACEOF
29547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29548 _ACEOF
29549
29550 fi
29551 done
29552
29553             fi
29554         fi
29555
29556         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29557         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29558
29559         AFMINSTALL=afminstall
29560         TOOLKIT=GTK
29561         GUIDIST=GTK_DIST
29562
29563                 if test "$wxUSE_GPE" = "yes"; then
29564             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29565 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29566
29567   ac_find_libraries=
29568   for ac_dir in $SEARCH_LIB;
29569   do
29570     for ac_extension in a so sl dylib dll.a; do
29571       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29572         ac_find_libraries=$ac_dir
29573         break 2
29574       fi
29575     done
29576   done
29577
29578             if test "$ac_find_libraries" != "" ; then
29579
29580     if test "$ac_find_libraries" = "default location"; then
29581     ac_path_to_link=""
29582   else
29583     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29584     result=$?
29585     if test $result = 0; then
29586       ac_path_to_link=""
29587     else
29588       ac_path_to_link=" -L$ac_find_libraries"
29589     fi
29590   fi
29591
29592                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29593                 WXGPE=1
29594                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29595 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29596             else
29597                 { echo "$as_me:$LINENO: result: not found" >&5
29598 echo "${ECHO_T}not found" >&6; }
29599             fi
29600
29601                                                                                                                     fi
29602     fi
29603
29604     if test "$wxUSE_MGL" = 1; then
29605        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29606 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29607         if test "x$MGL_ROOT" = x ; then
29608             { echo "$as_me:$LINENO: result: not found" >&5
29609 echo "${ECHO_T}not found" >&6; }
29610             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29611 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29612    { (exit 1); exit 1; }; }
29613         else
29614             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29615 echo "${ECHO_T}$MGL_ROOT" >&6; }
29616         fi
29617
29618         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29619 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29620                                 case "${host}" in
29621             *-*-linux* )
29622                                           if test "x$wxUSE_SHARED" = xyes ; then
29623                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29624               else
29625                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29626               fi
29627               ;;
29628             *-pc-msdosdjgpp )
29629               mgl_os_candidates="dos32/dj2"
29630               ;;
29631             *)
29632               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29633 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29634    { (exit 1); exit 1; }; }
29635         esac
29636
29637         mgl_lib_type=""
29638         mgl_os=""
29639
29640         for mgl_os_i in $mgl_os_candidates ; do
29641             if test "x$mgl_os" = x ; then
29642                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29643                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29644                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29645                         mgl_lib_type=debug
29646                         mgl_os=$mgl_os_i
29647                     fi
29648                 fi
29649                 if test "x$mgl_lib_type" = x ; then
29650                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29651                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29652                         mgl_lib_type=release
29653                         mgl_os=$mgl_os_i
29654                     fi
29655                 fi
29656             fi
29657         done
29658
29659         if test "x$mgl_os" = x ; then
29660             { echo "$as_me:$LINENO: result: not found" >&5
29661 echo "${ECHO_T}not found" >&6; }
29662             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29663 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29664    { (exit 1); exit 1; }; }
29665         fi
29666         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29667 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29668
29669         wxUSE_UNIVERSAL="yes"
29670
29671         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29672         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29673
29674         AFMINSTALL=afminstall
29675         TOOLKIT=MGL
29676         GUIDIST=MGL_DIST
29677     fi
29678
29679     if test "$wxUSE_DFB" = 1; then
29680
29681
29682 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29683         if test -n "$ac_tool_prefix"; then
29684   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29685 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29688 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29689   echo $ECHO_N "(cached) $ECHO_C" >&6
29690 else
29691   case $PKG_CONFIG in
29692   [\\/]* | ?:[\\/]*)
29693   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29694   ;;
29695   *)
29696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29697 for as_dir in $PATH
29698 do
29699   IFS=$as_save_IFS
29700   test -z "$as_dir" && as_dir=.
29701   for ac_exec_ext in '' $ac_executable_extensions; do
29702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29703     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29705     break 2
29706   fi
29707 done
29708 done
29709 IFS=$as_save_IFS
29710
29711   ;;
29712 esac
29713 fi
29714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29715 if test -n "$PKG_CONFIG"; then
29716   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29717 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29718 else
29719   { echo "$as_me:$LINENO: result: no" >&5
29720 echo "${ECHO_T}no" >&6; }
29721 fi
29722
29723
29724 fi
29725 if test -z "$ac_cv_path_PKG_CONFIG"; then
29726   ac_pt_PKG_CONFIG=$PKG_CONFIG
29727   # Extract the first word of "pkg-config", so it can be a program name with args.
29728 set dummy pkg-config; ac_word=$2
29729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29731 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29732   echo $ECHO_N "(cached) $ECHO_C" >&6
29733 else
29734   case $ac_pt_PKG_CONFIG in
29735   [\\/]* | ?:[\\/]*)
29736   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29737   ;;
29738   *)
29739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29740 for as_dir in $PATH
29741 do
29742   IFS=$as_save_IFS
29743   test -z "$as_dir" && as_dir=.
29744   for ac_exec_ext in '' $ac_executable_extensions; do
29745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29746     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29748     break 2
29749   fi
29750 done
29751 done
29752 IFS=$as_save_IFS
29753
29754   ;;
29755 esac
29756 fi
29757 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29758 if test -n "$ac_pt_PKG_CONFIG"; then
29759   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29760 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29761 else
29762   { echo "$as_me:$LINENO: result: no" >&5
29763 echo "${ECHO_T}no" >&6; }
29764 fi
29765
29766   if test "x$ac_pt_PKG_CONFIG" = x; then
29767     PKG_CONFIG=""
29768   else
29769     case $cross_compiling:$ac_tool_warned in
29770 yes:)
29771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29772 whose name does not start with the host triplet.  If you think this
29773 configuration is useful to you, please write to autoconf@gnu.org." >&5
29774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29775 whose name does not start with the host triplet.  If you think this
29776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29777 ac_tool_warned=yes ;;
29778 esac
29779     PKG_CONFIG=$ac_pt_PKG_CONFIG
29780   fi
29781 else
29782   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29783 fi
29784
29785 fi
29786 if test -n "$PKG_CONFIG"; then
29787         _pkg_min_version=0.9.0
29788         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29789 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29790         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29791                 { echo "$as_me:$LINENO: result: yes" >&5
29792 echo "${ECHO_T}yes" >&6; }
29793         else
29794                 { echo "$as_me:$LINENO: result: no" >&5
29795 echo "${ECHO_T}no" >&6; }
29796                 PKG_CONFIG=""
29797         fi
29798
29799 fi
29800
29801
29802 pkg_failed=no
29803 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29804 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29805
29806 if test -n "$PKG_CONFIG"; then
29807     if test -n "$DIRECTFB_CFLAGS"; then
29808         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29809     else
29810         if test -n "$PKG_CONFIG" && \
29811     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29812   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29813   ac_status=$?
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); }; then
29816   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29817 else
29818   pkg_failed=yes
29819 fi
29820     fi
29821 else
29822         pkg_failed=untried
29823 fi
29824 if test -n "$PKG_CONFIG"; then
29825     if test -n "$DIRECTFB_LIBS"; then
29826         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29827     else
29828         if test -n "$PKG_CONFIG" && \
29829     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29830   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29831   ac_status=$?
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); }; then
29834   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29835 else
29836   pkg_failed=yes
29837 fi
29838     fi
29839 else
29840         pkg_failed=untried
29841 fi
29842
29843
29844
29845 if test $pkg_failed = yes; then
29846
29847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29848         _pkg_short_errors_supported=yes
29849 else
29850         _pkg_short_errors_supported=no
29851 fi
29852         if test $_pkg_short_errors_supported = yes; then
29853                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29854         else
29855                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29856         fi
29857         # Put the nasty error message in config.log where it belongs
29858         echo "$DIRECTFB_PKG_ERRORS" >&5
29859
29860
29861                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29862 echo "$as_me: error: DirectFB not found." >&2;}
29863    { (exit 1); exit 1; }; }
29864
29865
29866 elif test $pkg_failed = untried; then
29867
29868                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29869 echo "$as_me: error: DirectFB not found." >&2;}
29870    { (exit 1); exit 1; }; }
29871
29872
29873 else
29874         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29875         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29876         { echo "$as_me:$LINENO: result: yes" >&5
29877 echo "${ECHO_T}yes" >&6; }
29878
29879                            wxUSE_UNIVERSAL="yes"
29880                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29881                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29882                            TOOLKIT=DFB
29883                            GUIDIST=DFB_DIST
29884
29885 fi
29886     fi
29887
29888     if test "$wxUSE_MICROWIN" = 1; then
29889         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29890 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29891         if test "x$MICROWINDOWS" = x ; then
29892             { echo "$as_me:$LINENO: result: not found" >&5
29893 echo "${ECHO_T}not found" >&6; }
29894             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29895 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29896    { (exit 1); exit 1; }; }
29897         else
29898             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29899 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29900         fi
29901
29902         if test -f $MICROWINDOWS/lib/libmwin.a; then
29903             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29904 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29905         else
29906             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29907 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29908    { (exit 1); exit 1; }; }
29909         fi
29910
29911         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29912         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29913
29914         wxUSE_UNIVERSAL="yes"
29915
29916         AFMINSTALL=afminstall
29917         TOOLKIT=MICROWIN
29918         GUIDIST=MICROWIN_DIST
29919
29920         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29921     fi
29922
29923         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29924                                 { echo "$as_me:$LINENO: checking for X" >&5
29925 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29926
29927
29928 # Check whether --with-x was given.
29929 if test "${with_x+set}" = set; then
29930   withval=$with_x;
29931 fi
29932
29933 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29934 if test "x$with_x" = xno; then
29935   # The user explicitly disabled X.
29936   have_x=disabled
29937 else
29938   case $x_includes,$x_libraries in #(
29939     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29940 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29941    { (exit 1); exit 1; }; };; #(
29942     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29943   echo $ECHO_N "(cached) $ECHO_C" >&6
29944 else
29945   # One or both of the vars are not set, and there is no cached value.
29946 ac_x_includes=no ac_x_libraries=no
29947 rm -f -r conftest.dir
29948 if mkdir conftest.dir; then
29949   cd conftest.dir
29950   cat >Imakefile <<'_ACEOF'
29951 incroot:
29952         @echo incroot='${INCROOT}'
29953 usrlibdir:
29954         @echo usrlibdir='${USRLIBDIR}'
29955 libdir:
29956         @echo libdir='${LIBDIR}'
29957 _ACEOF
29958   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29959     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29960     for ac_var in incroot usrlibdir libdir; do
29961       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29962     done
29963     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29964     for ac_extension in a so sl; do
29965       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29966          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29967         ac_im_usrlibdir=$ac_im_libdir; break
29968       fi
29969     done
29970     # Screen out bogus values from the imake configuration.  They are
29971     # bogus both because they are the default anyway, and because
29972     # using them would break gcc on systems where it needs fixed includes.
29973     case $ac_im_incroot in
29974         /usr/include) ac_x_includes= ;;
29975         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29976     esac
29977     case $ac_im_usrlibdir in
29978         /usr/lib | /lib) ;;
29979         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29980     esac
29981   fi
29982   cd ..
29983   rm -f -r conftest.dir
29984 fi
29985
29986 # Standard set of common directories for X headers.
29987 # Check X11 before X11Rn because it is often a symlink to the current release.
29988 ac_x_header_dirs='
29989 /usr/X11/include
29990 /usr/X11R6/include
29991 /usr/X11R5/include
29992 /usr/X11R4/include
29993
29994 /usr/include/X11
29995 /usr/include/X11R6
29996 /usr/include/X11R5
29997 /usr/include/X11R4
29998
29999 /usr/local/X11/include
30000 /usr/local/X11R6/include
30001 /usr/local/X11R5/include
30002 /usr/local/X11R4/include
30003
30004 /usr/local/include/X11
30005 /usr/local/include/X11R6
30006 /usr/local/include/X11R5
30007 /usr/local/include/X11R4
30008
30009 /usr/X386/include
30010 /usr/x386/include
30011 /usr/XFree86/include/X11
30012
30013 /usr/include
30014 /usr/local/include
30015 /usr/unsupported/include
30016 /usr/athena/include
30017 /usr/local/x11r5/include
30018 /usr/lpp/Xamples/include
30019
30020 /usr/openwin/include
30021 /usr/openwin/share/include'
30022
30023 if test "$ac_x_includes" = no; then
30024   # Guess where to find include files, by looking for Xlib.h.
30025   # First, try using that file with no special directory specified.
30026   cat >conftest.$ac_ext <<_ACEOF
30027 /* confdefs.h.  */
30028 _ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h.  */
30032 #include <X11/Xlib.h>
30033 _ACEOF
30034 if { (ac_try="$ac_cpp conftest.$ac_ext"
30035 case "(($ac_try" in
30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037   *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30041   ac_status=$?
30042   grep -v '^ *+' conftest.er1 >conftest.err
30043   rm -f conftest.er1
30044   cat conftest.err >&5
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); } >/dev/null && {
30047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30048          test ! -s conftest.err
30049        }; then
30050   # We can compile using X headers with no special include directory.
30051 ac_x_includes=
30052 else
30053   echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30055
30056   for ac_dir in $ac_x_header_dirs; do
30057   if test -r "$ac_dir/X11/Xlib.h"; then
30058     ac_x_includes=$ac_dir
30059     break
30060   fi
30061 done
30062 fi
30063
30064 rm -f conftest.err conftest.$ac_ext
30065 fi # $ac_x_includes = no
30066
30067 if test "$ac_x_libraries" = no; then
30068   # Check for the libraries.
30069   # See if we find them without any special options.
30070   # Don't add to $LIBS permanently.
30071   ac_save_LIBS=$LIBS
30072   LIBS="-lX11 $LIBS"
30073   cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 #include <X11/Xlib.h>
30080 int
30081 main ()
30082 {
30083 XrmInitialize ()
30084   ;
30085   return 0;
30086 }
30087 _ACEOF
30088 rm -f conftest.$ac_objext conftest$ac_exeext
30089 if { (ac_try="$ac_link"
30090 case "(($ac_try" in
30091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092   *) ac_try_echo=$ac_try;;
30093 esac
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095   (eval "$ac_link") 2>conftest.er1
30096   ac_status=$?
30097   grep -v '^ *+' conftest.er1 >conftest.err
30098   rm -f conftest.er1
30099   cat conftest.err >&5
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); } && {
30102          test -z "$ac_c_werror_flag" ||
30103          test ! -s conftest.err
30104        } && test -s conftest$ac_exeext &&
30105        $as_test_x conftest$ac_exeext; then
30106   LIBS=$ac_save_LIBS
30107 # We can link X programs with no special library path.
30108 ac_x_libraries=
30109 else
30110   echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30112
30113         LIBS=$ac_save_LIBS
30114 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30115 do
30116   # Don't even attempt the hair of trying to link an X program!
30117   for ac_extension in a so sl; do
30118     if test -r "$ac_dir/libX11.$ac_extension"; then
30119       ac_x_libraries=$ac_dir
30120       break 2
30121     fi
30122   done
30123 done
30124 fi
30125
30126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30127       conftest$ac_exeext conftest.$ac_ext
30128 fi # $ac_x_libraries = no
30129
30130 case $ac_x_includes,$ac_x_libraries in #(
30131   no,* | *,no | *\'*)
30132     # Didn't find X, or a directory has "'" in its name.
30133     ac_cv_have_x="have_x=no";; #(
30134   *)
30135     # Record where we found X for the cache.
30136     ac_cv_have_x="have_x=yes\
30137         ac_x_includes='$ac_x_includes'\
30138         ac_x_libraries='$ac_x_libraries'"
30139 esac
30140 fi
30141 ;; #(
30142     *) have_x=yes;;
30143   esac
30144   eval "$ac_cv_have_x"
30145 fi # $with_x != no
30146
30147 if test "$have_x" != yes; then
30148   { echo "$as_me:$LINENO: result: $have_x" >&5
30149 echo "${ECHO_T}$have_x" >&6; }
30150   no_x=yes
30151 else
30152   # If each of the values was on the command line, it overrides each guess.
30153   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30154   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30155   # Update the cache value to reflect the command line values.
30156   ac_cv_have_x="have_x=yes\
30157         ac_x_includes='$x_includes'\
30158         ac_x_libraries='$x_libraries'"
30159   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30160 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30161 fi
30162
30163 if test "$no_x" = yes; then
30164   # Not all programs may use this symbol, but it does not hurt to define it.
30165
30166 cat >>confdefs.h <<\_ACEOF
30167 #define X_DISPLAY_MISSING 1
30168 _ACEOF
30169
30170   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30171 else
30172   if test -n "$x_includes"; then
30173     X_CFLAGS="$X_CFLAGS -I$x_includes"
30174   fi
30175
30176   # It would also be nice to do this for all -L options, not just this one.
30177   if test -n "$x_libraries"; then
30178     X_LIBS="$X_LIBS -L$x_libraries"
30179     # For Solaris; some versions of Sun CC require a space after -R and
30180     # others require no space.  Words are not sufficient . . . .
30181     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30182 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30183     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30184     ac_xsave_c_werror_flag=$ac_c_werror_flag
30185     ac_c_werror_flag=yes
30186     cat >conftest.$ac_ext <<_ACEOF
30187 /* confdefs.h.  */
30188 _ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h.  */
30192
30193 int
30194 main ()
30195 {
30196
30197   ;
30198   return 0;
30199 }
30200 _ACEOF
30201 rm -f conftest.$ac_objext conftest$ac_exeext
30202 if { (ac_try="$ac_link"
30203 case "(($ac_try" in
30204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205   *) ac_try_echo=$ac_try;;
30206 esac
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208   (eval "$ac_link") 2>conftest.er1
30209   ac_status=$?
30210   grep -v '^ *+' conftest.er1 >conftest.err
30211   rm -f conftest.er1
30212   cat conftest.err >&5
30213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214   (exit $ac_status); } && {
30215          test -z "$ac_c_werror_flag" ||
30216          test ! -s conftest.err
30217        } && test -s conftest$ac_exeext &&
30218        $as_test_x conftest$ac_exeext; then
30219   { echo "$as_me:$LINENO: result: no" >&5
30220 echo "${ECHO_T}no" >&6; }
30221        X_LIBS="$X_LIBS -R$x_libraries"
30222 else
30223   echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30225
30226         LIBS="$ac_xsave_LIBS -R $x_libraries"
30227        cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h.  */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h.  */
30233
30234 int
30235 main ()
30236 {
30237
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (ac_try="$ac_link"
30244 case "(($ac_try" in
30245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246   *) ac_try_echo=$ac_try;;
30247 esac
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249   (eval "$ac_link") 2>conftest.er1
30250   ac_status=$?
30251   grep -v '^ *+' conftest.er1 >conftest.err
30252   rm -f conftest.er1
30253   cat conftest.err >&5
30254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255   (exit $ac_status); } && {
30256          test -z "$ac_c_werror_flag" ||
30257          test ! -s conftest.err
30258        } && test -s conftest$ac_exeext &&
30259        $as_test_x conftest$ac_exeext; then
30260   { echo "$as_me:$LINENO: result: yes" >&5
30261 echo "${ECHO_T}yes" >&6; }
30262           X_LIBS="$X_LIBS -R $x_libraries"
30263 else
30264   echo "$as_me: failed program was:" >&5
30265 sed 's/^/| /' conftest.$ac_ext >&5
30266
30267         { echo "$as_me:$LINENO: result: neither works" >&5
30268 echo "${ECHO_T}neither works" >&6; }
30269 fi
30270
30271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30272       conftest$ac_exeext conftest.$ac_ext
30273 fi
30274
30275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30276       conftest$ac_exeext conftest.$ac_ext
30277     ac_c_werror_flag=$ac_xsave_c_werror_flag
30278     LIBS=$ac_xsave_LIBS
30279   fi
30280
30281   # Check for system-dependent libraries X programs must link with.
30282   # Do this before checking for the system-independent R6 libraries
30283   # (-lICE), since we may need -lsocket or whatever for X linking.
30284
30285   if test "$ISC" = yes; then
30286     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30287   else
30288     # Martyn Johnson says this is needed for Ultrix, if the X
30289     # libraries were built with DECnet support.  And Karl Berry says
30290     # the Alpha needs dnet_stub (dnet does not exist).
30291     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30292     cat >conftest.$ac_ext <<_ACEOF
30293 /* confdefs.h.  */
30294 _ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h.  */
30298
30299 /* Override any GCC internal prototype to avoid an error.
30300    Use char because int might match the return type of a GCC
30301    builtin and then its argument prototype would still apply.  */
30302 #ifdef __cplusplus
30303 extern "C"
30304 #endif
30305 char XOpenDisplay ();
30306 int
30307 main ()
30308 {
30309 return XOpenDisplay ();
30310   ;
30311   return 0;
30312 }
30313 _ACEOF
30314 rm -f conftest.$ac_objext conftest$ac_exeext
30315 if { (ac_try="$ac_link"
30316 case "(($ac_try" in
30317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318   *) ac_try_echo=$ac_try;;
30319 esac
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321   (eval "$ac_link") 2>conftest.er1
30322   ac_status=$?
30323   grep -v '^ *+' conftest.er1 >conftest.err
30324   rm -f conftest.er1
30325   cat conftest.err >&5
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); } && {
30328          test -z "$ac_c_werror_flag" ||
30329          test ! -s conftest.err
30330        } && test -s conftest$ac_exeext &&
30331        $as_test_x conftest$ac_exeext; then
30332   :
30333 else
30334   echo "$as_me: failed program was:" >&5
30335 sed 's/^/| /' conftest.$ac_ext >&5
30336
30337         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30338 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30339 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30340   echo $ECHO_N "(cached) $ECHO_C" >&6
30341 else
30342   ac_check_lib_save_LIBS=$LIBS
30343 LIBS="-ldnet  $LIBS"
30344 cat >conftest.$ac_ext <<_ACEOF
30345 /* confdefs.h.  */
30346 _ACEOF
30347 cat confdefs.h >>conftest.$ac_ext
30348 cat >>conftest.$ac_ext <<_ACEOF
30349 /* end confdefs.h.  */
30350
30351 /* Override any GCC internal prototype to avoid an error.
30352    Use char because int might match the return type of a GCC
30353    builtin and then its argument prototype would still apply.  */
30354 #ifdef __cplusplus
30355 extern "C"
30356 #endif
30357 char dnet_ntoa ();
30358 int
30359 main ()
30360 {
30361 return dnet_ntoa ();
30362   ;
30363   return 0;
30364 }
30365 _ACEOF
30366 rm -f conftest.$ac_objext conftest$ac_exeext
30367 if { (ac_try="$ac_link"
30368 case "(($ac_try" in
30369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370   *) ac_try_echo=$ac_try;;
30371 esac
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373   (eval "$ac_link") 2>conftest.er1
30374   ac_status=$?
30375   grep -v '^ *+' conftest.er1 >conftest.err
30376   rm -f conftest.er1
30377   cat conftest.err >&5
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); } && {
30380          test -z "$ac_c_werror_flag" ||
30381          test ! -s conftest.err
30382        } && test -s conftest$ac_exeext &&
30383        $as_test_x conftest$ac_exeext; then
30384   ac_cv_lib_dnet_dnet_ntoa=yes
30385 else
30386   echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30388
30389         ac_cv_lib_dnet_dnet_ntoa=no
30390 fi
30391
30392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30393       conftest$ac_exeext conftest.$ac_ext
30394 LIBS=$ac_check_lib_save_LIBS
30395 fi
30396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30397 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30398 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30399   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30400 fi
30401
30402     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30403       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30404 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30405 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30406   echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408   ac_check_lib_save_LIBS=$LIBS
30409 LIBS="-ldnet_stub  $LIBS"
30410 cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416
30417 /* Override any GCC internal prototype to avoid an error.
30418    Use char because int might match the return type of a GCC
30419    builtin and then its argument prototype would still apply.  */
30420 #ifdef __cplusplus
30421 extern "C"
30422 #endif
30423 char dnet_ntoa ();
30424 int
30425 main ()
30426 {
30427 return dnet_ntoa ();
30428   ;
30429   return 0;
30430 }
30431 _ACEOF
30432 rm -f conftest.$ac_objext conftest$ac_exeext
30433 if { (ac_try="$ac_link"
30434 case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_link") 2>conftest.er1
30440   ac_status=$?
30441   grep -v '^ *+' conftest.er1 >conftest.err
30442   rm -f conftest.er1
30443   cat conftest.err >&5
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); } && {
30446          test -z "$ac_c_werror_flag" ||
30447          test ! -s conftest.err
30448        } && test -s conftest$ac_exeext &&
30449        $as_test_x conftest$ac_exeext; then
30450   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30451 else
30452   echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30454
30455         ac_cv_lib_dnet_stub_dnet_ntoa=no
30456 fi
30457
30458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30459       conftest$ac_exeext conftest.$ac_ext
30460 LIBS=$ac_check_lib_save_LIBS
30461 fi
30462 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30463 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30464 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30465   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30466 fi
30467
30468     fi
30469 fi
30470
30471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30472       conftest$ac_exeext conftest.$ac_ext
30473     LIBS="$ac_xsave_LIBS"
30474
30475     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30476     # to get the SysV transport functions.
30477     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30478     # needs -lnsl.
30479     # The nsl library prevents programs from opening the X display
30480     # on Irix 5.2, according to T.E. Dickey.
30481     # The functions gethostbyname, getservbyname, and inet_addr are
30482     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30483     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30484 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30485 if test "${ac_cv_func_gethostbyname+set}" = set; then
30486   echo $ECHO_N "(cached) $ECHO_C" >&6
30487 else
30488   cat >conftest.$ac_ext <<_ACEOF
30489 /* confdefs.h.  */
30490 _ACEOF
30491 cat confdefs.h >>conftest.$ac_ext
30492 cat >>conftest.$ac_ext <<_ACEOF
30493 /* end confdefs.h.  */
30494 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30496 #define gethostbyname innocuous_gethostbyname
30497
30498 /* System header to define __stub macros and hopefully few prototypes,
30499     which can conflict with char gethostbyname (); below.
30500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30501     <limits.h> exists even on freestanding compilers.  */
30502
30503 #ifdef __STDC__
30504 # include <limits.h>
30505 #else
30506 # include <assert.h>
30507 #endif
30508
30509 #undef gethostbyname
30510
30511 /* Override any GCC internal prototype to avoid an error.
30512    Use char because int might match the return type of a GCC
30513    builtin and then its argument prototype would still apply.  */
30514 #ifdef __cplusplus
30515 extern "C"
30516 #endif
30517 char gethostbyname ();
30518 /* The GNU C library defines this for functions which it implements
30519     to always fail with ENOSYS.  Some functions are actually named
30520     something starting with __ and the normal name is an alias.  */
30521 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30522 choke me
30523 #endif
30524
30525 int
30526 main ()
30527 {
30528 return gethostbyname ();
30529   ;
30530   return 0;
30531 }
30532 _ACEOF
30533 rm -f conftest.$ac_objext conftest$ac_exeext
30534 if { (ac_try="$ac_link"
30535 case "(($ac_try" in
30536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537   *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540   (eval "$ac_link") 2>conftest.er1
30541   ac_status=$?
30542   grep -v '^ *+' conftest.er1 >conftest.err
30543   rm -f conftest.er1
30544   cat conftest.err >&5
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); } && {
30547          test -z "$ac_c_werror_flag" ||
30548          test ! -s conftest.err
30549        } && test -s conftest$ac_exeext &&
30550        $as_test_x conftest$ac_exeext; then
30551   ac_cv_func_gethostbyname=yes
30552 else
30553   echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30555
30556         ac_cv_func_gethostbyname=no
30557 fi
30558
30559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30560       conftest$ac_exeext conftest.$ac_ext
30561 fi
30562 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30563 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30564
30565     if test $ac_cv_func_gethostbyname = no; then
30566       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30567 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30568 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571   ac_check_lib_save_LIBS=$LIBS
30572 LIBS="-lnsl  $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h.  */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h.  */
30579
30580 /* Override any GCC internal prototype to avoid an error.
30581    Use char because int might match the return type of a GCC
30582    builtin and then its argument prototype would still apply.  */
30583 #ifdef __cplusplus
30584 extern "C"
30585 #endif
30586 char gethostbyname ();
30587 int
30588 main ()
30589 {
30590 return gethostbyname ();
30591   ;
30592   return 0;
30593 }
30594 _ACEOF
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
30597 case "(($ac_try" in
30598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599   *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602   (eval "$ac_link") 2>conftest.er1
30603   ac_status=$?
30604   grep -v '^ *+' conftest.er1 >conftest.err
30605   rm -f conftest.er1
30606   cat conftest.err >&5
30607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608   (exit $ac_status); } && {
30609          test -z "$ac_c_werror_flag" ||
30610          test ! -s conftest.err
30611        } && test -s conftest$ac_exeext &&
30612        $as_test_x conftest$ac_exeext; then
30613   ac_cv_lib_nsl_gethostbyname=yes
30614 else
30615   echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30617
30618         ac_cv_lib_nsl_gethostbyname=no
30619 fi
30620
30621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30622       conftest$ac_exeext conftest.$ac_ext
30623 LIBS=$ac_check_lib_save_LIBS
30624 fi
30625 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30627 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30628   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30629 fi
30630
30631       if test $ac_cv_lib_nsl_gethostbyname = no; then
30632         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30633 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30634 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30635   echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637   ac_check_lib_save_LIBS=$LIBS
30638 LIBS="-lbsd  $LIBS"
30639 cat >conftest.$ac_ext <<_ACEOF
30640 /* confdefs.h.  */
30641 _ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h.  */
30645
30646 /* Override any GCC internal prototype to avoid an error.
30647    Use char because int might match the return type of a GCC
30648    builtin and then its argument prototype would still apply.  */
30649 #ifdef __cplusplus
30650 extern "C"
30651 #endif
30652 char gethostbyname ();
30653 int
30654 main ()
30655 {
30656 return gethostbyname ();
30657   ;
30658   return 0;
30659 }
30660 _ACEOF
30661 rm -f conftest.$ac_objext conftest$ac_exeext
30662 if { (ac_try="$ac_link"
30663 case "(($ac_try" in
30664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665   *) ac_try_echo=$ac_try;;
30666 esac
30667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30668   (eval "$ac_link") 2>conftest.er1
30669   ac_status=$?
30670   grep -v '^ *+' conftest.er1 >conftest.err
30671   rm -f conftest.er1
30672   cat conftest.err >&5
30673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674   (exit $ac_status); } && {
30675          test -z "$ac_c_werror_flag" ||
30676          test ! -s conftest.err
30677        } && test -s conftest$ac_exeext &&
30678        $as_test_x conftest$ac_exeext; then
30679   ac_cv_lib_bsd_gethostbyname=yes
30680 else
30681   echo "$as_me: failed program was:" >&5
30682 sed 's/^/| /' conftest.$ac_ext >&5
30683
30684         ac_cv_lib_bsd_gethostbyname=no
30685 fi
30686
30687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30688       conftest$ac_exeext conftest.$ac_ext
30689 LIBS=$ac_check_lib_save_LIBS
30690 fi
30691 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30692 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30693 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30694   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30695 fi
30696
30697       fi
30698     fi
30699
30700     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30701     # socket/setsockopt and other routines are undefined under SCO ODT
30702     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30703     # on later versions), says Simon Leinen: it contains gethostby*
30704     # variants that don't use the name server (or something).  -lsocket
30705     # must be given before -lnsl if both are needed.  We assume that
30706     # if connect needs -lnsl, so does gethostbyname.
30707     { echo "$as_me:$LINENO: checking for connect" >&5
30708 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30709 if test "${ac_cv_func_connect+set}" = set; then
30710   echo $ECHO_N "(cached) $ECHO_C" >&6
30711 else
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 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30720 #define connect innocuous_connect
30721
30722 /* System header to define __stub macros and hopefully few prototypes,
30723     which can conflict with char connect (); below.
30724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30725     <limits.h> exists even on freestanding compilers.  */
30726
30727 #ifdef __STDC__
30728 # include <limits.h>
30729 #else
30730 # include <assert.h>
30731 #endif
30732
30733 #undef connect
30734
30735 /* Override any GCC internal prototype to avoid an error.
30736    Use char because int might match the return type of a GCC
30737    builtin and then its argument prototype would still apply.  */
30738 #ifdef __cplusplus
30739 extern "C"
30740 #endif
30741 char connect ();
30742 /* The GNU C library defines this for functions which it implements
30743     to always fail with ENOSYS.  Some functions are actually named
30744     something starting with __ and the normal name is an alias.  */
30745 #if defined __stub_connect || defined __stub___connect
30746 choke me
30747 #endif
30748
30749 int
30750 main ()
30751 {
30752 return connect ();
30753   ;
30754   return 0;
30755 }
30756 _ACEOF
30757 rm -f conftest.$ac_objext conftest$ac_exeext
30758 if { (ac_try="$ac_link"
30759 case "(($ac_try" in
30760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761   *) ac_try_echo=$ac_try;;
30762 esac
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764   (eval "$ac_link") 2>conftest.er1
30765   ac_status=$?
30766   grep -v '^ *+' conftest.er1 >conftest.err
30767   rm -f conftest.er1
30768   cat conftest.err >&5
30769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770   (exit $ac_status); } && {
30771          test -z "$ac_c_werror_flag" ||
30772          test ! -s conftest.err
30773        } && test -s conftest$ac_exeext &&
30774        $as_test_x conftest$ac_exeext; then
30775   ac_cv_func_connect=yes
30776 else
30777   echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.$ac_ext >&5
30779
30780         ac_cv_func_connect=no
30781 fi
30782
30783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30784       conftest$ac_exeext conftest.$ac_ext
30785 fi
30786 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30787 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30788
30789     if test $ac_cv_func_connect = no; then
30790       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30791 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30792 if test "${ac_cv_lib_socket_connect+set}" = set; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795   ac_check_lib_save_LIBS=$LIBS
30796 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30797 cat >conftest.$ac_ext <<_ACEOF
30798 /* confdefs.h.  */
30799 _ACEOF
30800 cat confdefs.h >>conftest.$ac_ext
30801 cat >>conftest.$ac_ext <<_ACEOF
30802 /* end confdefs.h.  */
30803
30804 /* Override any GCC internal prototype to avoid an error.
30805    Use char because int might match the return type of a GCC
30806    builtin and then its argument prototype would still apply.  */
30807 #ifdef __cplusplus
30808 extern "C"
30809 #endif
30810 char connect ();
30811 int
30812 main ()
30813 {
30814 return connect ();
30815   ;
30816   return 0;
30817 }
30818 _ACEOF
30819 rm -f conftest.$ac_objext conftest$ac_exeext
30820 if { (ac_try="$ac_link"
30821 case "(($ac_try" in
30822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30823   *) ac_try_echo=$ac_try;;
30824 esac
30825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30826   (eval "$ac_link") 2>conftest.er1
30827   ac_status=$?
30828   grep -v '^ *+' conftest.er1 >conftest.err
30829   rm -f conftest.er1
30830   cat conftest.err >&5
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); } && {
30833          test -z "$ac_c_werror_flag" ||
30834          test ! -s conftest.err
30835        } && test -s conftest$ac_exeext &&
30836        $as_test_x conftest$ac_exeext; then
30837   ac_cv_lib_socket_connect=yes
30838 else
30839   echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30841
30842         ac_cv_lib_socket_connect=no
30843 fi
30844
30845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30846       conftest$ac_exeext conftest.$ac_ext
30847 LIBS=$ac_check_lib_save_LIBS
30848 fi
30849 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30850 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30851 if test $ac_cv_lib_socket_connect = yes; then
30852   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30853 fi
30854
30855     fi
30856
30857     # Guillermo Gomez says -lposix is necessary on A/UX.
30858     { echo "$as_me:$LINENO: checking for remove" >&5
30859 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30860 if test "${ac_cv_func_remove+set}" = set; then
30861   echo $ECHO_N "(cached) $ECHO_C" >&6
30862 else
30863   cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h.  */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h.  */
30869 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30871 #define remove innocuous_remove
30872
30873 /* System header to define __stub macros and hopefully few prototypes,
30874     which can conflict with char remove (); below.
30875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30876     <limits.h> exists even on freestanding compilers.  */
30877
30878 #ifdef __STDC__
30879 # include <limits.h>
30880 #else
30881 # include <assert.h>
30882 #endif
30883
30884 #undef remove
30885
30886 /* Override any GCC internal prototype to avoid an error.
30887    Use char because int might match the return type of a GCC
30888    builtin and then its argument prototype would still apply.  */
30889 #ifdef __cplusplus
30890 extern "C"
30891 #endif
30892 char remove ();
30893 /* The GNU C library defines this for functions which it implements
30894     to always fail with ENOSYS.  Some functions are actually named
30895     something starting with __ and the normal name is an alias.  */
30896 #if defined __stub_remove || defined __stub___remove
30897 choke me
30898 #endif
30899
30900 int
30901 main ()
30902 {
30903 return remove ();
30904   ;
30905   return 0;
30906 }
30907 _ACEOF
30908 rm -f conftest.$ac_objext conftest$ac_exeext
30909 if { (ac_try="$ac_link"
30910 case "(($ac_try" in
30911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912   *) ac_try_echo=$ac_try;;
30913 esac
30914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915   (eval "$ac_link") 2>conftest.er1
30916   ac_status=$?
30917   grep -v '^ *+' conftest.er1 >conftest.err
30918   rm -f conftest.er1
30919   cat conftest.err >&5
30920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); } && {
30922          test -z "$ac_c_werror_flag" ||
30923          test ! -s conftest.err
30924        } && test -s conftest$ac_exeext &&
30925        $as_test_x conftest$ac_exeext; then
30926   ac_cv_func_remove=yes
30927 else
30928   echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30930
30931         ac_cv_func_remove=no
30932 fi
30933
30934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30935       conftest$ac_exeext conftest.$ac_ext
30936 fi
30937 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30938 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30939
30940     if test $ac_cv_func_remove = no; then
30941       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30942 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30943 if test "${ac_cv_lib_posix_remove+set}" = set; then
30944   echo $ECHO_N "(cached) $ECHO_C" >&6
30945 else
30946   ac_check_lib_save_LIBS=$LIBS
30947 LIBS="-lposix  $LIBS"
30948 cat >conftest.$ac_ext <<_ACEOF
30949 /* confdefs.h.  */
30950 _ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h.  */
30954
30955 /* Override any GCC internal prototype to avoid an error.
30956    Use char because int might match the return type of a GCC
30957    builtin and then its argument prototype would still apply.  */
30958 #ifdef __cplusplus
30959 extern "C"
30960 #endif
30961 char remove ();
30962 int
30963 main ()
30964 {
30965 return remove ();
30966   ;
30967   return 0;
30968 }
30969 _ACEOF
30970 rm -f conftest.$ac_objext conftest$ac_exeext
30971 if { (ac_try="$ac_link"
30972 case "(($ac_try" in
30973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974   *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977   (eval "$ac_link") 2>conftest.er1
30978   ac_status=$?
30979   grep -v '^ *+' conftest.er1 >conftest.err
30980   rm -f conftest.er1
30981   cat conftest.err >&5
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); } && {
30984          test -z "$ac_c_werror_flag" ||
30985          test ! -s conftest.err
30986        } && test -s conftest$ac_exeext &&
30987        $as_test_x conftest$ac_exeext; then
30988   ac_cv_lib_posix_remove=yes
30989 else
30990   echo "$as_me: failed program was:" >&5
30991 sed 's/^/| /' conftest.$ac_ext >&5
30992
30993         ac_cv_lib_posix_remove=no
30994 fi
30995
30996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30997       conftest$ac_exeext conftest.$ac_ext
30998 LIBS=$ac_check_lib_save_LIBS
30999 fi
31000 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31001 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31002 if test $ac_cv_lib_posix_remove = yes; then
31003   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31004 fi
31005
31006     fi
31007
31008     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31009     { echo "$as_me:$LINENO: checking for shmat" >&5
31010 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31011 if test "${ac_cv_func_shmat+set}" = set; then
31012   echo $ECHO_N "(cached) $ECHO_C" >&6
31013 else
31014   cat >conftest.$ac_ext <<_ACEOF
31015 /* confdefs.h.  */
31016 _ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h.  */
31020 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31022 #define shmat innocuous_shmat
31023
31024 /* System header to define __stub macros and hopefully few prototypes,
31025     which can conflict with char shmat (); below.
31026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31027     <limits.h> exists even on freestanding compilers.  */
31028
31029 #ifdef __STDC__
31030 # include <limits.h>
31031 #else
31032 # include <assert.h>
31033 #endif
31034
31035 #undef shmat
31036
31037 /* Override any GCC internal prototype to avoid an error.
31038    Use char because int might match the return type of a GCC
31039    builtin and then its argument prototype would still apply.  */
31040 #ifdef __cplusplus
31041 extern "C"
31042 #endif
31043 char shmat ();
31044 /* The GNU C library defines this for functions which it implements
31045     to always fail with ENOSYS.  Some functions are actually named
31046     something starting with __ and the normal name is an alias.  */
31047 #if defined __stub_shmat || defined __stub___shmat
31048 choke me
31049 #endif
31050
31051 int
31052 main ()
31053 {
31054 return shmat ();
31055   ;
31056   return 0;
31057 }
31058 _ACEOF
31059 rm -f conftest.$ac_objext conftest$ac_exeext
31060 if { (ac_try="$ac_link"
31061 case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_link") 2>conftest.er1
31067   ac_status=$?
31068   grep -v '^ *+' conftest.er1 >conftest.err
31069   rm -f conftest.er1
31070   cat conftest.err >&5
31071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072   (exit $ac_status); } && {
31073          test -z "$ac_c_werror_flag" ||
31074          test ! -s conftest.err
31075        } && test -s conftest$ac_exeext &&
31076        $as_test_x conftest$ac_exeext; then
31077   ac_cv_func_shmat=yes
31078 else
31079   echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31081
31082         ac_cv_func_shmat=no
31083 fi
31084
31085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31086       conftest$ac_exeext conftest.$ac_ext
31087 fi
31088 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31089 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31090
31091     if test $ac_cv_func_shmat = no; then
31092       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31093 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31094 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31095   echo $ECHO_N "(cached) $ECHO_C" >&6
31096 else
31097   ac_check_lib_save_LIBS=$LIBS
31098 LIBS="-lipc  $LIBS"
31099 cat >conftest.$ac_ext <<_ACEOF
31100 /* confdefs.h.  */
31101 _ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h.  */
31105
31106 /* Override any GCC internal prototype to avoid an error.
31107    Use char because int might match the return type of a GCC
31108    builtin and then its argument prototype would still apply.  */
31109 #ifdef __cplusplus
31110 extern "C"
31111 #endif
31112 char shmat ();
31113 int
31114 main ()
31115 {
31116 return shmat ();
31117   ;
31118   return 0;
31119 }
31120 _ACEOF
31121 rm -f conftest.$ac_objext conftest$ac_exeext
31122 if { (ac_try="$ac_link"
31123 case "(($ac_try" in
31124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125   *) ac_try_echo=$ac_try;;
31126 esac
31127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128   (eval "$ac_link") 2>conftest.er1
31129   ac_status=$?
31130   grep -v '^ *+' conftest.er1 >conftest.err
31131   rm -f conftest.er1
31132   cat conftest.err >&5
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); } && {
31135          test -z "$ac_c_werror_flag" ||
31136          test ! -s conftest.err
31137        } && test -s conftest$ac_exeext &&
31138        $as_test_x conftest$ac_exeext; then
31139   ac_cv_lib_ipc_shmat=yes
31140 else
31141   echo "$as_me: failed program was:" >&5
31142 sed 's/^/| /' conftest.$ac_ext >&5
31143
31144         ac_cv_lib_ipc_shmat=no
31145 fi
31146
31147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31148       conftest$ac_exeext conftest.$ac_ext
31149 LIBS=$ac_check_lib_save_LIBS
31150 fi
31151 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31152 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31153 if test $ac_cv_lib_ipc_shmat = yes; then
31154   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31155 fi
31156
31157     fi
31158   fi
31159
31160   # Check for libraries that X11R6 Xt/Xaw programs need.
31161   ac_save_LDFLAGS=$LDFLAGS
31162   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31163   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31164   # check for ICE first), but we must link in the order -lSM -lICE or
31165   # we get undefined symbols.  So assume we have SM if we have ICE.
31166   # These have to be linked with before -lX11, unlike the other
31167   # libraries we check for below, so use a different variable.
31168   # John Interrante, Karl Berry
31169   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31170 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31171 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31172   echo $ECHO_N "(cached) $ECHO_C" >&6
31173 else
31174   ac_check_lib_save_LIBS=$LIBS
31175 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31176 cat >conftest.$ac_ext <<_ACEOF
31177 /* confdefs.h.  */
31178 _ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h.  */
31182
31183 /* Override any GCC internal prototype to avoid an error.
31184    Use char because int might match the return type of a GCC
31185    builtin and then its argument prototype would still apply.  */
31186 #ifdef __cplusplus
31187 extern "C"
31188 #endif
31189 char IceConnectionNumber ();
31190 int
31191 main ()
31192 {
31193 return IceConnectionNumber ();
31194   ;
31195   return 0;
31196 }
31197 _ACEOF
31198 rm -f conftest.$ac_objext conftest$ac_exeext
31199 if { (ac_try="$ac_link"
31200 case "(($ac_try" in
31201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202   *) ac_try_echo=$ac_try;;
31203 esac
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205   (eval "$ac_link") 2>conftest.er1
31206   ac_status=$?
31207   grep -v '^ *+' conftest.er1 >conftest.err
31208   rm -f conftest.er1
31209   cat conftest.err >&5
31210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211   (exit $ac_status); } && {
31212          test -z "$ac_c_werror_flag" ||
31213          test ! -s conftest.err
31214        } && test -s conftest$ac_exeext &&
31215        $as_test_x conftest$ac_exeext; then
31216   ac_cv_lib_ICE_IceConnectionNumber=yes
31217 else
31218   echo "$as_me: failed program was:" >&5
31219 sed 's/^/| /' conftest.$ac_ext >&5
31220
31221         ac_cv_lib_ICE_IceConnectionNumber=no
31222 fi
31223
31224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31225       conftest$ac_exeext conftest.$ac_ext
31226 LIBS=$ac_check_lib_save_LIBS
31227 fi
31228 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31229 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31230 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31231   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31232 fi
31233
31234   LDFLAGS=$ac_save_LDFLAGS
31235
31236 fi
31237
31238
31239         if test "$no_x" = "yes"; then
31240           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31241 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31242    { (exit 1); exit 1; }; }
31243         fi
31244
31245                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31246         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31247         AFMINSTALL=afminstall
31248         COMPILED_X_PROGRAM=0
31249
31250     fi
31251
31252     if test "$wxUSE_X11" = 1; then
31253         if test "$wxUSE_NANOX" = "yes"; then
31254             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31255 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31256             if test "x$MICROWIN" = x ; then
31257                 { echo "$as_me:$LINENO: result: not found" >&5
31258 echo "${ECHO_T}not found" >&6; }
31259                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31260 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31261    { (exit 1); exit 1; }; }
31262             else
31263                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31264 echo "${ECHO_T}$MICROWIN" >&6; }
31265                 cat >>confdefs.h <<\_ACEOF
31266 #define wxUSE_NANOX 1
31267 _ACEOF
31268
31269             fi
31270         fi
31271
31272         if test "$wxUSE_UNICODE" = "yes"; then
31273
31274
31275 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31276         if test -n "$ac_tool_prefix"; then
31277   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31278 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31281 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31282   echo $ECHO_N "(cached) $ECHO_C" >&6
31283 else
31284   case $PKG_CONFIG in
31285   [\\/]* | ?:[\\/]*)
31286   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31287   ;;
31288   *)
31289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31290 for as_dir in $PATH
31291 do
31292   IFS=$as_save_IFS
31293   test -z "$as_dir" && as_dir=.
31294   for ac_exec_ext in '' $ac_executable_extensions; do
31295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31296     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31298     break 2
31299   fi
31300 done
31301 done
31302 IFS=$as_save_IFS
31303
31304   ;;
31305 esac
31306 fi
31307 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31308 if test -n "$PKG_CONFIG"; then
31309   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31310 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31311 else
31312   { echo "$as_me:$LINENO: result: no" >&5
31313 echo "${ECHO_T}no" >&6; }
31314 fi
31315
31316
31317 fi
31318 if test -z "$ac_cv_path_PKG_CONFIG"; then
31319   ac_pt_PKG_CONFIG=$PKG_CONFIG
31320   # Extract the first word of "pkg-config", so it can be a program name with args.
31321 set dummy pkg-config; ac_word=$2
31322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31324 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31325   echo $ECHO_N "(cached) $ECHO_C" >&6
31326 else
31327   case $ac_pt_PKG_CONFIG in
31328   [\\/]* | ?:[\\/]*)
31329   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31330   ;;
31331   *)
31332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31333 for as_dir in $PATH
31334 do
31335   IFS=$as_save_IFS
31336   test -z "$as_dir" && as_dir=.
31337   for ac_exec_ext in '' $ac_executable_extensions; do
31338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31339     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31341     break 2
31342   fi
31343 done
31344 done
31345 IFS=$as_save_IFS
31346
31347   ;;
31348 esac
31349 fi
31350 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31351 if test -n "$ac_pt_PKG_CONFIG"; then
31352   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31353 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31354 else
31355   { echo "$as_me:$LINENO: result: no" >&5
31356 echo "${ECHO_T}no" >&6; }
31357 fi
31358
31359   if test "x$ac_pt_PKG_CONFIG" = x; then
31360     PKG_CONFIG=""
31361   else
31362     case $cross_compiling:$ac_tool_warned in
31363 yes:)
31364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31365 whose name does not start with the host triplet.  If you think this
31366 configuration is useful to you, please write to autoconf@gnu.org." >&5
31367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31368 whose name does not start with the host triplet.  If you think this
31369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31370 ac_tool_warned=yes ;;
31371 esac
31372     PKG_CONFIG=$ac_pt_PKG_CONFIG
31373   fi
31374 else
31375   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31376 fi
31377
31378 fi
31379 if test -n "$PKG_CONFIG"; then
31380         _pkg_min_version=0.9.0
31381         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31382 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31383         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31384                 { echo "$as_me:$LINENO: result: yes" >&5
31385 echo "${ECHO_T}yes" >&6; }
31386         else
31387                 { echo "$as_me:$LINENO: result: no" >&5
31388 echo "${ECHO_T}no" >&6; }
31389                 PKG_CONFIG=""
31390         fi
31391
31392 fi
31393
31394
31395 pkg_failed=no
31396 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31397 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31398
31399 if test -n "$PKG_CONFIG"; then
31400     if test -n "$PANGOX_CFLAGS"; then
31401         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31402     else
31403         if test -n "$PKG_CONFIG" && \
31404     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31405   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }; then
31409   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31410 else
31411   pkg_failed=yes
31412 fi
31413     fi
31414 else
31415         pkg_failed=untried
31416 fi
31417 if test -n "$PKG_CONFIG"; then
31418     if test -n "$PANGOX_LIBS"; then
31419         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31420     else
31421         if test -n "$PKG_CONFIG" && \
31422     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31423   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31424   ac_status=$?
31425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426   (exit $ac_status); }; then
31427   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31428 else
31429   pkg_failed=yes
31430 fi
31431     fi
31432 else
31433         pkg_failed=untried
31434 fi
31435
31436
31437
31438 if test $pkg_failed = yes; then
31439
31440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31441         _pkg_short_errors_supported=yes
31442 else
31443         _pkg_short_errors_supported=no
31444 fi
31445         if test $_pkg_short_errors_supported = yes; then
31446                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31447         else
31448                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31449         fi
31450         # Put the nasty error message in config.log where it belongs
31451         echo "$PANGOX_PKG_ERRORS" >&5
31452
31453
31454                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31455 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31456    { (exit 1); exit 1; }; }
31457
31458
31459 elif test $pkg_failed = untried; then
31460
31461                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31462 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31463    { (exit 1); exit 1; }; }
31464
31465
31466 else
31467         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31468         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31469         { echo "$as_me:$LINENO: result: yes" >&5
31470 echo "${ECHO_T}yes" >&6; }
31471
31472                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31473                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31474                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31475
31476 fi
31477
31478 pkg_failed=no
31479 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31480 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31481
31482 if test -n "$PKG_CONFIG"; then
31483     if test -n "$PANGOFT2_CFLAGS"; then
31484         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31485     else
31486         if test -n "$PKG_CONFIG" && \
31487     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31488   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31489   ac_status=$?
31490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491   (exit $ac_status); }; then
31492   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31493 else
31494   pkg_failed=yes
31495 fi
31496     fi
31497 else
31498         pkg_failed=untried
31499 fi
31500 if test -n "$PKG_CONFIG"; then
31501     if test -n "$PANGOFT2_LIBS"; then
31502         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31503     else
31504         if test -n "$PKG_CONFIG" && \
31505     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31506   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31507   ac_status=$?
31508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509   (exit $ac_status); }; then
31510   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31511 else
31512   pkg_failed=yes
31513 fi
31514     fi
31515 else
31516         pkg_failed=untried
31517 fi
31518
31519
31520
31521 if test $pkg_failed = yes; then
31522
31523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31524         _pkg_short_errors_supported=yes
31525 else
31526         _pkg_short_errors_supported=no
31527 fi
31528         if test $_pkg_short_errors_supported = yes; then
31529                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31530         else
31531                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31532         fi
31533         # Put the nasty error message in config.log where it belongs
31534         echo "$PANGOFT2_PKG_ERRORS" >&5
31535
31536
31537                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31538 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31539                     wxUSE_PRINTING_ARCHITECTURE="no"
31540
31541
31542 elif test $pkg_failed = untried; then
31543
31544                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31545 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31546                     wxUSE_PRINTING_ARCHITECTURE="no"
31547
31548
31549 else
31550         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31551         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31552         { echo "$as_me:$LINENO: result: yes" >&5
31553 echo "${ECHO_T}yes" >&6; }
31554
31555                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31556                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31557                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31558
31559 fi
31560
31561 pkg_failed=no
31562 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31563 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31564
31565 if test -n "$PKG_CONFIG"; then
31566     if test -n "$PANGOXFT_CFLAGS"; then
31567         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31568     else
31569         if test -n "$PKG_CONFIG" && \
31570     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31571   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31572   ac_status=$?
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); }; then
31575   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31576 else
31577   pkg_failed=yes
31578 fi
31579     fi
31580 else
31581         pkg_failed=untried
31582 fi
31583 if test -n "$PKG_CONFIG"; then
31584     if test -n "$PANGOXFT_LIBS"; then
31585         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31586     else
31587         if test -n "$PKG_CONFIG" && \
31588     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31589   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31590   ac_status=$?
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); }; then
31593   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31594 else
31595   pkg_failed=yes
31596 fi
31597     fi
31598 else
31599         pkg_failed=untried
31600 fi
31601
31602
31603
31604 if test $pkg_failed = yes; then
31605
31606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31607         _pkg_short_errors_supported=yes
31608 else
31609         _pkg_short_errors_supported=no
31610 fi
31611         if test $_pkg_short_errors_supported = yes; then
31612                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31613         else
31614                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31615         fi
31616         # Put the nasty error message in config.log where it belongs
31617         echo "$PANGOXFT_PKG_ERRORS" >&5
31618
31619
31620                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31621 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31622
31623
31624 elif test $pkg_failed = untried; then
31625
31626                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31627 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31628
31629
31630 else
31631         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31632         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31633         { echo "$as_me:$LINENO: result: yes" >&5
31634 echo "${ECHO_T}yes" >&6; }
31635
31636                     cat >>confdefs.h <<\_ACEOF
31637 #define HAVE_PANGO_XFT 1
31638 _ACEOF
31639
31640                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31641                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31642                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31643
31644 fi
31645             save_LIBS="$LIBS"
31646             LIBS="$LIBS $PANGOX_LIBS"
31647
31648 for ac_func in pango_font_family_is_monospace
31649 do
31650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31654   echo $ECHO_N "(cached) $ECHO_C" >&6
31655 else
31656   cat >conftest.$ac_ext <<_ACEOF
31657 /* confdefs.h.  */
31658 _ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h.  */
31662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31664 #define $ac_func innocuous_$ac_func
31665
31666 /* System header to define __stub macros and hopefully few prototypes,
31667     which can conflict with char $ac_func (); below.
31668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669     <limits.h> exists even on freestanding compilers.  */
31670
31671 #ifdef __STDC__
31672 # include <limits.h>
31673 #else
31674 # include <assert.h>
31675 #endif
31676
31677 #undef $ac_func
31678
31679 /* Override any GCC internal prototype to avoid an error.
31680    Use char because int might match the return type of a GCC
31681    builtin and then its argument prototype would still apply.  */
31682 #ifdef __cplusplus
31683 extern "C"
31684 #endif
31685 char $ac_func ();
31686 /* The GNU C library defines this for functions which it implements
31687     to always fail with ENOSYS.  Some functions are actually named
31688     something starting with __ and the normal name is an alias.  */
31689 #if defined __stub_$ac_func || defined __stub___$ac_func
31690 choke me
31691 #endif
31692
31693 int
31694 main ()
31695 {
31696 return $ac_func ();
31697   ;
31698   return 0;
31699 }
31700 _ACEOF
31701 rm -f conftest.$ac_objext conftest$ac_exeext
31702 if { (ac_try="$ac_link"
31703 case "(($ac_try" in
31704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705   *) ac_try_echo=$ac_try;;
31706 esac
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708   (eval "$ac_link") 2>conftest.er1
31709   ac_status=$?
31710   grep -v '^ *+' conftest.er1 >conftest.err
31711   rm -f conftest.er1
31712   cat conftest.err >&5
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); } && {
31715          test -z "$ac_c_werror_flag" ||
31716          test ! -s conftest.err
31717        } && test -s conftest$ac_exeext &&
31718        $as_test_x conftest$ac_exeext; then
31719   eval "$as_ac_var=yes"
31720 else
31721   echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31723
31724         eval "$as_ac_var=no"
31725 fi
31726
31727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31728       conftest$ac_exeext conftest.$ac_ext
31729 fi
31730 ac_res=`eval echo '${'$as_ac_var'}'`
31731                { echo "$as_me:$LINENO: result: $ac_res" >&5
31732 echo "${ECHO_T}$ac_res" >&6; }
31733 if test `eval echo '${'$as_ac_var'}'` = yes; then
31734   cat >>confdefs.h <<_ACEOF
31735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31736 _ACEOF
31737
31738 fi
31739 done
31740
31741             LIBS="$save_LIBS"
31742         fi
31743
31744         wxUSE_UNIVERSAL="yes"
31745
31746         if test "$wxUSE_NANOX" = "yes"; then
31747             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31748             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"
31749             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31750         else
31751             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31752         fi
31753
31754         TOOLKIT=X11
31755         GUIDIST=X11_DIST
31756     fi
31757
31758     if test "$wxUSE_MOTIF" = 1; then
31759         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31760 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31761
31762 ac_find_includes=
31763 for ac_dir in $SEARCH_INCLUDE /usr/include;
31764   do
31765     if test -f "$ac_dir/Xm/Xm.h"; then
31766       ac_find_includes=$ac_dir
31767       break
31768     fi
31769   done
31770
31771         if test "$ac_find_includes" != "" ; then
31772             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31773 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31774
31775     if test "x$ac_find_includes" = "x/usr/include"; then
31776     ac_path_to_include=""
31777   else
31778     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31779     result=$?
31780     if test $result = 0; then
31781       ac_path_to_include=""
31782     else
31783       ac_path_to_include=" -I$ac_find_includes"
31784     fi
31785   fi
31786
31787             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31788         else
31789             save_CFLAGS=$CFLAGS
31790             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31791
31792             cat >conftest.$ac_ext <<_ACEOF
31793 /* confdefs.h.  */
31794 _ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h.  */
31798
31799                     #include <Xm/Xm.h>
31800
31801 int
31802 main ()
31803 {
31804
31805                     int version;
31806                     version = xmUseVersion;
31807
31808   ;
31809   return 0;
31810 }
31811 _ACEOF
31812 rm -f conftest.$ac_objext
31813 if { (ac_try="$ac_compile"
31814 case "(($ac_try" in
31815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816   *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819   (eval "$ac_compile") 2>conftest.er1
31820   ac_status=$?
31821   grep -v '^ *+' conftest.er1 >conftest.err
31822   rm -f conftest.er1
31823   cat conftest.err >&5
31824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825   (exit $ac_status); } && {
31826          test -z "$ac_c_werror_flag" ||
31827          test ! -s conftest.err
31828        } && test -s conftest.$ac_objext; then
31829
31830                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31831 echo "${ECHO_T}found in default search path" >&6; }
31832                     COMPILED_X_PROGRAM=1
31833
31834 else
31835   echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838
31839                     { echo "$as_me:$LINENO: result: no" >&5
31840 echo "${ECHO_T}no" >&6; }
31841                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31842 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31843    { (exit 1); exit 1; }; }
31844
31845
31846 fi
31847
31848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31849
31850             CFLAGS=$save_CFLAGS
31851         fi
31852
31853
31854         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31855 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31856
31857   ac_find_libraries=
31858   for ac_dir in $SEARCH_LIB;
31859   do
31860     for ac_extension in a so sl dylib dll.a; do
31861       if test -f "$ac_dir/libXm.$ac_extension"; then
31862         ac_find_libraries=$ac_dir
31863         break 2
31864       fi
31865     done
31866   done
31867
31868
31869         if test "x$ac_find_libraries" != "x" ; then
31870             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31871 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31872
31873
31874     if test "$ac_find_libraries" = "default location"; then
31875     ac_path_to_link=""
31876   else
31877     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31878     result=$?
31879     if test $result = 0; then
31880       ac_path_to_link=""
31881     else
31882       ac_path_to_link=" -L$ac_find_libraries"
31883     fi
31884   fi
31885
31886             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31887         else
31888                                                 save_CFLAGS=$CFLAGS
31889             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31890             save_LIBS="$LIBS"
31891             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31892
31893             cat >conftest.$ac_ext <<_ACEOF
31894 /* confdefs.h.  */
31895 _ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h.  */
31899
31900                     #include <Xm/Xm.h>
31901
31902 int
31903 main ()
31904 {
31905
31906                     int version;
31907                     version = xmUseVersion;
31908
31909   ;
31910   return 0;
31911 }
31912 _ACEOF
31913 rm -f conftest.$ac_objext conftest$ac_exeext
31914 if { (ac_try="$ac_link"
31915 case "(($ac_try" in
31916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917   *) ac_try_echo=$ac_try;;
31918 esac
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920   (eval "$ac_link") 2>conftest.er1
31921   ac_status=$?
31922   grep -v '^ *+' conftest.er1 >conftest.err
31923   rm -f conftest.er1
31924   cat conftest.err >&5
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); } && {
31927          test -z "$ac_c_werror_flag" ||
31928          test ! -s conftest.err
31929        } && test -s conftest$ac_exeext &&
31930        $as_test_x conftest$ac_exeext; then
31931
31932                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31933 echo "${ECHO_T}found in default search path" >&6; }
31934                     COMPILED_X_PROGRAM=1
31935
31936 else
31937   echo "$as_me: failed program was:" >&5
31938 sed 's/^/| /' conftest.$ac_ext >&5
31939
31940
31941                     { echo "$as_me:$LINENO: result: no" >&5
31942 echo "${ECHO_T}no" >&6; }
31943                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31944 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31945    { (exit 1); exit 1; }; }
31946
31947
31948 fi
31949
31950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31951       conftest$ac_exeext conftest.$ac_ext
31952
31953             CFLAGS=$save_CFLAGS
31954             LIBS="$save_LIBS"
31955         fi
31956
31957         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31958 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
31959         libp_link=""
31960         libsm_ice_link=""
31961         libs_found=0
31962         for libp in "" " -lXp"; do
31963             if test "$libs_found" = 0; then
31964                 for libsm_ice in "" " -lSM -lICE"; do
31965                     if test "$libs_found" = 0; then
31966                         save_LIBS="$LIBS"
31967                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31968                         save_CFLAGS=$CFLAGS
31969                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31970
31971                         cat >conftest.$ac_ext <<_ACEOF
31972 /* confdefs.h.  */
31973 _ACEOF
31974 cat confdefs.h >>conftest.$ac_ext
31975 cat >>conftest.$ac_ext <<_ACEOF
31976 /* end confdefs.h.  */
31977
31978                                 #include <Xm/Xm.h>
31979                                 #include <Xm/List.h>
31980
31981 int
31982 main ()
31983 {
31984
31985                                 XmString string = NULL;
31986                                 Widget w = NULL;
31987                                 int position = 0;
31988                                 XmListAddItem(w, string, position);
31989
31990   ;
31991   return 0;
31992 }
31993 _ACEOF
31994 rm -f conftest.$ac_objext conftest$ac_exeext
31995 if { (ac_try="$ac_link"
31996 case "(($ac_try" in
31997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998   *) ac_try_echo=$ac_try;;
31999 esac
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001   (eval "$ac_link") 2>conftest.er1
32002   ac_status=$?
32003   grep -v '^ *+' conftest.er1 >conftest.err
32004   rm -f conftest.er1
32005   cat conftest.err >&5
32006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007   (exit $ac_status); } && {
32008          test -z "$ac_c_werror_flag" ||
32009          test ! -s conftest.err
32010        } && test -s conftest$ac_exeext &&
32011        $as_test_x conftest$ac_exeext; then
32012
32013                                 libp_link="$libp"
32014                                 libsm_ice_link="$libsm_ice"
32015                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32016 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32017                                 libs_found=1
32018
32019 else
32020   echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32022
32023
32024
32025 fi
32026
32027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32028       conftest$ac_exeext conftest.$ac_ext
32029
32030                         LIBS="$save_LIBS"
32031                         CFLAGS=$save_CFLAGS
32032                     fi
32033                 done
32034             fi
32035         done
32036
32037         if test "$libs_found" = 0; then
32038             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32039 echo "${ECHO_T}can't find the right libraries" >&6; }
32040             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32041 echo "$as_me: error: can't link a simple motif program" >&2;}
32042    { (exit 1); exit 1; }; }
32043         fi
32044
32045                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32046 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32047 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32048   echo $ECHO_N "(cached) $ECHO_C" >&6
32049 else
32050   ac_check_lib_save_LIBS=$LIBS
32051 LIBS="-lSgm  $LIBS"
32052 cat >conftest.$ac_ext <<_ACEOF
32053 /* confdefs.h.  */
32054 _ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h.  */
32058
32059 /* Override any GCC internal prototype to avoid an error.
32060    Use char because int might match the return type of a GCC
32061    builtin and then its argument prototype would still apply.  */
32062 #ifdef __cplusplus
32063 extern "C"
32064 #endif
32065 char SgCreateList ();
32066 int
32067 main ()
32068 {
32069 return SgCreateList ();
32070   ;
32071   return 0;
32072 }
32073 _ACEOF
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078   *) ac_try_echo=$ac_try;;
32079 esac
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081   (eval "$ac_link") 2>conftest.er1
32082   ac_status=$?
32083   grep -v '^ *+' conftest.er1 >conftest.err
32084   rm -f conftest.er1
32085   cat conftest.err >&5
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); } && {
32088          test -z "$ac_c_werror_flag" ||
32089          test ! -s conftest.err
32090        } && test -s conftest$ac_exeext &&
32091        $as_test_x conftest$ac_exeext; then
32092   ac_cv_lib_Sgm_SgCreateList=yes
32093 else
32094   echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32096
32097         ac_cv_lib_Sgm_SgCreateList=no
32098 fi
32099
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101       conftest$ac_exeext conftest.$ac_ext
32102 LIBS=$ac_check_lib_save_LIBS
32103 fi
32104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32105 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32106 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32107   libsgm_link=" -lSgm"
32108 fi
32109
32110
32111         save_CFLAGS=$CFLAGS
32112         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32113
32114         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32115 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32116 if test "${wx_cv_lib_motif2+set}" = set; then
32117   echo $ECHO_N "(cached) $ECHO_C" >&6
32118 else
32119   cat >conftest.$ac_ext <<_ACEOF
32120 /* confdefs.h.  */
32121 _ACEOF
32122 cat confdefs.h >>conftest.$ac_ext
32123 cat >>conftest.$ac_ext <<_ACEOF
32124 /* end confdefs.h.  */
32125
32126                             #include <Xm/Xm.h>
32127
32128 int
32129 main ()
32130 {
32131
32132                             #if XmVersion < 2000
32133                             Not Motif 2
32134                             #endif
32135
32136   ;
32137   return 0;
32138 }
32139 _ACEOF
32140 rm -f conftest.$ac_objext
32141 if { (ac_try="$ac_compile"
32142 case "(($ac_try" in
32143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144   *) ac_try_echo=$ac_try;;
32145 esac
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147   (eval "$ac_compile") 2>conftest.er1
32148   ac_status=$?
32149   grep -v '^ *+' conftest.er1 >conftest.err
32150   rm -f conftest.er1
32151   cat conftest.err >&5
32152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153   (exit $ac_status); } && {
32154          test -z "$ac_c_werror_flag" ||
32155          test ! -s conftest.err
32156        } && test -s conftest.$ac_objext; then
32157   wx_cv_lib_motif2="yes"
32158 else
32159   echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32161
32162         wx_cv_lib_motif2="no"
32163 fi
32164
32165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32166 fi
32167 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32168 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32169         if test "$wx_cv_lib_motif2" = "yes"; then
32170             cat >>confdefs.h <<\_ACEOF
32171 #define __WXMOTIF20__ 1
32172 _ACEOF
32173
32174         else
32175             cat >>confdefs.h <<\_ACEOF
32176 #define __WXMOTIF20__ 0
32177 _ACEOF
32178
32179         fi
32180
32181         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32182 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32183 if test "${wx_cv_lib_lesstif+set}" = set; then
32184   echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186   cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192
32193                             #include <Xm/Xm.h>
32194
32195 int
32196 main ()
32197 {
32198
32199                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32200                             Not Lesstif
32201                             #endif
32202
32203   ;
32204   return 0;
32205 }
32206 _ACEOF
32207 rm -f conftest.$ac_objext
32208 if { (ac_try="$ac_compile"
32209 case "(($ac_try" in
32210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211   *) ac_try_echo=$ac_try;;
32212 esac
32213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214   (eval "$ac_compile") 2>conftest.er1
32215   ac_status=$?
32216   grep -v '^ *+' conftest.er1 >conftest.err
32217   rm -f conftest.er1
32218   cat conftest.err >&5
32219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220   (exit $ac_status); } && {
32221          test -z "$ac_c_werror_flag" ||
32222          test ! -s conftest.err
32223        } && test -s conftest.$ac_objext; then
32224   wx_cv_lib_lesstif="yes"
32225 else
32226   echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32228
32229         wx_cv_lib_lesstif="no"
32230 fi
32231
32232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32233
32234 fi
32235 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32236 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32237         if test "$wx_cv_lib_lesstif" = "yes"; then
32238             cat >>confdefs.h <<\_ACEOF
32239 #define __WXLESSTIF__ 1
32240 _ACEOF
32241
32242         else
32243             cat >>confdefs.h <<\_ACEOF
32244 #define __WXLESSTIF__ 0
32245 _ACEOF
32246
32247         fi
32248
32249         CFLAGS=$save_CFLAGS
32250
32251         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32252         TOOLKIT=MOTIF
32253         GUIDIST=MOTIF_DIST
32254     fi
32255
32256         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32257                 if test "$wxUSE_LIBXPM" = "sys"; then
32258             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32259 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32260
32261   ac_find_libraries=
32262   for ac_dir in $SEARCH_LIB;
32263   do
32264     for ac_extension in a so sl dylib dll.a; do
32265       if test -f "$ac_dir/libXpm.$ac_extension"; then
32266         ac_find_libraries=$ac_dir
32267         break 2
32268       fi
32269     done
32270   done
32271
32272             if test "$ac_find_libraries" != "" ; then
32273
32274     if test "$ac_find_libraries" = "default location"; then
32275     ac_path_to_link=""
32276   else
32277     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32278     result=$?
32279     if test $result = 0; then
32280       ac_path_to_link=""
32281     else
32282       ac_path_to_link=" -L$ac_find_libraries"
32283     fi
32284   fi
32285
32286                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32287                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32288 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32289
32290                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32291 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32292 if test "${wx_cv_x11_xpm_h+set}" = set; then
32293   echo $ECHO_N "(cached) $ECHO_C" >&6
32294 else
32295
32296                         save_CFLAGS=$CFLAGS
32297                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32298
32299                         cat >conftest.$ac_ext <<_ACEOF
32300 /* confdefs.h.  */
32301 _ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h.  */
32305
32306                                 #include <X11/xpm.h>
32307
32308 int
32309 main ()
32310 {
32311
32312                                 int version;
32313                                 version = XpmLibraryVersion();
32314
32315   ;
32316   return 0;
32317 }
32318 _ACEOF
32319 rm -f conftest.$ac_objext
32320 if { (ac_try="$ac_compile"
32321 case "(($ac_try" in
32322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323   *) ac_try_echo=$ac_try;;
32324 esac
32325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326   (eval "$ac_compile") 2>conftest.er1
32327   ac_status=$?
32328   grep -v '^ *+' conftest.er1 >conftest.err
32329   rm -f conftest.er1
32330   cat conftest.err >&5
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); } && {
32333          test -z "$ac_c_werror_flag" ||
32334          test ! -s conftest.err
32335        } && test -s conftest.$ac_objext; then
32336   wx_cv_x11_xpm_h=yes
32337 else
32338   echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.$ac_ext >&5
32340
32341         wx_cv_x11_xpm_h=no
32342
32343 fi
32344
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346
32347                         CFLAGS=$save_CFLAGS
32348
32349
32350 fi
32351 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32352 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32353
32354                 if test $wx_cv_x11_xpm_h = "yes"; then
32355                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32356                     cat >>confdefs.h <<\_ACEOF
32357 #define wxHAVE_LIB_XPM 1
32358 _ACEOF
32359
32360                 else
32361                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32362 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32363                 fi
32364             fi
32365
32366         fi
32367
32368                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32369 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32370 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32371   echo $ECHO_N "(cached) $ECHO_C" >&6
32372 else
32373   ac_check_lib_save_LIBS=$LIBS
32374 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32375 cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381
32382 /* Override any GCC internal prototype to avoid an error.
32383    Use char because int might match the return type of a GCC
32384    builtin and then its argument prototype would still apply.  */
32385 #ifdef __cplusplus
32386 extern "C"
32387 #endif
32388 char XShapeQueryExtension ();
32389 int
32390 main ()
32391 {
32392 return XShapeQueryExtension ();
32393   ;
32394   return 0;
32395 }
32396 _ACEOF
32397 rm -f conftest.$ac_objext conftest$ac_exeext
32398 if { (ac_try="$ac_link"
32399 case "(($ac_try" in
32400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401   *) ac_try_echo=$ac_try;;
32402 esac
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404   (eval "$ac_link") 2>conftest.er1
32405   ac_status=$?
32406   grep -v '^ *+' conftest.er1 >conftest.err
32407   rm -f conftest.er1
32408   cat conftest.err >&5
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); } && {
32411          test -z "$ac_c_werror_flag" ||
32412          test ! -s conftest.err
32413        } && test -s conftest$ac_exeext &&
32414        $as_test_x conftest$ac_exeext; then
32415   ac_cv_lib_Xext_XShapeQueryExtension=yes
32416 else
32417   echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32419
32420         ac_cv_lib_Xext_XShapeQueryExtension=no
32421 fi
32422
32423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32424       conftest$ac_exeext conftest.$ac_ext
32425 LIBS=$ac_check_lib_save_LIBS
32426 fi
32427 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32428 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32429 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32430
32431                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32432                       wxHAVE_XEXT_LIB=1
32433
32434 fi
32435
32436
32437         if test "$wxHAVE_XEXT_LIB" = 1; then
32438             save_CFLAGS="$CFLAGS"
32439             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32440
32441             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32442 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32443             cat >conftest.$ac_ext <<_ACEOF
32444 /* confdefs.h.  */
32445 _ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h.  */
32449
32450                             #include <X11/Xlib.h>
32451                             #include <X11/extensions/shape.h>
32452
32453 int
32454 main ()
32455 {
32456
32457                             int dummy1, dummy2;
32458                             XShapeQueryExtension((Display*)NULL,
32459                                                  (int*)NULL, (int*)NULL);
32460
32461   ;
32462   return 0;
32463 }
32464 _ACEOF
32465 rm -f conftest.$ac_objext
32466 if { (ac_try="$ac_compile"
32467 case "(($ac_try" in
32468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469   *) ac_try_echo=$ac_try;;
32470 esac
32471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472   (eval "$ac_compile") 2>conftest.er1
32473   ac_status=$?
32474   grep -v '^ *+' conftest.er1 >conftest.err
32475   rm -f conftest.er1
32476   cat conftest.err >&5
32477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478   (exit $ac_status); } && {
32479          test -z "$ac_c_werror_flag" ||
32480          test ! -s conftest.err
32481        } && test -s conftest.$ac_objext; then
32482
32483                             cat >>confdefs.h <<\_ACEOF
32484 #define HAVE_XSHAPE 1
32485 _ACEOF
32486
32487                             { echo "$as_me:$LINENO: result: found" >&5
32488 echo "${ECHO_T}found" >&6; }
32489
32490 else
32491   echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32493
32494
32495                             { echo "$as_me:$LINENO: result: not found" >&5
32496 echo "${ECHO_T}not found" >&6; }
32497
32498 fi
32499
32500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501             CFLAGS="$save_CFLAGS"
32502
32503         fi
32504     fi
32505
32506     if test "$wxUSE_MAC" = 1; then
32507         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32508 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32509         if test "$GCC" = yes; then
32510             { echo "$as_me:$LINENO: result: gcc" >&5
32511 echo "${ECHO_T}gcc" >&6; }
32512             CPPFLAGS_PASCAL="-fpascal-strings"
32513         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32514             { echo "$as_me:$LINENO: result: xlc" >&5
32515 echo "${ECHO_T}xlc" >&6; }
32516             CPPFLAGS_PASCAL="-qmacpstr"
32517         else
32518             { echo "$as_me:$LINENO: result: none" >&5
32519 echo "${ECHO_T}none" >&6; }
32520         fi
32521
32522         if test "x$wxUSE_UNIX" = "xyes"; then
32523             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32524         else
32525                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32526         fi
32527
32528         TOOLKIT=MAC
32529                 GUIDIST=MACX_DIST
32530                         WXBASEPORT="_carbon"
32531     fi
32532
32533     if test "$wxUSE_COCOA" = 1; then
32534         TOOLKIT=COCOA
32535         GUIDIST=COCOA_DIST
32536     fi
32537
32538     if test "$wxUSE_PM" = 1; then
32539         TOOLKIT=PM
32540         GUIDIST=PM_DIST
32541         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32542 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32543 if test "${wx_cv_spbcdata+set}" = set; then
32544   echo $ECHO_N "(cached) $ECHO_C" >&6
32545 else
32546
32547                 cat >conftest.$ac_ext <<_ACEOF
32548 /* confdefs.h.  */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h.  */
32553
32554                         #define INCL_PM
32555                         #include <os2.h>
32556
32557 int
32558 main ()
32559 {
32560
32561                         SPBCDATA test;
32562
32563   ;
32564   return 0;
32565 }
32566 _ACEOF
32567 rm -f conftest.$ac_objext
32568 if { (ac_try="$ac_compile"
32569 case "(($ac_try" in
32570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571   *) ac_try_echo=$ac_try;;
32572 esac
32573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574   (eval "$ac_compile") 2>conftest.er1
32575   ac_status=$?
32576   grep -v '^ *+' conftest.er1 >conftest.err
32577   rm -f conftest.er1
32578   cat conftest.err >&5
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); } && {
32581          test -z "$ac_c_werror_flag" ||
32582          test ! -s conftest.err
32583        } && test -s conftest.$ac_objext; then
32584   wx_cv_spbcdata=yes
32585 else
32586   echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32588
32589         wx_cv_spbcdata=no
32590
32591 fi
32592
32593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32594
32595
32596 fi
32597 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32598 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32599
32600         if test $wx_cv_spbcdata = "yes"; then
32601             cat >>confdefs.h <<\_ACEOF
32602 #define HAVE_SPBCDATA 1
32603 _ACEOF
32604
32605         fi
32606     fi
32607
32608         if test "$TOOLKIT" = "PM" ; then
32609         TOOLKIT_DIR="os2"
32610     else
32611         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32612     fi
32613
32614     if test "$wxUSE_UNIVERSAL" = "yes"; then
32615         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32616         WIDGET_SET=univ
32617     fi
32618
32619         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32620     DISTDIR="wx\$(TOOLKIT)"
32621 else
32622     USE_GUI=0
32623
32624             TOOLKIT_DIR="base"
32625
32626         if test "$USE_WIN32" = 1 ; then
32627                         TOOLKIT="MSW"
32628     fi
32629
32630         GUIDIST="BASE_DIST"
32631     DISTDIR="wxBase"
32632 fi
32633
32634
32635
32636 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32637     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32638         wxUSE_UNICODE_UTF8=yes
32639     elif test "$USE_OS2" = 1 ; then
32640                                 wxUSE_UNICODE_UTF8=yes
32641     else
32642         wxUSE_UNICODE_UTF8=no
32643     fi
32644 fi
32645
32646
32647 if test "$wxUSE_GUI" = "yes"; then
32648     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32649
32650 for ac_header in X11/Xlib.h
32651 do
32652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32656   echo $ECHO_N "(cached) $ECHO_C" >&6
32657 else
32658   cat >conftest.$ac_ext <<_ACEOF
32659 /* confdefs.h.  */
32660 _ACEOF
32661 cat confdefs.h >>conftest.$ac_ext
32662 cat >>conftest.$ac_ext <<_ACEOF
32663 /* end confdefs.h.  */
32664
32665
32666 #include <$ac_header>
32667 _ACEOF
32668 rm -f conftest.$ac_objext
32669 if { (ac_try="$ac_compile"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_compile") 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } && {
32682          test -z "$ac_c_werror_flag" ||
32683          test ! -s conftest.err
32684        } && test -s conftest.$ac_objext; then
32685   eval "$as_ac_Header=yes"
32686 else
32687   echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32689
32690         eval "$as_ac_Header=no"
32691 fi
32692
32693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32694 fi
32695 ac_res=`eval echo '${'$as_ac_Header'}'`
32696                { echo "$as_me:$LINENO: result: $ac_res" >&5
32697 echo "${ECHO_T}$ac_res" >&6; }
32698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32699   cat >>confdefs.h <<_ACEOF
32700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32701 _ACEOF
32702
32703 fi
32704
32705 done
32706
32707
32708 for ac_header in X11/XKBlib.h
32709 do
32710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32714   echo $ECHO_N "(cached) $ECHO_C" >&6
32715 else
32716   cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h.  */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h.  */
32722
32723                           #if HAVE_X11_XLIB_H
32724                             #include <X11/Xlib.h>
32725                           #endif
32726
32727
32728 #include <$ac_header>
32729 _ACEOF
32730 rm -f conftest.$ac_objext
32731 if { (ac_try="$ac_compile"
32732 case "(($ac_try" in
32733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32734   *) ac_try_echo=$ac_try;;
32735 esac
32736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32737   (eval "$ac_compile") 2>conftest.er1
32738   ac_status=$?
32739   grep -v '^ *+' conftest.er1 >conftest.err
32740   rm -f conftest.er1
32741   cat conftest.err >&5
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); } && {
32744          test -z "$ac_c_werror_flag" ||
32745          test ! -s conftest.err
32746        } && test -s conftest.$ac_objext; then
32747   eval "$as_ac_Header=yes"
32748 else
32749   echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32751
32752         eval "$as_ac_Header=no"
32753 fi
32754
32755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32756 fi
32757 ac_res=`eval echo '${'$as_ac_Header'}'`
32758                { echo "$as_me:$LINENO: result: $ac_res" >&5
32759 echo "${ECHO_T}$ac_res" >&6; }
32760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32761   cat >>confdefs.h <<_ACEOF
32762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32763 _ACEOF
32764
32765 fi
32766
32767 done
32768
32769     fi
32770 fi
32771
32772
32773
32774 if test "$wxUSE_DISPLAY" = "yes"; then
32775     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32776         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32777 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32778
32779   ac_find_libraries=
32780   for ac_dir in $SEARCH_LIB;
32781   do
32782     for ac_extension in a so sl dylib dll.a; do
32783       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32784         ac_find_libraries=$ac_dir
32785         break 2
32786       fi
32787     done
32788   done
32789
32790         if test "$ac_find_libraries" != "" ; then
32791
32792     if test "$ac_find_libraries" = "default location"; then
32793     ac_path_to_link=""
32794   else
32795     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32796     result=$?
32797     if test $result = 0; then
32798       ac_path_to_link=""
32799     else
32800       ac_path_to_link=" -L$ac_find_libraries"
32801     fi
32802   fi
32803
32804             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32805                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32806             fi
32807             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32808             { echo "$as_me:$LINENO: result: yes" >&5
32809 echo "${ECHO_T}yes" >&6; }
32810
32811             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32812 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32813
32814   ac_find_libraries=
32815   for ac_dir in $SEARCH_LIB;
32816   do
32817     for ac_extension in a so sl dylib dll.a; do
32818       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32819         ac_find_libraries=$ac_dir
32820         break 2
32821       fi
32822     done
32823   done
32824
32825             if test "$ac_find_libraries" != "" ; then
32826                 { echo "$as_me:$LINENO: result: yes" >&5
32827 echo "${ECHO_T}yes" >&6; }
32828
32829 for ac_header in X11/extensions/xf86vmode.h
32830 do
32831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32835   echo $ECHO_N "(cached) $ECHO_C" >&6
32836 else
32837   cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843
32844                                       #if HAVE_X11_XLIB_H
32845                                         #include <X11/Xlib.h>
32846                                       #endif
32847
32848
32849 #include <$ac_header>
32850 _ACEOF
32851 rm -f conftest.$ac_objext
32852 if { (ac_try="$ac_compile"
32853 case "(($ac_try" in
32854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855   *) ac_try_echo=$ac_try;;
32856 esac
32857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858   (eval "$ac_compile") 2>conftest.er1
32859   ac_status=$?
32860   grep -v '^ *+' conftest.er1 >conftest.err
32861   rm -f conftest.er1
32862   cat conftest.err >&5
32863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864   (exit $ac_status); } && {
32865          test -z "$ac_c_werror_flag" ||
32866          test ! -s conftest.err
32867        } && test -s conftest.$ac_objext; then
32868   eval "$as_ac_Header=yes"
32869 else
32870   echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32872
32873         eval "$as_ac_Header=no"
32874 fi
32875
32876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32877 fi
32878 ac_res=`eval echo '${'$as_ac_Header'}'`
32879                { echo "$as_me:$LINENO: result: $ac_res" >&5
32880 echo "${ECHO_T}$ac_res" >&6; }
32881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32882   cat >>confdefs.h <<_ACEOF
32883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32884 _ACEOF
32885
32886                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32887
32888 fi
32889
32890 done
32891
32892             else
32893                 { echo "$as_me:$LINENO: result: no" >&5
32894 echo "${ECHO_T}no" >&6; }
32895             fi
32896
32897         else
32898             { echo "$as_me:$LINENO: result: no" >&5
32899 echo "${ECHO_T}no" >&6; }
32900             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32901 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32902             wxUSE_DISPLAY="no"
32903         fi
32904     elif test "$wxUSE_MSW" = 1; then
32905         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32906 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32907 if test "${ac_cv_header_ddraw_h+set}" = set; then
32908   echo $ECHO_N "(cached) $ECHO_C" >&6
32909 else
32910   cat >conftest.$ac_ext <<_ACEOF
32911 /* confdefs.h.  */
32912 _ACEOF
32913 cat confdefs.h >>conftest.$ac_ext
32914 cat >>conftest.$ac_ext <<_ACEOF
32915 /* end confdefs.h.  */
32916 #include <windows.h>
32917
32918 #include <ddraw.h>
32919 _ACEOF
32920 rm -f conftest.$ac_objext
32921 if { (ac_try="$ac_compile"
32922 case "(($ac_try" in
32923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924   *) ac_try_echo=$ac_try;;
32925 esac
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927   (eval "$ac_compile") 2>conftest.er1
32928   ac_status=$?
32929   grep -v '^ *+' conftest.er1 >conftest.err
32930   rm -f conftest.er1
32931   cat conftest.err >&5
32932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933   (exit $ac_status); } && {
32934          test -z "$ac_c_werror_flag" ||
32935          test ! -s conftest.err
32936        } && test -s conftest.$ac_objext; then
32937   ac_cv_header_ddraw_h=yes
32938 else
32939   echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32941
32942         ac_cv_header_ddraw_h=no
32943 fi
32944
32945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32946 fi
32947 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
32948 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
32949
32950
32951     fi
32952 fi
32953
32954 if test "$wxUSE_DETECT_SM" = "yes"; then
32955     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32956         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32957 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
32958
32959   ac_find_libraries=
32960   for ac_dir in $SEARCH_LIB;
32961   do
32962     for ac_extension in a so sl dylib dll.a; do
32963       if test -f "$ac_dir/libSM.$ac_extension"; then
32964         ac_find_libraries=$ac_dir
32965         break 2
32966       fi
32967     done
32968   done
32969
32970         if test "$ac_find_libraries" != "" ; then
32971
32972     if test "$ac_find_libraries" = "default location"; then
32973     ac_path_to_link=""
32974   else
32975     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32976     result=$?
32977     if test $result = 0; then
32978       ac_path_to_link=""
32979     else
32980       ac_path_to_link=" -L$ac_find_libraries"
32981     fi
32982   fi
32983
32984             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32985                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32986             fi
32987             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32988             { echo "$as_me:$LINENO: result: yes" >&5
32989 echo "${ECHO_T}yes" >&6; }
32990         else
32991             { echo "$as_me:$LINENO: result: no" >&5
32992 echo "${ECHO_T}no" >&6; }
32993             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32994 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32995             wxUSE_DETECT_SM="no"
32996         fi
32997     else
32998         wxUSE_DETECT_SM="no"
32999     fi
33000 fi
33001
33002
33003
33004 USE_OPENGL=0
33005 if test "$wxUSE_OPENGL" = "yes"; then
33006     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
33007         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33008 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33009         wxUSE_OPENGL="no"
33010     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33011         OPENGL_LIBS="-framework OpenGL -framework AGL"
33012     elif test "$wxUSE_MSW" = 1; then
33013         OPENGL_LIBS="-lopengl32 -lglu32"
33014     else
33015                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33016 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33017
33018 ac_find_includes=
33019 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33020   do
33021     if test -f "$ac_dir/GL/gl.h"; then
33022       ac_find_includes=$ac_dir
33023       break
33024     fi
33025   done
33026
33027         if test "$ac_find_includes" != "" ; then
33028             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33029 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33030
33031     if test "x$ac_find_includes" = "x/usr/include"; then
33032     ac_path_to_include=""
33033   else
33034     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33035     result=$?
33036     if test $result = 0; then
33037       ac_path_to_include=""
33038     else
33039       ac_path_to_include=" -I$ac_find_includes"
33040     fi
33041   fi
33042
33043             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33044         else
33045             { echo "$as_me:$LINENO: result: not found" >&5
33046 echo "${ECHO_T}not found" >&6; }
33047         fi
33048
33049         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33050 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33051 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33052   echo $ECHO_N "(cached) $ECHO_C" >&6
33053 else
33054   cat >conftest.$ac_ext <<_ACEOF
33055 /* confdefs.h.  */
33056 _ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h.  */
33060
33061
33062 #include <GL/gl.h>
33063 _ACEOF
33064 rm -f conftest.$ac_objext
33065 if { (ac_try="$ac_compile"
33066 case "(($ac_try" in
33067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068   *) ac_try_echo=$ac_try;;
33069 esac
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071   (eval "$ac_compile") 2>conftest.er1
33072   ac_status=$?
33073   grep -v '^ *+' conftest.er1 >conftest.err
33074   rm -f conftest.er1
33075   cat conftest.err >&5
33076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077   (exit $ac_status); } && {
33078          test -z "$ac_c_werror_flag" ||
33079          test ! -s conftest.err
33080        } && test -s conftest.$ac_objext; then
33081   ac_cv_header_GL_gl_h=yes
33082 else
33083   echo "$as_me: failed program was:" >&5
33084 sed 's/^/| /' conftest.$ac_ext >&5
33085
33086         ac_cv_header_GL_gl_h=no
33087 fi
33088
33089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33090 fi
33091 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33092 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33093 if test $ac_cv_header_GL_gl_h = yes; then
33094
33095             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33096 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33097 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33098   echo $ECHO_N "(cached) $ECHO_C" >&6
33099 else
33100   cat >conftest.$ac_ext <<_ACEOF
33101 /* confdefs.h.  */
33102 _ACEOF
33103 cat confdefs.h >>conftest.$ac_ext
33104 cat >>conftest.$ac_ext <<_ACEOF
33105 /* end confdefs.h.  */
33106
33107
33108 #include <GL/glu.h>
33109 _ACEOF
33110 rm -f conftest.$ac_objext
33111 if { (ac_try="$ac_compile"
33112 case "(($ac_try" in
33113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114   *) ac_try_echo=$ac_try;;
33115 esac
33116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117   (eval "$ac_compile") 2>conftest.er1
33118   ac_status=$?
33119   grep -v '^ *+' conftest.er1 >conftest.err
33120   rm -f conftest.er1
33121   cat conftest.err >&5
33122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123   (exit $ac_status); } && {
33124          test -z "$ac_c_werror_flag" ||
33125          test ! -s conftest.err
33126        } && test -s conftest.$ac_objext; then
33127   ac_cv_header_GL_glu_h=yes
33128 else
33129   echo "$as_me: failed program was:" >&5
33130 sed 's/^/| /' conftest.$ac_ext >&5
33131
33132         ac_cv_header_GL_glu_h=no
33133 fi
33134
33135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33136 fi
33137 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33138 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33139 if test $ac_cv_header_GL_glu_h = yes; then
33140
33141                 found_gl=0
33142
33143                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33144 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33145
33146   ac_find_libraries=
33147   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33148   do
33149     for ac_extension in a so sl dylib dll.a; do
33150       if test -f "$ac_dir/libGL.$ac_extension"; then
33151         ac_find_libraries=$ac_dir
33152         break 2
33153       fi
33154     done
33155   done
33156
33157                 if test "$ac_find_libraries" != "" ; then
33158                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33159 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33160
33161
33162     if test "$ac_find_libraries" = "default location"; then
33163     ac_path_to_link=""
33164   else
33165     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33166     result=$?
33167     if test $result = 0; then
33168       ac_path_to_link=""
33169     else
33170       ac_path_to_link=" -L$ac_find_libraries"
33171     fi
33172   fi
33173
33174                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33175                         LDFLAGS_GL="$ac_path_to_link"
33176                     fi
33177
33178                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33179 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33180
33181   ac_find_libraries=
33182   for ac_dir in $SEARCH_LIB;
33183   do
33184     for ac_extension in a so sl dylib dll.a; do
33185       if test -f "$ac_dir/libGLU.$ac_extension"; then
33186         ac_find_libraries=$ac_dir
33187         break 2
33188       fi
33189     done
33190   done
33191
33192                     if test "$ac_find_libraries" != "" ; then
33193
33194     if test "$ac_find_libraries" = "default location"; then
33195     ac_path_to_link=""
33196   else
33197     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33198     result=$?
33199     if test $result = 0; then
33200       ac_path_to_link=""
33201     else
33202       ac_path_to_link=" -L$ac_find_libraries"
33203     fi
33204   fi
33205
33206                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33207                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33208                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33209                         fi
33210
33211                         found_gl=1
33212                         OPENGL_LIBS="-lGL -lGLU"
33213                         { echo "$as_me:$LINENO: result: yes" >&5
33214 echo "${ECHO_T}yes" >&6; }
33215                     else
33216                         { echo "$as_me:$LINENO: result: no" >&5
33217 echo "${ECHO_T}no" >&6; }
33218                     fi
33219                 else
33220                     { echo "$as_me:$LINENO: result: no" >&5
33221 echo "${ECHO_T}no" >&6; }
33222                 fi
33223
33224                 if test "$found_gl" != 1; then
33225                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33226 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33227
33228   ac_find_libraries=
33229   for ac_dir in $SEARCH_LIB;
33230   do
33231     for ac_extension in a so sl dylib dll.a; do
33232       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33233         ac_find_libraries=$ac_dir
33234         break 2
33235       fi
33236     done
33237   done
33238
33239                     if test "$ac_find_libraries" != "" ; then
33240
33241     if test "$ac_find_libraries" = "default location"; then
33242     ac_path_to_link=""
33243   else
33244     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33245     result=$?
33246     if test $result = 0; then
33247       ac_path_to_link=""
33248     else
33249       ac_path_to_link=" -L$ac_find_libraries"
33250     fi
33251   fi
33252
33253                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33254                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33255                         { echo "$as_me:$LINENO: result: yes" >&5
33256 echo "${ECHO_T}yes" >&6; }
33257                     else
33258                         { echo "$as_me:$LINENO: result: no" >&5
33259 echo "${ECHO_T}no" >&6; }
33260                     fi
33261                 fi
33262
33263 fi
33264
33265
33266
33267 fi
33268
33269
33270
33271         if test "x$OPENGL_LIBS" = "x"; then
33272                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33273 echo "$as_me: error: OpenGL libraries not available" >&2;}
33274    { (exit 1); exit 1; }; }
33275         fi
33276     fi
33277
33278     if test "$wxUSE_OPENGL" = "yes"; then
33279         USE_OPENGL=1
33280         cat >>confdefs.h <<\_ACEOF
33281 #define wxUSE_OPENGL 1
33282 _ACEOF
33283
33284         cat >>confdefs.h <<\_ACEOF
33285 #define wxUSE_GLCANVAS 1
33286 _ACEOF
33287
33288         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33289     fi
33290 fi
33291
33292
33293 if test -n "$TOOLKIT" ; then
33294     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33295 fi
33296
33297
33298
33299 if test "$wxUSE_SHARED" = "yes"; then
33300     case "${host}" in
33301       *-pc-msdosdjgpp )
33302                 wxUSE_SHARED=no
33303         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33304 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33305       ;;
33306     esac
33307 fi
33308
33309 if test "$wxUSE_SHARED" = "yes"; then
33310
33311
33312     case "${host}" in
33313         *-*-cygwin* | *-*-mingw* )
33314                                                                                                 wx_cv_version_script=no
33315             ;;
33316
33317         *)
33318             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33319 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33320 if test "${wx_cv_version_script+set}" = set; then
33321   echo $ECHO_N "(cached) $ECHO_C" >&6
33322 else
33323
33324                 echo "VER_1 { *; };" >conftest.sym
33325                 echo "int main() { return 0; }" >conftest.cpp
33326
33327                 if { ac_try='
33328                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33329                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331   (eval $ac_try) 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; } ; then
33335                   if test -s conftest.stderr ; then
33336                       wx_cv_version_script=no
33337                   else
33338                       wx_cv_version_script=yes
33339                   fi
33340                 else
33341                   wx_cv_version_script=no
33342                 fi
33343
33344                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33345                 then
33346                   echo "struct B { virtual ~B() { } }; \
33347                         struct D : public B { }; \
33348                         void F() { D d; }" > conftest.cpp
33349
33350                   if { ac_try='
33351                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33352                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33354   (eval $ac_try) 2>&5
33355   ac_status=$?
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); }; } &&
33358                      { ac_try='
33359                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33360                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362   (eval $ac_try) 2>&5
33363   ac_status=$?
33364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365   (exit $ac_status); }; }
33366                   then
33367                     if { ac_try='
33368                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33369                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371   (eval $ac_try) 2>&5
33372   ac_status=$?
33373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374   (exit $ac_status); }; }
33375                     then
33376                       wx_cv_version_script=yes
33377                     else
33378                       wx_cv_version_script=no
33379                     fi
33380                   fi
33381                 fi
33382
33383                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33384                 rm -f conftest1.output conftest2.output conftest3.output
33385
33386 fi
33387 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33388 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33389
33390             if test $wx_cv_version_script = yes ; then
33391                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33392             fi
33393             ;;
33394     esac
33395
33396
33397             if test "$wxUSE_VISIBILITY" != "no"; then
33398
33399
33400   if test -n "$GCC"; then
33401     CFLAGS_VISIBILITY="-fvisibility=hidden"
33402     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33403     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33404 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33405     if test "${wx_cv_cc_visibility+set}" = set; then
33406   echo $ECHO_N "(cached) $ECHO_C" >&6
33407 else
33408
33409       wx_save_CXXFLAGS="$CXXFLAGS"
33410       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33411       ac_ext=cpp
33412 ac_cpp='$CXXCPP $CPPFLAGS'
33413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33416
33417       cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h.  */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h.  */
33423
33424          /* we need gcc >= 4.0, older versions with visibility support
33425             didn't have class visibility: */
33426          #if defined(__GNUC__) && __GNUC__ < 4
33427          error this gcc is too old;
33428          #endif
33429
33430          /* visibility only makes sense for ELF shared libs: */
33431          #if !defined(__ELF__) && !defined(__APPLE__)
33432          error this platform has no visibility;
33433          #endif
33434
33435          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33436          extern __attribute__((__visibility__("default"))) int exportedvar;
33437          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33438          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33439          class __attribute__((__visibility__("default"))) Foo {
33440            Foo() {}
33441          };
33442
33443 int
33444 main ()
33445 {
33446
33447   ;
33448   return 0;
33449 }
33450 _ACEOF
33451 rm -f conftest.$ac_objext
33452 if { (ac_try="$ac_compile"
33453 case "(($ac_try" in
33454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33455   *) ac_try_echo=$ac_try;;
33456 esac
33457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33458   (eval "$ac_compile") 2>conftest.er1
33459   ac_status=$?
33460   grep -v '^ *+' conftest.er1 >conftest.err
33461   rm -f conftest.er1
33462   cat conftest.err >&5
33463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464   (exit $ac_status); } && {
33465          test -z "$ac_cxx_werror_flag" ||
33466          test ! -s conftest.err
33467        } && test -s conftest.$ac_objext; then
33468   wx_cv_cc_visibility=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473         wx_cv_cc_visibility=no
33474 fi
33475
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33477       ac_ext=c
33478 ac_cpp='$CPP $CPPFLAGS'
33479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33482
33483       CXXFLAGS="$wx_save_CXXFLAGS"
33484 fi
33485
33486     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33487 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33488     if test $wx_cv_cc_visibility = yes; then
33489                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33490 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33491       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33492   echo $ECHO_N "(cached) $ECHO_C" >&6
33493 else
33494
33495         wx_save_CXXFLAGS="$CXXFLAGS"
33496         wx_save_LDFLAGS="$LDFLAGS"
33497         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33498         LDFLAGS="$LDFLAGS -shared -fPIC"
33499         ac_ext=cpp
33500 ac_cpp='$CXXCPP $CPPFLAGS'
33501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33504
33505         cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511
33512             #include <string>
33513
33514 int
33515 main ()
33516 {
33517
33518             std::string s("hello");
33519             return s.length();
33520
33521   ;
33522   return 0;
33523 }
33524 _ACEOF
33525 rm -f conftest.$ac_objext conftest$ac_exeext
33526 if { (ac_try="$ac_link"
33527 case "(($ac_try" in
33528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33529   *) ac_try_echo=$ac_try;;
33530 esac
33531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33532   (eval "$ac_link") 2>conftest.er1
33533   ac_status=$?
33534   grep -v '^ *+' conftest.er1 >conftest.err
33535   rm -f conftest.er1
33536   cat conftest.err >&5
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); } && {
33539          test -z "$ac_cxx_werror_flag" ||
33540          test ! -s conftest.err
33541        } && test -s conftest$ac_exeext &&
33542        $as_test_x conftest$ac_exeext; then
33543   wx_cv_cc_broken_libstdcxx_visibility=no
33544 else
33545   echo "$as_me: failed program was:" >&5
33546 sed 's/^/| /' conftest.$ac_ext >&5
33547
33548         wx_cv_cc_broken_libstdcxx_visibility=yes
33549 fi
33550
33551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33552       conftest$ac_exeext conftest.$ac_ext
33553         ac_ext=c
33554 ac_cpp='$CPP $CPPFLAGS'
33555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33558
33559         CXXFLAGS="$wx_save_CXXFLAGS"
33560         LDFLAGS="$wx_save_LDFLAGS"
33561 fi
33562
33563       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33564 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33565
33566       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33567         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33568 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33569         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33570   echo $ECHO_N "(cached) $ECHO_C" >&6
33571 else
33572
33573           ac_ext=cpp
33574 ac_cpp='$CXXCPP $CPPFLAGS'
33575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33578
33579           cat >conftest.$ac_ext <<_ACEOF
33580 /* confdefs.h.  */
33581 _ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h.  */
33585
33586               #pragma GCC visibility push(default)
33587               #include <string>
33588               #pragma GCC visibility pop
33589
33590 int
33591 main ()
33592 {
33593
33594               std::string s("hello");
33595               return s.length();
33596
33597   ;
33598   return 0;
33599 }
33600 _ACEOF
33601 rm -f conftest.$ac_objext conftest$ac_exeext
33602 if { (ac_try="$ac_link"
33603 case "(($ac_try" in
33604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605   *) ac_try_echo=$ac_try;;
33606 esac
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608   (eval "$ac_link") 2>conftest.er1
33609   ac_status=$?
33610   grep -v '^ *+' conftest.er1 >conftest.err
33611   rm -f conftest.er1
33612   cat conftest.err >&5
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); } && {
33615          test -z "$ac_cxx_werror_flag" ||
33616          test ! -s conftest.err
33617        } && test -s conftest$ac_exeext &&
33618        $as_test_x conftest$ac_exeext; then
33619   wx_cv_cc_visibility_workaround=no
33620 else
33621   echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33623
33624         wx_cv_cc_visibility_workaround=yes
33625 fi
33626
33627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33628       conftest$ac_exeext conftest.$ac_ext
33629           ac_ext=c
33630 ac_cpp='$CPP $CPPFLAGS'
33631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33634
33635
33636 fi
33637
33638         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33639 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33640
33641         if test $wx_cv_cc_visibility_workaround = no; then
33642                     wx_cv_cc_visibility=no
33643         fi
33644       fi
33645     fi
33646
33647     if test $wx_cv_cc_visibility = yes; then
33648       cat >>confdefs.h <<\_ACEOF
33649 #define HAVE_VISIBILITY 1
33650 _ACEOF
33651
33652       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33653         cat >>confdefs.h <<\_ACEOF
33654 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33655 _ACEOF
33656
33657       fi
33658     else
33659       CFLAGS_VISIBILITY=""
33660       CXXFLAGS_VISIBILITY=""
33661     fi
33662
33663
33664   fi
33665
33666     fi
33667
33668         if test "x$SUNCXX" = xyes; then
33669         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33670         WXCONFIG_RPATH="-R\$libdir"
33671     else
33672     case "${host}" in
33673       *-*-linux* | *-*-gnu* )
33674         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33675         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33676         ;;
33677
33678       *-*-solaris2* )
33679
33680                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33681
33682                         saveLdflags="$LDFLAGS"
33683         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33684         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33685 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33686         cat >conftest.$ac_ext <<_ACEOF
33687 /* confdefs.h.  */
33688 _ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h.  */
33692
33693 int
33694 main ()
33695 {
33696
33697   ;
33698   return 0;
33699 }
33700 _ACEOF
33701 rm -f conftest.$ac_objext conftest$ac_exeext
33702 if { (ac_try="$ac_link"
33703 case "(($ac_try" in
33704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33705   *) ac_try_echo=$ac_try;;
33706 esac
33707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33708   (eval "$ac_link") 2>conftest.er1
33709   ac_status=$?
33710   grep -v '^ *+' conftest.er1 >conftest.err
33711   rm -f conftest.er1
33712   cat conftest.err >&5
33713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714   (exit $ac_status); } && {
33715          test -z "$ac_c_werror_flag" ||
33716          test ! -s conftest.err
33717        } && test -s conftest$ac_exeext &&
33718        $as_test_x conftest$ac_exeext; then
33719
33720                 { echo "$as_me:$LINENO: result: yes" >&5
33721 echo "${ECHO_T}yes" >&6; }
33722                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33723                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33724
33725 else
33726   echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33728
33729
33730                 { echo "$as_me:$LINENO: result: no" >&5
33731 echo "${ECHO_T}no" >&6; }
33732                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33733 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33734                 LDFLAGS="$saveLdflags -Wl,-R,/"
33735                 cat >conftest.$ac_ext <<_ACEOF
33736 /* confdefs.h.  */
33737 _ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h.  */
33741
33742 int
33743 main ()
33744 {
33745
33746   ;
33747   return 0;
33748 }
33749 _ACEOF
33750 rm -f conftest.$ac_objext conftest$ac_exeext
33751 if { (ac_try="$ac_link"
33752 case "(($ac_try" in
33753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33754   *) ac_try_echo=$ac_try;;
33755 esac
33756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33757   (eval "$ac_link") 2>conftest.er1
33758   ac_status=$?
33759   grep -v '^ *+' conftest.er1 >conftest.err
33760   rm -f conftest.er1
33761   cat conftest.err >&5
33762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763   (exit $ac_status); } && {
33764          test -z "$ac_c_werror_flag" ||
33765          test ! -s conftest.err
33766        } && test -s conftest$ac_exeext &&
33767        $as_test_x conftest$ac_exeext; then
33768
33769                         { echo "$as_me:$LINENO: result: yes" >&5
33770 echo "${ECHO_T}yes" >&6; }
33771                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33772                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33773
33774 else
33775   echo "$as_me: failed program was:" >&5
33776 sed 's/^/| /' conftest.$ac_ext >&5
33777
33778
33779                         { echo "$as_me:$LINENO: result: no" >&5
33780 echo "${ECHO_T}no" >&6; }
33781
33782 fi
33783
33784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33785       conftest$ac_exeext conftest.$ac_ext
33786
33787 fi
33788
33789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33790       conftest$ac_exeext conftest.$ac_ext
33791         LDFLAGS="$saveLdflags"
33792       ;;
33793
33794       *-*-darwin* )
33795         install_name_tool=`which install_name_tool`
33796         if test "$install_name_tool" -a -x "$install_name_tool"; then
33797             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33798             cat <<EOF >change-install-names
33799 #!/bin/sh
33800 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33801 inst_cmd="install_name_tool "
33802 for i in \${libnames} ; do
33803     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33804 done
33805 \${inst_cmd} \${3}
33806 EOF
33807             chmod +x change-install-names
33808         fi
33809       ;;
33810
33811       *-*-cygwin* | *-*-mingw32* )
33812         ;;
33813
33814       *-*-hpux* )
33815         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33816         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33817         ;;
33818
33819     esac
33820     fi
33821
33822             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33823
33824     if test $wxUSE_RPATH = "no"; then
33825         SAMPLES_RPATH_FLAG=''
33826         SAMPLES_RPATH_POSTLINK=''
33827         WXCONFIG_RPATH=''
33828     fi
33829
33830     SHARED=1
33831
33832 else
33833
33834     config_linkage_component="-static"
33835     SHARED=0
33836
33837 fi
33838
33839
33840 UNICODE=0
33841 lib_unicode_suffix=
33842 WX_CHARTYPE="ansi"
33843 if test "$wxUSE_UNICODE" = "yes"; then
33844     lib_unicode_suffix=u
33845     WX_CHARTYPE="unicode"
33846     UNICODE=1
33847 fi
33848
33849 lib_debug_suffix=
33850 WX_DEBUGTYPE="release"
33851 DEBUG_FLAG=0
33852 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33853     lib_debug_suffix=d
33854     WX_DEBUGTYPE="debug"
33855     DEBUG_FLAG=1
33856 fi
33857
33858 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33859 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33860
33861 DEBUG_INFO=0
33862 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33863     DEBUG_INFO=1
33864 fi
33865
33866 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33867
33868 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33869
33870 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33871
33872 if test "$cross_compiling" = "yes"; then
33873     HOST_SUFFIX="-$host_alias"
33874     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33875     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33876 fi
33877
33878 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33879 if test "${TOOLKIT_DIR}" = "os2"; then
33880     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33881 else
33882     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33883 fi
33884
33885
33886
33887 if test "$wxUSE_COCOA" = 1; then
33888
33889     ac_ext=c
33890 ac_cpp='$CPP $CPPFLAGS'
33891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33894
33895 ac_ext=m
33896
33897     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33898 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33899     cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905 #include <AppKit/NSEvent.h>
33906 #include <CoreFoundation/CoreFoundation.h>
33907
33908 int
33909 main ()
33910 {
33911
33912   ;
33913   return 0;
33914 }
33915 _ACEOF
33916 rm -f conftest.$ac_objext
33917 if { (ac_try="$ac_compile"
33918 case "(($ac_try" in
33919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920   *) ac_try_echo=$ac_try;;
33921 esac
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923   (eval "$ac_compile") 2>conftest.er1
33924   ac_status=$?
33925   grep -v '^ *+' conftest.er1 >conftest.err
33926   rm -f conftest.er1
33927   cat conftest.err >&5
33928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929   (exit $ac_status); } && {
33930          test -z "$ac_c_werror_flag" ||
33931          test ! -s conftest.err
33932        } && test -s conftest.$ac_objext; then
33933   { echo "$as_me:$LINENO: result: no" >&5
33934 echo "${ECHO_T}no" >&6; }
33935 else
33936   echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33938
33939         { echo "$as_me:$LINENO: result: yes" >&5
33940 echo "${ECHO_T}yes" >&6; }
33941         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33942 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
33943         cat >conftest.$ac_ext <<_ACEOF
33944 /* confdefs.h.  */
33945 _ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h.  */
33949 #define __Point__ 1
33950 #include <AppKit/NSEvent.h>
33951 #include <CoreFoundation/CoreFoundation.h>
33952
33953 int
33954 main ()
33955 {
33956
33957   ;
33958   return 0;
33959 }
33960 _ACEOF
33961 rm -f conftest.$ac_objext
33962 if { (ac_try="$ac_compile"
33963 case "(($ac_try" in
33964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965   *) ac_try_echo=$ac_try;;
33966 esac
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968   (eval "$ac_compile") 2>conftest.er1
33969   ac_status=$?
33970   grep -v '^ *+' conftest.er1 >conftest.err
33971   rm -f conftest.er1
33972   cat conftest.err >&5
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); } && {
33975          test -z "$ac_c_werror_flag" ||
33976          test ! -s conftest.err
33977        } && test -s conftest.$ac_objext; then
33978   { echo "$as_me:$LINENO: result: yes" >&5
33979 echo "${ECHO_T}yes" >&6; }
33980             cat >>confdefs.h <<\_ACEOF
33981 #define __Point__ 1
33982 _ACEOF
33983
33984
33985 else
33986   echo "$as_me: failed program was:" >&5
33987 sed 's/^/| /' conftest.$ac_ext >&5
33988
33989         { { echo "$as_me:$LINENO: error: no
33990 See \`config.log' for more details." >&5
33991 echo "$as_me: error: no
33992 See \`config.log' for more details." >&2;}
33993    { (exit 1); exit 1; }; }
33994
33995 fi
33996
33997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33998
33999 fi
34000
34001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34002     ac_ext=c
34003 ac_cpp='$CPP $CPPFLAGS'
34004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34007
34008 fi
34009
34010
34011 { echo "$as_me:$LINENO: checking for mode_t" >&5
34012 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34013 if test "${ac_cv_type_mode_t+set}" = set; then
34014   echo $ECHO_N "(cached) $ECHO_C" >&6
34015 else
34016   cat >conftest.$ac_ext <<_ACEOF
34017 /* confdefs.h.  */
34018 _ACEOF
34019 cat confdefs.h >>conftest.$ac_ext
34020 cat >>conftest.$ac_ext <<_ACEOF
34021 /* end confdefs.h.  */
34022 $ac_includes_default
34023 typedef mode_t ac__type_new_;
34024 int
34025 main ()
34026 {
34027 if ((ac__type_new_ *) 0)
34028   return 0;
34029 if (sizeof (ac__type_new_))
34030   return 0;
34031   ;
34032   return 0;
34033 }
34034 _ACEOF
34035 rm -f conftest.$ac_objext
34036 if { (ac_try="$ac_compile"
34037 case "(($ac_try" in
34038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039   *) ac_try_echo=$ac_try;;
34040 esac
34041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042   (eval "$ac_compile") 2>conftest.er1
34043   ac_status=$?
34044   grep -v '^ *+' conftest.er1 >conftest.err
34045   rm -f conftest.er1
34046   cat conftest.err >&5
34047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048   (exit $ac_status); } && {
34049          test -z "$ac_c_werror_flag" ||
34050          test ! -s conftest.err
34051        } && test -s conftest.$ac_objext; then
34052   ac_cv_type_mode_t=yes
34053 else
34054   echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34056
34057         ac_cv_type_mode_t=no
34058 fi
34059
34060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34061 fi
34062 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34063 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34064 if test $ac_cv_type_mode_t = yes; then
34065   :
34066 else
34067
34068 cat >>confdefs.h <<_ACEOF
34069 #define mode_t int
34070 _ACEOF
34071
34072 fi
34073
34074 { echo "$as_me:$LINENO: checking for off_t" >&5
34075 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34076 if test "${ac_cv_type_off_t+set}" = set; then
34077   echo $ECHO_N "(cached) $ECHO_C" >&6
34078 else
34079   cat >conftest.$ac_ext <<_ACEOF
34080 /* confdefs.h.  */
34081 _ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h.  */
34085 $ac_includes_default
34086 typedef off_t ac__type_new_;
34087 int
34088 main ()
34089 {
34090 if ((ac__type_new_ *) 0)
34091   return 0;
34092 if (sizeof (ac__type_new_))
34093   return 0;
34094   ;
34095   return 0;
34096 }
34097 _ACEOF
34098 rm -f conftest.$ac_objext
34099 if { (ac_try="$ac_compile"
34100 case "(($ac_try" in
34101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102   *) ac_try_echo=$ac_try;;
34103 esac
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105   (eval "$ac_compile") 2>conftest.er1
34106   ac_status=$?
34107   grep -v '^ *+' conftest.er1 >conftest.err
34108   rm -f conftest.er1
34109   cat conftest.err >&5
34110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111   (exit $ac_status); } && {
34112          test -z "$ac_c_werror_flag" ||
34113          test ! -s conftest.err
34114        } && test -s conftest.$ac_objext; then
34115   ac_cv_type_off_t=yes
34116 else
34117   echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34119
34120         ac_cv_type_off_t=no
34121 fi
34122
34123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34124 fi
34125 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34126 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34127 if test $ac_cv_type_off_t = yes; then
34128   :
34129 else
34130
34131 cat >>confdefs.h <<_ACEOF
34132 #define off_t long int
34133 _ACEOF
34134
34135 fi
34136
34137 { echo "$as_me:$LINENO: checking for pid_t" >&5
34138 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34139 if test "${ac_cv_type_pid_t+set}" = set; then
34140   echo $ECHO_N "(cached) $ECHO_C" >&6
34141 else
34142   cat >conftest.$ac_ext <<_ACEOF
34143 /* confdefs.h.  */
34144 _ACEOF
34145 cat confdefs.h >>conftest.$ac_ext
34146 cat >>conftest.$ac_ext <<_ACEOF
34147 /* end confdefs.h.  */
34148 $ac_includes_default
34149 typedef pid_t ac__type_new_;
34150 int
34151 main ()
34152 {
34153 if ((ac__type_new_ *) 0)
34154   return 0;
34155 if (sizeof (ac__type_new_))
34156   return 0;
34157   ;
34158   return 0;
34159 }
34160 _ACEOF
34161 rm -f conftest.$ac_objext
34162 if { (ac_try="$ac_compile"
34163 case "(($ac_try" in
34164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165   *) ac_try_echo=$ac_try;;
34166 esac
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168   (eval "$ac_compile") 2>conftest.er1
34169   ac_status=$?
34170   grep -v '^ *+' conftest.er1 >conftest.err
34171   rm -f conftest.er1
34172   cat conftest.err >&5
34173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174   (exit $ac_status); } && {
34175          test -z "$ac_c_werror_flag" ||
34176          test ! -s conftest.err
34177        } && test -s conftest.$ac_objext; then
34178   ac_cv_type_pid_t=yes
34179 else
34180   echo "$as_me: failed program was:" >&5
34181 sed 's/^/| /' conftest.$ac_ext >&5
34182
34183         ac_cv_type_pid_t=no
34184 fi
34185
34186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34187 fi
34188 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34189 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34190 if test $ac_cv_type_pid_t = yes; then
34191   :
34192 else
34193
34194 cat >>confdefs.h <<_ACEOF
34195 #define pid_t int
34196 _ACEOF
34197
34198 fi
34199
34200 { echo "$as_me:$LINENO: checking for size_t" >&5
34201 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34202 if test "${ac_cv_type_size_t+set}" = set; then
34203   echo $ECHO_N "(cached) $ECHO_C" >&6
34204 else
34205   cat >conftest.$ac_ext <<_ACEOF
34206 /* confdefs.h.  */
34207 _ACEOF
34208 cat confdefs.h >>conftest.$ac_ext
34209 cat >>conftest.$ac_ext <<_ACEOF
34210 /* end confdefs.h.  */
34211 $ac_includes_default
34212 typedef size_t ac__type_new_;
34213 int
34214 main ()
34215 {
34216 if ((ac__type_new_ *) 0)
34217   return 0;
34218 if (sizeof (ac__type_new_))
34219   return 0;
34220   ;
34221   return 0;
34222 }
34223 _ACEOF
34224 rm -f conftest.$ac_objext
34225 if { (ac_try="$ac_compile"
34226 case "(($ac_try" in
34227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34228   *) ac_try_echo=$ac_try;;
34229 esac
34230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34231   (eval "$ac_compile") 2>conftest.er1
34232   ac_status=$?
34233   grep -v '^ *+' conftest.er1 >conftest.err
34234   rm -f conftest.er1
34235   cat conftest.err >&5
34236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237   (exit $ac_status); } && {
34238          test -z "$ac_c_werror_flag" ||
34239          test ! -s conftest.err
34240        } && test -s conftest.$ac_objext; then
34241   ac_cv_type_size_t=yes
34242 else
34243   echo "$as_me: failed program was:" >&5
34244 sed 's/^/| /' conftest.$ac_ext >&5
34245
34246         ac_cv_type_size_t=no
34247 fi
34248
34249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34250 fi
34251 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34252 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34253 if test $ac_cv_type_size_t = yes; then
34254   :
34255 else
34256
34257 cat >>confdefs.h <<_ACEOF
34258 #define size_t unsigned int
34259 _ACEOF
34260
34261 fi
34262
34263
34264 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34265 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34266 if test "${ac_cv_type_ssize_t+set}" = set; then
34267   echo $ECHO_N "(cached) $ECHO_C" >&6
34268 else
34269   cat >conftest.$ac_ext <<_ACEOF
34270 /* confdefs.h.  */
34271 _ACEOF
34272 cat confdefs.h >>conftest.$ac_ext
34273 cat >>conftest.$ac_ext <<_ACEOF
34274 /* end confdefs.h.  */
34275 $ac_includes_default
34276 typedef ssize_t ac__type_new_;
34277 int
34278 main ()
34279 {
34280 if ((ac__type_new_ *) 0)
34281   return 0;
34282 if (sizeof (ac__type_new_))
34283   return 0;
34284   ;
34285   return 0;
34286 }
34287 _ACEOF
34288 rm -f conftest.$ac_objext
34289 if { (ac_try="$ac_compile"
34290 case "(($ac_try" in
34291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34292   *) ac_try_echo=$ac_try;;
34293 esac
34294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34295   (eval "$ac_compile") 2>conftest.er1
34296   ac_status=$?
34297   grep -v '^ *+' conftest.er1 >conftest.err
34298   rm -f conftest.er1
34299   cat conftest.err >&5
34300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301   (exit $ac_status); } && {
34302          test -z "$ac_c_werror_flag" ||
34303          test ! -s conftest.err
34304        } && test -s conftest.$ac_objext; then
34305   ac_cv_type_ssize_t=yes
34306 else
34307   echo "$as_me: failed program was:" >&5
34308 sed 's/^/| /' conftest.$ac_ext >&5
34309
34310         ac_cv_type_ssize_t=no
34311 fi
34312
34313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34314 fi
34315 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34316 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34317 if test $ac_cv_type_ssize_t = yes; then
34318
34319 cat >>confdefs.h <<_ACEOF
34320 #define HAVE_SSIZE_T 1
34321 _ACEOF
34322
34323
34324 fi
34325
34326
34327 ac_ext=cpp
34328 ac_cpp='$CXXCPP $CPPFLAGS'
34329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34332  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34333 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34334 if test "${wx_cv_size_t_is_uint+set}" = set; then
34335   echo $ECHO_N "(cached) $ECHO_C" >&6
34336 else
34337
34338                             cat >conftest.$ac_ext <<_ACEOF
34339 /* confdefs.h.  */
34340 _ACEOF
34341 cat confdefs.h >>conftest.$ac_ext
34342 cat >>conftest.$ac_ext <<_ACEOF
34343 /* end confdefs.h.  */
34344 #include <stddef.h>
34345 int
34346 main ()
34347 {
34348
34349             return 0; }
34350
34351             struct Foo { void foo(size_t); void foo(unsigned int); };
34352
34353             int bar() {
34354
34355   ;
34356   return 0;
34357 }
34358 _ACEOF
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366   (eval "$ac_compile") 2>conftest.er1
34367   ac_status=$?
34368   grep -v '^ *+' conftest.er1 >conftest.err
34369   rm -f conftest.er1
34370   cat conftest.err >&5
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); } && {
34373          test -z "$ac_cxx_werror_flag" ||
34374          test ! -s conftest.err
34375        } && test -s conftest.$ac_objext; then
34376   wx_cv_size_t_is_uint=no
34377 else
34378   echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.$ac_ext >&5
34380
34381         wx_cv_size_t_is_uint=yes
34382
34383 fi
34384
34385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34386
34387
34388 fi
34389 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34390 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34391
34392 if test "$wx_cv_size_t_is_uint" = "yes"; then
34393     cat >>confdefs.h <<\_ACEOF
34394 #define wxSIZE_T_IS_UINT 1
34395 _ACEOF
34396
34397 else
34398     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34399 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34400 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34401   echo $ECHO_N "(cached) $ECHO_C" >&6
34402 else
34403   cat >conftest.$ac_ext <<_ACEOF
34404 /* confdefs.h.  */
34405 _ACEOF
34406 cat confdefs.h >>conftest.$ac_ext
34407 cat >>conftest.$ac_ext <<_ACEOF
34408 /* end confdefs.h.  */
34409 #include <stddef.h>
34410 int
34411 main ()
34412 {
34413
34414                 return 0; }
34415
34416                 struct Foo { void foo(size_t); void foo(unsigned long); };
34417
34418                 int bar() {
34419
34420   ;
34421   return 0;
34422 }
34423 _ACEOF
34424 rm -f conftest.$ac_objext
34425 if { (ac_try="$ac_compile"
34426 case "(($ac_try" in
34427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34428   *) ac_try_echo=$ac_try;;
34429 esac
34430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34431   (eval "$ac_compile") 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } && {
34438          test -z "$ac_cxx_werror_flag" ||
34439          test ! -s conftest.err
34440        } && test -s conftest.$ac_objext; then
34441   wx_cv_size_t_is_ulong=no
34442 else
34443   echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34445
34446         wx_cv_size_t_is_ulong=yes
34447
34448 fi
34449
34450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34451
34452 fi
34453 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34454 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34455
34456     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34457         cat >>confdefs.h <<\_ACEOF
34458 #define wxSIZE_T_IS_ULONG 1
34459 _ACEOF
34460
34461     fi
34462 fi
34463
34464 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34465 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34466 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34467   echo $ECHO_N "(cached) $ECHO_C" >&6
34468 else
34469   cat >conftest.$ac_ext <<_ACEOF
34470 /* confdefs.h.  */
34471 _ACEOF
34472 cat confdefs.h >>conftest.$ac_ext
34473 cat >>conftest.$ac_ext <<_ACEOF
34474 /* end confdefs.h.  */
34475 #include <wchar.h>
34476 int
34477 main ()
34478 {
34479
34480             return 0; }
34481
34482             struct Foo { void foo(wchar_t);
34483                          void foo(unsigned short);
34484                          void foo(unsigned int);
34485                          void foo(unsigned long); };
34486
34487             int bar() {
34488
34489   ;
34490   return 0;
34491 }
34492 _ACEOF
34493 rm -f conftest.$ac_objext
34494 if { (ac_try="$ac_compile"
34495 case "(($ac_try" in
34496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34497   *) ac_try_echo=$ac_try;;
34498 esac
34499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34500   (eval "$ac_compile") 2>conftest.er1
34501   ac_status=$?
34502   grep -v '^ *+' conftest.er1 >conftest.err
34503   rm -f conftest.er1
34504   cat conftest.err >&5
34505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506   (exit $ac_status); } && {
34507          test -z "$ac_cxx_werror_flag" ||
34508          test ! -s conftest.err
34509        } && test -s conftest.$ac_objext; then
34510   wx_cv_wchar_t_is_separate_type=yes
34511 else
34512   echo "$as_me: failed program was:" >&5
34513 sed 's/^/| /' conftest.$ac_ext >&5
34514
34515         wx_cv_wchar_t_is_separate_type=no
34516
34517 fi
34518
34519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34520
34521 fi
34522 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34523 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34524
34525 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34526     cat >>confdefs.h <<\_ACEOF
34527 #define wxWCHAR_T_IS_REAL_TYPE 1
34528 _ACEOF
34529
34530 else
34531     cat >>confdefs.h <<\_ACEOF
34532 #define wxWCHAR_T_IS_REAL_TYPE 0
34533 _ACEOF
34534
34535 fi
34536
34537 ac_ext=c
34538 ac_cpp='$CPP $CPPFLAGS'
34539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34542
34543
34544 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34545 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34546 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34547   echo $ECHO_N "(cached) $ECHO_C" >&6
34548 else
34549
34550         cat >conftest.$ac_ext <<_ACEOF
34551 /* confdefs.h.  */
34552 _ACEOF
34553 cat confdefs.h >>conftest.$ac_ext
34554 cat >>conftest.$ac_ext <<_ACEOF
34555 /* end confdefs.h.  */
34556 #include <pwd.h>
34557 int
34558 main ()
34559 {
34560
34561                 char *p;
34562                 struct passwd *pw;
34563                 p = pw->pw_gecos;
34564
34565   ;
34566   return 0;
34567 }
34568 _ACEOF
34569 rm -f conftest.$ac_objext
34570 if { (ac_try="$ac_compile"
34571 case "(($ac_try" in
34572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34573   *) ac_try_echo=$ac_try;;
34574 esac
34575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576   (eval "$ac_compile") 2>conftest.er1
34577   ac_status=$?
34578   grep -v '^ *+' conftest.er1 >conftest.err
34579   rm -f conftest.er1
34580   cat conftest.err >&5
34581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582   (exit $ac_status); } && {
34583          test -z "$ac_c_werror_flag" ||
34584          test ! -s conftest.err
34585        } && test -s conftest.$ac_objext; then
34586
34587                 wx_cv_struct_pw_gecos=yes
34588
34589 else
34590   echo "$as_me: failed program was:" >&5
34591 sed 's/^/| /' conftest.$ac_ext >&5
34592
34593
34594                 wx_cv_struct_pw_gecos=no
34595
34596
34597 fi
34598
34599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34600
34601
34602 fi
34603 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34604 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34605
34606 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34607     cat >>confdefs.h <<\_ACEOF
34608 #define HAVE_PW_GECOS 1
34609 _ACEOF
34610
34611 fi
34612
34613
34614 if test "$wxUSE_WCHAR_T" = "yes"; then
34615     cat >>confdefs.h <<\_ACEOF
34616 #define wxUSE_WCHAR_T 1
34617 _ACEOF
34618
34619
34620         WCSLEN_FOUND=0
34621     WCHAR_LINK=
34622
34623 for ac_func in wcslen
34624 do
34625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34629   echo $ECHO_N "(cached) $ECHO_C" >&6
34630 else
34631   cat >conftest.$ac_ext <<_ACEOF
34632 /* confdefs.h.  */
34633 _ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h.  */
34637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34639 #define $ac_func innocuous_$ac_func
34640
34641 /* System header to define __stub macros and hopefully few prototypes,
34642     which can conflict with char $ac_func (); below.
34643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34644     <limits.h> exists even on freestanding compilers.  */
34645
34646 #ifdef __STDC__
34647 # include <limits.h>
34648 #else
34649 # include <assert.h>
34650 #endif
34651
34652 #undef $ac_func
34653
34654 /* Override any GCC internal prototype to avoid an error.
34655    Use char because int might match the return type of a GCC
34656    builtin and then its argument prototype would still apply.  */
34657 #ifdef __cplusplus
34658 extern "C"
34659 #endif
34660 char $ac_func ();
34661 /* The GNU C library defines this for functions which it implements
34662     to always fail with ENOSYS.  Some functions are actually named
34663     something starting with __ and the normal name is an alias.  */
34664 #if defined __stub_$ac_func || defined __stub___$ac_func
34665 choke me
34666 #endif
34667
34668 int
34669 main ()
34670 {
34671 return $ac_func ();
34672   ;
34673   return 0;
34674 }
34675 _ACEOF
34676 rm -f conftest.$ac_objext conftest$ac_exeext
34677 if { (ac_try="$ac_link"
34678 case "(($ac_try" in
34679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34680   *) ac_try_echo=$ac_try;;
34681 esac
34682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34683   (eval "$ac_link") 2>conftest.er1
34684   ac_status=$?
34685   grep -v '^ *+' conftest.er1 >conftest.err
34686   rm -f conftest.er1
34687   cat conftest.err >&5
34688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689   (exit $ac_status); } && {
34690          test -z "$ac_c_werror_flag" ||
34691          test ! -s conftest.err
34692        } && test -s conftest$ac_exeext &&
34693        $as_test_x conftest$ac_exeext; then
34694   eval "$as_ac_var=yes"
34695 else
34696   echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699         eval "$as_ac_var=no"
34700 fi
34701
34702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34703       conftest$ac_exeext conftest.$ac_ext
34704 fi
34705 ac_res=`eval echo '${'$as_ac_var'}'`
34706                { echo "$as_me:$LINENO: result: $ac_res" >&5
34707 echo "${ECHO_T}$ac_res" >&6; }
34708 if test `eval echo '${'$as_ac_var'}'` = yes; then
34709   cat >>confdefs.h <<_ACEOF
34710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34711 _ACEOF
34712  WCSLEN_FOUND=1
34713 fi
34714 done
34715
34716
34717     if test "$WCSLEN_FOUND" = 0; then
34718         if test "$TOOLKIT" = "MSW"; then
34719             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34720 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34721 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34722   echo $ECHO_N "(cached) $ECHO_C" >&6
34723 else
34724   ac_check_lib_save_LIBS=$LIBS
34725 LIBS="-lmsvcrt  $LIBS"
34726 cat >conftest.$ac_ext <<_ACEOF
34727 /* confdefs.h.  */
34728 _ACEOF
34729 cat confdefs.h >>conftest.$ac_ext
34730 cat >>conftest.$ac_ext <<_ACEOF
34731 /* end confdefs.h.  */
34732
34733 /* Override any GCC internal prototype to avoid an error.
34734    Use char because int might match the return type of a GCC
34735    builtin and then its argument prototype would still apply.  */
34736 #ifdef __cplusplus
34737 extern "C"
34738 #endif
34739 char wcslen ();
34740 int
34741 main ()
34742 {
34743 return wcslen ();
34744   ;
34745   return 0;
34746 }
34747 _ACEOF
34748 rm -f conftest.$ac_objext conftest$ac_exeext
34749 if { (ac_try="$ac_link"
34750 case "(($ac_try" in
34751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752   *) ac_try_echo=$ac_try;;
34753 esac
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755   (eval "$ac_link") 2>conftest.er1
34756   ac_status=$?
34757   grep -v '^ *+' conftest.er1 >conftest.err
34758   rm -f conftest.er1
34759   cat conftest.err >&5
34760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); } && {
34762          test -z "$ac_c_werror_flag" ||
34763          test ! -s conftest.err
34764        } && test -s conftest$ac_exeext &&
34765        $as_test_x conftest$ac_exeext; then
34766   ac_cv_lib_msvcrt_wcslen=yes
34767 else
34768   echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34770
34771         ac_cv_lib_msvcrt_wcslen=no
34772 fi
34773
34774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34775       conftest$ac_exeext conftest.$ac_ext
34776 LIBS=$ac_check_lib_save_LIBS
34777 fi
34778 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34779 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34780 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34781   WCHAR_OK=1
34782 fi
34783
34784         else
34785             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34786 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34787 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34788   echo $ECHO_N "(cached) $ECHO_C" >&6
34789 else
34790   ac_check_lib_save_LIBS=$LIBS
34791 LIBS="-lw  $LIBS"
34792 cat >conftest.$ac_ext <<_ACEOF
34793 /* confdefs.h.  */
34794 _ACEOF
34795 cat confdefs.h >>conftest.$ac_ext
34796 cat >>conftest.$ac_ext <<_ACEOF
34797 /* end confdefs.h.  */
34798
34799 /* Override any GCC internal prototype to avoid an error.
34800    Use char because int might match the return type of a GCC
34801    builtin and then its argument prototype would still apply.  */
34802 #ifdef __cplusplus
34803 extern "C"
34804 #endif
34805 char wcslen ();
34806 int
34807 main ()
34808 {
34809 return wcslen ();
34810   ;
34811   return 0;
34812 }
34813 _ACEOF
34814 rm -f conftest.$ac_objext conftest$ac_exeext
34815 if { (ac_try="$ac_link"
34816 case "(($ac_try" in
34817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34818   *) ac_try_echo=$ac_try;;
34819 esac
34820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821   (eval "$ac_link") 2>conftest.er1
34822   ac_status=$?
34823   grep -v '^ *+' conftest.er1 >conftest.err
34824   rm -f conftest.er1
34825   cat conftest.err >&5
34826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827   (exit $ac_status); } && {
34828          test -z "$ac_c_werror_flag" ||
34829          test ! -s conftest.err
34830        } && test -s conftest$ac_exeext &&
34831        $as_test_x conftest$ac_exeext; then
34832   ac_cv_lib_w_wcslen=yes
34833 else
34834   echo "$as_me: failed program was:" >&5
34835 sed 's/^/| /' conftest.$ac_ext >&5
34836
34837         ac_cv_lib_w_wcslen=no
34838 fi
34839
34840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34841       conftest$ac_exeext conftest.$ac_ext
34842 LIBS=$ac_check_lib_save_LIBS
34843 fi
34844 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34845 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34846 if test $ac_cv_lib_w_wcslen = yes; then
34847
34848                             WCHAR_LINK=" -lw"
34849                             WCSLEN_FOUND=1
34850
34851 fi
34852
34853         fi
34854     fi
34855
34856     if test "$WCSLEN_FOUND" = 1; then
34857         cat >>confdefs.h <<\_ACEOF
34858 #define HAVE_WCSLEN 1
34859 _ACEOF
34860
34861     fi
34862
34863
34864 for ac_func in wcsdup
34865 do
34866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34870   echo $ECHO_N "(cached) $ECHO_C" >&6
34871 else
34872   cat >conftest.$ac_ext <<_ACEOF
34873 /* confdefs.h.  */
34874 _ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h.  */
34878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34880 #define $ac_func innocuous_$ac_func
34881
34882 /* System header to define __stub macros and hopefully few prototypes,
34883     which can conflict with char $ac_func (); below.
34884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34885     <limits.h> exists even on freestanding compilers.  */
34886
34887 #ifdef __STDC__
34888 # include <limits.h>
34889 #else
34890 # include <assert.h>
34891 #endif
34892
34893 #undef $ac_func
34894
34895 /* Override any GCC internal prototype to avoid an error.
34896    Use char because int might match the return type of a GCC
34897    builtin and then its argument prototype would still apply.  */
34898 #ifdef __cplusplus
34899 extern "C"
34900 #endif
34901 char $ac_func ();
34902 /* The GNU C library defines this for functions which it implements
34903     to always fail with ENOSYS.  Some functions are actually named
34904     something starting with __ and the normal name is an alias.  */
34905 #if defined __stub_$ac_func || defined __stub___$ac_func
34906 choke me
34907 #endif
34908
34909 int
34910 main ()
34911 {
34912 return $ac_func ();
34913   ;
34914   return 0;
34915 }
34916 _ACEOF
34917 rm -f conftest.$ac_objext conftest$ac_exeext
34918 if { (ac_try="$ac_link"
34919 case "(($ac_try" in
34920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921   *) ac_try_echo=$ac_try;;
34922 esac
34923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924   (eval "$ac_link") 2>conftest.er1
34925   ac_status=$?
34926   grep -v '^ *+' conftest.er1 >conftest.err
34927   rm -f conftest.er1
34928   cat conftest.err >&5
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); } && {
34931          test -z "$ac_c_werror_flag" ||
34932          test ! -s conftest.err
34933        } && test -s conftest$ac_exeext &&
34934        $as_test_x conftest$ac_exeext; then
34935   eval "$as_ac_var=yes"
34936 else
34937   echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34939
34940         eval "$as_ac_var=no"
34941 fi
34942
34943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34944       conftest$ac_exeext conftest.$ac_ext
34945 fi
34946 ac_res=`eval echo '${'$as_ac_var'}'`
34947                { echo "$as_me:$LINENO: result: $ac_res" >&5
34948 echo "${ECHO_T}$ac_res" >&6; }
34949 if test `eval echo '${'$as_ac_var'}'` = yes; then
34950   cat >>confdefs.h <<_ACEOF
34951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34952 _ACEOF
34953
34954 fi
34955 done
34956
34957
34958                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34959         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34960     fi
34961
34962                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
34963 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
34964 if test "${ac_cv_type_mbstate_t+set}" = set; then
34965   echo $ECHO_N "(cached) $ECHO_C" >&6
34966 else
34967   cat >conftest.$ac_ext <<_ACEOF
34968 /* confdefs.h.  */
34969 _ACEOF
34970 cat confdefs.h >>conftest.$ac_ext
34971 cat >>conftest.$ac_ext <<_ACEOF
34972 /* end confdefs.h.  */
34973 #include <wchar.h>
34974
34975 typedef mbstate_t ac__type_new_;
34976 int
34977 main ()
34978 {
34979 if ((ac__type_new_ *) 0)
34980   return 0;
34981 if (sizeof (ac__type_new_))
34982   return 0;
34983   ;
34984   return 0;
34985 }
34986 _ACEOF
34987 rm -f conftest.$ac_objext
34988 if { (ac_try="$ac_compile"
34989 case "(($ac_try" in
34990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34991   *) ac_try_echo=$ac_try;;
34992 esac
34993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34994   (eval "$ac_compile") 2>conftest.er1
34995   ac_status=$?
34996   grep -v '^ *+' conftest.er1 >conftest.err
34997   rm -f conftest.er1
34998   cat conftest.err >&5
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); } && {
35001          test -z "$ac_c_werror_flag" ||
35002          test ! -s conftest.err
35003        } && test -s conftest.$ac_objext; then
35004   ac_cv_type_mbstate_t=yes
35005 else
35006   echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35008
35009         ac_cv_type_mbstate_t=no
35010 fi
35011
35012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35013 fi
35014 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35015 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35016 if test $ac_cv_type_mbstate_t = yes; then
35017
35018 cat >>confdefs.h <<_ACEOF
35019 #define HAVE_MBSTATE_T 1
35020 _ACEOF
35021
35022
35023 for ac_func in wcsrtombs
35024 do
35025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35029   echo $ECHO_N "(cached) $ECHO_C" >&6
35030 else
35031   cat >conftest.$ac_ext <<_ACEOF
35032 /* confdefs.h.  */
35033 _ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h.  */
35037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35039 #define $ac_func innocuous_$ac_func
35040
35041 /* System header to define __stub macros and hopefully few prototypes,
35042     which can conflict with char $ac_func (); below.
35043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35044     <limits.h> exists even on freestanding compilers.  */
35045
35046 #ifdef __STDC__
35047 # include <limits.h>
35048 #else
35049 # include <assert.h>
35050 #endif
35051
35052 #undef $ac_func
35053
35054 /* Override any GCC internal prototype to avoid an error.
35055    Use char because int might match the return type of a GCC
35056    builtin and then its argument prototype would still apply.  */
35057 #ifdef __cplusplus
35058 extern "C"
35059 #endif
35060 char $ac_func ();
35061 /* The GNU C library defines this for functions which it implements
35062     to always fail with ENOSYS.  Some functions are actually named
35063     something starting with __ and the normal name is an alias.  */
35064 #if defined __stub_$ac_func || defined __stub___$ac_func
35065 choke me
35066 #endif
35067
35068 int
35069 main ()
35070 {
35071 return $ac_func ();
35072   ;
35073   return 0;
35074 }
35075 _ACEOF
35076 rm -f conftest.$ac_objext conftest$ac_exeext
35077 if { (ac_try="$ac_link"
35078 case "(($ac_try" in
35079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080   *) ac_try_echo=$ac_try;;
35081 esac
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083   (eval "$ac_link") 2>conftest.er1
35084   ac_status=$?
35085   grep -v '^ *+' conftest.er1 >conftest.err
35086   rm -f conftest.er1
35087   cat conftest.err >&5
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); } && {
35090          test -z "$ac_c_werror_flag" ||
35091          test ! -s conftest.err
35092        } && test -s conftest$ac_exeext &&
35093        $as_test_x conftest$ac_exeext; then
35094   eval "$as_ac_var=yes"
35095 else
35096   echo "$as_me: failed program was:" >&5
35097 sed 's/^/| /' conftest.$ac_ext >&5
35098
35099         eval "$as_ac_var=no"
35100 fi
35101
35102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35103       conftest$ac_exeext conftest.$ac_ext
35104 fi
35105 ac_res=`eval echo '${'$as_ac_var'}'`
35106                { echo "$as_me:$LINENO: result: $ac_res" >&5
35107 echo "${ECHO_T}$ac_res" >&6; }
35108 if test `eval echo '${'$as_ac_var'}'` = yes; then
35109   cat >>confdefs.h <<_ACEOF
35110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35111 _ACEOF
35112
35113 fi
35114 done
35115
35116 fi
35117
35118 else
35119     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35120 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35121 fi
35122
35123
35124
35125
35126 for ac_func in snprintf vsnprintf vsscanf
35127 do
35128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35132   echo $ECHO_N "(cached) $ECHO_C" >&6
35133 else
35134   cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35142 #define $ac_func innocuous_$ac_func
35143
35144 /* System header to define __stub macros and hopefully few prototypes,
35145     which can conflict with char $ac_func (); below.
35146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35147     <limits.h> exists even on freestanding compilers.  */
35148
35149 #ifdef __STDC__
35150 # include <limits.h>
35151 #else
35152 # include <assert.h>
35153 #endif
35154
35155 #undef $ac_func
35156
35157 /* Override any GCC internal prototype to avoid an error.
35158    Use char because int might match the return type of a GCC
35159    builtin and then its argument prototype would still apply.  */
35160 #ifdef __cplusplus
35161 extern "C"
35162 #endif
35163 char $ac_func ();
35164 /* The GNU C library defines this for functions which it implements
35165     to always fail with ENOSYS.  Some functions are actually named
35166     something starting with __ and the normal name is an alias.  */
35167 #if defined __stub_$ac_func || defined __stub___$ac_func
35168 choke me
35169 #endif
35170
35171 int
35172 main ()
35173 {
35174 return $ac_func ();
35175   ;
35176   return 0;
35177 }
35178 _ACEOF
35179 rm -f conftest.$ac_objext conftest$ac_exeext
35180 if { (ac_try="$ac_link"
35181 case "(($ac_try" in
35182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35183   *) ac_try_echo=$ac_try;;
35184 esac
35185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35186   (eval "$ac_link") 2>conftest.er1
35187   ac_status=$?
35188   grep -v '^ *+' conftest.er1 >conftest.err
35189   rm -f conftest.er1
35190   cat conftest.err >&5
35191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192   (exit $ac_status); } && {
35193          test -z "$ac_c_werror_flag" ||
35194          test ! -s conftest.err
35195        } && test -s conftest$ac_exeext &&
35196        $as_test_x conftest$ac_exeext; then
35197   eval "$as_ac_var=yes"
35198 else
35199   echo "$as_me: failed program was:" >&5
35200 sed 's/^/| /' conftest.$ac_ext >&5
35201
35202         eval "$as_ac_var=no"
35203 fi
35204
35205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35206       conftest$ac_exeext conftest.$ac_ext
35207 fi
35208 ac_res=`eval echo '${'$as_ac_var'}'`
35209                { echo "$as_me:$LINENO: result: $ac_res" >&5
35210 echo "${ECHO_T}$ac_res" >&6; }
35211 if test `eval echo '${'$as_ac_var'}'` = yes; then
35212   cat >>confdefs.h <<_ACEOF
35213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35214 _ACEOF
35215
35216 fi
35217 done
35218
35219
35220 ac_ext=cpp
35221 ac_cpp='$CXXCPP $CPPFLAGS'
35222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35225
35226 if test "$ac_cv_func_vsnprintf" = "yes"; then
35227         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35228 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35229 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35230   echo $ECHO_N "(cached) $ECHO_C" >&6
35231 else
35232
35233                                                             cat >conftest.$ac_ext <<_ACEOF
35234 /* confdefs.h.  */
35235 _ACEOF
35236 cat confdefs.h >>conftest.$ac_ext
35237 cat >>conftest.$ac_ext <<_ACEOF
35238 /* end confdefs.h.  */
35239
35240                     #include <stdio.h>
35241                     #include <stdarg.h>
35242                     #ifdef __MSL__
35243                     #if __MSL__ >= 0x6000
35244                     namespace std {}
35245                     using namespace std;
35246                     #endif
35247                     #endif
35248
35249 int
35250 main ()
35251 {
35252
35253                     char *buf;
35254                     va_list ap;
35255                     vsnprintf(buf, 10u, "%s", ap);
35256
35257   ;
35258   return 0;
35259 }
35260 _ACEOF
35261 rm -f conftest.$ac_objext
35262 if { (ac_try="$ac_compile"
35263 case "(($ac_try" in
35264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35265   *) ac_try_echo=$ac_try;;
35266 esac
35267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35268   (eval "$ac_compile") 2>conftest.er1
35269   ac_status=$?
35270   grep -v '^ *+' conftest.er1 >conftest.err
35271   rm -f conftest.er1
35272   cat conftest.err >&5
35273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274   (exit $ac_status); } && {
35275          test -z "$ac_cxx_werror_flag" ||
35276          test ! -s conftest.err
35277        } && test -s conftest.$ac_objext; then
35278   wx_cv_func_vsnprintf_decl=yes
35279 else
35280   echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.$ac_ext >&5
35282
35283         wx_cv_func_vsnprintf_decl=no
35284
35285 fi
35286
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288
35289
35290 fi
35291 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35292 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35293
35294     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35295         cat >>confdefs.h <<\_ACEOF
35296 #define HAVE_VSNPRINTF_DECL 1
35297 _ACEOF
35298
35299
35300                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35301 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35302 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35303   echo $ECHO_N "(cached) $ECHO_C" >&6
35304 else
35305
35306                 cat >conftest.$ac_ext <<_ACEOF
35307 /* confdefs.h.  */
35308 _ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h.  */
35312
35313                         #include <stdio.h>
35314                         #include <stdarg.h>
35315                         #ifdef __MSL__
35316                         #if __MSL__ >= 0x6000
35317                         namespace std {}
35318                         using namespace std;
35319                         #endif
35320                         #endif
35321
35322 int
35323 main ()
35324 {
35325
35326                         char *buf;
35327                         va_list ap;
35328                         const char *fmt = "%s";
35329                         vsnprintf(buf, 10u, fmt, ap);
35330
35331   ;
35332   return 0;
35333 }
35334 _ACEOF
35335 rm -f conftest.$ac_objext
35336 if { (ac_try="$ac_compile"
35337 case "(($ac_try" in
35338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35339   *) ac_try_echo=$ac_try;;
35340 esac
35341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35342   (eval "$ac_compile") 2>conftest.er1
35343   ac_status=$?
35344   grep -v '^ *+' conftest.er1 >conftest.err
35345   rm -f conftest.er1
35346   cat conftest.err >&5
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); } && {
35349          test -z "$ac_cxx_werror_flag" ||
35350          test ! -s conftest.err
35351        } && test -s conftest.$ac_objext; then
35352   wx_cv_func_broken_vsnprintf_decl=no
35353 else
35354   echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35356
35357         wx_cv_func_broken_vsnprintf_decl=yes
35358
35359 fi
35360
35361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35362
35363
35364 fi
35365 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35366 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35367
35368         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35369             cat >>confdefs.h <<\_ACEOF
35370 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35371 _ACEOF
35372
35373         fi
35374     fi
35375 fi
35376
35377 if test "$ac_cv_func_snprintf" = "yes"; then
35378     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35379 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35380 if test "${wx_cv_func_snprintf_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                     snprintf(buf, 10u, "%s", "wx");
35406
35407   ;
35408   return 0;
35409 }
35410 _ACEOF
35411 rm -f conftest.$ac_objext
35412 if { (ac_try="$ac_compile"
35413 case "(($ac_try" in
35414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35415   *) ac_try_echo=$ac_try;;
35416 esac
35417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35418   (eval "$ac_compile") 2>conftest.er1
35419   ac_status=$?
35420   grep -v '^ *+' conftest.er1 >conftest.err
35421   rm -f conftest.er1
35422   cat conftest.err >&5
35423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424   (exit $ac_status); } && {
35425          test -z "$ac_cxx_werror_flag" ||
35426          test ! -s conftest.err
35427        } && test -s conftest.$ac_objext; then
35428   wx_cv_func_snprintf_decl=yes
35429 else
35430   echo "$as_me: failed program was:" >&5
35431 sed 's/^/| /' conftest.$ac_ext >&5
35432
35433         wx_cv_func_snprintf_decl=no
35434
35435 fi
35436
35437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35438
35439
35440 fi
35441 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35442 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35443
35444     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35445         cat >>confdefs.h <<\_ACEOF
35446 #define HAVE_SNPRINTF_DECL 1
35447 _ACEOF
35448
35449     fi
35450
35451     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35452
35453                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35454 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35455 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35456   echo $ECHO_N "(cached) $ECHO_C" >&6
35457 else
35458
35459                 if test "$cross_compiling" = yes; then
35460
35461                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35462 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35463 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35464 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35465                         wx_cv_func_snprintf_pos_params=no
35466
35467
35468 else
35469   cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h.  */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h.  */
35475
35476                         #include <stdio.h>
35477
35478                         int main (void)
35479                         {
35480                             char buffer[128];
35481                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35482                             if (strcmp ("2 3 1", buffer) == 0)
35483                                 exit (0);
35484                             exit (1);
35485                         }
35486
35487 _ACEOF
35488 rm -f conftest$ac_exeext
35489 if { (ac_try="$ac_link"
35490 case "(($ac_try" in
35491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35492   *) ac_try_echo=$ac_try;;
35493 esac
35494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35495   (eval "$ac_link") 2>&5
35496   ac_status=$?
35497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35499   { (case "(($ac_try" in
35500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501   *) ac_try_echo=$ac_try;;
35502 esac
35503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504   (eval "$ac_try") 2>&5
35505   ac_status=$?
35506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507   (exit $ac_status); }; }; then
35508   wx_cv_func_snprintf_pos_params=no
35509 else
35510   echo "$as_me: program exited with status $ac_status" >&5
35511 echo "$as_me: failed program was:" >&5
35512 sed 's/^/| /' conftest.$ac_ext >&5
35513
35514 ( exit $ac_status )
35515 wx_cv_func_snprintf_pos_params=yes
35516 fi
35517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35518 fi
35519
35520
35521
35522
35523 fi
35524 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35525 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35526
35527         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35528             cat >>confdefs.h <<\_ACEOF
35529 #define HAVE_UNIX98_PRINTF 1
35530 _ACEOF
35531
35532         fi
35533     fi
35534 fi
35535
35536 if test "$ac_cv_func_vsscanf" = "yes"; then
35537     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35538 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35539 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35540   echo $ECHO_N "(cached) $ECHO_C" >&6
35541 else
35542
35543             cat >conftest.$ac_ext <<_ACEOF
35544 /* confdefs.h.  */
35545 _ACEOF
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h.  */
35549
35550                     #include <stdio.h>
35551                     #include <stdarg.h>
35552                     #ifdef __MSL__
35553                     #if __MSL__ >= 0x6000
35554                     namespace std {}
35555                     using namespace std;
35556                     #endif
35557                     #endif
35558
35559 int
35560 main ()
35561 {
35562
35563                     char *buf;
35564                     va_list args;
35565                     vsscanf(buf, "%s", args);
35566
35567   ;
35568   return 0;
35569 }
35570 _ACEOF
35571 rm -f conftest.$ac_objext
35572 if { (ac_try="$ac_compile"
35573 case "(($ac_try" in
35574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35575   *) ac_try_echo=$ac_try;;
35576 esac
35577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35578   (eval "$ac_compile") 2>conftest.er1
35579   ac_status=$?
35580   grep -v '^ *+' conftest.er1 >conftest.err
35581   rm -f conftest.er1
35582   cat conftest.err >&5
35583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35584   (exit $ac_status); } && {
35585          test -z "$ac_cxx_werror_flag" ||
35586          test ! -s conftest.err
35587        } && test -s conftest.$ac_objext; then
35588   wx_cv_func_vsscanf_decl=yes
35589 else
35590   echo "$as_me: failed program was:" >&5
35591 sed 's/^/| /' conftest.$ac_ext >&5
35592
35593         wx_cv_func_vsscanf_decl=no
35594
35595 fi
35596
35597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35598
35599
35600 fi
35601 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35602 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35603
35604     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35605         cat >>confdefs.h <<\_ACEOF
35606 #define HAVE_VSSCANF_DECL 1
35607 _ACEOF
35608
35609     fi
35610 fi
35611 ac_ext=c
35612 ac_cpp='$CPP $CPPFLAGS'
35613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35616
35617
35618 if test "$wxUSE_UNICODE" = yes; then
35619
35620             wchar_headers="#include <stdio.h>
35621 #include <wchar.h>"
35622     case "${host}" in
35623         *-*-solaris2* )
35624
35625 for ac_header in widec.h
35626 do
35627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35631   echo $ECHO_N "(cached) $ECHO_C" >&6
35632 else
35633   cat >conftest.$ac_ext <<_ACEOF
35634 /* confdefs.h.  */
35635 _ACEOF
35636 cat confdefs.h >>conftest.$ac_ext
35637 cat >>conftest.$ac_ext <<_ACEOF
35638 /* end confdefs.h.  */
35639 $ac_includes_default
35640
35641 #include <$ac_header>
35642 _ACEOF
35643 rm -f conftest.$ac_objext
35644 if { (ac_try="$ac_compile"
35645 case "(($ac_try" in
35646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35647   *) ac_try_echo=$ac_try;;
35648 esac
35649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35650   (eval "$ac_compile") 2>conftest.er1
35651   ac_status=$?
35652   grep -v '^ *+' conftest.er1 >conftest.err
35653   rm -f conftest.er1
35654   cat conftest.err >&5
35655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656   (exit $ac_status); } && {
35657          test -z "$ac_c_werror_flag" ||
35658          test ! -s conftest.err
35659        } && test -s conftest.$ac_objext; then
35660   eval "$as_ac_Header=yes"
35661 else
35662   echo "$as_me: failed program was:" >&5
35663 sed 's/^/| /' conftest.$ac_ext >&5
35664
35665         eval "$as_ac_Header=no"
35666 fi
35667
35668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35669 fi
35670 ac_res=`eval echo '${'$as_ac_Header'}'`
35671                { echo "$as_me:$LINENO: result: $ac_res" >&5
35672 echo "${ECHO_T}$ac_res" >&6; }
35673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35674   cat >>confdefs.h <<_ACEOF
35675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35676 _ACEOF
35677
35678 fi
35679
35680 done
35681
35682             if test "$ac_cv_header_widec_h" = "yes"; then
35683                 wchar_headers="$wchar_headers
35684 #include <widec.h>"
35685             fi
35686     esac
35687
35688
35689   for wx_func in putws fputws wprintf vswprintf vswscanf
35690   do
35691     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35692 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35693 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35694   echo $ECHO_N "(cached) $ECHO_C" >&6
35695 else
35696
35697         cat >conftest.$ac_ext <<_ACEOF
35698
35699             /* confdefs.h.  */
35700 _ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h.  */
35704
35705                 $wchar_headers
35706                 $ac_includes_default
35707
35708 int
35709 main ()
35710 {
35711
35712                 #ifndef $wx_func
35713                   &$wx_func;
35714                 #endif
35715
35716
35717   ;
35718   return 0;
35719 }
35720
35721 _ACEOF
35722 rm -f conftest.$ac_objext conftest$ac_exeext
35723 if { (ac_try="$ac_link"
35724 case "(($ac_try" in
35725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35726   *) ac_try_echo=$ac_try;;
35727 esac
35728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35729   (eval "$ac_link") 2>conftest.er1
35730   ac_status=$?
35731   grep -v '^ *+' conftest.er1 >conftest.err
35732   rm -f conftest.er1
35733   cat conftest.err >&5
35734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735   (exit $ac_status); } && {
35736          test -z "$ac_c_werror_flag" ||
35737          test ! -s conftest.err
35738        } && test -s conftest$ac_exeext &&
35739        $as_test_x conftest$ac_exeext; then
35740   eval wx_cv_func_$wx_func=yes
35741 else
35742   echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35744
35745         eval wx_cv_func_$wx_func=no
35746 fi
35747
35748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35749       conftest$ac_exeext conftest.$ac_ext
35750
35751 fi
35752 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35753                { echo "$as_me:$LINENO: result: $ac_res" >&5
35754 echo "${ECHO_T}$ac_res" >&6; }
35755
35756     if eval test \$wx_cv_func_$wx_func = yes
35757     then
35758       cat >>confdefs.h <<_ACEOF
35759 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35760 _ACEOF
35761
35762
35763     else
35764       :
35765
35766     fi
35767   done
35768
35769
35770                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35771 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35772     cat >conftest.$ac_ext <<_ACEOF
35773 /* confdefs.h.  */
35774 _ACEOF
35775 cat confdefs.h >>conftest.$ac_ext
35776 cat >>conftest.$ac_ext <<_ACEOF
35777 /* end confdefs.h.  */
35778 #include <wchar.h>
35779 int
35780 main ()
35781 {
35782 &_vsnwprintf;
35783   ;
35784   return 0;
35785 }
35786 _ACEOF
35787 rm -f conftest.$ac_objext
35788 if { (ac_try="$ac_compile"
35789 case "(($ac_try" in
35790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791   *) ac_try_echo=$ac_try;;
35792 esac
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794   (eval "$ac_compile") 2>conftest.er1
35795   ac_status=$?
35796   grep -v '^ *+' conftest.er1 >conftest.err
35797   rm -f conftest.er1
35798   cat conftest.err >&5
35799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800   (exit $ac_status); } && {
35801          test -z "$ac_c_werror_flag" ||
35802          test ! -s conftest.err
35803        } && test -s conftest.$ac_objext; then
35804   { echo "$as_me:$LINENO: result: yes" >&5
35805 echo "${ECHO_T}yes" >&6; }
35806                     cat >>confdefs.h <<\_ACEOF
35807 #define HAVE__VSNWPRINTF 1
35808 _ACEOF
35809
35810 else
35811   echo "$as_me: failed program was:" >&5
35812 sed 's/^/| /' conftest.$ac_ext >&5
35813
35814         { echo "$as_me:$LINENO: result: no" >&5
35815 echo "${ECHO_T}no" >&6; }
35816 fi
35817
35818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35819 fi
35820
35821 if test "$wxUSE_FILE" = "yes"; then
35822
35823   for wx_func in fsync
35824   do
35825     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35826 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35827 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35828   echo $ECHO_N "(cached) $ECHO_C" >&6
35829 else
35830
35831         cat >conftest.$ac_ext <<_ACEOF
35832
35833             /* confdefs.h.  */
35834 _ACEOF
35835 cat confdefs.h >>conftest.$ac_ext
35836 cat >>conftest.$ac_ext <<_ACEOF
35837 /* end confdefs.h.  */
35838
35839
35840                 $ac_includes_default
35841
35842 int
35843 main ()
35844 {
35845
35846                 #ifndef $wx_func
35847                   &$wx_func;
35848                 #endif
35849
35850
35851   ;
35852   return 0;
35853 }
35854
35855 _ACEOF
35856 rm -f conftest.$ac_objext conftest$ac_exeext
35857 if { (ac_try="$ac_link"
35858 case "(($ac_try" in
35859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35860   *) ac_try_echo=$ac_try;;
35861 esac
35862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35863   (eval "$ac_link") 2>conftest.er1
35864   ac_status=$?
35865   grep -v '^ *+' conftest.er1 >conftest.err
35866   rm -f conftest.er1
35867   cat conftest.err >&5
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); } && {
35870          test -z "$ac_c_werror_flag" ||
35871          test ! -s conftest.err
35872        } && test -s conftest$ac_exeext &&
35873        $as_test_x conftest$ac_exeext; then
35874   eval wx_cv_func_$wx_func=yes
35875 else
35876   echo "$as_me: failed program was:" >&5
35877 sed 's/^/| /' conftest.$ac_ext >&5
35878
35879         eval wx_cv_func_$wx_func=no
35880 fi
35881
35882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35883       conftest$ac_exeext conftest.$ac_ext
35884
35885 fi
35886 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35887                { echo "$as_me:$LINENO: result: $ac_res" >&5
35888 echo "${ECHO_T}$ac_res" >&6; }
35889
35890     if eval test \$wx_cv_func_$wx_func = yes
35891     then
35892       cat >>confdefs.h <<_ACEOF
35893 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35894 _ACEOF
35895
35896
35897     else
35898       :
35899
35900     fi
35901   done
35902
35903 fi
35904
35905 ac_ext=cpp
35906 ac_cpp='$CXXCPP $CPPFLAGS'
35907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35910
35911
35912   for wx_func in round
35913   do
35914     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35915 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35916 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35917   echo $ECHO_N "(cached) $ECHO_C" >&6
35918 else
35919
35920         cat >conftest.$ac_ext <<_ACEOF
35921
35922             /* confdefs.h.  */
35923 _ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h.  */
35927
35928                 #include <math.h>
35929                 $ac_includes_default
35930
35931 int
35932 main ()
35933 {
35934
35935                 #ifndef $wx_func
35936                   &$wx_func;
35937                 #endif
35938
35939
35940   ;
35941   return 0;
35942 }
35943
35944 _ACEOF
35945 rm -f conftest.$ac_objext conftest$ac_exeext
35946 if { (ac_try="$ac_link"
35947 case "(($ac_try" in
35948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35949   *) ac_try_echo=$ac_try;;
35950 esac
35951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35952   (eval "$ac_link") 2>conftest.er1
35953   ac_status=$?
35954   grep -v '^ *+' conftest.er1 >conftest.err
35955   rm -f conftest.er1
35956   cat conftest.err >&5
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); } && {
35959          test -z "$ac_cxx_werror_flag" ||
35960          test ! -s conftest.err
35961        } && test -s conftest$ac_exeext &&
35962        $as_test_x conftest$ac_exeext; then
35963   eval wx_cv_func_$wx_func=yes
35964 else
35965   echo "$as_me: failed program was:" >&5
35966 sed 's/^/| /' conftest.$ac_ext >&5
35967
35968         eval wx_cv_func_$wx_func=no
35969 fi
35970
35971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35972       conftest$ac_exeext conftest.$ac_ext
35973
35974 fi
35975 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35976                { echo "$as_me:$LINENO: result: $ac_res" >&5
35977 echo "${ECHO_T}$ac_res" >&6; }
35978
35979     if eval test \$wx_cv_func_$wx_func = yes
35980     then
35981       cat >>confdefs.h <<_ACEOF
35982 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35983 _ACEOF
35984
35985
35986     else
35987       :
35988
35989     fi
35990   done
35991
35992 ac_ext=c
35993 ac_cpp='$CPP $CPPFLAGS'
35994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35997
35998
35999 if test "$TOOLKIT" != "MSW"; then
36000
36001 if test "$wxUSE_LIBICONV" != "no" ; then
36002
36003
36004
36005 # Check whether --with-libiconv-prefix was given.
36006 if test "${with_libiconv_prefix+set}" = set; then
36007   withval=$with_libiconv_prefix;
36008     for dir in `echo "$withval" | tr : ' '`; do
36009       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36010       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36011     done
36012
36013 fi
36014
36015
36016   { echo "$as_me:$LINENO: checking for iconv" >&5
36017 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36018 if test "${am_cv_func_iconv+set}" = set; then
36019   echo $ECHO_N "(cached) $ECHO_C" >&6
36020 else
36021
36022     am_cv_func_iconv="no, consider installing GNU libiconv"
36023     am_cv_lib_iconv=no
36024     cat >conftest.$ac_ext <<_ACEOF
36025 /* confdefs.h.  */
36026 _ACEOF
36027 cat confdefs.h >>conftest.$ac_ext
36028 cat >>conftest.$ac_ext <<_ACEOF
36029 /* end confdefs.h.  */
36030 #include <stdlib.h>
36031 #include <iconv.h>
36032 int
36033 main ()
36034 {
36035 iconv_t cd = iconv_open("","");
36036        iconv(cd,NULL,NULL,NULL,NULL);
36037        iconv_close(cd);
36038   ;
36039   return 0;
36040 }
36041 _ACEOF
36042 rm -f conftest.$ac_objext conftest$ac_exeext
36043 if { (ac_try="$ac_link"
36044 case "(($ac_try" in
36045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36046   *) ac_try_echo=$ac_try;;
36047 esac
36048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36049   (eval "$ac_link") 2>conftest.er1
36050   ac_status=$?
36051   grep -v '^ *+' conftest.er1 >conftest.err
36052   rm -f conftest.er1
36053   cat conftest.err >&5
36054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055   (exit $ac_status); } && {
36056          test -z "$ac_c_werror_flag" ||
36057          test ! -s conftest.err
36058        } && test -s conftest$ac_exeext &&
36059        $as_test_x conftest$ac_exeext; then
36060   am_cv_func_iconv=yes
36061 else
36062   echo "$as_me: failed program was:" >&5
36063 sed 's/^/| /' conftest.$ac_ext >&5
36064
36065
36066 fi
36067
36068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36069       conftest$ac_exeext conftest.$ac_ext
36070     if test "$am_cv_func_iconv" != yes; then
36071       am_save_LIBS="$LIBS"
36072       LIBS="$LIBS -liconv"
36073       cat >conftest.$ac_ext <<_ACEOF
36074 /* confdefs.h.  */
36075 _ACEOF
36076 cat confdefs.h >>conftest.$ac_ext
36077 cat >>conftest.$ac_ext <<_ACEOF
36078 /* end confdefs.h.  */
36079 #include <stdlib.h>
36080 #include <iconv.h>
36081 int
36082 main ()
36083 {
36084 iconv_t cd = iconv_open("","");
36085          iconv(cd,NULL,NULL,NULL,NULL);
36086          iconv_close(cd);
36087   ;
36088   return 0;
36089 }
36090 _ACEOF
36091 rm -f conftest.$ac_objext conftest$ac_exeext
36092 if { (ac_try="$ac_link"
36093 case "(($ac_try" in
36094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36095   *) ac_try_echo=$ac_try;;
36096 esac
36097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36098   (eval "$ac_link") 2>conftest.er1
36099   ac_status=$?
36100   grep -v '^ *+' conftest.er1 >conftest.err
36101   rm -f conftest.er1
36102   cat conftest.err >&5
36103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104   (exit $ac_status); } && {
36105          test -z "$ac_c_werror_flag" ||
36106          test ! -s conftest.err
36107        } && test -s conftest$ac_exeext &&
36108        $as_test_x conftest$ac_exeext; then
36109   am_cv_lib_iconv=yes
36110         am_cv_func_iconv=yes
36111 else
36112   echo "$as_me: failed program was:" >&5
36113 sed 's/^/| /' conftest.$ac_ext >&5
36114
36115
36116 fi
36117
36118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36119       conftest$ac_exeext conftest.$ac_ext
36120       LIBS="$am_save_LIBS"
36121     fi
36122
36123 fi
36124 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36125 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36126   if test "$am_cv_func_iconv" = yes; then
36127
36128 cat >>confdefs.h <<\_ACEOF
36129 #define HAVE_ICONV 1
36130 _ACEOF
36131
36132     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36133 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36134 if test "${wx_cv_func_iconv_const+set}" = set; then
36135   echo $ECHO_N "(cached) $ECHO_C" >&6
36136 else
36137   cat >conftest.$ac_ext <<_ACEOF
36138 /* confdefs.h.  */
36139 _ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h.  */
36143
36144 #include <stdlib.h>
36145 #include <iconv.h>
36146 extern
36147 #ifdef __cplusplus
36148 "C"
36149 #endif
36150 #if defined(__STDC__) || defined(__cplusplus)
36151 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36152 #else
36153 size_t iconv();
36154 #endif
36155
36156 int
36157 main ()
36158 {
36159
36160   ;
36161   return 0;
36162 }
36163 _ACEOF
36164 rm -f conftest.$ac_objext
36165 if { (ac_try="$ac_compile"
36166 case "(($ac_try" in
36167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36168   *) ac_try_echo=$ac_try;;
36169 esac
36170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36171   (eval "$ac_compile") 2>conftest.er1
36172   ac_status=$?
36173   grep -v '^ *+' conftest.er1 >conftest.err
36174   rm -f conftest.er1
36175   cat conftest.err >&5
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); } && {
36178          test -z "$ac_c_werror_flag" ||
36179          test ! -s conftest.err
36180        } && test -s conftest.$ac_objext; then
36181   wx_cv_func_iconv_const="no"
36182 else
36183   echo "$as_me: failed program was:" >&5
36184 sed 's/^/| /' conftest.$ac_ext >&5
36185
36186         wx_cv_func_iconv_const="yes"
36187
36188 fi
36189
36190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36191
36192 fi
36193 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36194 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36195
36196     iconv_const=
36197     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36198         iconv_const="const"
36199     fi
36200
36201
36202 cat >>confdefs.h <<_ACEOF
36203 #define ICONV_CONST $iconv_const
36204 _ACEOF
36205
36206   fi
36207   LIBICONV=
36208   if test "$am_cv_lib_iconv" = yes; then
36209     LIBICONV="-liconv"
36210   fi
36211
36212
36213     LIBS="$LIBICONV $LIBS"
36214 fi
36215
36216 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36217
36218 for ac_func in sigaction
36219 do
36220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36224   echo $ECHO_N "(cached) $ECHO_C" >&6
36225 else
36226   cat >conftest.$ac_ext <<_ACEOF
36227 /* confdefs.h.  */
36228 _ACEOF
36229 cat confdefs.h >>conftest.$ac_ext
36230 cat >>conftest.$ac_ext <<_ACEOF
36231 /* end confdefs.h.  */
36232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36234 #define $ac_func innocuous_$ac_func
36235
36236 /* System header to define __stub macros and hopefully few prototypes,
36237     which can conflict with char $ac_func (); below.
36238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36239     <limits.h> exists even on freestanding compilers.  */
36240
36241 #ifdef __STDC__
36242 # include <limits.h>
36243 #else
36244 # include <assert.h>
36245 #endif
36246
36247 #undef $ac_func
36248
36249 /* Override any GCC internal prototype to avoid an error.
36250    Use char because int might match the return type of a GCC
36251    builtin and then its argument prototype would still apply.  */
36252 #ifdef __cplusplus
36253 extern "C"
36254 #endif
36255 char $ac_func ();
36256 /* The GNU C library defines this for functions which it implements
36257     to always fail with ENOSYS.  Some functions are actually named
36258     something starting with __ and the normal name is an alias.  */
36259 #if defined __stub_$ac_func || defined __stub___$ac_func
36260 choke me
36261 #endif
36262
36263 int
36264 main ()
36265 {
36266 return $ac_func ();
36267   ;
36268   return 0;
36269 }
36270 _ACEOF
36271 rm -f conftest.$ac_objext conftest$ac_exeext
36272 if { (ac_try="$ac_link"
36273 case "(($ac_try" in
36274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36275   *) ac_try_echo=$ac_try;;
36276 esac
36277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36278   (eval "$ac_link") 2>conftest.er1
36279   ac_status=$?
36280   grep -v '^ *+' conftest.er1 >conftest.err
36281   rm -f conftest.er1
36282   cat conftest.err >&5
36283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284   (exit $ac_status); } && {
36285          test -z "$ac_c_werror_flag" ||
36286          test ! -s conftest.err
36287        } && test -s conftest$ac_exeext &&
36288        $as_test_x conftest$ac_exeext; then
36289   eval "$as_ac_var=yes"
36290 else
36291   echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36293
36294         eval "$as_ac_var=no"
36295 fi
36296
36297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36298       conftest$ac_exeext conftest.$ac_ext
36299 fi
36300 ac_res=`eval echo '${'$as_ac_var'}'`
36301                { echo "$as_me:$LINENO: result: $ac_res" >&5
36302 echo "${ECHO_T}$ac_res" >&6; }
36303 if test `eval echo '${'$as_ac_var'}'` = yes; then
36304   cat >>confdefs.h <<_ACEOF
36305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36306 _ACEOF
36307
36308 fi
36309 done
36310
36311
36312     if test "$ac_cv_func_sigaction" = "no"; then
36313         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36314 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36315         wxUSE_ON_FATAL_EXCEPTION=no
36316     fi
36317
36318     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36319       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36320 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36321 if test "${wx_cv_type_sa_handler+set}" = set; then
36322   echo $ECHO_N "(cached) $ECHO_C" >&6
36323 else
36324
36325                 ac_ext=cpp
36326 ac_cpp='$CXXCPP $CPPFLAGS'
36327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36330
36331         cat >conftest.$ac_ext <<_ACEOF
36332 /* confdefs.h.  */
36333 _ACEOF
36334 cat confdefs.h >>conftest.$ac_ext
36335 cat >>conftest.$ac_ext <<_ACEOF
36336 /* end confdefs.h.  */
36337 #include <signal.h>
36338 int
36339 main ()
36340 {
36341
36342                         extern void testSigHandler(int);
36343
36344                         struct sigaction sa;
36345                         sa.sa_handler = testSigHandler;
36346
36347   ;
36348   return 0;
36349 }
36350 _ACEOF
36351 rm -f conftest.$ac_objext
36352 if { (ac_try="$ac_compile"
36353 case "(($ac_try" in
36354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36355   *) ac_try_echo=$ac_try;;
36356 esac
36357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36358   (eval "$ac_compile") 2>conftest.er1
36359   ac_status=$?
36360   grep -v '^ *+' conftest.er1 >conftest.err
36361   rm -f conftest.er1
36362   cat conftest.err >&5
36363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36364   (exit $ac_status); } && {
36365          test -z "$ac_cxx_werror_flag" ||
36366          test ! -s conftest.err
36367        } && test -s conftest.$ac_objext; then
36368
36369                         wx_cv_type_sa_handler=int
36370
36371 else
36372   echo "$as_me: failed program was:" >&5
36373 sed 's/^/| /' conftest.$ac_ext >&5
36374
36375
36376                         wx_cv_type_sa_handler=void
36377
36378 fi
36379
36380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36381         ac_ext=c
36382 ac_cpp='$CPP $CPPFLAGS'
36383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36386
36387
36388 fi
36389 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36390 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36391
36392       cat >>confdefs.h <<_ACEOF
36393 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36394 _ACEOF
36395
36396     fi
36397 fi
36398
36399 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36400     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36401 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36402 if test "${wx_cv_func_backtrace+set}" = set; then
36403   echo $ECHO_N "(cached) $ECHO_C" >&6
36404 else
36405
36406             ac_ext=cpp
36407 ac_cpp='$CXXCPP $CPPFLAGS'
36408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36411
36412             cat >conftest.$ac_ext <<_ACEOF
36413 /* confdefs.h.  */
36414 _ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h.  */
36418 #include <execinfo.h>
36419 int
36420 main ()
36421 {
36422
36423                     void *trace[1];
36424                     char **messages;
36425
36426                     backtrace(trace, 1);
36427                     messages = backtrace_symbols(trace, 1);
36428
36429   ;
36430   return 0;
36431 }
36432 _ACEOF
36433 rm -f conftest.$ac_objext
36434 if { (ac_try="$ac_compile"
36435 case "(($ac_try" in
36436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36437   *) ac_try_echo=$ac_try;;
36438 esac
36439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36440   (eval "$ac_compile") 2>conftest.er1
36441   ac_status=$?
36442   grep -v '^ *+' conftest.er1 >conftest.err
36443   rm -f conftest.er1
36444   cat conftest.err >&5
36445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446   (exit $ac_status); } && {
36447          test -z "$ac_cxx_werror_flag" ||
36448          test ! -s conftest.err
36449        } && test -s conftest.$ac_objext; then
36450   wx_cv_func_backtrace=yes
36451 else
36452   echo "$as_me: failed program was:" >&5
36453 sed 's/^/| /' conftest.$ac_ext >&5
36454
36455         wx_cv_func_backtrace=no
36456
36457 fi
36458
36459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36460             ac_ext=c
36461 ac_cpp='$CPP $CPPFLAGS'
36462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36465
36466
36467
36468 fi
36469 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36470 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36471
36472
36473     if test "$wx_cv_func_backtrace" = "no"; then
36474         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36475 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36476         wxUSE_STACKWALKER=no
36477     else
36478         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36479 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36480 if test "${wx_cv_func_cxa_demangle+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 <cxxabi.h>
36497 int
36498 main ()
36499 {
36500
36501                         int rc;
36502                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36503
36504   ;
36505   return 0;
36506 }
36507 _ACEOF
36508 rm -f conftest.$ac_objext conftest$ac_exeext
36509 if { (ac_try="$ac_link"
36510 case "(($ac_try" in
36511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36512   *) ac_try_echo=$ac_try;;
36513 esac
36514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36515   (eval "$ac_link") 2>conftest.er1
36516   ac_status=$?
36517   grep -v '^ *+' conftest.er1 >conftest.err
36518   rm -f conftest.er1
36519   cat conftest.err >&5
36520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521   (exit $ac_status); } && {
36522          test -z "$ac_cxx_werror_flag" ||
36523          test ! -s conftest.err
36524        } && test -s conftest$ac_exeext &&
36525        $as_test_x conftest$ac_exeext; then
36526   wx_cv_func_cxa_demangle=yes
36527 else
36528   echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36530
36531         wx_cv_func_cxa_demangle=no
36532
36533 fi
36534
36535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36536       conftest$ac_exeext conftest.$ac_ext
36537                 ac_ext=c
36538 ac_cpp='$CPP $CPPFLAGS'
36539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36542
36543
36544
36545 fi
36546 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36547 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36548
36549         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36550             cat >>confdefs.h <<\_ACEOF
36551 #define HAVE_CXA_DEMANGLE 1
36552 _ACEOF
36553
36554         fi
36555     fi
36556 fi
36557
36558 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36559     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36560 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36561     wxUSE_STACKWALKER=no
36562 fi
36563
36564
36565
36566
36567 for ac_func in mkstemp mktemp
36568 do
36569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36573   echo $ECHO_N "(cached) $ECHO_C" >&6
36574 else
36575   cat >conftest.$ac_ext <<_ACEOF
36576 /* confdefs.h.  */
36577 _ACEOF
36578 cat confdefs.h >>conftest.$ac_ext
36579 cat >>conftest.$ac_ext <<_ACEOF
36580 /* end confdefs.h.  */
36581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36583 #define $ac_func innocuous_$ac_func
36584
36585 /* System header to define __stub macros and hopefully few prototypes,
36586     which can conflict with char $ac_func (); below.
36587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36588     <limits.h> exists even on freestanding compilers.  */
36589
36590 #ifdef __STDC__
36591 # include <limits.h>
36592 #else
36593 # include <assert.h>
36594 #endif
36595
36596 #undef $ac_func
36597
36598 /* Override any GCC internal prototype to avoid an error.
36599    Use char because int might match the return type of a GCC
36600    builtin and then its argument prototype would still apply.  */
36601 #ifdef __cplusplus
36602 extern "C"
36603 #endif
36604 char $ac_func ();
36605 /* The GNU C library defines this for functions which it implements
36606     to always fail with ENOSYS.  Some functions are actually named
36607     something starting with __ and the normal name is an alias.  */
36608 #if defined __stub_$ac_func || defined __stub___$ac_func
36609 choke me
36610 #endif
36611
36612 int
36613 main ()
36614 {
36615 return $ac_func ();
36616   ;
36617   return 0;
36618 }
36619 _ACEOF
36620 rm -f conftest.$ac_objext conftest$ac_exeext
36621 if { (ac_try="$ac_link"
36622 case "(($ac_try" in
36623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36624   *) ac_try_echo=$ac_try;;
36625 esac
36626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36627   (eval "$ac_link") 2>conftest.er1
36628   ac_status=$?
36629   grep -v '^ *+' conftest.er1 >conftest.err
36630   rm -f conftest.er1
36631   cat conftest.err >&5
36632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633   (exit $ac_status); } && {
36634          test -z "$ac_c_werror_flag" ||
36635          test ! -s conftest.err
36636        } && test -s conftest$ac_exeext &&
36637        $as_test_x conftest$ac_exeext; then
36638   eval "$as_ac_var=yes"
36639 else
36640   echo "$as_me: failed program was:" >&5
36641 sed 's/^/| /' conftest.$ac_ext >&5
36642
36643         eval "$as_ac_var=no"
36644 fi
36645
36646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36647       conftest$ac_exeext conftest.$ac_ext
36648 fi
36649 ac_res=`eval echo '${'$as_ac_var'}'`
36650                { echo "$as_me:$LINENO: result: $ac_res" >&5
36651 echo "${ECHO_T}$ac_res" >&6; }
36652 if test `eval echo '${'$as_ac_var'}'` = yes; then
36653   cat >>confdefs.h <<_ACEOF
36654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36655 _ACEOF
36656  break
36657 fi
36658 done
36659
36660
36661 { echo "$as_me:$LINENO: checking for statfs" >&5
36662 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36663 if test "${wx_cv_func_statfs+set}" = set; then
36664   echo $ECHO_N "(cached) $ECHO_C" >&6
36665 else
36666   cat >conftest.$ac_ext <<_ACEOF
36667 /* confdefs.h.  */
36668 _ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h.  */
36672
36673              #if defined(__BSD__)
36674              #include <sys/param.h>
36675              #include <sys/mount.h>
36676              #else
36677              #include <sys/vfs.h>
36678              #endif
36679
36680 int
36681 main ()
36682 {
36683
36684              long l;
36685              struct statfs fs;
36686              statfs("/", &fs);
36687              l = fs.f_bsize;
36688              l += fs.f_blocks;
36689              l += fs.f_bavail;
36690
36691   ;
36692   return 0;
36693 }
36694 _ACEOF
36695 rm -f conftest.$ac_objext
36696 if { (ac_try="$ac_compile"
36697 case "(($ac_try" in
36698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36699   *) ac_try_echo=$ac_try;;
36700 esac
36701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36702   (eval "$ac_compile") 2>conftest.er1
36703   ac_status=$?
36704   grep -v '^ *+' conftest.er1 >conftest.err
36705   rm -f conftest.er1
36706   cat conftest.err >&5
36707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708   (exit $ac_status); } && {
36709          test -z "$ac_c_werror_flag" ||
36710          test ! -s conftest.err
36711        } && test -s conftest.$ac_objext; then
36712   wx_cv_func_statfs=yes
36713 else
36714   echo "$as_me: failed program was:" >&5
36715 sed 's/^/| /' conftest.$ac_ext >&5
36716
36717         wx_cv_func_statfs=no
36718
36719 fi
36720
36721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36722
36723 fi
36724 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36725 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36726
36727 if test "$wx_cv_func_statfs" = "yes"; then
36728         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36729 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36730 if test "${wx_cv_func_statfs_decl+set}" = set; then
36731   echo $ECHO_N "(cached) $ECHO_C" >&6
36732 else
36733   ac_ext=cpp
36734 ac_cpp='$CXXCPP $CPPFLAGS'
36735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36738
36739         cat >conftest.$ac_ext <<_ACEOF
36740 /* confdefs.h.  */
36741 _ACEOF
36742 cat confdefs.h >>conftest.$ac_ext
36743 cat >>conftest.$ac_ext <<_ACEOF
36744 /* end confdefs.h.  */
36745
36746                  #if defined(__BSD__)
36747                  #include <sys/param.h>
36748                  #include <sys/mount.h>
36749                  #else
36750                  #include <sys/vfs.h>
36751                  #endif
36752
36753 int
36754 main ()
36755 {
36756
36757                 struct statfs fs;
36758                 statfs("", &fs);
36759
36760   ;
36761   return 0;
36762 }
36763 _ACEOF
36764 rm -f conftest.$ac_objext
36765 if { (ac_try="$ac_compile"
36766 case "(($ac_try" in
36767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36768   *) ac_try_echo=$ac_try;;
36769 esac
36770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36771   (eval "$ac_compile") 2>conftest.er1
36772   ac_status=$?
36773   grep -v '^ *+' conftest.er1 >conftest.err
36774   rm -f conftest.er1
36775   cat conftest.err >&5
36776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777   (exit $ac_status); } && {
36778          test -z "$ac_cxx_werror_flag" ||
36779          test ! -s conftest.err
36780        } && test -s conftest.$ac_objext; then
36781   wx_cv_func_statfs_decl=yes
36782 else
36783   echo "$as_me: failed program was:" >&5
36784 sed 's/^/| /' conftest.$ac_ext >&5
36785
36786         wx_cv_func_statfs_decl=no
36787
36788 fi
36789
36790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36791         ac_ext=c
36792 ac_cpp='$CPP $CPPFLAGS'
36793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36796
36797
36798 fi
36799 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36800 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36801
36802     if test "$wx_cv_func_statfs_decl" = "yes"; then
36803         cat >>confdefs.h <<\_ACEOF
36804 #define HAVE_STATFS_DECL 1
36805 _ACEOF
36806
36807     fi
36808
36809     wx_cv_type_statvfs_t="struct statfs"
36810     cat >>confdefs.h <<\_ACEOF
36811 #define HAVE_STATFS 1
36812 _ACEOF
36813
36814 else
36815     { echo "$as_me:$LINENO: checking for statvfs" >&5
36816 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36817 if test "${wx_cv_func_statvfs+set}" = set; then
36818   echo $ECHO_N "(cached) $ECHO_C" >&6
36819 else
36820   cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h.  */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h.  */
36826
36827                 #include <stddef.h>
36828                 #include <sys/statvfs.h>
36829
36830 int
36831 main ()
36832 {
36833
36834                 statvfs("/", NULL);
36835
36836   ;
36837   return 0;
36838 }
36839 _ACEOF
36840 rm -f conftest.$ac_objext
36841 if { (ac_try="$ac_compile"
36842 case "(($ac_try" in
36843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36844   *) ac_try_echo=$ac_try;;
36845 esac
36846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36847   (eval "$ac_compile") 2>conftest.er1
36848   ac_status=$?
36849   grep -v '^ *+' conftest.er1 >conftest.err
36850   rm -f conftest.er1
36851   cat conftest.err >&5
36852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853   (exit $ac_status); } && {
36854          test -z "$ac_c_werror_flag" ||
36855          test ! -s conftest.err
36856        } && test -s conftest.$ac_objext; then
36857   wx_cv_func_statvfs=yes
36858 else
36859   echo "$as_me: failed program was:" >&5
36860 sed 's/^/| /' conftest.$ac_ext >&5
36861
36862         wx_cv_func_statvfs=no
36863
36864 fi
36865
36866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36867
36868 fi
36869 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36870 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36871
36872     if test "$wx_cv_func_statvfs" = "yes"; then
36873                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36874 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36875 if test "${wx_cv_type_statvfs_t+set}" = set; then
36876   echo $ECHO_N "(cached) $ECHO_C" >&6
36877 else
36878   ac_ext=cpp
36879 ac_cpp='$CXXCPP $CPPFLAGS'
36880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36883
36884             cat >conftest.$ac_ext <<_ACEOF
36885 /* confdefs.h.  */
36886 _ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h.  */
36890
36891                     #include <sys/statvfs.h>
36892
36893 int
36894 main ()
36895 {
36896
36897                     long l;
36898                     statvfs_t fs;
36899                     statvfs("/", &fs);
36900                     l = fs.f_bsize;
36901                     l += fs.f_blocks;
36902                     l += fs.f_bavail;
36903
36904   ;
36905   return 0;
36906 }
36907 _ACEOF
36908 rm -f conftest.$ac_objext
36909 if { (ac_try="$ac_compile"
36910 case "(($ac_try" in
36911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36912   *) ac_try_echo=$ac_try;;
36913 esac
36914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36915   (eval "$ac_compile") 2>conftest.er1
36916   ac_status=$?
36917   grep -v '^ *+' conftest.er1 >conftest.err
36918   rm -f conftest.er1
36919   cat conftest.err >&5
36920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921   (exit $ac_status); } && {
36922          test -z "$ac_cxx_werror_flag" ||
36923          test ! -s conftest.err
36924        } && test -s conftest.$ac_objext; then
36925   wx_cv_type_statvfs_t=statvfs_t
36926 else
36927   echo "$as_me: failed program was:" >&5
36928 sed 's/^/| /' conftest.$ac_ext >&5
36929
36930
36931                     cat >conftest.$ac_ext <<_ACEOF
36932 /* confdefs.h.  */
36933 _ACEOF
36934 cat confdefs.h >>conftest.$ac_ext
36935 cat >>conftest.$ac_ext <<_ACEOF
36936 /* end confdefs.h.  */
36937
36938                             #include <sys/statvfs.h>
36939
36940 int
36941 main ()
36942 {
36943
36944                             long l;
36945                             struct statvfs fs;
36946                             statvfs("/", &fs);
36947                             l = fs.f_bsize;
36948                             l += fs.f_blocks;
36949                             l += fs.f_bavail;
36950
36951   ;
36952   return 0;
36953 }
36954 _ACEOF
36955 rm -f conftest.$ac_objext
36956 if { (ac_try="$ac_compile"
36957 case "(($ac_try" in
36958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36959   *) ac_try_echo=$ac_try;;
36960 esac
36961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36962   (eval "$ac_compile") 2>conftest.er1
36963   ac_status=$?
36964   grep -v '^ *+' conftest.er1 >conftest.err
36965   rm -f conftest.er1
36966   cat conftest.err >&5
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); } && {
36969          test -z "$ac_cxx_werror_flag" ||
36970          test ! -s conftest.err
36971        } && test -s conftest.$ac_objext; then
36972   wx_cv_type_statvfs_t="struct statvfs"
36973 else
36974   echo "$as_me: failed program was:" >&5
36975 sed 's/^/| /' conftest.$ac_ext >&5
36976
36977         wx_cv_type_statvfs_t="unknown"
36978
36979 fi
36980
36981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36982
36983
36984 fi
36985
36986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36987             ac_ext=c
36988 ac_cpp='$CPP $CPPFLAGS'
36989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36992
36993
36994 fi
36995 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36996 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
36997
36998         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36999             cat >>confdefs.h <<\_ACEOF
37000 #define HAVE_STATVFS 1
37001 _ACEOF
37002
37003         fi
37004     else
37005                 wx_cv_type_statvfs_t="unknown"
37006     fi
37007 fi
37008
37009 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37010     cat >>confdefs.h <<_ACEOF
37011 #define WX_STATFS_T $wx_cv_type_statvfs_t
37012 _ACEOF
37013
37014 else
37015     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37016 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37017 fi
37018
37019 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37020
37021
37022 for ac_func in fcntl flock
37023 do
37024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37038 #define $ac_func innocuous_$ac_func
37039
37040 /* System header to define __stub macros and hopefully few prototypes,
37041     which can conflict with char $ac_func (); below.
37042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37043     <limits.h> exists even on freestanding compilers.  */
37044
37045 #ifdef __STDC__
37046 # include <limits.h>
37047 #else
37048 # include <assert.h>
37049 #endif
37050
37051 #undef $ac_func
37052
37053 /* Override any GCC internal prototype to avoid an error.
37054    Use char because int might match the return type of a GCC
37055    builtin and then its argument prototype would still apply.  */
37056 #ifdef __cplusplus
37057 extern "C"
37058 #endif
37059 char $ac_func ();
37060 /* The GNU C library defines this for functions which it implements
37061     to always fail with ENOSYS.  Some functions are actually named
37062     something starting with __ and the normal name is an alias.  */
37063 #if defined __stub_$ac_func || defined __stub___$ac_func
37064 choke me
37065 #endif
37066
37067 int
37068 main ()
37069 {
37070 return $ac_func ();
37071   ;
37072   return 0;
37073 }
37074 _ACEOF
37075 rm -f conftest.$ac_objext conftest$ac_exeext
37076 if { (ac_try="$ac_link"
37077 case "(($ac_try" in
37078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37079   *) ac_try_echo=$ac_try;;
37080 esac
37081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37082   (eval "$ac_link") 2>conftest.er1
37083   ac_status=$?
37084   grep -v '^ *+' conftest.er1 >conftest.err
37085   rm -f conftest.er1
37086   cat conftest.err >&5
37087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088   (exit $ac_status); } && {
37089          test -z "$ac_c_werror_flag" ||
37090          test ! -s conftest.err
37091        } && test -s conftest$ac_exeext &&
37092        $as_test_x conftest$ac_exeext; then
37093   eval "$as_ac_var=yes"
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098         eval "$as_ac_var=no"
37099 fi
37100
37101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37102       conftest$ac_exeext conftest.$ac_ext
37103 fi
37104 ac_res=`eval echo '${'$as_ac_var'}'`
37105                { echo "$as_me:$LINENO: result: $ac_res" >&5
37106 echo "${ECHO_T}$ac_res" >&6; }
37107 if test `eval echo '${'$as_ac_var'}'` = yes; then
37108   cat >>confdefs.h <<_ACEOF
37109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37110 _ACEOF
37111  break
37112 fi
37113 done
37114
37115
37116     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37117         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37118 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37119         wxUSE_SNGLINST_CHECKER=no
37120     fi
37121 fi
37122
37123
37124
37125 for ac_func in setenv putenv
37126 do
37127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37131   echo $ECHO_N "(cached) $ECHO_C" >&6
37132 else
37133   cat >conftest.$ac_ext <<_ACEOF
37134 /* confdefs.h.  */
37135 _ACEOF
37136 cat confdefs.h >>conftest.$ac_ext
37137 cat >>conftest.$ac_ext <<_ACEOF
37138 /* end confdefs.h.  */
37139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37141 #define $ac_func innocuous_$ac_func
37142
37143 /* System header to define __stub macros and hopefully few prototypes,
37144     which can conflict with char $ac_func (); below.
37145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37146     <limits.h> exists even on freestanding compilers.  */
37147
37148 #ifdef __STDC__
37149 # include <limits.h>
37150 #else
37151 # include <assert.h>
37152 #endif
37153
37154 #undef $ac_func
37155
37156 /* Override any GCC internal prototype to avoid an error.
37157    Use char because int might match the return type of a GCC
37158    builtin and then its argument prototype would still apply.  */
37159 #ifdef __cplusplus
37160 extern "C"
37161 #endif
37162 char $ac_func ();
37163 /* The GNU C library defines this for functions which it implements
37164     to always fail with ENOSYS.  Some functions are actually named
37165     something starting with __ and the normal name is an alias.  */
37166 #if defined __stub_$ac_func || defined __stub___$ac_func
37167 choke me
37168 #endif
37169
37170 int
37171 main ()
37172 {
37173 return $ac_func ();
37174   ;
37175   return 0;
37176 }
37177 _ACEOF
37178 rm -f conftest.$ac_objext conftest$ac_exeext
37179 if { (ac_try="$ac_link"
37180 case "(($ac_try" in
37181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37182   *) ac_try_echo=$ac_try;;
37183 esac
37184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37185   (eval "$ac_link") 2>conftest.er1
37186   ac_status=$?
37187   grep -v '^ *+' conftest.er1 >conftest.err
37188   rm -f conftest.er1
37189   cat conftest.err >&5
37190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191   (exit $ac_status); } && {
37192          test -z "$ac_c_werror_flag" ||
37193          test ! -s conftest.err
37194        } && test -s conftest$ac_exeext &&
37195        $as_test_x conftest$ac_exeext; then
37196   eval "$as_ac_var=yes"
37197 else
37198   echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37200
37201         eval "$as_ac_var=no"
37202 fi
37203
37204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37205       conftest$ac_exeext conftest.$ac_ext
37206 fi
37207 ac_res=`eval echo '${'$as_ac_var'}'`
37208                { echo "$as_me:$LINENO: result: $ac_res" >&5
37209 echo "${ECHO_T}$ac_res" >&6; }
37210 if test `eval echo '${'$as_ac_var'}'` = yes; then
37211   cat >>confdefs.h <<_ACEOF
37212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37213 _ACEOF
37214  break
37215 fi
37216 done
37217
37218 if test "$ac_cv_func_setenv" = "yes"; then
37219
37220 for ac_func in unsetenv
37221 do
37222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37226   echo $ECHO_N "(cached) $ECHO_C" >&6
37227 else
37228   cat >conftest.$ac_ext <<_ACEOF
37229 /* confdefs.h.  */
37230 _ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h.  */
37234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37236 #define $ac_func innocuous_$ac_func
37237
37238 /* System header to define __stub macros and hopefully few prototypes,
37239     which can conflict with char $ac_func (); below.
37240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37241     <limits.h> exists even on freestanding compilers.  */
37242
37243 #ifdef __STDC__
37244 # include <limits.h>
37245 #else
37246 # include <assert.h>
37247 #endif
37248
37249 #undef $ac_func
37250
37251 /* Override any GCC internal prototype to avoid an error.
37252    Use char because int might match the return type of a GCC
37253    builtin and then its argument prototype would still apply.  */
37254 #ifdef __cplusplus
37255 extern "C"
37256 #endif
37257 char $ac_func ();
37258 /* The GNU C library defines this for functions which it implements
37259     to always fail with ENOSYS.  Some functions are actually named
37260     something starting with __ and the normal name is an alias.  */
37261 #if defined __stub_$ac_func || defined __stub___$ac_func
37262 choke me
37263 #endif
37264
37265 int
37266 main ()
37267 {
37268 return $ac_func ();
37269   ;
37270   return 0;
37271 }
37272 _ACEOF
37273 rm -f conftest.$ac_objext conftest$ac_exeext
37274 if { (ac_try="$ac_link"
37275 case "(($ac_try" in
37276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37277   *) ac_try_echo=$ac_try;;
37278 esac
37279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37280   (eval "$ac_link") 2>conftest.er1
37281   ac_status=$?
37282   grep -v '^ *+' conftest.er1 >conftest.err
37283   rm -f conftest.er1
37284   cat conftest.err >&5
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); } && {
37287          test -z "$ac_c_werror_flag" ||
37288          test ! -s conftest.err
37289        } && test -s conftest$ac_exeext &&
37290        $as_test_x conftest$ac_exeext; then
37291   eval "$as_ac_var=yes"
37292 else
37293   echo "$as_me: failed program was:" >&5
37294 sed 's/^/| /' conftest.$ac_ext >&5
37295
37296         eval "$as_ac_var=no"
37297 fi
37298
37299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37300       conftest$ac_exeext conftest.$ac_ext
37301 fi
37302 ac_res=`eval echo '${'$as_ac_var'}'`
37303                { echo "$as_me:$LINENO: result: $ac_res" >&5
37304 echo "${ECHO_T}$ac_res" >&6; }
37305 if test `eval echo '${'$as_ac_var'}'` = yes; then
37306   cat >>confdefs.h <<_ACEOF
37307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37308 _ACEOF
37309
37310 fi
37311 done
37312
37313 fi
37314
37315 HAVE_SOME_SLEEP_FUNC=0
37316 if test "$USE_BEOS" = 1; then
37317             cat >>confdefs.h <<\_ACEOF
37318 #define HAVE_SLEEP 1
37319 _ACEOF
37320
37321     HAVE_SOME_SLEEP_FUNC=1
37322 fi
37323
37324 if test "$USE_DARWIN" = 1; then
37325             cat >>confdefs.h <<\_ACEOF
37326 #define HAVE_USLEEP 1
37327 _ACEOF
37328
37329     HAVE_SOME_SLEEP_FUNC=1
37330 fi
37331
37332 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37333         POSIX4_LINK=
37334
37335 for ac_func in nanosleep
37336 do
37337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37341   echo $ECHO_N "(cached) $ECHO_C" >&6
37342 else
37343   cat >conftest.$ac_ext <<_ACEOF
37344 /* confdefs.h.  */
37345 _ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h.  */
37349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37351 #define $ac_func innocuous_$ac_func
37352
37353 /* System header to define __stub macros and hopefully few prototypes,
37354     which can conflict with char $ac_func (); below.
37355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37356     <limits.h> exists even on freestanding compilers.  */
37357
37358 #ifdef __STDC__
37359 # include <limits.h>
37360 #else
37361 # include <assert.h>
37362 #endif
37363
37364 #undef $ac_func
37365
37366 /* Override any GCC internal prototype to avoid an error.
37367    Use char because int might match the return type of a GCC
37368    builtin and then its argument prototype would still apply.  */
37369 #ifdef __cplusplus
37370 extern "C"
37371 #endif
37372 char $ac_func ();
37373 /* The GNU C library defines this for functions which it implements
37374     to always fail with ENOSYS.  Some functions are actually named
37375     something starting with __ and the normal name is an alias.  */
37376 #if defined __stub_$ac_func || defined __stub___$ac_func
37377 choke me
37378 #endif
37379
37380 int
37381 main ()
37382 {
37383 return $ac_func ();
37384   ;
37385   return 0;
37386 }
37387 _ACEOF
37388 rm -f conftest.$ac_objext conftest$ac_exeext
37389 if { (ac_try="$ac_link"
37390 case "(($ac_try" in
37391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37392   *) ac_try_echo=$ac_try;;
37393 esac
37394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37395   (eval "$ac_link") 2>conftest.er1
37396   ac_status=$?
37397   grep -v '^ *+' conftest.er1 >conftest.err
37398   rm -f conftest.er1
37399   cat conftest.err >&5
37400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401   (exit $ac_status); } && {
37402          test -z "$ac_c_werror_flag" ||
37403          test ! -s conftest.err
37404        } && test -s conftest$ac_exeext &&
37405        $as_test_x conftest$ac_exeext; then
37406   eval "$as_ac_var=yes"
37407 else
37408   echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37410
37411         eval "$as_ac_var=no"
37412 fi
37413
37414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37415       conftest$ac_exeext conftest.$ac_ext
37416 fi
37417 ac_res=`eval echo '${'$as_ac_var'}'`
37418                { echo "$as_me:$LINENO: result: $ac_res" >&5
37419 echo "${ECHO_T}$ac_res" >&6; }
37420 if test `eval echo '${'$as_ac_var'}'` = yes; then
37421   cat >>confdefs.h <<_ACEOF
37422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37423 _ACEOF
37424  cat >>confdefs.h <<\_ACEOF
37425 #define HAVE_NANOSLEEP 1
37426 _ACEOF
37427
37428 else
37429
37430             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37431 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37432 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37433   echo $ECHO_N "(cached) $ECHO_C" >&6
37434 else
37435   ac_check_lib_save_LIBS=$LIBS
37436 LIBS="-lposix4  $LIBS"
37437 cat >conftest.$ac_ext <<_ACEOF
37438 /* confdefs.h.  */
37439 _ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h.  */
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 nanosleep ();
37451 int
37452 main ()
37453 {
37454 return nanosleep ();
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 rm -f conftest.$ac_objext conftest$ac_exeext
37460 if { (ac_try="$ac_link"
37461 case "(($ac_try" in
37462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463   *) ac_try_echo=$ac_try;;
37464 esac
37465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37466   (eval "$ac_link") 2>conftest.er1
37467   ac_status=$?
37468   grep -v '^ *+' conftest.er1 >conftest.err
37469   rm -f conftest.er1
37470   cat conftest.err >&5
37471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472   (exit $ac_status); } && {
37473          test -z "$ac_c_werror_flag" ||
37474          test ! -s conftest.err
37475        } && test -s conftest$ac_exeext &&
37476        $as_test_x conftest$ac_exeext; then
37477   ac_cv_lib_posix4_nanosleep=yes
37478 else
37479   echo "$as_me: failed program was:" >&5
37480 sed 's/^/| /' conftest.$ac_ext >&5
37481
37482         ac_cv_lib_posix4_nanosleep=no
37483 fi
37484
37485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37486       conftest$ac_exeext conftest.$ac_ext
37487 LIBS=$ac_check_lib_save_LIBS
37488 fi
37489 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37490 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37491 if test $ac_cv_lib_posix4_nanosleep = yes; then
37492
37493                     cat >>confdefs.h <<\_ACEOF
37494 #define HAVE_NANOSLEEP 1
37495 _ACEOF
37496
37497                     POSIX4_LINK=" -lposix4"
37498
37499 else
37500
37501
37502   for wx_func in usleep
37503   do
37504     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37505 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37506 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37507   echo $ECHO_N "(cached) $ECHO_C" >&6
37508 else
37509
37510         cat >conftest.$ac_ext <<_ACEOF
37511
37512             /* confdefs.h.  */
37513 _ACEOF
37514 cat confdefs.h >>conftest.$ac_ext
37515 cat >>conftest.$ac_ext <<_ACEOF
37516 /* end confdefs.h.  */
37517
37518
37519                 $ac_includes_default
37520
37521 int
37522 main ()
37523 {
37524
37525                 #ifndef $wx_func
37526                   &$wx_func;
37527                 #endif
37528
37529
37530   ;
37531   return 0;
37532 }
37533
37534 _ACEOF
37535 rm -f conftest.$ac_objext conftest$ac_exeext
37536 if { (ac_try="$ac_link"
37537 case "(($ac_try" in
37538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37539   *) ac_try_echo=$ac_try;;
37540 esac
37541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37542   (eval "$ac_link") 2>conftest.er1
37543   ac_status=$?
37544   grep -v '^ *+' conftest.er1 >conftest.err
37545   rm -f conftest.er1
37546   cat conftest.err >&5
37547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548   (exit $ac_status); } && {
37549          test -z "$ac_c_werror_flag" ||
37550          test ! -s conftest.err
37551        } && test -s conftest$ac_exeext &&
37552        $as_test_x conftest$ac_exeext; then
37553   eval wx_cv_func_$wx_func=yes
37554 else
37555   echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37557
37558         eval wx_cv_func_$wx_func=no
37559 fi
37560
37561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37562       conftest$ac_exeext conftest.$ac_ext
37563
37564 fi
37565 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37566                { echo "$as_me:$LINENO: result: $ac_res" >&5
37567 echo "${ECHO_T}$ac_res" >&6; }
37568
37569     if eval test \$wx_cv_func_$wx_func = yes
37570     then
37571       cat >>confdefs.h <<_ACEOF
37572 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37573 _ACEOF
37574
37575
37576     else
37577       :
37578       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37579 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37580
37581     fi
37582   done
37583
37584
37585
37586 fi
37587
37588
37589
37590 fi
37591 done
37592
37593 fi
37594
37595
37596   for wx_func in uname
37597   do
37598     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37599 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37600 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37601   echo $ECHO_N "(cached) $ECHO_C" >&6
37602 else
37603
37604         cat >conftest.$ac_ext <<_ACEOF
37605
37606             /* confdefs.h.  */
37607 _ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h.  */
37611
37612                 #include <sys/utsname.h>
37613                 $ac_includes_default
37614
37615 int
37616 main ()
37617 {
37618
37619                 #ifndef $wx_func
37620                   &$wx_func;
37621                 #endif
37622
37623
37624   ;
37625   return 0;
37626 }
37627
37628 _ACEOF
37629 rm -f conftest.$ac_objext conftest$ac_exeext
37630 if { (ac_try="$ac_link"
37631 case "(($ac_try" in
37632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37633   *) ac_try_echo=$ac_try;;
37634 esac
37635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37636   (eval "$ac_link") 2>conftest.er1
37637   ac_status=$?
37638   grep -v '^ *+' conftest.er1 >conftest.err
37639   rm -f conftest.er1
37640   cat conftest.err >&5
37641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642   (exit $ac_status); } && {
37643          test -z "$ac_c_werror_flag" ||
37644          test ! -s conftest.err
37645        } && test -s conftest$ac_exeext &&
37646        $as_test_x conftest$ac_exeext; then
37647   eval wx_cv_func_$wx_func=yes
37648 else
37649   echo "$as_me: failed program was:" >&5
37650 sed 's/^/| /' conftest.$ac_ext >&5
37651
37652         eval wx_cv_func_$wx_func=no
37653 fi
37654
37655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37656       conftest$ac_exeext conftest.$ac_ext
37657
37658 fi
37659 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37660                { echo "$as_me:$LINENO: result: $ac_res" >&5
37661 echo "${ECHO_T}$ac_res" >&6; }
37662
37663     if eval test \$wx_cv_func_$wx_func = yes
37664     then
37665       cat >>confdefs.h <<_ACEOF
37666 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37667 _ACEOF
37668
37669
37670     else
37671       :
37672
37673     fi
37674   done
37675
37676 if test "$wx_cv_func_uname" != yes; then
37677
37678   for wx_func in gethostname
37679   do
37680     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37681 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37682 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37683   echo $ECHO_N "(cached) $ECHO_C" >&6
37684 else
37685
37686         cat >conftest.$ac_ext <<_ACEOF
37687
37688             /* confdefs.h.  */
37689 _ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h.  */
37693
37694
37695                 $ac_includes_default
37696
37697 int
37698 main ()
37699 {
37700
37701                 #ifndef $wx_func
37702                   &$wx_func;
37703                 #endif
37704
37705
37706   ;
37707   return 0;
37708 }
37709
37710 _ACEOF
37711 rm -f conftest.$ac_objext conftest$ac_exeext
37712 if { (ac_try="$ac_link"
37713 case "(($ac_try" in
37714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37715   *) ac_try_echo=$ac_try;;
37716 esac
37717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37718   (eval "$ac_link") 2>conftest.er1
37719   ac_status=$?
37720   grep -v '^ *+' conftest.er1 >conftest.err
37721   rm -f conftest.er1
37722   cat conftest.err >&5
37723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); } && {
37725          test -z "$ac_c_werror_flag" ||
37726          test ! -s conftest.err
37727        } && test -s conftest$ac_exeext &&
37728        $as_test_x conftest$ac_exeext; then
37729   eval wx_cv_func_$wx_func=yes
37730 else
37731   echo "$as_me: failed program was:" >&5
37732 sed 's/^/| /' conftest.$ac_ext >&5
37733
37734         eval wx_cv_func_$wx_func=no
37735 fi
37736
37737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37738       conftest$ac_exeext conftest.$ac_ext
37739
37740 fi
37741 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37742                { echo "$as_me:$LINENO: result: $ac_res" >&5
37743 echo "${ECHO_T}$ac_res" >&6; }
37744
37745     if eval test \$wx_cv_func_$wx_func = yes
37746     then
37747       cat >>confdefs.h <<_ACEOF
37748 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37749 _ACEOF
37750
37751
37752     else
37753       :
37754
37755     fi
37756   done
37757
37758 fi
37759
37760
37761   for wx_func in strtok_r
37762   do
37763     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37764 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37765 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37766   echo $ECHO_N "(cached) $ECHO_C" >&6
37767 else
37768
37769         cat >conftest.$ac_ext <<_ACEOF
37770
37771             /* confdefs.h.  */
37772 _ACEOF
37773 cat confdefs.h >>conftest.$ac_ext
37774 cat >>conftest.$ac_ext <<_ACEOF
37775 /* end confdefs.h.  */
37776
37777                 #define _REENTRANT
37778                 $ac_includes_default
37779
37780 int
37781 main ()
37782 {
37783
37784                 #ifndef $wx_func
37785                   &$wx_func;
37786                 #endif
37787
37788
37789   ;
37790   return 0;
37791 }
37792
37793 _ACEOF
37794 rm -f conftest.$ac_objext conftest$ac_exeext
37795 if { (ac_try="$ac_link"
37796 case "(($ac_try" in
37797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37798   *) ac_try_echo=$ac_try;;
37799 esac
37800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37801   (eval "$ac_link") 2>conftest.er1
37802   ac_status=$?
37803   grep -v '^ *+' conftest.er1 >conftest.err
37804   rm -f conftest.er1
37805   cat conftest.err >&5
37806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807   (exit $ac_status); } && {
37808          test -z "$ac_c_werror_flag" ||
37809          test ! -s conftest.err
37810        } && test -s conftest$ac_exeext &&
37811        $as_test_x conftest$ac_exeext; then
37812   eval wx_cv_func_$wx_func=yes
37813 else
37814   echo "$as_me: failed program was:" >&5
37815 sed 's/^/| /' conftest.$ac_ext >&5
37816
37817         eval wx_cv_func_$wx_func=no
37818 fi
37819
37820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37821       conftest$ac_exeext conftest.$ac_ext
37822
37823 fi
37824 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37825                { echo "$as_me:$LINENO: result: $ac_res" >&5
37826 echo "${ECHO_T}$ac_res" >&6; }
37827
37828     if eval test \$wx_cv_func_$wx_func = yes
37829     then
37830       cat >>confdefs.h <<_ACEOF
37831 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37832 _ACEOF
37833
37834
37835     else
37836       :
37837
37838     fi
37839   done
37840
37841
37842 INET_LINK=
37843
37844 for ac_func in inet_addr
37845 do
37846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37850   echo $ECHO_N "(cached) $ECHO_C" >&6
37851 else
37852   cat >conftest.$ac_ext <<_ACEOF
37853 /* confdefs.h.  */
37854 _ACEOF
37855 cat confdefs.h >>conftest.$ac_ext
37856 cat >>conftest.$ac_ext <<_ACEOF
37857 /* end confdefs.h.  */
37858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37860 #define $ac_func innocuous_$ac_func
37861
37862 /* System header to define __stub macros and hopefully few prototypes,
37863     which can conflict with char $ac_func (); below.
37864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37865     <limits.h> exists even on freestanding compilers.  */
37866
37867 #ifdef __STDC__
37868 # include <limits.h>
37869 #else
37870 # include <assert.h>
37871 #endif
37872
37873 #undef $ac_func
37874
37875 /* Override any GCC internal prototype to avoid an error.
37876    Use char because int might match the return type of a GCC
37877    builtin and then its argument prototype would still apply.  */
37878 #ifdef __cplusplus
37879 extern "C"
37880 #endif
37881 char $ac_func ();
37882 /* The GNU C library defines this for functions which it implements
37883     to always fail with ENOSYS.  Some functions are actually named
37884     something starting with __ and the normal name is an alias.  */
37885 #if defined __stub_$ac_func || defined __stub___$ac_func
37886 choke me
37887 #endif
37888
37889 int
37890 main ()
37891 {
37892 return $ac_func ();
37893   ;
37894   return 0;
37895 }
37896 _ACEOF
37897 rm -f conftest.$ac_objext conftest$ac_exeext
37898 if { (ac_try="$ac_link"
37899 case "(($ac_try" in
37900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901   *) ac_try_echo=$ac_try;;
37902 esac
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904   (eval "$ac_link") 2>conftest.er1
37905   ac_status=$?
37906   grep -v '^ *+' conftest.er1 >conftest.err
37907   rm -f conftest.er1
37908   cat conftest.err >&5
37909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910   (exit $ac_status); } && {
37911          test -z "$ac_c_werror_flag" ||
37912          test ! -s conftest.err
37913        } && test -s conftest$ac_exeext &&
37914        $as_test_x conftest$ac_exeext; then
37915   eval "$as_ac_var=yes"
37916 else
37917   echo "$as_me: failed program was:" >&5
37918 sed 's/^/| /' conftest.$ac_ext >&5
37919
37920         eval "$as_ac_var=no"
37921 fi
37922
37923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37924       conftest$ac_exeext conftest.$ac_ext
37925 fi
37926 ac_res=`eval echo '${'$as_ac_var'}'`
37927                { echo "$as_me:$LINENO: result: $ac_res" >&5
37928 echo "${ECHO_T}$ac_res" >&6; }
37929 if test `eval echo '${'$as_ac_var'}'` = yes; then
37930   cat >>confdefs.h <<_ACEOF
37931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37932 _ACEOF
37933  cat >>confdefs.h <<\_ACEOF
37934 #define HAVE_INET_ADDR 1
37935 _ACEOF
37936
37937 else
37938
37939         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37940 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
37941 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37942   echo $ECHO_N "(cached) $ECHO_C" >&6
37943 else
37944   ac_check_lib_save_LIBS=$LIBS
37945 LIBS="-lnsl  $LIBS"
37946 cat >conftest.$ac_ext <<_ACEOF
37947 /* confdefs.h.  */
37948 _ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h.  */
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 inet_addr ();
37960 int
37961 main ()
37962 {
37963 return inet_addr ();
37964   ;
37965   return 0;
37966 }
37967 _ACEOF
37968 rm -f conftest.$ac_objext conftest$ac_exeext
37969 if { (ac_try="$ac_link"
37970 case "(($ac_try" in
37971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37972   *) ac_try_echo=$ac_try;;
37973 esac
37974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37975   (eval "$ac_link") 2>conftest.er1
37976   ac_status=$?
37977   grep -v '^ *+' conftest.er1 >conftest.err
37978   rm -f conftest.er1
37979   cat conftest.err >&5
37980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981   (exit $ac_status); } && {
37982          test -z "$ac_c_werror_flag" ||
37983          test ! -s conftest.err
37984        } && test -s conftest$ac_exeext &&
37985        $as_test_x conftest$ac_exeext; then
37986   ac_cv_lib_nsl_inet_addr=yes
37987 else
37988   echo "$as_me: failed program was:" >&5
37989 sed 's/^/| /' conftest.$ac_ext >&5
37990
37991         ac_cv_lib_nsl_inet_addr=no
37992 fi
37993
37994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37995       conftest$ac_exeext conftest.$ac_ext
37996 LIBS=$ac_check_lib_save_LIBS
37997 fi
37998 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37999 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38000 if test $ac_cv_lib_nsl_inet_addr = yes; then
38001   INET_LINK="nsl"
38002 else
38003
38004                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38005 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38006 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38007   echo $ECHO_N "(cached) $ECHO_C" >&6
38008 else
38009   ac_check_lib_save_LIBS=$LIBS
38010 LIBS="-lresolv  $LIBS"
38011 cat >conftest.$ac_ext <<_ACEOF
38012 /* confdefs.h.  */
38013 _ACEOF
38014 cat confdefs.h >>conftest.$ac_ext
38015 cat >>conftest.$ac_ext <<_ACEOF
38016 /* end confdefs.h.  */
38017
38018 /* Override any GCC internal prototype to avoid an error.
38019    Use char because int might match the return type of a GCC
38020    builtin and then its argument prototype would still apply.  */
38021 #ifdef __cplusplus
38022 extern "C"
38023 #endif
38024 char inet_addr ();
38025 int
38026 main ()
38027 {
38028 return inet_addr ();
38029   ;
38030   return 0;
38031 }
38032 _ACEOF
38033 rm -f conftest.$ac_objext conftest$ac_exeext
38034 if { (ac_try="$ac_link"
38035 case "(($ac_try" in
38036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38037   *) ac_try_echo=$ac_try;;
38038 esac
38039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38040   (eval "$ac_link") 2>conftest.er1
38041   ac_status=$?
38042   grep -v '^ *+' conftest.er1 >conftest.err
38043   rm -f conftest.er1
38044   cat conftest.err >&5
38045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046   (exit $ac_status); } && {
38047          test -z "$ac_c_werror_flag" ||
38048          test ! -s conftest.err
38049        } && test -s conftest$ac_exeext &&
38050        $as_test_x conftest$ac_exeext; then
38051   ac_cv_lib_resolv_inet_addr=yes
38052 else
38053   echo "$as_me: failed program was:" >&5
38054 sed 's/^/| /' conftest.$ac_ext >&5
38055
38056         ac_cv_lib_resolv_inet_addr=no
38057 fi
38058
38059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38060       conftest$ac_exeext conftest.$ac_ext
38061 LIBS=$ac_check_lib_save_LIBS
38062 fi
38063 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38064 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38065 if test $ac_cv_lib_resolv_inet_addr = yes; then
38066   INET_LINK="resolv"
38067 else
38068
38069                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38070 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38071 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38072   echo $ECHO_N "(cached) $ECHO_C" >&6
38073 else
38074   ac_check_lib_save_LIBS=$LIBS
38075 LIBS="-lsocket  $LIBS"
38076 cat >conftest.$ac_ext <<_ACEOF
38077 /* confdefs.h.  */
38078 _ACEOF
38079 cat confdefs.h >>conftest.$ac_ext
38080 cat >>conftest.$ac_ext <<_ACEOF
38081 /* end confdefs.h.  */
38082
38083 /* Override any GCC internal prototype to avoid an error.
38084    Use char because int might match the return type of a GCC
38085    builtin and then its argument prototype would still apply.  */
38086 #ifdef __cplusplus
38087 extern "C"
38088 #endif
38089 char inet_addr ();
38090 int
38091 main ()
38092 {
38093 return inet_addr ();
38094   ;
38095   return 0;
38096 }
38097 _ACEOF
38098 rm -f conftest.$ac_objext conftest$ac_exeext
38099 if { (ac_try="$ac_link"
38100 case "(($ac_try" in
38101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38102   *) ac_try_echo=$ac_try;;
38103 esac
38104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38105   (eval "$ac_link") 2>conftest.er1
38106   ac_status=$?
38107   grep -v '^ *+' conftest.er1 >conftest.err
38108   rm -f conftest.er1
38109   cat conftest.err >&5
38110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111   (exit $ac_status); } && {
38112          test -z "$ac_c_werror_flag" ||
38113          test ! -s conftest.err
38114        } && test -s conftest$ac_exeext &&
38115        $as_test_x conftest$ac_exeext; then
38116   ac_cv_lib_socket_inet_addr=yes
38117 else
38118   echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38120
38121         ac_cv_lib_socket_inet_addr=no
38122 fi
38123
38124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38125       conftest$ac_exeext conftest.$ac_ext
38126 LIBS=$ac_check_lib_save_LIBS
38127 fi
38128 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38129 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38130 if test $ac_cv_lib_socket_inet_addr = yes; then
38131   INET_LINK="socket"
38132
38133 fi
38134
38135
38136
38137 fi
38138
38139
38140
38141 fi
38142
38143
38144
38145 fi
38146 done
38147
38148
38149
38150 for ac_func in inet_aton
38151 do
38152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38156   echo $ECHO_N "(cached) $ECHO_C" >&6
38157 else
38158   cat >conftest.$ac_ext <<_ACEOF
38159 /* confdefs.h.  */
38160 _ACEOF
38161 cat confdefs.h >>conftest.$ac_ext
38162 cat >>conftest.$ac_ext <<_ACEOF
38163 /* end confdefs.h.  */
38164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38166 #define $ac_func innocuous_$ac_func
38167
38168 /* System header to define __stub macros and hopefully few prototypes,
38169     which can conflict with char $ac_func (); below.
38170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38171     <limits.h> exists even on freestanding compilers.  */
38172
38173 #ifdef __STDC__
38174 # include <limits.h>
38175 #else
38176 # include <assert.h>
38177 #endif
38178
38179 #undef $ac_func
38180
38181 /* Override any GCC internal prototype to avoid an error.
38182    Use char because int might match the return type of a GCC
38183    builtin and then its argument prototype would still apply.  */
38184 #ifdef __cplusplus
38185 extern "C"
38186 #endif
38187 char $ac_func ();
38188 /* The GNU C library defines this for functions which it implements
38189     to always fail with ENOSYS.  Some functions are actually named
38190     something starting with __ and the normal name is an alias.  */
38191 #if defined __stub_$ac_func || defined __stub___$ac_func
38192 choke me
38193 #endif
38194
38195 int
38196 main ()
38197 {
38198 return $ac_func ();
38199   ;
38200   return 0;
38201 }
38202 _ACEOF
38203 rm -f conftest.$ac_objext conftest$ac_exeext
38204 if { (ac_try="$ac_link"
38205 case "(($ac_try" in
38206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38207   *) ac_try_echo=$ac_try;;
38208 esac
38209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38210   (eval "$ac_link") 2>conftest.er1
38211   ac_status=$?
38212   grep -v '^ *+' conftest.er1 >conftest.err
38213   rm -f conftest.er1
38214   cat conftest.err >&5
38215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216   (exit $ac_status); } && {
38217          test -z "$ac_c_werror_flag" ||
38218          test ! -s conftest.err
38219        } && test -s conftest$ac_exeext &&
38220        $as_test_x conftest$ac_exeext; then
38221   eval "$as_ac_var=yes"
38222 else
38223   echo "$as_me: failed program was:" >&5
38224 sed 's/^/| /' conftest.$ac_ext >&5
38225
38226         eval "$as_ac_var=no"
38227 fi
38228
38229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38230       conftest$ac_exeext conftest.$ac_ext
38231 fi
38232 ac_res=`eval echo '${'$as_ac_var'}'`
38233                { echo "$as_me:$LINENO: result: $ac_res" >&5
38234 echo "${ECHO_T}$ac_res" >&6; }
38235 if test `eval echo '${'$as_ac_var'}'` = yes; then
38236   cat >>confdefs.h <<_ACEOF
38237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38238 _ACEOF
38239  cat >>confdefs.h <<\_ACEOF
38240 #define HAVE_INET_ATON 1
38241 _ACEOF
38242
38243 else
38244
38245                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38246 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38247 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38248 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38249   echo $ECHO_N "(cached) $ECHO_C" >&6
38250 else
38251   ac_check_lib_save_LIBS=$LIBS
38252 LIBS="-l$INET_LINK  $LIBS"
38253 cat >conftest.$ac_ext <<_ACEOF
38254 /* confdefs.h.  */
38255 _ACEOF
38256 cat confdefs.h >>conftest.$ac_ext
38257 cat >>conftest.$ac_ext <<_ACEOF
38258 /* end confdefs.h.  */
38259
38260 /* Override any GCC internal prototype to avoid an error.
38261    Use char because int might match the return type of a GCC
38262    builtin and then its argument prototype would still apply.  */
38263 #ifdef __cplusplus
38264 extern "C"
38265 #endif
38266 char inet_aton ();
38267 int
38268 main ()
38269 {
38270 return inet_aton ();
38271   ;
38272   return 0;
38273 }
38274 _ACEOF
38275 rm -f conftest.$ac_objext conftest$ac_exeext
38276 if { (ac_try="$ac_link"
38277 case "(($ac_try" in
38278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38279   *) ac_try_echo=$ac_try;;
38280 esac
38281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38282   (eval "$ac_link") 2>conftest.er1
38283   ac_status=$?
38284   grep -v '^ *+' conftest.er1 >conftest.err
38285   rm -f conftest.er1
38286   cat conftest.err >&5
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); } && {
38289          test -z "$ac_c_werror_flag" ||
38290          test ! -s conftest.err
38291        } && test -s conftest$ac_exeext &&
38292        $as_test_x conftest$ac_exeext; then
38293   eval "$as_ac_Lib=yes"
38294 else
38295   echo "$as_me: failed program was:" >&5
38296 sed 's/^/| /' conftest.$ac_ext >&5
38297
38298         eval "$as_ac_Lib=no"
38299 fi
38300
38301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38302       conftest$ac_exeext conftest.$ac_ext
38303 LIBS=$ac_check_lib_save_LIBS
38304 fi
38305 ac_res=`eval echo '${'$as_ac_Lib'}'`
38306                { echo "$as_me:$LINENO: result: $ac_res" >&5
38307 echo "${ECHO_T}$ac_res" >&6; }
38308 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38309   cat >>confdefs.h <<\_ACEOF
38310 #define HAVE_INET_ATON 1
38311 _ACEOF
38312
38313 fi
38314
38315
38316 fi
38317 done
38318
38319
38320 if test "x$INET_LINK" != "x"; then
38321     cat >>confdefs.h <<\_ACEOF
38322 #define HAVE_INET_ADDR 1
38323 _ACEOF
38324
38325     INET_LINK=" -l$INET_LINK"
38326 fi
38327
38328
38329   for wx_func in fdopen
38330   do
38331     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38332 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38333 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38334   echo $ECHO_N "(cached) $ECHO_C" >&6
38335 else
38336
38337         cat >conftest.$ac_ext <<_ACEOF
38338
38339             /* confdefs.h.  */
38340 _ACEOF
38341 cat confdefs.h >>conftest.$ac_ext
38342 cat >>conftest.$ac_ext <<_ACEOF
38343 /* end confdefs.h.  */
38344
38345
38346                 $ac_includes_default
38347
38348 int
38349 main ()
38350 {
38351
38352                 #ifndef $wx_func
38353                   &$wx_func;
38354                 #endif
38355
38356
38357   ;
38358   return 0;
38359 }
38360
38361 _ACEOF
38362 rm -f conftest.$ac_objext conftest$ac_exeext
38363 if { (ac_try="$ac_link"
38364 case "(($ac_try" in
38365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38366   *) ac_try_echo=$ac_try;;
38367 esac
38368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38369   (eval "$ac_link") 2>conftest.er1
38370   ac_status=$?
38371   grep -v '^ *+' conftest.er1 >conftest.err
38372   rm -f conftest.er1
38373   cat conftest.err >&5
38374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375   (exit $ac_status); } && {
38376          test -z "$ac_c_werror_flag" ||
38377          test ! -s conftest.err
38378        } && test -s conftest$ac_exeext &&
38379        $as_test_x conftest$ac_exeext; then
38380   eval wx_cv_func_$wx_func=yes
38381 else
38382   echo "$as_me: failed program was:" >&5
38383 sed 's/^/| /' conftest.$ac_ext >&5
38384
38385         eval wx_cv_func_$wx_func=no
38386 fi
38387
38388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38389       conftest$ac_exeext conftest.$ac_ext
38390
38391 fi
38392 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38393                { echo "$as_me:$LINENO: result: $ac_res" >&5
38394 echo "${ECHO_T}$ac_res" >&6; }
38395
38396     if eval test \$wx_cv_func_$wx_func = yes
38397     then
38398       cat >>confdefs.h <<_ACEOF
38399 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38400 _ACEOF
38401
38402
38403     else
38404       :
38405
38406     fi
38407   done
38408
38409
38410 if test "$wxUSE_TARSTREAM" = "yes"; then
38411
38412   for wx_func in sysconf
38413   do
38414     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38415 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38416 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38417   echo $ECHO_N "(cached) $ECHO_C" >&6
38418 else
38419
38420         cat >conftest.$ac_ext <<_ACEOF
38421
38422             /* confdefs.h.  */
38423 _ACEOF
38424 cat confdefs.h >>conftest.$ac_ext
38425 cat >>conftest.$ac_ext <<_ACEOF
38426 /* end confdefs.h.  */
38427
38428
38429                 $ac_includes_default
38430
38431 int
38432 main ()
38433 {
38434
38435                 #ifndef $wx_func
38436                   &$wx_func;
38437                 #endif
38438
38439
38440   ;
38441   return 0;
38442 }
38443
38444 _ACEOF
38445 rm -f conftest.$ac_objext conftest$ac_exeext
38446 if { (ac_try="$ac_link"
38447 case "(($ac_try" in
38448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38449   *) ac_try_echo=$ac_try;;
38450 esac
38451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38452   (eval "$ac_link") 2>conftest.er1
38453   ac_status=$?
38454   grep -v '^ *+' conftest.er1 >conftest.err
38455   rm -f conftest.er1
38456   cat conftest.err >&5
38457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458   (exit $ac_status); } && {
38459          test -z "$ac_c_werror_flag" ||
38460          test ! -s conftest.err
38461        } && test -s conftest$ac_exeext &&
38462        $as_test_x conftest$ac_exeext; then
38463   eval wx_cv_func_$wx_func=yes
38464 else
38465   echo "$as_me: failed program was:" >&5
38466 sed 's/^/| /' conftest.$ac_ext >&5
38467
38468         eval wx_cv_func_$wx_func=no
38469 fi
38470
38471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38472       conftest$ac_exeext conftest.$ac_ext
38473
38474 fi
38475 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38476                { echo "$as_me:$LINENO: result: $ac_res" >&5
38477 echo "${ECHO_T}$ac_res" >&6; }
38478
38479     if eval test \$wx_cv_func_$wx_func = yes
38480     then
38481       cat >>confdefs.h <<_ACEOF
38482 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38483 _ACEOF
38484
38485
38486     else
38487       :
38488
38489     fi
38490   done
38491
38492
38493
38494   for wx_func in getpwuid_r
38495   do
38496     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38497 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38498 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38499   echo $ECHO_N "(cached) $ECHO_C" >&6
38500 else
38501
38502         cat >conftest.$ac_ext <<_ACEOF
38503
38504             /* confdefs.h.  */
38505 _ACEOF
38506 cat confdefs.h >>conftest.$ac_ext
38507 cat >>conftest.$ac_ext <<_ACEOF
38508 /* end confdefs.h.  */
38509
38510
38511                     #define _REENTRANT
38512                     #include <pwd.h>
38513
38514                 $ac_includes_default
38515
38516 int
38517 main ()
38518 {
38519
38520                 #ifndef $wx_func
38521                   &$wx_func;
38522                 #endif
38523
38524                     struct passwd pw, *ppw;
38525                     char buf[1024];
38526                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38527
38528
38529   ;
38530   return 0;
38531 }
38532
38533 _ACEOF
38534 rm -f conftest.$ac_objext conftest$ac_exeext
38535 if { (ac_try="$ac_link"
38536 case "(($ac_try" in
38537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38538   *) ac_try_echo=$ac_try;;
38539 esac
38540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38541   (eval "$ac_link") 2>conftest.er1
38542   ac_status=$?
38543   grep -v '^ *+' conftest.er1 >conftest.err
38544   rm -f conftest.er1
38545   cat conftest.err >&5
38546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38547   (exit $ac_status); } && {
38548          test -z "$ac_c_werror_flag" ||
38549          test ! -s conftest.err
38550        } && test -s conftest$ac_exeext &&
38551        $as_test_x conftest$ac_exeext; then
38552   eval wx_cv_func_$wx_func=yes
38553 else
38554   echo "$as_me: failed program was:" >&5
38555 sed 's/^/| /' conftest.$ac_ext >&5
38556
38557         eval wx_cv_func_$wx_func=no
38558 fi
38559
38560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38561       conftest$ac_exeext conftest.$ac_ext
38562
38563 fi
38564 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38565                { echo "$as_me:$LINENO: result: $ac_res" >&5
38566 echo "${ECHO_T}$ac_res" >&6; }
38567
38568     if eval test \$wx_cv_func_$wx_func = yes
38569     then
38570       cat >>confdefs.h <<_ACEOF
38571 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38572 _ACEOF
38573
38574
38575     else
38576       :
38577
38578     fi
38579   done
38580
38581
38582
38583   for wx_func in getgrgid_r
38584   do
38585     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38586 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38587 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38588   echo $ECHO_N "(cached) $ECHO_C" >&6
38589 else
38590
38591         cat >conftest.$ac_ext <<_ACEOF
38592
38593             /* confdefs.h.  */
38594 _ACEOF
38595 cat confdefs.h >>conftest.$ac_ext
38596 cat >>conftest.$ac_ext <<_ACEOF
38597 /* end confdefs.h.  */
38598
38599
38600                     #define _REENTRANT
38601                     #include <grp.h>
38602
38603                 $ac_includes_default
38604
38605 int
38606 main ()
38607 {
38608
38609                 #ifndef $wx_func
38610                   &$wx_func;
38611                 #endif
38612
38613                     struct group grp, *pgrp;
38614                     char buf[1024];
38615                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38616
38617
38618   ;
38619   return 0;
38620 }
38621
38622 _ACEOF
38623 rm -f conftest.$ac_objext conftest$ac_exeext
38624 if { (ac_try="$ac_link"
38625 case "(($ac_try" in
38626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38627   *) ac_try_echo=$ac_try;;
38628 esac
38629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38630   (eval "$ac_link") 2>conftest.er1
38631   ac_status=$?
38632   grep -v '^ *+' conftest.er1 >conftest.err
38633   rm -f conftest.er1
38634   cat conftest.err >&5
38635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636   (exit $ac_status); } && {
38637          test -z "$ac_c_werror_flag" ||
38638          test ! -s conftest.err
38639        } && test -s conftest$ac_exeext &&
38640        $as_test_x conftest$ac_exeext; then
38641   eval wx_cv_func_$wx_func=yes
38642 else
38643   echo "$as_me: failed program was:" >&5
38644 sed 's/^/| /' conftest.$ac_ext >&5
38645
38646         eval wx_cv_func_$wx_func=no
38647 fi
38648
38649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38650       conftest$ac_exeext conftest.$ac_ext
38651
38652 fi
38653 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38654                { echo "$as_me:$LINENO: result: $ac_res" >&5
38655 echo "${ECHO_T}$ac_res" >&6; }
38656
38657     if eval test \$wx_cv_func_$wx_func = yes
38658     then
38659       cat >>confdefs.h <<_ACEOF
38660 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38661 _ACEOF
38662
38663
38664     else
38665       :
38666
38667     fi
38668   done
38669
38670 fi
38671
38672 fi
38673
38674
38675
38676 cat >confcache <<\_ACEOF
38677 # This file is a shell script that caches the results of configure
38678 # tests run on this system so they can be shared between configure
38679 # scripts and configure runs, see configure's option --config-cache.
38680 # It is not useful on other systems.  If it contains results you don't
38681 # want to keep, you may remove or edit it.
38682 #
38683 # config.status only pays attention to the cache file if you give it
38684 # the --recheck option to rerun configure.
38685 #
38686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38688 # following values.
38689
38690 _ACEOF
38691
38692 # The following way of writing the cache mishandles newlines in values,
38693 # but we know of no workaround that is simple, portable, and efficient.
38694 # So, we kill variables containing newlines.
38695 # Ultrix sh set writes to stderr and can't be redirected directly,
38696 # and sets the high bit in the cache file unless we assign to the vars.
38697 (
38698   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38699     eval ac_val=\$$ac_var
38700     case $ac_val in #(
38701     *${as_nl}*)
38702       case $ac_var in #(
38703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38705       esac
38706       case $ac_var in #(
38707       _ | IFS | as_nl) ;; #(
38708       *) $as_unset $ac_var ;;
38709       esac ;;
38710     esac
38711   done
38712
38713   (set) 2>&1 |
38714     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38715     *${as_nl}ac_space=\ *)
38716       # `set' does not quote correctly, so add quotes (double-quote
38717       # substitution turns \\\\ into \\, and sed turns \\ into \).
38718       sed -n \
38719         "s/'/'\\\\''/g;
38720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38721       ;; #(
38722     *)
38723       # `set' quotes correctly as required by POSIX, so do not add quotes.
38724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38725       ;;
38726     esac |
38727     sort
38728 ) |
38729   sed '
38730      /^ac_cv_env_/b end
38731      t clear
38732      :clear
38733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38734      t end
38735      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38736      :end' >>confcache
38737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38738   if test -w "$cache_file"; then
38739     test "x$cache_file" != "x/dev/null" &&
38740       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38741 echo "$as_me: updating cache $cache_file" >&6;}
38742     cat confcache >$cache_file
38743   else
38744     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38745 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38746   fi
38747 fi
38748 rm -f confcache
38749
38750
38751 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38752
38753
38754     THREADS_LINK=
38755     THREADS_CFLAGS=
38756
38757     if test "$wxUSE_THREADS" = "yes" ; then
38758         if test "$USE_BEOS" = 1; then
38759             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38760 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38761             wxUSE_THREADS="no"
38762         fi
38763     fi
38764
38765     if test "$wxUSE_THREADS" = "yes" ; then
38766
38767
38768                                 THREAD_OPTS="-pthread"
38769         if test "x$SUNCXX" = xyes; then
38770             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38771         fi
38772
38773         case "${host}" in
38774           *-*-solaris2* | *-*-sunos4* )
38775                 if test "x$GCC" = "xyes"; then
38776                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38777                 fi
38778                 ;;
38779           *-*-freebsd*)
38780                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38781                 ;;
38782           *-*-darwin* | *-*-cygwin* )
38783                                                 THREAD_OPTS=""
38784                 ;;
38785           *-*-aix*)
38786                                 THREAD_OPTS="pthreads"
38787                 ;;
38788           *-hp-hpux* )
38789                 if test "x$GCC" = "xyes"; then
38790                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38791                         THREAD_OPTS=""
38792                 else
38793                                                             THREAD_OPTS="-mt"
38794                 fi
38795                 ;;
38796
38797           *-*-irix* )
38798                                                                 if test "x$GCC" = "xyes"; then
38799                     THREAD_OPTS=""
38800                 fi
38801                 ;;
38802
38803           *-*-*UnixWare*)
38804                                 if test "x$GCC" != "xyes"; then
38805                     THREAD_OPTS="-Ethread"
38806                 fi
38807                 ;;
38808         esac
38809
38810                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38811
38812                 THREADS_OK=no
38813         for flag in $THREAD_OPTS; do
38814             case $flag in
38815                 none)
38816                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38817 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38818                     ;;
38819
38820                 -*)
38821                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38822 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38823                     THREADS_CFLAGS="$flag"
38824                     ;;
38825
38826                 *)
38827                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38828 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38829                     THREADS_LINK="-l$flag"
38830                     ;;
38831               esac
38832
38833               save_LIBS="$LIBS"
38834               save_CFLAGS="$CFLAGS"
38835               LIBS="$THREADS_LINK $LIBS"
38836               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38837
38838               cat >conftest.$ac_ext <<_ACEOF
38839 /* confdefs.h.  */
38840 _ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h.  */
38844 #include <pthread.h>
38845 int
38846 main ()
38847 {
38848 pthread_create(0,0,0,0);
38849   ;
38850   return 0;
38851 }
38852 _ACEOF
38853 rm -f conftest.$ac_objext conftest$ac_exeext
38854 if { (ac_try="$ac_link"
38855 case "(($ac_try" in
38856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38857   *) ac_try_echo=$ac_try;;
38858 esac
38859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38860   (eval "$ac_link") 2>conftest.er1
38861   ac_status=$?
38862   grep -v '^ *+' conftest.er1 >conftest.err
38863   rm -f conftest.er1
38864   cat conftest.err >&5
38865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866   (exit $ac_status); } && {
38867          test -z "$ac_c_werror_flag" ||
38868          test ! -s conftest.err
38869        } && test -s conftest$ac_exeext &&
38870        $as_test_x conftest$ac_exeext; then
38871   THREADS_OK=yes
38872 else
38873   echo "$as_me: failed program was:" >&5
38874 sed 's/^/| /' conftest.$ac_ext >&5
38875
38876
38877 fi
38878
38879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38880       conftest$ac_exeext conftest.$ac_ext
38881
38882               LIBS="$save_LIBS"
38883               CFLAGS="$save_CFLAGS"
38884
38885               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38886 echo "${ECHO_T}$THREADS_OK" >&6; }
38887               if test "x$THREADS_OK" = "xyes"; then
38888                       break;
38889               fi
38890
38891               THREADS_LINK=""
38892               THREADS_CFLAGS=""
38893       done
38894
38895       if test "x$THREADS_OK" != "xyes"; then
38896           wxUSE_THREADS=no
38897           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38898 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38899       else
38900                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38901           LIBS="$THREADS_LINK $LIBS"
38902
38903           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38904 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38905           flag=no
38906           case "${host}" in
38907             *-aix*)
38908                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38909                 flag="-D_THREAD_SAFE"
38910                 ;;
38911             *-freebsd*)
38912                 flag="-D_THREAD_SAFE"
38913                 ;;
38914             *-hp-hpux* )
38915                 flag="-D_REENTRANT"
38916                 if test "x$GCC" != "xyes"; then
38917                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38918                 fi
38919                 ;;
38920             *solaris* | alpha*-osf*)
38921                 flag="-D_REENTRANT"
38922                 ;;
38923           esac
38924           { echo "$as_me:$LINENO: result: ${flag}" >&5
38925 echo "${ECHO_T}${flag}" >&6; }
38926           if test "x$flag" != xno; then
38927               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
38928           fi
38929
38930                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
38931       fi
38932     fi
38933
38934         if test "$wxUSE_THREADS" = "yes" ; then
38935
38936 for ac_func in thr_setconcurrency
38937 do
38938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38942   echo $ECHO_N "(cached) $ECHO_C" >&6
38943 else
38944   cat >conftest.$ac_ext <<_ACEOF
38945 /* confdefs.h.  */
38946 _ACEOF
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h.  */
38950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38952 #define $ac_func innocuous_$ac_func
38953
38954 /* System header to define __stub macros and hopefully few prototypes,
38955     which can conflict with char $ac_func (); below.
38956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38957     <limits.h> exists even on freestanding compilers.  */
38958
38959 #ifdef __STDC__
38960 # include <limits.h>
38961 #else
38962 # include <assert.h>
38963 #endif
38964
38965 #undef $ac_func
38966
38967 /* Override any GCC internal prototype to avoid an error.
38968    Use char because int might match the return type of a GCC
38969    builtin and then its argument prototype would still apply.  */
38970 #ifdef __cplusplus
38971 extern "C"
38972 #endif
38973 char $ac_func ();
38974 /* The GNU C library defines this for functions which it implements
38975     to always fail with ENOSYS.  Some functions are actually named
38976     something starting with __ and the normal name is an alias.  */
38977 #if defined __stub_$ac_func || defined __stub___$ac_func
38978 choke me
38979 #endif
38980
38981 int
38982 main ()
38983 {
38984 return $ac_func ();
38985   ;
38986   return 0;
38987 }
38988 _ACEOF
38989 rm -f conftest.$ac_objext conftest$ac_exeext
38990 if { (ac_try="$ac_link"
38991 case "(($ac_try" in
38992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38993   *) ac_try_echo=$ac_try;;
38994 esac
38995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38996   (eval "$ac_link") 2>conftest.er1
38997   ac_status=$?
38998   grep -v '^ *+' conftest.er1 >conftest.err
38999   rm -f conftest.er1
39000   cat conftest.err >&5
39001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002   (exit $ac_status); } && {
39003          test -z "$ac_c_werror_flag" ||
39004          test ! -s conftest.err
39005        } && test -s conftest$ac_exeext &&
39006        $as_test_x conftest$ac_exeext; then
39007   eval "$as_ac_var=yes"
39008 else
39009   echo "$as_me: failed program was:" >&5
39010 sed 's/^/| /' conftest.$ac_ext >&5
39011
39012         eval "$as_ac_var=no"
39013 fi
39014
39015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39016       conftest$ac_exeext conftest.$ac_ext
39017 fi
39018 ac_res=`eval echo '${'$as_ac_var'}'`
39019                { echo "$as_me:$LINENO: result: $ac_res" >&5
39020 echo "${ECHO_T}$ac_res" >&6; }
39021 if test `eval echo '${'$as_ac_var'}'` = yes; then
39022   cat >>confdefs.h <<_ACEOF
39023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39024 _ACEOF
39025
39026 fi
39027 done
39028
39029
39030                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39031 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39032 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39033   echo $ECHO_N "(cached) $ECHO_C" >&6
39034 else
39035
39036                                 ac_ext=cpp
39037 ac_cpp='$CXXCPP $CPPFLAGS'
39038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39041
39042         cat >conftest.$ac_ext <<_ACEOF
39043 /* confdefs.h.  */
39044 _ACEOF
39045 cat confdefs.h >>conftest.$ac_ext
39046 cat >>conftest.$ac_ext <<_ACEOF
39047 /* end confdefs.h.  */
39048 #include <pthread.h>
39049                void ThreadCleanupFunc(void *p);
39050
39051 int
39052 main ()
39053 {
39054
39055                 void *p;
39056                 pthread_cleanup_push(ThreadCleanupFunc, p);
39057                 pthread_cleanup_pop(0);
39058
39059   ;
39060   return 0;
39061 }
39062 _ACEOF
39063 rm -f conftest.$ac_objext
39064 if { (ac_try="$ac_compile"
39065 case "(($ac_try" in
39066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39067   *) ac_try_echo=$ac_try;;
39068 esac
39069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39070   (eval "$ac_compile") 2>conftest.er1
39071   ac_status=$?
39072   grep -v '^ *+' conftest.er1 >conftest.err
39073   rm -f conftest.er1
39074   cat conftest.err >&5
39075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076   (exit $ac_status); } && {
39077          test -z "$ac_cxx_werror_flag" ||
39078          test ! -s conftest.err
39079        } && test -s conftest.$ac_objext; then
39080
39081                wx_cv_func_pthread_cleanup=yes
39082
39083 else
39084   echo "$as_me: failed program was:" >&5
39085 sed 's/^/| /' conftest.$ac_ext >&5
39086
39087
39088                wx_cv_func_pthread_cleanup=no
39089
39090
39091 fi
39092
39093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39094         ac_ext=c
39095 ac_cpp='$CPP $CPPFLAGS'
39096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39099
39100
39101 fi
39102 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39103 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39104       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39105         cat >>confdefs.h <<\_ACEOF
39106 #define wxHAVE_PTHREAD_CLEANUP 1
39107 _ACEOF
39108
39109       fi
39110
39111
39112 for ac_header in sched.h
39113 do
39114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39118   echo $ECHO_N "(cached) $ECHO_C" >&6
39119 else
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 $ac_includes_default
39127
39128 #include <$ac_header>
39129 _ACEOF
39130 rm -f conftest.$ac_objext
39131 if { (ac_try="$ac_compile"
39132 case "(($ac_try" in
39133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39134   *) ac_try_echo=$ac_try;;
39135 esac
39136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39137   (eval "$ac_compile") 2>conftest.er1
39138   ac_status=$?
39139   grep -v '^ *+' conftest.er1 >conftest.err
39140   rm -f conftest.er1
39141   cat conftest.err >&5
39142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143   (exit $ac_status); } && {
39144          test -z "$ac_c_werror_flag" ||
39145          test ! -s conftest.err
39146        } && test -s conftest.$ac_objext; then
39147   eval "$as_ac_Header=yes"
39148 else
39149   echo "$as_me: failed program was:" >&5
39150 sed 's/^/| /' conftest.$ac_ext >&5
39151
39152         eval "$as_ac_Header=no"
39153 fi
39154
39155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39156 fi
39157 ac_res=`eval echo '${'$as_ac_Header'}'`
39158                { echo "$as_me:$LINENO: result: $ac_res" >&5
39159 echo "${ECHO_T}$ac_res" >&6; }
39160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39161   cat >>confdefs.h <<_ACEOF
39162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39163 _ACEOF
39164
39165 fi
39166
39167 done
39168
39169       if test "$ac_cv_header_sched_h" = "yes"; then
39170           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39171 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39172 if test "${ac_cv_func_sched_yield+set}" = set; then
39173   echo $ECHO_N "(cached) $ECHO_C" >&6
39174 else
39175   cat >conftest.$ac_ext <<_ACEOF
39176 /* confdefs.h.  */
39177 _ACEOF
39178 cat confdefs.h >>conftest.$ac_ext
39179 cat >>conftest.$ac_ext <<_ACEOF
39180 /* end confdefs.h.  */
39181 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39183 #define sched_yield innocuous_sched_yield
39184
39185 /* System header to define __stub macros and hopefully few prototypes,
39186     which can conflict with char sched_yield (); below.
39187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39188     <limits.h> exists even on freestanding compilers.  */
39189
39190 #ifdef __STDC__
39191 # include <limits.h>
39192 #else
39193 # include <assert.h>
39194 #endif
39195
39196 #undef sched_yield
39197
39198 /* Override any GCC internal prototype to avoid an error.
39199    Use char because int might match the return type of a GCC
39200    builtin and then its argument prototype would still apply.  */
39201 #ifdef __cplusplus
39202 extern "C"
39203 #endif
39204 char sched_yield ();
39205 /* The GNU C library defines this for functions which it implements
39206     to always fail with ENOSYS.  Some functions are actually named
39207     something starting with __ and the normal name is an alias.  */
39208 #if defined __stub_sched_yield || defined __stub___sched_yield
39209 choke me
39210 #endif
39211
39212 int
39213 main ()
39214 {
39215 return sched_yield ();
39216   ;
39217   return 0;
39218 }
39219 _ACEOF
39220 rm -f conftest.$ac_objext conftest$ac_exeext
39221 if { (ac_try="$ac_link"
39222 case "(($ac_try" in
39223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39224   *) ac_try_echo=$ac_try;;
39225 esac
39226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39227   (eval "$ac_link") 2>conftest.er1
39228   ac_status=$?
39229   grep -v '^ *+' conftest.er1 >conftest.err
39230   rm -f conftest.er1
39231   cat conftest.err >&5
39232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233   (exit $ac_status); } && {
39234          test -z "$ac_c_werror_flag" ||
39235          test ! -s conftest.err
39236        } && test -s conftest$ac_exeext &&
39237        $as_test_x conftest$ac_exeext; then
39238   ac_cv_func_sched_yield=yes
39239 else
39240   echo "$as_me: failed program was:" >&5
39241 sed 's/^/| /' conftest.$ac_ext >&5
39242
39243         ac_cv_func_sched_yield=no
39244 fi
39245
39246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39247       conftest$ac_exeext conftest.$ac_ext
39248 fi
39249 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39250 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39251 if test $ac_cv_func_sched_yield = yes; then
39252   cat >>confdefs.h <<\_ACEOF
39253 #define HAVE_SCHED_YIELD 1
39254 _ACEOF
39255
39256 else
39257
39258                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39259 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39260 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39261   echo $ECHO_N "(cached) $ECHO_C" >&6
39262 else
39263   ac_check_lib_save_LIBS=$LIBS
39264 LIBS="-lposix4  $LIBS"
39265 cat >conftest.$ac_ext <<_ACEOF
39266 /* confdefs.h.  */
39267 _ACEOF
39268 cat confdefs.h >>conftest.$ac_ext
39269 cat >>conftest.$ac_ext <<_ACEOF
39270 /* end confdefs.h.  */
39271
39272 /* Override any GCC internal prototype to avoid an error.
39273    Use char because int might match the return type of a GCC
39274    builtin and then its argument prototype would still apply.  */
39275 #ifdef __cplusplus
39276 extern "C"
39277 #endif
39278 char sched_yield ();
39279 int
39280 main ()
39281 {
39282 return sched_yield ();
39283   ;
39284   return 0;
39285 }
39286 _ACEOF
39287 rm -f conftest.$ac_objext conftest$ac_exeext
39288 if { (ac_try="$ac_link"
39289 case "(($ac_try" in
39290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39291   *) ac_try_echo=$ac_try;;
39292 esac
39293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39294   (eval "$ac_link") 2>conftest.er1
39295   ac_status=$?
39296   grep -v '^ *+' conftest.er1 >conftest.err
39297   rm -f conftest.er1
39298   cat conftest.err >&5
39299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300   (exit $ac_status); } && {
39301          test -z "$ac_c_werror_flag" ||
39302          test ! -s conftest.err
39303        } && test -s conftest$ac_exeext &&
39304        $as_test_x conftest$ac_exeext; then
39305   ac_cv_lib_posix4_sched_yield=yes
39306 else
39307   echo "$as_me: failed program was:" >&5
39308 sed 's/^/| /' conftest.$ac_ext >&5
39309
39310         ac_cv_lib_posix4_sched_yield=no
39311 fi
39312
39313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39314       conftest$ac_exeext conftest.$ac_ext
39315 LIBS=$ac_check_lib_save_LIBS
39316 fi
39317 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39318 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39319 if test $ac_cv_lib_posix4_sched_yield = yes; then
39320   cat >>confdefs.h <<\_ACEOF
39321 #define HAVE_SCHED_YIELD 1
39322 _ACEOF
39323  POSIX4_LINK=" -lposix4"
39324 else
39325   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39326 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39327
39328 fi
39329
39330
39331
39332 fi
39333
39334       fi
39335
39336                                           HAVE_PRIOR_FUNCS=0
39337       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39338 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39339 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39340   echo $ECHO_N "(cached) $ECHO_C" >&6
39341 else
39342   cat >conftest.$ac_ext <<_ACEOF
39343 /* confdefs.h.  */
39344 _ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h.  */
39348 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39350 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39351
39352 /* System header to define __stub macros and hopefully few prototypes,
39353     which can conflict with char pthread_attr_getschedpolicy (); below.
39354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39355     <limits.h> exists even on freestanding compilers.  */
39356
39357 #ifdef __STDC__
39358 # include <limits.h>
39359 #else
39360 # include <assert.h>
39361 #endif
39362
39363 #undef pthread_attr_getschedpolicy
39364
39365 /* Override any GCC internal prototype to avoid an error.
39366    Use char because int might match the return type of a GCC
39367    builtin and then its argument prototype would still apply.  */
39368 #ifdef __cplusplus
39369 extern "C"
39370 #endif
39371 char pthread_attr_getschedpolicy ();
39372 /* The GNU C library defines this for functions which it implements
39373     to always fail with ENOSYS.  Some functions are actually named
39374     something starting with __ and the normal name is an alias.  */
39375 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39376 choke me
39377 #endif
39378
39379 int
39380 main ()
39381 {
39382 return pthread_attr_getschedpolicy ();
39383   ;
39384   return 0;
39385 }
39386 _ACEOF
39387 rm -f conftest.$ac_objext conftest$ac_exeext
39388 if { (ac_try="$ac_link"
39389 case "(($ac_try" in
39390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39391   *) ac_try_echo=$ac_try;;
39392 esac
39393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39394   (eval "$ac_link") 2>conftest.er1
39395   ac_status=$?
39396   grep -v '^ *+' conftest.er1 >conftest.err
39397   rm -f conftest.er1
39398   cat conftest.err >&5
39399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400   (exit $ac_status); } && {
39401          test -z "$ac_c_werror_flag" ||
39402          test ! -s conftest.err
39403        } && test -s conftest$ac_exeext &&
39404        $as_test_x conftest$ac_exeext; then
39405   ac_cv_func_pthread_attr_getschedpolicy=yes
39406 else
39407   echo "$as_me: failed program was:" >&5
39408 sed 's/^/| /' conftest.$ac_ext >&5
39409
39410         ac_cv_func_pthread_attr_getschedpolicy=no
39411 fi
39412
39413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39414       conftest$ac_exeext conftest.$ac_ext
39415 fi
39416 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39417 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39418 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39419   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39420 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39421 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39422   echo $ECHO_N "(cached) $ECHO_C" >&6
39423 else
39424   cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39432 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39433
39434 /* System header to define __stub macros and hopefully few prototypes,
39435     which can conflict with char pthread_attr_setschedparam (); below.
39436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39437     <limits.h> exists even on freestanding compilers.  */
39438
39439 #ifdef __STDC__
39440 # include <limits.h>
39441 #else
39442 # include <assert.h>
39443 #endif
39444
39445 #undef pthread_attr_setschedparam
39446
39447 /* Override any GCC internal prototype to avoid an error.
39448    Use char because int might match the return type of a GCC
39449    builtin and then its argument prototype would still apply.  */
39450 #ifdef __cplusplus
39451 extern "C"
39452 #endif
39453 char pthread_attr_setschedparam ();
39454 /* The GNU C library defines this for functions which it implements
39455     to always fail with ENOSYS.  Some functions are actually named
39456     something starting with __ and the normal name is an alias.  */
39457 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39458 choke me
39459 #endif
39460
39461 int
39462 main ()
39463 {
39464 return pthread_attr_setschedparam ();
39465   ;
39466   return 0;
39467 }
39468 _ACEOF
39469 rm -f conftest.$ac_objext conftest$ac_exeext
39470 if { (ac_try="$ac_link"
39471 case "(($ac_try" in
39472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39473   *) ac_try_echo=$ac_try;;
39474 esac
39475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39476   (eval "$ac_link") 2>conftest.er1
39477   ac_status=$?
39478   grep -v '^ *+' conftest.er1 >conftest.err
39479   rm -f conftest.er1
39480   cat conftest.err >&5
39481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39482   (exit $ac_status); } && {
39483          test -z "$ac_c_werror_flag" ||
39484          test ! -s conftest.err
39485        } && test -s conftest$ac_exeext &&
39486        $as_test_x conftest$ac_exeext; then
39487   ac_cv_func_pthread_attr_setschedparam=yes
39488 else
39489   echo "$as_me: failed program was:" >&5
39490 sed 's/^/| /' conftest.$ac_ext >&5
39491
39492         ac_cv_func_pthread_attr_setschedparam=no
39493 fi
39494
39495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39496       conftest$ac_exeext conftest.$ac_ext
39497 fi
39498 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39499 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39500 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39501   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39502 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39503 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39504   echo $ECHO_N "(cached) $ECHO_C" >&6
39505 else
39506   cat >conftest.$ac_ext <<_ACEOF
39507 /* confdefs.h.  */
39508 _ACEOF
39509 cat confdefs.h >>conftest.$ac_ext
39510 cat >>conftest.$ac_ext <<_ACEOF
39511 /* end confdefs.h.  */
39512 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39514 #define sched_get_priority_max innocuous_sched_get_priority_max
39515
39516 /* System header to define __stub macros and hopefully few prototypes,
39517     which can conflict with char sched_get_priority_max (); below.
39518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39519     <limits.h> exists even on freestanding compilers.  */
39520
39521 #ifdef __STDC__
39522 # include <limits.h>
39523 #else
39524 # include <assert.h>
39525 #endif
39526
39527 #undef sched_get_priority_max
39528
39529 /* Override any GCC internal prototype to avoid an error.
39530    Use char because int might match the return type of a GCC
39531    builtin and then its argument prototype would still apply.  */
39532 #ifdef __cplusplus
39533 extern "C"
39534 #endif
39535 char sched_get_priority_max ();
39536 /* The GNU C library defines this for functions which it implements
39537     to always fail with ENOSYS.  Some functions are actually named
39538     something starting with __ and the normal name is an alias.  */
39539 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39540 choke me
39541 #endif
39542
39543 int
39544 main ()
39545 {
39546 return sched_get_priority_max ();
39547   ;
39548   return 0;
39549 }
39550 _ACEOF
39551 rm -f conftest.$ac_objext conftest$ac_exeext
39552 if { (ac_try="$ac_link"
39553 case "(($ac_try" in
39554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39555   *) ac_try_echo=$ac_try;;
39556 esac
39557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39558   (eval "$ac_link") 2>conftest.er1
39559   ac_status=$?
39560   grep -v '^ *+' conftest.er1 >conftest.err
39561   rm -f conftest.er1
39562   cat conftest.err >&5
39563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39564   (exit $ac_status); } && {
39565          test -z "$ac_c_werror_flag" ||
39566          test ! -s conftest.err
39567        } && test -s conftest$ac_exeext &&
39568        $as_test_x conftest$ac_exeext; then
39569   ac_cv_func_sched_get_priority_max=yes
39570 else
39571   echo "$as_me: failed program was:" >&5
39572 sed 's/^/| /' conftest.$ac_ext >&5
39573
39574         ac_cv_func_sched_get_priority_max=no
39575 fi
39576
39577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39578       conftest$ac_exeext conftest.$ac_ext
39579 fi
39580 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39581 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39582 if test $ac_cv_func_sched_get_priority_max = yes; then
39583   HAVE_PRIOR_FUNCS=1
39584 else
39585   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39586 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39587 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39588   echo $ECHO_N "(cached) $ECHO_C" >&6
39589 else
39590   ac_check_lib_save_LIBS=$LIBS
39591 LIBS="-lposix4  $LIBS"
39592 cat >conftest.$ac_ext <<_ACEOF
39593 /* confdefs.h.  */
39594 _ACEOF
39595 cat confdefs.h >>conftest.$ac_ext
39596 cat >>conftest.$ac_ext <<_ACEOF
39597 /* end confdefs.h.  */
39598
39599 /* Override any GCC internal prototype to avoid an error.
39600    Use char because int might match the return type of a GCC
39601    builtin and then its argument prototype would still apply.  */
39602 #ifdef __cplusplus
39603 extern "C"
39604 #endif
39605 char sched_get_priority_max ();
39606 int
39607 main ()
39608 {
39609 return sched_get_priority_max ();
39610   ;
39611   return 0;
39612 }
39613 _ACEOF
39614 rm -f conftest.$ac_objext conftest$ac_exeext
39615 if { (ac_try="$ac_link"
39616 case "(($ac_try" in
39617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39618   *) ac_try_echo=$ac_try;;
39619 esac
39620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39621   (eval "$ac_link") 2>conftest.er1
39622   ac_status=$?
39623   grep -v '^ *+' conftest.er1 >conftest.err
39624   rm -f conftest.er1
39625   cat conftest.err >&5
39626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627   (exit $ac_status); } && {
39628          test -z "$ac_c_werror_flag" ||
39629          test ! -s conftest.err
39630        } && test -s conftest$ac_exeext &&
39631        $as_test_x conftest$ac_exeext; then
39632   ac_cv_lib_posix4_sched_get_priority_max=yes
39633 else
39634   echo "$as_me: failed program was:" >&5
39635 sed 's/^/| /' conftest.$ac_ext >&5
39636
39637         ac_cv_lib_posix4_sched_get_priority_max=no
39638 fi
39639
39640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39641       conftest$ac_exeext conftest.$ac_ext
39642 LIBS=$ac_check_lib_save_LIBS
39643 fi
39644 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39645 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39646 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39647
39648                                 HAVE_PRIOR_FUNCS=1
39649                                 POSIX4_LINK=" -lposix4"
39650
39651 fi
39652
39653
39654 fi
39655
39656
39657 fi
39658
39659
39660 fi
39661
39662
39663       if test "$HAVE_PRIOR_FUNCS" = 1; then
39664         cat >>confdefs.h <<\_ACEOF
39665 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39666 _ACEOF
39667
39668       else
39669         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39670 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39671       fi
39672
39673       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39674 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39675 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39676   echo $ECHO_N "(cached) $ECHO_C" >&6
39677 else
39678   cat >conftest.$ac_ext <<_ACEOF
39679 /* confdefs.h.  */
39680 _ACEOF
39681 cat confdefs.h >>conftest.$ac_ext
39682 cat >>conftest.$ac_ext <<_ACEOF
39683 /* end confdefs.h.  */
39684 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39686 #define pthread_cancel innocuous_pthread_cancel
39687
39688 /* System header to define __stub macros and hopefully few prototypes,
39689     which can conflict with char pthread_cancel (); below.
39690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39691     <limits.h> exists even on freestanding compilers.  */
39692
39693 #ifdef __STDC__
39694 # include <limits.h>
39695 #else
39696 # include <assert.h>
39697 #endif
39698
39699 #undef pthread_cancel
39700
39701 /* Override any GCC internal prototype to avoid an error.
39702    Use char because int might match the return type of a GCC
39703    builtin and then its argument prototype would still apply.  */
39704 #ifdef __cplusplus
39705 extern "C"
39706 #endif
39707 char pthread_cancel ();
39708 /* The GNU C library defines this for functions which it implements
39709     to always fail with ENOSYS.  Some functions are actually named
39710     something starting with __ and the normal name is an alias.  */
39711 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39712 choke me
39713 #endif
39714
39715 int
39716 main ()
39717 {
39718 return pthread_cancel ();
39719   ;
39720   return 0;
39721 }
39722 _ACEOF
39723 rm -f conftest.$ac_objext conftest$ac_exeext
39724 if { (ac_try="$ac_link"
39725 case "(($ac_try" in
39726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39727   *) ac_try_echo=$ac_try;;
39728 esac
39729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39730   (eval "$ac_link") 2>conftest.er1
39731   ac_status=$?
39732   grep -v '^ *+' conftest.er1 >conftest.err
39733   rm -f conftest.er1
39734   cat conftest.err >&5
39735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736   (exit $ac_status); } && {
39737          test -z "$ac_c_werror_flag" ||
39738          test ! -s conftest.err
39739        } && test -s conftest$ac_exeext &&
39740        $as_test_x conftest$ac_exeext; then
39741   ac_cv_func_pthread_cancel=yes
39742 else
39743   echo "$as_me: failed program was:" >&5
39744 sed 's/^/| /' conftest.$ac_ext >&5
39745
39746         ac_cv_func_pthread_cancel=no
39747 fi
39748
39749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39750       conftest$ac_exeext conftest.$ac_ext
39751 fi
39752 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39753 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39754 if test $ac_cv_func_pthread_cancel = yes; then
39755   cat >>confdefs.h <<\_ACEOF
39756 #define HAVE_PTHREAD_CANCEL 1
39757 _ACEOF
39758
39759 else
39760   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39761 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39762 fi
39763
39764
39765       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39766 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39767 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39768   echo $ECHO_N "(cached) $ECHO_C" >&6
39769 else
39770   cat >conftest.$ac_ext <<_ACEOF
39771 /* confdefs.h.  */
39772 _ACEOF
39773 cat confdefs.h >>conftest.$ac_ext
39774 cat >>conftest.$ac_ext <<_ACEOF
39775 /* end confdefs.h.  */
39776 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39778 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39779
39780 /* System header to define __stub macros and hopefully few prototypes,
39781     which can conflict with char pthread_mutex_timedlock (); below.
39782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39783     <limits.h> exists even on freestanding compilers.  */
39784
39785 #ifdef __STDC__
39786 # include <limits.h>
39787 #else
39788 # include <assert.h>
39789 #endif
39790
39791 #undef pthread_mutex_timedlock
39792
39793 /* Override any GCC internal prototype to avoid an error.
39794    Use char because int might match the return type of a GCC
39795    builtin and then its argument prototype would still apply.  */
39796 #ifdef __cplusplus
39797 extern "C"
39798 #endif
39799 char pthread_mutex_timedlock ();
39800 /* The GNU C library defines this for functions which it implements
39801     to always fail with ENOSYS.  Some functions are actually named
39802     something starting with __ and the normal name is an alias.  */
39803 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39804 choke me
39805 #endif
39806
39807 int
39808 main ()
39809 {
39810 return pthread_mutex_timedlock ();
39811   ;
39812   return 0;
39813 }
39814 _ACEOF
39815 rm -f conftest.$ac_objext conftest$ac_exeext
39816 if { (ac_try="$ac_link"
39817 case "(($ac_try" in
39818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39819   *) ac_try_echo=$ac_try;;
39820 esac
39821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39822   (eval "$ac_link") 2>conftest.er1
39823   ac_status=$?
39824   grep -v '^ *+' conftest.er1 >conftest.err
39825   rm -f conftest.er1
39826   cat conftest.err >&5
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); } && {
39829          test -z "$ac_c_werror_flag" ||
39830          test ! -s conftest.err
39831        } && test -s conftest$ac_exeext &&
39832        $as_test_x conftest$ac_exeext; then
39833   ac_cv_func_pthread_mutex_timedlock=yes
39834 else
39835   echo "$as_me: failed program was:" >&5
39836 sed 's/^/| /' conftest.$ac_ext >&5
39837
39838         ac_cv_func_pthread_mutex_timedlock=no
39839 fi
39840
39841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39842       conftest$ac_exeext conftest.$ac_ext
39843 fi
39844 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39845 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39846 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39847   cat >>confdefs.h <<\_ACEOF
39848 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39849 _ACEOF
39850
39851 else
39852   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39853 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39854 fi
39855
39856
39857       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39858 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39859 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39860   echo $ECHO_N "(cached) $ECHO_C" >&6
39861 else
39862   cat >conftest.$ac_ext <<_ACEOF
39863 /* confdefs.h.  */
39864 _ACEOF
39865 cat confdefs.h >>conftest.$ac_ext
39866 cat >>conftest.$ac_ext <<_ACEOF
39867 /* end confdefs.h.  */
39868 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39870 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39871
39872 /* System header to define __stub macros and hopefully few prototypes,
39873     which can conflict with char pthread_attr_setstacksize (); below.
39874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39875     <limits.h> exists even on freestanding compilers.  */
39876
39877 #ifdef __STDC__
39878 # include <limits.h>
39879 #else
39880 # include <assert.h>
39881 #endif
39882
39883 #undef pthread_attr_setstacksize
39884
39885 /* Override any GCC internal prototype to avoid an error.
39886    Use char because int might match the return type of a GCC
39887    builtin and then its argument prototype would still apply.  */
39888 #ifdef __cplusplus
39889 extern "C"
39890 #endif
39891 char pthread_attr_setstacksize ();
39892 /* The GNU C library defines this for functions which it implements
39893     to always fail with ENOSYS.  Some functions are actually named
39894     something starting with __ and the normal name is an alias.  */
39895 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39896 choke me
39897 #endif
39898
39899 int
39900 main ()
39901 {
39902 return pthread_attr_setstacksize ();
39903   ;
39904   return 0;
39905 }
39906 _ACEOF
39907 rm -f conftest.$ac_objext conftest$ac_exeext
39908 if { (ac_try="$ac_link"
39909 case "(($ac_try" in
39910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39911   *) ac_try_echo=$ac_try;;
39912 esac
39913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39914   (eval "$ac_link") 2>conftest.er1
39915   ac_status=$?
39916   grep -v '^ *+' conftest.er1 >conftest.err
39917   rm -f conftest.er1
39918   cat conftest.err >&5
39919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920   (exit $ac_status); } && {
39921          test -z "$ac_c_werror_flag" ||
39922          test ! -s conftest.err
39923        } && test -s conftest$ac_exeext &&
39924        $as_test_x conftest$ac_exeext; then
39925   ac_cv_func_pthread_attr_setstacksize=yes
39926 else
39927   echo "$as_me: failed program was:" >&5
39928 sed 's/^/| /' conftest.$ac_ext >&5
39929
39930         ac_cv_func_pthread_attr_setstacksize=no
39931 fi
39932
39933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39934       conftest$ac_exeext conftest.$ac_ext
39935 fi
39936 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39937 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
39938 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39939   cat >>confdefs.h <<\_ACEOF
39940 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39941 _ACEOF
39942
39943 fi
39944
39945
39946
39947       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39948 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
39949 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39950   echo $ECHO_N "(cached) $ECHO_C" >&6
39951 else
39952
39953         cat >conftest.$ac_ext <<_ACEOF
39954 /* confdefs.h.  */
39955 _ACEOF
39956 cat confdefs.h >>conftest.$ac_ext
39957 cat >>conftest.$ac_ext <<_ACEOF
39958 /* end confdefs.h.  */
39959 #include <pthread.h>
39960 int
39961 main ()
39962 {
39963
39964                pthread_mutexattr_t attr;
39965                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39966
39967   ;
39968   return 0;
39969 }
39970 _ACEOF
39971 rm -f conftest.$ac_objext
39972 if { (ac_try="$ac_compile"
39973 case "(($ac_try" in
39974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39975   *) ac_try_echo=$ac_try;;
39976 esac
39977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39978   (eval "$ac_compile") 2>conftest.er1
39979   ac_status=$?
39980   grep -v '^ *+' conftest.er1 >conftest.err
39981   rm -f conftest.er1
39982   cat conftest.err >&5
39983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984   (exit $ac_status); } && {
39985          test -z "$ac_c_werror_flag" ||
39986          test ! -s conftest.err
39987        } && test -s conftest.$ac_objext; then
39988   wx_cv_type_pthread_mutexattr_t=yes
39989 else
39990   echo "$as_me: failed program was:" >&5
39991 sed 's/^/| /' conftest.$ac_ext >&5
39992
39993         wx_cv_type_pthread_mutexattr_t=no
39994
39995 fi
39996
39997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39998
39999 fi
40000 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40001 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40002
40003       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40004         cat >>confdefs.h <<\_ACEOF
40005 #define HAVE_PTHREAD_MUTEXATTR_T 1
40006 _ACEOF
40007
40008
40009                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40010 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40011 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40012   echo $ECHO_N "(cached) $ECHO_C" >&6
40013 else
40014
40015                        cat >conftest.$ac_ext <<_ACEOF
40016 /* confdefs.h.  */
40017 _ACEOF
40018 cat confdefs.h >>conftest.$ac_ext
40019 cat >>conftest.$ac_ext <<_ACEOF
40020 /* end confdefs.h.  */
40021 #include <pthread.h>
40022 int
40023 main ()
40024 {
40025
40026                                pthread_mutexattr_t attr;
40027                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40028
40029   ;
40030   return 0;
40031 }
40032 _ACEOF
40033 rm -f conftest.$ac_objext
40034 if { (ac_try="$ac_compile"
40035 case "(($ac_try" in
40036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40037   *) ac_try_echo=$ac_try;;
40038 esac
40039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40040   (eval "$ac_compile") 2>conftest.er1
40041   ac_status=$?
40042   grep -v '^ *+' conftest.er1 >conftest.err
40043   rm -f conftest.er1
40044   cat conftest.err >&5
40045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046   (exit $ac_status); } && {
40047          test -z "$ac_c_werror_flag" ||
40048          test ! -s conftest.err
40049        } && test -s conftest.$ac_objext; then
40050   wx_cv_func_pthread_mutexattr_settype_decl=yes
40051 else
40052   echo "$as_me: failed program was:" >&5
40053 sed 's/^/| /' conftest.$ac_ext >&5
40054
40055         wx_cv_func_pthread_mutexattr_settype_decl=no
40056
40057 fi
40058
40059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40060
40061 fi
40062 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40063 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40064         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40065             cat >>confdefs.h <<\_ACEOF
40066 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40067 _ACEOF
40068
40069         fi
40070       else
40071                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40072 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40073 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40074   echo $ECHO_N "(cached) $ECHO_C" >&6
40075 else
40076
40077             cat >conftest.$ac_ext <<_ACEOF
40078 /* confdefs.h.  */
40079 _ACEOF
40080 cat confdefs.h >>conftest.$ac_ext
40081 cat >>conftest.$ac_ext <<_ACEOF
40082 /* end confdefs.h.  */
40083 #include <pthread.h>
40084 int
40085 main ()
40086 {
40087
40088                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40089
40090   ;
40091   return 0;
40092 }
40093 _ACEOF
40094 rm -f conftest.$ac_objext
40095 if { (ac_try="$ac_compile"
40096 case "(($ac_try" in
40097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40098   *) ac_try_echo=$ac_try;;
40099 esac
40100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40101   (eval "$ac_compile") 2>conftest.er1
40102   ac_status=$?
40103   grep -v '^ *+' conftest.er1 >conftest.err
40104   rm -f conftest.er1
40105   cat conftest.err >&5
40106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107   (exit $ac_status); } && {
40108          test -z "$ac_c_werror_flag" ||
40109          test ! -s conftest.err
40110        } && test -s conftest.$ac_objext; then
40111
40112                     wx_cv_type_pthread_rec_mutex_init=yes
40113
40114 else
40115   echo "$as_me: failed program was:" >&5
40116 sed 's/^/| /' conftest.$ac_ext >&5
40117
40118
40119                     wx_cv_type_pthread_rec_mutex_init=no
40120
40121
40122 fi
40123
40124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40125
40126 fi
40127 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40128 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40129         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40130           cat >>confdefs.h <<\_ACEOF
40131 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40132 _ACEOF
40133
40134         else
40135                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40136 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40137         fi
40138       fi
40139     fi
40140
40141 else
40142     if test "$wxUSE_THREADS" = "yes" ; then
40143       case "${host}" in
40144         x86_64-*-mingw32* )
40145         ;;
40146         *-*-mingw32* )
40147                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40148 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40149 if test "${wx_cv_cflags_mthread+set}" = set; then
40150   echo $ECHO_N "(cached) $ECHO_C" >&6
40151 else
40152
40153                     CFLAGS_OLD="$CFLAGS"
40154                     CFLAGS="-mthreads $CFLAGS"
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
40162 int
40163 main ()
40164 {
40165
40166   ;
40167   return 0;
40168 }
40169 _ACEOF
40170 rm -f conftest.$ac_objext
40171 if { (ac_try="$ac_compile"
40172 case "(($ac_try" in
40173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40174   *) ac_try_echo=$ac_try;;
40175 esac
40176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40177   (eval "$ac_compile") 2>conftest.er1
40178   ac_status=$?
40179   grep -v '^ *+' conftest.er1 >conftest.err
40180   rm -f conftest.er1
40181   cat conftest.err >&5
40182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183   (exit $ac_status); } && {
40184          test -z "$ac_c_werror_flag" ||
40185          test ! -s conftest.err
40186        } && test -s conftest.$ac_objext; then
40187   wx_cv_cflags_mthread=yes
40188 else
40189   echo "$as_me: failed program was:" >&5
40190 sed 's/^/| /' conftest.$ac_ext >&5
40191
40192         wx_cv_cflags_mthread=no
40193
40194 fi
40195
40196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40197
40198
40199 fi
40200 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40201 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40202
40203             if test "$wx_cv_cflags_mthread" = "yes"; then
40204                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40205                 LDFLAGS="$LDFLAGS -mthreads"
40206             else
40207                                 CFLAGS="$CFLAGS_OLD"
40208             fi
40209         ;;
40210         *-pc-os2*emx )
40211             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40212             LDFLAGS="$LDFLAGS -Zmt"
40213         ;;
40214       esac
40215     fi
40216 fi
40217
40218 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40219 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40220 if test "${ac_cv_func_localtime_r+set}" = set; then
40221   echo $ECHO_N "(cached) $ECHO_C" >&6
40222 else
40223   cat >conftest.$ac_ext <<_ACEOF
40224 /* confdefs.h.  */
40225 _ACEOF
40226 cat confdefs.h >>conftest.$ac_ext
40227 cat >>conftest.$ac_ext <<_ACEOF
40228 /* end confdefs.h.  */
40229 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40231 #define localtime_r innocuous_localtime_r
40232
40233 /* System header to define __stub macros and hopefully few prototypes,
40234     which can conflict with char localtime_r (); below.
40235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40236     <limits.h> exists even on freestanding compilers.  */
40237
40238 #ifdef __STDC__
40239 # include <limits.h>
40240 #else
40241 # include <assert.h>
40242 #endif
40243
40244 #undef localtime_r
40245
40246 /* Override any GCC internal prototype to avoid an error.
40247    Use char because int might match the return type of a GCC
40248    builtin and then its argument prototype would still apply.  */
40249 #ifdef __cplusplus
40250 extern "C"
40251 #endif
40252 char localtime_r ();
40253 /* The GNU C library defines this for functions which it implements
40254     to always fail with ENOSYS.  Some functions are actually named
40255     something starting with __ and the normal name is an alias.  */
40256 #if defined __stub_localtime_r || defined __stub___localtime_r
40257 choke me
40258 #endif
40259
40260 int
40261 main ()
40262 {
40263 return localtime_r ();
40264   ;
40265   return 0;
40266 }
40267 _ACEOF
40268 rm -f conftest.$ac_objext conftest$ac_exeext
40269 if { (ac_try="$ac_link"
40270 case "(($ac_try" in
40271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40272   *) ac_try_echo=$ac_try;;
40273 esac
40274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40275   (eval "$ac_link") 2>conftest.er1
40276   ac_status=$?
40277   grep -v '^ *+' conftest.er1 >conftest.err
40278   rm -f conftest.er1
40279   cat conftest.err >&5
40280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281   (exit $ac_status); } && {
40282          test -z "$ac_c_werror_flag" ||
40283          test ! -s conftest.err
40284        } && test -s conftest$ac_exeext &&
40285        $as_test_x conftest$ac_exeext; then
40286   ac_cv_func_localtime_r=yes
40287 else
40288   echo "$as_me: failed program was:" >&5
40289 sed 's/^/| /' conftest.$ac_ext >&5
40290
40291         ac_cv_func_localtime_r=no
40292 fi
40293
40294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40295       conftest$ac_exeext conftest.$ac_ext
40296 fi
40297 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40298 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40299 if test $ac_cv_func_localtime_r = yes; then
40300    cat >>confdefs.h <<\_ACEOF
40301 #define HAVE_LOCALTIME_R 1
40302 _ACEOF
40303
40304 fi
40305
40306 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40307 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40308 if test "${ac_cv_func_gmtime_r+set}" = set; then
40309   echo $ECHO_N "(cached) $ECHO_C" >&6
40310 else
40311   cat >conftest.$ac_ext <<_ACEOF
40312 /* confdefs.h.  */
40313 _ACEOF
40314 cat confdefs.h >>conftest.$ac_ext
40315 cat >>conftest.$ac_ext <<_ACEOF
40316 /* end confdefs.h.  */
40317 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40319 #define gmtime_r innocuous_gmtime_r
40320
40321 /* System header to define __stub macros and hopefully few prototypes,
40322     which can conflict with char gmtime_r (); below.
40323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40324     <limits.h> exists even on freestanding compilers.  */
40325
40326 #ifdef __STDC__
40327 # include <limits.h>
40328 #else
40329 # include <assert.h>
40330 #endif
40331
40332 #undef gmtime_r
40333
40334 /* Override any GCC internal prototype to avoid an error.
40335    Use char because int might match the return type of a GCC
40336    builtin and then its argument prototype would still apply.  */
40337 #ifdef __cplusplus
40338 extern "C"
40339 #endif
40340 char gmtime_r ();
40341 /* The GNU C library defines this for functions which it implements
40342     to always fail with ENOSYS.  Some functions are actually named
40343     something starting with __ and the normal name is an alias.  */
40344 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40345 choke me
40346 #endif
40347
40348 int
40349 main ()
40350 {
40351 return gmtime_r ();
40352   ;
40353   return 0;
40354 }
40355 _ACEOF
40356 rm -f conftest.$ac_objext conftest$ac_exeext
40357 if { (ac_try="$ac_link"
40358 case "(($ac_try" in
40359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40360   *) ac_try_echo=$ac_try;;
40361 esac
40362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40363   (eval "$ac_link") 2>conftest.er1
40364   ac_status=$?
40365   grep -v '^ *+' conftest.er1 >conftest.err
40366   rm -f conftest.er1
40367   cat conftest.err >&5
40368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40369   (exit $ac_status); } && {
40370          test -z "$ac_c_werror_flag" ||
40371          test ! -s conftest.err
40372        } && test -s conftest$ac_exeext &&
40373        $as_test_x conftest$ac_exeext; then
40374   ac_cv_func_gmtime_r=yes
40375 else
40376   echo "$as_me: failed program was:" >&5
40377 sed 's/^/| /' conftest.$ac_ext >&5
40378
40379         ac_cv_func_gmtime_r=no
40380 fi
40381
40382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40383       conftest$ac_exeext conftest.$ac_ext
40384 fi
40385 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40386 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40387 if test $ac_cv_func_gmtime_r = yes; then
40388    cat >>confdefs.h <<\_ACEOF
40389 #define HAVE_GMTIME_R 1
40390 _ACEOF
40391
40392 fi
40393
40394
40395
40396
40397     ac_ext=c
40398 ac_cpp='$CPP $CPPFLAGS'
40399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40402
40403     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40404 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40405
40406     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40407   echo $ECHO_N "(cached) $ECHO_C" >&6
40408 else
40409
40410
40411 ################################################################
40412
40413 ac_cv_func_which_gethostbyname_r=unknown
40414
40415 #
40416 # ONE ARGUMENT (sanity check)
40417 #
40418
40419 # This should fail, as there is no variant of gethostbyname_r() that takes
40420 # a single argument. If it actually compiles, then we can assume that
40421 # netdb.h is not declaring the function, and the compiler is thereby
40422 # assuming an implicit prototype. In which case, we're out of luck.
40423 #
40424 cat >conftest.$ac_ext <<_ACEOF
40425 /* confdefs.h.  */
40426 _ACEOF
40427 cat confdefs.h >>conftest.$ac_ext
40428 cat >>conftest.$ac_ext <<_ACEOF
40429 /* end confdefs.h.  */
40430 #include <netdb.h>
40431 int
40432 main ()
40433 {
40434
40435             char *name = "www.gnu.org";
40436             (void)gethostbyname_r(name) /* ; */
40437
40438   ;
40439   return 0;
40440 }
40441 _ACEOF
40442 rm -f conftest.$ac_objext
40443 if { (ac_try="$ac_compile"
40444 case "(($ac_try" in
40445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40446   *) ac_try_echo=$ac_try;;
40447 esac
40448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40449   (eval "$ac_compile") 2>conftest.er1
40450   ac_status=$?
40451   grep -v '^ *+' conftest.er1 >conftest.err
40452   rm -f conftest.er1
40453   cat conftest.err >&5
40454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455   (exit $ac_status); } && {
40456          test -z "$ac_c_werror_flag" ||
40457          test ! -s conftest.err
40458        } && test -s conftest.$ac_objext; then
40459   ac_cv_func_which_gethostbyname_r=no
40460 else
40461   echo "$as_me: failed program was:" >&5
40462 sed 's/^/| /' conftest.$ac_ext >&5
40463
40464
40465 fi
40466
40467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40468
40469 #
40470 # SIX ARGUMENTS
40471 # (e.g. Linux)
40472 #
40473
40474 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40475
40476 cat >conftest.$ac_ext <<_ACEOF
40477 /* confdefs.h.  */
40478 _ACEOF
40479 cat confdefs.h >>conftest.$ac_ext
40480 cat >>conftest.$ac_ext <<_ACEOF
40481 /* end confdefs.h.  */
40482 #include <netdb.h>
40483 int
40484 main ()
40485 {
40486
40487             char *name = "www.gnu.org";
40488             struct hostent ret, *retp;
40489             char buf[1024];
40490             int buflen = 1024;
40491             int my_h_errno;
40492             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40493
40494   ;
40495   return 0;
40496 }
40497 _ACEOF
40498 rm -f conftest.$ac_objext
40499 if { (ac_try="$ac_compile"
40500 case "(($ac_try" in
40501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40502   *) ac_try_echo=$ac_try;;
40503 esac
40504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40505   (eval "$ac_compile") 2>conftest.er1
40506   ac_status=$?
40507   grep -v '^ *+' conftest.er1 >conftest.err
40508   rm -f conftest.er1
40509   cat conftest.err >&5
40510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511   (exit $ac_status); } && {
40512          test -z "$ac_c_werror_flag" ||
40513          test ! -s conftest.err
40514        } && test -s conftest.$ac_objext; then
40515   ac_cv_func_which_gethostbyname_r=six
40516 else
40517   echo "$as_me: failed program was:" >&5
40518 sed 's/^/| /' conftest.$ac_ext >&5
40519
40520
40521 fi
40522
40523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40524
40525 fi
40526
40527 #
40528 # FIVE ARGUMENTS
40529 # (e.g. Solaris)
40530 #
40531
40532 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40533
40534 cat >conftest.$ac_ext <<_ACEOF
40535 /* confdefs.h.  */
40536 _ACEOF
40537 cat confdefs.h >>conftest.$ac_ext
40538 cat >>conftest.$ac_ext <<_ACEOF
40539 /* end confdefs.h.  */
40540 #include <netdb.h>
40541 int
40542 main ()
40543 {
40544
40545             char *name = "www.gnu.org";
40546             struct hostent ret;
40547             char buf[1024];
40548             int buflen = 1024;
40549             int my_h_errno;
40550             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40551
40552   ;
40553   return 0;
40554 }
40555 _ACEOF
40556 rm -f conftest.$ac_objext
40557 if { (ac_try="$ac_compile"
40558 case "(($ac_try" in
40559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40560   *) ac_try_echo=$ac_try;;
40561 esac
40562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40563   (eval "$ac_compile") 2>conftest.er1
40564   ac_status=$?
40565   grep -v '^ *+' conftest.er1 >conftest.err
40566   rm -f conftest.er1
40567   cat conftest.err >&5
40568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569   (exit $ac_status); } && {
40570          test -z "$ac_c_werror_flag" ||
40571          test ! -s conftest.err
40572        } && test -s conftest.$ac_objext; then
40573   ac_cv_func_which_gethostbyname_r=five
40574 else
40575   echo "$as_me: failed program was:" >&5
40576 sed 's/^/| /' conftest.$ac_ext >&5
40577
40578
40579 fi
40580
40581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40582
40583 fi
40584
40585 #
40586 # THREE ARGUMENTS
40587 # (e.g. AIX, HP-UX, Tru64)
40588 #
40589
40590 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40591
40592 cat >conftest.$ac_ext <<_ACEOF
40593 /* confdefs.h.  */
40594 _ACEOF
40595 cat confdefs.h >>conftest.$ac_ext
40596 cat >>conftest.$ac_ext <<_ACEOF
40597 /* end confdefs.h.  */
40598 #include <netdb.h>
40599 int
40600 main ()
40601 {
40602
40603             char *name = "www.gnu.org";
40604             struct hostent ret;
40605             struct hostent_data data;
40606             (void)gethostbyname_r(name, &ret, &data) /* ; */
40607
40608   ;
40609   return 0;
40610 }
40611 _ACEOF
40612 rm -f conftest.$ac_objext
40613 if { (ac_try="$ac_compile"
40614 case "(($ac_try" in
40615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40616   *) ac_try_echo=$ac_try;;
40617 esac
40618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40619   (eval "$ac_compile") 2>conftest.er1
40620   ac_status=$?
40621   grep -v '^ *+' conftest.er1 >conftest.err
40622   rm -f conftest.er1
40623   cat conftest.err >&5
40624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625   (exit $ac_status); } && {
40626          test -z "$ac_c_werror_flag" ||
40627          test ! -s conftest.err
40628        } && test -s conftest.$ac_objext; then
40629   ac_cv_func_which_gethostbyname_r=three
40630 else
40631   echo "$as_me: failed program was:" >&5
40632 sed 's/^/| /' conftest.$ac_ext >&5
40633
40634
40635 fi
40636
40637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40638
40639 fi
40640
40641 ################################################################
40642
40643
40644 fi
40645
40646 case "$ac_cv_func_which_gethostbyname_r" in
40647     three)
40648     { echo "$as_me:$LINENO: result: three" >&5
40649 echo "${ECHO_T}three" >&6; }
40650     cat >>confdefs.h <<\_ACEOF
40651 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40652 _ACEOF
40653
40654     ;;
40655
40656     five)
40657     { echo "$as_me:$LINENO: result: five" >&5
40658 echo "${ECHO_T}five" >&6; }
40659     cat >>confdefs.h <<\_ACEOF
40660 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40661 _ACEOF
40662
40663     ;;
40664
40665     six)
40666     { echo "$as_me:$LINENO: result: six" >&5
40667 echo "${ECHO_T}six" >&6; }
40668     cat >>confdefs.h <<\_ACEOF
40669 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40670 _ACEOF
40671
40672     ;;
40673
40674     no)
40675     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40676 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40677     ;;
40678
40679     unknown)
40680     { echo "$as_me:$LINENO: result: can't tell" >&5
40681 echo "${ECHO_T}can't tell" >&6; }
40682     ;;
40683
40684     *)
40685     { { echo "$as_me:$LINENO: error: internal error" >&5
40686 echo "$as_me: error: internal error" >&2;}
40687    { (exit 1); exit 1; }; }
40688     ;;
40689 esac
40690
40691 ac_ext=c
40692 ac_cpp='$CPP $CPPFLAGS'
40693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40696
40697
40698
40699       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40700               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40701           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40702 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40703 if test "${ac_cv_func_gethostbyname+set}" = set; then
40704   echo $ECHO_N "(cached) $ECHO_C" >&6
40705 else
40706   cat >conftest.$ac_ext <<_ACEOF
40707 /* confdefs.h.  */
40708 _ACEOF
40709 cat confdefs.h >>conftest.$ac_ext
40710 cat >>conftest.$ac_ext <<_ACEOF
40711 /* end confdefs.h.  */
40712 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40714 #define gethostbyname innocuous_gethostbyname
40715
40716 /* System header to define __stub macros and hopefully few prototypes,
40717     which can conflict with char gethostbyname (); below.
40718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40719     <limits.h> exists even on freestanding compilers.  */
40720
40721 #ifdef __STDC__
40722 # include <limits.h>
40723 #else
40724 # include <assert.h>
40725 #endif
40726
40727 #undef gethostbyname
40728
40729 /* Override any GCC internal prototype to avoid an error.
40730    Use char because int might match the return type of a GCC
40731    builtin and then its argument prototype would still apply.  */
40732 #ifdef __cplusplus
40733 extern "C"
40734 #endif
40735 char gethostbyname ();
40736 /* The GNU C library defines this for functions which it implements
40737     to always fail with ENOSYS.  Some functions are actually named
40738     something starting with __ and the normal name is an alias.  */
40739 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40740 choke me
40741 #endif
40742
40743 int
40744 main ()
40745 {
40746 return gethostbyname ();
40747   ;
40748   return 0;
40749 }
40750 _ACEOF
40751 rm -f conftest.$ac_objext conftest$ac_exeext
40752 if { (ac_try="$ac_link"
40753 case "(($ac_try" in
40754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40755   *) ac_try_echo=$ac_try;;
40756 esac
40757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40758   (eval "$ac_link") 2>conftest.er1
40759   ac_status=$?
40760   grep -v '^ *+' conftest.er1 >conftest.err
40761   rm -f conftest.er1
40762   cat conftest.err >&5
40763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764   (exit $ac_status); } && {
40765          test -z "$ac_c_werror_flag" ||
40766          test ! -s conftest.err
40767        } && test -s conftest$ac_exeext &&
40768        $as_test_x conftest$ac_exeext; then
40769   ac_cv_func_gethostbyname=yes
40770 else
40771   echo "$as_me: failed program was:" >&5
40772 sed 's/^/| /' conftest.$ac_ext >&5
40773
40774         ac_cv_func_gethostbyname=no
40775 fi
40776
40777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40778       conftest$ac_exeext conftest.$ac_ext
40779 fi
40780 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40781 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40782 if test $ac_cv_func_gethostbyname = yes; then
40783    cat >>confdefs.h <<\_ACEOF
40784 #define HAVE_GETHOSTBYNAME 1
40785 _ACEOF
40786
40787 fi
40788
40789       fi
40790
40791 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40792 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40793 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40794   echo $ECHO_N "(cached) $ECHO_C" >&6
40795 else
40796
40797                 ac_ext=cpp
40798 ac_cpp='$CXXCPP $CPPFLAGS'
40799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40802
40803
40804         cat >conftest.$ac_ext <<_ACEOF
40805 /* confdefs.h.  */
40806 _ACEOF
40807 cat confdefs.h >>conftest.$ac_ext
40808 cat >>conftest.$ac_ext <<_ACEOF
40809 /* end confdefs.h.  */
40810 #include <netdb.h>
40811 int
40812 main ()
40813 {
40814
40815                 char *name;
40816                 char *proto;
40817                 struct servent *se, *res;
40818                 char buffer[2048];
40819                 int buflen = 2048;
40820                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40821
40822   ;
40823   return 0;
40824 }
40825 _ACEOF
40826 rm -f conftest.$ac_objext
40827 if { (ac_try="$ac_compile"
40828 case "(($ac_try" in
40829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830   *) ac_try_echo=$ac_try;;
40831 esac
40832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40833   (eval "$ac_compile") 2>conftest.er1
40834   ac_status=$?
40835   grep -v '^ *+' conftest.er1 >conftest.err
40836   rm -f conftest.er1
40837   cat conftest.err >&5
40838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40839   (exit $ac_status); } && {
40840          test -z "$ac_cxx_werror_flag" ||
40841          test ! -s conftest.err
40842        } && test -s conftest.$ac_objext; then
40843   ac_cv_func_which_getservbyname_r=six
40844 else
40845   echo "$as_me: failed program was:" >&5
40846 sed 's/^/| /' conftest.$ac_ext >&5
40847
40848
40849                 cat >conftest.$ac_ext <<_ACEOF
40850 /* confdefs.h.  */
40851 _ACEOF
40852 cat confdefs.h >>conftest.$ac_ext
40853 cat >>conftest.$ac_ext <<_ACEOF
40854 /* end confdefs.h.  */
40855 #include <netdb.h>
40856 int
40857 main ()
40858 {
40859
40860                         char *name;
40861                         char *proto;
40862                         struct servent *se;
40863                         char buffer[2048];
40864                         int buflen = 2048;
40865                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40866
40867   ;
40868   return 0;
40869 }
40870 _ACEOF
40871 rm -f conftest.$ac_objext
40872 if { (ac_try="$ac_compile"
40873 case "(($ac_try" in
40874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40875   *) ac_try_echo=$ac_try;;
40876 esac
40877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40878   (eval "$ac_compile") 2>conftest.er1
40879   ac_status=$?
40880   grep -v '^ *+' conftest.er1 >conftest.err
40881   rm -f conftest.er1
40882   cat conftest.err >&5
40883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884   (exit $ac_status); } && {
40885          test -z "$ac_cxx_werror_flag" ||
40886          test ! -s conftest.err
40887        } && test -s conftest.$ac_objext; then
40888   ac_cv_func_which_getservbyname_r=five
40889 else
40890   echo "$as_me: failed program was:" >&5
40891 sed 's/^/| /' conftest.$ac_ext >&5
40892
40893
40894                         cat >conftest.$ac_ext <<_ACEOF
40895 /* confdefs.h.  */
40896 _ACEOF
40897 cat confdefs.h >>conftest.$ac_ext
40898 cat >>conftest.$ac_ext <<_ACEOF
40899 /* end confdefs.h.  */
40900 #include <netdb.h>
40901 int
40902 main ()
40903 {
40904
40905                                 char *name;
40906                                 char *proto;
40907                                 struct servent *se;
40908                                 struct servent_data data;
40909                                 (void) getservbyname_r(name, proto, se, &data);
40910
40911   ;
40912   return 0;
40913 }
40914 _ACEOF
40915 rm -f conftest.$ac_objext
40916 if { (ac_try="$ac_compile"
40917 case "(($ac_try" in
40918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40919   *) ac_try_echo=$ac_try;;
40920 esac
40921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40922   (eval "$ac_compile") 2>conftest.er1
40923   ac_status=$?
40924   grep -v '^ *+' conftest.er1 >conftest.err
40925   rm -f conftest.er1
40926   cat conftest.err >&5
40927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40928   (exit $ac_status); } && {
40929          test -z "$ac_cxx_werror_flag" ||
40930          test ! -s conftest.err
40931        } && test -s conftest.$ac_objext; then
40932   ac_cv_func_which_getservbyname_r=four
40933 else
40934   echo "$as_me: failed program was:" >&5
40935 sed 's/^/| /' conftest.$ac_ext >&5
40936
40937         ac_cv_func_which_getservbyname_r=no
40938
40939 fi
40940
40941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40942
40943
40944 fi
40945
40946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40947
40948
40949 fi
40950
40951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40952         ac_ext=c
40953 ac_cpp='$CPP $CPPFLAGS'
40954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40957
40958
40959
40960 fi
40961 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40962 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
40963
40964 if test $ac_cv_func_which_getservbyname_r = six; then
40965   cat >>confdefs.h <<\_ACEOF
40966 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40967 _ACEOF
40968
40969 elif test $ac_cv_func_which_getservbyname_r = five; then
40970   cat >>confdefs.h <<\_ACEOF
40971 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40972 _ACEOF
40973
40974 elif test $ac_cv_func_which_getservbyname_r = four; then
40975   cat >>confdefs.h <<\_ACEOF
40976 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40977 _ACEOF
40978
40979 fi
40980
40981
40982       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40983               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40984
40985 for ac_func in getservbyname
40986 do
40987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40991   echo $ECHO_N "(cached) $ECHO_C" >&6
40992 else
40993   cat >conftest.$ac_ext <<_ACEOF
40994 /* confdefs.h.  */
40995 _ACEOF
40996 cat confdefs.h >>conftest.$ac_ext
40997 cat >>conftest.$ac_ext <<_ACEOF
40998 /* end confdefs.h.  */
40999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41001 #define $ac_func innocuous_$ac_func
41002
41003 /* System header to define __stub macros and hopefully few prototypes,
41004     which can conflict with char $ac_func (); below.
41005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41006     <limits.h> exists even on freestanding compilers.  */
41007
41008 #ifdef __STDC__
41009 # include <limits.h>
41010 #else
41011 # include <assert.h>
41012 #endif
41013
41014 #undef $ac_func
41015
41016 /* Override any GCC internal prototype to avoid an error.
41017    Use char because int might match the return type of a GCC
41018    builtin and then its argument prototype would still apply.  */
41019 #ifdef __cplusplus
41020 extern "C"
41021 #endif
41022 char $ac_func ();
41023 /* The GNU C library defines this for functions which it implements
41024     to always fail with ENOSYS.  Some functions are actually named
41025     something starting with __ and the normal name is an alias.  */
41026 #if defined __stub_$ac_func || defined __stub___$ac_func
41027 choke me
41028 #endif
41029
41030 int
41031 main ()
41032 {
41033 return $ac_func ();
41034   ;
41035   return 0;
41036 }
41037 _ACEOF
41038 rm -f conftest.$ac_objext conftest$ac_exeext
41039 if { (ac_try="$ac_link"
41040 case "(($ac_try" in
41041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41042   *) ac_try_echo=$ac_try;;
41043 esac
41044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41045   (eval "$ac_link") 2>conftest.er1
41046   ac_status=$?
41047   grep -v '^ *+' conftest.er1 >conftest.err
41048   rm -f conftest.er1
41049   cat conftest.err >&5
41050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41051   (exit $ac_status); } && {
41052          test -z "$ac_c_werror_flag" ||
41053          test ! -s conftest.err
41054        } && test -s conftest$ac_exeext &&
41055        $as_test_x conftest$ac_exeext; then
41056   eval "$as_ac_var=yes"
41057 else
41058   echo "$as_me: failed program was:" >&5
41059 sed 's/^/| /' conftest.$ac_ext >&5
41060
41061         eval "$as_ac_var=no"
41062 fi
41063
41064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41065       conftest$ac_exeext conftest.$ac_ext
41066 fi
41067 ac_res=`eval echo '${'$as_ac_var'}'`
41068                { echo "$as_me:$LINENO: result: $ac_res" >&5
41069 echo "${ECHO_T}$ac_res" >&6; }
41070 if test `eval echo '${'$as_ac_var'}'` = yes; then
41071   cat >>confdefs.h <<_ACEOF
41072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41073 _ACEOF
41074   cat >>confdefs.h <<\_ACEOF
41075 #define HAVE_GETSERVBYNAME 1
41076 _ACEOF
41077
41078 fi
41079 done
41080
41081       fi
41082
41083 if test "$wxUSE_THREADS" = "yes"; then
41084   cat >>confdefs.h <<\_ACEOF
41085 #define wxUSE_THREADS 1
41086 _ACEOF
41087
41088
41089   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41090 else
41091       if test "$wx_cv_func_strtok_r" = "yes"; then
41092     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41093 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41094     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41095         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41096         { echo "$as_me:$LINENO: result: yes" >&5
41097 echo "${ECHO_T}yes" >&6; }
41098     else
41099         { echo "$as_me:$LINENO: result: no" >&5
41100 echo "${ECHO_T}no" >&6; }
41101     fi
41102   fi
41103 fi
41104
41105 if test "$WXGTK2" = 1 ; then
41106   cat >>confdefs.h <<_ACEOF
41107 #define __WXGTK20__ $WXGTK2
41108 _ACEOF
41109
41110   WXGTK12=1
41111 fi
41112
41113 if test "$WXGTK12" = 1 ; then
41114   cat >>confdefs.h <<_ACEOF
41115 #define __WXGTK12__ $WXGTK12
41116 _ACEOF
41117
41118 fi
41119
41120 if test "$WXGTK127" = 1 ; then
41121   cat >>confdefs.h <<_ACEOF
41122 #define __WXGTK127__ $WXGTK127
41123 _ACEOF
41124
41125 fi
41126
41127 if test "$WXGPE" = 1 ; then
41128   cat >>confdefs.h <<_ACEOF
41129 #define __WXGPE__ $WXGPE
41130 _ACEOF
41131
41132 fi
41133
41134 DEBUG_CFLAGS=
41135 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41136     DEBUG_CFLAGS="-g"
41137 fi
41138
41139 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41140     wxUSE_DEBUG_INFO=yes
41141     if test "$GCC" = yes; then
41142         DEBUG_CFLAGS="-ggdb"
41143     fi
41144 fi
41145
41146 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41147     cat >>confdefs.h <<\_ACEOF
41148 #define WXDEBUG 1
41149 _ACEOF
41150
41151     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41152 else
41153     if test "$wxUSE_GTK" = 1 ; then
41154         if test "x$wxGTK_VERSION" = "x1" ; then
41155             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41156         fi
41157     fi
41158 fi
41159
41160 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41161     cat >>confdefs.h <<\_ACEOF
41162 #define wxUSE_MEMORY_TRACING 1
41163 _ACEOF
41164
41165     cat >>confdefs.h <<\_ACEOF
41166 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41167 _ACEOF
41168
41169     cat >>confdefs.h <<\_ACEOF
41170 #define wxUSE_DEBUG_NEW_ALWAYS 1
41171 _ACEOF
41172
41173     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41174 fi
41175
41176 if test "$wxUSE_DMALLOC" = "yes" ; then
41177     DMALLOC_LIBS="-ldmallocthcxx"
41178 fi
41179
41180 PROFILE_FLAGS=
41181 if test "$wxUSE_PROFILE" = "yes" ; then
41182     PROFILE_FLAGS=" -pg"
41183 fi
41184
41185 if test "$GCC" = "yes" ; then
41186     if test "$wxUSE_NO_RTTI" = "yes" ; then
41187         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41188     fi
41189     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41190         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41191     fi
41192     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41193         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41194     fi
41195
41196                                                 case "${host}" in
41197       powerpc*-*-aix* )
41198         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41199         ;;
41200       *-hppa* )
41201         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41202         ;;
41203     esac
41204 fi
41205
41206 OPTIMISE_CFLAGS=
41207 if test "$wxUSE_OPTIMISE" = "no" ; then
41208     if test "$GCC" = yes ; then
41209                         OPTIMISE_CFLAGS="-O0"
41210     fi
41211 else
41212     if test "$GCC" = yes ; then
41213         case "${host}" in
41214             *-pc-os2_emx | *-pc-os2-emx )
41215                                                 OPTIMISE_CFLAGS="-O2"
41216             ;;
41217             *)
41218                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41219             ;;
41220         esac
41221     else
41222         OPTIMISE_CFLAGS="-O"
41223     fi
41224 fi
41225
41226
41227 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41228     cat >>confdefs.h <<\_ACEOF
41229 #define WXWIN_COMPATIBILITY_2_6 1
41230 _ACEOF
41231
41232
41233     WXWIN_COMPATIBILITY_2_8="yes"
41234 fi
41235
41236 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41237     cat >>confdefs.h <<\_ACEOF
41238 #define WXWIN_COMPATIBILITY_2_8 1
41239 _ACEOF
41240
41241 fi
41242
41243
41244 if test "$wxUSE_GUI" = "yes"; then
41245     cat >>confdefs.h <<\_ACEOF
41246 #define wxUSE_GUI 1
41247 _ACEOF
41248
41249
41250                                             fi
41251
41252
41253 if test "$wxUSE_UNIX" = "yes"; then
41254   cat >>confdefs.h <<\_ACEOF
41255 #define wxUSE_UNIX 1
41256 _ACEOF
41257
41258 fi
41259
41260
41261 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41262
41263     HAVE_DL_FUNCS=0
41264     HAVE_SHL_FUNCS=0
41265     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41266         if test "$USE_DOS" = 1; then
41267             HAVE_DL_FUNCS=0
41268         else
41269
41270 for ac_func in dlopen
41271 do
41272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41276   echo $ECHO_N "(cached) $ECHO_C" >&6
41277 else
41278   cat >conftest.$ac_ext <<_ACEOF
41279 /* confdefs.h.  */
41280 _ACEOF
41281 cat confdefs.h >>conftest.$ac_ext
41282 cat >>conftest.$ac_ext <<_ACEOF
41283 /* end confdefs.h.  */
41284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41286 #define $ac_func innocuous_$ac_func
41287
41288 /* System header to define __stub macros and hopefully few prototypes,
41289     which can conflict with char $ac_func (); below.
41290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41291     <limits.h> exists even on freestanding compilers.  */
41292
41293 #ifdef __STDC__
41294 # include <limits.h>
41295 #else
41296 # include <assert.h>
41297 #endif
41298
41299 #undef $ac_func
41300
41301 /* Override any GCC internal prototype to avoid an error.
41302    Use char because int might match the return type of a GCC
41303    builtin and then its argument prototype would still apply.  */
41304 #ifdef __cplusplus
41305 extern "C"
41306 #endif
41307 char $ac_func ();
41308 /* The GNU C library defines this for functions which it implements
41309     to always fail with ENOSYS.  Some functions are actually named
41310     something starting with __ and the normal name is an alias.  */
41311 #if defined __stub_$ac_func || defined __stub___$ac_func
41312 choke me
41313 #endif
41314
41315 int
41316 main ()
41317 {
41318 return $ac_func ();
41319   ;
41320   return 0;
41321 }
41322 _ACEOF
41323 rm -f conftest.$ac_objext conftest$ac_exeext
41324 if { (ac_try="$ac_link"
41325 case "(($ac_try" in
41326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41327   *) ac_try_echo=$ac_try;;
41328 esac
41329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41330   (eval "$ac_link") 2>conftest.er1
41331   ac_status=$?
41332   grep -v '^ *+' conftest.er1 >conftest.err
41333   rm -f conftest.er1
41334   cat conftest.err >&5
41335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336   (exit $ac_status); } && {
41337          test -z "$ac_c_werror_flag" ||
41338          test ! -s conftest.err
41339        } && test -s conftest$ac_exeext &&
41340        $as_test_x conftest$ac_exeext; then
41341   eval "$as_ac_var=yes"
41342 else
41343   echo "$as_me: failed program was:" >&5
41344 sed 's/^/| /' conftest.$ac_ext >&5
41345
41346         eval "$as_ac_var=no"
41347 fi
41348
41349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41350       conftest$ac_exeext conftest.$ac_ext
41351 fi
41352 ac_res=`eval echo '${'$as_ac_var'}'`
41353                { echo "$as_me:$LINENO: result: $ac_res" >&5
41354 echo "${ECHO_T}$ac_res" >&6; }
41355 if test `eval echo '${'$as_ac_var'}'` = yes; then
41356   cat >>confdefs.h <<_ACEOF
41357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41358 _ACEOF
41359
41360                 cat >>confdefs.h <<\_ACEOF
41361 #define HAVE_DLOPEN 1
41362 _ACEOF
41363
41364                 HAVE_DL_FUNCS=1
41365
41366 else
41367
41368                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41369 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41371   echo $ECHO_N "(cached) $ECHO_C" >&6
41372 else
41373   ac_check_lib_save_LIBS=$LIBS
41374 LIBS="-ldl  $LIBS"
41375 cat >conftest.$ac_ext <<_ACEOF
41376 /* confdefs.h.  */
41377 _ACEOF
41378 cat confdefs.h >>conftest.$ac_ext
41379 cat >>conftest.$ac_ext <<_ACEOF
41380 /* end confdefs.h.  */
41381
41382 /* Override any GCC internal prototype to avoid an error.
41383    Use char because int might match the return type of a GCC
41384    builtin and then its argument prototype would still apply.  */
41385 #ifdef __cplusplus
41386 extern "C"
41387 #endif
41388 char dlopen ();
41389 int
41390 main ()
41391 {
41392 return dlopen ();
41393   ;
41394   return 0;
41395 }
41396 _ACEOF
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (ac_try="$ac_link"
41399 case "(($ac_try" in
41400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41401   *) ac_try_echo=$ac_try;;
41402 esac
41403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41404   (eval "$ac_link") 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } && {
41411          test -z "$ac_c_werror_flag" ||
41412          test ! -s conftest.err
41413        } && test -s conftest$ac_exeext &&
41414        $as_test_x conftest$ac_exeext; then
41415   ac_cv_lib_dl_dlopen=yes
41416 else
41417   echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41419
41420         ac_cv_lib_dl_dlopen=no
41421 fi
41422
41423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41424       conftest$ac_exeext conftest.$ac_ext
41425 LIBS=$ac_check_lib_save_LIBS
41426 fi
41427 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41428 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41429 if test $ac_cv_lib_dl_dlopen = yes; then
41430
41431                                 cat >>confdefs.h <<\_ACEOF
41432 #define HAVE_DLOPEN 1
41433 _ACEOF
41434
41435                                 HAVE_DL_FUNCS=1
41436                                 DL_LINK=" -ldl$DL_LINK"
41437
41438 else
41439
41440
41441 for ac_func in shl_load
41442 do
41443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41447   echo $ECHO_N "(cached) $ECHO_C" >&6
41448 else
41449   cat >conftest.$ac_ext <<_ACEOF
41450 /* confdefs.h.  */
41451 _ACEOF
41452 cat confdefs.h >>conftest.$ac_ext
41453 cat >>conftest.$ac_ext <<_ACEOF
41454 /* end confdefs.h.  */
41455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41457 #define $ac_func innocuous_$ac_func
41458
41459 /* System header to define __stub macros and hopefully few prototypes,
41460     which can conflict with char $ac_func (); below.
41461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41462     <limits.h> exists even on freestanding compilers.  */
41463
41464 #ifdef __STDC__
41465 # include <limits.h>
41466 #else
41467 # include <assert.h>
41468 #endif
41469
41470 #undef $ac_func
41471
41472 /* Override any GCC internal prototype to avoid an error.
41473    Use char because int might match the return type of a GCC
41474    builtin and then its argument prototype would still apply.  */
41475 #ifdef __cplusplus
41476 extern "C"
41477 #endif
41478 char $ac_func ();
41479 /* The GNU C library defines this for functions which it implements
41480     to always fail with ENOSYS.  Some functions are actually named
41481     something starting with __ and the normal name is an alias.  */
41482 #if defined __stub_$ac_func || defined __stub___$ac_func
41483 choke me
41484 #endif
41485
41486 int
41487 main ()
41488 {
41489 return $ac_func ();
41490   ;
41491   return 0;
41492 }
41493 _ACEOF
41494 rm -f conftest.$ac_objext conftest$ac_exeext
41495 if { (ac_try="$ac_link"
41496 case "(($ac_try" in
41497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41498   *) ac_try_echo=$ac_try;;
41499 esac
41500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41501   (eval "$ac_link") 2>conftest.er1
41502   ac_status=$?
41503   grep -v '^ *+' conftest.er1 >conftest.err
41504   rm -f conftest.er1
41505   cat conftest.err >&5
41506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507   (exit $ac_status); } && {
41508          test -z "$ac_c_werror_flag" ||
41509          test ! -s conftest.err
41510        } && test -s conftest$ac_exeext &&
41511        $as_test_x conftest$ac_exeext; then
41512   eval "$as_ac_var=yes"
41513 else
41514   echo "$as_me: failed program was:" >&5
41515 sed 's/^/| /' conftest.$ac_ext >&5
41516
41517         eval "$as_ac_var=no"
41518 fi
41519
41520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41521       conftest$ac_exeext conftest.$ac_ext
41522 fi
41523 ac_res=`eval echo '${'$as_ac_var'}'`
41524                { echo "$as_me:$LINENO: result: $ac_res" >&5
41525 echo "${ECHO_T}$ac_res" >&6; }
41526 if test `eval echo '${'$as_ac_var'}'` = yes; then
41527   cat >>confdefs.h <<_ACEOF
41528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41529 _ACEOF
41530
41531                                                 cat >>confdefs.h <<\_ACEOF
41532 #define HAVE_SHL_LOAD 1
41533 _ACEOF
41534
41535                                                 HAVE_SHL_FUNCS=1
41536
41537 else
41538
41539                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41540 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41541 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41542   echo $ECHO_N "(cached) $ECHO_C" >&6
41543 else
41544   ac_check_lib_save_LIBS=$LIBS
41545 LIBS="-lshl_load  $LIBS"
41546 cat >conftest.$ac_ext <<_ACEOF
41547 /* confdefs.h.  */
41548 _ACEOF
41549 cat confdefs.h >>conftest.$ac_ext
41550 cat >>conftest.$ac_ext <<_ACEOF
41551 /* end confdefs.h.  */
41552
41553 /* Override any GCC internal prototype to avoid an error.
41554    Use char because int might match the return type of a GCC
41555    builtin and then its argument prototype would still apply.  */
41556 #ifdef __cplusplus
41557 extern "C"
41558 #endif
41559 char dld ();
41560 int
41561 main ()
41562 {
41563 return dld ();
41564   ;
41565   return 0;
41566 }
41567 _ACEOF
41568 rm -f conftest.$ac_objext conftest$ac_exeext
41569 if { (ac_try="$ac_link"
41570 case "(($ac_try" in
41571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41572   *) ac_try_echo=$ac_try;;
41573 esac
41574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41575   (eval "$ac_link") 2>conftest.er1
41576   ac_status=$?
41577   grep -v '^ *+' conftest.er1 >conftest.err
41578   rm -f conftest.er1
41579   cat conftest.err >&5
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); } && {
41582          test -z "$ac_c_werror_flag" ||
41583          test ! -s conftest.err
41584        } && test -s conftest$ac_exeext &&
41585        $as_test_x conftest$ac_exeext; then
41586   ac_cv_lib_shl_load_dld=yes
41587 else
41588   echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41590
41591         ac_cv_lib_shl_load_dld=no
41592 fi
41593
41594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41595       conftest$ac_exeext conftest.$ac_ext
41596 LIBS=$ac_check_lib_save_LIBS
41597 fi
41598 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41599 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41600 if test $ac_cv_lib_shl_load_dld = yes; then
41601
41602                                                                 HAVE_SHL_FUNCS=1
41603                                                                 DL_LINK=" -ldld$DL_LINK"
41604
41605 fi
41606
41607
41608 fi
41609 done
41610
41611
41612 fi
41613
41614
41615 fi
41616 done
41617
41618
41619                         if test "$HAVE_DL_FUNCS" = 1; then
41620
41621 for ac_func in dlerror
41622 do
41623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41627   echo $ECHO_N "(cached) $ECHO_C" >&6
41628 else
41629   cat >conftest.$ac_ext <<_ACEOF
41630 /* confdefs.h.  */
41631 _ACEOF
41632 cat confdefs.h >>conftest.$ac_ext
41633 cat >>conftest.$ac_ext <<_ACEOF
41634 /* end confdefs.h.  */
41635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41637 #define $ac_func innocuous_$ac_func
41638
41639 /* System header to define __stub macros and hopefully few prototypes,
41640     which can conflict with char $ac_func (); below.
41641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41642     <limits.h> exists even on freestanding compilers.  */
41643
41644 #ifdef __STDC__
41645 # include <limits.h>
41646 #else
41647 # include <assert.h>
41648 #endif
41649
41650 #undef $ac_func
41651
41652 /* Override any GCC internal prototype to avoid an error.
41653    Use char because int might match the return type of a GCC
41654    builtin and then its argument prototype would still apply.  */
41655 #ifdef __cplusplus
41656 extern "C"
41657 #endif
41658 char $ac_func ();
41659 /* The GNU C library defines this for functions which it implements
41660     to always fail with ENOSYS.  Some functions are actually named
41661     something starting with __ and the normal name is an alias.  */
41662 #if defined __stub_$ac_func || defined __stub___$ac_func
41663 choke me
41664 #endif
41665
41666 int
41667 main ()
41668 {
41669 return $ac_func ();
41670   ;
41671   return 0;
41672 }
41673 _ACEOF
41674 rm -f conftest.$ac_objext conftest$ac_exeext
41675 if { (ac_try="$ac_link"
41676 case "(($ac_try" in
41677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41678   *) ac_try_echo=$ac_try;;
41679 esac
41680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41681   (eval "$ac_link") 2>conftest.er1
41682   ac_status=$?
41683   grep -v '^ *+' conftest.er1 >conftest.err
41684   rm -f conftest.er1
41685   cat conftest.err >&5
41686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41687   (exit $ac_status); } && {
41688          test -z "$ac_c_werror_flag" ||
41689          test ! -s conftest.err
41690        } && test -s conftest$ac_exeext &&
41691        $as_test_x conftest$ac_exeext; then
41692   eval "$as_ac_var=yes"
41693 else
41694   echo "$as_me: failed program was:" >&5
41695 sed 's/^/| /' conftest.$ac_ext >&5
41696
41697         eval "$as_ac_var=no"
41698 fi
41699
41700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41701       conftest$ac_exeext conftest.$ac_ext
41702 fi
41703 ac_res=`eval echo '${'$as_ac_var'}'`
41704                { echo "$as_me:$LINENO: result: $ac_res" >&5
41705 echo "${ECHO_T}$ac_res" >&6; }
41706 if test `eval echo '${'$as_ac_var'}'` = yes; then
41707   cat >>confdefs.h <<_ACEOF
41708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41709 _ACEOF
41710  cat >>confdefs.h <<\_ACEOF
41711 #define HAVE_DLERROR 1
41712 _ACEOF
41713
41714 else
41715
41716                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41717 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41718 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41719   echo $ECHO_N "(cached) $ECHO_C" >&6
41720 else
41721   ac_check_lib_save_LIBS=$LIBS
41722 LIBS="-ldl  $LIBS"
41723 cat >conftest.$ac_ext <<_ACEOF
41724 /* confdefs.h.  */
41725 _ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h.  */
41729
41730 /* Override any GCC internal prototype to avoid an error.
41731    Use char because int might match the return type of a GCC
41732    builtin and then its argument prototype would still apply.  */
41733 #ifdef __cplusplus
41734 extern "C"
41735 #endif
41736 char dlerror ();
41737 int
41738 main ()
41739 {
41740 return dlerror ();
41741   ;
41742   return 0;
41743 }
41744 _ACEOF
41745 rm -f conftest.$ac_objext conftest$ac_exeext
41746 if { (ac_try="$ac_link"
41747 case "(($ac_try" in
41748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41749   *) ac_try_echo=$ac_try;;
41750 esac
41751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41752   (eval "$ac_link") 2>conftest.er1
41753   ac_status=$?
41754   grep -v '^ *+' conftest.er1 >conftest.err
41755   rm -f conftest.er1
41756   cat conftest.err >&5
41757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41758   (exit $ac_status); } && {
41759          test -z "$ac_c_werror_flag" ||
41760          test ! -s conftest.err
41761        } && test -s conftest$ac_exeext &&
41762        $as_test_x conftest$ac_exeext; then
41763   ac_cv_lib_dl_dlerror=yes
41764 else
41765   echo "$as_me: failed program was:" >&5
41766 sed 's/^/| /' conftest.$ac_ext >&5
41767
41768         ac_cv_lib_dl_dlerror=no
41769 fi
41770
41771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41772       conftest$ac_exeext conftest.$ac_ext
41773 LIBS=$ac_check_lib_save_LIBS
41774 fi
41775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41776 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41777 if test $ac_cv_lib_dl_dlerror = yes; then
41778   cat >>confdefs.h <<\_ACEOF
41779 #define HAVE_DLERROR 1
41780 _ACEOF
41781
41782 fi
41783
41784
41785
41786 fi
41787 done
41788
41789             fi
41790         fi
41791
41792                 if test "$USE_DARWIN" = 1; then
41793                         HAVE_DL_FUNCS=1
41794         fi
41795
41796         if test "$HAVE_DL_FUNCS" = 0; then
41797             if test "$HAVE_SHL_FUNCS" = 0; then
41798               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41799                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41800 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41801                   wxUSE_DYNAMIC_LOADER=no
41802                   wxUSE_DYNLIB_CLASS=no
41803               else
41804                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41805 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41806               fi
41807             fi
41808         fi
41809     fi
41810 fi
41811
41812 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41813     cat >>confdefs.h <<\_ACEOF
41814 #define wxUSE_DYNAMIC_LOADER 1
41815 _ACEOF
41816
41817 fi
41818 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41819     cat >>confdefs.h <<\_ACEOF
41820 #define wxUSE_DYNLIB_CLASS 1
41821 _ACEOF
41822
41823 fi
41824
41825
41826
41827 if test "$wxUSE_PLUGINS" = "yes" ; then
41828     if test "$wxUSE_SHARED" = "no" ; then
41829         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41830 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41831         wxUSE_PLUGINS=no
41832     fi
41833     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41834         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41835 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41836         wxUSE_PLUGINS=no
41837     fi
41838     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41839         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41840 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41841         wxUSE_PLUGINS=no
41842     fi
41843     if test "$wxUSE_PLUGINS" = "yes" ; then
41844         cat >>confdefs.h <<\_ACEOF
41845 #define wxUSE_PLUGINS 1
41846 _ACEOF
41847
41848     fi
41849 fi
41850
41851
41852 if test "$wxUSE_STL" = "yes"; then
41853   cat >>confdefs.h <<\_ACEOF
41854 #define wxUSE_STL 1
41855 _ACEOF
41856
41857 fi
41858
41859 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
41860   cat >>confdefs.h <<\_ACEOF
41861 #define wxUSE_EXTENDED_RTTI 1
41862 _ACEOF
41863
41864 fi
41865
41866 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41867   cat >>confdefs.h <<\_ACEOF
41868 #define wxUSE_APPLE_IEEE 1
41869 _ACEOF
41870
41871 fi
41872
41873 if test "$wxUSE_TIMER" = "yes"; then
41874   cat >>confdefs.h <<\_ACEOF
41875 #define wxUSE_TIMER 1
41876 _ACEOF
41877
41878 fi
41879
41880 if test "$USE_UNIX" = 1 ; then
41881         if test "$wxUSE_MGL" != 1; then
41882                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41883 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
41884 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41885   echo $ECHO_N "(cached) $ECHO_C" >&6
41886 else
41887
41888             cat >conftest.$ac_ext <<_ACEOF
41889 /* confdefs.h.  */
41890 _ACEOF
41891 cat confdefs.h >>conftest.$ac_ext
41892 cat >>conftest.$ac_ext <<_ACEOF
41893 /* end confdefs.h.  */
41894
41895                     #include <sys/ioctl.h>
41896                     #include <sys/soundcard.h>
41897
41898 int
41899 main ()
41900 {
41901
41902                     ioctl(0, SNDCTL_DSP_SPEED, 0);
41903
41904   ;
41905   return 0;
41906 }
41907 _ACEOF
41908 rm -f conftest.$ac_objext conftest$ac_exeext
41909 if { (ac_try="$ac_link"
41910 case "(($ac_try" in
41911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41912   *) ac_try_echo=$ac_try;;
41913 esac
41914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41915   (eval "$ac_link") 2>conftest.er1
41916   ac_status=$?
41917   grep -v '^ *+' conftest.er1 >conftest.err
41918   rm -f conftest.er1
41919   cat conftest.err >&5
41920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921   (exit $ac_status); } && {
41922          test -z "$ac_c_werror_flag" ||
41923          test ! -s conftest.err
41924        } && test -s conftest$ac_exeext &&
41925        $as_test_x conftest$ac_exeext; then
41926   ac_cv_header_sys_soundcard=yes
41927 else
41928   echo "$as_me: failed program was:" >&5
41929 sed 's/^/| /' conftest.$ac_ext >&5
41930
41931
41932                     saveLibs="$LIBS"
41933                     LIBS="$saveLibs -lossaudio"
41934                     cat >conftest.$ac_ext <<_ACEOF
41935 /* confdefs.h.  */
41936 _ACEOF
41937 cat confdefs.h >>conftest.$ac_ext
41938 cat >>conftest.$ac_ext <<_ACEOF
41939 /* end confdefs.h.  */
41940
41941                             #include <sys/ioctl.h>
41942                             #include <sys/soundcard.h>
41943
41944 int
41945 main ()
41946 {
41947
41948                             ioctl(0, SNDCTL_DSP_SPEED, 0);
41949
41950   ;
41951   return 0;
41952 }
41953 _ACEOF
41954 rm -f conftest.$ac_objext conftest$ac_exeext
41955 if { (ac_try="$ac_link"
41956 case "(($ac_try" in
41957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41958   *) ac_try_echo=$ac_try;;
41959 esac
41960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41961   (eval "$ac_link") 2>conftest.er1
41962   ac_status=$?
41963   grep -v '^ *+' conftest.er1 >conftest.err
41964   rm -f conftest.er1
41965   cat conftest.err >&5
41966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41967   (exit $ac_status); } && {
41968          test -z "$ac_c_werror_flag" ||
41969          test ! -s conftest.err
41970        } && test -s conftest$ac_exeext &&
41971        $as_test_x conftest$ac_exeext; then
41972   ac_cv_header_sys_soundcard=yes
41973 else
41974   echo "$as_me: failed program was:" >&5
41975 sed 's/^/| /' conftest.$ac_ext >&5
41976
41977
41978                             LIBS="$saveLibs"
41979                             ac_cv_header_sys_soundcard=no
41980
41981
41982 fi
41983
41984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41985       conftest$ac_exeext conftest.$ac_ext
41986
41987
41988 fi
41989
41990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41991       conftest$ac_exeext conftest.$ac_ext
41992
41993 fi
41994 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41995 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
41996     fi
41997
41998     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41999         cat >>confdefs.h <<\_ACEOF
42000 #define HAVE_SYS_SOUNDCARD_H 1
42001 _ACEOF
42002
42003     fi
42004 fi
42005
42006 WITH_PLUGIN_SDL=0
42007 if test "$wxUSE_SOUND" = "yes"; then
42008   if test "$USE_UNIX" = 1 ; then
42009     if test "$wxUSE_LIBSDL" != "no"; then
42010
42011 # Check whether --with-sdl-prefix was given.
42012 if test "${with_sdl_prefix+set}" = set; then
42013   withval=$with_sdl_prefix; sdl_prefix="$withval"
42014 else
42015   sdl_prefix=""
42016 fi
42017
42018
42019 # Check whether --with-sdl-exec-prefix was given.
42020 if test "${with_sdl_exec_prefix+set}" = set; then
42021   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42022 else
42023   sdl_exec_prefix=""
42024 fi
42025
42026 # Check whether --enable-sdltest was given.
42027 if test "${enable_sdltest+set}" = set; then
42028   enableval=$enable_sdltest;
42029 else
42030   enable_sdltest=yes
42031 fi
42032
42033
42034   if test x$sdl_exec_prefix != x ; then
42035     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42036     if test x${SDL_CONFIG+set} != xset ; then
42037       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42038     fi
42039   fi
42040   if test x$sdl_prefix != x ; then
42041     sdl_args="$sdl_args --prefix=$sdl_prefix"
42042     if test x${SDL_CONFIG+set} != xset ; then
42043       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42044     fi
42045   fi
42046
42047   if test "x$prefix" != xNONE; then
42048     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42049   fi
42050   # Extract the first word of "sdl-config", so it can be a program name with args.
42051 set dummy sdl-config; ac_word=$2
42052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42054 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42055   echo $ECHO_N "(cached) $ECHO_C" >&6
42056 else
42057   case $SDL_CONFIG in
42058   [\\/]* | ?:[\\/]*)
42059   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42060   ;;
42061   *)
42062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42063 for as_dir in $PATH
42064 do
42065   IFS=$as_save_IFS
42066   test -z "$as_dir" && as_dir=.
42067   for ac_exec_ext in '' $ac_executable_extensions; do
42068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42069     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42071     break 2
42072   fi
42073 done
42074 done
42075 IFS=$as_save_IFS
42076
42077   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42078   ;;
42079 esac
42080 fi
42081 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42082 if test -n "$SDL_CONFIG"; then
42083   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42084 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42085 else
42086   { echo "$as_me:$LINENO: result: no" >&5
42087 echo "${ECHO_T}no" >&6; }
42088 fi
42089
42090
42091   min_sdl_version=1.2.0
42092   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42093 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42094   no_sdl=""
42095   if test "$SDL_CONFIG" = "no" ; then
42096     no_sdl=yes
42097   else
42098     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42099     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42100
42101     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42102            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42103     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42104            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42105     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42106            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42107     if test "x$enable_sdltest" = "xyes" ; then
42108       ac_save_CFLAGS="$CFLAGS"
42109       ac_save_CXXFLAGS="$CXXFLAGS"
42110       ac_save_LIBS="$LIBS"
42111       CFLAGS="$CFLAGS $SDL_CFLAGS"
42112       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42113       LIBS="$LIBS $SDL_LIBS"
42114       rm -f conf.sdltest
42115       if test "$cross_compiling" = yes; then
42116   echo $ac_n "cross compiling; assumed OK... $ac_c"
42117 else
42118   cat >conftest.$ac_ext <<_ACEOF
42119 /* confdefs.h.  */
42120 _ACEOF
42121 cat confdefs.h >>conftest.$ac_ext
42122 cat >>conftest.$ac_ext <<_ACEOF
42123 /* end confdefs.h.  */
42124
42125 #include <stdio.h>
42126 #include <stdlib.h>
42127 #include <string.h>
42128 #include "SDL.h"
42129
42130 char*
42131 my_strdup (char *str)
42132 {
42133   char *new_str;
42134
42135   if (str)
42136     {
42137       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42138       strcpy (new_str, str);
42139     }
42140   else
42141     new_str = NULL;
42142
42143   return new_str;
42144 }
42145
42146 int main (int argc, char *argv[])
42147 {
42148   int major, minor, micro;
42149   char *tmp_version;
42150
42151   /* This hangs on some systems (?)
42152   system ("touch conf.sdltest");
42153   */
42154   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42155
42156   /* HP/UX 9 (%@#!) writes to sscanf strings */
42157   tmp_version = my_strdup("$min_sdl_version");
42158   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42159      printf("%s, bad version string\n", "$min_sdl_version");
42160      exit(1);
42161    }
42162
42163    if (($sdl_major_version > major) ||
42164       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42165       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42166     {
42167       return 0;
42168     }
42169   else
42170     {
42171       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42172       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42173       printf("*** best to upgrade to the required version.\n");
42174       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42175       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42176       printf("*** config.cache before re-running configure\n");
42177       return 1;
42178     }
42179 }
42180
42181
42182 _ACEOF
42183 rm -f conftest$ac_exeext
42184 if { (ac_try="$ac_link"
42185 case "(($ac_try" in
42186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42187   *) ac_try_echo=$ac_try;;
42188 esac
42189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42190   (eval "$ac_link") 2>&5
42191   ac_status=$?
42192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42194   { (case "(($ac_try" in
42195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42196   *) ac_try_echo=$ac_try;;
42197 esac
42198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42199   (eval "$ac_try") 2>&5
42200   ac_status=$?
42201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42202   (exit $ac_status); }; }; then
42203   :
42204 else
42205   echo "$as_me: program exited with status $ac_status" >&5
42206 echo "$as_me: failed program was:" >&5
42207 sed 's/^/| /' conftest.$ac_ext >&5
42208
42209 ( exit $ac_status )
42210 no_sdl=yes
42211 fi
42212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42213 fi
42214
42215
42216        CFLAGS="$ac_save_CFLAGS"
42217        CXXFLAGS="$ac_save_CXXFLAGS"
42218        LIBS="$ac_save_LIBS"
42219      fi
42220   fi
42221   if test "x$no_sdl" = x ; then
42222      { echo "$as_me:$LINENO: result: yes" >&5
42223 echo "${ECHO_T}yes" >&6; }
42224
42225                     EXTRALIBS_SDL="$SDL_LIBS"
42226                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42227                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42228                     cat >>confdefs.h <<\_ACEOF
42229 #define wxUSE_LIBSDL 1
42230 _ACEOF
42231
42232
42233   else
42234      { echo "$as_me:$LINENO: result: no" >&5
42235 echo "${ECHO_T}no" >&6; }
42236      if test "$SDL_CONFIG" = "no" ; then
42237        echo "*** The sdl-config script installed by SDL could not be found"
42238        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42239        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42240        echo "*** full path to sdl-config."
42241      else
42242        if test -f conf.sdltest ; then
42243         :
42244        else
42245           echo "*** Could not run SDL test program, checking why..."
42246           CFLAGS="$CFLAGS $SDL_CFLAGS"
42247           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42248           LIBS="$LIBS $SDL_LIBS"
42249           cat >conftest.$ac_ext <<_ACEOF
42250 /* confdefs.h.  */
42251 _ACEOF
42252 cat confdefs.h >>conftest.$ac_ext
42253 cat >>conftest.$ac_ext <<_ACEOF
42254 /* end confdefs.h.  */
42255
42256 #include <stdio.h>
42257 #include "SDL.h"
42258
42259 int main(int argc, char *argv[])
42260 { return 0; }
42261 #undef  main
42262 #define main K_and_R_C_main
42263
42264 int
42265 main ()
42266 {
42267  return 0;
42268   ;
42269   return 0;
42270 }
42271 _ACEOF
42272 rm -f conftest.$ac_objext conftest$ac_exeext
42273 if { (ac_try="$ac_link"
42274 case "(($ac_try" in
42275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42276   *) ac_try_echo=$ac_try;;
42277 esac
42278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42279   (eval "$ac_link") 2>conftest.er1
42280   ac_status=$?
42281   grep -v '^ *+' conftest.er1 >conftest.err
42282   rm -f conftest.er1
42283   cat conftest.err >&5
42284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); } && {
42286          test -z "$ac_c_werror_flag" ||
42287          test ! -s conftest.err
42288        } && test -s conftest$ac_exeext &&
42289        $as_test_x conftest$ac_exeext; then
42290    echo "*** The test program compiled, but did not run. This usually means"
42291           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42292           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42293           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42294           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42295           echo "*** is required on your system"
42296           echo "***"
42297           echo "*** If you have an old version installed, it is best to remove it, although"
42298           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42299 else
42300   echo "$as_me: failed program was:" >&5
42301 sed 's/^/| /' conftest.$ac_ext >&5
42302
42303          echo "*** The test program failed to compile or link. See the file config.log for the"
42304           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42305           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42306           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42307 fi
42308
42309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42310       conftest$ac_exeext conftest.$ac_ext
42311           CFLAGS="$ac_save_CFLAGS"
42312           CXXFLAGS="$ac_save_CXXFLAGS"
42313           LIBS="$ac_save_LIBS"
42314        fi
42315      fi
42316      SDL_CFLAGS=""
42317      SDL_LIBS=""
42318      wxUSE_LIBSDL="no"
42319   fi
42320
42321
42322   rm -f conf.sdltest
42323
42324       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42325         WITH_PLUGIN_SDL=1
42326       fi
42327     fi
42328   else
42329         if test "$wxUSE_MGL" = 1; then
42330         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42331 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42332         wxUSE_SOUND="no"
42333     fi
42334   fi
42335 fi
42336
42337 if test "$wxUSE_SOUND" = "yes"; then
42338   cat >>confdefs.h <<\_ACEOF
42339 #define wxUSE_SOUND 1
42340 _ACEOF
42341
42342   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42343 fi
42344
42345 if test "$WXGTK2" = 1; then
42346
42347
42348 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42349         if test -n "$ac_tool_prefix"; then
42350   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42351 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42354 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42355   echo $ECHO_N "(cached) $ECHO_C" >&6
42356 else
42357   case $PKG_CONFIG in
42358   [\\/]* | ?:[\\/]*)
42359   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42360   ;;
42361   *)
42362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42363 for as_dir in $PATH
42364 do
42365   IFS=$as_save_IFS
42366   test -z "$as_dir" && as_dir=.
42367   for ac_exec_ext in '' $ac_executable_extensions; do
42368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42369     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42371     break 2
42372   fi
42373 done
42374 done
42375 IFS=$as_save_IFS
42376
42377   ;;
42378 esac
42379 fi
42380 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42381 if test -n "$PKG_CONFIG"; then
42382   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42383 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42384 else
42385   { echo "$as_me:$LINENO: result: no" >&5
42386 echo "${ECHO_T}no" >&6; }
42387 fi
42388
42389
42390 fi
42391 if test -z "$ac_cv_path_PKG_CONFIG"; then
42392   ac_pt_PKG_CONFIG=$PKG_CONFIG
42393   # Extract the first word of "pkg-config", so it can be a program name with args.
42394 set dummy pkg-config; ac_word=$2
42395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42397 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42398   echo $ECHO_N "(cached) $ECHO_C" >&6
42399 else
42400   case $ac_pt_PKG_CONFIG in
42401   [\\/]* | ?:[\\/]*)
42402   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42403   ;;
42404   *)
42405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42406 for as_dir in $PATH
42407 do
42408   IFS=$as_save_IFS
42409   test -z "$as_dir" && as_dir=.
42410   for ac_exec_ext in '' $ac_executable_extensions; do
42411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42412     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42414     break 2
42415   fi
42416 done
42417 done
42418 IFS=$as_save_IFS
42419
42420   ;;
42421 esac
42422 fi
42423 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42424 if test -n "$ac_pt_PKG_CONFIG"; then
42425   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42426 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42427 else
42428   { echo "$as_me:$LINENO: result: no" >&5
42429 echo "${ECHO_T}no" >&6; }
42430 fi
42431
42432   if test "x$ac_pt_PKG_CONFIG" = x; then
42433     PKG_CONFIG=""
42434   else
42435     case $cross_compiling:$ac_tool_warned in
42436 yes:)
42437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42438 whose name does not start with the host triplet.  If you think this
42439 configuration is useful to you, please write to autoconf@gnu.org." >&5
42440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42441 whose name does not start with the host triplet.  If you think this
42442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42443 ac_tool_warned=yes ;;
42444 esac
42445     PKG_CONFIG=$ac_pt_PKG_CONFIG
42446   fi
42447 else
42448   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42449 fi
42450
42451 fi
42452 if test -n "$PKG_CONFIG"; then
42453         _pkg_min_version=0.9.0
42454         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42455 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42456         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42457                 { echo "$as_me:$LINENO: result: yes" >&5
42458 echo "${ECHO_T}yes" >&6; }
42459         else
42460                 { echo "$as_me:$LINENO: result: no" >&5
42461 echo "${ECHO_T}no" >&6; }
42462                 PKG_CONFIG=""
42463         fi
42464
42465 fi
42466
42467     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42468
42469         if test "$wxUSE_GTKPRINT" = "yes" ; then
42470
42471
42472 pkg_failed=no
42473 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42474 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42475
42476 if test -n "$PKG_CONFIG"; then
42477     if test -n "$GTKPRINT_CFLAGS"; then
42478         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42479     else
42480         if test -n "$PKG_CONFIG" && \
42481     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42482   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42483   ac_status=$?
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); }; then
42486   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42487 else
42488   pkg_failed=yes
42489 fi
42490     fi
42491 else
42492         pkg_failed=untried
42493 fi
42494 if test -n "$PKG_CONFIG"; then
42495     if test -n "$GTKPRINT_LIBS"; then
42496         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42497     else
42498         if test -n "$PKG_CONFIG" && \
42499     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42500   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42501   ac_status=$?
42502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503   (exit $ac_status); }; then
42504   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42505 else
42506   pkg_failed=yes
42507 fi
42508     fi
42509 else
42510         pkg_failed=untried
42511 fi
42512
42513
42514
42515 if test $pkg_failed = yes; then
42516
42517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42518         _pkg_short_errors_supported=yes
42519 else
42520         _pkg_short_errors_supported=no
42521 fi
42522         if test $_pkg_short_errors_supported = yes; then
42523                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42524         else
42525                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42526         fi
42527         # Put the nasty error message in config.log where it belongs
42528         echo "$GTKPRINT_PKG_ERRORS" >&5
42529
42530
42531                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42532 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42533                         wxUSE_GTKPRINT="no"
42534
42535
42536 elif test $pkg_failed = untried; then
42537
42538                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42539 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42540                         wxUSE_GTKPRINT="no"
42541
42542
42543 else
42544         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42545         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42546         { echo "$as_me:$LINENO: result: yes" >&5
42547 echo "${ECHO_T}yes" >&6; }
42548
42549                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42550                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42551                         cat >>confdefs.h <<\_ACEOF
42552 #define wxUSE_GTKPRINT 1
42553 _ACEOF
42554
42555
42556 fi
42557         fi
42558
42559         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42560
42561
42562 pkg_failed=no
42563 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42564 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42565
42566 if test -n "$PKG_CONFIG"; then
42567     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42568         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42569     else
42570         if test -n "$PKG_CONFIG" && \
42571     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42572   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42573   ac_status=$?
42574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575   (exit $ac_status); }; then
42576   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42577 else
42578   pkg_failed=yes
42579 fi
42580     fi
42581 else
42582         pkg_failed=untried
42583 fi
42584 if test -n "$PKG_CONFIG"; then
42585     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42586         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42587     else
42588         if test -n "$PKG_CONFIG" && \
42589     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42590   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42591   ac_status=$?
42592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42593   (exit $ac_status); }; then
42594   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42595 else
42596   pkg_failed=yes
42597 fi
42598     fi
42599 else
42600         pkg_failed=untried
42601 fi
42602
42603
42604
42605 if test $pkg_failed = yes; then
42606
42607 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42608         _pkg_short_errors_supported=yes
42609 else
42610         _pkg_short_errors_supported=no
42611 fi
42612         if test $_pkg_short_errors_supported = yes; then
42613                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42614         else
42615                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42616         fi
42617         # Put the nasty error message in config.log where it belongs
42618         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42619
42620
42621                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42622 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42623                         wxUSE_LIBGNOMEPRINT="no"
42624
42625
42626 elif test $pkg_failed = untried; then
42627
42628                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42629 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42630                         wxUSE_LIBGNOMEPRINT="no"
42631
42632
42633 else
42634         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42635         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42636         { echo "$as_me:$LINENO: result: yes" >&5
42637 echo "${ECHO_T}yes" >&6; }
42638
42639                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42640                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42641                         cat >>confdefs.h <<\_ACEOF
42642 #define wxUSE_LIBGNOMEPRINT 1
42643 _ACEOF
42644
42645
42646 fi
42647         fi
42648     fi
42649
42650     if test "$wxUSE_MIMETYPE" = "yes" ; then
42651         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42652
42653
42654 pkg_failed=no
42655 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42656 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42657
42658 if test -n "$PKG_CONFIG"; then
42659     if test -n "$GNOMEVFS_CFLAGS"; then
42660         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42661     else
42662         if test -n "$PKG_CONFIG" && \
42663     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42664   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42665   ac_status=$?
42666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42667   (exit $ac_status); }; then
42668   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42669 else
42670   pkg_failed=yes
42671 fi
42672     fi
42673 else
42674         pkg_failed=untried
42675 fi
42676 if test -n "$PKG_CONFIG"; then
42677     if test -n "$GNOMEVFS_LIBS"; then
42678         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42679     else
42680         if test -n "$PKG_CONFIG" && \
42681     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42682   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42683   ac_status=$?
42684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42685   (exit $ac_status); }; then
42686   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42687 else
42688   pkg_failed=yes
42689 fi
42690     fi
42691 else
42692         pkg_failed=untried
42693 fi
42694
42695
42696
42697 if test $pkg_failed = yes; then
42698
42699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42700         _pkg_short_errors_supported=yes
42701 else
42702         _pkg_short_errors_supported=no
42703 fi
42704         if test $_pkg_short_errors_supported = yes; then
42705                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42706         else
42707                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42708         fi
42709         # Put the nasty error message in config.log where it belongs
42710         echo "$GNOMEVFS_PKG_ERRORS" >&5
42711
42712
42713                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42714 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42715                         wxUSE_LIBGNOMEVFS="no"
42716
42717
42718 elif test $pkg_failed = untried; then
42719
42720                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42721 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42722                         wxUSE_LIBGNOMEVFS="no"
42723
42724
42725 else
42726         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42727         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42728         { echo "$as_me:$LINENO: result: yes" >&5
42729 echo "${ECHO_T}yes" >&6; }
42730
42731                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42732                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42733                         cat >>confdefs.h <<\_ACEOF
42734 #define wxUSE_LIBGNOMEVFS 1
42735 _ACEOF
42736
42737
42738 fi
42739         fi
42740     fi
42741
42742     if test "$wxUSE_LIBHILDON" = "yes" ; then
42743
42744 pkg_failed=no
42745 { echo "$as_me:$LINENO: checking for HILDON" >&5
42746 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42747
42748 if test -n "$PKG_CONFIG"; then
42749     if test -n "$HILDON_CFLAGS"; then
42750         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42751     else
42752         if test -n "$PKG_CONFIG" && \
42753     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42754   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42755   ac_status=$?
42756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42757   (exit $ac_status); }; then
42758   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42759 else
42760   pkg_failed=yes
42761 fi
42762     fi
42763 else
42764         pkg_failed=untried
42765 fi
42766 if test -n "$PKG_CONFIG"; then
42767     if test -n "$HILDON_LIBS"; then
42768         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42769     else
42770         if test -n "$PKG_CONFIG" && \
42771     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42772   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42773   ac_status=$?
42774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42775   (exit $ac_status); }; then
42776   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42777 else
42778   pkg_failed=yes
42779 fi
42780     fi
42781 else
42782         pkg_failed=untried
42783 fi
42784
42785
42786
42787 if test $pkg_failed = yes; then
42788
42789 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42790         _pkg_short_errors_supported=yes
42791 else
42792         _pkg_short_errors_supported=no
42793 fi
42794         if test $_pkg_short_errors_supported = yes; then
42795                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42796         else
42797                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42798         fi
42799         # Put the nasty error message in config.log where it belongs
42800         echo "$HILDON_PKG_ERRORS" >&5
42801
42802
42803                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42804 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42805                         wxUSE_LIBHILDON="no"
42806
42807
42808 elif test $pkg_failed = untried; then
42809
42810                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42811 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42812                         wxUSE_LIBHILDON="no"
42813
42814
42815 else
42816         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42817         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42818         { echo "$as_me:$LINENO: result: yes" >&5
42819 echo "${ECHO_T}yes" >&6; }
42820
42821                 EXTRALIBS_HILDON="$HILDON_LIBS"
42822                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42823                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42824                 cat >>confdefs.h <<\_ACEOF
42825 #define wxUSE_LIBHILDON 1
42826 _ACEOF
42827
42828
42829 fi
42830     fi
42831 fi
42832
42833 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42834   cat >>confdefs.h <<\_ACEOF
42835 #define wxUSE_CMDLINE_PARSER 1
42836 _ACEOF
42837
42838 fi
42839
42840 if test "$wxUSE_STOPWATCH" = "yes"; then
42841   cat >>confdefs.h <<\_ACEOF
42842 #define wxUSE_STOPWATCH 1
42843 _ACEOF
42844
42845 fi
42846
42847 if test "$wxUSE_DATETIME" = "yes"; then
42848   cat >>confdefs.h <<\_ACEOF
42849 #define wxUSE_DATETIME 1
42850 _ACEOF
42851
42852 fi
42853
42854 if test "$wxUSE_FILE" = "yes"; then
42855   cat >>confdefs.h <<\_ACEOF
42856 #define wxUSE_FILE 1
42857 _ACEOF
42858
42859 fi
42860
42861 if test "$wxUSE_FFILE" = "yes"; then
42862   cat >>confdefs.h <<\_ACEOF
42863 #define wxUSE_FFILE 1
42864 _ACEOF
42865
42866 fi
42867
42868 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42869   if test "$wxUSE_STREAMS" != yes; then
42870     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
42871 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
42872     wxUSE_ARCHIVE_STREAMS=no
42873   else
42874     cat >>confdefs.h <<\_ACEOF
42875 #define wxUSE_ARCHIVE_STREAMS 1
42876 _ACEOF
42877
42878   fi
42879 fi
42880
42881 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42882   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42883     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42884 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42885   elif test "$wxUSE_ZLIB" = "no"; then
42886     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42887 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42888   else
42889     cat >>confdefs.h <<\_ACEOF
42890 #define wxUSE_ZIPSTREAM 1
42891 _ACEOF
42892
42893   fi
42894 fi
42895
42896 if test "$wxUSE_TARSTREAM" = "yes"; then
42897   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42898     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
42899 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
42900   else
42901     cat >>confdefs.h <<\_ACEOF
42902 #define wxUSE_TARSTREAM 1
42903 _ACEOF
42904
42905   fi
42906 fi
42907
42908 if test "$wxUSE_FILESYSTEM" = "yes"; then
42909   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
42910     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
42911 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
42912     wxUSE_FILESYSTEM=no
42913   else
42914     cat >>confdefs.h <<\_ACEOF
42915 #define wxUSE_FILESYSTEM 1
42916 _ACEOF
42917
42918   fi
42919 fi
42920
42921 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
42922   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
42923     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
42924 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
42925   else
42926     cat >>confdefs.h <<\_ACEOF
42927 #define wxUSE_FS_ARCHIVE 1
42928 _ACEOF
42929
42930   fi
42931 fi
42932
42933 if test "$wxUSE_FS_ZIP" = "yes"; then
42934   if test "$wxUSE_FS_ARCHIVE" != yes; then
42935     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
42936 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
42937   else
42938     cat >>confdefs.h <<\_ACEOF
42939 #define wxUSE_FS_ZIP 1
42940 _ACEOF
42941
42942   fi
42943 fi
42944
42945 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42946   if test "$USE_UNIX" != 1; then
42947     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42948 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42949     wxUSE_ON_FATAL_EXCEPTION=no
42950   else
42951     cat >>confdefs.h <<\_ACEOF
42952 #define wxUSE_ON_FATAL_EXCEPTION 1
42953 _ACEOF
42954
42955   fi
42956 fi
42957
42958 if test "$wxUSE_STACKWALKER" = "yes"; then
42959     cat >>confdefs.h <<\_ACEOF
42960 #define wxUSE_STACKWALKER 1
42961 _ACEOF
42962
42963 fi
42964
42965 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42966     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
42967         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42968 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42969         wxUSE_DEBUGREPORT=no
42970     else
42971         cat >>confdefs.h <<\_ACEOF
42972 #define wxUSE_DEBUGREPORT 1
42973 _ACEOF
42974
42975         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42976             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42977         fi
42978     fi
42979 fi
42980
42981 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42982   cat >>confdefs.h <<\_ACEOF
42983 #define wxUSE_SNGLINST_CHECKER 1
42984 _ACEOF
42985
42986 fi
42987
42988 if test "$wxUSE_BUSYINFO" = "yes"; then
42989   cat >>confdefs.h <<\_ACEOF
42990 #define wxUSE_BUSYINFO 1
42991 _ACEOF
42992
42993 fi
42994
42995 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42996   cat >>confdefs.h <<\_ACEOF
42997 #define wxUSE_STD_IOSTREAM 1
42998 _ACEOF
42999
43000 fi
43001
43002 if test "$wxUSE_STD_STRING" = "yes"; then
43003   cat >>confdefs.h <<\_ACEOF
43004 #define wxUSE_STD_STRING 1
43005 _ACEOF
43006
43007 fi
43008
43009 if test "$wxUSE_STDPATHS" = "yes"; then
43010   cat >>confdefs.h <<\_ACEOF
43011 #define wxUSE_STDPATHS 1
43012 _ACEOF
43013
43014 fi
43015
43016 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43017     cat >>confdefs.h <<\_ACEOF
43018 #define wxUSE_TEXTBUFFER 1
43019 _ACEOF
43020
43021 fi
43022
43023 if test "$wxUSE_TEXTFILE" = "yes"; then
43024   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43025     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43026 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43027   else
43028     cat >>confdefs.h <<\_ACEOF
43029 #define wxUSE_TEXTFILE 1
43030 _ACEOF
43031
43032   fi
43033 fi
43034
43035 if test "$wxUSE_CONFIG" = "yes" ; then
43036   if test "$wxUSE_TEXTFILE" != "yes"; then
43037     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43038 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43039   else
43040     cat >>confdefs.h <<\_ACEOF
43041 #define wxUSE_CONFIG 1
43042 _ACEOF
43043
43044     cat >>confdefs.h <<\_ACEOF
43045 #define wxUSE_CONFIG_NATIVE 1
43046 _ACEOF
43047
43048     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43049   fi
43050 fi
43051
43052 if test "$wxUSE_INTL" = "yes" ; then
43053   if test "$wxUSE_FILE" != "yes"; then
43054     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43055 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43056   else
43057     cat >>confdefs.h <<\_ACEOF
43058 #define wxUSE_INTL 1
43059 _ACEOF
43060
43061     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43062     GUIDIST="$GUIDIST INTL_DIST"
43063   fi
43064 fi
43065
43066 if test "$wxUSE_XLOCALE" == "yes" ; then
43067     cat >>confdefs.h <<\_ACEOF
43068 #define wxUSE_XLOCALE 1
43069 _ACEOF
43070
43071     { echo "$as_me:$LINENO: checking for locale_t" >&5
43072 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43073 if test "${ac_cv_type_locale_t+set}" = set; then
43074   echo $ECHO_N "(cached) $ECHO_C" >&6
43075 else
43076   cat >conftest.$ac_ext <<_ACEOF
43077 /* confdefs.h.  */
43078 _ACEOF
43079 cat confdefs.h >>conftest.$ac_ext
43080 cat >>conftest.$ac_ext <<_ACEOF
43081 /* end confdefs.h.  */
43082 #include <xlocale.h>
43083                     #include <locale.h>
43084
43085 typedef locale_t ac__type_new_;
43086 int
43087 main ()
43088 {
43089 if ((ac__type_new_ *) 0)
43090   return 0;
43091 if (sizeof (ac__type_new_))
43092   return 0;
43093   ;
43094   return 0;
43095 }
43096 _ACEOF
43097 rm -f conftest.$ac_objext
43098 if { (ac_try="$ac_compile"
43099 case "(($ac_try" in
43100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43101   *) ac_try_echo=$ac_try;;
43102 esac
43103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43104   (eval "$ac_compile") 2>conftest.er1
43105   ac_status=$?
43106   grep -v '^ *+' conftest.er1 >conftest.err
43107   rm -f conftest.er1
43108   cat conftest.err >&5
43109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110   (exit $ac_status); } && {
43111          test -z "$ac_c_werror_flag" ||
43112          test ! -s conftest.err
43113        } && test -s conftest.$ac_objext; then
43114   ac_cv_type_locale_t=yes
43115 else
43116   echo "$as_me: failed program was:" >&5
43117 sed 's/^/| /' conftest.$ac_ext >&5
43118
43119         ac_cv_type_locale_t=no
43120 fi
43121
43122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43123 fi
43124 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43125 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43126 if test $ac_cv_type_locale_t = yes; then
43127
43128 cat >>confdefs.h <<_ACEOF
43129 #define HAVE_LOCALE_T 1
43130 _ACEOF
43131
43132
43133 fi
43134
43135 fi
43136
43137 if test "$wxUSE_LOG" = "yes"; then
43138   cat >>confdefs.h <<\_ACEOF
43139 #define wxUSE_LOG 1
43140 _ACEOF
43141
43142
43143     if test "$wxUSE_LOGGUI" = "yes"; then
43144       cat >>confdefs.h <<\_ACEOF
43145 #define wxUSE_LOGGUI 1
43146 _ACEOF
43147
43148     fi
43149
43150     if test "$wxUSE_LOGWINDOW" = "yes"; then
43151       cat >>confdefs.h <<\_ACEOF
43152 #define wxUSE_LOGWINDOW 1
43153 _ACEOF
43154
43155     fi
43156
43157     if test "$wxUSE_LOGDIALOG" = "yes"; then
43158       cat >>confdefs.h <<\_ACEOF
43159 #define wxUSE_LOG_DIALOG 1
43160 _ACEOF
43161
43162     fi
43163
43164         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43165 fi
43166
43167 if test "$wxUSE_LONGLONG" = "yes"; then
43168   cat >>confdefs.h <<\_ACEOF
43169 #define wxUSE_LONGLONG 1
43170 _ACEOF
43171
43172 fi
43173
43174 if test "$wxUSE_GEOMETRY" = "yes"; then
43175   cat >>confdefs.h <<\_ACEOF
43176 #define wxUSE_GEOMETRY 1
43177 _ACEOF
43178
43179 fi
43180
43181 if test "$wxUSE_BASE64" = "yes"; then
43182   cat >>confdefs.h <<\_ACEOF
43183 #define wxUSE_BASE64 1
43184 _ACEOF
43185
43186 fi
43187
43188 if test "$wxUSE_STREAMS" = "yes" ; then
43189   cat >>confdefs.h <<\_ACEOF
43190 #define wxUSE_STREAMS 1
43191 _ACEOF
43192
43193 fi
43194
43195 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43196   cat >>confdefs.h <<\_ACEOF
43197 #define wxUSE_PRINTF_POS_PARAMS 1
43198 _ACEOF
43199
43200 fi
43201
43202 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43203   cat >>confdefs.h <<\_ACEOF
43204 #define wxUSE_OBJC_UNIQUIFYING 1
43205 _ACEOF
43206
43207 fi
43208
43209
43210 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43211     cat >>confdefs.h <<\_ACEOF
43212 #define wxUSE_CONSOLE_EVENTLOOP 1
43213 _ACEOF
43214
43215
43216     if test "$wxUSE_UNIX" = "yes"; then
43217         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43218             cat >>confdefs.h <<\_ACEOF
43219 #define wxUSE_SELECT_DISPATCHER 1
43220 _ACEOF
43221
43222         fi
43223
43224         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43225
43226 for ac_header in sys/epoll.h
43227 do
43228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43232   echo $ECHO_N "(cached) $ECHO_C" >&6
43233 else
43234   cat >conftest.$ac_ext <<_ACEOF
43235 /* confdefs.h.  */
43236 _ACEOF
43237 cat confdefs.h >>conftest.$ac_ext
43238 cat >>conftest.$ac_ext <<_ACEOF
43239 /* end confdefs.h.  */
43240 $ac_includes_default
43241
43242 #include <$ac_header>
43243 _ACEOF
43244 rm -f conftest.$ac_objext
43245 if { (ac_try="$ac_compile"
43246 case "(($ac_try" in
43247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43248   *) ac_try_echo=$ac_try;;
43249 esac
43250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43251   (eval "$ac_compile") 2>conftest.er1
43252   ac_status=$?
43253   grep -v '^ *+' conftest.er1 >conftest.err
43254   rm -f conftest.er1
43255   cat conftest.err >&5
43256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257   (exit $ac_status); } && {
43258          test -z "$ac_c_werror_flag" ||
43259          test ! -s conftest.err
43260        } && test -s conftest.$ac_objext; then
43261   eval "$as_ac_Header=yes"
43262 else
43263   echo "$as_me: failed program was:" >&5
43264 sed 's/^/| /' conftest.$ac_ext >&5
43265
43266         eval "$as_ac_Header=no"
43267 fi
43268
43269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43270 fi
43271 ac_res=`eval echo '${'$as_ac_Header'}'`
43272                { echo "$as_me:$LINENO: result: $ac_res" >&5
43273 echo "${ECHO_T}$ac_res" >&6; }
43274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43275   cat >>confdefs.h <<_ACEOF
43276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43277 _ACEOF
43278
43279 fi
43280
43281 done
43282
43283             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43284                 cat >>confdefs.h <<\_ACEOF
43285 #define wxUSE_EPOLL_DISPATCHER 1
43286 _ACEOF
43287
43288             else
43289                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43290 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43291             fi
43292         fi
43293     fi
43294 fi
43295
43296
43297
43298
43299 for ac_func in gettimeofday ftime
43300 do
43301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43305   echo $ECHO_N "(cached) $ECHO_C" >&6
43306 else
43307   cat >conftest.$ac_ext <<_ACEOF
43308 /* confdefs.h.  */
43309 _ACEOF
43310 cat confdefs.h >>conftest.$ac_ext
43311 cat >>conftest.$ac_ext <<_ACEOF
43312 /* end confdefs.h.  */
43313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43315 #define $ac_func innocuous_$ac_func
43316
43317 /* System header to define __stub macros and hopefully few prototypes,
43318     which can conflict with char $ac_func (); below.
43319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43320     <limits.h> exists even on freestanding compilers.  */
43321
43322 #ifdef __STDC__
43323 # include <limits.h>
43324 #else
43325 # include <assert.h>
43326 #endif
43327
43328 #undef $ac_func
43329
43330 /* Override any GCC internal prototype to avoid an error.
43331    Use char because int might match the return type of a GCC
43332    builtin and then its argument prototype would still apply.  */
43333 #ifdef __cplusplus
43334 extern "C"
43335 #endif
43336 char $ac_func ();
43337 /* The GNU C library defines this for functions which it implements
43338     to always fail with ENOSYS.  Some functions are actually named
43339     something starting with __ and the normal name is an alias.  */
43340 #if defined __stub_$ac_func || defined __stub___$ac_func
43341 choke me
43342 #endif
43343
43344 int
43345 main ()
43346 {
43347 return $ac_func ();
43348   ;
43349   return 0;
43350 }
43351 _ACEOF
43352 rm -f conftest.$ac_objext conftest$ac_exeext
43353 if { (ac_try="$ac_link"
43354 case "(($ac_try" in
43355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43356   *) ac_try_echo=$ac_try;;
43357 esac
43358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43359   (eval "$ac_link") 2>conftest.er1
43360   ac_status=$?
43361   grep -v '^ *+' conftest.er1 >conftest.err
43362   rm -f conftest.er1
43363   cat conftest.err >&5
43364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43365   (exit $ac_status); } && {
43366          test -z "$ac_c_werror_flag" ||
43367          test ! -s conftest.err
43368        } && test -s conftest$ac_exeext &&
43369        $as_test_x conftest$ac_exeext; then
43370   eval "$as_ac_var=yes"
43371 else
43372   echo "$as_me: failed program was:" >&5
43373 sed 's/^/| /' conftest.$ac_ext >&5
43374
43375         eval "$as_ac_var=no"
43376 fi
43377
43378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43379       conftest$ac_exeext conftest.$ac_ext
43380 fi
43381 ac_res=`eval echo '${'$as_ac_var'}'`
43382                { echo "$as_me:$LINENO: result: $ac_res" >&5
43383 echo "${ECHO_T}$ac_res" >&6; }
43384 if test `eval echo '${'$as_ac_var'}'` = yes; then
43385   cat >>confdefs.h <<_ACEOF
43386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43387 _ACEOF
43388  break
43389 fi
43390 done
43391
43392
43393 if test "$ac_cv_func_gettimeofday" = "yes"; then
43394     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43395 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43396 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43397   echo $ECHO_N "(cached) $ECHO_C" >&6
43398 else
43399
43400                 cat >conftest.$ac_ext <<_ACEOF
43401 /* confdefs.h.  */
43402 _ACEOF
43403 cat confdefs.h >>conftest.$ac_ext
43404 cat >>conftest.$ac_ext <<_ACEOF
43405 /* end confdefs.h.  */
43406
43407                 #include <sys/time.h>
43408                 #include <unistd.h>
43409
43410 int
43411 main ()
43412 {
43413
43414                 struct timeval tv;
43415                 gettimeofday(&tv, NULL);
43416
43417   ;
43418   return 0;
43419 }
43420 _ACEOF
43421 rm -f conftest.$ac_objext
43422 if { (ac_try="$ac_compile"
43423 case "(($ac_try" in
43424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425   *) ac_try_echo=$ac_try;;
43426 esac
43427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43428   (eval "$ac_compile") 2>conftest.er1
43429   ac_status=$?
43430   grep -v '^ *+' conftest.er1 >conftest.err
43431   rm -f conftest.er1
43432   cat conftest.err >&5
43433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434   (exit $ac_status); } && {
43435          test -z "$ac_c_werror_flag" ||
43436          test ! -s conftest.err
43437        } && test -s conftest.$ac_objext; then
43438   wx_cv_func_gettimeofday_has_2_args=yes
43439 else
43440   echo "$as_me: failed program was:" >&5
43441 sed 's/^/| /' conftest.$ac_ext >&5
43442
43443         cat >conftest.$ac_ext <<_ACEOF
43444 /* confdefs.h.  */
43445 _ACEOF
43446 cat confdefs.h >>conftest.$ac_ext
43447 cat >>conftest.$ac_ext <<_ACEOF
43448 /* end confdefs.h.  */
43449
43450                     #include <sys/time.h>
43451                     #include <unistd.h>
43452
43453 int
43454 main ()
43455 {
43456
43457                     struct timeval tv;
43458                     gettimeofday(&tv);
43459
43460   ;
43461   return 0;
43462 }
43463 _ACEOF
43464 rm -f conftest.$ac_objext
43465 if { (ac_try="$ac_compile"
43466 case "(($ac_try" in
43467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43468   *) ac_try_echo=$ac_try;;
43469 esac
43470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43471   (eval "$ac_compile") 2>conftest.er1
43472   ac_status=$?
43473   grep -v '^ *+' conftest.er1 >conftest.err
43474   rm -f conftest.er1
43475   cat conftest.err >&5
43476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43477   (exit $ac_status); } && {
43478          test -z "$ac_c_werror_flag" ||
43479          test ! -s conftest.err
43480        } && test -s conftest.$ac_objext; then
43481   wx_cv_func_gettimeofday_has_2_args=no
43482 else
43483   echo "$as_me: failed program was:" >&5
43484 sed 's/^/| /' conftest.$ac_ext >&5
43485
43486
43487                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43488 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43489                     wx_cv_func_gettimeofday_has_2_args=unknown
43490
43491
43492 fi
43493
43494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43495
43496 fi
43497
43498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43499
43500 fi
43501 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43502 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43503
43504     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43505         cat >>confdefs.h <<\_ACEOF
43506 #define WX_GETTIMEOFDAY_NO_TZ 1
43507 _ACEOF
43508
43509     fi
43510 fi
43511
43512 if test "$wxUSE_DATETIME" = "yes"; then
43513         { echo "$as_me:$LINENO: checking for strptime" >&5
43514 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43515 if test "${ac_cv_func_strptime+set}" = set; then
43516   echo $ECHO_N "(cached) $ECHO_C" >&6
43517 else
43518   cat >conftest.$ac_ext <<_ACEOF
43519 /* confdefs.h.  */
43520 _ACEOF
43521 cat confdefs.h >>conftest.$ac_ext
43522 cat >>conftest.$ac_ext <<_ACEOF
43523 /* end confdefs.h.  */
43524 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43526 #define strptime innocuous_strptime
43527
43528 /* System header to define __stub macros and hopefully few prototypes,
43529     which can conflict with char strptime (); below.
43530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43531     <limits.h> exists even on freestanding compilers.  */
43532
43533 #ifdef __STDC__
43534 # include <limits.h>
43535 #else
43536 # include <assert.h>
43537 #endif
43538
43539 #undef strptime
43540
43541 /* Override any GCC internal prototype to avoid an error.
43542    Use char because int might match the return type of a GCC
43543    builtin and then its argument prototype would still apply.  */
43544 #ifdef __cplusplus
43545 extern "C"
43546 #endif
43547 char strptime ();
43548 /* The GNU C library defines this for functions which it implements
43549     to always fail with ENOSYS.  Some functions are actually named
43550     something starting with __ and the normal name is an alias.  */
43551 #if defined __stub_strptime || defined __stub___strptime
43552 choke me
43553 #endif
43554
43555 int
43556 main ()
43557 {
43558 return strptime ();
43559   ;
43560   return 0;
43561 }
43562 _ACEOF
43563 rm -f conftest.$ac_objext conftest$ac_exeext
43564 if { (ac_try="$ac_link"
43565 case "(($ac_try" in
43566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43567   *) ac_try_echo=$ac_try;;
43568 esac
43569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43570   (eval "$ac_link") 2>conftest.er1
43571   ac_status=$?
43572   grep -v '^ *+' conftest.er1 >conftest.err
43573   rm -f conftest.er1
43574   cat conftest.err >&5
43575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43576   (exit $ac_status); } && {
43577          test -z "$ac_c_werror_flag" ||
43578          test ! -s conftest.err
43579        } && test -s conftest$ac_exeext &&
43580        $as_test_x conftest$ac_exeext; then
43581   ac_cv_func_strptime=yes
43582 else
43583   echo "$as_me: failed program was:" >&5
43584 sed 's/^/| /' conftest.$ac_ext >&5
43585
43586         ac_cv_func_strptime=no
43587 fi
43588
43589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43590       conftest$ac_exeext conftest.$ac_ext
43591 fi
43592 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43593 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43594
43595     if test "$ac_cv_func_strptime" = "yes"; then
43596         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43597 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43598 if test "${wx_cv_func_strptime_decl+set}" = set; then
43599   echo $ECHO_N "(cached) $ECHO_C" >&6
43600 else
43601
43602                 ac_ext=cpp
43603 ac_cpp='$CXXCPP $CPPFLAGS'
43604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43607
43608                 cat >conftest.$ac_ext <<_ACEOF
43609 /* confdefs.h.  */
43610 _ACEOF
43611 cat confdefs.h >>conftest.$ac_ext
43612 cat >>conftest.$ac_ext <<_ACEOF
43613 /* end confdefs.h.  */
43614
43615                         #include <time.h>
43616
43617 int
43618 main ()
43619 {
43620
43621                         struct tm t;
43622                         strptime("foo", "bar", &t);
43623
43624   ;
43625   return 0;
43626 }
43627 _ACEOF
43628 rm -f conftest.$ac_objext
43629 if { (ac_try="$ac_compile"
43630 case "(($ac_try" in
43631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43632   *) ac_try_echo=$ac_try;;
43633 esac
43634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43635   (eval "$ac_compile") 2>conftest.er1
43636   ac_status=$?
43637   grep -v '^ *+' conftest.er1 >conftest.err
43638   rm -f conftest.er1
43639   cat conftest.err >&5
43640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641   (exit $ac_status); } && {
43642          test -z "$ac_cxx_werror_flag" ||
43643          test ! -s conftest.err
43644        } && test -s conftest.$ac_objext; then
43645   wx_cv_func_strptime_decl=yes
43646 else
43647   echo "$as_me: failed program was:" >&5
43648 sed 's/^/| /' conftest.$ac_ext >&5
43649
43650         wx_cv_func_strptime_decl=no
43651
43652 fi
43653
43654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43655                 ac_ext=c
43656 ac_cpp='$CPP $CPPFLAGS'
43657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43660
43661
43662
43663 fi
43664 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43665 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43666     fi
43667     if test "$wx_cv_func_strptime_decl" = "yes"; then
43668         cat >>confdefs.h <<\_ACEOF
43669 #define HAVE_STRPTIME_DECL 1
43670 _ACEOF
43671
43672     else
43673         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43674     fi
43675     if test "$ac_cv_func_strptime" = "yes"; then
43676                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43677 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43678 if test "${wx_cv_func_strptime_ok+set}" = set; then
43679   echo $ECHO_N "(cached) $ECHO_C" >&6
43680 else
43681   if test "$cross_compiling" = yes; then
43682                   wx_cv_func_strptime_ok=no
43683
43684 else
43685   cat >conftest.$ac_ext <<_ACEOF
43686
43687                     #include <stdlib.h>
43688                     #include <time.h>
43689                     #include "confdefs.h"
43690
43691                     $wx_strptime_decl
43692
43693                     int main()
43694                     {
43695                         struct tm t;
43696                         return !!strptime("", "%x", &t);
43697                     }
43698
43699 _ACEOF
43700 rm -f conftest$ac_exeext
43701 if { (ac_try="$ac_link"
43702 case "(($ac_try" in
43703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43704   *) ac_try_echo=$ac_try;;
43705 esac
43706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43707   (eval "$ac_link") 2>&5
43708   ac_status=$?
43709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43711   { (case "(($ac_try" in
43712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43713   *) ac_try_echo=$ac_try;;
43714 esac
43715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43716   (eval "$ac_try") 2>&5
43717   ac_status=$?
43718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719   (exit $ac_status); }; }; then
43720   wx_cv_func_strptime_ok=yes
43721 else
43722   echo "$as_me: program exited with status $ac_status" >&5
43723 echo "$as_me: failed program was:" >&5
43724 sed 's/^/| /' conftest.$ac_ext >&5
43725
43726 ( exit $ac_status )
43727 wx_cv_func_strptime_ok=no
43728 fi
43729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43730 fi
43731
43732
43733
43734 fi
43735 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43736 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43737
43738         if test "$wx_cv_func_strptime_ok" = "yes"; then
43739             cat >>confdefs.h <<\_ACEOF
43740 #define HAVE_STRPTIME 1
43741 _ACEOF
43742
43743         fi
43744     fi
43745
43746             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43747 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43748 if test "${wx_cv_var_timezone+set}" = set; then
43749   echo $ECHO_N "(cached) $ECHO_C" >&6
43750 else
43751
43752                         ac_ext=cpp
43753 ac_cpp='$CXXCPP $CPPFLAGS'
43754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43757
43758                         cat >conftest.$ac_ext <<_ACEOF
43759 /* confdefs.h.  */
43760 _ACEOF
43761 cat confdefs.h >>conftest.$ac_ext
43762 cat >>conftest.$ac_ext <<_ACEOF
43763 /* end confdefs.h.  */
43764
43765                                 #include <time.h>
43766
43767 int
43768 main ()
43769 {
43770
43771                                 int tz;
43772                                 tz = timezone;
43773
43774   ;
43775   return 0;
43776 }
43777 _ACEOF
43778 rm -f conftest.$ac_objext
43779 if { (ac_try="$ac_compile"
43780 case "(($ac_try" in
43781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43782   *) ac_try_echo=$ac_try;;
43783 esac
43784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43785   (eval "$ac_compile") 2>conftest.er1
43786   ac_status=$?
43787   grep -v '^ *+' conftest.er1 >conftest.err
43788   rm -f conftest.er1
43789   cat conftest.err >&5
43790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43791   (exit $ac_status); } && {
43792          test -z "$ac_cxx_werror_flag" ||
43793          test ! -s conftest.err
43794        } && test -s conftest.$ac_objext; then
43795
43796                                 wx_cv_var_timezone=timezone
43797
43798 else
43799   echo "$as_me: failed program was:" >&5
43800 sed 's/^/| /' conftest.$ac_ext >&5
43801
43802
43803                                 cat >conftest.$ac_ext <<_ACEOF
43804 /* confdefs.h.  */
43805 _ACEOF
43806 cat confdefs.h >>conftest.$ac_ext
43807 cat >>conftest.$ac_ext <<_ACEOF
43808 /* end confdefs.h.  */
43809
43810                                         #include <time.h>
43811
43812 int
43813 main ()
43814 {
43815
43816                                         int tz;
43817                                         tz = _timezone;
43818
43819   ;
43820   return 0;
43821 }
43822 _ACEOF
43823 rm -f conftest.$ac_objext
43824 if { (ac_try="$ac_compile"
43825 case "(($ac_try" in
43826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43827   *) ac_try_echo=$ac_try;;
43828 esac
43829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43830   (eval "$ac_compile") 2>conftest.er1
43831   ac_status=$?
43832   grep -v '^ *+' conftest.er1 >conftest.err
43833   rm -f conftest.er1
43834   cat conftest.err >&5
43835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43836   (exit $ac_status); } && {
43837          test -z "$ac_cxx_werror_flag" ||
43838          test ! -s conftest.err
43839        } && test -s conftest.$ac_objext; then
43840
43841                                         wx_cv_var_timezone=_timezone
43842
43843 else
43844   echo "$as_me: failed program was:" >&5
43845 sed 's/^/| /' conftest.$ac_ext >&5
43846
43847
43848                                         cat >conftest.$ac_ext <<_ACEOF
43849 /* confdefs.h.  */
43850 _ACEOF
43851 cat confdefs.h >>conftest.$ac_ext
43852 cat >>conftest.$ac_ext <<_ACEOF
43853 /* end confdefs.h.  */
43854
43855                                                 #include <time.h>
43856
43857 int
43858 main ()
43859 {
43860
43861                                                 int tz;
43862                                                 tz = __timezone;
43863
43864   ;
43865   return 0;
43866 }
43867 _ACEOF
43868 rm -f conftest.$ac_objext
43869 if { (ac_try="$ac_compile"
43870 case "(($ac_try" in
43871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43872   *) ac_try_echo=$ac_try;;
43873 esac
43874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43875   (eval "$ac_compile") 2>conftest.er1
43876   ac_status=$?
43877   grep -v '^ *+' conftest.er1 >conftest.err
43878   rm -f conftest.er1
43879   cat conftest.err >&5
43880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43881   (exit $ac_status); } && {
43882          test -z "$ac_cxx_werror_flag" ||
43883          test ! -s conftest.err
43884        } && test -s conftest.$ac_objext; then
43885
43886                                                 wx_cv_var_timezone=__timezone
43887
43888 else
43889   echo "$as_me: failed program was:" >&5
43890 sed 's/^/| /' conftest.$ac_ext >&5
43891
43892
43893                                                 if test "$USE_DOS" = 0 ; then
43894                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43895 echo "$as_me: WARNING: no timezone variable" >&2;}
43896                                                 fi
43897
43898
43899 fi
43900
43901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43902
43903
43904 fi
43905
43906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43907
43908
43909 fi
43910
43911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43912                         ac_ext=c
43913 ac_cpp='$CPP $CPPFLAGS'
43914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43917
43918
43919
43920 fi
43921 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43922 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43923
43924         if test "x$wx_cv_var_timezone" != x ; then
43925         cat >>confdefs.h <<_ACEOF
43926 #define WX_TIMEZONE $wx_cv_var_timezone
43927 _ACEOF
43928
43929     fi
43930
43931
43932 for ac_func in localtime
43933 do
43934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43938   echo $ECHO_N "(cached) $ECHO_C" >&6
43939 else
43940   cat >conftest.$ac_ext <<_ACEOF
43941 /* confdefs.h.  */
43942 _ACEOF
43943 cat confdefs.h >>conftest.$ac_ext
43944 cat >>conftest.$ac_ext <<_ACEOF
43945 /* end confdefs.h.  */
43946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43948 #define $ac_func innocuous_$ac_func
43949
43950 /* System header to define __stub macros and hopefully few prototypes,
43951     which can conflict with char $ac_func (); below.
43952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43953     <limits.h> exists even on freestanding compilers.  */
43954
43955 #ifdef __STDC__
43956 # include <limits.h>
43957 #else
43958 # include <assert.h>
43959 #endif
43960
43961 #undef $ac_func
43962
43963 /* Override any GCC internal prototype to avoid an error.
43964    Use char because int might match the return type of a GCC
43965    builtin and then its argument prototype would still apply.  */
43966 #ifdef __cplusplus
43967 extern "C"
43968 #endif
43969 char $ac_func ();
43970 /* The GNU C library defines this for functions which it implements
43971     to always fail with ENOSYS.  Some functions are actually named
43972     something starting with __ and the normal name is an alias.  */
43973 #if defined __stub_$ac_func || defined __stub___$ac_func
43974 choke me
43975 #endif
43976
43977 int
43978 main ()
43979 {
43980 return $ac_func ();
43981   ;
43982   return 0;
43983 }
43984 _ACEOF
43985 rm -f conftest.$ac_objext conftest$ac_exeext
43986 if { (ac_try="$ac_link"
43987 case "(($ac_try" in
43988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43989   *) ac_try_echo=$ac_try;;
43990 esac
43991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43992   (eval "$ac_link") 2>conftest.er1
43993   ac_status=$?
43994   grep -v '^ *+' conftest.er1 >conftest.err
43995   rm -f conftest.er1
43996   cat conftest.err >&5
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); } && {
43999          test -z "$ac_c_werror_flag" ||
44000          test ! -s conftest.err
44001        } && test -s conftest$ac_exeext &&
44002        $as_test_x conftest$ac_exeext; then
44003   eval "$as_ac_var=yes"
44004 else
44005   echo "$as_me: failed program was:" >&5
44006 sed 's/^/| /' conftest.$ac_ext >&5
44007
44008         eval "$as_ac_var=no"
44009 fi
44010
44011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44012       conftest$ac_exeext conftest.$ac_ext
44013 fi
44014 ac_res=`eval echo '${'$as_ac_var'}'`
44015                { echo "$as_me:$LINENO: result: $ac_res" >&5
44016 echo "${ECHO_T}$ac_res" >&6; }
44017 if test `eval echo '${'$as_ac_var'}'` = yes; then
44018   cat >>confdefs.h <<_ACEOF
44019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44020 _ACEOF
44021
44022 fi
44023 done
44024
44025
44026     if test "$ac_cv_func_localtime" = "yes"; then
44027         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44028 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44029 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44030   echo $ECHO_N "(cached) $ECHO_C" >&6
44031 else
44032
44033             cat >conftest.$ac_ext <<_ACEOF
44034 /* confdefs.h.  */
44035 _ACEOF
44036 cat confdefs.h >>conftest.$ac_ext
44037 cat >>conftest.$ac_ext <<_ACEOF
44038 /* end confdefs.h.  */
44039
44040                     #include <time.h>
44041
44042 int
44043 main ()
44044 {
44045
44046                     struct tm tm;
44047                     tm.tm_gmtoff++;
44048
44049   ;
44050   return 0;
44051 }
44052 _ACEOF
44053 rm -f conftest.$ac_objext
44054 if { (ac_try="$ac_compile"
44055 case "(($ac_try" in
44056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44057   *) ac_try_echo=$ac_try;;
44058 esac
44059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44060   (eval "$ac_compile") 2>conftest.er1
44061   ac_status=$?
44062   grep -v '^ *+' conftest.er1 >conftest.err
44063   rm -f conftest.er1
44064   cat conftest.err >&5
44065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066   (exit $ac_status); } && {
44067          test -z "$ac_c_werror_flag" ||
44068          test ! -s conftest.err
44069        } && test -s conftest.$ac_objext; then
44070
44071                     wx_cv_struct_tm_has_gmtoff=yes
44072
44073 else
44074   echo "$as_me: failed program was:" >&5
44075 sed 's/^/| /' conftest.$ac_ext >&5
44076
44077         wx_cv_struct_tm_has_gmtoff=no
44078
44079 fi
44080
44081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44082
44083 fi
44084 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44085 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44086     fi
44087
44088     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44089         cat >>confdefs.h <<\_ACEOF
44090 #define WX_GMTOFF_IN_TM 1
44091 _ACEOF
44092
44093     fi
44094
44095     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44096 fi
44097
44098
44099 if test "$wxUSE_SOCKETS" = "yes"; then
44100     if test "$wxUSE_MGL" = 1; then
44101         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44102 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44103         wxUSE_SOCKETS="no"
44104     fi
44105 fi
44106
44107 if test "$wxUSE_SOCKETS" = "yes"; then
44108         if test "$TOOLKIT" != "MSW"; then
44109                 { echo "$as_me:$LINENO: checking for socket" >&5
44110 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44111 if test "${ac_cv_func_socket+set}" = set; then
44112   echo $ECHO_N "(cached) $ECHO_C" >&6
44113 else
44114   cat >conftest.$ac_ext <<_ACEOF
44115 /* confdefs.h.  */
44116 _ACEOF
44117 cat confdefs.h >>conftest.$ac_ext
44118 cat >>conftest.$ac_ext <<_ACEOF
44119 /* end confdefs.h.  */
44120 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44122 #define socket innocuous_socket
44123
44124 /* System header to define __stub macros and hopefully few prototypes,
44125     which can conflict with char socket (); below.
44126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44127     <limits.h> exists even on freestanding compilers.  */
44128
44129 #ifdef __STDC__
44130 # include <limits.h>
44131 #else
44132 # include <assert.h>
44133 #endif
44134
44135 #undef socket
44136
44137 /* Override any GCC internal prototype to avoid an error.
44138    Use char because int might match the return type of a GCC
44139    builtin and then its argument prototype would still apply.  */
44140 #ifdef __cplusplus
44141 extern "C"
44142 #endif
44143 char socket ();
44144 /* The GNU C library defines this for functions which it implements
44145     to always fail with ENOSYS.  Some functions are actually named
44146     something starting with __ and the normal name is an alias.  */
44147 #if defined __stub_socket || defined __stub___socket
44148 choke me
44149 #endif
44150
44151 int
44152 main ()
44153 {
44154 return socket ();
44155   ;
44156   return 0;
44157 }
44158 _ACEOF
44159 rm -f conftest.$ac_objext conftest$ac_exeext
44160 if { (ac_try="$ac_link"
44161 case "(($ac_try" in
44162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44163   *) ac_try_echo=$ac_try;;
44164 esac
44165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44166   (eval "$ac_link") 2>conftest.er1
44167   ac_status=$?
44168   grep -v '^ *+' conftest.er1 >conftest.err
44169   rm -f conftest.er1
44170   cat conftest.err >&5
44171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44172   (exit $ac_status); } && {
44173          test -z "$ac_c_werror_flag" ||
44174          test ! -s conftest.err
44175        } && test -s conftest$ac_exeext &&
44176        $as_test_x conftest$ac_exeext; then
44177   ac_cv_func_socket=yes
44178 else
44179   echo "$as_me: failed program was:" >&5
44180 sed 's/^/| /' conftest.$ac_ext >&5
44181
44182         ac_cv_func_socket=no
44183 fi
44184
44185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44186       conftest$ac_exeext conftest.$ac_ext
44187 fi
44188 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44189 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44190 if test $ac_cv_func_socket = yes; then
44191   :
44192 else
44193
44194                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44195 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44196 if test "${ac_cv_lib_socket_socket+set}" = set; then
44197   echo $ECHO_N "(cached) $ECHO_C" >&6
44198 else
44199   ac_check_lib_save_LIBS=$LIBS
44200 LIBS="-lsocket  $LIBS"
44201 cat >conftest.$ac_ext <<_ACEOF
44202 /* confdefs.h.  */
44203 _ACEOF
44204 cat confdefs.h >>conftest.$ac_ext
44205 cat >>conftest.$ac_ext <<_ACEOF
44206 /* end confdefs.h.  */
44207
44208 /* Override any GCC internal prototype to avoid an error.
44209    Use char because int might match the return type of a GCC
44210    builtin and then its argument prototype would still apply.  */
44211 #ifdef __cplusplus
44212 extern "C"
44213 #endif
44214 char socket ();
44215 int
44216 main ()
44217 {
44218 return socket ();
44219   ;
44220   return 0;
44221 }
44222 _ACEOF
44223 rm -f conftest.$ac_objext conftest$ac_exeext
44224 if { (ac_try="$ac_link"
44225 case "(($ac_try" in
44226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44227   *) ac_try_echo=$ac_try;;
44228 esac
44229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44230   (eval "$ac_link") 2>conftest.er1
44231   ac_status=$?
44232   grep -v '^ *+' conftest.er1 >conftest.err
44233   rm -f conftest.er1
44234   cat conftest.err >&5
44235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44236   (exit $ac_status); } && {
44237          test -z "$ac_c_werror_flag" ||
44238          test ! -s conftest.err
44239        } && test -s conftest$ac_exeext &&
44240        $as_test_x conftest$ac_exeext; then
44241   ac_cv_lib_socket_socket=yes
44242 else
44243   echo "$as_me: failed program was:" >&5
44244 sed 's/^/| /' conftest.$ac_ext >&5
44245
44246         ac_cv_lib_socket_socket=no
44247 fi
44248
44249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44250       conftest$ac_exeext conftest.$ac_ext
44251 LIBS=$ac_check_lib_save_LIBS
44252 fi
44253 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44255 if test $ac_cv_lib_socket_socket = yes; then
44256   if test "$INET_LINK" != " -lsocket"; then
44257                         INET_LINK="$INET_LINK -lsocket"
44258                     fi
44259 else
44260
44261                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44262 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44263                         wxUSE_SOCKETS=no
44264
44265
44266 fi
44267
44268
44269
44270 fi
44271
44272     fi
44273 fi
44274
44275 if test "$wxUSE_SOCKETS" = "yes" ; then
44276                 if test "$TOOLKIT" != "MSW"; then
44277                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44278 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44279 if test "${wx_cv_type_getsockname3+set}" = set; then
44280   echo $ECHO_N "(cached) $ECHO_C" >&6
44281 else
44282
44283                 ac_ext=cpp
44284 ac_cpp='$CXXCPP $CPPFLAGS'
44285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44288
44289                 cat >conftest.$ac_ext <<_ACEOF
44290 /* confdefs.h.  */
44291 _ACEOF
44292 cat confdefs.h >>conftest.$ac_ext
44293 cat >>conftest.$ac_ext <<_ACEOF
44294 /* end confdefs.h.  */
44295
44296                         #include <sys/types.h>
44297                         #include <sys/socket.h>
44298
44299 int
44300 main ()
44301 {
44302
44303                         socklen_t len;
44304                         getsockname(0, 0, &len);
44305
44306   ;
44307   return 0;
44308 }
44309 _ACEOF
44310 rm -f conftest.$ac_objext
44311 if { (ac_try="$ac_compile"
44312 case "(($ac_try" in
44313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44314   *) ac_try_echo=$ac_try;;
44315 esac
44316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44317   (eval "$ac_compile") 2>conftest.er1
44318   ac_status=$?
44319   grep -v '^ *+' conftest.er1 >conftest.err
44320   rm -f conftest.er1
44321   cat conftest.err >&5
44322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44323   (exit $ac_status); } && {
44324          test -z "$ac_cxx_werror_flag" ||
44325          test ! -s conftest.err
44326        } && test -s conftest.$ac_objext; then
44327   wx_cv_type_getsockname3=socklen_t
44328 else
44329   echo "$as_me: failed program was:" >&5
44330 sed 's/^/| /' conftest.$ac_ext >&5
44331
44332
44333                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44334                         if test "$GCC" = yes ; then
44335                             CFLAGS="-Werror $CFLAGS"
44336                         fi
44337
44338                         cat >conftest.$ac_ext <<_ACEOF
44339 /* confdefs.h.  */
44340 _ACEOF
44341 cat confdefs.h >>conftest.$ac_ext
44342 cat >>conftest.$ac_ext <<_ACEOF
44343 /* end confdefs.h.  */
44344
44345                                 #include <sys/types.h>
44346                                 #include <sys/socket.h>
44347
44348 int
44349 main ()
44350 {
44351
44352                                 size_t len;
44353                                 getsockname(0, 0, &len);
44354
44355   ;
44356   return 0;
44357 }
44358 _ACEOF
44359 rm -f conftest.$ac_objext
44360 if { (ac_try="$ac_compile"
44361 case "(($ac_try" in
44362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44363   *) ac_try_echo=$ac_try;;
44364 esac
44365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44366   (eval "$ac_compile") 2>conftest.er1
44367   ac_status=$?
44368   grep -v '^ *+' conftest.er1 >conftest.err
44369   rm -f conftest.er1
44370   cat conftest.err >&5
44371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372   (exit $ac_status); } && {
44373          test -z "$ac_cxx_werror_flag" ||
44374          test ! -s conftest.err
44375        } && test -s conftest.$ac_objext; then
44376   wx_cv_type_getsockname3=size_t
44377 else
44378   echo "$as_me: failed program was:" >&5
44379 sed 's/^/| /' conftest.$ac_ext >&5
44380
44381         cat >conftest.$ac_ext <<_ACEOF
44382 /* confdefs.h.  */
44383 _ACEOF
44384 cat confdefs.h >>conftest.$ac_ext
44385 cat >>conftest.$ac_ext <<_ACEOF
44386 /* end confdefs.h.  */
44387
44388                                     #include <sys/types.h>
44389                                     #include <sys/socket.h>
44390
44391 int
44392 main ()
44393 {
44394
44395                                     int len;
44396                                     getsockname(0, 0, &len);
44397
44398   ;
44399   return 0;
44400 }
44401 _ACEOF
44402 rm -f conftest.$ac_objext
44403 if { (ac_try="$ac_compile"
44404 case "(($ac_try" in
44405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44406   *) ac_try_echo=$ac_try;;
44407 esac
44408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44409   (eval "$ac_compile") 2>conftest.er1
44410   ac_status=$?
44411   grep -v '^ *+' conftest.er1 >conftest.err
44412   rm -f conftest.er1
44413   cat conftest.err >&5
44414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44415   (exit $ac_status); } && {
44416          test -z "$ac_cxx_werror_flag" ||
44417          test ! -s conftest.err
44418        } && test -s conftest.$ac_objext; then
44419   wx_cv_type_getsockname3=int
44420 else
44421   echo "$as_me: failed program was:" >&5
44422 sed 's/^/| /' conftest.$ac_ext >&5
44423
44424         wx_cv_type_getsockname3=unknown
44425
44426 fi
44427
44428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44429
44430 fi
44431
44432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44433
44434                         CFLAGS="$CFLAGS_OLD"
44435
44436
44437 fi
44438
44439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44440                 ac_ext=c
44441 ac_cpp='$CPP $CPPFLAGS'
44442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44445
44446
44447 fi
44448 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44449 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44450
44451         if test "$wx_cv_type_getsockname3" = "unknown"; then
44452             wxUSE_SOCKETS=no
44453             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44454 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44455         else
44456             cat >>confdefs.h <<_ACEOF
44457 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44458 _ACEOF
44459
44460         fi
44461                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44462 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44463 if test "${wx_cv_type_getsockopt5+set}" = set; then
44464   echo $ECHO_N "(cached) $ECHO_C" >&6
44465 else
44466
44467                                                                                                 ac_ext=cpp
44468 ac_cpp='$CXXCPP $CPPFLAGS'
44469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44472
44473                 cat >conftest.$ac_ext <<_ACEOF
44474 /* confdefs.h.  */
44475 _ACEOF
44476 cat confdefs.h >>conftest.$ac_ext
44477 cat >>conftest.$ac_ext <<_ACEOF
44478 /* end confdefs.h.  */
44479
44480                         #include <sys/types.h>
44481                         #include <sys/socket.h>
44482
44483 int
44484 main ()
44485 {
44486
44487                         socklen_t len;
44488                         getsockopt(0, 0, 0, 0, &len);
44489
44490   ;
44491   return 0;
44492 }
44493 _ACEOF
44494 rm -f conftest.$ac_objext
44495 if { (ac_try="$ac_compile"
44496 case "(($ac_try" in
44497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44498   *) ac_try_echo=$ac_try;;
44499 esac
44500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44501   (eval "$ac_compile") 2>conftest.er1
44502   ac_status=$?
44503   grep -v '^ *+' conftest.er1 >conftest.err
44504   rm -f conftest.er1
44505   cat conftest.err >&5
44506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507   (exit $ac_status); } && {
44508          test -z "$ac_cxx_werror_flag" ||
44509          test ! -s conftest.err
44510        } && test -s conftest.$ac_objext; then
44511   wx_cv_type_getsockopt5=socklen_t
44512 else
44513   echo "$as_me: failed program was:" >&5
44514 sed 's/^/| /' conftest.$ac_ext >&5
44515
44516
44517                         cat >conftest.$ac_ext <<_ACEOF
44518 /* confdefs.h.  */
44519 _ACEOF
44520 cat confdefs.h >>conftest.$ac_ext
44521 cat >>conftest.$ac_ext <<_ACEOF
44522 /* end confdefs.h.  */
44523
44524                                 #include <sys/types.h>
44525                                 #include <sys/socket.h>
44526
44527 int
44528 main ()
44529 {
44530
44531                                 size_t len;
44532                                 getsockopt(0, 0, 0, 0, &len);
44533
44534   ;
44535   return 0;
44536 }
44537 _ACEOF
44538 rm -f conftest.$ac_objext
44539 if { (ac_try="$ac_compile"
44540 case "(($ac_try" in
44541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44542   *) ac_try_echo=$ac_try;;
44543 esac
44544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44545   (eval "$ac_compile") 2>conftest.er1
44546   ac_status=$?
44547   grep -v '^ *+' conftest.er1 >conftest.err
44548   rm -f conftest.er1
44549   cat conftest.err >&5
44550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551   (exit $ac_status); } && {
44552          test -z "$ac_cxx_werror_flag" ||
44553          test ! -s conftest.err
44554        } && test -s conftest.$ac_objext; then
44555   wx_cv_type_getsockopt5=size_t
44556 else
44557   echo "$as_me: failed program was:" >&5
44558 sed 's/^/| /' conftest.$ac_ext >&5
44559
44560         cat >conftest.$ac_ext <<_ACEOF
44561 /* confdefs.h.  */
44562 _ACEOF
44563 cat confdefs.h >>conftest.$ac_ext
44564 cat >>conftest.$ac_ext <<_ACEOF
44565 /* end confdefs.h.  */
44566
44567                                     #include <sys/types.h>
44568                                     #include <sys/socket.h>
44569
44570 int
44571 main ()
44572 {
44573
44574                                     int len;
44575                                     getsockopt(0, 0, 0, 0, &len);
44576
44577   ;
44578   return 0;
44579 }
44580 _ACEOF
44581 rm -f conftest.$ac_objext
44582 if { (ac_try="$ac_compile"
44583 case "(($ac_try" in
44584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44585   *) ac_try_echo=$ac_try;;
44586 esac
44587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44588   (eval "$ac_compile") 2>conftest.er1
44589   ac_status=$?
44590   grep -v '^ *+' conftest.er1 >conftest.err
44591   rm -f conftest.er1
44592   cat conftest.err >&5
44593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44594   (exit $ac_status); } && {
44595          test -z "$ac_cxx_werror_flag" ||
44596          test ! -s conftest.err
44597        } && test -s conftest.$ac_objext; then
44598   wx_cv_type_getsockopt5=int
44599 else
44600   echo "$as_me: failed program was:" >&5
44601 sed 's/^/| /' conftest.$ac_ext >&5
44602
44603         wx_cv_type_getsockopt5=unknown
44604
44605 fi
44606
44607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44608
44609 fi
44610
44611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44612
44613
44614 fi
44615
44616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44617                 ac_ext=c
44618 ac_cpp='$CPP $CPPFLAGS'
44619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44622
44623
44624 fi
44625 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44626 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44627
44628         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44629             wxUSE_SOCKETS=no
44630             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44631 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44632         else
44633             cat >>confdefs.h <<_ACEOF
44634 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44635 _ACEOF
44636
44637         fi
44638     fi
44639 fi
44640
44641 if test "$wxUSE_SOCKETS" = "yes" ; then
44642     if test "$wxUSE_IPV6" = "yes"; then
44643         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44644 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44645 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44646   echo $ECHO_N "(cached) $ECHO_C" >&6
44647 else
44648
44649                 cat >conftest.$ac_ext <<_ACEOF
44650 /* confdefs.h.  */
44651 _ACEOF
44652 cat confdefs.h >>conftest.$ac_ext
44653 cat >>conftest.$ac_ext <<_ACEOF
44654 /* end confdefs.h.  */
44655
44656                         #include <sys/types.h>
44657                         #include <sys/socket.h>
44658                         #include <netinet/in.h>
44659
44660 int
44661 main ()
44662 {
44663
44664                         struct sockaddr_in6 sa6;
44665
44666   ;
44667   return 0;
44668 }
44669 _ACEOF
44670 rm -f conftest.$ac_objext
44671 if { (ac_try="$ac_compile"
44672 case "(($ac_try" in
44673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44674   *) ac_try_echo=$ac_try;;
44675 esac
44676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44677   (eval "$ac_compile") 2>conftest.er1
44678   ac_status=$?
44679   grep -v '^ *+' conftest.er1 >conftest.err
44680   rm -f conftest.er1
44681   cat conftest.err >&5
44682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683   (exit $ac_status); } && {
44684          test -z "$ac_c_werror_flag" ||
44685          test ! -s conftest.err
44686        } && test -s conftest.$ac_objext; then
44687   wx_cv_type_sockaddr_in6=yes
44688 else
44689   echo "$as_me: failed program was:" >&5
44690 sed 's/^/| /' conftest.$ac_ext >&5
44691
44692         wx_cv_type_sockaddr_in6=no
44693
44694 fi
44695
44696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44697
44698
44699 fi
44700 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44701 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44702
44703         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44704             cat >>confdefs.h <<\_ACEOF
44705 #define wxUSE_IPV6 1
44706 _ACEOF
44707
44708         else
44709             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44710 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44711         fi
44712     fi
44713
44714     cat >>confdefs.h <<\_ACEOF
44715 #define wxUSE_SOCKETS 1
44716 _ACEOF
44717
44718     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44719 fi
44720
44721 if test "$wxUSE_PROTOCOL" = "yes"; then
44722     if test "$wxUSE_SOCKETS" != "yes"; then
44723         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44724 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44725         wxUSE_PROTOCOL=no
44726     fi
44727 fi
44728
44729 if test "$wxUSE_PROTOCOL" = "yes"; then
44730     cat >>confdefs.h <<\_ACEOF
44731 #define wxUSE_PROTOCOL 1
44732 _ACEOF
44733
44734
44735     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44736         cat >>confdefs.h <<\_ACEOF
44737 #define wxUSE_PROTOCOL_HTTP 1
44738 _ACEOF
44739
44740     fi
44741     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44742         cat >>confdefs.h <<\_ACEOF
44743 #define wxUSE_PROTOCOL_FTP 1
44744 _ACEOF
44745
44746     fi
44747     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44748         cat >>confdefs.h <<\_ACEOF
44749 #define wxUSE_PROTOCOL_FILE 1
44750 _ACEOF
44751
44752     fi
44753 else
44754     if test "$wxUSE_FS_INET" = "yes"; then
44755         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44756 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44757         wxUSE_FS_INET="no"
44758     fi
44759 fi
44760
44761 if test "$wxUSE_URL" = "yes"; then
44762     if test "$wxUSE_PROTOCOL" != "yes"; then
44763         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44764 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44765         wxUSE_URL=no
44766     fi
44767     if test "$wxUSE_URL" = "yes"; then
44768         cat >>confdefs.h <<\_ACEOF
44769 #define wxUSE_URL 1
44770 _ACEOF
44771
44772     fi
44773 fi
44774
44775 if test "$wxUSE_VARIANT" = "yes"; then
44776     cat >>confdefs.h <<\_ACEOF
44777 #define wxUSE_VARIANT 1
44778 _ACEOF
44779
44780 fi
44781
44782 if test "$wxUSE_FS_INET" = "yes"; then
44783   cat >>confdefs.h <<\_ACEOF
44784 #define wxUSE_FS_INET 1
44785 _ACEOF
44786
44787 fi
44788
44789
44790 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44791     wxUSE_JOYSTICK=no
44792
44793         if test "$TOOLKIT" = "MSW"; then
44794         wxUSE_JOYSTICK=yes
44795
44796         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44797         if test "$USE_DARWIN" = 1; then
44798                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44799 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44800             ac_ext=cpp
44801 ac_cpp='$CXXCPP $CPPFLAGS'
44802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44805
44806             cat >conftest.$ac_ext <<_ACEOF
44807 /* confdefs.h.  */
44808 _ACEOF
44809 cat confdefs.h >>conftest.$ac_ext
44810 cat >>conftest.$ac_ext <<_ACEOF
44811 /* end confdefs.h.  */
44812  #include <IOKit/hid/IOHIDLib.h>
44813 int
44814 main ()
44815 {
44816  IOHIDQueueInterface *qi = NULL;
44817                               IOHIDCallbackFunction cb = NULL;
44818                               qi->setEventCallout(NULL, cb, NULL, NULL);
44819   ;
44820   return 0;
44821 }
44822 _ACEOF
44823 rm -f conftest.$ac_objext
44824 if { (ac_try="$ac_compile"
44825 case "(($ac_try" in
44826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44827   *) ac_try_echo=$ac_try;;
44828 esac
44829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44830   (eval "$ac_compile") 2>conftest.er1
44831   ac_status=$?
44832   grep -v '^ *+' conftest.er1 >conftest.err
44833   rm -f conftest.er1
44834   cat conftest.err >&5
44835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44836   (exit $ac_status); } && {
44837          test -z "$ac_cxx_werror_flag" ||
44838          test ! -s conftest.err
44839        } && test -s conftest.$ac_objext; then
44840    wxUSE_JOYSTICK=yes
44841
44842 else
44843   echo "$as_me: failed program was:" >&5
44844 sed 's/^/| /' conftest.$ac_ext >&5
44845
44846
44847 fi
44848
44849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44850             ac_ext=c
44851 ac_cpp='$CPP $CPPFLAGS'
44852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44855
44856             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44857 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44858         fi
44859
44860         else
44861                 if test "$wxUSE_MGL" != 1; then
44862
44863 for ac_header in linux/joystick.h
44864 do
44865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44869   echo $ECHO_N "(cached) $ECHO_C" >&6
44870 else
44871   cat >conftest.$ac_ext <<_ACEOF
44872 /* confdefs.h.  */
44873 _ACEOF
44874 cat confdefs.h >>conftest.$ac_ext
44875 cat >>conftest.$ac_ext <<_ACEOF
44876 /* end confdefs.h.  */
44877 $ac_includes_default
44878
44879 #include <$ac_header>
44880 _ACEOF
44881 rm -f conftest.$ac_objext
44882 if { (ac_try="$ac_compile"
44883 case "(($ac_try" in
44884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44885   *) ac_try_echo=$ac_try;;
44886 esac
44887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44888   (eval "$ac_compile") 2>conftest.er1
44889   ac_status=$?
44890   grep -v '^ *+' conftest.er1 >conftest.err
44891   rm -f conftest.er1
44892   cat conftest.err >&5
44893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44894   (exit $ac_status); } && {
44895          test -z "$ac_c_werror_flag" ||
44896          test ! -s conftest.err
44897        } && test -s conftest.$ac_objext; then
44898   eval "$as_ac_Header=yes"
44899 else
44900   echo "$as_me: failed program was:" >&5
44901 sed 's/^/| /' conftest.$ac_ext >&5
44902
44903         eval "$as_ac_Header=no"
44904 fi
44905
44906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44907 fi
44908 ac_res=`eval echo '${'$as_ac_Header'}'`
44909                { echo "$as_me:$LINENO: result: $ac_res" >&5
44910 echo "${ECHO_T}$ac_res" >&6; }
44911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44912   cat >>confdefs.h <<_ACEOF
44913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44914 _ACEOF
44915  wxUSE_JOYSTICK=yes
44916 fi
44917
44918 done
44919
44920         fi
44921     fi
44922
44923     if test "$wxUSE_JOYSTICK" = "yes"; then
44924         cat >>confdefs.h <<\_ACEOF
44925 #define wxUSE_JOYSTICK 1
44926 _ACEOF
44927
44928         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44929     else
44930         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44931 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44932     fi
44933 fi
44934
44935
44936
44937 if test "$wxUSE_FONTENUM" = "yes" ; then
44938   cat >>confdefs.h <<\_ACEOF
44939 #define wxUSE_FONTENUM 1
44940 _ACEOF
44941
44942 fi
44943
44944 if test "$wxUSE_FONTMAP" = "yes" ; then
44945   cat >>confdefs.h <<\_ACEOF
44946 #define wxUSE_FONTMAP 1
44947 _ACEOF
44948
44949 fi
44950
44951 if test "$wxUSE_UNICODE" = "yes" ; then
44952   cat >>confdefs.h <<\_ACEOF
44953 #define wxUSE_UNICODE 1
44954 _ACEOF
44955
44956
44957   if test "$USE_WIN32" != 1; then
44958       wxUSE_UNICODE_MSLU=no
44959   fi
44960
44961   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44962         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44963 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
44964 if test "${ac_cv_lib_unicows_main+set}" = set; then
44965   echo $ECHO_N "(cached) $ECHO_C" >&6
44966 else
44967   ac_check_lib_save_LIBS=$LIBS
44968 LIBS="-lunicows  $LIBS"
44969 cat >conftest.$ac_ext <<_ACEOF
44970 /* confdefs.h.  */
44971 _ACEOF
44972 cat confdefs.h >>conftest.$ac_ext
44973 cat >>conftest.$ac_ext <<_ACEOF
44974 /* end confdefs.h.  */
44975
44976
44977 int
44978 main ()
44979 {
44980 return main ();
44981   ;
44982   return 0;
44983 }
44984 _ACEOF
44985 rm -f conftest.$ac_objext conftest$ac_exeext
44986 if { (ac_try="$ac_link"
44987 case "(($ac_try" in
44988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44989   *) ac_try_echo=$ac_try;;
44990 esac
44991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44992   (eval "$ac_link") 2>conftest.er1
44993   ac_status=$?
44994   grep -v '^ *+' conftest.er1 >conftest.err
44995   rm -f conftest.er1
44996   cat conftest.err >&5
44997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44998   (exit $ac_status); } && {
44999          test -z "$ac_c_werror_flag" ||
45000          test ! -s conftest.err
45001        } && test -s conftest$ac_exeext &&
45002        $as_test_x conftest$ac_exeext; then
45003   ac_cv_lib_unicows_main=yes
45004 else
45005   echo "$as_me: failed program was:" >&5
45006 sed 's/^/| /' conftest.$ac_ext >&5
45007
45008         ac_cv_lib_unicows_main=no
45009 fi
45010
45011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45012       conftest$ac_exeext conftest.$ac_ext
45013 LIBS=$ac_check_lib_save_LIBS
45014 fi
45015 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45016 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45017 if test $ac_cv_lib_unicows_main = yes; then
45018
45019                 cat >>confdefs.h <<\_ACEOF
45020 #define wxUSE_UNICODE_MSLU 1
45021 _ACEOF
45022
45023
45024 else
45025
45026                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45027                              Applications will only run on Windows NT/2000/XP!" >&5
45028 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45029                              Applications will only run on Windows NT/2000/XP!" >&2;}
45030                 wxUSE_UNICODE_MSLU=no
45031
45032 fi
45033
45034     fi
45035 fi
45036
45037 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45038     cat >>confdefs.h <<\_ACEOF
45039 #define wxUSE_UNICODE_UTF8 1
45040 _ACEOF
45041
45042
45043     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45044         cat >>confdefs.h <<\_ACEOF
45045 #define wxUSE_UTF8_LOCALE_ONLY 1
45046 _ACEOF
45047
45048     fi
45049 fi
45050
45051
45052 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45053     cat >>confdefs.h <<\_ACEOF
45054 #define wxUSE_CONSTRAINTS 1
45055 _ACEOF
45056
45057     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45058 fi
45059
45060 if test "$wxUSE_MDI" = "yes"; then
45061     cat >>confdefs.h <<\_ACEOF
45062 #define wxUSE_MDI 1
45063 _ACEOF
45064
45065
45066     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45067         cat >>confdefs.h <<\_ACEOF
45068 #define wxUSE_MDI_ARCHITECTURE 1
45069 _ACEOF
45070
45071         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45072     fi
45073 fi
45074
45075 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45076     cat >>confdefs.h <<\_ACEOF
45077 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45078 _ACEOF
45079
45080     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45081     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45082         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45083     fi
45084 fi
45085
45086 if test "$wxUSE_HELP" = "yes"; then
45087     cat >>confdefs.h <<\_ACEOF
45088 #define wxUSE_HELP 1
45089 _ACEOF
45090
45091     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45092
45093     if test "$wxUSE_MSW" = 1; then
45094       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45095         cat >>confdefs.h <<\_ACEOF
45096 #define wxUSE_MS_HTML_HELP 1
45097 _ACEOF
45098
45099       fi
45100     fi
45101
45102     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45103       if test "$wxUSE_HTML" = "yes"; then
45104         cat >>confdefs.h <<\_ACEOF
45105 #define wxUSE_WXHTML_HELP 1
45106 _ACEOF
45107
45108       else
45109         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45110 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45111         wxUSE_WXHTML_HELP=no
45112       fi
45113     fi
45114 fi
45115
45116 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45117     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45118         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45119 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45120     else
45121         cat >>confdefs.h <<\_ACEOF
45122 #define wxUSE_PRINTING_ARCHITECTURE 1
45123 _ACEOF
45124
45125     fi
45126     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45127 fi
45128
45129 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45130   cat >>confdefs.h <<\_ACEOF
45131 #define wxUSE_POSTSCRIPT 1
45132 _ACEOF
45133
45134 fi
45135
45136 cat >>confdefs.h <<\_ACEOF
45137 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45138 _ACEOF
45139
45140
45141 if test "$wxUSE_SVG" = "yes"; then
45142     cat >>confdefs.h <<\_ACEOF
45143 #define wxUSE_SVG 1
45144 _ACEOF
45145
45146 fi
45147
45148
45149 if test "$wxUSE_METAFILE" = "yes"; then
45150     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45151         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45152 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45153         wxUSE_METAFILE=no
45154     fi
45155 fi
45156
45157
45158 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45159                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45160                           -o "$wxUSE_OLE"     = "yes" \
45161                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45162     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45163 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45164 if test "${ac_cv_header_ole2_h+set}" = set; then
45165   echo $ECHO_N "(cached) $ECHO_C" >&6
45166 else
45167   cat >conftest.$ac_ext <<_ACEOF
45168 /* confdefs.h.  */
45169 _ACEOF
45170 cat confdefs.h >>conftest.$ac_ext
45171 cat >>conftest.$ac_ext <<_ACEOF
45172 /* end confdefs.h.  */
45173
45174
45175 #include <ole2.h>
45176 _ACEOF
45177 rm -f conftest.$ac_objext
45178 if { (ac_try="$ac_compile"
45179 case "(($ac_try" in
45180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45181   *) ac_try_echo=$ac_try;;
45182 esac
45183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45184   (eval "$ac_compile") 2>conftest.er1
45185   ac_status=$?
45186   grep -v '^ *+' conftest.er1 >conftest.err
45187   rm -f conftest.er1
45188   cat conftest.err >&5
45189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45190   (exit $ac_status); } && {
45191          test -z "$ac_c_werror_flag" ||
45192          test ! -s conftest.err
45193        } && test -s conftest.$ac_objext; then
45194   ac_cv_header_ole2_h=yes
45195 else
45196   echo "$as_me: failed program was:" >&5
45197 sed 's/^/| /' conftest.$ac_ext >&5
45198
45199         ac_cv_header_ole2_h=no
45200 fi
45201
45202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45203 fi
45204 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45205 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45206
45207
45208
45209     if test "$ac_cv_header_ole2_h" = "yes" ; then
45210         if test "$GCC" = yes ; then
45211             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45212 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45213             cat >conftest.$ac_ext <<_ACEOF
45214 /* confdefs.h.  */
45215 _ACEOF
45216 cat confdefs.h >>conftest.$ac_ext
45217 cat >>conftest.$ac_ext <<_ACEOF
45218 /* end confdefs.h.  */
45219 #include <windows.h>
45220                             #include <ole2.h>
45221 int
45222 main ()
45223 {
45224
45225   ;
45226   return 0;
45227 }
45228 _ACEOF
45229 rm -f conftest.$ac_objext
45230 if { (ac_try="$ac_compile"
45231 case "(($ac_try" in
45232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45233   *) ac_try_echo=$ac_try;;
45234 esac
45235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45236   (eval "$ac_compile") 2>conftest.er1
45237   ac_status=$?
45238   grep -v '^ *+' conftest.er1 >conftest.err
45239   rm -f conftest.er1
45240   cat conftest.err >&5
45241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45242   (exit $ac_status); } && {
45243          test -z "$ac_c_werror_flag" ||
45244          test ! -s conftest.err
45245        } && test -s conftest.$ac_objext; then
45246   { echo "$as_me:$LINENO: result: no" >&5
45247 echo "${ECHO_T}no" >&6; }
45248 else
45249   echo "$as_me: failed program was:" >&5
45250 sed 's/^/| /' conftest.$ac_ext >&5
45251
45252         { echo "$as_me:$LINENO: result: yes" >&5
45253 echo "${ECHO_T}yes" >&6; }
45254                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45255 fi
45256
45257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45258             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45259             if test "$wxUSE_OLE" = "yes" ; then
45260                 cat >>confdefs.h <<\_ACEOF
45261 #define wxUSE_OLE 1
45262 _ACEOF
45263
45264                 cat >>confdefs.h <<\_ACEOF
45265 #define wxUSE_OLE_AUTOMATION 1
45266 _ACEOF
45267
45268                 cat >>confdefs.h <<\_ACEOF
45269 #define wxUSE_ACTIVEX 1
45270 _ACEOF
45271
45272                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45273             fi
45274         fi
45275
45276                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45277             cat >>confdefs.h <<\_ACEOF
45278 #define wxUSE_DATAOBJ 1
45279 _ACEOF
45280
45281         fi
45282     else
45283         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45284 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45285
45286         wxUSE_CLIPBOARD=no
45287         wxUSE_DRAG_AND_DROP=no
45288         wxUSE_DATAOBJ=no
45289         wxUSE_OLE=no
45290     fi
45291
45292     if test "$wxUSE_METAFILE" = "yes"; then
45293         cat >>confdefs.h <<\_ACEOF
45294 #define wxUSE_METAFILE 1
45295 _ACEOF
45296
45297
45298                 cat >>confdefs.h <<\_ACEOF
45299 #define wxUSE_ENH_METAFILE 1
45300 _ACEOF
45301
45302     fi
45303 fi
45304
45305 if test "$wxUSE_IPC" = "yes"; then
45306     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45307         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45308 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45309         wxUSE_IPC=no
45310     fi
45311
45312     if test "$wxUSE_IPC" = "yes"; then
45313         cat >>confdefs.h <<\_ACEOF
45314 #define wxUSE_IPC 1
45315 _ACEOF
45316
45317         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45318     fi
45319 fi
45320
45321 if test "$wxUSE_DATAOBJ" = "yes"; then
45322     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45323         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45324 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45325         wxUSE_DATAOBJ=no
45326     else
45327         cat >>confdefs.h <<\_ACEOF
45328 #define wxUSE_DATAOBJ 1
45329 _ACEOF
45330
45331     fi
45332 else
45333     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45334 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45335     wxUSE_CLIPBOARD=no
45336     wxUSE_DRAG_AND_DROP=no
45337 fi
45338
45339 if test "$wxUSE_CLIPBOARD" = "yes"; then
45340     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45341         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45342 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45343         wxUSE_CLIPBOARD=no
45344     fi
45345
45346     if test "$wxUSE_CLIPBOARD" = "yes"; then
45347         cat >>confdefs.h <<\_ACEOF
45348 #define wxUSE_CLIPBOARD 1
45349 _ACEOF
45350
45351     fi
45352 fi
45353
45354 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45355     if test "$wxUSE_GTK" = 1; then
45356         if test "$WXGTK12" != 1; then
45357             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45358 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45359             wxUSE_DRAG_AND_DROP=no
45360         fi
45361     fi
45362
45363     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45364             "$wxUSE_DFB" = 1; then
45365         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45366 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45367         wxUSE_DRAG_AND_DROP=no
45368     fi
45369
45370     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45371         cat >>confdefs.h <<\_ACEOF
45372 #define wxUSE_DRAG_AND_DROP 1
45373 _ACEOF
45374
45375     fi
45376
45377 fi
45378
45379 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45380     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45381 fi
45382
45383 if test "$wxUSE_SPLINES" = "yes" ; then
45384   cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_SPLINES 1
45386 _ACEOF
45387
45388 fi
45389
45390 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45391   cat >>confdefs.h <<\_ACEOF
45392 #define wxUSE_MOUSEWHEEL 1
45393 _ACEOF
45394
45395 fi
45396
45397
45398 USES_CONTROLS=0
45399 if test "$wxUSE_CONTROLS" = "yes"; then
45400   USES_CONTROLS=1
45401 fi
45402
45403 if test "$wxUSE_ACCEL" = "yes"; then
45404   cat >>confdefs.h <<\_ACEOF
45405 #define wxUSE_ACCEL 1
45406 _ACEOF
45407
45408   USES_CONTROLS=1
45409 fi
45410
45411 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45412   cat >>confdefs.h <<\_ACEOF
45413 #define wxUSE_ANIMATIONCTRL 1
45414 _ACEOF
45415
45416   USES_CONTROLS=1
45417   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45418 fi
45419
45420 if test "$wxUSE_BUTTON" = "yes"; then
45421   cat >>confdefs.h <<\_ACEOF
45422 #define wxUSE_BUTTON 1
45423 _ACEOF
45424
45425   USES_CONTROLS=1
45426 fi
45427
45428 if test "$wxUSE_BMPBUTTON" = "yes"; then
45429   cat >>confdefs.h <<\_ACEOF
45430 #define wxUSE_BMPBUTTON 1
45431 _ACEOF
45432
45433   USES_CONTROLS=1
45434 fi
45435
45436 if test "$wxUSE_CALCTRL" = "yes"; then
45437   cat >>confdefs.h <<\_ACEOF
45438 #define wxUSE_CALENDARCTRL 1
45439 _ACEOF
45440
45441   USES_CONTROLS=1
45442   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45443 fi
45444
45445 if test "$wxUSE_CARET" = "yes"; then
45446   cat >>confdefs.h <<\_ACEOF
45447 #define wxUSE_CARET 1
45448 _ACEOF
45449
45450   USES_CONTROLS=1
45451   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45452 fi
45453
45454 if test "$wxUSE_COLLPANE" = "yes"; then
45455     cat >>confdefs.h <<\_ACEOF
45456 #define wxUSE_COLLPANE 1
45457 _ACEOF
45458
45459     USES_CONTROLS=1
45460     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45461 fi
45462
45463 if test "$wxUSE_COMBOBOX" = "yes"; then
45464   cat >>confdefs.h <<\_ACEOF
45465 #define wxUSE_COMBOBOX 1
45466 _ACEOF
45467
45468   USES_CONTROLS=1
45469 fi
45470
45471 if test "$wxUSE_COMBOCTRL" = "yes"; then
45472   cat >>confdefs.h <<\_ACEOF
45473 #define wxUSE_COMBOCTRL 1
45474 _ACEOF
45475
45476   USES_CONTROLS=1
45477 fi
45478
45479 if test "$wxUSE_CHOICE" = "yes"; then
45480   cat >>confdefs.h <<\_ACEOF
45481 #define wxUSE_CHOICE 1
45482 _ACEOF
45483
45484   USES_CONTROLS=1
45485 fi
45486
45487 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45488     cat >>confdefs.h <<\_ACEOF
45489 #define wxUSE_CHOICEBOOK 1
45490 _ACEOF
45491
45492     USES_CONTROLS=1
45493 fi
45494
45495 if test "$wxUSE_CHECKBOX" = "yes"; then
45496   cat >>confdefs.h <<\_ACEOF
45497 #define wxUSE_CHECKBOX 1
45498 _ACEOF
45499
45500   USES_CONTROLS=1
45501 fi
45502
45503 if test "$wxUSE_CHECKLST" = "yes"; then
45504   cat >>confdefs.h <<\_ACEOF
45505 #define wxUSE_CHECKLISTBOX 1
45506 _ACEOF
45507
45508   USES_CONTROLS=1
45509 fi
45510
45511 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45512   cat >>confdefs.h <<\_ACEOF
45513 #define wxUSE_COLOURPICKERCTRL 1
45514 _ACEOF
45515
45516   USES_CONTROLS=1
45517 fi
45518
45519 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45520   cat >>confdefs.h <<\_ACEOF
45521 #define wxUSE_DATEPICKCTRL 1
45522 _ACEOF
45523
45524   USES_CONTROLS=1
45525 fi
45526
45527 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45528   cat >>confdefs.h <<\_ACEOF
45529 #define wxUSE_DIRPICKERCTRL 1
45530 _ACEOF
45531
45532   USES_CONTROLS=1
45533 fi
45534
45535 if test "$wxUSE_FILECTRL" = "yes"; then
45536   cat >>confdefs.h <<\_ACEOF
45537 #define wxUSE_FILECTRL 1
45538 _ACEOF
45539
45540   USES_CONTROLS=1
45541 fi
45542
45543 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45544   cat >>confdefs.h <<\_ACEOF
45545 #define wxUSE_FILEPICKERCTRL 1
45546 _ACEOF
45547
45548   USES_CONTROLS=1
45549 fi
45550
45551 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45552   cat >>confdefs.h <<\_ACEOF
45553 #define wxUSE_FONTPICKERCTRL 1
45554 _ACEOF
45555
45556   USES_CONTROLS=1
45557 fi
45558
45559 if test "$wxUSE_DISPLAY" = "yes"; then
45560     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45561         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45562 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45563         wxUSE_DISPLAY=no
45564     else
45565         cat >>confdefs.h <<\_ACEOF
45566 #define wxUSE_DISPLAY 1
45567 _ACEOF
45568
45569         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45570     fi
45571 fi
45572
45573 if test "$wxUSE_DETECT_SM" = "yes"; then
45574     cat >>confdefs.h <<\_ACEOF
45575 #define wxUSE_DETECT_SM 1
45576 _ACEOF
45577
45578 fi
45579
45580 if test "$wxUSE_GAUGE" = "yes"; then
45581   cat >>confdefs.h <<\_ACEOF
45582 #define wxUSE_GAUGE 1
45583 _ACEOF
45584
45585   USES_CONTROLS=1
45586 fi
45587
45588 if test "$wxUSE_GRID" = "yes"; then
45589   cat >>confdefs.h <<\_ACEOF
45590 #define wxUSE_GRID 1
45591 _ACEOF
45592
45593   USES_CONTROLS=1
45594   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45595 fi
45596
45597 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45598   cat >>confdefs.h <<\_ACEOF
45599 #define wxUSE_HYPERLINKCTRL 1
45600 _ACEOF
45601
45602   USES_CONTROLS=1
45603 fi
45604
45605 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45606   cat >>confdefs.h <<\_ACEOF
45607 #define wxUSE_BITMAPCOMBOBOX 1
45608 _ACEOF
45609
45610   USES_CONTROLS=1
45611 fi
45612
45613 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45614   cat >>confdefs.h <<\_ACEOF
45615 #define wxUSE_DATAVIEWCTRL 1
45616 _ACEOF
45617
45618   USES_CONTROLS=1
45619   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45620 fi
45621
45622 if test "$wxUSE_IMAGLIST" = "yes"; then
45623     cat >>confdefs.h <<\_ACEOF
45624 #define wxUSE_IMAGLIST 1
45625 _ACEOF
45626
45627 fi
45628
45629 if test "$wxUSE_LISTBOOK" = "yes"; then
45630     cat >>confdefs.h <<\_ACEOF
45631 #define wxUSE_LISTBOOK 1
45632 _ACEOF
45633
45634     USES_CONTROLS=1
45635 fi
45636
45637 if test "$wxUSE_LISTBOX" = "yes"; then
45638     cat >>confdefs.h <<\_ACEOF
45639 #define wxUSE_LISTBOX 1
45640 _ACEOF
45641
45642     USES_CONTROLS=1
45643 fi
45644
45645 if test "$wxUSE_LISTCTRL" = "yes"; then
45646     if test "$wxUSE_IMAGLIST" = "yes"; then
45647         cat >>confdefs.h <<\_ACEOF
45648 #define wxUSE_LISTCTRL 1
45649 _ACEOF
45650
45651         USES_CONTROLS=1
45652         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45653     else
45654         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45655 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45656     fi
45657 fi
45658
45659 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45660     cat >>confdefs.h <<\_ACEOF
45661 #define wxUSE_EDITABLELISTBOX 1
45662 _ACEOF
45663
45664     USES_CONTROLS=1
45665     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45666 fi
45667
45668 if test "$wxUSE_NOTEBOOK" = "yes"; then
45669     cat >>confdefs.h <<\_ACEOF
45670 #define wxUSE_NOTEBOOK 1
45671 _ACEOF
45672
45673     USES_CONTROLS=1
45674     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45675 fi
45676
45677 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45678     cat >>confdefs.h <<\_ACEOF
45679 #define wxUSE_NOTIFICATION_MESSAGE 1
45680 _ACEOF
45681
45682 fi
45683
45684 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45685   cat >>confdefs.h <<\_ACEOF
45686 #define wxUSE_ODCOMBOBOX 1
45687 _ACEOF
45688
45689   USES_CONTROLS=1
45690   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45691 fi
45692
45693 if test "$wxUSE_RADIOBOX" = "yes"; then
45694     cat >>confdefs.h <<\_ACEOF
45695 #define wxUSE_RADIOBOX 1
45696 _ACEOF
45697
45698     USES_CONTROLS=1
45699 fi
45700
45701 if test "$wxUSE_RADIOBTN" = "yes"; then
45702     cat >>confdefs.h <<\_ACEOF
45703 #define wxUSE_RADIOBTN 1
45704 _ACEOF
45705
45706     USES_CONTROLS=1
45707 fi
45708
45709 if test "$wxUSE_SASH" = "yes"; then
45710     cat >>confdefs.h <<\_ACEOF
45711 #define wxUSE_SASH 1
45712 _ACEOF
45713
45714     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45715 fi
45716
45717 if test "$wxUSE_SCROLLBAR" = "yes"; then
45718     cat >>confdefs.h <<\_ACEOF
45719 #define wxUSE_SCROLLBAR 1
45720 _ACEOF
45721
45722     USES_CONTROLS=1
45723     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45724 fi
45725
45726 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45727     cat >>confdefs.h <<\_ACEOF
45728 #define wxUSE_SEARCHCTRL 1
45729 _ACEOF
45730
45731     USES_CONTROLS=1
45732 fi
45733
45734 if test "$wxUSE_SLIDER" = "yes"; then
45735     cat >>confdefs.h <<\_ACEOF
45736 #define wxUSE_SLIDER 1
45737 _ACEOF
45738
45739     USES_CONTROLS=1
45740 fi
45741
45742 if test "$wxUSE_SPINBTN" = "yes"; then
45743     cat >>confdefs.h <<\_ACEOF
45744 #define wxUSE_SPINBTN 1
45745 _ACEOF
45746
45747     USES_CONTROLS=1
45748 fi
45749
45750 if test "$wxUSE_SPINCTRL" = "yes"; then
45751     cat >>confdefs.h <<\_ACEOF
45752 #define wxUSE_SPINCTRL 1
45753 _ACEOF
45754
45755     USES_CONTROLS=1
45756 fi
45757
45758 if test "$wxUSE_SPLITTER" = "yes"; then
45759     cat >>confdefs.h <<\_ACEOF
45760 #define wxUSE_SPLITTER 1
45761 _ACEOF
45762
45763     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45764 fi
45765
45766 if test "$wxUSE_STATBMP" = "yes"; then
45767     cat >>confdefs.h <<\_ACEOF
45768 #define wxUSE_STATBMP 1
45769 _ACEOF
45770
45771     USES_CONTROLS=1
45772 fi
45773
45774 if test "$wxUSE_STATBOX" = "yes"; then
45775     cat >>confdefs.h <<\_ACEOF
45776 #define wxUSE_STATBOX 1
45777 _ACEOF
45778
45779     USES_CONTROLS=1
45780 fi
45781
45782 if test "$wxUSE_STATTEXT" = "yes"; then
45783     cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_STATTEXT 1
45785 _ACEOF
45786
45787     USES_CONTROLS=1
45788 fi
45789
45790 if test "$wxUSE_STATLINE" = "yes"; then
45791     cat >>confdefs.h <<\_ACEOF
45792 #define wxUSE_STATLINE 1
45793 _ACEOF
45794
45795     USES_CONTROLS=1
45796 fi
45797
45798 if test "$wxUSE_STATUSBAR" = "yes"; then
45799         cat >>confdefs.h <<\_ACEOF
45800 #define wxUSE_NATIVE_STATUSBAR 1
45801 _ACEOF
45802
45803     cat >>confdefs.h <<\_ACEOF
45804 #define wxUSE_STATUSBAR 1
45805 _ACEOF
45806
45807     USES_CONTROLS=1
45808
45809     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45810 fi
45811
45812 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45813     cat >>confdefs.h <<\_ACEOF
45814 #define wxUSE_TAB_DIALOG 1
45815 _ACEOF
45816
45817 fi
45818
45819 if test "$wxUSE_TEXTCTRL" = "yes"; then
45820     cat >>confdefs.h <<\_ACEOF
45821 #define wxUSE_TEXTCTRL 1
45822 _ACEOF
45823
45824     USES_CONTROLS=1
45825     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45826
45827             cat >>confdefs.h <<\_ACEOF
45828 #define wxUSE_RICHEDIT 1
45829 _ACEOF
45830
45831     cat >>confdefs.h <<\_ACEOF
45832 #define wxUSE_RICHEDIT2 1
45833 _ACEOF
45834
45835 fi
45836
45837 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45838     if test "$wxUSE_COCOA" = 1 ; then
45839         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45840 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45841         wxUSE_TOGGLEBTN=no
45842     fi
45843
45844     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45845         cat >>confdefs.h <<\_ACEOF
45846 #define wxUSE_TOGGLEBTN 1
45847 _ACEOF
45848
45849         USES_CONTROLS=1
45850     fi
45851 fi
45852
45853 if test "$wxUSE_TOOLBAR" = "yes"; then
45854     cat >>confdefs.h <<\_ACEOF
45855 #define wxUSE_TOOLBAR 1
45856 _ACEOF
45857
45858     USES_CONTROLS=1
45859
45860     if test "$wxUSE_UNIVERSAL" = "yes"; then
45861         wxUSE_TOOLBAR_NATIVE="no"
45862     else
45863         wxUSE_TOOLBAR_NATIVE="yes"
45864         cat >>confdefs.h <<\_ACEOF
45865 #define wxUSE_TOOLBAR_NATIVE 1
45866 _ACEOF
45867
45868     fi
45869
45870     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45871 fi
45872
45873 if test "$wxUSE_TOOLTIPS" = "yes"; then
45874     if test "$wxUSE_MOTIF" = 1; then
45875         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45876 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45877     else
45878         if test "$wxUSE_UNIVERSAL" = "yes"; then
45879             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45880 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45881         else
45882             cat >>confdefs.h <<\_ACEOF
45883 #define wxUSE_TOOLTIPS 1
45884 _ACEOF
45885
45886         fi
45887     fi
45888 fi
45889
45890 if test "$wxUSE_TREEBOOK" = "yes"; then
45891     cat >>confdefs.h <<\_ACEOF
45892 #define wxUSE_TREEBOOK 1
45893 _ACEOF
45894
45895     USES_CONTROLS=1
45896 fi
45897
45898 if test "$wxUSE_TOOLBOOK" = "yes"; then
45899     cat >>confdefs.h <<\_ACEOF
45900 #define wxUSE_TOOLBOOK 1
45901 _ACEOF
45902
45903     USES_CONTROLS=1
45904 fi
45905
45906 if test "$wxUSE_TREECTRL" = "yes"; then
45907     if test "$wxUSE_IMAGLIST" = "yes"; then
45908         cat >>confdefs.h <<\_ACEOF
45909 #define wxUSE_TREECTRL 1
45910 _ACEOF
45911
45912         USES_CONTROLS=1
45913         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45914     else
45915         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45916 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45917     fi
45918 fi
45919
45920 if test "$wxUSE_POPUPWIN" = "yes"; then
45921     if test "$wxUSE_COCOA" = 1 ; then
45922         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45923 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45924     else
45925         if test "$wxUSE_PM" = 1; then
45926             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45927 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45928         else
45929             cat >>confdefs.h <<\_ACEOF
45930 #define wxUSE_POPUPWIN 1
45931 _ACEOF
45932
45933             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45934
45935             USES_CONTROLS=1
45936         fi
45937     fi
45938 fi
45939
45940 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45941     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
45942         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
45943 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
45944     else
45945         cat >>confdefs.h <<\_ACEOF
45946 #define wxUSE_DIALUP_MANAGER 1
45947 _ACEOF
45948
45949         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45950     fi
45951 fi
45952
45953 if test "$wxUSE_TIPWINDOW" = "yes"; then
45954     if test "$wxUSE_PM" = 1; then
45955         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45956 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45957     else
45958         cat >>confdefs.h <<\_ACEOF
45959 #define wxUSE_TIPWINDOW 1
45960 _ACEOF
45961
45962     fi
45963 fi
45964
45965 if test "$USES_CONTROLS" = 1; then
45966     cat >>confdefs.h <<\_ACEOF
45967 #define wxUSE_CONTROLS 1
45968 _ACEOF
45969
45970 fi
45971
45972
45973 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45974     cat >>confdefs.h <<\_ACEOF
45975 #define wxUSE_ACCESSIBILITY 1
45976 _ACEOF
45977
45978     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45979 fi
45980
45981 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45982     cat >>confdefs.h <<\_ACEOF
45983 #define wxUSE_DRAGIMAGE 1
45984 _ACEOF
45985
45986     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45987 fi
45988
45989 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45990     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45991         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45992 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45993     else
45994         cat >>confdefs.h <<\_ACEOF
45995 #define wxUSE_EXCEPTIONS 1
45996 _ACEOF
45997
45998         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45999     fi
46000 fi
46001
46002 USE_HTML=0
46003 if test "$wxUSE_HTML" = "yes"; then
46004     cat >>confdefs.h <<\_ACEOF
46005 #define wxUSE_HTML 1
46006 _ACEOF
46007
46008     USE_HTML=1
46009     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46010     if test "$wxUSE_MAC" = 1; then
46011         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46012     fi
46013 fi
46014 if test "$wxUSE_WEBKIT" = "yes"; then
46015     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46016         old_CPPFLAGS="$CPPFLAGS"
46017         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46018         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46019 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46020 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46021   echo $ECHO_N "(cached) $ECHO_C" >&6
46022 else
46023   cat >conftest.$ac_ext <<_ACEOF
46024 /* confdefs.h.  */
46025 _ACEOF
46026 cat confdefs.h >>conftest.$ac_ext
46027 cat >>conftest.$ac_ext <<_ACEOF
46028 /* end confdefs.h.  */
46029
46030                            #include <Carbon/Carbon.h>
46031                            #include <WebKit/WebKit.h>
46032
46033
46034 #include <WebKit/HIWebView.h>
46035 _ACEOF
46036 rm -f conftest.$ac_objext
46037 if { (ac_try="$ac_compile"
46038 case "(($ac_try" in
46039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46040   *) ac_try_echo=$ac_try;;
46041 esac
46042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46043   (eval "$ac_compile") 2>conftest.er1
46044   ac_status=$?
46045   grep -v '^ *+' conftest.er1 >conftest.err
46046   rm -f conftest.er1
46047   cat conftest.err >&5
46048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46049   (exit $ac_status); } && {
46050          test -z "$ac_c_werror_flag" ||
46051          test ! -s conftest.err
46052        } && test -s conftest.$ac_objext; then
46053   ac_cv_header_WebKit_HIWebView_h=yes
46054 else
46055   echo "$as_me: failed program was:" >&5
46056 sed 's/^/| /' conftest.$ac_ext >&5
46057
46058         ac_cv_header_WebKit_HIWebView_h=no
46059 fi
46060
46061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46062 fi
46063 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46064 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46065 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46066
46067                            cat >>confdefs.h <<\_ACEOF
46068 #define wxUSE_WEBKIT 1
46069 _ACEOF
46070
46071                            WEBKIT_LINK="-framework WebKit"
46072
46073 else
46074
46075                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46076 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46077                            wxUSE_WEBKIT=no
46078
46079 fi
46080
46081
46082         CPPFLAGS="$old_CPPFLAGS"
46083     elif test "$wxUSE_COCOA" = 1; then
46084         cat >>confdefs.h <<\_ACEOF
46085 #define wxUSE_WEBKIT 1
46086 _ACEOF
46087
46088     else
46089         wxUSE_WEBKIT=no
46090     fi
46091 fi
46092
46093 USE_XRC=0
46094 if test "$wxUSE_XRC" = "yes"; then
46095     if test "$wxUSE_XML" != "yes"; then
46096         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46097 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46098         wxUSE_XRC=no
46099     else
46100         cat >>confdefs.h <<\_ACEOF
46101 #define wxUSE_XRC 1
46102 _ACEOF
46103
46104         USE_XRC=1
46105         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46106     fi
46107 fi
46108
46109 USE_AUI=0
46110 if test "$wxUSE_AUI" = "yes"; then
46111    cat >>confdefs.h <<\_ACEOF
46112 #define wxUSE_AUI 1
46113 _ACEOF
46114
46115    USE_AUI=1
46116    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46117 fi
46118
46119 USE_STC=0
46120 if test "$wxUSE_STC" = "yes"; then
46121    cat >>confdefs.h <<\_ACEOF
46122 #define wxUSE_STC 1
46123 _ACEOF
46124
46125    USE_STC=1
46126    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46127 fi
46128
46129 if test "$wxUSE_MENUS" = "yes"; then
46130     cat >>confdefs.h <<\_ACEOF
46131 #define wxUSE_MENUS 1
46132 _ACEOF
46133
46134     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46135 fi
46136
46137 if test "$wxUSE_METAFILE" = "yes"; then
46138     cat >>confdefs.h <<\_ACEOF
46139 #define wxUSE_METAFILE 1
46140 _ACEOF
46141
46142 fi
46143
46144 if test "$wxUSE_MIMETYPE" = "yes"; then
46145     cat >>confdefs.h <<\_ACEOF
46146 #define wxUSE_MIMETYPE 1
46147 _ACEOF
46148
46149 fi
46150
46151 if test "$wxUSE_MINIFRAME" = "yes"; then
46152     cat >>confdefs.h <<\_ACEOF
46153 #define wxUSE_MINIFRAME 1
46154 _ACEOF
46155
46156 fi
46157
46158 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46159     cat >>confdefs.h <<\_ACEOF
46160 #define wxUSE_SYSTEM_OPTIONS 1
46161 _ACEOF
46162
46163 fi
46164
46165 if test "$wxUSE_TASKBARICON" = "yes"; then
46166     cat >>confdefs.h <<\_ACEOF
46167 #define wxUSE_TASKBARICON 1
46168 _ACEOF
46169
46170     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46171 fi
46172
46173
46174 if test "$wxUSE_VALIDATORS" = "yes"; then
46175     cat >>confdefs.h <<\_ACEOF
46176 #define wxUSE_VALIDATORS 1
46177 _ACEOF
46178
46179     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46180 fi
46181
46182 if test "$wxUSE_PALETTE" = "yes" ; then
46183     if test "$wxUSE_DFB" = 1; then
46184         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46185 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46186         wxUSE_PALETTE=no
46187     else
46188         cat >>confdefs.h <<\_ACEOF
46189 #define wxUSE_PALETTE 1
46190 _ACEOF
46191
46192     fi
46193 fi
46194
46195 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46196     LIBS=" -lunicows $LIBS"
46197 fi
46198
46199 USE_RICHTEXT=0
46200 if test "$wxUSE_RICHTEXT" = "yes"; then
46201     cat >>confdefs.h <<\_ACEOF
46202 #define wxUSE_RICHTEXT 1
46203 _ACEOF
46204
46205     USE_RICHTEXT=1
46206     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46207 fi
46208
46209
46210 if test "$wxUSE_IMAGE" = "yes" ; then
46211     cat >>confdefs.h <<\_ACEOF
46212 #define wxUSE_IMAGE 1
46213 _ACEOF
46214
46215
46216     if test "$wxUSE_GIF" = "yes" ; then
46217       cat >>confdefs.h <<\_ACEOF
46218 #define wxUSE_GIF 1
46219 _ACEOF
46220
46221     fi
46222
46223     if test "$wxUSE_PCX" = "yes" ; then
46224       cat >>confdefs.h <<\_ACEOF
46225 #define wxUSE_PCX 1
46226 _ACEOF
46227
46228     fi
46229
46230     if test "$wxUSE_TGA" = "yes" ; then
46231       cat >>confdefs.h <<\_ACEOF
46232 #define wxUSE_TGA 1
46233 _ACEOF
46234
46235     fi
46236
46237     if test "$wxUSE_IFF" = "yes" ; then
46238       cat >>confdefs.h <<\_ACEOF
46239 #define wxUSE_IFF 1
46240 _ACEOF
46241
46242     fi
46243
46244     if test "$wxUSE_PNM" = "yes" ; then
46245       cat >>confdefs.h <<\_ACEOF
46246 #define wxUSE_PNM 1
46247 _ACEOF
46248
46249     fi
46250
46251     if test "$wxUSE_XPM" = "yes" ; then
46252       cat >>confdefs.h <<\_ACEOF
46253 #define wxUSE_XPM 1
46254 _ACEOF
46255
46256     fi
46257
46258     if test "$wxUSE_ICO_CUR" = "yes" ; then
46259       cat >>confdefs.h <<\_ACEOF
46260 #define wxUSE_ICO_CUR 1
46261 _ACEOF
46262
46263     fi
46264 fi
46265
46266
46267 if test "$wxUSE_ABOUTDLG" = "yes"; then
46268     cat >>confdefs.h <<\_ACEOF
46269 #define wxUSE_ABOUTDLG 1
46270 _ACEOF
46271
46272 fi
46273
46274 if test "$wxUSE_CHOICEDLG" = "yes"; then
46275     cat >>confdefs.h <<\_ACEOF
46276 #define wxUSE_CHOICEDLG 1
46277 _ACEOF
46278
46279 fi
46280
46281 if test "$wxUSE_COLOURDLG" = "yes"; then
46282     cat >>confdefs.h <<\_ACEOF
46283 #define wxUSE_COLOURDLG 1
46284 _ACEOF
46285
46286 fi
46287
46288 if test "$wxUSE_FILEDLG" = "yes"; then
46289     cat >>confdefs.h <<\_ACEOF
46290 #define wxUSE_FILEDLG 1
46291 _ACEOF
46292
46293 fi
46294
46295 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46296     cat >>confdefs.h <<\_ACEOF
46297 #define wxUSE_FINDREPLDLG 1
46298 _ACEOF
46299
46300 fi
46301
46302 if test "$wxUSE_FONTDLG" = "yes"; then
46303     cat >>confdefs.h <<\_ACEOF
46304 #define wxUSE_FONTDLG 1
46305 _ACEOF
46306
46307 fi
46308
46309 if test "$wxUSE_DIRDLG" = "yes"; then
46310     if test "$wxUSE_TREECTRL" != "yes"; then
46311         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46312 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46313     else
46314         cat >>confdefs.h <<\_ACEOF
46315 #define wxUSE_DIRDLG 1
46316 _ACEOF
46317
46318     fi
46319 fi
46320
46321 if test "$wxUSE_MSGDLG" = "yes"; then
46322     cat >>confdefs.h <<\_ACEOF
46323 #define wxUSE_MSGDLG 1
46324 _ACEOF
46325
46326 fi
46327
46328 if test "$wxUSE_NUMBERDLG" = "yes"; then
46329     cat >>confdefs.h <<\_ACEOF
46330 #define wxUSE_NUMBERDLG 1
46331 _ACEOF
46332
46333 fi
46334
46335 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46336     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46337        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46338 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46339     else
46340         cat >>confdefs.h <<\_ACEOF
46341 #define wxUSE_PROGRESSDLG 1
46342 _ACEOF
46343
46344     fi
46345 fi
46346
46347 if test "$wxUSE_SPLASH" = "yes"; then
46348     cat >>confdefs.h <<\_ACEOF
46349 #define wxUSE_SPLASH 1
46350 _ACEOF
46351
46352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46353 fi
46354
46355 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46356     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46357        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46358 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46359     else
46360         cat >>confdefs.h <<\_ACEOF
46361 #define wxUSE_STARTUP_TIPS 1
46362 _ACEOF
46363
46364     fi
46365 fi
46366
46367 if test "$wxUSE_TEXTDLG" = "yes"; then
46368     cat >>confdefs.h <<\_ACEOF
46369 #define wxUSE_TEXTDLG 1
46370 _ACEOF
46371
46372 fi
46373
46374 if test "$wxUSE_WIZARDDLG" = "yes"; then
46375     cat >>confdefs.h <<\_ACEOF
46376 #define wxUSE_WIZARDDLG 1
46377 _ACEOF
46378
46379     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46380 fi
46381
46382
46383 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46384     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46385         cat >>confdefs.h <<\_ACEOF
46386 #define wxUSE_OWNER_DRAWN 1
46387 _ACEOF
46388
46389     fi
46390 fi
46391
46392
46393 if test "$wxUSE_MSW" = 1 ; then
46394
46395     if test "$wxUSE_DC_CACHEING" = "yes"; then
46396         cat >>confdefs.h <<\_ACEOF
46397 #define wxUSE_DC_CACHEING 1
46398 _ACEOF
46399
46400     fi
46401
46402     if test "$wxUSE_DIB" = "yes"; then
46403         cat >>confdefs.h <<\_ACEOF
46404 #define wxUSE_WXDIB 1
46405 _ACEOF
46406
46407     fi
46408
46409     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46410         cat >>confdefs.h <<\_ACEOF
46411 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46412 _ACEOF
46413
46414     fi
46415
46416     if test "$wxUSE_UXTHEME" = "yes"; then
46417         cat >>confdefs.h <<\_ACEOF
46418 #define wxUSE_UXTHEME 1
46419 _ACEOF
46420
46421     fi
46422
46423 fi
46424
46425 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46426     cat >>confdefs.h <<\_ACEOF
46427 #define wxUSE_AUTOID_MANAGEMENT 1
46428 _ACEOF
46429
46430 fi
46431
46432 if test "$USE_WIN32" = 1 ; then
46433     if test "$wxUSE_INICONF" = "yes"; then
46434         cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_INICONF 1
46436 _ACEOF
46437
46438     fi
46439
46440     if test "$wxUSE_REGKEY" = "yes"; then
46441         cat >>confdefs.h <<\_ACEOF
46442 #define wxUSE_REGKEY 1
46443 _ACEOF
46444
46445     fi
46446 fi
46447
46448
46449 if test "$wxUSE_MAC" = 1; then
46450         wxUSE_GRAPHICS_CONTEXT="yes"
46451 fi
46452
46453 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46454    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46455       cat >>confdefs.h <<\_ACEOF
46456 #define wxUSE_GRAPHICS_CONTEXT 1
46457 _ACEOF
46458
46459    elif test "$wxUSE_GTK" != 1; then
46460             cat >>confdefs.h <<\_ACEOF
46461 #define wxUSE_GRAPHICS_CONTEXT 1
46462 _ACEOF
46463
46464    else
46465
46466 pkg_failed=no
46467 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46468 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46469
46470 if test -n "$PKG_CONFIG"; then
46471     if test -n "$CAIRO_CFLAGS"; then
46472         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46473     else
46474         if test -n "$PKG_CONFIG" && \
46475     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46476   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46477   ac_status=$?
46478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46479   (exit $ac_status); }; then
46480   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46481 else
46482   pkg_failed=yes
46483 fi
46484     fi
46485 else
46486         pkg_failed=untried
46487 fi
46488 if test -n "$PKG_CONFIG"; then
46489     if test -n "$CAIRO_LIBS"; then
46490         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46491     else
46492         if test -n "$PKG_CONFIG" && \
46493     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46494   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46495   ac_status=$?
46496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46497   (exit $ac_status); }; then
46498   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46499 else
46500   pkg_failed=yes
46501 fi
46502     fi
46503 else
46504         pkg_failed=untried
46505 fi
46506
46507
46508
46509 if test $pkg_failed = yes; then
46510
46511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46512         _pkg_short_errors_supported=yes
46513 else
46514         _pkg_short_errors_supported=no
46515 fi
46516         if test $_pkg_short_errors_supported = yes; then
46517                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46518         else
46519                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46520         fi
46521         # Put the nasty error message in config.log where it belongs
46522         echo "$CAIRO_PKG_ERRORS" >&5
46523
46524         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46525 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46526
46527 elif test $pkg_failed = untried; then
46528         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46529 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46530
46531 else
46532         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46533         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46534         { echo "$as_me:$LINENO: result: yes" >&5
46535 echo "${ECHO_T}yes" >&6; }
46536         cat >>confdefs.h <<\_ACEOF
46537 #define wxUSE_GRAPHICS_CONTEXT 1
46538 _ACEOF
46539
46540 fi
46541    fi
46542 fi
46543
46544
46545 USE_MEDIA=0
46546
46547 if test "$wxUSE_MEDIACTRL" = "yes"; then
46548     USE_MEDIA=1
46549
46550                 if test "$wxUSE_GTK" = 1; then
46551         wxUSE_GSTREAMER="no"
46552
46553                                                                 GST_VERSION_MAJOR=0
46554         GST_VERSION_MINOR=10
46555         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46556
46557         if test "$wxUSE_GSTREAMER8" = "no"; then
46558
46559 pkg_failed=no
46560 { echo "$as_me:$LINENO: checking for GST" >&5
46561 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46562
46563 if test -n "$PKG_CONFIG"; then
46564     if test -n "$GST_CFLAGS"; then
46565         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46566     else
46567         if test -n "$PKG_CONFIG" && \
46568     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46569   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46570   ac_status=$?
46571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46572   (exit $ac_status); }; then
46573   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46574 else
46575   pkg_failed=yes
46576 fi
46577     fi
46578 else
46579         pkg_failed=untried
46580 fi
46581 if test -n "$PKG_CONFIG"; then
46582     if test -n "$GST_LIBS"; then
46583         pkg_cv_GST_LIBS="$GST_LIBS"
46584     else
46585         if test -n "$PKG_CONFIG" && \
46586     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46587   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46588   ac_status=$?
46589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46590   (exit $ac_status); }; then
46591   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46592 else
46593   pkg_failed=yes
46594 fi
46595     fi
46596 else
46597         pkg_failed=untried
46598 fi
46599
46600
46601
46602 if test $pkg_failed = yes; then
46603
46604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46605         _pkg_short_errors_supported=yes
46606 else
46607         _pkg_short_errors_supported=no
46608 fi
46609         if test $_pkg_short_errors_supported = yes; then
46610                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46611         else
46612                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46613         fi
46614         # Put the nasty error message in config.log where it belongs
46615         echo "$GST_PKG_ERRORS" >&5
46616
46617
46618                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46619 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46620                     GST_VERSION_MINOR=8
46621
46622
46623 elif test $pkg_failed = untried; then
46624
46625                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46626 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46627                     GST_VERSION_MINOR=8
46628
46629
46630 else
46631         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46632         GST_LIBS=$pkg_cv_GST_LIBS
46633         { echo "$as_me:$LINENO: result: yes" >&5
46634 echo "${ECHO_T}yes" >&6; }
46635
46636                     wxUSE_GSTREAMER="yes"
46637                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46638
46639 fi
46640         else
46641                         GST_VERSION_MINOR=8
46642         fi
46643
46644         if test $GST_VERSION_MINOR = "8"; then
46645             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46646
46647 pkg_failed=no
46648 { echo "$as_me:$LINENO: checking for GST" >&5
46649 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46650
46651 if test -n "$PKG_CONFIG"; then
46652     if test -n "$GST_CFLAGS"; then
46653         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46654     else
46655         if test -n "$PKG_CONFIG" && \
46656     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46657   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46658   ac_status=$?
46659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); }; then
46661   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46662 else
46663   pkg_failed=yes
46664 fi
46665     fi
46666 else
46667         pkg_failed=untried
46668 fi
46669 if test -n "$PKG_CONFIG"; then
46670     if test -n "$GST_LIBS"; then
46671         pkg_cv_GST_LIBS="$GST_LIBS"
46672     else
46673         if test -n "$PKG_CONFIG" && \
46674     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46675   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46676   ac_status=$?
46677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46678   (exit $ac_status); }; then
46679   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46680 else
46681   pkg_failed=yes
46682 fi
46683     fi
46684 else
46685         pkg_failed=untried
46686 fi
46687
46688
46689
46690 if test $pkg_failed = yes; then
46691
46692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46693         _pkg_short_errors_supported=yes
46694 else
46695         _pkg_short_errors_supported=no
46696 fi
46697         if test $_pkg_short_errors_supported = yes; then
46698                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46699         else
46700                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46701         fi
46702         # Put the nasty error message in config.log where it belongs
46703         echo "$GST_PKG_ERRORS" >&5
46704
46705
46706                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46707 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46708
46709 elif test $pkg_failed = untried; then
46710
46711                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46712 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46713
46714 else
46715         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46716         GST_LIBS=$pkg_cv_GST_LIBS
46717         { echo "$as_me:$LINENO: result: yes" >&5
46718 echo "${ECHO_T}yes" >&6; }
46719         wxUSE_GSTREAMER="yes"
46720 fi
46721         fi
46722
46723
46724         if test "$wxUSE_GSTREAMER" = "yes"; then
46725             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46726             EXTRALIBS_MEDIA="$GST_LIBS"
46727
46728             cat >>confdefs.h <<\_ACEOF
46729 #define wxUSE_GSTREAMER 1
46730 _ACEOF
46731
46732         else
46733             USE_MEDIA=0
46734         fi
46735     fi
46736
46737     if test $USE_MEDIA = 1; then
46738         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46739         cat >>confdefs.h <<\_ACEOF
46740 #define wxUSE_MEDIACTRL 1
46741 _ACEOF
46742
46743     fi
46744 fi
46745
46746
46747 if test "$cross_compiling" = "yes"; then
46748         OSINFO="\"$host\""
46749 else
46750         OSINFO=`uname -s -r -m`
46751     OSINFO="\"$OSINFO\""
46752 fi
46753
46754 cat >>confdefs.h <<_ACEOF
46755 #define WXWIN_OS_DESCRIPTION $OSINFO
46756 _ACEOF
46757
46758
46759
46760 if test "x$prefix" != "xNONE"; then
46761     wxPREFIX=$prefix
46762 else
46763     wxPREFIX=$ac_default_prefix
46764 fi
46765
46766 cat >>confdefs.h <<_ACEOF
46767 #define wxINSTALL_PREFIX "$wxPREFIX"
46768 _ACEOF
46769
46770
46771
46772
46773 STD_BASE_LIBS="base"
46774 STD_GUI_LIBS=""
46775 BUILT_WX_LIBS="base"
46776 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46777
46778 if test "$wxUSE_SOCKETS" = "yes" ; then
46779     STD_BASE_LIBS="net $STD_BASE_LIBS"
46780     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46781 fi
46782 if test "$wxUSE_XML" = "yes" ; then
46783     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46784     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46785 fi
46786
46787 if test "$wxUSE_GUI" = "yes"; then
46788     STD_GUI_LIBS="adv core"
46789     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46790
46791     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46792         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46793         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46794     fi
46795     if test "$wxUSE_HTML" = "yes" ; then
46796         STD_GUI_LIBS="html $STD_GUI_LIBS"
46797         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46798     fi
46799     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46800         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46801     fi
46802     if test "$wxUSE_OPENGL" = "yes" ; then
46803         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46804     fi
46805     if test "$wxUSE_AUI" = "yes" ; then
46806         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46807     fi
46808     if test "$wxUSE_STC" = "yes" ; then
46809         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46810     fi
46811     if test "$wxUSE_XRC" = "yes" ; then
46812         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46813         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46814     fi
46815 fi
46816
46817
46818
46819
46820
46821
46822
46823
46824 if test "$wxUSE_MAC" = 1 ; then
46825     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46826         if test "$USE_DARWIN" = 1; then
46827             LDFLAGS="$LDFLAGS -framework QuickTime"
46828         else
46829             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46830         fi
46831     fi
46832     if test "$USE_DARWIN" = 1; then
46833         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System"
46834     else
46835         LDFLAGS="$LDFLAGS -lCarbonLib"
46836     fi
46837 fi
46838 if test "$wxUSE_COCOA" = 1 ; then
46839     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46840     if test "$wxUSE_MEDIACTRL" = "yes"; then
46841         LDFLAGS="$LDFLAGS -framework QuickTime"
46842     fi
46843 fi
46844 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46845     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46846 fi
46847
46848 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46849
46850 if test "$wxUSE_GUI" = "yes"; then
46851
46852
46853         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46854                      erase event exec font image minimal mobile \
46855                      mobile/wxedit mobile/styles render \
46856                      shaped svg taborder vscroll widgets"
46857
46858     if test "$wxUSE_MONOLITHIC" != "yes"; then
46859         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46860     fi
46861     if test "$TOOLKIT" = "MSW"; then
46862         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46863         if test "$wxUSE_UNIVERSAL" != "yes"; then
46864             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46865         fi
46866     fi
46867     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46868         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46869     fi
46870 else
46871     SAMPLES_SUBDIRS="console"
46872     if test "$wxUSE_SOCKETS" = "yes" ; then
46873         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46874     fi
46875     if test "$wxUSE_IPC" = "yes" ; then
46876         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46877     fi
46878 fi
46879
46880
46881 if test "x$INTELCC" = "xyes" ; then
46882                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46883 elif test "$GCC" = yes ; then
46884     CWARNINGS="-Wall -Wundef"
46885 fi
46886
46887 if test "x$INTELCXX" = "xyes" ; then
46888                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46889 elif test "$GXX" = yes ; then
46890         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
46891 fi
46892
46893
46894 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46895 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46896
46897
46898 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46899  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46900  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46901  $CPPFLAGS `
46902
46903 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46904 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46905 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
46906 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
46907 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
46908
46909 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46910
46911
46912 if test "x$MWCC" = "xyes"; then
46913
46914             CC="$CC -cwd source -I-"
46915     CXX="$CXX -cwd source -I-"
46916 fi
46917
46918
46919 LIBS=`echo $LIBS`
46920 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46921 EXTRALIBS_XML="$EXPAT_LINK"
46922 EXTRALIBS_HTML="$MSPACK_LINK"
46923 EXTRALIBS_MEDIA="$GST_LIBS"
46924 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
46925 if test "$wxUSE_GUI" = "yes"; then
46926     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46927 fi
46928 if test "$wxUSE_OPENGL" = "yes"; then
46929     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46930 fi
46931
46932 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46933
46934 WXCONFIG_LIBS="$LIBS"
46935
46936 if test "$wxUSE_REGEX" = "builtin" ; then
46937     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46938 fi
46939 if test "$wxUSE_EXPAT" = "builtin" ; then
46940     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46941 fi
46942 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46943     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46944 fi
46945 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46946     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46947 fi
46948 if test "$wxUSE_LIBPNG" = "builtin" ; then
46949     wxconfig_3rdparty="png $wxconfig_3rdparty"
46950 fi
46951 if test "$wxUSE_ZLIB" = "builtin" ; then
46952     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46953 fi
46954
46955 for i in $wxconfig_3rdparty ; do
46956     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46957 done
46958
46959
46960 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46961     WXUNIV=1
46962
46963     case "$wxUNIV_THEMES" in
46964         ''|all)
46965             cat >>confdefs.h <<\_ACEOF
46966 #define wxUSE_ALL_THEMES 1
46967 _ACEOF
46968
46969             ;;
46970
46971         *)
46972             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
46973                 cat >>confdefs.h <<_ACEOF
46974 #define wxUSE_THEME_$t 1
46975 _ACEOF
46976
46977             done
46978     esac
46979 else
46980     WXUNIV=0
46981 fi
46982
46983
46984
46985
46986
46987
46988
46989
46990 if test $wxUSE_MONOLITHIC = "yes" ; then
46991     MONOLITHIC=1
46992 else
46993     MONOLITHIC=0
46994 fi
46995
46996 if test $wxUSE_PLUGINS = "yes" ; then
46997     USE_PLUGINS=1
46998 else
46999     USE_PLUGINS=0
47000 fi
47001
47002 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47003     USE_QA=1
47004 else
47005     USE_QA=0
47006 fi
47007
47008 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47009     OFFICIAL_BUILD=1
47010 else
47011     OFFICIAL_BUILD=0
47012 fi
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022
47023
47024
47025
47026
47027
47028
47029
47030
47031
47032
47033
47034
47035
47036
47037
47038
47039
47040
47041 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47042
47043
47044
47045
47046
47047
47048
47049
47050 case "$TOOLKIT" in
47051     GTK)
47052         TOOLKIT_DESC="GTK+"
47053         if test "$WXGTK2" = 1; then
47054             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47055             if test "$wxUSE_GTKPRINT" = "yes" ; then
47056                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47057             fi
47058             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47059                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47060             fi
47061             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47062                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47063             fi
47064             if test "$wxUSE_LIBHILDON" = "yes"; then
47065                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47066             fi
47067
47068             if test "$TOOLKIT_EXTRA" != ""; then
47069                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47070             fi
47071         fi
47072         ;;
47073
47074     ?*)
47075         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47076         ;;
47077
47078     *)
47079         TOOLKIT_DESC="base only"
47080         ;;
47081 esac
47082
47083 if test "$wxUSE_WINE" = "yes"; then
47084     BAKEFILE_FORCE_PLATFORM=win32
47085 fi
47086
47087 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47088 then
47089     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47090 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47091 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47092   echo $ECHO_N "(cached) $ECHO_C" >&6
47093 else
47094
47095             echo '#include <stdio.h>
47096                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47097
47098             echo '#include "conftest.h"
47099                   int main()
47100                   {
47101                      printf("%ls", test_var);
47102                      return 0;
47103                   }' > conftest.cpp
47104
47105             wx_cv_gcc_pch_bug="pch not supported"
47106
47107             if $CXX conftest.h >/dev/null 2>&1
47108             then
47109                 wx_cv_gcc_pch_bug=
47110
47111                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47112                 then
47113                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47114                         grep awidetest >/dev/null
47115                     then
47116                         wx_cv_gcc_pch_bug=no
47117                     else
47118                         wx_cv_gcc_pch_bug=yes
47119                     fi
47120                 fi
47121             fi
47122
47123             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47124
47125 fi
47126 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47127 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47128
47129     if test "$wx_cv_gcc_pch_bug" = yes; then
47130                         bk_use_pch=no
47131     fi
47132 fi
47133
47134
47135
47136
47137
47138
47139
47140     if test "x$BAKEFILE_HOST" = "x"; then
47141                if test "x${host}" = "x" ; then
47142                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47143 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47144    { (exit 1); exit 1; }; }
47145                fi
47146
47147         BAKEFILE_HOST="${host}"
47148     fi
47149
47150     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47151
47152     if test -n "$ac_tool_prefix"; then
47153   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47157 if test "${ac_cv_prog_RANLIB+set}" = set; then
47158   echo $ECHO_N "(cached) $ECHO_C" >&6
47159 else
47160   if test -n "$RANLIB"; then
47161   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47162 else
47163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47164 for as_dir in $PATH
47165 do
47166   IFS=$as_save_IFS
47167   test -z "$as_dir" && as_dir=.
47168   for ac_exec_ext in '' $ac_executable_extensions; do
47169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47170     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47172     break 2
47173   fi
47174 done
47175 done
47176 IFS=$as_save_IFS
47177
47178 fi
47179 fi
47180 RANLIB=$ac_cv_prog_RANLIB
47181 if test -n "$RANLIB"; then
47182   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47183 echo "${ECHO_T}$RANLIB" >&6; }
47184 else
47185   { echo "$as_me:$LINENO: result: no" >&5
47186 echo "${ECHO_T}no" >&6; }
47187 fi
47188
47189
47190 fi
47191 if test -z "$ac_cv_prog_RANLIB"; then
47192   ac_ct_RANLIB=$RANLIB
47193   # Extract the first word of "ranlib", so it can be a program name with args.
47194 set dummy ranlib; ac_word=$2
47195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47198   echo $ECHO_N "(cached) $ECHO_C" >&6
47199 else
47200   if test -n "$ac_ct_RANLIB"; then
47201   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47202 else
47203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47204 for as_dir in $PATH
47205 do
47206   IFS=$as_save_IFS
47207   test -z "$as_dir" && as_dir=.
47208   for ac_exec_ext in '' $ac_executable_extensions; do
47209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47210     ac_cv_prog_ac_ct_RANLIB="ranlib"
47211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47212     break 2
47213   fi
47214 done
47215 done
47216 IFS=$as_save_IFS
47217
47218 fi
47219 fi
47220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47221 if test -n "$ac_ct_RANLIB"; then
47222   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47223 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47224 else
47225   { echo "$as_me:$LINENO: result: no" >&5
47226 echo "${ECHO_T}no" >&6; }
47227 fi
47228
47229   if test "x$ac_ct_RANLIB" = x; then
47230     RANLIB=":"
47231   else
47232     case $cross_compiling:$ac_tool_warned in
47233 yes:)
47234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47235 whose name does not start with the host triplet.  If you think this
47236 configuration is useful to you, please write to autoconf@gnu.org." >&5
47237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47238 whose name does not start with the host triplet.  If you think this
47239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47240 ac_tool_warned=yes ;;
47241 esac
47242     RANLIB=$ac_ct_RANLIB
47243   fi
47244 else
47245   RANLIB="$ac_cv_prog_RANLIB"
47246 fi
47247
47248     # Find a good install program.  We prefer a C program (faster),
47249 # so one script is as good as another.  But avoid the broken or
47250 # incompatible versions:
47251 # SysV /etc/install, /usr/sbin/install
47252 # SunOS /usr/etc/install
47253 # IRIX /sbin/install
47254 # AIX /bin/install
47255 # AmigaOS /C/install, which installs bootblocks on floppy discs
47256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47259 # OS/2's system install, which has a completely different semantic
47260 # ./install, which can be erroneously created by make from ./install.sh.
47261 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47262 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47263 if test -z "$INSTALL"; then
47264 if test "${ac_cv_path_install+set}" = set; then
47265   echo $ECHO_N "(cached) $ECHO_C" >&6
47266 else
47267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47268 for as_dir in $PATH
47269 do
47270   IFS=$as_save_IFS
47271   test -z "$as_dir" && as_dir=.
47272   # Account for people who put trailing slashes in PATH elements.
47273 case $as_dir/ in
47274   ./ | .// | /cC/* | \
47275   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47276   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47277   /usr/ucb/* ) ;;
47278   *)
47279     # OSF1 and SCO ODT 3.0 have their own names for install.
47280     # Don't use installbsd from OSF since it installs stuff as root
47281     # by default.
47282     for ac_prog in ginstall scoinst install; do
47283       for ac_exec_ext in '' $ac_executable_extensions; do
47284         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47285           if test $ac_prog = install &&
47286             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47287             # AIX install.  It has an incompatible calling convention.
47288             :
47289           elif test $ac_prog = install &&
47290             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47291             # program-specific install script used by HP pwplus--don't use.
47292             :
47293           else
47294             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47295             break 3
47296           fi
47297         fi
47298       done
47299     done
47300     ;;
47301 esac
47302 done
47303 IFS=$as_save_IFS
47304
47305
47306 fi
47307   if test "${ac_cv_path_install+set}" = set; then
47308     INSTALL=$ac_cv_path_install
47309   else
47310     # As a last resort, use the slow shell script.  Don't cache a
47311     # value for INSTALL within a source directory, because that will
47312     # break other packages using the cache if that directory is
47313     # removed, or if the value is a relative name.
47314     INSTALL=$ac_install_sh
47315   fi
47316 fi
47317 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47318 echo "${ECHO_T}$INSTALL" >&6; }
47319
47320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47321 # It thinks the first close brace ends the variable substitution.
47322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47323
47324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47325
47326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47327
47328     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47329 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47330 LN_S=$as_ln_s
47331 if test "$LN_S" = "ln -s"; then
47332   { echo "$as_me:$LINENO: result: yes" >&5
47333 echo "${ECHO_T}yes" >&6; }
47334 else
47335   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47336 echo "${ECHO_T}no, using $LN_S" >&6; }
47337 fi
47338
47339
47340     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47344   echo $ECHO_N "(cached) $ECHO_C" >&6
47345 else
47346   cat >conftest.make <<\_ACEOF
47347 SHELL = /bin/sh
47348 all:
47349         @echo '@@@%%%=$(MAKE)=@@@%%%'
47350 _ACEOF
47351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47353   *@@@%%%=?*=@@@%%%*)
47354     eval ac_cv_prog_make_${ac_make}_set=yes;;
47355   *)
47356     eval ac_cv_prog_make_${ac_make}_set=no;;
47357 esac
47358 rm -f conftest.make
47359 fi
47360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47361   { echo "$as_me:$LINENO: result: yes" >&5
47362 echo "${ECHO_T}yes" >&6; }
47363   SET_MAKE=
47364 else
47365   { echo "$as_me:$LINENO: result: no" >&5
47366 echo "${ECHO_T}no" >&6; }
47367   SET_MAKE="MAKE=${MAKE-make}"
47368 fi
47369
47370
47371
47372     if test "x$SUNCXX" = "xyes"; then
47373                                 AR=$CXX
47374         AROPTIONS="-xar -o"
47375
47376     elif test "x$SGICC" = "xyes"; then
47377                 AR=$CXX
47378         AROPTIONS="-ar -o"
47379
47380     else
47381         if test -n "$ac_tool_prefix"; then
47382   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47383 set dummy ${ac_tool_prefix}ar; ac_word=$2
47384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47386 if test "${ac_cv_prog_AR+set}" = set; then
47387   echo $ECHO_N "(cached) $ECHO_C" >&6
47388 else
47389   if test -n "$AR"; then
47390   ac_cv_prog_AR="$AR" # Let the user override the test.
47391 else
47392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47393 for as_dir in $PATH
47394 do
47395   IFS=$as_save_IFS
47396   test -z "$as_dir" && as_dir=.
47397   for ac_exec_ext in '' $ac_executable_extensions; do
47398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47399     ac_cv_prog_AR="${ac_tool_prefix}ar"
47400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47401     break 2
47402   fi
47403 done
47404 done
47405 IFS=$as_save_IFS
47406
47407 fi
47408 fi
47409 AR=$ac_cv_prog_AR
47410 if test -n "$AR"; then
47411   { echo "$as_me:$LINENO: result: $AR" >&5
47412 echo "${ECHO_T}$AR" >&6; }
47413 else
47414   { echo "$as_me:$LINENO: result: no" >&5
47415 echo "${ECHO_T}no" >&6; }
47416 fi
47417
47418
47419 fi
47420 if test -z "$ac_cv_prog_AR"; then
47421   ac_ct_AR=$AR
47422   # Extract the first word of "ar", so it can be a program name with args.
47423 set dummy ar; ac_word=$2
47424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47426 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47427   echo $ECHO_N "(cached) $ECHO_C" >&6
47428 else
47429   if test -n "$ac_ct_AR"; then
47430   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47431 else
47432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47433 for as_dir in $PATH
47434 do
47435   IFS=$as_save_IFS
47436   test -z "$as_dir" && as_dir=.
47437   for ac_exec_ext in '' $ac_executable_extensions; do
47438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47439     ac_cv_prog_ac_ct_AR="ar"
47440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47441     break 2
47442   fi
47443 done
47444 done
47445 IFS=$as_save_IFS
47446
47447 fi
47448 fi
47449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47450 if test -n "$ac_ct_AR"; then
47451   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47452 echo "${ECHO_T}$ac_ct_AR" >&6; }
47453 else
47454   { echo "$as_me:$LINENO: result: no" >&5
47455 echo "${ECHO_T}no" >&6; }
47456 fi
47457
47458   if test "x$ac_ct_AR" = x; then
47459     AR="ar"
47460   else
47461     case $cross_compiling:$ac_tool_warned in
47462 yes:)
47463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47464 whose name does not start with the host triplet.  If you think this
47465 configuration is useful to you, please write to autoconf@gnu.org." >&5
47466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47467 whose name does not start with the host triplet.  If you think this
47468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47469 ac_tool_warned=yes ;;
47470 esac
47471     AR=$ac_ct_AR
47472   fi
47473 else
47474   AR="$ac_cv_prog_AR"
47475 fi
47476
47477         AROPTIONS=rcu
47478     fi
47479
47480
47481     if test -n "$ac_tool_prefix"; then
47482   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47483 set dummy ${ac_tool_prefix}strip; ac_word=$2
47484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47486 if test "${ac_cv_prog_STRIP+set}" = set; then
47487   echo $ECHO_N "(cached) $ECHO_C" >&6
47488 else
47489   if test -n "$STRIP"; then
47490   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47491 else
47492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47493 for as_dir in $PATH
47494 do
47495   IFS=$as_save_IFS
47496   test -z "$as_dir" && as_dir=.
47497   for ac_exec_ext in '' $ac_executable_extensions; do
47498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47499     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47501     break 2
47502   fi
47503 done
47504 done
47505 IFS=$as_save_IFS
47506
47507 fi
47508 fi
47509 STRIP=$ac_cv_prog_STRIP
47510 if test -n "$STRIP"; then
47511   { echo "$as_me:$LINENO: result: $STRIP" >&5
47512 echo "${ECHO_T}$STRIP" >&6; }
47513 else
47514   { echo "$as_me:$LINENO: result: no" >&5
47515 echo "${ECHO_T}no" >&6; }
47516 fi
47517
47518
47519 fi
47520 if test -z "$ac_cv_prog_STRIP"; then
47521   ac_ct_STRIP=$STRIP
47522   # Extract the first word of "strip", so it can be a program name with args.
47523 set dummy strip; ac_word=$2
47524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47527   echo $ECHO_N "(cached) $ECHO_C" >&6
47528 else
47529   if test -n "$ac_ct_STRIP"; then
47530   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47531 else
47532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47533 for as_dir in $PATH
47534 do
47535   IFS=$as_save_IFS
47536   test -z "$as_dir" && as_dir=.
47537   for ac_exec_ext in '' $ac_executable_extensions; do
47538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47539     ac_cv_prog_ac_ct_STRIP="strip"
47540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47541     break 2
47542   fi
47543 done
47544 done
47545 IFS=$as_save_IFS
47546
47547 fi
47548 fi
47549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47550 if test -n "$ac_ct_STRIP"; then
47551   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47552 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47553 else
47554   { echo "$as_me:$LINENO: result: no" >&5
47555 echo "${ECHO_T}no" >&6; }
47556 fi
47557
47558   if test "x$ac_ct_STRIP" = x; then
47559     STRIP=":"
47560   else
47561     case $cross_compiling:$ac_tool_warned in
47562 yes:)
47563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47564 whose name does not start with the host triplet.  If you think this
47565 configuration is useful to you, please write to autoconf@gnu.org." >&5
47566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47567 whose name does not start with the host triplet.  If you think this
47568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47569 ac_tool_warned=yes ;;
47570 esac
47571     STRIP=$ac_ct_STRIP
47572   fi
47573 else
47574   STRIP="$ac_cv_prog_STRIP"
47575 fi
47576
47577     if test -n "$ac_tool_prefix"; then
47578   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47579 set dummy ${ac_tool_prefix}nm; ac_word=$2
47580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47582 if test "${ac_cv_prog_NM+set}" = set; then
47583   echo $ECHO_N "(cached) $ECHO_C" >&6
47584 else
47585   if test -n "$NM"; then
47586   ac_cv_prog_NM="$NM" # Let the user override the test.
47587 else
47588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47589 for as_dir in $PATH
47590 do
47591   IFS=$as_save_IFS
47592   test -z "$as_dir" && as_dir=.
47593   for ac_exec_ext in '' $ac_executable_extensions; do
47594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47595     ac_cv_prog_NM="${ac_tool_prefix}nm"
47596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47597     break 2
47598   fi
47599 done
47600 done
47601 IFS=$as_save_IFS
47602
47603 fi
47604 fi
47605 NM=$ac_cv_prog_NM
47606 if test -n "$NM"; then
47607   { echo "$as_me:$LINENO: result: $NM" >&5
47608 echo "${ECHO_T}$NM" >&6; }
47609 else
47610   { echo "$as_me:$LINENO: result: no" >&5
47611 echo "${ECHO_T}no" >&6; }
47612 fi
47613
47614
47615 fi
47616 if test -z "$ac_cv_prog_NM"; then
47617   ac_ct_NM=$NM
47618   # Extract the first word of "nm", so it can be a program name with args.
47619 set dummy nm; ac_word=$2
47620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47622 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47623   echo $ECHO_N "(cached) $ECHO_C" >&6
47624 else
47625   if test -n "$ac_ct_NM"; then
47626   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47627 else
47628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47629 for as_dir in $PATH
47630 do
47631   IFS=$as_save_IFS
47632   test -z "$as_dir" && as_dir=.
47633   for ac_exec_ext in '' $ac_executable_extensions; do
47634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47635     ac_cv_prog_ac_ct_NM="nm"
47636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47637     break 2
47638   fi
47639 done
47640 done
47641 IFS=$as_save_IFS
47642
47643 fi
47644 fi
47645 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47646 if test -n "$ac_ct_NM"; then
47647   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47648 echo "${ECHO_T}$ac_ct_NM" >&6; }
47649 else
47650   { echo "$as_me:$LINENO: result: no" >&5
47651 echo "${ECHO_T}no" >&6; }
47652 fi
47653
47654   if test "x$ac_ct_NM" = x; then
47655     NM=":"
47656   else
47657     case $cross_compiling:$ac_tool_warned in
47658 yes:)
47659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47660 whose name does not start with the host triplet.  If you think this
47661 configuration is useful to you, please write to autoconf@gnu.org." >&5
47662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47663 whose name does not start with the host triplet.  If you think this
47664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47665 ac_tool_warned=yes ;;
47666 esac
47667     NM=$ac_ct_NM
47668   fi
47669 else
47670   NM="$ac_cv_prog_NM"
47671 fi
47672
47673
47674             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47675 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47676     INSTALL_TEST_DIR=acbftest$$
47677     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47678     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47679         rmdir $INSTALL_TEST_DIR
47680                         INSTALL_DIR='$(INSTALL) -d'
47681         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47682 echo "${ECHO_T}$INSTALL -d" >&6; }
47683     else
47684         INSTALL_DIR="mkdir -p"
47685         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47686 echo "${ECHO_T}mkdir -p" >&6; }
47687     fi
47688
47689
47690     LDFLAGS_GUI=
47691     case ${BAKEFILE_HOST} in
47692         *-*-cygwin* | *-*-mingw32* )
47693         LDFLAGS_GUI="-mwindows"
47694     esac
47695
47696
47697     fi
47698
47699         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47700 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47701 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47702   echo $ECHO_N "(cached) $ECHO_C" >&6
47703 else
47704
47705         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47706                 egrep -s GNU > /dev/null); then
47707             bakefile_cv_prog_makeisgnu="yes"
47708         else
47709             bakefile_cv_prog_makeisgnu="no"
47710         fi
47711
47712 fi
47713 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47714 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47715
47716     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47717         IF_GNU_MAKE=""
47718     else
47719         IF_GNU_MAKE="#"
47720     fi
47721
47722
47723
47724     PLATFORM_UNIX=0
47725     PLATFORM_WIN32=0
47726     PLATFORM_MSDOS=0
47727     PLATFORM_MAC=0
47728     PLATFORM_MACOS=0
47729     PLATFORM_MACOSX=0
47730     PLATFORM_OS2=0
47731     PLATFORM_BEOS=0
47732
47733     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47734         case "${BAKEFILE_HOST}" in
47735             *-*-mingw32* )
47736                 PLATFORM_WIN32=1
47737             ;;
47738             *-pc-msdosdjgpp )
47739                 PLATFORM_MSDOS=1
47740             ;;
47741             *-pc-os2_emx | *-pc-os2-emx )
47742                 PLATFORM_OS2=1
47743             ;;
47744             *-*-darwin* )
47745                 PLATFORM_MAC=1
47746                 PLATFORM_MACOSX=1
47747             ;;
47748             *-*-beos* )
47749                 PLATFORM_BEOS=1
47750             ;;
47751             powerpc-apple-macos* )
47752                 PLATFORM_MAC=1
47753                 PLATFORM_MACOS=1
47754             ;;
47755             * )
47756                 PLATFORM_UNIX=1
47757             ;;
47758         esac
47759     else
47760         case "$BAKEFILE_FORCE_PLATFORM" in
47761             win32 )
47762                 PLATFORM_WIN32=1
47763             ;;
47764             msdos )
47765                 PLATFORM_MSDOS=1
47766             ;;
47767             os2 )
47768                 PLATFORM_OS2=1
47769             ;;
47770             darwin )
47771                 PLATFORM_MAC=1
47772                 PLATFORM_MACOSX=1
47773             ;;
47774             unix )
47775                 PLATFORM_UNIX=1
47776             ;;
47777             beos )
47778                 PLATFORM_BEOS=1
47779             ;;
47780             * )
47781                                             ;;
47782         esac
47783     fi
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793
47794
47795     # Check whether --enable-omf was given.
47796 if test "${enable_omf+set}" = set; then
47797   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47798 fi
47799
47800
47801     case "${BAKEFILE_HOST}" in
47802       *-*-darwin* )
47803                         if test "x$GCC" = "xyes"; then
47804             CFLAGS="$CFLAGS -fno-common"
47805             CXXFLAGS="$CXXFLAGS -fno-common"
47806         fi
47807         if test "x$XLCC" = "xyes"; then
47808             CFLAGS="$CFLAGS -qnocommon"
47809             CXXFLAGS="$CXXFLAGS -qnocommon"
47810         fi
47811         ;;
47812
47813       *-pc-os2_emx | *-pc-os2-emx )
47814         if test "x$bk_os2_use_omf" = "xyes" ; then
47815             AR=emxomfar
47816             RANLIB=:
47817             LDFLAGS="-Zomf $LDFLAGS"
47818             CFLAGS="-Zomf $CFLAGS"
47819             CXXFLAGS="-Zomf $CXXFLAGS"
47820             OS2_LIBEXT="lib"
47821         else
47822             OS2_LIBEXT="a"
47823         fi
47824         ;;
47825
47826       i*86-*-beos* )
47827         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47828         ;;
47829     esac
47830
47831
47832     SO_SUFFIX="so"
47833     SO_SUFFIX_MODULE="so"
47834     EXEEXT=""
47835     LIBPREFIX="lib"
47836     LIBEXT=".a"
47837     DLLPREFIX="lib"
47838     DLLPREFIX_MODULE=""
47839     DLLIMP_SUFFIX=""
47840     dlldir="$libdir"
47841
47842     case "${BAKEFILE_HOST}" in
47843         *-hp-hpux* )
47844             SO_SUFFIX="sl"
47845             SO_SUFFIX_MODULE="sl"
47846         ;;
47847         *-*-aix* )
47848                                                                         SO_SUFFIX="a"
47849             SO_SUFFIX_MODULE="a"
47850         ;;
47851         *-*-cygwin* )
47852             SO_SUFFIX="dll"
47853             SO_SUFFIX_MODULE="dll"
47854             DLLIMP_SUFFIX="dll.a"
47855             EXEEXT=".exe"
47856             DLLPREFIX="cyg"
47857             dlldir="$bindir"
47858         ;;
47859         *-*-mingw32* )
47860             SO_SUFFIX="dll"
47861             SO_SUFFIX_MODULE="dll"
47862             DLLIMP_SUFFIX="dll.a"
47863             EXEEXT=".exe"
47864             DLLPREFIX=""
47865             dlldir="$bindir"
47866         ;;
47867         *-pc-msdosdjgpp )
47868             EXEEXT=".exe"
47869             DLLPREFIX=""
47870             dlldir="$bindir"
47871         ;;
47872         *-pc-os2_emx | *-pc-os2-emx )
47873             SO_SUFFIX="dll"
47874             SO_SUFFIX_MODULE="dll"
47875             DLLIMP_SUFFIX=$OS2_LIBEXT
47876             EXEEXT=".exe"
47877             DLLPREFIX=""
47878             LIBPREFIX=""
47879             LIBEXT=".$OS2_LIBEXT"
47880             dlldir="$bindir"
47881         ;;
47882         *-*-darwin* )
47883             SO_SUFFIX="dylib"
47884             SO_SUFFIX_MODULE="bundle"
47885         ;;
47886     esac
47887
47888     if test "x$DLLIMP_SUFFIX" = "x" ; then
47889         DLLIMP_SUFFIX="$SO_SUFFIX"
47890     fi
47891
47892
47893
47894
47895
47896
47897
47898
47899
47900
47901
47902
47903         PIC_FLAG=""
47904     if test "x$GCC" = "xyes"; then
47905                 PIC_FLAG="-fPIC"
47906     fi
47907
47908         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47909     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47910     WINDOWS_IMPLIB=0
47911
47912     case "${BAKEFILE_HOST}" in
47913       *-hp-hpux* )
47914                 if test "x$GCC" != "xyes"; then
47915                         LDFLAGS="$LDFLAGS -L/usr/lib"
47916
47917             SHARED_LD_CC="${CC} -b -o"
47918             SHARED_LD_CXX="${CXX} -b -o"
47919             PIC_FLAG="+Z"
47920         fi
47921       ;;
47922
47923       *-*-linux* )
47924         if test "$INTELCC" = "yes"; then
47925             PIC_FLAG="-KPIC"
47926         elif test "x$SUNCXX" = "xyes"; then
47927             SHARED_LD_CC="${CC} -G -o"
47928             SHARED_LD_CXX="${CXX} -G -o"
47929             PIC_FLAG="-KPIC"
47930         fi
47931       ;;
47932
47933       *-*-solaris2* )
47934         if test "x$SUNCXX" = xyes ; then
47935             SHARED_LD_CC="${CC} -G -o"
47936             SHARED_LD_CXX="${CXX} -G -o"
47937             PIC_FLAG="-KPIC"
47938         fi
47939       ;;
47940
47941       *-*-darwin* )
47942
47943 D='$'
47944 cat <<EOF >shared-ld-sh
47945 #!/bin/sh
47946 #-----------------------------------------------------------------------------
47947 #-- Name:        distrib/mac/shared-ld-sh
47948 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47949 #-- Author:      Gilles Depeyrot
47950 #-- Copyright:   (c) 2002 Gilles Depeyrot
47951 #-- Licence:     any use permitted
47952 #-----------------------------------------------------------------------------
47953
47954 verbose=0
47955 args=""
47956 objects=""
47957 linking_flag="-dynamiclib"
47958 ldargs="-r -keep_private_externs -nostdlib"
47959
47960 if test "x${D}CXX" = "x"; then
47961     CXX="c++"
47962 fi
47963
47964 while test ${D}# -gt 0; do
47965     case ${D}1 in
47966
47967        -v)
47968         verbose=1
47969         ;;
47970
47971        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47972         # collect these options and values
47973         args="${D}{args} ${D}1 ${D}2"
47974         shift
47975         ;;
47976
47977        -arch|-isysroot)
47978         # collect these options and values
47979         ldargs="${D}{ldargs} ${D}1 ${D}2"
47980         shift
47981         ;;
47982
47983        -s|-Wl,*)
47984         # collect these load args
47985         ldargs="${D}{ldargs} ${D}1"
47986         ;;
47987
47988        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47989         # collect these options
47990         args="${D}{args} ${D}1"
47991         ;;
47992
47993        -dynamiclib|-bundle)
47994         linking_flag="${D}1"
47995         ;;
47996
47997        -*)
47998         echo "shared-ld: unhandled option '${D}1'"
47999         exit 1
48000         ;;
48001
48002         *.o | *.a | *.dylib)
48003         # collect object files
48004         objects="${D}{objects} ${D}1"
48005         ;;
48006
48007         *)
48008         echo "shared-ld: unhandled argument '${D}1'"
48009         exit 1
48010         ;;
48011
48012     esac
48013     shift
48014 done
48015
48016 status=0
48017
48018 #
48019 # Link one module containing all the others
48020 #
48021 if test ${D}{verbose} = 1; then
48022     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48023 fi
48024 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48025 status=${D}?
48026
48027 #
48028 # Link the shared library from the single module created, but only if the
48029 # previous command didn't fail:
48030 #
48031 if test ${D}{status} = 0; then
48032     if test ${D}{verbose} = 1; then
48033         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48034     fi
48035     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48036     status=${D}?
48037 fi
48038
48039 #
48040 # Remove intermediate module
48041 #
48042 rm -f master.${D}${D}.o
48043
48044 exit ${D}status
48045 EOF
48046
48047         chmod +x shared-ld-sh
48048
48049         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48050         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48051
48052
48053                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48054 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48055 if test "${bakefile_cv_gcc31+set}" = set; then
48056   echo $ECHO_N "(cached) $ECHO_C" >&6
48057 else
48058
48059            cat >conftest.$ac_ext <<_ACEOF
48060 /* confdefs.h.  */
48061 _ACEOF
48062 cat confdefs.h >>conftest.$ac_ext
48063 cat >>conftest.$ac_ext <<_ACEOF
48064 /* end confdefs.h.  */
48065
48066 int
48067 main ()
48068 {
48069
48070                    #if (__GNUC__ < 3) || \
48071                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48072                        This is old gcc
48073                    #endif
48074
48075   ;
48076   return 0;
48077 }
48078 _ACEOF
48079 rm -f conftest.$ac_objext
48080 if { (ac_try="$ac_compile"
48081 case "(($ac_try" in
48082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48083   *) ac_try_echo=$ac_try;;
48084 esac
48085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48086   (eval "$ac_compile") 2>conftest.er1
48087   ac_status=$?
48088   grep -v '^ *+' conftest.er1 >conftest.err
48089   rm -f conftest.er1
48090   cat conftest.err >&5
48091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48092   (exit $ac_status); } && {
48093          test -z "$ac_c_werror_flag" ||
48094          test ! -s conftest.err
48095        } && test -s conftest.$ac_objext; then
48096
48097                    bakefile_cv_gcc31=yes
48098
48099 else
48100   echo "$as_me: failed program was:" >&5
48101 sed 's/^/| /' conftest.$ac_ext >&5
48102
48103
48104                    bakefile_cv_gcc31=no
48105
48106
48107 fi
48108
48109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48110
48111 fi
48112 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48113 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48114         if test "$bakefile_cv_gcc31" = "no"; then
48115                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48116             SHARED_LD_CXX="$SHARED_LD_CC"
48117         else
48118                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48119             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48120         fi
48121
48122         if test "x$GCC" == "xyes"; then
48123             PIC_FLAG="-dynamic -fPIC"
48124         fi
48125         if test "x$XLCC" = "xyes"; then
48126             PIC_FLAG="-dynamic -DPIC"
48127         fi
48128       ;;
48129
48130       *-*-aix* )
48131         if test "x$GCC" = "xyes"; then
48132                                                             PIC_FLAG=""
48133
48134                                                                                     case "${BAKEFILE_HOST}" in
48135                 *-*-aix5* )
48136                     LD_EXPFULL="-Wl,-bexpfull"
48137                     ;;
48138             esac
48139
48140             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48141             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48142         else
48143                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48144 set dummy makeC++SharedLib; ac_word=$2
48145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48147 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48148   echo $ECHO_N "(cached) $ECHO_C" >&6
48149 else
48150   if test -n "$AIX_CXX_LD"; then
48151   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48152 else
48153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48154 for as_dir in $PATH
48155 do
48156   IFS=$as_save_IFS
48157   test -z "$as_dir" && as_dir=.
48158   for ac_exec_ext in '' $ac_executable_extensions; do
48159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48160     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48162     break 2
48163   fi
48164 done
48165 done
48166 IFS=$as_save_IFS
48167
48168   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48169 fi
48170 fi
48171 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48172 if test -n "$AIX_CXX_LD"; then
48173   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48174 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48175 else
48176   { echo "$as_me:$LINENO: result: no" >&5
48177 echo "${ECHO_T}no" >&6; }
48178 fi
48179
48180
48181             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48182             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48183         fi
48184       ;;
48185
48186       *-*-beos* )
48187                         SHARED_LD_CC="${LD} -nostart -o"
48188         SHARED_LD_CXX="${LD} -nostart -o"
48189       ;;
48190
48191       *-*-irix* )
48192                 if test "x$GCC" != "xyes"; then
48193             PIC_FLAG="-KPIC"
48194         fi
48195       ;;
48196
48197       *-*-cygwin* | *-*-mingw32* )
48198         PIC_FLAG=""
48199         SHARED_LD_CC="\$(CC) -shared -o"
48200         SHARED_LD_CXX="\$(CXX) -shared -o"
48201         WINDOWS_IMPLIB=1
48202       ;;
48203
48204       *-pc-os2_emx | *-pc-os2-emx )
48205         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48206         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48207         PIC_FLAG=""
48208
48209 D='$'
48210 cat <<EOF >dllar.sh
48211 #!/bin/sh
48212 #
48213 # dllar - a tool to build both a .dll and an .a file
48214 # from a set of object (.o) files for EMX/OS2.
48215 #
48216 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48217 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48218 #
48219 #  This script will accept a set of files on the command line.
48220 #  All the public symbols from the .o files will be exported into
48221 #  a .DEF file, then linker will be run (through gcc) against them to
48222 #  build a shared library consisting of all given .o files. All libraries
48223 #  (.a) will be first decompressed into component .o files then act as
48224 #  described above. You can optionally give a description (-d "description")
48225 #  which will be put into .DLL. To see the list of accepted options (as well
48226 #  as command-line format) simply run this program without options. The .DLL
48227 #  is built to be imported by name (there is no guarantee that new versions
48228 #  of the library you build will have same ordinals for same symbols).
48229 #
48230 #  dllar is free software; you can redistribute it and/or modify
48231 #  it under the terms of the GNU General Public License as published by
48232 #  the Free Software Foundation; either version 2, or (at your option)
48233 #  any later version.
48234 #
48235 #  dllar is distributed in the hope that it will be useful,
48236 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48237 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48238 #  GNU General Public License for more details.
48239 #
48240 #  You should have received a copy of the GNU General Public License
48241 #  along with dllar; see the file COPYING.  If not, write to the Free
48242 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48243 #  02111-1307, USA.
48244
48245 # To successfuly run this program you will need:
48246 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48247 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48248 #  - gcc
48249 #    (used to build the .dll)
48250 #  - emxexp
48251 #    (used to create .def file from .o files)
48252 #  - emximp
48253 #    (used to create .a file from .def file)
48254 #  - GNU text utilites (cat, sort, uniq)
48255 #    used to process emxexp output
48256 #  - GNU file utilities (mv, rm)
48257 #  - GNU sed
48258 #  - lxlite (optional, see flag below)
48259 #    (used for general .dll cleanup)
48260 #
48261
48262 flag_USE_LXLITE=1;
48263
48264 #
48265 # helper functions
48266 # basnam, variant of basename, which does _not_ remove the path, _iff_
48267 #                              second argument (suffix to remove) is given
48268 basnam(){
48269     case ${D}# in
48270     1)
48271         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48272         ;;
48273     2)
48274         echo ${D}1 | sed 's/'${D}2'${D}//'
48275         ;;
48276     *)
48277         echo "error in basnam ${D}*"
48278         exit 8
48279         ;;
48280     esac
48281 }
48282
48283 # Cleanup temporary files and output
48284 CleanUp() {
48285     cd ${D}curDir
48286     for i in ${D}inputFiles ; do
48287         case ${D}i in
48288         *!)
48289             rm -rf \`basnam ${D}i !\`
48290             ;;
48291         *)
48292             ;;
48293         esac
48294     done
48295
48296     # Kill result in case of failure as there is just to many stupid make/nmake
48297     # things out there which doesn't do this.
48298     if [ ${D}# -eq 0 ]; then
48299         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48300     fi
48301 }
48302
48303 # Print usage and exit script with rc=1.
48304 PrintHelp() {
48305  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48306  echo '       [-name-mangler-script script.sh]'
48307  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48308  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48309  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48310  echo '       [*.o] [*.a]'
48311  echo '*> "output_file" should have no extension.'
48312  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48313  echo '   The import library name is derived from this and is set to "name".a,'
48314  echo '   unless overridden by -import'
48315  echo '*> "importlib_name" should have no extension.'
48316  echo '   If it has the .o, or .a extension, it is automatically removed.'
48317  echo '   This name is used as the import library name and may be longer and'
48318  echo '   more descriptive than the DLL name which has to follow the old '
48319  echo '   8.3 convention of FAT.'
48320  echo '*> "script.sh may be given to override the output_file name by a'
48321  echo '   different name. It is mainly useful if the regular make process'
48322  echo '   of some package does not take into account OS/2 restriction of'
48323  echo '   DLL name lengths. It takes the importlib name as input and is'
48324  echo '   supposed to procude a shorter name as output. The script should'
48325  echo '   expect to get importlib_name without extension and should produce'
48326  echo '   a (max.) 8 letter name without extension.'
48327  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48328  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48329  echo '   These flags will be put at the start of GCC command line.'
48330  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48331  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48332  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48333  echo '   If the last character of a symbol is "*", all symbols beginning'
48334  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48335  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48336  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48337  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48338  echo '   C runtime DLLs.'
48339  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48340  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48341  echo '   unchanged to GCC at the end of command line.'
48342  echo '*> If you create a DLL from a library and you do not specify -o,'
48343  echo '   the basename for DLL and import library will be set to library name,'
48344  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48345  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48346  echo '   library will be renamed into gcc_s.a.'
48347  echo '--------'
48348  echo 'Example:'
48349  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48350  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48351  CleanUp
48352  exit 1
48353 }
48354
48355 # Execute a command.
48356 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48357 # @Uses    Whatever CleanUp() uses.
48358 doCommand() {
48359     echo "${D}*"
48360     eval ${D}*
48361     rcCmd=${D}?
48362
48363     if [ ${D}rcCmd -ne 0 ]; then
48364         echo "command failed, exit code="${D}rcCmd
48365         CleanUp
48366         exit ${D}rcCmd
48367     fi
48368 }
48369
48370 # main routine
48371 # setup globals
48372 cmdLine=${D}*
48373 outFile=""
48374 outimpFile=""
48375 inputFiles=""
48376 renameScript=""
48377 description=""
48378 CC=gcc.exe
48379 CFLAGS="-s -Zcrtdll"
48380 EXTRA_CFLAGS=""
48381 EXPORT_BY_ORDINALS=0
48382 exclude_symbols=""
48383 library_flags=""
48384 curDir=\`pwd\`
48385 curDirS=curDir
48386 case ${D}curDirS in
48387 */)
48388   ;;
48389 *)
48390   curDirS=${D}{curDirS}"/"
48391   ;;
48392 esac
48393 # Parse commandline
48394 libsToLink=0
48395 omfLinking=0
48396 while [ ${D}1 ]; do
48397     case ${D}1 in
48398     -ord*)
48399         EXPORT_BY_ORDINALS=1;
48400         ;;
48401     -o*)
48402         shift
48403         outFile=${D}1
48404         ;;
48405     -i*)
48406         shift
48407         outimpFile=${D}1
48408         ;;
48409     -name-mangler-script)
48410         shift
48411         renameScript=${D}1
48412         ;;
48413     -d*)
48414         shift
48415         description=${D}1
48416         ;;
48417     -f*)
48418         shift
48419         CFLAGS=${D}1
48420         ;;
48421     -c*)
48422         shift
48423         CC=${D}1
48424         ;;
48425     -h*)
48426         PrintHelp
48427         ;;
48428     -ex*)
48429         shift
48430         exclude_symbols=${D}{exclude_symbols}${D}1" "
48431         ;;
48432     -libf*)
48433         shift
48434         library_flags=${D}{library_flags}${D}1" "
48435         ;;
48436     -nocrt*)
48437         CFLAGS="-s"
48438         ;;
48439     -nolxl*)
48440         flag_USE_LXLITE=0
48441         ;;
48442     -* | /*)
48443         case ${D}1 in
48444         -L* | -l*)
48445             libsToLink=1
48446             ;;
48447         -Zomf)
48448             omfLinking=1
48449             ;;
48450         *)
48451             ;;
48452         esac
48453         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48454         ;;
48455     *.dll)
48456         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48457         if [ ${D}omfLinking -eq 1 ]; then
48458             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48459         else
48460             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48461         fi
48462         ;;
48463     *)
48464         found=0;
48465         if [ ${D}libsToLink -ne 0 ]; then
48466             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48467         else
48468             for file in ${D}1 ; do
48469                 if [ -f ${D}file ]; then
48470                     inputFiles="${D}{inputFiles} ${D}file"
48471                     found=1
48472                 fi
48473             done
48474             if [ ${D}found -eq 0 ]; then
48475                 echo "ERROR: No file(s) found: "${D}1
48476                 exit 8
48477             fi
48478         fi
48479       ;;
48480     esac
48481     shift
48482 done # iterate cmdline words
48483
48484 #
48485 if [ -z "${D}inputFiles" ]; then
48486     echo "dllar: no input files"
48487     PrintHelp
48488 fi
48489
48490 # Now extract all .o files from .a files
48491 newInputFiles=""
48492 for file in ${D}inputFiles ; do
48493     case ${D}file in
48494     *.a | *.lib)
48495         case ${D}file in
48496         *.a)
48497             suffix=".a"
48498             AR="ar"
48499             ;;
48500         *.lib)
48501             suffix=".lib"
48502             AR="emxomfar"
48503             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48504             ;;
48505         *)
48506             ;;
48507         esac
48508         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48509         mkdir ${D}dirname
48510         if [ ${D}? -ne 0 ]; then
48511             echo "Failed to create subdirectory ./${D}dirname"
48512             CleanUp
48513             exit 8;
48514         fi
48515         # Append '!' to indicate archive
48516         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48517         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48518         cd ${D}curDir
48519         found=0;
48520         for subfile in ${D}dirname/*.o* ; do
48521             if [ -f ${D}subfile ]; then
48522                 found=1
48523                 if [ -s ${D}subfile ]; then
48524                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48525                     newInputFiles="${D}newInputFiles ${D}subfile"
48526                 fi
48527             fi
48528         done
48529         if [ ${D}found -eq 0 ]; then
48530             echo "WARNING: there are no files in archive \\'${D}file\\'"
48531         fi
48532         ;;
48533     *)
48534         newInputFiles="${D}{newInputFiles} ${D}file"
48535         ;;
48536     esac
48537 done
48538 inputFiles="${D}newInputFiles"
48539
48540 # Output filename(s).
48541 do_backup=0;
48542 if [ -z ${D}outFile ]; then
48543     do_backup=1;
48544     set outFile ${D}inputFiles; outFile=${D}2
48545 fi
48546
48547 # If it is an archive, remove the '!' and the '_%' suffixes
48548 case ${D}outFile in
48549 *_%!)
48550     outFile=\`basnam ${D}outFile _%!\`
48551     ;;
48552 *)
48553     ;;
48554 esac
48555 case ${D}outFile in
48556 *.dll)
48557     outFile=\`basnam ${D}outFile .dll\`
48558     ;;
48559 *.DLL)
48560     outFile=\`basnam ${D}outFile .DLL\`
48561     ;;
48562 *.o)
48563     outFile=\`basnam ${D}outFile .o\`
48564     ;;
48565 *.obj)
48566     outFile=\`basnam ${D}outFile .obj\`
48567     ;;
48568 *.a)
48569     outFile=\`basnam ${D}outFile .a\`
48570     ;;
48571 *.lib)
48572     outFile=\`basnam ${D}outFile .lib\`
48573     ;;
48574 *)
48575     ;;
48576 esac
48577 case ${D}outimpFile in
48578 *.a)
48579     outimpFile=\`basnam ${D}outimpFile .a\`
48580     ;;
48581 *.lib)
48582     outimpFile=\`basnam ${D}outimpFile .lib\`
48583     ;;
48584 *)
48585     ;;
48586 esac
48587 if [ -z ${D}outimpFile ]; then
48588     outimpFile=${D}outFile
48589 fi
48590 defFile="${D}{outFile}.def"
48591 arcFile="${D}{outimpFile}.a"
48592 arcFile2="${D}{outimpFile}.lib"
48593
48594 #create ${D}dllFile as something matching 8.3 restrictions,
48595 if [ -z ${D}renameScript ] ; then
48596     dllFile="${D}outFile"
48597 else
48598     dllFile=\`${D}renameScript ${D}outimpFile\`
48599 fi
48600
48601 if [ ${D}do_backup -ne 0 ] ; then
48602     if [ -f ${D}arcFile ] ; then
48603         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48604     fi
48605     if [ -f ${D}arcFile2 ] ; then
48606         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48607     fi
48608 fi
48609
48610 # Extract public symbols from all the object files.
48611 tmpdefFile=${D}{defFile}_%
48612 rm -f ${D}tmpdefFile
48613 for file in ${D}inputFiles ; do
48614     case ${D}file in
48615     *!)
48616         ;;
48617     *)
48618         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48619         ;;
48620     esac
48621 done
48622
48623 # Create the def file.
48624 rm -f ${D}defFile
48625 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48626 dllFile="${D}{dllFile}.dll"
48627 if [ ! -z ${D}description ]; then
48628     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48629 fi
48630 echo "EXPORTS" >> ${D}defFile
48631
48632 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48633 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48634
48635 # Checks if the export is ok or not.
48636 for word in ${D}exclude_symbols; do
48637     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48638     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48639 done
48640
48641
48642 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48643     sed "=" < ${D}tmpdefFile | \\
48644     sed '
48645       N
48646       : loop
48647       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48648       t loop
48649     ' > ${D}{tmpdefFile}%
48650     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48651 else
48652     rm -f ${D}{tmpdefFile}%
48653 fi
48654 cat ${D}tmpdefFile >> ${D}defFile
48655 rm -f ${D}tmpdefFile
48656
48657 # Do linking, create implib, and apply lxlite.
48658 gccCmdl="";
48659 for file in ${D}inputFiles ; do
48660     case ${D}file in
48661     *!)
48662         ;;
48663     *)
48664         gccCmdl="${D}gccCmdl ${D}file"
48665         ;;
48666     esac
48667 done
48668 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48669 touch "${D}{outFile}.dll"
48670
48671 doCommand "emximp -o ${D}arcFile ${D}defFile"
48672 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48673     add_flags="";
48674     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48675         add_flags="-ynd"
48676     fi
48677     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48678 fi
48679 doCommand "emxomf -s -l ${D}arcFile"
48680
48681 # Successful exit.
48682 CleanUp 1
48683 exit 0
48684 EOF
48685
48686         chmod +x dllar.sh
48687       ;;
48688
48689       powerpc-apple-macos* | \
48690       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48691       *-*-mirbsd* | \
48692       *-*-sunos4* | \
48693       *-*-osf* | \
48694       *-*-dgux5* | \
48695       *-*-sysv5* | \
48696       *-pc-msdosdjgpp )
48697               ;;
48698
48699       *)
48700         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48701 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48702    { (exit 1); exit 1; }; }
48703     esac
48704
48705     if test "x$PIC_FLAG" != "x" ; then
48706         PIC_FLAG="$PIC_FLAG -DPIC"
48707     fi
48708
48709     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48710         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48711     fi
48712     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48713         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48714     fi
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724     USE_SOVERSION=0
48725     USE_SOVERLINUX=0
48726     USE_SOVERSOLARIS=0
48727     USE_SOVERCYGWIN=0
48728     USE_SOSYMLINKS=0
48729     USE_MACVERSION=0
48730     SONAME_FLAG=
48731
48732     case "${BAKEFILE_HOST}" in
48733       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48734       *-*-k*bsd*-gnu | *-*-mirbsd* )
48735         if test "x$SUNCXX" = "xyes"; then
48736             SONAME_FLAG="-h "
48737         else
48738             SONAME_FLAG="-Wl,-soname,"
48739         fi
48740         USE_SOVERSION=1
48741         USE_SOVERLINUX=1
48742         USE_SOSYMLINKS=1
48743       ;;
48744
48745       *-*-solaris2* )
48746         SONAME_FLAG="-h "
48747         USE_SOVERSION=1
48748         USE_SOVERSOLARIS=1
48749         USE_SOSYMLINKS=1
48750       ;;
48751
48752       *-*-darwin* )
48753         USE_MACVERSION=1
48754         USE_SOVERSION=1
48755         USE_SOSYMLINKS=1
48756       ;;
48757
48758       *-*-cygwin* )
48759         USE_SOVERSION=1
48760         USE_SOVERCYGWIN=1
48761       ;;
48762     esac
48763
48764
48765
48766
48767
48768
48769
48770
48771
48772
48773     # Check whether --enable-dependency-tracking was given.
48774 if test "${enable_dependency_tracking+set}" = set; then
48775   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48776 fi
48777
48778
48779     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48780 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48781
48782     BK_DEPS=""
48783     if test "x$bk_use_trackdeps" = "xno" ; then
48784         DEPS_TRACKING=0
48785         { echo "$as_me:$LINENO: result: disabled" >&5
48786 echo "${ECHO_T}disabled" >&6; }
48787     else
48788         DEPS_TRACKING=1
48789
48790         if test "x$GCC" = "xyes"; then
48791             DEPSMODE=gcc
48792             case "${BAKEFILE_HOST}" in
48793                 *-*-darwin* )
48794                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48795                 ;;
48796                 * )
48797                     DEPSFLAG="-MMD"
48798                 ;;
48799             esac
48800             { echo "$as_me:$LINENO: result: gcc" >&5
48801 echo "${ECHO_T}gcc" >&6; }
48802         elif test "x$MWCC" = "xyes"; then
48803             DEPSMODE=mwcc
48804             DEPSFLAG="-MM"
48805             { echo "$as_me:$LINENO: result: mwcc" >&5
48806 echo "${ECHO_T}mwcc" >&6; }
48807         elif test "x$SUNCC" = "xyes"; then
48808             DEPSMODE=unixcc
48809             DEPSFLAG="-xM1"
48810             { echo "$as_me:$LINENO: result: Sun cc" >&5
48811 echo "${ECHO_T}Sun cc" >&6; }
48812         elif test "x$SGICC" = "xyes"; then
48813             DEPSMODE=unixcc
48814             DEPSFLAG="-M"
48815             { echo "$as_me:$LINENO: result: SGI cc" >&5
48816 echo "${ECHO_T}SGI cc" >&6; }
48817         elif test "x$HPCC" = "xyes"; then
48818             DEPSMODE=unixcc
48819             DEPSFLAG="+make"
48820             { echo "$as_me:$LINENO: result: HP cc" >&5
48821 echo "${ECHO_T}HP cc" >&6; }
48822         elif test "x$COMPAQCC" = "xyes"; then
48823             DEPSMODE=gcc
48824             DEPSFLAG="-MD"
48825             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48826 echo "${ECHO_T}Compaq cc" >&6; }
48827         else
48828             DEPS_TRACKING=0
48829             { echo "$as_me:$LINENO: result: none" >&5
48830 echo "${ECHO_T}none" >&6; }
48831         fi
48832
48833         if test $DEPS_TRACKING = 1 ; then
48834
48835 D='$'
48836 cat <<EOF >bk-deps
48837 #!/bin/sh
48838
48839 # This script is part of Bakefile (http://www.bakefile.org) autoconf
48840 # script. It is used to track C/C++ files dependencies in portable way.
48841 #
48842 # Permission is given to use this file in any way.
48843
48844 DEPSMODE=${DEPSMODE}
48845 DEPSDIR=.deps
48846 DEPSFLAG="${DEPSFLAG}"
48847
48848 mkdir -p ${D}DEPSDIR
48849
48850 if test ${D}DEPSMODE = gcc ; then
48851     ${D}* ${D}{DEPSFLAG}
48852     status=${D}?
48853
48854     # determine location of created files:
48855     while test ${D}# -gt 0; do
48856         case "${D}1" in
48857             -o )
48858                 shift
48859                 objfile=${D}1
48860             ;;
48861             -* )
48862             ;;
48863             * )
48864                 srcfile=${D}1
48865             ;;
48866         esac
48867         shift
48868     done
48869     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48870     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48871
48872     # if the compiler failed, we're done:
48873     if test ${D}{status} != 0 ; then
48874         rm -f ${D}depfile
48875         exit ${D}{status}
48876     fi
48877
48878     # move created file to the location we want it in:
48879     if test -f ${D}depfile ; then
48880         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48881         rm -f ${D}depfile
48882     else
48883         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48884         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48885         if test ! -f ${D}depfile ; then
48886             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48887             depfile="${D}objfile.d"
48888         fi
48889         if test -f ${D}depfile ; then
48890             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48891             rm -f ${D}depfile
48892         fi
48893     fi
48894     exit 0
48895 elif test ${D}DEPSMODE = mwcc ; then
48896     ${D}* || exit ${D}?
48897     # Run mwcc again with -MM and redirect into the dep file we want
48898     # NOTE: We can't use shift here because we need ${D}* to be valid
48899     prevarg=
48900     for arg in ${D}* ; do
48901         if test "${D}prevarg" = "-o"; then
48902             objfile=${D}arg
48903         else
48904             case "${D}arg" in
48905                 -* )
48906                 ;;
48907                 * )
48908                     srcfile=${D}arg
48909                 ;;
48910             esac
48911         fi
48912         prevarg="${D}arg"
48913     done
48914     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48915     exit 0
48916 elif test ${D}DEPSMODE = unixcc; then
48917     ${D}* || exit ${D}?
48918     # Run compiler again with deps flag and redirect into the dep file.
48919     # It doesn't work if the '-o FILE' option is used, but without it the
48920     # dependency file will contain the wrong name for the object. So it is
48921     # removed from the command line, and the dep file is fixed with sed.
48922     cmd=""
48923     while test ${D}# -gt 0; do
48924         case "${D}1" in
48925             -o )
48926                 shift
48927                 objfile=${D}1
48928             ;;
48929             * )
48930                 eval arg${D}#=\\${D}1
48931                 cmd="${D}cmd \\${D}arg${D}#"
48932             ;;
48933         esac
48934         shift
48935     done
48936     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48937     exit 0
48938 else
48939     ${D}*
48940     exit ${D}?
48941 fi
48942 EOF
48943
48944             chmod +x bk-deps
48945                                     BK_DEPS="`pwd`/bk-deps"
48946         fi
48947     fi
48948
48949
48950
48951
48952
48953     case ${BAKEFILE_HOST} in
48954         *-*-cygwin* | *-*-mingw32* )
48955                         if test -n "$ac_tool_prefix"; then
48956   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48957 set dummy ${ac_tool_prefix}windres; ac_word=$2
48958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48960 if test "${ac_cv_prog_WINDRES+set}" = set; then
48961   echo $ECHO_N "(cached) $ECHO_C" >&6
48962 else
48963   if test -n "$WINDRES"; then
48964   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48965 else
48966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48967 for as_dir in $PATH
48968 do
48969   IFS=$as_save_IFS
48970   test -z "$as_dir" && as_dir=.
48971   for ac_exec_ext in '' $ac_executable_extensions; do
48972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48973     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48975     break 2
48976   fi
48977 done
48978 done
48979 IFS=$as_save_IFS
48980
48981 fi
48982 fi
48983 WINDRES=$ac_cv_prog_WINDRES
48984 if test -n "$WINDRES"; then
48985   { echo "$as_me:$LINENO: result: $WINDRES" >&5
48986 echo "${ECHO_T}$WINDRES" >&6; }
48987 else
48988   { echo "$as_me:$LINENO: result: no" >&5
48989 echo "${ECHO_T}no" >&6; }
48990 fi
48991
48992
48993 fi
48994 if test -z "$ac_cv_prog_WINDRES"; then
48995   ac_ct_WINDRES=$WINDRES
48996   # Extract the first word of "windres", so it can be a program name with args.
48997 set dummy windres; ac_word=$2
48998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49000 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49001   echo $ECHO_N "(cached) $ECHO_C" >&6
49002 else
49003   if test -n "$ac_ct_WINDRES"; then
49004   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49005 else
49006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49007 for as_dir in $PATH
49008 do
49009   IFS=$as_save_IFS
49010   test -z "$as_dir" && as_dir=.
49011   for ac_exec_ext in '' $ac_executable_extensions; do
49012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49013     ac_cv_prog_ac_ct_WINDRES="windres"
49014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49015     break 2
49016   fi
49017 done
49018 done
49019 IFS=$as_save_IFS
49020
49021 fi
49022 fi
49023 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49024 if test -n "$ac_ct_WINDRES"; then
49025   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49026 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49027 else
49028   { echo "$as_me:$LINENO: result: no" >&5
49029 echo "${ECHO_T}no" >&6; }
49030 fi
49031
49032   if test "x$ac_ct_WINDRES" = x; then
49033     WINDRES=""
49034   else
49035     case $cross_compiling:$ac_tool_warned in
49036 yes:)
49037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49038 whose name does not start with the host triplet.  If you think this
49039 configuration is useful to you, please write to autoconf@gnu.org." >&5
49040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49041 whose name does not start with the host triplet.  If you think this
49042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49043 ac_tool_warned=yes ;;
49044 esac
49045     WINDRES=$ac_ct_WINDRES
49046   fi
49047 else
49048   WINDRES="$ac_cv_prog_WINDRES"
49049 fi
49050
49051          ;;
49052
49053       *-*-darwin* | powerpc-apple-macos* )
49054             # Extract the first word of "Rez", so it can be a program name with args.
49055 set dummy Rez; ac_word=$2
49056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49058 if test "${ac_cv_prog_REZ+set}" = set; then
49059   echo $ECHO_N "(cached) $ECHO_C" >&6
49060 else
49061   if test -n "$REZ"; then
49062   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49063 else
49064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49065 for as_dir in $PATH
49066 do
49067   IFS=$as_save_IFS
49068   test -z "$as_dir" && as_dir=.
49069   for ac_exec_ext in '' $ac_executable_extensions; do
49070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49071     ac_cv_prog_REZ="Rez"
49072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49073     break 2
49074   fi
49075 done
49076 done
49077 IFS=$as_save_IFS
49078
49079   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49080 fi
49081 fi
49082 REZ=$ac_cv_prog_REZ
49083 if test -n "$REZ"; then
49084   { echo "$as_me:$LINENO: result: $REZ" >&5
49085 echo "${ECHO_T}$REZ" >&6; }
49086 else
49087   { echo "$as_me:$LINENO: result: no" >&5
49088 echo "${ECHO_T}no" >&6; }
49089 fi
49090
49091
49092             # Extract the first word of "SetFile", so it can be a program name with args.
49093 set dummy SetFile; ac_word=$2
49094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49096 if test "${ac_cv_prog_SETFILE+set}" = set; then
49097   echo $ECHO_N "(cached) $ECHO_C" >&6
49098 else
49099   if test -n "$SETFILE"; then
49100   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49101 else
49102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49103 for as_dir in $PATH
49104 do
49105   IFS=$as_save_IFS
49106   test -z "$as_dir" && as_dir=.
49107   for ac_exec_ext in '' $ac_executable_extensions; do
49108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49109     ac_cv_prog_SETFILE="SetFile"
49110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49111     break 2
49112   fi
49113 done
49114 done
49115 IFS=$as_save_IFS
49116
49117   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49118 fi
49119 fi
49120 SETFILE=$ac_cv_prog_SETFILE
49121 if test -n "$SETFILE"; then
49122   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49123 echo "${ECHO_T}$SETFILE" >&6; }
49124 else
49125   { echo "$as_me:$LINENO: result: no" >&5
49126 echo "${ECHO_T}no" >&6; }
49127 fi
49128
49129
49130         ;;
49131     esac
49132
49133
49134
49135
49136
49137
49138     BAKEFILE_BAKEFILE_M4_VERSION="0.2.3"
49139
49140
49141 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.3"
49142
49143
49144
49145     # Check whether --enable-precomp-headers was given.
49146 if test "${enable_precomp_headers+set}" = set; then
49147   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49148 fi
49149
49150
49151     GCC_PCH=0
49152     ICC_PCH=0
49153     USE_PCH=0
49154     BK_MAKE_PCH=""
49155
49156     case ${BAKEFILE_HOST} in
49157         *-*-cygwin* )
49158                                                 bk_use_pch="no"
49159             ;;
49160     esac
49161
49162     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49163         if test "x$GCC" = "xyes"; then
49164                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49165 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49166             cat >conftest.$ac_ext <<_ACEOF
49167 /* confdefs.h.  */
49168 _ACEOF
49169 cat confdefs.h >>conftest.$ac_ext
49170 cat >>conftest.$ac_ext <<_ACEOF
49171 /* end confdefs.h.  */
49172
49173 int
49174 main ()
49175 {
49176
49177                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49178                         There is no PCH support
49179                     #endif
49180                     #if (__GNUC__ < 3)
49181                         There is no PCH support
49182                     #endif
49183                     #if (__GNUC__ == 3) && \
49184                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49185                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49186                        ( defined(__INTEL_COMPILER) )
49187                         There is no PCH support
49188                     #endif
49189
49190   ;
49191   return 0;
49192 }
49193 _ACEOF
49194 rm -f conftest.$ac_objext
49195 if { (ac_try="$ac_compile"
49196 case "(($ac_try" in
49197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49198   *) ac_try_echo=$ac_try;;
49199 esac
49200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49201   (eval "$ac_compile") 2>conftest.er1
49202   ac_status=$?
49203   grep -v '^ *+' conftest.er1 >conftest.err
49204   rm -f conftest.er1
49205   cat conftest.err >&5
49206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207   (exit $ac_status); } && {
49208          test -z "$ac_c_werror_flag" ||
49209          test ! -s conftest.err
49210        } && test -s conftest.$ac_objext; then
49211
49212                     { echo "$as_me:$LINENO: result: yes" >&5
49213 echo "${ECHO_T}yes" >&6; }
49214                     GCC_PCH=1
49215
49216 else
49217   echo "$as_me: failed program was:" >&5
49218 sed 's/^/| /' conftest.$ac_ext >&5
49219
49220
49221                     cat >conftest.$ac_ext <<_ACEOF
49222 /* confdefs.h.  */
49223 _ACEOF
49224 cat confdefs.h >>conftest.$ac_ext
49225 cat >>conftest.$ac_ext <<_ACEOF
49226 /* end confdefs.h.  */
49227
49228 int
49229 main ()
49230 {
49231
49232                             #if !defined(__INTEL_COMPILER) || \
49233                                 (__INTEL_COMPILER < 800)
49234                                 There is no PCH support
49235                             #endif
49236
49237   ;
49238   return 0;
49239 }
49240 _ACEOF
49241 rm -f conftest.$ac_objext
49242 if { (ac_try="$ac_compile"
49243 case "(($ac_try" in
49244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49245   *) ac_try_echo=$ac_try;;
49246 esac
49247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49248   (eval "$ac_compile") 2>conftest.er1
49249   ac_status=$?
49250   grep -v '^ *+' conftest.er1 >conftest.err
49251   rm -f conftest.er1
49252   cat conftest.err >&5
49253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49254   (exit $ac_status); } && {
49255          test -z "$ac_c_werror_flag" ||
49256          test ! -s conftest.err
49257        } && test -s conftest.$ac_objext; then
49258
49259                             { echo "$as_me:$LINENO: result: yes" >&5
49260 echo "${ECHO_T}yes" >&6; }
49261                             ICC_PCH=1
49262
49263 else
49264   echo "$as_me: failed program was:" >&5
49265 sed 's/^/| /' conftest.$ac_ext >&5
49266
49267
49268                             { echo "$as_me:$LINENO: result: no" >&5
49269 echo "${ECHO_T}no" >&6; }
49270
49271 fi
49272
49273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49274
49275 fi
49276
49277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49278             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49279                 USE_PCH=1
49280
49281 D='$'
49282 cat <<EOF >bk-make-pch
49283 #!/bin/sh
49284
49285 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49286 # script. It is used to generated precompiled headers.
49287 #
49288 # Permission is given to use this file in any way.
49289
49290 outfile="${D}{1}"
49291 header="${D}{2}"
49292 shift
49293 shift
49294
49295 compiler=""
49296 headerfile=""
49297
49298 while test ${D}{#} -gt 0; do
49299     add_to_cmdline=1
49300     case "${D}{1}" in
49301         -I* )
49302             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49303             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49304                 headerfile="${D}{incdir}/${D}{header}"
49305             fi
49306         ;;
49307         -use-pch|-use_pch )
49308             shift
49309             add_to_cmdline=0
49310         ;;
49311     esac
49312     if test ${D}add_to_cmdline = 1 ; then
49313         compiler="${D}{compiler} ${D}{1}"
49314     fi
49315     shift
49316 done
49317
49318 if test "x${D}{headerfile}" = "x" ; then
49319     echo "error: can't find header ${D}{header} in include paths" >&2
49320 else
49321     if test -f ${D}{outfile} ; then
49322         rm -f ${D}{outfile}
49323     else
49324         mkdir -p \`dirname ${D}{outfile}\`
49325     fi
49326     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49327     mkdir -p .deps
49328     if test "x${GCC_PCH}" = "x1" ; then
49329         # can do this because gcc is >= 3.4:
49330         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49331     elif test "x${ICC_PCH}" = "x1" ; then
49332         filename=pch_gen-${D}${D}
49333         file=${D}{filename}.c
49334         dfile=${D}{filename}.d
49335         cat > ${D}file <<EOT
49336 #include "${D}header"
49337 EOT
49338         # using -MF icc complains about differing command lines in creation/use
49339         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49340           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49341           rm -f ${D}file ${D}dfile ${D}{filename}.o
49342     fi
49343     exit ${D}{?}
49344 fi
49345 EOF
49346
49347                 chmod +x bk-make-pch
49348                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49349             fi
49350         fi
49351     fi
49352
49353
49354
49355
49356
49357     COND_BUILD_DEBUG="#"
49358     if test "x$BUILD" = "xdebug" ; then
49359         COND_BUILD_DEBUG=""
49360     fi
49361
49362     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49363     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49364         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49365     fi
49366
49367     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49368     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49369         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49370     fi
49371
49372     COND_BUILD_DEBUG_UNICODE_0="#"
49373     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49374         COND_BUILD_DEBUG_UNICODE_0=""
49375     fi
49376
49377     COND_BUILD_DEBUG_UNICODE_1="#"
49378     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49379         COND_BUILD_DEBUG_UNICODE_1=""
49380     fi
49381
49382     COND_BUILD_RELEASE="#"
49383     if test "x$BUILD" = "xrelease" ; then
49384         COND_BUILD_RELEASE=""
49385     fi
49386
49387     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49388     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49389         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49390     fi
49391
49392     COND_BUILD_RELEASE_UNICODE_0="#"
49393     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49394         COND_BUILD_RELEASE_UNICODE_0=""
49395     fi
49396
49397     COND_BUILD_RELEASE_UNICODE_1="#"
49398     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49399         COND_BUILD_RELEASE_UNICODE_1=""
49400     fi
49401
49402     COND_DEBUG_FLAG_1="#"
49403     if test "x$DEBUG_FLAG" = "x1" ; then
49404         COND_DEBUG_FLAG_1=""
49405     fi
49406
49407     COND_DEBUG_INFO_0="#"
49408     if test "x$DEBUG_INFO" = "x0" ; then
49409         COND_DEBUG_INFO_0=""
49410     fi
49411
49412     COND_DEBUG_INFO_1="#"
49413     if test "x$DEBUG_INFO" = "x1" ; then
49414         COND_DEBUG_INFO_1=""
49415     fi
49416
49417     COND_DEPS_TRACKING_0="#"
49418     if test "x$DEPS_TRACKING" = "x0" ; then
49419         COND_DEPS_TRACKING_0=""
49420     fi
49421
49422     COND_DEPS_TRACKING_1="#"
49423     if test "x$DEPS_TRACKING" = "x1" ; then
49424         COND_DEPS_TRACKING_1=""
49425     fi
49426
49427     COND_GCC_PCH_1="#"
49428     if test "x$GCC_PCH" = "x1" ; then
49429         COND_GCC_PCH_1=""
49430     fi
49431
49432     COND_ICC_PCH_1="#"
49433     if test "x$ICC_PCH" = "x1" ; then
49434         COND_ICC_PCH_1=""
49435     fi
49436
49437     COND_MONOLITHIC_0="#"
49438     if test "x$MONOLITHIC" = "x0" ; then
49439         COND_MONOLITHIC_0=""
49440     fi
49441
49442     COND_MONOLITHIC_0_SHARED_0="#"
49443     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49444         COND_MONOLITHIC_0_SHARED_0=""
49445     fi
49446
49447     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49448     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49449         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49450     fi
49451
49452     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49453     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49454         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49455     fi
49456
49457     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49458     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49459         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49460     fi
49461
49462     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49463     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49464         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49465     fi
49466
49467     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49468     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49469         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49470     fi
49471
49472     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49473     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49474         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49475     fi
49476
49477     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49478     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49479         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49480     fi
49481
49482     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49483     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49484         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49485     fi
49486
49487     COND_MONOLITHIC_0_SHARED_1="#"
49488     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49489         COND_MONOLITHIC_0_SHARED_1=""
49490     fi
49491
49492     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49493     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49494         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49495     fi
49496
49497     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49498     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49499         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49500     fi
49501
49502     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49503     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49504         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49505     fi
49506
49507     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49508     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49509         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49510     fi
49511
49512     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49513     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49514         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49515     fi
49516
49517     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49518     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49519         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49520     fi
49521
49522     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49523     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49524         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49525     fi
49526
49527     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49528     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49529         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49530     fi
49531
49532     COND_MONOLITHIC_0_USE_AUI_1="#"
49533     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49534         COND_MONOLITHIC_0_USE_AUI_1=""
49535     fi
49536
49537     COND_MONOLITHIC_0_USE_GUI_1="#"
49538     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49539         COND_MONOLITHIC_0_USE_GUI_1=""
49540     fi
49541
49542     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49543     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49544         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49545     fi
49546
49547     COND_MONOLITHIC_0_USE_HTML_1="#"
49548     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49549         COND_MONOLITHIC_0_USE_HTML_1=""
49550     fi
49551
49552     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49553     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49554         COND_MONOLITHIC_0_USE_MEDIA_1=""
49555     fi
49556
49557     COND_MONOLITHIC_0_USE_QA_1="#"
49558     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49559         COND_MONOLITHIC_0_USE_QA_1=""
49560     fi
49561
49562     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49563     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49564         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49565     fi
49566
49567     COND_MONOLITHIC_0_USE_STC_1="#"
49568     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49569         COND_MONOLITHIC_0_USE_STC_1=""
49570     fi
49571
49572     COND_MONOLITHIC_0_USE_XRC_1="#"
49573     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49574         COND_MONOLITHIC_0_USE_XRC_1=""
49575     fi
49576
49577     COND_MONOLITHIC_1="#"
49578     if test "x$MONOLITHIC" = "x1" ; then
49579         COND_MONOLITHIC_1=""
49580     fi
49581
49582     COND_MONOLITHIC_1_SHARED_0="#"
49583     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49584         COND_MONOLITHIC_1_SHARED_0=""
49585     fi
49586
49587     COND_MONOLITHIC_1_SHARED_1="#"
49588     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49589         COND_MONOLITHIC_1_SHARED_1=""
49590     fi
49591
49592     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49593     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49594         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49595     fi
49596
49597     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49598     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49599         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49600     fi
49601
49602     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49603     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49604         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49605     fi
49606
49607     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49608     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49609         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49610     fi
49611
49612     COND_PLATFORM_MACOSX_1="#"
49613     if test "x$PLATFORM_MACOSX" = "x1" ; then
49614         COND_PLATFORM_MACOSX_1=""
49615     fi
49616
49617     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49618     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49619         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49620     fi
49621
49622     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49623     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49624         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49625     fi
49626
49627     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49628     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49629         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49630     fi
49631
49632     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49633     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49634         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49635     fi
49636
49637     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49638     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49639         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49640     fi
49641
49642     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49643     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49644         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49645     fi
49646
49647     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49648     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49649         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49650     fi
49651
49652     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49653     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49654         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49655     fi
49656
49657     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49658     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49659         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49660     fi
49661
49662     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49663     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49664         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49665     fi
49666
49667     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49668     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49669         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49670     fi
49671
49672     COND_PLATFORM_MACOS_1="#"
49673     if test "x$PLATFORM_MACOS" = "x1" ; then
49674         COND_PLATFORM_MACOS_1=""
49675     fi
49676
49677     COND_PLATFORM_MAC_0="#"
49678     if test "x$PLATFORM_MAC" = "x0" ; then
49679         COND_PLATFORM_MAC_0=""
49680     fi
49681
49682     COND_PLATFORM_MAC_1="#"
49683     if test "x$PLATFORM_MAC" = "x1" ; then
49684         COND_PLATFORM_MAC_1=""
49685     fi
49686
49687     COND_PLATFORM_MSDOS_0="#"
49688     if test "x$PLATFORM_MSDOS" = "x0" ; then
49689         COND_PLATFORM_MSDOS_0=""
49690     fi
49691
49692     COND_PLATFORM_MSDOS_1="#"
49693     if test "x$PLATFORM_MSDOS" = "x1" ; then
49694         COND_PLATFORM_MSDOS_1=""
49695     fi
49696
49697     COND_PLATFORM_OS2_1="#"
49698     if test "x$PLATFORM_OS2" = "x1" ; then
49699         COND_PLATFORM_OS2_1=""
49700     fi
49701
49702     COND_PLATFORM_UNIX_0="#"
49703     if test "x$PLATFORM_UNIX" = "x0" ; then
49704         COND_PLATFORM_UNIX_0=""
49705     fi
49706
49707     COND_PLATFORM_UNIX_1="#"
49708     if test "x$PLATFORM_UNIX" = "x1" ; then
49709         COND_PLATFORM_UNIX_1=""
49710     fi
49711
49712     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49713     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49714         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49715     fi
49716
49717     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49718     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49719         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49720     fi
49721
49722     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49723     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49724         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49725     fi
49726
49727     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49728     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49729         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49730     fi
49731
49732     COND_PLATFORM_WIN32_0="#"
49733     if test "x$PLATFORM_WIN32" = "x0" ; then
49734         COND_PLATFORM_WIN32_0=""
49735     fi
49736
49737     COND_PLATFORM_WIN32_1="#"
49738     if test "x$PLATFORM_WIN32" = "x1" ; then
49739         COND_PLATFORM_WIN32_1=""
49740     fi
49741
49742     COND_SHARED_0="#"
49743     if test "x$SHARED" = "x0" ; then
49744         COND_SHARED_0=""
49745     fi
49746
49747     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49748     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49749         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49750     fi
49751
49752     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49753     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49754         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49755     fi
49756
49757     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49758     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49759         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49760     fi
49761
49762     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49763     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49764         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49765     fi
49766
49767     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49768     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49769         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49770     fi
49771
49772     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49773     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49774         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49775     fi
49776
49777     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49778     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49779         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49780     fi
49781
49782     COND_SHARED_0_USE_STC_1="#"
49783     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49784         COND_SHARED_0_USE_STC_1=""
49785     fi
49786
49787     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49788     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49789         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49790     fi
49791
49792     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49793     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49794         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49795     fi
49796
49797     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49798     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49799         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49800     fi
49801
49802     COND_SHARED_1="#"
49803     if test "x$SHARED" = "x1" ; then
49804         COND_SHARED_1=""
49805     fi
49806
49807     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49808     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49809         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49810     fi
49811
49812     COND_TOOLKIT_="#"
49813     if test "x$TOOLKIT" = "x" ; then
49814         COND_TOOLKIT_=""
49815     fi
49816
49817     COND_TOOLKIT_COCOA="#"
49818     if test "x$TOOLKIT" = "xCOCOA" ; then
49819         COND_TOOLKIT_COCOA=""
49820     fi
49821
49822     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49823     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49824         COND_TOOLKIT_COCOA_USE_GUI_1=""
49825     fi
49826
49827     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49828     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49829         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49830     fi
49831
49832     COND_TOOLKIT_DFB="#"
49833     if test "x$TOOLKIT" = "xDFB" ; then
49834         COND_TOOLKIT_DFB=""
49835     fi
49836
49837     COND_TOOLKIT_DFB_USE_GUI_1="#"
49838     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49839         COND_TOOLKIT_DFB_USE_GUI_1=""
49840     fi
49841
49842     COND_TOOLKIT_GTK="#"
49843     if test "x$TOOLKIT" = "xGTK" ; then
49844         COND_TOOLKIT_GTK=""
49845     fi
49846
49847     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49848     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49849         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49850     fi
49851
49852     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49853     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49854         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49855     fi
49856
49857     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49858     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49859         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49860     fi
49861
49862     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49863     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49864         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49865     fi
49866
49867     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#"
49868     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then
49869         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0=""
49870     fi
49871
49872     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49873     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49874         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49875     fi
49876
49877     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49878     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49879         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49880     fi
49881
49882     COND_TOOLKIT_GTK_USE_GUI_1="#"
49883     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49884         COND_TOOLKIT_GTK_USE_GUI_1=""
49885     fi
49886
49887     COND_TOOLKIT_MAC="#"
49888     if test "x$TOOLKIT" = "xMAC" ; then
49889         COND_TOOLKIT_MAC=""
49890     fi
49891
49892     COND_TOOLKIT_MAC_USE_GUI_1="#"
49893     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49894         COND_TOOLKIT_MAC_USE_GUI_1=""
49895     fi
49896
49897     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49898     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49899         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49900     fi
49901
49902     COND_TOOLKIT_MGL="#"
49903     if test "x$TOOLKIT" = "xMGL" ; then
49904         COND_TOOLKIT_MGL=""
49905     fi
49906
49907     COND_TOOLKIT_MGL_USE_GUI_1="#"
49908     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49909         COND_TOOLKIT_MGL_USE_GUI_1=""
49910     fi
49911
49912     COND_TOOLKIT_MOTIF="#"
49913     if test "x$TOOLKIT" = "xMOTIF" ; then
49914         COND_TOOLKIT_MOTIF=""
49915     fi
49916
49917     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49918     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49919         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49920     fi
49921
49922     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49923     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49924         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49925     fi
49926
49927     COND_TOOLKIT_MSW="#"
49928     if test "x$TOOLKIT" = "xMSW" ; then
49929         COND_TOOLKIT_MSW=""
49930     fi
49931
49932     COND_TOOLKIT_MSW_USE_GUI_1="#"
49933     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49934         COND_TOOLKIT_MSW_USE_GUI_1=""
49935     fi
49936
49937     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49938     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49939         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49940     fi
49941
49942     COND_TOOLKIT_MSW_WXUNIV_0="#"
49943     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49944         COND_TOOLKIT_MSW_WXUNIV_0=""
49945     fi
49946
49947     COND_TOOLKIT_PM="#"
49948     if test "x$TOOLKIT" = "xPM" ; then
49949         COND_TOOLKIT_PM=""
49950     fi
49951
49952     COND_TOOLKIT_PM_USE_GUI_1="#"
49953     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49954         COND_TOOLKIT_PM_USE_GUI_1=""
49955     fi
49956
49957     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49958     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49959         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49960     fi
49961
49962     COND_TOOLKIT_WINCE="#"
49963     if test "x$TOOLKIT" = "xWINCE" ; then
49964         COND_TOOLKIT_WINCE=""
49965     fi
49966
49967     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49968     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49969         COND_TOOLKIT_WINCE_USE_GUI_1=""
49970     fi
49971
49972     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49973     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49974         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49975     fi
49976
49977     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49978     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49979         COND_TOOLKIT_WINCE_WXUNIV_0=""
49980     fi
49981
49982     COND_TOOLKIT_X11="#"
49983     if test "x$TOOLKIT" = "xX11" ; then
49984         COND_TOOLKIT_X11=""
49985     fi
49986
49987     COND_TOOLKIT_X11_USE_GUI_1="#"
49988     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49989         COND_TOOLKIT_X11_USE_GUI_1=""
49990     fi
49991
49992     COND_UNICODE_1="#"
49993     if test "x$UNICODE" = "x1" ; then
49994         COND_UNICODE_1=""
49995     fi
49996
49997     COND_USE_EXCEPTIONS_0="#"
49998     if test "x$USE_EXCEPTIONS" = "x0" ; then
49999         COND_USE_EXCEPTIONS_0=""
50000     fi
50001
50002     COND_USE_EXCEPTIONS_1="#"
50003     if test "x$USE_EXCEPTIONS" = "x1" ; then
50004         COND_USE_EXCEPTIONS_1=""
50005     fi
50006
50007     COND_USE_GUI_0="#"
50008     if test "x$USE_GUI" = "x0" ; then
50009         COND_USE_GUI_0=""
50010     fi
50011
50012     COND_USE_GUI_1="#"
50013     if test "x$USE_GUI" = "x1" ; then
50014         COND_USE_GUI_1=""
50015     fi
50016
50017     COND_USE_GUI_1_USE_OPENGL_1="#"
50018     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50019         COND_USE_GUI_1_USE_OPENGL_1=""
50020     fi
50021
50022     COND_USE_GUI_1_WXUNIV_0="#"
50023     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50024         COND_USE_GUI_1_WXUNIV_0=""
50025     fi
50026
50027     COND_USE_GUI_1_WXUNIV_1="#"
50028     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50029         COND_USE_GUI_1_WXUNIV_1=""
50030     fi
50031
50032     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50033     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50034         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50035     fi
50036
50037     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50038     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50039         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50040     fi
50041
50042     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50043     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50044         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50045     fi
50046
50047     COND_USE_OPENGL_1="#"
50048     if test "x$USE_OPENGL" = "x1" ; then
50049         COND_USE_OPENGL_1=""
50050     fi
50051
50052     COND_USE_PCH_1="#"
50053     if test "x$USE_PCH" = "x1" ; then
50054         COND_USE_PCH_1=""
50055     fi
50056
50057     COND_USE_PLUGINS_0="#"
50058     if test "x$USE_PLUGINS" = "x0" ; then
50059         COND_USE_PLUGINS_0=""
50060     fi
50061
50062     COND_USE_RTTI_0="#"
50063     if test "x$USE_RTTI" = "x0" ; then
50064         COND_USE_RTTI_0=""
50065     fi
50066
50067     COND_USE_RTTI_1="#"
50068     if test "x$USE_RTTI" = "x1" ; then
50069         COND_USE_RTTI_1=""
50070     fi
50071
50072     COND_USE_SOSYMLINKS_1="#"
50073     if test "x$USE_SOSYMLINKS" = "x1" ; then
50074         COND_USE_SOSYMLINKS_1=""
50075     fi
50076
50077     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50078     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50079         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50080     fi
50081
50082     COND_USE_SOVERLINUX_1="#"
50083     if test "x$USE_SOVERLINUX" = "x1" ; then
50084         COND_USE_SOVERLINUX_1=""
50085     fi
50086
50087     COND_USE_SOVERSION_0="#"
50088     if test "x$USE_SOVERSION" = "x0" ; then
50089         COND_USE_SOVERSION_0=""
50090     fi
50091
50092     COND_USE_SOVERSOLARIS_1="#"
50093     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50094         COND_USE_SOVERSOLARIS_1=""
50095     fi
50096
50097     COND_USE_STC_1="#"
50098     if test "x$USE_STC" = "x1" ; then
50099         COND_USE_STC_1=""
50100     fi
50101
50102     COND_USE_THREADS_0="#"
50103     if test "x$USE_THREADS" = "x0" ; then
50104         COND_USE_THREADS_0=""
50105     fi
50106
50107     COND_USE_THREADS_1="#"
50108     if test "x$USE_THREADS" = "x1" ; then
50109         COND_USE_THREADS_1=""
50110     fi
50111
50112     COND_USE_XRC_1="#"
50113     if test "x$USE_XRC" = "x1" ; then
50114         COND_USE_XRC_1=""
50115     fi
50116
50117     COND_WINDOWS_IMPLIB_1="#"
50118     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50119         COND_WINDOWS_IMPLIB_1=""
50120     fi
50121
50122     COND_WITH_PLUGIN_SDL_1="#"
50123     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50124         COND_WITH_PLUGIN_SDL_1=""
50125     fi
50126
50127     COND_WXUNIV_0="#"
50128     if test "x$WXUNIV" = "x0" ; then
50129         COND_WXUNIV_0=""
50130     fi
50131
50132     COND_WXUNIV_1="#"
50133     if test "x$WXUNIV" = "x1" ; then
50134         COND_WXUNIV_1=""
50135     fi
50136
50137     COND_WXUSE_EXPAT_BUILTIN="#"
50138     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50139         COND_WXUSE_EXPAT_BUILTIN=""
50140     fi
50141
50142     COND_WXUSE_LIBJPEG_BUILTIN="#"
50143     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50144         COND_WXUSE_LIBJPEG_BUILTIN=""
50145     fi
50146
50147     COND_WXUSE_LIBPNG_BUILTIN="#"
50148     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50149         COND_WXUSE_LIBPNG_BUILTIN=""
50150     fi
50151
50152     COND_WXUSE_LIBTIFF_BUILTIN="#"
50153     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50154         COND_WXUSE_LIBTIFF_BUILTIN=""
50155     fi
50156
50157     COND_WXUSE_REGEX_BUILTIN="#"
50158     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50159         COND_WXUSE_REGEX_BUILTIN=""
50160     fi
50161
50162     COND_WXUSE_ZLIB_BUILTIN="#"
50163     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50164         COND_WXUSE_ZLIB_BUILTIN=""
50165     fi
50166
50167
50168
50169     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50170         { { 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
50171 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;}
50172    { (exit 1); exit 1; }; }
50173     fi
50174
50175     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50176         { { 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
50177 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;}
50178    { (exit 1); exit 1; }; }
50179     fi
50180
50181
50182 case ${INSTALL} in
50183   /* ) # Absolute
50184      ;;
50185   ?:* ) # Drive letter, considered as absolute.
50186      ;;
50187   *)
50188      INSTALL=`pwd`/${INSTALL} ;;
50189 esac
50190
50191 if test "$wxUSE_GUI" = "yes"; then
50192
50193 if test "$wxUSE_MSW" = 1 ; then
50194     if test "x$WINDRES" = "x"; then
50195         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50196 echo "$as_me: error: Required windres program not found" >&2;}
50197    { (exit 1); exit 1; }; }
50198     fi
50199
50200     RESCOMP="$WINDRES"
50201 fi
50202
50203 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50204             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50205     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50206
50207         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50208
50209     # Extract the first word of "DeRez", so it can be a program name with args.
50210 set dummy DeRez; ac_word=$2
50211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50213 if test "${ac_cv_prog_DEREZ+set}" = set; then
50214   echo $ECHO_N "(cached) $ECHO_C" >&6
50215 else
50216   if test -n "$DEREZ"; then
50217   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50218 else
50219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50220 for as_dir in $PATH
50221 do
50222   IFS=$as_save_IFS
50223   test -z "$as_dir" && as_dir=.
50224   for ac_exec_ext in '' $ac_executable_extensions; do
50225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50226     ac_cv_prog_DEREZ="DeRez"
50227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50228     break 2
50229   fi
50230 done
50231 done
50232 IFS=$as_save_IFS
50233
50234   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50235 fi
50236 fi
50237 DEREZ=$ac_cv_prog_DEREZ
50238 if test -n "$DEREZ"; then
50239   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50240 echo "${ECHO_T}$DEREZ" >&6; }
50241 else
50242   { echo "$as_me:$LINENO: result: no" >&5
50243 echo "${ECHO_T}no" >&6; }
50244 fi
50245
50246
50247
50248     MACSETFILE="\$(SETFILE)"
50249
50250             if test "$wxUSE_MAC" = 1; then
50251         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50252         RESCOMP="$REZ"
50253         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50254     else
50255         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50256         RESCOMP="cat /dev/null \| $REZ"
50257         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50258     fi
50259
50260 else
50261         MACSETFILE="@true"
50262
50263     if test "$wxUSE_PM" = 1; then
50264         RESCOMP="emxbind"
50265         WXCONFIG_RESFLAGS="-ep"
50266
50267                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50268     else
50269         POSTLINK_COMMAND="@true"
50270     fi
50271 fi
50272
50273 fi
50274
50275
50276 if test $GCC_PCH = 1
50277 then
50278     if test "$wx_cv_gcc_pch_bug" = yes; then
50279         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50280 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50281         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50282 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50283         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50284 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50285     fi
50286
50287     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50288     # the headers that benefit from precompilation are mostly C++ headers.
50289     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50290     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50291     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50292 fi
50293
50294
50295 if test "$wxUSE_MAC" = 1 ; then
50296     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50297         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50298         mv temp bk-deps
50299         chmod +x bk-deps
50300     fi
50301 fi
50302
50303 if test "$wxUSE_SHARED" = "yes"; then
50304                 case "${host}" in
50305       *-pc-os2_emx | *-pc-os2-emx )
50306         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50307         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50308         cp -p ${srcdir}/src/os2/dllnames.sh .
50309         cp -p ${srcdir}/src/os2/dllar.sh .
50310       ;;
50311     esac
50312 fi
50313 if test "$wxUSE_OMF" = "yes"; then
50314     case "${host}" in
50315       *-pc-os2_emx | *-pc-os2-emx )
50316         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50317         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50318         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50319       ;;
50320     esac
50321 fi
50322
50323 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50324
50325
50326 case "${host}" in
50327     *-*-solaris2* )
50328                         if test "$GCC" = yes; then
50329             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50330             LIBS=`echo $LIBS | sed 's/-mt//'`
50331             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50332         fi
50333         ;;
50334
50335     *-*-linux* )
50336                         if test "x$SUNCXX" = xyes; then
50337             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50338             LIBS=`echo $LIBS | sed 's/-pthread//'`
50339             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50340         fi
50341         ;;
50342 esac
50343
50344 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50345 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50346
50347 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386
50387
50388
50389
50390
50391
50392
50393
50394
50395
50396
50397
50398
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50409 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50410 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50411 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50412   echo $ECHO_N "(cached) $ECHO_C" >&6
50413 else
50414   cat >conftest.make <<\_ACEOF
50415 SHELL = /bin/sh
50416 all:
50417         @echo '@@@%%%=$(MAKE)=@@@%%%'
50418 _ACEOF
50419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50420 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50421   *@@@%%%=?*=@@@%%%*)
50422     eval ac_cv_prog_make_${ac_make}_set=yes;;
50423   *)
50424     eval ac_cv_prog_make_${ac_make}_set=no;;
50425 esac
50426 rm -f conftest.make
50427 fi
50428 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50429   { echo "$as_me:$LINENO: result: yes" >&5
50430 echo "${ECHO_T}yes" >&6; }
50431   SET_MAKE=
50432 else
50433   { echo "$as_me:$LINENO: result: no" >&5
50434 echo "${ECHO_T}no" >&6; }
50435   SET_MAKE="MAKE=${MAKE-make}"
50436 fi
50437
50438
50439
50440 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50441
50442
50443 if test "$USE_WIN32" = 1; then
50444     ac_config_commands="$ac_config_commands
50445             rcdefs.h
50446         "
50447
50448 fi
50449
50450 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50451
50452
50453 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50454
50455
50456 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50457
50458
50459 if test "$wx_cv_version_script" = "yes"; then
50460     ac_config_files="$ac_config_files version-script"
50461
50462 fi
50463 ac_config_files="$ac_config_files Makefile"
50464
50465
50466 ac_config_commands="$ac_config_commands wx-config"
50467
50468
50469
50470 if test "$wxWITH_SUBDIRS" != "no"; then
50471 if test "$wxUSE_GUI" = "yes"; then
50472     SUBDIRS="samples demos utils"
50473 else
50474             SUBDIRS="samples utils"
50475 fi
50476
50477
50478
50479 # Check whether --with-cppunit-prefix was given.
50480 if test "${with_cppunit_prefix+set}" = set; then
50481   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50482 else
50483   cppunit_config_prefix=""
50484 fi
50485
50486
50487 # Check whether --with-cppunit-exec-prefix was given.
50488 if test "${with_cppunit_exec_prefix+set}" = set; then
50489   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50490 else
50491   cppunit_config_exec_prefix=""
50492 fi
50493
50494
50495   if test x$cppunit_config_exec_prefix != x ; then
50496      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50497      if test x${CPPUNIT_CONFIG+set} != xset ; then
50498         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50499      fi
50500   fi
50501   if test x$cppunit_config_prefix != x ; then
50502      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50503      if test x${CPPUNIT_CONFIG+set} != xset ; then
50504         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50505      fi
50506   fi
50507
50508   # Extract the first word of "cppunit-config", so it can be a program name with args.
50509 set dummy cppunit-config; ac_word=$2
50510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50512 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50513   echo $ECHO_N "(cached) $ECHO_C" >&6
50514 else
50515   case $CPPUNIT_CONFIG in
50516   [\\/]* | ?:[\\/]*)
50517   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50518   ;;
50519   *)
50520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50521 for as_dir in $PATH
50522 do
50523   IFS=$as_save_IFS
50524   test -z "$as_dir" && as_dir=.
50525   for ac_exec_ext in '' $ac_executable_extensions; do
50526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50527     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50529     break 2
50530   fi
50531 done
50532 done
50533 IFS=$as_save_IFS
50534
50535   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50536   ;;
50537 esac
50538 fi
50539 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50540 if test -n "$CPPUNIT_CONFIG"; then
50541   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50542 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50543 else
50544   { echo "$as_me:$LINENO: result: no" >&5
50545 echo "${ECHO_T}no" >&6; }
50546 fi
50547
50548
50549   cppunit_version_min=1.8.0
50550
50551   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50552 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50553   no_cppunit=""
50554   if test "$CPPUNIT_CONFIG" = "no" ; then
50555     { echo "$as_me:$LINENO: result: no" >&5
50556 echo "${ECHO_T}no" >&6; }
50557     no_cppunit=yes
50558   else
50559     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50560     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50561     cppunit_version=`$CPPUNIT_CONFIG --version`
50562
50563     cppunit_major_version=`echo $cppunit_version | \
50564            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50565     cppunit_minor_version=`echo $cppunit_version | \
50566            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50567     cppunit_micro_version=`echo $cppunit_version | \
50568            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50569
50570     cppunit_major_min=`echo $cppunit_version_min | \
50571            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50572     cppunit_minor_min=`echo $cppunit_version_min | \
50573            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50574     cppunit_micro_min=`echo $cppunit_version_min | \
50575            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50576
50577     cppunit_version_proper=`expr \
50578         $cppunit_major_version \> $cppunit_major_min \| \
50579         $cppunit_major_version \= $cppunit_major_min \& \
50580         $cppunit_minor_version \> $cppunit_minor_min \| \
50581         $cppunit_major_version \= $cppunit_major_min \& \
50582         $cppunit_minor_version \= $cppunit_minor_min \& \
50583         $cppunit_micro_version \>= $cppunit_micro_min `
50584
50585     if test "$cppunit_version_proper" = "1" ; then
50586       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50587 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50588     else
50589       { echo "$as_me:$LINENO: result: no" >&5
50590 echo "${ECHO_T}no" >&6; }
50591       no_cppunit=yes
50592     fi
50593   fi
50594
50595   if test "x$no_cppunit" = x ; then
50596      SUBDIRS="$SUBDIRS tests"
50597   else
50598      CPPUNIT_CFLAGS=""
50599      CPPUNIT_LIBS=""
50600      :
50601   fi
50602
50603
50604
50605
50606
50607 for subdir in $SUBDIRS; do
50608     if test -d ${srcdir}/${subdir} ; then
50609         if test "$wxUSE_GUI" = "yes"; then
50610             if test ${subdir} = "samples"; then
50611                                                 makefiles="samples/Makefile.in $makefiles"
50612                 for sample in $SAMPLES_SUBDIRS; do
50613                     if test -d $srcdir/samples/$sample; then
50614                         makefiles="samples/$sample/Makefile.in $makefiles"
50615                     fi
50616                 done
50617             else
50618                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50619                 eval "disabled=\$$disabled_var"
50620                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50621                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50622             fi
50623         else
50624                                     if test ${subdir} = "samples"; then
50625                                                 makefiles="samples/Makefile.in $makefiles"
50626                 for sample in `echo $SAMPLES_SUBDIRS`; do
50627                     if test -d $srcdir/samples/$sample; then
50628                         makefiles="samples/$sample/Makefile.in $makefiles"
50629                     fi
50630                 done
50631             elif test ${subdir} = "utils"; then
50632                 makefiles=""
50633                 for util in ifacecheck ; do
50634                     if test -d $srcdir/utils/$util ; then
50635                         makefiles="utils/$util/src/Makefile.in \
50636                                    $makefiles"
50637                     fi
50638                 done
50639             else
50640                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50641             fi
50642         fi
50643
50644         for mkin in $makefiles ; do
50645             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50646             ac_config_files="$ac_config_files $mk"
50647
50648         done
50649     fi
50650 done
50651 fi
50652 cat >confcache <<\_ACEOF
50653 # This file is a shell script that caches the results of configure
50654 # tests run on this system so they can be shared between configure
50655 # scripts and configure runs, see configure's option --config-cache.
50656 # It is not useful on other systems.  If it contains results you don't
50657 # want to keep, you may remove or edit it.
50658 #
50659 # config.status only pays attention to the cache file if you give it
50660 # the --recheck option to rerun configure.
50661 #
50662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50664 # following values.
50665
50666 _ACEOF
50667
50668 # The following way of writing the cache mishandles newlines in values,
50669 # but we know of no workaround that is simple, portable, and efficient.
50670 # So, we kill variables containing newlines.
50671 # Ultrix sh set writes to stderr and can't be redirected directly,
50672 # and sets the high bit in the cache file unless we assign to the vars.
50673 (
50674   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50675     eval ac_val=\$$ac_var
50676     case $ac_val in #(
50677     *${as_nl}*)
50678       case $ac_var in #(
50679       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50681       esac
50682       case $ac_var in #(
50683       _ | IFS | as_nl) ;; #(
50684       *) $as_unset $ac_var ;;
50685       esac ;;
50686     esac
50687   done
50688
50689   (set) 2>&1 |
50690     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50691     *${as_nl}ac_space=\ *)
50692       # `set' does not quote correctly, so add quotes (double-quote
50693       # substitution turns \\\\ into \\, and sed turns \\ into \).
50694       sed -n \
50695         "s/'/'\\\\''/g;
50696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50697       ;; #(
50698     *)
50699       # `set' quotes correctly as required by POSIX, so do not add quotes.
50700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50701       ;;
50702     esac |
50703     sort
50704 ) |
50705   sed '
50706      /^ac_cv_env_/b end
50707      t clear
50708      :clear
50709      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50710      t end
50711      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50712      :end' >>confcache
50713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50714   if test -w "$cache_file"; then
50715     test "x$cache_file" != "x/dev/null" &&
50716       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50717 echo "$as_me: updating cache $cache_file" >&6;}
50718     cat confcache >$cache_file
50719   else
50720     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50721 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50722   fi
50723 fi
50724 rm -f confcache
50725
50726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50727 # Let make expand exec_prefix.
50728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50729
50730 DEFS=-DHAVE_CONFIG_H
50731
50732 ac_libobjs=
50733 ac_ltlibobjs=
50734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50735   # 1. Remove the extension, and $U if already installed.
50736   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50737   ac_i=`echo "$ac_i" | sed "$ac_script"`
50738   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50739   #    will be set to the directory where LIBOBJS objects are built.
50740   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50741   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50742 done
50743 LIBOBJS=$ac_libobjs
50744
50745 LTLIBOBJS=$ac_ltlibobjs
50746
50747
50748
50749 : ${CONFIG_STATUS=./config.status}
50750 ac_clean_files_save=$ac_clean_files
50751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50754 cat >$CONFIG_STATUS <<_ACEOF
50755 #! $SHELL
50756 # Generated by $as_me.
50757 # Run this file to recreate the current configuration.
50758 # Compiler output produced by configure, useful for debugging
50759 # configure, is in config.log if it exists.
50760
50761 debug=false
50762 ac_cs_recheck=false
50763 ac_cs_silent=false
50764 SHELL=\${CONFIG_SHELL-$SHELL}
50765 _ACEOF
50766
50767 cat >>$CONFIG_STATUS <<\_ACEOF
50768 ## --------------------- ##
50769 ## M4sh Initialization.  ##
50770 ## --------------------- ##
50771
50772 # Be more Bourne compatible
50773 DUALCASE=1; export DUALCASE # for MKS sh
50774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50775   emulate sh
50776   NULLCMD=:
50777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50778   # is contrary to our usage.  Disable this feature.
50779   alias -g '${1+"$@"}'='"$@"'
50780   setopt NO_GLOB_SUBST
50781 else
50782   case `(set -o) 2>/dev/null` in
50783   *posix*) set -o posix ;;
50784 esac
50785
50786 fi
50787
50788
50789
50790
50791 # PATH needs CR
50792 # Avoid depending upon Character Ranges.
50793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50796 as_cr_digits='0123456789'
50797 as_cr_alnum=$as_cr_Letters$as_cr_digits
50798
50799 # The user is always right.
50800 if test "${PATH_SEPARATOR+set}" != set; then
50801   echo "#! /bin/sh" >conf$$.sh
50802   echo  "exit 0"   >>conf$$.sh
50803   chmod +x conf$$.sh
50804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50805     PATH_SEPARATOR=';'
50806   else
50807     PATH_SEPARATOR=:
50808   fi
50809   rm -f conf$$.sh
50810 fi
50811
50812 # Support unset when possible.
50813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50814   as_unset=unset
50815 else
50816   as_unset=false
50817 fi
50818
50819
50820 # IFS
50821 # We need space, tab and new line, in precisely that order.  Quoting is
50822 # there to prevent editors from complaining about space-tab.
50823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50824 # splitting by setting IFS to empty value.)
50825 as_nl='
50826 '
50827 IFS=" ""        $as_nl"
50828
50829 # Find who we are.  Look in the path if we contain no directory separator.
50830 case $0 in
50831   *[\\/]* ) as_myself=$0 ;;
50832   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50833 for as_dir in $PATH
50834 do
50835   IFS=$as_save_IFS
50836   test -z "$as_dir" && as_dir=.
50837   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50838 done
50839 IFS=$as_save_IFS
50840
50841      ;;
50842 esac
50843 # We did not find ourselves, most probably we were run as `sh COMMAND'
50844 # in which case we are not to be found in the path.
50845 if test "x$as_myself" = x; then
50846   as_myself=$0
50847 fi
50848 if test ! -f "$as_myself"; then
50849   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50850   { (exit 1); exit 1; }
50851 fi
50852
50853 # Work around bugs in pre-3.0 UWIN ksh.
50854 for as_var in ENV MAIL MAILPATH
50855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50856 done
50857 PS1='$ '
50858 PS2='> '
50859 PS4='+ '
50860
50861 # NLS nuisances.
50862 for as_var in \
50863   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50864   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50865   LC_TELEPHONE LC_TIME
50866 do
50867   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50868     eval $as_var=C; export $as_var
50869   else
50870     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50871   fi
50872 done
50873
50874 # Required to use basename.
50875 if expr a : '\(a\)' >/dev/null 2>&1 &&
50876    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50877   as_expr=expr
50878 else
50879   as_expr=false
50880 fi
50881
50882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50883   as_basename=basename
50884 else
50885   as_basename=false
50886 fi
50887
50888
50889 # Name of the executable.
50890 as_me=`$as_basename -- "$0" ||
50891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50892          X"$0" : 'X\(//\)$' \| \
50893          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50894 echo X/"$0" |
50895     sed '/^.*\/\([^/][^/]*\)\/*$/{
50896             s//\1/
50897             q
50898           }
50899           /^X\/\(\/\/\)$/{
50900             s//\1/
50901             q
50902           }
50903           /^X\/\(\/\).*/{
50904             s//\1/
50905             q
50906           }
50907           s/.*/./; q'`
50908
50909 # CDPATH.
50910 $as_unset CDPATH
50911
50912
50913
50914   as_lineno_1=$LINENO
50915   as_lineno_2=$LINENO
50916   test "x$as_lineno_1" != "x$as_lineno_2" &&
50917   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50918
50919   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50920   # uniformly replaced by the line number.  The first 'sed' inserts a
50921   # line-number line after each line using $LINENO; the second 'sed'
50922   # does the real work.  The second script uses 'N' to pair each
50923   # line-number line with the line containing $LINENO, and appends
50924   # trailing '-' during substitution so that $LINENO is not a special
50925   # case at line end.
50926   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50927   # scripts with optimization help from Paolo Bonzini.  Blame Lee
50928   # E. McMahon (1931-1989) for sed's syntax.  :-)
50929   sed -n '
50930     p
50931     /[$]LINENO/=
50932   ' <$as_myself |
50933     sed '
50934       s/[$]LINENO.*/&-/
50935       t lineno
50936       b
50937       :lineno
50938       N
50939       :loop
50940       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50941       t loop
50942       s/-\n.*//
50943     ' >$as_me.lineno &&
50944   chmod +x "$as_me.lineno" ||
50945     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50946    { (exit 1); exit 1; }; }
50947
50948   # Don't try to exec as it changes $[0], causing all sort of problems
50949   # (the dirname of $[0] is not the place where we might find the
50950   # original and so on.  Autoconf is especially sensitive to this).
50951   . "./$as_me.lineno"
50952   # Exit status is that of the last command.
50953   exit
50954 }
50955
50956
50957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50958   as_dirname=dirname
50959 else
50960   as_dirname=false
50961 fi
50962
50963 ECHO_C= ECHO_N= ECHO_T=
50964 case `echo -n x` in
50965 -n*)
50966   case `echo 'x\c'` in
50967   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50968   *)   ECHO_C='\c';;
50969   esac;;
50970 *)
50971   ECHO_N='-n';;
50972 esac
50973
50974 if expr a : '\(a\)' >/dev/null 2>&1 &&
50975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50976   as_expr=expr
50977 else
50978   as_expr=false
50979 fi
50980
50981 rm -f conf$$ conf$$.exe conf$$.file
50982 if test -d conf$$.dir; then
50983   rm -f conf$$.dir/conf$$.file
50984 else
50985   rm -f conf$$.dir
50986   mkdir conf$$.dir
50987 fi
50988 echo >conf$$.file
50989 if ln -s conf$$.file conf$$ 2>/dev/null; then
50990   as_ln_s='ln -s'
50991   # ... but there are two gotchas:
50992   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50993   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50994   # In both cases, we have to default to `cp -p'.
50995   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50996     as_ln_s='cp -p'
50997 elif ln conf$$.file conf$$ 2>/dev/null; then
50998   as_ln_s=ln
50999 else
51000   as_ln_s='cp -p'
51001 fi
51002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51003 rmdir conf$$.dir 2>/dev/null
51004
51005 if mkdir -p . 2>/dev/null; then
51006   as_mkdir_p=:
51007 else
51008   test -d ./-p && rmdir ./-p
51009   as_mkdir_p=false
51010 fi
51011
51012 if test -x / >/dev/null 2>&1; then
51013   as_test_x='test -x'
51014 else
51015   if ls -dL / >/dev/null 2>&1; then
51016     as_ls_L_option=L
51017   else
51018     as_ls_L_option=
51019   fi
51020   as_test_x='
51021     eval sh -c '\''
51022       if test -d "$1"; then
51023         test -d "$1/.";
51024       else
51025         case $1 in
51026         -*)set "./$1";;
51027         esac;
51028         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51029         ???[sx]*):;;*)false;;esac;fi
51030     '\'' sh
51031   '
51032 fi
51033 as_executable_p=$as_test_x
51034
51035 # Sed expression to map a string onto a valid CPP name.
51036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51037
51038 # Sed expression to map a string onto a valid variable name.
51039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51040
51041
51042 exec 6>&1
51043
51044 # Save the log message, to keep $[0] and so on meaningful, and to
51045 # report actual input values of CONFIG_FILES etc. instead of their
51046 # values after options handling.
51047 ac_log="
51048 This file was extended by wxWidgets $as_me 2.9.0, which was
51049 generated by GNU Autoconf 2.61.  Invocation command line was
51050
51051   CONFIG_FILES    = $CONFIG_FILES
51052   CONFIG_HEADERS  = $CONFIG_HEADERS
51053   CONFIG_LINKS    = $CONFIG_LINKS
51054   CONFIG_COMMANDS = $CONFIG_COMMANDS
51055   $ $0 $@
51056
51057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51058 "
51059
51060 _ACEOF
51061
51062 cat >>$CONFIG_STATUS <<_ACEOF
51063 # Files that config.status was made for.
51064 config_files="$ac_config_files"
51065 config_headers="$ac_config_headers"
51066 config_commands="$ac_config_commands"
51067
51068 _ACEOF
51069
51070 cat >>$CONFIG_STATUS <<\_ACEOF
51071 ac_cs_usage="\
51072 \`$as_me' instantiates files from templates according to the
51073 current configuration.
51074
51075 Usage: $0 [OPTIONS] [FILE]...
51076
51077   -h, --help       print this help, then exit
51078   -V, --version    print version number and configuration settings, then exit
51079   -q, --quiet      do not print progress messages
51080   -d, --debug      don't remove temporary files
51081       --recheck    update $as_me by reconfiguring in the same conditions
51082   --file=FILE[:TEMPLATE]
51083                    instantiate the configuration file FILE
51084   --header=FILE[:TEMPLATE]
51085                    instantiate the configuration header FILE
51086
51087 Configuration files:
51088 $config_files
51089
51090 Configuration headers:
51091 $config_headers
51092
51093 Configuration commands:
51094 $config_commands
51095
51096 Report bugs to <bug-autoconf@gnu.org>."
51097
51098 _ACEOF
51099 cat >>$CONFIG_STATUS <<_ACEOF
51100 ac_cs_version="\\
51101 wxWidgets config.status 2.9.0
51102 configured by $0, generated by GNU Autoconf 2.61,
51103   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51104
51105 Copyright (C) 2006 Free Software Foundation, Inc.
51106 This config.status script is free software; the Free Software Foundation
51107 gives unlimited permission to copy, distribute and modify it."
51108
51109 ac_pwd='$ac_pwd'
51110 srcdir='$srcdir'
51111 INSTALL='$INSTALL'
51112 _ACEOF
51113
51114 cat >>$CONFIG_STATUS <<\_ACEOF
51115 # If no file are specified by the user, then we need to provide default
51116 # value.  By we need to know if files were specified by the user.
51117 ac_need_defaults=:
51118 while test $# != 0
51119 do
51120   case $1 in
51121   --*=*)
51122     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51123     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51124     ac_shift=:
51125     ;;
51126   *)
51127     ac_option=$1
51128     ac_optarg=$2
51129     ac_shift=shift
51130     ;;
51131   esac
51132
51133   case $ac_option in
51134   # Handling of the options.
51135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51136     ac_cs_recheck=: ;;
51137   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51138     echo "$ac_cs_version"; exit ;;
51139   --debug | --debu | --deb | --de | --d | -d )
51140     debug=: ;;
51141   --file | --fil | --fi | --f )
51142     $ac_shift
51143     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51144     ac_need_defaults=false;;
51145   --header | --heade | --head | --hea )
51146     $ac_shift
51147     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51148     ac_need_defaults=false;;
51149   --he | --h)
51150     # Conflict between --help and --header
51151     { echo "$as_me: error: ambiguous option: $1
51152 Try \`$0 --help' for more information." >&2
51153    { (exit 1); exit 1; }; };;
51154   --help | --hel | -h )
51155     echo "$ac_cs_usage"; exit ;;
51156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51157   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51158     ac_cs_silent=: ;;
51159
51160   # This is an error.
51161   -*) { echo "$as_me: error: unrecognized option: $1
51162 Try \`$0 --help' for more information." >&2
51163    { (exit 1); exit 1; }; } ;;
51164
51165   *) ac_config_targets="$ac_config_targets $1"
51166      ac_need_defaults=false ;;
51167
51168   esac
51169   shift
51170 done
51171
51172 ac_configure_extra_args=
51173
51174 if $ac_cs_silent; then
51175   exec 6>/dev/null
51176   ac_configure_extra_args="$ac_configure_extra_args --silent"
51177 fi
51178
51179 _ACEOF
51180 cat >>$CONFIG_STATUS <<_ACEOF
51181 if \$ac_cs_recheck; then
51182   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51183   CONFIG_SHELL=$SHELL
51184   export CONFIG_SHELL
51185   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51186 fi
51187
51188 _ACEOF
51189 cat >>$CONFIG_STATUS <<\_ACEOF
51190 exec 5>>config.log
51191 {
51192   echo
51193   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51194 ## Running $as_me. ##
51195 _ASBOX
51196   echo "$ac_log"
51197 } >&5
51198
51199 _ACEOF
51200 cat >>$CONFIG_STATUS <<_ACEOF
51201 #
51202 # INIT-COMMANDS
51203 #
51204
51205             CPP="$CPP"
51206             infile="$srcdir/include/wx/msw/genrcdefs.h"
51207             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51208
51209
51210  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51211  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51212  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51213                      LN_S="${LN_S}"
51214
51215
51216 _ACEOF
51217
51218 cat >>$CONFIG_STATUS <<\_ACEOF
51219
51220 # Handling of arguments.
51221 for ac_config_target in $ac_config_targets
51222 do
51223   case $ac_config_target in
51224     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51225     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51226     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51227     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51228     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51229     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51230     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51231     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51232     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51233
51234   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51235 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51236    { (exit 1); exit 1; }; };;
51237   esac
51238 done
51239
51240
51241 # If the user did not use the arguments to specify the items to instantiate,
51242 # then the envvar interface is used.  Set only those that are not.
51243 # We use the long form for the default assignment because of an extremely
51244 # bizarre bug on SunOS 4.1.3.
51245 if $ac_need_defaults; then
51246   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51247   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51248   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51249 fi
51250
51251 # Have a temporary directory for convenience.  Make it in the build tree
51252 # simply because there is no reason against having it here, and in addition,
51253 # creating and moving files from /tmp can sometimes cause problems.
51254 # Hook for its removal unless debugging.
51255 # Note that there is a small window in which the directory will not be cleaned:
51256 # after its creation but before its name has been assigned to `$tmp'.
51257 $debug ||
51258 {
51259   tmp=
51260   trap 'exit_status=$?
51261   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51262 ' 0
51263   trap '{ (exit 1); exit 1; }' 1 2 13 15
51264 }
51265 # Create a (secure) tmp directory for tmp files.
51266
51267 {
51268   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51269   test -n "$tmp" && test -d "$tmp"
51270 }  ||
51271 {
51272   tmp=./conf$$-$RANDOM
51273   (umask 077 && mkdir "$tmp")
51274 } ||
51275 {
51276    echo "$me: cannot create a temporary directory in ." >&2
51277    { (exit 1); exit 1; }
51278 }
51279
51280 #
51281 # Set up the sed scripts for CONFIG_FILES section.
51282 #
51283
51284 # No need to generate the scripts if there are no CONFIG_FILES.
51285 # This happens for instance when ./config.status config.h
51286 if test -n "$CONFIG_FILES"; then
51287
51288 _ACEOF
51289
51290
51291
51292 ac_delim='%!_!# '
51293 for ac_last_try in false false false false false :; do
51294   cat >conf$$subs.sed <<_ACEOF
51295 SHELL!$SHELL$ac_delim
51296 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51297 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51298 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51299 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51300 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51301 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51302 exec_prefix!$exec_prefix$ac_delim
51303 prefix!$prefix$ac_delim
51304 program_transform_name!$program_transform_name$ac_delim
51305 bindir!$bindir$ac_delim
51306 sbindir!$sbindir$ac_delim
51307 libexecdir!$libexecdir$ac_delim
51308 datarootdir!$datarootdir$ac_delim
51309 datadir!$datadir$ac_delim
51310 sysconfdir!$sysconfdir$ac_delim
51311 sharedstatedir!$sharedstatedir$ac_delim
51312 localstatedir!$localstatedir$ac_delim
51313 includedir!$includedir$ac_delim
51314 oldincludedir!$oldincludedir$ac_delim
51315 docdir!$docdir$ac_delim
51316 infodir!$infodir$ac_delim
51317 htmldir!$htmldir$ac_delim
51318 dvidir!$dvidir$ac_delim
51319 pdfdir!$pdfdir$ac_delim
51320 psdir!$psdir$ac_delim
51321 libdir!$libdir$ac_delim
51322 localedir!$localedir$ac_delim
51323 mandir!$mandir$ac_delim
51324 DEFS!$DEFS$ac_delim
51325 ECHO_C!$ECHO_C$ac_delim
51326 ECHO_N!$ECHO_N$ac_delim
51327 ECHO_T!$ECHO_T$ac_delim
51328 LIBS!$LIBS$ac_delim
51329 build_alias!$build_alias$ac_delim
51330 host_alias!$host_alias$ac_delim
51331 target_alias!$target_alias$ac_delim
51332 build!$build$ac_delim
51333 build_cpu!$build_cpu$ac_delim
51334 build_vendor!$build_vendor$ac_delim
51335 build_os!$build_os$ac_delim
51336 host!$host$ac_delim
51337 host_cpu!$host_cpu$ac_delim
51338 host_vendor!$host_vendor$ac_delim
51339 host_os!$host_os$ac_delim
51340 target!$target$ac_delim
51341 target_cpu!$target_cpu$ac_delim
51342 target_vendor!$target_vendor$ac_delim
51343 target_os!$target_os$ac_delim
51344 wx_top_builddir!$wx_top_builddir$ac_delim
51345 CC!$CC$ac_delim
51346 CFLAGS!$CFLAGS$ac_delim
51347 LDFLAGS!$LDFLAGS$ac_delim
51348 CPPFLAGS!$CPPFLAGS$ac_delim
51349 ac_ct_CC!$ac_ct_CC$ac_delim
51350 EXEEXT!$EXEEXT$ac_delim
51351 OBJEXT!$OBJEXT$ac_delim
51352 CPP!$CPP$ac_delim
51353 GREP!$GREP$ac_delim
51354 EGREP!$EGREP$ac_delim
51355 CXX!$CXX$ac_delim
51356 CXXFLAGS!$CXXFLAGS$ac_delim
51357 ac_ct_CXX!$ac_ct_CXX$ac_delim
51358 AR!$AR$ac_delim
51359 subdirs!$subdirs$ac_delim
51360 PKG_CONFIG!$PKG_CONFIG$ac_delim
51361 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51362 GTK_LIBS!$GTK_LIBS$ac_delim
51363 GTK_CONFIG!$GTK_CONFIG$ac_delim
51364 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51365 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51366 XMKMF!$XMKMF$ac_delim
51367 X_CFLAGS!$X_CFLAGS$ac_delim
51368 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51369 X_LIBS!$X_LIBS$ac_delim
51370 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51371 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51372 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51373 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51374 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51375 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51376 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51377 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51378 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51379 LIBICONV!$LIBICONV$ac_delim
51380 SDL_CONFIG!$SDL_CONFIG$ac_delim
51381 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51382 SDL_LIBS!$SDL_LIBS$ac_delim
51383 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51384 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51385 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51386 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51387 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51388 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51389 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51390 HILDON_LIBS!$HILDON_LIBS$ac_delim
51391 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51392 _ACEOF
51393
51394   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51395     break
51396   elif $ac_last_try; then
51397     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51399    { (exit 1); exit 1; }; }
51400   else
51401     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51402   fi
51403 done
51404
51405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51406 if test -n "$ac_eof"; then
51407   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51408   ac_eof=`expr $ac_eof + 1`
51409 fi
51410
51411 cat >>$CONFIG_STATUS <<_ACEOF
51412 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51414 _ACEOF
51415 sed '
51416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51417 s/^/s,@/; s/!/@,|#_!!_#|/
51418 :n
51419 t n
51420 s/'"$ac_delim"'$/,g/; t
51421 s/$/\\/; p
51422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51423 ' >>$CONFIG_STATUS <conf$$subs.sed
51424 rm -f conf$$subs.sed
51425 cat >>$CONFIG_STATUS <<_ACEOF
51426 CEOF$ac_eof
51427 _ACEOF
51428
51429
51430 ac_delim='%!_!# '
51431 for ac_last_try in false false false false false :; do
51432   cat >conf$$subs.sed <<_ACEOF
51433 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51434 GST_CFLAGS!$GST_CFLAGS$ac_delim
51435 GST_LIBS!$GST_LIBS$ac_delim
51436 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51437 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51438 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51439 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51440 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51441 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51442 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51443 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51444 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51445 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51446 VENDOR!$VENDOR$ac_delim
51447 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51448 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51449 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51450 WXUNIV!$WXUNIV$ac_delim
51451 MONOLITHIC!$MONOLITHIC$ac_delim
51452 USE_PLUGINS!$USE_PLUGINS$ac_delim
51453 CXXWARNINGS!$CXXWARNINGS$ac_delim
51454 EXTRALIBS!$EXTRALIBS$ac_delim
51455 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51456 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51457 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51458 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51459 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51460 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51461 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51462 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51463 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51464 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51465 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51466 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51467 UNICODE!$UNICODE$ac_delim
51468 BUILD!$BUILD$ac_delim
51469 DEBUG_INFO!$DEBUG_INFO$ac_delim
51470 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51471 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51472 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51473 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51474 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51475 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51476 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51477 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51478 RANLIB!$RANLIB$ac_delim
51479 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51480 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51481 INSTALL_DATA!$INSTALL_DATA$ac_delim
51482 LN_S!$LN_S$ac_delim
51483 SET_MAKE!$SET_MAKE$ac_delim
51484 MAKE_SET!$MAKE_SET$ac_delim
51485 AROPTIONS!$AROPTIONS$ac_delim
51486 STRIP!$STRIP$ac_delim
51487 NM!$NM$ac_delim
51488 INSTALL_DIR!$INSTALL_DIR$ac_delim
51489 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51490 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51491 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51492 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51493 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51494 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51495 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51496 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51497 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51498 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51499 SO_SUFFIX!$SO_SUFFIX$ac_delim
51500 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51501 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51502 LIBPREFIX!$LIBPREFIX$ac_delim
51503 LIBEXT!$LIBEXT$ac_delim
51504 DLLPREFIX!$DLLPREFIX$ac_delim
51505 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51506 dlldir!$dlldir$ac_delim
51507 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51508 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51509 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51510 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51511 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51512 PIC_FLAG!$PIC_FLAG$ac_delim
51513 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51514 USE_SOVERSION!$USE_SOVERSION$ac_delim
51515 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51516 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51517 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51518 USE_MACVERSION!$USE_MACVERSION$ac_delim
51519 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51520 SONAME_FLAG!$SONAME_FLAG$ac_delim
51521 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51522 BK_DEPS!$BK_DEPS$ac_delim
51523 WINDRES!$WINDRES$ac_delim
51524 REZ!$REZ$ac_delim
51525 SETFILE!$SETFILE$ac_delim
51526 GCC_PCH!$GCC_PCH$ac_delim
51527 ICC_PCH!$ICC_PCH$ac_delim
51528 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51529 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51530 _ACEOF
51531
51532   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51533     break
51534   elif $ac_last_try; then
51535     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51536 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51537    { (exit 1); exit 1; }; }
51538   else
51539     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51540   fi
51541 done
51542
51543 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51544 if test -n "$ac_eof"; then
51545   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51546   ac_eof=`expr $ac_eof + 1`
51547 fi
51548
51549 cat >>$CONFIG_STATUS <<_ACEOF
51550 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51552 _ACEOF
51553 sed '
51554 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51555 s/^/s,@/; s/!/@,|#_!!_#|/
51556 :n
51557 t n
51558 s/'"$ac_delim"'$/,g/; t
51559 s/$/\\/; p
51560 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51561 ' >>$CONFIG_STATUS <conf$$subs.sed
51562 rm -f conf$$subs.sed
51563 cat >>$CONFIG_STATUS <<_ACEOF
51564 CEOF$ac_eof
51565 _ACEOF
51566
51567
51568 ac_delim='%!_!# '
51569 for ac_last_try in false false false false false :; do
51570   cat >conf$$subs.sed <<_ACEOF
51571 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51572 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51573 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51574 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51575 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51576 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51577 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51578 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51579 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51580 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51581 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51582 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51583 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51584 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51585 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51586 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51587 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51588 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51589 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51590 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51591 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51592 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51593 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51594 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51595 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51596 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51597 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51598 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51599 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51600 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51601 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51602 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51603 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51604 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51605 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51606 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51607 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51608 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51609 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51610 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51611 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51612 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51613 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51614 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51615 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51616 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51617 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51618 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51619 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51620 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51621 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51622 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
51623 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
51624 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
51625 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
51626 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
51627 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
51628 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
51629 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
51630 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51631 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
51632 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51633 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51634 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51635 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51636 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51637 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51638 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51639 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51640 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51641 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51642 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51643 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51644 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51645 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51646 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51647 COND_SHARED_0!$COND_SHARED_0$ac_delim
51648 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51649 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51650 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51651 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51652 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51653 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51654 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51655 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51656 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
51657 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
51658 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
51659 COND_SHARED_1!$COND_SHARED_1$ac_delim
51660 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51661 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51662 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51663 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51664 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51665 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51666 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51667 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51668 _ACEOF
51669
51670   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51671     break
51672   elif $ac_last_try; then
51673     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51674 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51675    { (exit 1); exit 1; }; }
51676   else
51677     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51678   fi
51679 done
51680
51681 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51682 if test -n "$ac_eof"; then
51683   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51684   ac_eof=`expr $ac_eof + 1`
51685 fi
51686
51687 cat >>$CONFIG_STATUS <<_ACEOF
51688 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51690 _ACEOF
51691 sed '
51692 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51693 s/^/s,@/; s/!/@,|#_!!_#|/
51694 :n
51695 t n
51696 s/'"$ac_delim"'$/,g/; t
51697 s/$/\\/; p
51698 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51699 ' >>$CONFIG_STATUS <conf$$subs.sed
51700 rm -f conf$$subs.sed
51701 cat >>$CONFIG_STATUS <<_ACEOF
51702 CEOF$ac_eof
51703 _ACEOF
51704
51705
51706 ac_delim='%!_!# '
51707 for ac_last_try in false false false false false :; do
51708   cat >conf$$subs.sed <<_ACEOF
51709 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
51710 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
51711 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
51712 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
51713 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0$ac_delim
51714 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
51715 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
51716 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
51717 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
51718 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
51719 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
51720 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
51721 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
51722 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
51723 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
51724 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
51725 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
51726 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
51727 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
51728 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
51729 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
51730 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
51731 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
51732 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
51733 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
51734 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
51735 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
51736 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
51737 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
51738 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
51739 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
51740 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
51741 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
51742 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
51743 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
51744 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
51745 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
51746 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51747 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51748 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51749 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
51750 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
51751 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
51752 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
51753 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
51754 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
51755 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
51756 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
51757 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
51758 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
51759 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
51760 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
51761 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
51762 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
51763 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
51764 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
51765 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
51766 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
51767 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
51768 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
51769 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
51770 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
51771 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
51772 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
51773 DEREZ!$DEREZ$ac_delim
51774 SHARED!$SHARED$ac_delim
51775 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
51776 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
51777 USE_GUI!$USE_GUI$ac_delim
51778 AFMINSTALL!$AFMINSTALL$ac_delim
51779 WIN32INSTALL!$WIN32INSTALL$ac_delim
51780 TOOLKIT!$TOOLKIT$ac_delim
51781 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
51782 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
51783 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
51784 cross_compiling!$cross_compiling$ac_delim
51785 WIDGET_SET!$WIDGET_SET$ac_delim
51786 WX_RELEASE!$WX_RELEASE$ac_delim
51787 WX_VERSION!$WX_VERSION$ac_delim
51788 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
51789 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
51790 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
51791 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
51792 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
51793 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
51794 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
51795 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
51796 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
51797 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
51798 GUIDIST!$GUIDIST$ac_delim
51799 DISTDIR!$DISTDIR$ac_delim
51800 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
51801 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
51802 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
51803 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
51804 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
51805 RESCOMP!$RESCOMP$ac_delim
51806 _ACEOF
51807
51808   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51809     break
51810   elif $ac_last_try; then
51811     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51812 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51813    { (exit 1); exit 1; }; }
51814   else
51815     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51816   fi
51817 done
51818
51819 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51820 if test -n "$ac_eof"; then
51821   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51822   ac_eof=`expr $ac_eof + 1`
51823 fi
51824
51825 cat >>$CONFIG_STATUS <<_ACEOF
51826 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51828 _ACEOF
51829 sed '
51830 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51831 s/^/s,@/; s/!/@,|#_!!_#|/
51832 :n
51833 t n
51834 s/'"$ac_delim"'$/,g/; t
51835 s/$/\\/; p
51836 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51837 ' >>$CONFIG_STATUS <conf$$subs.sed
51838 rm -f conf$$subs.sed
51839 cat >>$CONFIG_STATUS <<_ACEOF
51840 CEOF$ac_eof
51841 _ACEOF
51842
51843
51844 ac_delim='%!_!# '
51845 for ac_last_try in false false false false false :; do
51846   cat >conf$$subs.sed <<_ACEOF
51847 RESFLAGS!$RESFLAGS$ac_delim
51848 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
51849 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
51850 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
51851 LIBWXMACRES!$LIBWXMACRES$ac_delim
51852 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
51853 MACSETFILE!$MACSETFILE$ac_delim
51854 GCC!$GCC$ac_delim
51855 DLLTOOL!$DLLTOOL$ac_delim
51856 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
51857 LIBOBJS!$LIBOBJS$ac_delim
51858 LTLIBOBJS!$LTLIBOBJS$ac_delim
51859 _ACEOF
51860
51861   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
51862     break
51863   elif $ac_last_try; then
51864     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51866    { (exit 1); exit 1; }; }
51867   else
51868     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51869   fi
51870 done
51871
51872 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51873 if test -n "$ac_eof"; then
51874   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51875   ac_eof=`expr $ac_eof + 1`
51876 fi
51877
51878 cat >>$CONFIG_STATUS <<_ACEOF
51879 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
51880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51881 _ACEOF
51882 sed '
51883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51884 s/^/s,@/; s/!/@,|#_!!_#|/
51885 :n
51886 t n
51887 s/'"$ac_delim"'$/,g/; t
51888 s/$/\\/; p
51889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51890 ' >>$CONFIG_STATUS <conf$$subs.sed
51891 rm -f conf$$subs.sed
51892 cat >>$CONFIG_STATUS <<_ACEOF
51893 :end
51894 s/|#_!!_#|//g
51895 CEOF$ac_eof
51896 _ACEOF
51897
51898
51899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51901 # trailing colons and then remove the whole line if VPATH becomes empty
51902 # (actually we leave an empty line to preserve line numbers).
51903 if test "x$srcdir" = x.; then
51904   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51905 s/:*\$(srcdir):*/:/
51906 s/:*\${srcdir}:*/:/
51907 s/:*@srcdir@:*/:/
51908 s/^\([^=]*=[     ]*\):*/\1/
51909 s/:*$//
51910 s/^[^=]*=[       ]*$//
51911 }'
51912 fi
51913
51914 cat >>$CONFIG_STATUS <<\_ACEOF
51915 fi # test -n "$CONFIG_FILES"
51916
51917
51918 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
51919 do
51920   case $ac_tag in
51921   :[FHLC]) ac_mode=$ac_tag; continue;;
51922   esac
51923   case $ac_mode$ac_tag in
51924   :[FHL]*:*);;
51925   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51926 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51927    { (exit 1); exit 1; }; };;
51928   :[FH]-) ac_tag=-:-;;
51929   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51930   esac
51931   ac_save_IFS=$IFS
51932   IFS=:
51933   set x $ac_tag
51934   IFS=$ac_save_IFS
51935   shift
51936   ac_file=$1
51937   shift
51938
51939   case $ac_mode in
51940   :L) ac_source=$1;;
51941   :[FH])
51942     ac_file_inputs=
51943     for ac_f
51944     do
51945       case $ac_f in
51946       -) ac_f="$tmp/stdin";;
51947       *) # Look for the file first in the build tree, then in the source tree
51948          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51949          # because $ac_f cannot contain `:'.
51950          test -f "$ac_f" ||
51951            case $ac_f in
51952            [\\/$]*) false;;
51953            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51954            esac ||
51955            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51956 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51957    { (exit 1); exit 1; }; };;
51958       esac
51959       ac_file_inputs="$ac_file_inputs $ac_f"
51960     done
51961
51962     # Let's still pretend it is `configure' which instantiates (i.e., don't
51963     # use $as_me), people would be surprised to read:
51964     #    /* config.h.  Generated by config.status.  */
51965     configure_input="Generated from "`IFS=:
51966           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51967     if test x"$ac_file" != x-; then
51968       configure_input="$ac_file.  $configure_input"
51969       { echo "$as_me:$LINENO: creating $ac_file" >&5
51970 echo "$as_me: creating $ac_file" >&6;}
51971     fi
51972
51973     case $ac_tag in
51974     *:-:* | *:-) cat >"$tmp/stdin";;
51975     esac
51976     ;;
51977   esac
51978
51979   ac_dir=`$as_dirname -- "$ac_file" ||
51980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51981          X"$ac_file" : 'X\(//\)[^/]' \| \
51982          X"$ac_file" : 'X\(//\)$' \| \
51983          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51984 echo X"$ac_file" |
51985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51986             s//\1/
51987             q
51988           }
51989           /^X\(\/\/\)[^/].*/{
51990             s//\1/
51991             q
51992           }
51993           /^X\(\/\/\)$/{
51994             s//\1/
51995             q
51996           }
51997           /^X\(\/\).*/{
51998             s//\1/
51999             q
52000           }
52001           s/.*/./; q'`
52002   { as_dir="$ac_dir"
52003   case $as_dir in #(
52004   -*) as_dir=./$as_dir;;
52005   esac
52006   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52007     as_dirs=
52008     while :; do
52009       case $as_dir in #(
52010       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52011       *) as_qdir=$as_dir;;
52012       esac
52013       as_dirs="'$as_qdir' $as_dirs"
52014       as_dir=`$as_dirname -- "$as_dir" ||
52015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52016          X"$as_dir" : 'X\(//\)[^/]' \| \
52017          X"$as_dir" : 'X\(//\)$' \| \
52018          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52019 echo X"$as_dir" |
52020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52021             s//\1/
52022             q
52023           }
52024           /^X\(\/\/\)[^/].*/{
52025             s//\1/
52026             q
52027           }
52028           /^X\(\/\/\)$/{
52029             s//\1/
52030             q
52031           }
52032           /^X\(\/\).*/{
52033             s//\1/
52034             q
52035           }
52036           s/.*/./; q'`
52037       test -d "$as_dir" && break
52038     done
52039     test -z "$as_dirs" || eval "mkdir $as_dirs"
52040   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52041 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52042    { (exit 1); exit 1; }; }; }
52043   ac_builddir=.
52044
52045 case "$ac_dir" in
52046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52047 *)
52048   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52049   # A ".." for each directory in $ac_dir_suffix.
52050   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52051   case $ac_top_builddir_sub in
52052   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52053   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52054   esac ;;
52055 esac
52056 ac_abs_top_builddir=$ac_pwd
52057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52058 # for backward compatibility:
52059 ac_top_builddir=$ac_top_build_prefix
52060
52061 case $srcdir in
52062   .)  # We are building in place.
52063     ac_srcdir=.
52064     ac_top_srcdir=$ac_top_builddir_sub
52065     ac_abs_top_srcdir=$ac_pwd ;;
52066   [\\/]* | ?:[\\/]* )  # Absolute name.
52067     ac_srcdir=$srcdir$ac_dir_suffix;
52068     ac_top_srcdir=$srcdir
52069     ac_abs_top_srcdir=$srcdir ;;
52070   *) # Relative name.
52071     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52072     ac_top_srcdir=$ac_top_build_prefix$srcdir
52073     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52074 esac
52075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52076
52077
52078   case $ac_mode in
52079   :F)
52080   #
52081   # CONFIG_FILE
52082   #
52083
52084   case $INSTALL in
52085   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52086   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52087   esac
52088 _ACEOF
52089
52090 cat >>$CONFIG_STATUS <<\_ACEOF
52091 # If the template does not know about datarootdir, expand it.
52092 # FIXME: This hack should be removed a few years after 2.60.
52093 ac_datarootdir_hack=; ac_datarootdir_seen=
52094
52095 case `sed -n '/datarootdir/ {
52096   p
52097   q
52098 }
52099 /@datadir@/p
52100 /@docdir@/p
52101 /@infodir@/p
52102 /@localedir@/p
52103 /@mandir@/p
52104 ' $ac_file_inputs` in
52105 *datarootdir*) ac_datarootdir_seen=yes;;
52106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52107   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52108 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52109 _ACEOF
52110 cat >>$CONFIG_STATUS <<_ACEOF
52111   ac_datarootdir_hack='
52112   s&@datadir@&$datadir&g
52113   s&@docdir@&$docdir&g
52114   s&@infodir@&$infodir&g
52115   s&@localedir@&$localedir&g
52116   s&@mandir@&$mandir&g
52117     s&\\\${datarootdir}&$datarootdir&g' ;;
52118 esac
52119 _ACEOF
52120
52121 # Neutralize VPATH when `$srcdir' = `.'.
52122 # Shell code in configure.ac might set extrasub.
52123 # FIXME: do we really want to maintain this feature?
52124 cat >>$CONFIG_STATUS <<_ACEOF
52125   sed "$ac_vpsub
52126 $extrasub
52127 _ACEOF
52128 cat >>$CONFIG_STATUS <<\_ACEOF
52129 :t
52130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52131 s&@configure_input@&$configure_input&;t t
52132 s&@top_builddir@&$ac_top_builddir_sub&;t t
52133 s&@srcdir@&$ac_srcdir&;t t
52134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52135 s&@top_srcdir@&$ac_top_srcdir&;t t
52136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52137 s&@builddir@&$ac_builddir&;t t
52138 s&@abs_builddir@&$ac_abs_builddir&;t t
52139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52140 s&@INSTALL@&$ac_INSTALL&;t t
52141 $ac_datarootdir_hack
52142 " $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
52143
52144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52145   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52146   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52147   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52148 which seems to be undefined.  Please make sure it is defined." >&5
52149 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52150 which seems to be undefined.  Please make sure it is defined." >&2;}
52151
52152   rm -f "$tmp/stdin"
52153   case $ac_file in
52154   -) cat "$tmp/out"; rm -f "$tmp/out";;
52155   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52156   esac
52157  ;;
52158   :H)
52159   #
52160   # CONFIG_HEADER
52161   #
52162 _ACEOF
52163
52164 # Transform confdefs.h into a sed script `conftest.defines', that
52165 # substitutes the proper values into config.h.in to produce config.h.
52166 rm -f conftest.defines conftest.tail
52167 # First, append a space to every undef/define line, to ease matching.
52168 echo 's/$/ /' >conftest.defines
52169 # Then, protect against being on the right side of a sed subst, or in
52170 # an unquoted here document, in config.status.  If some macros were
52171 # called several times there might be several #defines for the same
52172 # symbol, which is useless.  But do not sort them, since the last
52173 # AC_DEFINE must be honored.
52174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52175 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52176 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52177 # PARAMS is the parameter list in the macro definition--in most cases, it's
52178 # just an empty string.
52179 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52180 ac_dB='\\)[      (].*,\\1define\\2'
52181 ac_dC=' '
52182 ac_dD=' ,'
52183
52184 uniq confdefs.h |
52185   sed -n '
52186         t rset
52187         :rset
52188         s/^[     ]*#[    ]*define[       ][      ]*//
52189         t ok
52190         d
52191         :ok
52192         s/[\\&,]/\\&/g
52193         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52194         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52195   ' >>conftest.defines
52196
52197 # Remove the space that was appended to ease matching.
52198 # Then replace #undef with comments.  This is necessary, for
52199 # example, in the case of _POSIX_SOURCE, which is predefined and required
52200 # on some systems where configure will not decide to define it.
52201 # (The regexp can be short, since the line contains either #define or #undef.)
52202 echo 's/ $//
52203 s,^[     #]*u.*,/* & */,' >>conftest.defines
52204
52205 # Break up conftest.defines:
52206 ac_max_sed_lines=50
52207
52208 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52209 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52210 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52211 # et cetera.
52212 ac_in='$ac_file_inputs'
52213 ac_out='"$tmp/out1"'
52214 ac_nxt='"$tmp/out2"'
52215
52216 while :
52217 do
52218   # Write a here document:
52219     cat >>$CONFIG_STATUS <<_ACEOF
52220     # First, check the format of the line:
52221     cat >"\$tmp/defines.sed" <<\\CEOF
52222 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52223 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52224 b
52225 :def
52226 _ACEOF
52227   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52228   echo 'CEOF
52229     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52230   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52231   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52232   grep . conftest.tail >/dev/null || break
52233   rm -f conftest.defines
52234   mv conftest.tail conftest.defines
52235 done
52236 rm -f conftest.defines conftest.tail
52237
52238 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52239 cat >>$CONFIG_STATUS <<\_ACEOF
52240   if test x"$ac_file" != x-; then
52241     echo "/* $configure_input  */" >"$tmp/config.h"
52242     cat "$ac_result" >>"$tmp/config.h"
52243     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52244       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52245 echo "$as_me: $ac_file is unchanged" >&6;}
52246     else
52247       rm -f $ac_file
52248       mv "$tmp/config.h" $ac_file
52249     fi
52250   else
52251     echo "/* $configure_input  */"
52252     cat "$ac_result"
52253   fi
52254   rm -f "$tmp/out12"
52255  ;;
52256
52257   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52258 echo "$as_me: executing $ac_file commands" >&6;}
52259  ;;
52260   esac
52261
52262
52263   case $ac_file$ac_mode in
52264     "rcdefs.h":C)
52265             mkdir -p $outdir &&
52266             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52267          ;;
52268     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52269     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52270     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52271     "wx-config":C)  rm -f wx-config
52272                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52273                     ;;
52274
52275   esac
52276 done # for ac_tag
52277
52278
52279 { (exit 0); exit 0; }
52280 _ACEOF
52281 chmod +x $CONFIG_STATUS
52282 ac_clean_files=$ac_clean_files_save
52283
52284
52285 # configure is writing to config.log, and then calls config.status.
52286 # config.status does its own redirection, appending to config.log.
52287 # Unfortunately, on DOS this fails, as config.log is still kept open
52288 # by configure, so config.status won't be able to write to it; its
52289 # output is simply discarded.  So we exec the FD to /dev/null,
52290 # effectively closing config.log, so it can be properly (re)opened and
52291 # appended to by config.status.  When coming back to configure, we
52292 # need to make the FD available again.
52293 if test "$no_create" != yes; then
52294   ac_cs_success=:
52295   ac_config_status_args=
52296   test "$silent" = yes &&
52297     ac_config_status_args="$ac_config_status_args --quiet"
52298   exec 5>/dev/null
52299   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52300   exec 5>>config.log
52301   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52302   # would make configure fail if this is the last instruction.
52303   $ac_cs_success || { (exit 1); exit 1; }
52304 fi
52305
52306 #
52307 # CONFIG_SUBDIRS section.
52308 #
52309 if test "$no_recursion" != yes; then
52310
52311   # Remove --cache-file and --srcdir arguments so they do not pile up.
52312   ac_sub_configure_args=
52313   ac_prev=
52314   eval "set x $ac_configure_args"
52315   shift
52316   for ac_arg
52317   do
52318     if test -n "$ac_prev"; then
52319       ac_prev=
52320       continue
52321     fi
52322     case $ac_arg in
52323     -cache-file | --cache-file | --cache-fil | --cache-fi \
52324     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52325       ac_prev=cache_file ;;
52326     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52327     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52328     | --c=*)
52329       ;;
52330     --config-cache | -C)
52331       ;;
52332     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52333       ac_prev=srcdir ;;
52334     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52335       ;;
52336     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52337       ac_prev=prefix ;;
52338     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52339       ;;
52340     *)
52341       case $ac_arg in
52342       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52343       esac
52344       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52345     esac
52346   done
52347
52348   # Always prepend --prefix to ensure using the same prefix
52349   # in subdir configurations.
52350   ac_arg="--prefix=$prefix"
52351   case $ac_arg in
52352   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52353   esac
52354   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52355
52356   # Pass --silent
52357   if test "$silent" = yes; then
52358     ac_sub_configure_args="--silent $ac_sub_configure_args"
52359   fi
52360
52361   ac_popdir=`pwd`
52362   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52363
52364     # Do not complain, so a configure script can configure whichever
52365     # parts of a large source tree are present.
52366     test -d "$srcdir/$ac_dir" || continue
52367
52368     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52369     echo "$as_me:$LINENO: $ac_msg" >&5
52370     echo "$ac_msg" >&6
52371     { as_dir="$ac_dir"
52372   case $as_dir in #(
52373   -*) as_dir=./$as_dir;;
52374   esac
52375   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52376     as_dirs=
52377     while :; do
52378       case $as_dir in #(
52379       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52380       *) as_qdir=$as_dir;;
52381       esac
52382       as_dirs="'$as_qdir' $as_dirs"
52383       as_dir=`$as_dirname -- "$as_dir" ||
52384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52385          X"$as_dir" : 'X\(//\)[^/]' \| \
52386          X"$as_dir" : 'X\(//\)$' \| \
52387          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52388 echo X"$as_dir" |
52389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52390             s//\1/
52391             q
52392           }
52393           /^X\(\/\/\)[^/].*/{
52394             s//\1/
52395             q
52396           }
52397           /^X\(\/\/\)$/{
52398             s//\1/
52399             q
52400           }
52401           /^X\(\/\).*/{
52402             s//\1/
52403             q
52404           }
52405           s/.*/./; q'`
52406       test -d "$as_dir" && break
52407     done
52408     test -z "$as_dirs" || eval "mkdir $as_dirs"
52409   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52410 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52411    { (exit 1); exit 1; }; }; }
52412     ac_builddir=.
52413
52414 case "$ac_dir" in
52415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52416 *)
52417   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52418   # A ".." for each directory in $ac_dir_suffix.
52419   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52420   case $ac_top_builddir_sub in
52421   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52422   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52423   esac ;;
52424 esac
52425 ac_abs_top_builddir=$ac_pwd
52426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52427 # for backward compatibility:
52428 ac_top_builddir=$ac_top_build_prefix
52429
52430 case $srcdir in
52431   .)  # We are building in place.
52432     ac_srcdir=.
52433     ac_top_srcdir=$ac_top_builddir_sub
52434     ac_abs_top_srcdir=$ac_pwd ;;
52435   [\\/]* | ?:[\\/]* )  # Absolute name.
52436     ac_srcdir=$srcdir$ac_dir_suffix;
52437     ac_top_srcdir=$srcdir
52438     ac_abs_top_srcdir=$srcdir ;;
52439   *) # Relative name.
52440     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52441     ac_top_srcdir=$ac_top_build_prefix$srcdir
52442     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52443 esac
52444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52445
52446
52447     cd "$ac_dir"
52448
52449     # Check for guested configure; otherwise get Cygnus style configure.
52450     if test -f "$ac_srcdir/configure.gnu"; then
52451       ac_sub_configure=$ac_srcdir/configure.gnu
52452     elif test -f "$ac_srcdir/configure"; then
52453       ac_sub_configure=$ac_srcdir/configure
52454     elif test -f "$ac_srcdir/configure.in"; then
52455       # This should be Cygnus configure.
52456       ac_sub_configure=$ac_aux_dir/configure
52457     else
52458       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52460       ac_sub_configure=
52461     fi
52462
52463     # The recursion is here.
52464     if test -n "$ac_sub_configure"; then
52465       # Make the cache file name correct relative to the subdirectory.
52466       case $cache_file in
52467       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52468       *) # Relative name.
52469         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52470       esac
52471
52472       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52473 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52474       # The eval makes quoting arguments work.
52475       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52476            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52477         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52478 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52479    { (exit 1); exit 1; }; }
52480     fi
52481
52482     cd "$ac_popdir"
52483   done
52484 fi
52485
52486
52487 echo
52488 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52489 echo ""
52490 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52491 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52492
52493 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52494 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52495 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52496 if test "$wxUSE_UNICODE" = "yes"; then
52497     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52498         echo " (using UTF-8)"
52499     else
52500         echo " (using wchar_t)"
52501     fi
52502 else
52503     echo
52504 fi
52505
52506 echo "  What level of wxWidgets compatibility should be enabled?"
52507 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52508 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52509
52510 echo "  Which libraries should wxWidgets use?"
52511 echo "                                       STL                ${wxUSE_STL}"
52512 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52513 echo "                                       png                ${wxUSE_LIBPNG-none}"
52514 echo "                                       regex              ${wxUSE_REGEX}"
52515 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52516 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52517 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52518 fi
52519 echo "                                       zlib               ${wxUSE_ZLIB}"
52520 echo "                                       expat              ${wxUSE_EXPAT}"
52521 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52522 echo "                                       sdl                ${wxUSE_LIBSDL}"
52523
52524 echo ""
52525