re-adding script that is needed for xcode builds
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.1'
579 PACKAGE_STRING='wxWidgets 2.9.1'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 subdirs
681 PKG_CONFIG
682 GTK_CFLAGS
683 GTK_LIBS
684 GTK_CONFIG
685 DIRECTFB_CFLAGS
686 DIRECTFB_LIBS
687 XMKMF
688 X_CFLAGS
689 X_PRE_LIBS
690 X_LIBS
691 X_EXTRA_LIBS
692 PANGOX_CFLAGS
693 PANGOX_LIBS
694 PANGOFT2_CFLAGS
695 PANGOFT2_LIBS
696 PANGOXFT_CFLAGS
697 PANGOXFT_LIBS
698 CFLAGS_VISIBILITY
699 CXXFLAGS_VISIBILITY
700 LIBICONV
701 GXX_VERSION
702 SDL_CONFIG
703 SDL_CFLAGS
704 SDL_LIBS
705 GTKPRINT_CFLAGS
706 GTKPRINT_LIBS
707 LIBGNOMEPRINTUI_CFLAGS
708 LIBGNOMEPRINTUI_LIBS
709 GNOMEVFS_CFLAGS
710 GNOMEVFS_LIBS
711 HILDON_CFLAGS
712 HILDON_LIBS
713 HILDON2_CFLAGS
714 HILDON2_LIBS
715 PYTHON
716 COND_PYTHON
717 CAIRO_CFLAGS
718 CAIRO_LIBS
719 GST_CFLAGS
720 GST_LIBS
721 ALL_WX_LIBS
722 BUILT_WX_LIBS
723 STD_BASE_LIBS
724 STD_GUI_LIBS
725 wxUSE_ZLIB
726 wxUSE_REGEX
727 wxUSE_EXPAT
728 wxUSE_LIBJPEG
729 wxUSE_LIBPNG
730 wxUSE_LIBTIFF
731 VENDOR
732 OFFICIAL_BUILD
733 WX_FLAVOUR
734 WX_LIB_FLAVOUR
735 WXUNIV
736 MONOLITHIC
737 USE_PLUGINS
738 CXXWARNINGS
739 EXTRALIBS
740 EXTRALIBS_XML
741 EXTRALIBS_HTML
742 EXTRALIBS_MEDIA
743 EXTRALIBS_GUI
744 EXTRALIBS_OPENGL
745 EXTRALIBS_SDL
746 EXTRALIBS_STC
747 WITH_PLUGIN_SDL
748 EXTRALIBS_GTKPRINT
749 EXTRALIBS_GNOMEPRINT
750 EXTRALIBS_GNOMEVFS
751 EXTRALIBS_HILDON
752 UNICODE
753 DEBUG_INFO
754 DEBUG_FLAG
755 TOOLKIT_LOWERCASE
756 TOOLKIT_VERSION
757 DYLIB_RPATH_INSTALL
758 DYLIB_RPATH_POSTLINK
759 SAMPLES_RPATH_FLAG
760 HEADER_PAD_OPTION
761 HOST_SUFFIX
762 CPPUNIT_CFLAGS
763 CPPUNIT_LIBS
764 RANLIB
765 INSTALL_PROGRAM
766 INSTALL_SCRIPT
767 INSTALL_DATA
768 LN_S
769 SET_MAKE
770 MAKE_SET
771 AROPTIONS
772 STRIP
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 IF_GNU_MAKE
777 PLATFORM_UNIX
778 PLATFORM_WIN32
779 PLATFORM_MSDOS
780 PLATFORM_MAC
781 PLATFORM_MACOS
782 PLATFORM_MACOSX
783 PLATFORM_OS2
784 PLATFORM_BEOS
785 SO_SUFFIX
786 SO_SUFFIX_MODULE
787 DLLIMP_SUFFIX
788 LIBPREFIX
789 LIBEXT
790 DLLPREFIX
791 DLLPREFIX_MODULE
792 dlldir
793 AIX_CXX_LD
794 SHARED_LD_CC
795 SHARED_LD_CXX
796 SHARED_LD_MODULE_CC
797 SHARED_LD_MODULE_CXX
798 PIC_FLAG
799 WINDOWS_IMPLIB
800 USE_SOVERSION
801 USE_SOVERLINUX
802 USE_SOVERSOLARIS
803 USE_SOVERCYGWIN
804 USE_MACVERSION
805 USE_SOTWOSYMLINKS
806 SONAME_FLAG
807 DEPS_TRACKING
808 BK_DEPS
809 WINDRES
810 REZ
811 SETFILE
812 OBJCXXFLAGS
813 GCC_PCH
814 ICC_PCH
815 ICC_PCH_CREATE_SWITCH
816 ICC_PCH_USE_SWITCH
817 BK_MAKE_PCH
818 COND_BUILD_DEBUG
819 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
820 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
821 COND_BUILD_DEBUG_UNICODE_0
822 COND_BUILD_DEBUG_UNICODE_1
823 COND_BUILD_RELEASE
824 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
825 COND_BUILD_RELEASE_UNICODE_0
826 COND_BUILD_RELEASE_UNICODE_1
827 COND_BUILD_debug
828 COND_BUILD_debug_DEBUG_FLAG_default
829 COND_BUILD_debug_DEBUG_INFO_default
830 COND_BUILD_debug_UNICODE_0
831 COND_BUILD_debug_UNICODE_1
832 COND_BUILD_release
833 COND_BUILD_release_DEBUG_INFO_default
834 COND_BUILD_release_UNICODE_0
835 COND_BUILD_release_UNICODE_1
836 COND_DEBUG_FLAG_0
837 COND_DEBUG_FLAG_1
838 COND_DEBUG_INFO_0
839 COND_DEBUG_INFO_1
840 COND_DEPS_TRACKING_0
841 COND_DEPS_TRACKING_1
842 COND_GCC_PCH_1
843 COND_ICC_PCH_1
844 COND_MONOLITHIC_0
845 COND_MONOLITHIC_0_SHARED_0
846 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
852 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
853 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
854 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
855 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
856 COND_MONOLITHIC_0_SHARED_1
857 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
858 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
862 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
863 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
864 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
865 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
866 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
867 COND_MONOLITHIC_0_USE_AUI_1
868 COND_MONOLITHIC_0_USE_GUI_1
869 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
870 COND_MONOLITHIC_0_USE_HTML_1
871 COND_MONOLITHIC_0_USE_MEDIA_1
872 COND_MONOLITHIC_0_USE_PROPGRID_1
873 COND_MONOLITHIC_0_USE_QA_1
874 COND_MONOLITHIC_0_USE_RIBBON_1
875 COND_MONOLITHIC_0_USE_RICHTEXT_1
876 COND_MONOLITHIC_0_USE_STC_1
877 COND_MONOLITHIC_0_USE_XRC_1
878 COND_MONOLITHIC_1
879 COND_MONOLITHIC_1_SHARED_0
880 COND_MONOLITHIC_1_SHARED_1
881 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
882 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
883 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
884 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
885 COND_PLATFORM_MACOSX_1
886 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
887 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
888 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
889 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
890 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
891 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
892 COND_PLATFORM_MACOSX_1_USE_GUI_1
893 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
894 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
895 COND_PLATFORM_MACOS_1
896 COND_PLATFORM_MAC_0
897 COND_PLATFORM_MAC_1
898 COND_PLATFORM_MSDOS_0
899 COND_PLATFORM_MSDOS_1
900 COND_PLATFORM_OS2_1
901 COND_PLATFORM_UNIX_0
902 COND_PLATFORM_UNIX_1
903 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
904 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
905 COND_PLATFORM_UNIX_1_USE_GUI_1
906 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
907 COND_PLATFORM_WIN32_0
908 COND_PLATFORM_WIN32_1
909 COND_PLATFORM_WIN32_1_SHARED_0
910 COND_SHARED_0
911 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
912 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
913 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
914 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
915 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
916 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
917 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
918 COND_SHARED_0_USE_STC_1
919 COND_SHARED_0_wxUSE_EXPAT_builtin
920 COND_SHARED_0_wxUSE_REGEX_builtin
921 COND_SHARED_0_wxUSE_ZLIB_builtin
922 COND_SHARED_1
923 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
924 COND_TOOLKIT_
925 COND_TOOLKIT_COCOA
926 COND_TOOLKIT_COCOA_USE_GUI_1
927 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
928 COND_TOOLKIT_DFB
929 COND_TOOLKIT_DFB_USE_GUI_1
930 COND_TOOLKIT_GTK
931 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
932 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
933 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
934 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
935 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
936 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_GTK_USE_GUI_1
938 COND_TOOLKIT_MAC
939 COND_TOOLKIT_MGL
940 COND_TOOLKIT_MGL_USE_GUI_1
941 COND_TOOLKIT_MOTIF
942 COND_TOOLKIT_MOTIF_USE_GUI_1
943 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
944 COND_TOOLKIT_MSW
945 COND_TOOLKIT_MSW_USE_GUI_1
946 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_MSW_WXUNIV_0
948 COND_TOOLKIT_OSX_CARBON
949 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
950 COND_TOOLKIT_OSX_COCOA
951 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
952 COND_TOOLKIT_OSX_IPHONE
953 COND_TOOLKIT_PM
954 COND_TOOLKIT_PM_USE_GUI_1
955 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
956 COND_TOOLKIT_WINCE
957 COND_TOOLKIT_WINCE_USE_GUI_1
958 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
959 COND_TOOLKIT_WINCE_WXUNIV_0
960 COND_TOOLKIT_X11
961 COND_TOOLKIT_X11_USE_GUI_1
962 COND_UNICODE_1
963 COND_USE_CAIRO_1
964 COND_USE_EXCEPTIONS_0
965 COND_USE_EXCEPTIONS_1
966 COND_USE_GUI_0
967 COND_USE_GUI_1
968 COND_USE_GUI_1_USE_OPENGL_1
969 COND_USE_GUI_1_WXUNIV_0
970 COND_USE_GUI_1_WXUNIV_1
971 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
972 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
973 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
974 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
975 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
976 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
977 COND_USE_OPENGL_1
978 COND_USE_PCH_1
979 COND_USE_PLUGINS_0
980 COND_USE_RTTI_0
981 COND_USE_RTTI_1
982 COND_USE_SOTWOSYMLINKS_1
983 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
984 COND_USE_SOVERLINUX_1
985 COND_USE_SOVERSION_0
986 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
987 COND_USE_SOVERSOLARIS_1
988 COND_USE_STC_1
989 COND_USE_THREADS_0
990 COND_USE_THREADS_1
991 COND_USE_XRC_1
992 COND_WINDOWS_IMPLIB_1
993 COND_WITH_PLUGIN_SDL_1
994 COND_WXUNIV_0
995 COND_WXUNIV_1
996 COND_WXUSE_EXPAT_BUILTIN
997 COND_WXUSE_LIBJPEG_BUILTIN
998 COND_WXUSE_LIBPNG_BUILTIN
999 COND_WXUSE_LIBTIFF_BUILTIN
1000 COND_WXUSE_REGEX_BUILTIN
1001 COND_WXUSE_ZLIB_BUILTIN
1002 COND_wxUSE_EXPAT_builtin
1003 COND_wxUSE_LIBJPEG_builtin
1004 COND_wxUSE_LIBPNG_builtin
1005 COND_wxUSE_LIBTIFF_builtin
1006 COND_wxUSE_REGEX_builtin
1007 COND_wxUSE_ZLIB_builtin
1008 DEREZ
1009 SHARED
1010 WX_LIBRARY_BASENAME_NOGUI
1011 WX_LIBRARY_BASENAME_GUI
1012 USE_GUI
1013 AFMINSTALL
1014 WIN32INSTALL
1015 TOOLKIT
1016 TOOLKIT_DIR
1017 TOOLCHAIN_NAME
1018 TOOLCHAIN_FULLNAME
1019 cross_compiling
1020 WIDGET_SET
1021 WX_RELEASE
1022 WX_VERSION
1023 WX_SUBVERSION
1024 WX_CHARTYPE
1025 WXCONFIG_CPPFLAGS
1026 WXCONFIG_CFLAGS
1027 WXCONFIG_CXXFLAGS
1028 WXCONFIG_LIBS
1029 WXCONFIG_RPATH
1030 WXCONFIG_LDFLAGS
1031 WXCONFIG_LDFLAGS_GUI
1032 WXCONFIG_RESFLAGS
1033 GUIDIST
1034 DISTDIR
1035 SAMPLES_SUBDIRS
1036 LDFLAGS_GL
1037 OPENGL_LIBS
1038 DMALLOC_LIBS
1039 WX_VERSION_TAG
1040 RESCOMP
1041 RESFLAGS
1042 RESPROGRAMOBJ
1043 WX_RESOURCES_MACOSX_ASCII
1044 WX_RESOURCES_MACOSX_DATA
1045 LIBWXMACRES
1046 POSTLINK_COMMAND
1047 MACSETFILE
1048 GCC
1049 DLLTOOL
1050 CPPUNIT_CONFIG
1051 LIBOBJS
1052 LTLIBOBJS'
1053 ac_subst_files=''
1054       ac_precious_vars='build_alias
1055 host_alias
1056 target_alias
1057 CC
1058 CFLAGS
1059 LDFLAGS
1060 LIBS
1061 CPPFLAGS
1062 CPP
1063 CXX
1064 CXXFLAGS
1065 CCC
1066 PKG_CONFIG
1067 DIRECTFB_CFLAGS
1068 DIRECTFB_LIBS
1069 XMKMF
1070 PANGOX_CFLAGS
1071 PANGOX_LIBS
1072 PANGOFT2_CFLAGS
1073 PANGOFT2_LIBS
1074 PANGOXFT_CFLAGS
1075 PANGOXFT_LIBS
1076 GTKPRINT_CFLAGS
1077 GTKPRINT_LIBS
1078 LIBGNOMEPRINTUI_CFLAGS
1079 LIBGNOMEPRINTUI_LIBS
1080 GNOMEVFS_CFLAGS
1081 GNOMEVFS_LIBS
1082 HILDON_CFLAGS
1083 HILDON_LIBS
1084 HILDON2_CFLAGS
1085 HILDON2_LIBS
1086 CAIRO_CFLAGS
1087 CAIRO_LIBS
1088 GST_CFLAGS
1089 GST_LIBS'
1090 ac_subdirs_all='src/tiff
1091 src/expat'
1092
1093 # Initialize some variables set by options.
1094 ac_init_help=
1095 ac_init_version=false
1096 # The variables have the same names as the options, with
1097 # dashes changed to underlines.
1098 cache_file=/dev/null
1099 exec_prefix=NONE
1100 no_create=
1101 no_recursion=
1102 prefix=NONE
1103 program_prefix=NONE
1104 program_suffix=NONE
1105 program_transform_name=s,x,x,
1106 silent=
1107 site=
1108 srcdir=
1109 verbose=
1110 x_includes=NONE
1111 x_libraries=NONE
1112
1113 # Installation directory options.
1114 # These are left unexpanded so users can "make install exec_prefix=/foo"
1115 # and all the variables that are supposed to be based on exec_prefix
1116 # by default will actually change.
1117 # Use braces instead of parens because sh, perl, etc. also accept them.
1118 # (The list follows the same order as the GNU Coding Standards.)
1119 bindir='${exec_prefix}/bin'
1120 sbindir='${exec_prefix}/sbin'
1121 libexecdir='${exec_prefix}/libexec'
1122 datarootdir='${prefix}/share'
1123 datadir='${datarootdir}'
1124 sysconfdir='${prefix}/etc'
1125 sharedstatedir='${prefix}/com'
1126 localstatedir='${prefix}/var'
1127 includedir='${prefix}/include'
1128 oldincludedir='/usr/include'
1129 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1130 infodir='${datarootdir}/info'
1131 htmldir='${docdir}'
1132 dvidir='${docdir}'
1133 pdfdir='${docdir}'
1134 psdir='${docdir}'
1135 libdir='${exec_prefix}/lib'
1136 localedir='${datarootdir}/locale'
1137 mandir='${datarootdir}/man'
1138
1139 ac_prev=
1140 ac_dashdash=
1141 for ac_option
1142 do
1143   # If the previous option needs an argument, assign it.
1144   if test -n "$ac_prev"; then
1145     eval $ac_prev=\$ac_option
1146     ac_prev=
1147     continue
1148   fi
1149
1150   case $ac_option in
1151   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1152   *)    ac_optarg=yes ;;
1153   esac
1154
1155   # Accept the important Cygnus configure options, so we can diagnose typos.
1156
1157   case $ac_dashdash$ac_option in
1158   --)
1159     ac_dashdash=yes ;;
1160
1161   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1162     ac_prev=bindir ;;
1163   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1164     bindir=$ac_optarg ;;
1165
1166   -build | --build | --buil | --bui | --bu)
1167     ac_prev=build_alias ;;
1168   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1169     build_alias=$ac_optarg ;;
1170
1171   -cache-file | --cache-file | --cache-fil | --cache-fi \
1172   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1173     ac_prev=cache_file ;;
1174   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1175   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1176     cache_file=$ac_optarg ;;
1177
1178   --config-cache | -C)
1179     cache_file=config.cache ;;
1180
1181   -datadir | --datadir | --datadi | --datad)
1182     ac_prev=datadir ;;
1183   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1184     datadir=$ac_optarg ;;
1185
1186   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1187   | --dataroo | --dataro | --datar)
1188     ac_prev=datarootdir ;;
1189   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1190   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1191     datarootdir=$ac_optarg ;;
1192
1193   -disable-* | --disable-*)
1194     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1198    { (exit 1); exit 1; }; }
1199     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1200     eval enable_$ac_feature=no ;;
1201
1202   -docdir | --docdir | --docdi | --doc | --do)
1203     ac_prev=docdir ;;
1204   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205     docdir=$ac_optarg ;;
1206
1207   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1208     ac_prev=dvidir ;;
1209   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210     dvidir=$ac_optarg ;;
1211
1212   -enable-* | --enable-*)
1213     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1217    { (exit 1); exit 1; }; }
1218     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1219     eval enable_$ac_feature=\$ac_optarg ;;
1220
1221   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1222   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1223   | --exec | --exe | --ex)
1224     ac_prev=exec_prefix ;;
1225   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1226   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1227   | --exec=* | --exe=* | --ex=*)
1228     exec_prefix=$ac_optarg ;;
1229
1230   -gas | --gas | --ga | --g)
1231     # Obsolete; use --with-gas.
1232     with_gas=yes ;;
1233
1234   -help | --help | --hel | --he | -h)
1235     ac_init_help=long ;;
1236   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1237     ac_init_help=recursive ;;
1238   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1239     ac_init_help=short ;;
1240
1241   -host | --host | --hos | --ho)
1242     ac_prev=host_alias ;;
1243   -host=* | --host=* | --hos=* | --ho=*)
1244     host_alias=$ac_optarg ;;
1245
1246   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1247     ac_prev=htmldir ;;
1248   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1249   | --ht=*)
1250     htmldir=$ac_optarg ;;
1251
1252   -includedir | --includedir | --includedi | --included | --include \
1253   | --includ | --inclu | --incl | --inc)
1254     ac_prev=includedir ;;
1255   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1256   | --includ=* | --inclu=* | --incl=* | --inc=*)
1257     includedir=$ac_optarg ;;
1258
1259   -infodir | --infodir | --infodi | --infod | --info | --inf)
1260     ac_prev=infodir ;;
1261   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1262     infodir=$ac_optarg ;;
1263
1264   -libdir | --libdir | --libdi | --libd)
1265     ac_prev=libdir ;;
1266   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1267     libdir=$ac_optarg ;;
1268
1269   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1270   | --libexe | --libex | --libe)
1271     ac_prev=libexecdir ;;
1272   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1273   | --libexe=* | --libex=* | --libe=*)
1274     libexecdir=$ac_optarg ;;
1275
1276   -localedir | --localedir | --localedi | --localed | --locale)
1277     ac_prev=localedir ;;
1278   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1279     localedir=$ac_optarg ;;
1280
1281   -localstatedir | --localstatedir | --localstatedi | --localstated \
1282   | --localstate | --localstat | --localsta | --localst | --locals)
1283     ac_prev=localstatedir ;;
1284   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1285   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1286     localstatedir=$ac_optarg ;;
1287
1288   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1289     ac_prev=mandir ;;
1290   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1291     mandir=$ac_optarg ;;
1292
1293   -nfp | --nfp | --nf)
1294     # Obsolete; use --without-fp.
1295     with_fp=no ;;
1296
1297   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1298   | --no-cr | --no-c | -n)
1299     no_create=yes ;;
1300
1301   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1302   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1303     no_recursion=yes ;;
1304
1305   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1306   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1307   | --oldin | --oldi | --old | --ol | --o)
1308     ac_prev=oldincludedir ;;
1309   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1310   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1311   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1312     oldincludedir=$ac_optarg ;;
1313
1314   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1315     ac_prev=prefix ;;
1316   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1317     prefix=$ac_optarg ;;
1318
1319   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1320   | --program-pre | --program-pr | --program-p)
1321     ac_prev=program_prefix ;;
1322   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1323   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1324     program_prefix=$ac_optarg ;;
1325
1326   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1327   | --program-suf | --program-su | --program-s)
1328     ac_prev=program_suffix ;;
1329   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1330   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1331     program_suffix=$ac_optarg ;;
1332
1333   -program-transform-name | --program-transform-name \
1334   | --program-transform-nam | --program-transform-na \
1335   | --program-transform-n | --program-transform- \
1336   | --program-transform | --program-transfor \
1337   | --program-transfo | --program-transf \
1338   | --program-trans | --program-tran \
1339   | --progr-tra | --program-tr | --program-t)
1340     ac_prev=program_transform_name ;;
1341   -program-transform-name=* | --program-transform-name=* \
1342   | --program-transform-nam=* | --program-transform-na=* \
1343   | --program-transform-n=* | --program-transform-=* \
1344   | --program-transform=* | --program-transfor=* \
1345   | --program-transfo=* | --program-transf=* \
1346   | --program-trans=* | --program-tran=* \
1347   | --progr-tra=* | --program-tr=* | --program-t=*)
1348     program_transform_name=$ac_optarg ;;
1349
1350   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1351     ac_prev=pdfdir ;;
1352   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1353     pdfdir=$ac_optarg ;;
1354
1355   -psdir | --psdir | --psdi | --psd | --ps)
1356     ac_prev=psdir ;;
1357   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1358     psdir=$ac_optarg ;;
1359
1360   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1361   | -silent | --silent | --silen | --sile | --sil)
1362     silent=yes ;;
1363
1364   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1365     ac_prev=sbindir ;;
1366   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1367   | --sbi=* | --sb=*)
1368     sbindir=$ac_optarg ;;
1369
1370   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1371   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1372   | --sharedst | --shareds | --shared | --share | --shar \
1373   | --sha | --sh)
1374     ac_prev=sharedstatedir ;;
1375   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1376   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1377   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1378   | --sha=* | --sh=*)
1379     sharedstatedir=$ac_optarg ;;
1380
1381   -site | --site | --sit)
1382     ac_prev=site ;;
1383   -site=* | --site=* | --sit=*)
1384     site=$ac_optarg ;;
1385
1386   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1387     ac_prev=srcdir ;;
1388   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1389     srcdir=$ac_optarg ;;
1390
1391   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1392   | --syscon | --sysco | --sysc | --sys | --sy)
1393     ac_prev=sysconfdir ;;
1394   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1395   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1396     sysconfdir=$ac_optarg ;;
1397
1398   -target | --target | --targe | --targ | --tar | --ta | --t)
1399     ac_prev=target_alias ;;
1400   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1401     target_alias=$ac_optarg ;;
1402
1403   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1404     verbose=yes ;;
1405
1406   -version | --version | --versio | --versi | --vers | -V)
1407     ac_init_version=: ;;
1408
1409   -with-* | --with-*)
1410     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1411     # Reject names that are not valid shell variable names.
1412     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413       { echo "$as_me: error: invalid package name: $ac_package" >&2
1414    { (exit 1); exit 1; }; }
1415     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1416     eval with_$ac_package=\$ac_optarg ;;
1417
1418   -without-* | --without-*)
1419     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422       { echo "$as_me: error: invalid package name: $ac_package" >&2
1423    { (exit 1); exit 1; }; }
1424     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1425     eval with_$ac_package=no ;;
1426
1427   --x)
1428     # Obsolete; use --with-x.
1429     with_x=yes ;;
1430
1431   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1432   | --x-incl | --x-inc | --x-in | --x-i)
1433     ac_prev=x_includes ;;
1434   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1435   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1436     x_includes=$ac_optarg ;;
1437
1438   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1439   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1440     ac_prev=x_libraries ;;
1441   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1442   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1443     x_libraries=$ac_optarg ;;
1444
1445   -*) { echo "$as_me: error: unrecognized option: $ac_option
1446 Try \`$0 --help' for more information." >&2
1447    { (exit 1); exit 1; }; }
1448     ;;
1449
1450   *=*)
1451     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1452     # Reject names that are not valid shell variable names.
1453     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1454       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1455    { (exit 1); exit 1; }; }
1456     eval $ac_envvar=\$ac_optarg
1457     export $ac_envvar ;;
1458
1459   *)
1460     # FIXME: should be removed in autoconf 3.0.
1461     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1462     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1463       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1464     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1465     ;;
1466
1467   esac
1468 done
1469
1470 if test -n "$ac_prev"; then
1471   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1472   { echo "$as_me: error: missing argument to $ac_option" >&2
1473    { (exit 1); exit 1; }; }
1474 fi
1475
1476 # Be sure to have absolute directory names.
1477 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478                 datadir sysconfdir sharedstatedir localstatedir includedir \
1479                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480                 libdir localedir mandir
1481 do
1482   eval ac_val=\$$ac_var
1483   case $ac_val in
1484     [\\/$]* | ?:[\\/]* )  continue;;
1485     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1486   esac
1487   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1488    { (exit 1); exit 1; }; }
1489 done
1490
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1494 build=$build_alias
1495 host=$host_alias
1496 target=$target_alias
1497
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x; then
1500   if test "x$build_alias" = x; then
1501     cross_compiling=maybe
1502     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1503     If a cross compiler is detected then cross compile mode will be used." >&2
1504   elif test "x$build_alias" != "x$host_alias"; then
1505     cross_compiling=yes
1506   fi
1507 fi
1508
1509 ac_tool_prefix=
1510 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1511
1512 test "$silent" = yes && exec 6>/dev/null
1513
1514
1515 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1516 ac_ls_di=`ls -di .` &&
1517 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1518   { echo "$as_me: error: Working directory cannot be determined" >&2
1519    { (exit 1); exit 1; }; }
1520 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1521   { echo "$as_me: error: pwd does not report name of working directory" >&2
1522    { (exit 1); exit 1; }; }
1523
1524
1525 # Find the source files, if location was not specified.
1526 if test -z "$srcdir"; then
1527   ac_srcdir_defaulted=yes
1528   # Try the directory containing this script, then the parent directory.
1529   ac_confdir=`$as_dirname -- "$0" ||
1530 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1531          X"$0" : 'X\(//\)[^/]' \| \
1532          X"$0" : 'X\(//\)$' \| \
1533          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1534 echo X"$0" |
1535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536             s//\1/
1537             q
1538           }
1539           /^X\(\/\/\)[^/].*/{
1540             s//\1/
1541             q
1542           }
1543           /^X\(\/\/\)$/{
1544             s//\1/
1545             q
1546           }
1547           /^X\(\/\).*/{
1548             s//\1/
1549             q
1550           }
1551           s/.*/./; q'`
1552   srcdir=$ac_confdir
1553   if test ! -r "$srcdir/$ac_unique_file"; then
1554     srcdir=..
1555   fi
1556 else
1557   ac_srcdir_defaulted=no
1558 fi
1559 if test ! -r "$srcdir/$ac_unique_file"; then
1560   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1561   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1562    { (exit 1); exit 1; }; }
1563 fi
1564 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1565 ac_abs_confdir=`(
1566         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1567    { (exit 1); exit 1; }; }
1568         pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571   srcdir=.
1572 fi
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581   eval ac_env_${ac_var}_value=\$${ac_var}
1582   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1585
1586 #
1587 # Report the --help message.
1588 #
1589 if test "$ac_init_help" = "long"; then
1590   # Omit some internal or obsolete options to make the list less imposing.
1591   # This message is too long to be a string in the A/UX 3.1 sh.
1592   cat <<_ACEOF
1593 \`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems.
1594
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1596
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE.  See below for descriptions of some of the useful variables.
1599
1600 Defaults for the options are specified in brackets.
1601
1602 Configuration:
1603   -h, --help              display this help and exit
1604       --help=short        display options specific to this package
1605       --help=recursive    display the short help of all the included packages
1606   -V, --version           display version information and exit
1607   -q, --quiet, --silent   do not print \`checking...' messages
1608       --cache-file=FILE   cache test results in FILE [disabled]
1609   -C, --config-cache      alias for \`--cache-file=config.cache'
1610   -n, --no-create         do not create output files
1611       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1612
1613 Installation directories:
1614   --prefix=PREFIX         install architecture-independent files in PREFIX
1615                           [$ac_default_prefix]
1616   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1617                           [PREFIX]
1618
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1623
1624 For better control, use the options below.
1625
1626 Fine tuning of the installation directories:
1627   --bindir=DIR           user executables [EPREFIX/bin]
1628   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1629   --libexecdir=DIR       program executables [EPREFIX/libexec]
1630   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1631   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1632   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1633   --libdir=DIR           object code libraries [EPREFIX/lib]
1634   --includedir=DIR       C header files [PREFIX/include]
1635   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1636   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1637   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1638   --infodir=DIR          info documentation [DATAROOTDIR/info]
1639   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1640   --mandir=DIR           man documentation [DATAROOTDIR/man]
1641   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1642   --htmldir=DIR          html documentation [DOCDIR]
1643   --dvidir=DIR           dvi documentation [DOCDIR]
1644   --pdfdir=DIR           pdf documentation [DOCDIR]
1645   --psdir=DIR            ps documentation [DOCDIR]
1646 _ACEOF
1647
1648   cat <<\_ACEOF
1649
1650 X features:
1651   --x-includes=DIR    X include files are in DIR
1652   --x-libraries=DIR   X library files are in DIR
1653
1654 System types:
1655   --build=BUILD     configure for building on BUILD [guessed]
1656   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1657 _ACEOF
1658 fi
1659
1660 if test -n "$ac_init_help"; then
1661   case $ac_init_help in
1662      short | recursive ) echo "Configuration of wxWidgets 2.9.1:";;
1663    esac
1664   cat <<\_ACEOF
1665
1666 Optional Features:
1667   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1668   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1669   --disable-gui           don't build GUI parts of the library
1670   --enable-monolithic     build wxWidgets as single library
1671   --enable-plugins        build parts of wxWidgets as loadable components
1672   --enable-official_build official build of wxWidgets (win32 DLL only)
1673   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1674   --disable-all-features  disable all optional features to build minimal library
1675   --enable-universal      use wxWidgets GUI controls instead of native ones
1676   --enable-nanox          use NanoX
1677   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1678   --enable-gpe            use GNOME PDA Environment features if possible
1679   --enable-debug          build library for debugging
1680   --disable-debug_flag    disable all debugging support
1681   --enable-debug_info     generate debug information
1682   --enable-debug_gdb      create code with extra GDB debugging information
1683   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1684   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1685   --disable-shared        create static library instead of shared
1686   --enable-stl            use STL for containers
1687   --enable-std_iostreams  use standard C++ stream classes
1688   --enable-std_string     use standard C++ string classes
1689   --disable-unicode       compile without Unicode support
1690   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1691   --enable-utf8           use UTF-8 representation for strings (Unix only)
1692   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1693   --enable-extended_rtti  use extended RTTI (XTI)
1694   --enable-omf            use OMF object format
1695   --disable-optimise      compile without optimisations
1696   --enable-profile        create code with profiling information
1697   --enable-no_rtti        create code without RTTI information
1698   --enable-no_exceptions  create code without C++ exceptions handling
1699   --enable-permissive     compile code disregarding strict ANSI
1700   --enable-no_deps        create code without dependency information
1701   --disable-vararg_macros don't use vararg macros, even if they are supported
1702   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1703   --enable-compat26       enable wxWidgets 2.6 compatibility
1704   --disable-compat28      disable wxWidgets 2.8 compatibility
1705   --disable-rpath         disable use of rpath for uninstalled builds
1706   --enable-objc_uniquifying enable Objective-C class name uniquifying
1707   --disable-visibility    disable use of ELF symbols visibility even if supported
1708   --disable-tls           disable use of compiler TLS support
1709   --enable-intl           use internationalization system
1710   --enable-xlocale        use x-locale support (requires wxLocale)
1711   --enable-config         use wxConfig (and derived) classes
1712   --enable-protocols      use wxProtocol and derived classes
1713   --enable-ftp            use wxFTP (requires wxProtocol
1714   --enable-http           use wxHTTP (requires wxProtocol
1715   --enable-fileproto      use wxFileProto class (requires wxProtocol
1716   --enable-sockets        use socket/network classes
1717   --enable-ipv6           enable IPv6 support in wxSocket
1718   --enable-ole            use OLE classes (Win32 only)
1719   --enable-dataobj        use data object classes
1720   --enable-ipc            use interprocess communication (wxSocket etc.)
1721   --enable-baseevtloop    use event loop in console programs too
1722   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1723   --enable-selectloop     use wxSelectDispatcher class
1724   --enable-any            use wxAny class
1725   --enable-apple_ieee     use the Apple IEEE codec
1726   --enable-arcstream      use wxArchive streams
1727   --enable-base64         use base64 encoding/decoding functions
1728   --enable-backtrace      use wxStackWalker class for getting backtraces
1729   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1730   --enable-cmdline        use wxCmdLineParser class
1731   --enable-datetime       use wxDateTime class
1732   --enable-debugreport    use wxDebugReport class
1733   --enable-dialupman      use dialup network classes
1734   --enable-dynlib         use wxLibrary class for DLL loading
1735   --enable-dynamicloader  use (new) wxDynamicLibrary class
1736   --enable-exceptions     build exception-safe library
1737   --enable-ffile          use wxFFile class
1738   --enable-file           use wxFile class
1739   --enable-filesystem     use virtual file systems classes
1740   --enable-fontenum       use wxFontEnumerator class
1741   --enable-fontmap        use font encodings conversion classes
1742   --enable-fs_archive     use virtual archive filesystems
1743   --enable-fs_inet        use virtual HTTP/FTP filesystems
1744   --enable-fs_zip         now replaced by fs_archive
1745   --enable-fswatcher      use wxFileSystemWatcher class
1746   --enable-geometry       use geometry class
1747   --enable-log            use logging system
1748   --enable-longlong       use wxLongLong class
1749   --enable-mimetype       use wxMimeTypesManager
1750   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1751   --enable-snglinst       use wxSingleInstanceChecker class
1752   --enable-sound          use wxSound class
1753   --enable-stdpaths       use wxStandardPaths class
1754   --enable-stopwatch      use wxStopWatch class
1755   --enable-streams        use wxStream etc classes
1756   --enable-sysoptions     use wxSystemOptions
1757   --enable-tarstream      use wxTar streams
1758   --enable-textbuf        use wxTextBuffer class
1759   --enable-textfile       use wxTextFile class
1760   --enable-timer          use wxTimer class
1761   --enable-variant        use wxVariant class
1762   --enable-zipstream      use wxZip streams
1763   --enable-url            use wxURL class
1764   --enable-protocol       use wxProtocol class
1765   --enable-protocol-http  HTTP support in wxProtocol
1766   --enable-protocol-ftp   FTP support in wxProtocol
1767   --enable-protocol-file  FILE support in wxProtocol
1768   --enable-threads        use threads
1769   --enable-iniconf        use wxIniConfig (Win32 only)
1770   --enable-regkey         use wxRegKey class (Win32 only)
1771   --enable-docview        use document view architecture
1772   --enable-help           use help subsystem
1773   --enable-mshtmlhelp     use MS HTML Help (win32)
1774   --enable-html           use wxHTML sub-library
1775   --enable-htmlhelp       use wxHTML-based help
1776   --enable-xrc            use XRC resources sub-library
1777   --enable-aui            use AUI docking library
1778   --enable-propgrid       use wxPropertyGrid library
1779   --enable-ribbon         use wxRibbon library
1780   --enable-stc            use wxStyledTextCtrl library
1781   --enable-constraints    use layout-constraints system
1782   --enable-loggui         use standard GUI logger
1783   --enable-logwin         use wxLogWindow
1784   --enable-logdialog      use wxLogDialog
1785   --enable-mdi            use multiple document interface architecture
1786   --enable-mdidoc         use docview architecture with MDI
1787   --enable-mediactrl      use wxMediaCtrl class
1788   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1789   --enable-webkit         use wxWebKitCtrl (Mac)
1790   --enable-richtext       use wxRichTextCtrl
1791   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1792   --enable-printarch      use printing architecture
1793   --enable-svg            use wxSVGFileDC device context
1794   --enable-graphics_ctx   use graphics context 2D drawing API
1795   --enable-clipboard      use wxClipboard class
1796   --enable-dnd            use Drag'n'Drop classes
1797   --enable-metafile       use win32 metafiles
1798   --disable-controls      disable compilation of all standard controls
1799   --enable-accel          use accelerators
1800   --enable-animatectrl    use wxAnimationCtrl class
1801   --enable-bmpbutton      use wxBitmapButton class
1802   --enable-bmpcombobox    use wxBitmapComboBox class
1803   --enable-button         use wxButton class
1804   --enable-calendar       use wxCalendarCtrl class
1805   --enable-caret          use wxCaret class
1806   --enable-checkbox       use wxCheckBox class
1807   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1808   --enable-choice         use wxChoice class
1809   --enable-choicebook     use wxChoicebook class
1810   --enable-collpane       use wxCollapsiblePane class
1811   --enable-colourpicker   use wxColourPickerCtrl class
1812   --enable-combobox       use wxComboBox class
1813   --enable-comboctrl      use wxComboCtrl class
1814   --enable-dataviewctrl   use wxDataViewCtrl class
1815   --enable-datepick       use wxDatePickerCtrl class
1816   --enable-detect_sm      use code to detect X11 session manager
1817   --enable-dirpicker      use wxDirPickerCtrl class
1818   --enable-display        use wxDisplay class
1819   --enable-editablebox    use wxEditableListBox class
1820   --enable-filectrl       use wxFileCtrl class
1821   --enable-filepicker     use wxFilePickerCtrl class
1822   --enable-fontpicker     use wxFontPickerCtrl class
1823   --enable-gauge          use wxGauge class
1824   --enable-grid           use wxGrid class
1825   --enable-headerctrl     use wxHeaderCtrl class
1826   --enable-hyperlink      use wxHyperlinkCtrl class
1827   --enable-imaglist       use wxImageList class
1828   --enable-infobar        use wxInfoBar class
1829   --enable-listbook       use wxListbook class
1830   --enable-listbox        use wxListBox class
1831   --enable-listctrl       use wxListCtrl class
1832   --enable-notebook       use wxNotebook class
1833   --enable-notifmsg       use wxNotificationMessage class
1834   --enable-odcombobox     use wxOwnerDrawnComboBox class
1835   --enable-popupwin       use wxPopUpWindow class
1836   --enable-radiobox       use wxRadioBox class
1837   --enable-radiobtn       use wxRadioButton class
1838   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1839   --enable-sash           use wxSashWindow class
1840   --enable-scrollbar      use wxScrollBar class and scrollable windows
1841   --enable-searchctrl     use wxSearchCtrl class
1842   --enable-slider         use wxSlider class
1843   --enable-spinbtn        use wxSpinButton class
1844   --enable-spinctrl       use wxSpinCtrl class
1845   --enable-splitter       use wxSplitterWindow class
1846   --enable-statbmp        use wxStaticBitmap class
1847   --enable-statbox        use wxStaticBox class
1848   --enable-statline       use wxStaticLine class
1849   --enable-stattext       use wxStaticText class
1850   --enable-statusbar      use wxStatusBar class
1851   --enable-taskbaricon    use wxTaskBarIcon class
1852   --enable-tbarnative     use native wxToolBar class
1853   --enable-textctrl       use wxTextCtrl class
1854   --enable-tipwindow      use wxTipWindow class
1855   --enable-togglebtn      use wxToggleButton class
1856   --enable-toolbar        use wxToolBar class
1857   --enable-toolbook       use wxToolbook class
1858   --enable-treebook       use wxTreebook class
1859   --enable-treectrl       use wxTreeCtrl class
1860   --enable-commondlg      use all common dialogs
1861   --enable-aboutdlg       use wxAboutBox
1862   --enable-choicedlg      use wxChoiceDialog
1863   --enable-coldlg         use wxColourDialog
1864   --enable-filedlg        use wxFileDialog
1865   --enable-finddlg        use wxFindReplaceDialog
1866   --enable-fontdlg        use wxFontDialog
1867   --enable-dirdlg         use wxDirDialog
1868   --enable-msgdlg         use wxMessageDialog
1869   --enable-numberdlg      use wxNumberEntryDialog
1870   --enable-splash         use wxSplashScreen
1871   --enable-textdlg        use wxTextDialog
1872   --enable-tipdlg         use startup tips
1873   --enable-progressdlg    use wxProgressDialog
1874   --enable-wizarddlg      use wxWizard
1875   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1876   --enable-miniframe      use wxMiniFrame class
1877   --enable-tooltips       use wxToolTip class
1878   --enable-splines        use spline drawing code
1879   --enable-mousewheel     use mousewheel
1880   --enable-validators     use wxValidator and derived classes
1881   --enable-busyinfo       use wxBusyInfo
1882   --enable-joystick       use wxJoystick
1883   --enable-metafiles      use wxMetaFile (Win32 only)
1884   --enable-dragimage      use wxDragImage
1885   --enable-accessibility  enable accessibility support
1886   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1887   --enable-palette        use wxPalette class
1888   --enable-image          use wxImage class
1889   --enable-gif            use gif images (GIF file format)
1890   --enable-pcx            use pcx images (PCX file format)
1891   --enable-tga            use tga images (TGA file format)
1892   --enable-iff            use iff images (IFF file format)
1893   --enable-pnm            use pnm images (PNM file format)
1894   --enable-xpm            use xpm images (XPM file format)
1895   --enable-ico_cur        use Windows ICO and CUR formats
1896   --enable-dccache        cache temporary wxDC objects (Win32 only)
1897   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1898   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1899   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1900   --enable-wxdib          use wxDIB class (Win32 only)
1901   --enable-autoidman      use automatic ids management
1902   --disable-largefile     omit support for large files
1903   --disable-gtktest       do not try to compile and run a test GTK+ program
1904   --disable-gtktest       Do not try to compile and run a test GTK program
1905   --disable-sdltest       Do not try to compile and run a test SDL program
1906   --enable-omf            use OMF object format (OS/2)
1907   --disable-dependency-tracking
1908                           don't use dependency tracking even if the compiler
1909                           can
1910   --disable-precomp-headers
1911                           don't use precompiled headers even if compiler can
1912
1913 Optional Packages:
1914   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1915   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1916   --without-subdirs       don't generate makefiles for samples/demos/...
1917   --with-flavour=NAME     specify a name to identify this build
1918   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1919   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1920   --with-motif            use Motif/Lesstif
1921   --with-osx_carbon       use Mac OS X (Carbon)
1922   --with-osx_cocoa        use Mac OS X (Cocoa)
1923   --with-osx_iphone       use iPhone OS X port
1924   --with-osx              use Mac OS X (default port, currently Carbon)
1925   --with-carbon           same as --with-osx_carbon
1926   --with-cocoa            same as --with-osx_cocoa
1927   --with-iphone           same as --with-osx_iphone
1928   --with-mac              same as --with-osx
1929   --with-old_cocoa        use old, deprecated, Cocoa port
1930   --with-wine             use Wine
1931   --with-msw              use MS-Windows
1932   --with-pm               use OS/2 Presentation Manager
1933   --with-mgl              use SciTech MGL
1934   --with-directfb         use DirectFB
1935   --with-microwin         use MicroWindows
1936   --with-x11              use X11
1937   --with-libpng           use libpng (PNG image format)
1938   --with-libjpeg          use libjpeg (JPEG file format)
1939   --with-libtiff          use libtiff (TIFF file format)
1940   --with-libxpm           use libxpm (XPM file format)
1941   --with-libiconv         use libiconv (character conversion)
1942   --with-libmspack        use libmspack (CHM help files loading)
1943   --without-gtkprint      don't use GTK printing support
1944   --without-gnomeprint    don't use GNOME printing libraries
1945   --with-gnomevfs         use GNOME VFS for associating MIME types
1946   --with-hildon           use Hildon framework for Nokia 770/800/810
1947   --with-opengl           use OpenGL (or Mesa)
1948   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1949   --with-sdl              use SDL for audio on Unix
1950   --with-regex            enable support for wxRegEx class
1951   --with-zlib             use zlib for LZW compression
1952   --with-expat            enable XML support using expat parser
1953   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1954   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1955   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1956   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1957   --with-x                use the X Window System
1958   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1959   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1960   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1961   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1962   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1963
1964 Some influential environment variables:
1965   CC          C compiler command
1966   CFLAGS      C compiler flags
1967   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1968               nonstandard directory <lib dir>
1969   LIBS        libraries to pass to the linker, e.g. -l<library>
1970   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1971               you have headers in a nonstandard directory <include dir>
1972   CPP         C preprocessor
1973   CXX         C++ compiler command
1974   CXXFLAGS    C++ compiler flags
1975   PKG_CONFIG  path to pkg-config utility
1976   DIRECTFB_CFLAGS
1977               C compiler flags for DIRECTFB, overriding pkg-config
1978   DIRECTFB_LIBS
1979               linker flags for DIRECTFB, overriding pkg-config
1980   XMKMF       Path to xmkmf, Makefile generator for X Window System
1981   PANGOX_CFLAGS
1982               C compiler flags for PANGOX, overriding pkg-config
1983   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1984   PANGOFT2_CFLAGS
1985               C compiler flags for PANGOFT2, overriding pkg-config
1986   PANGOFT2_LIBS
1987               linker flags for PANGOFT2, overriding pkg-config
1988   PANGOXFT_CFLAGS
1989               C compiler flags for PANGOXFT, overriding pkg-config
1990   PANGOXFT_LIBS
1991               linker flags for PANGOXFT, overriding pkg-config
1992   GTKPRINT_CFLAGS
1993               C compiler flags for GTKPRINT, overriding pkg-config
1994   GTKPRINT_LIBS
1995               linker flags for GTKPRINT, overriding pkg-config
1996   LIBGNOMEPRINTUI_CFLAGS
1997               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1998   LIBGNOMEPRINTUI_LIBS
1999               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2000   GNOMEVFS_CFLAGS
2001               C compiler flags for GNOMEVFS, overriding pkg-config
2002   GNOMEVFS_LIBS
2003               linker flags for GNOMEVFS, overriding pkg-config
2004   HILDON_CFLAGS
2005               C compiler flags for HILDON, overriding pkg-config
2006   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2007   HILDON2_CFLAGS
2008               C compiler flags for HILDON2, overriding pkg-config
2009   HILDON2_LIBS
2010               linker flags for HILDON2, overriding pkg-config
2011   CAIRO_CFLAGS
2012               C compiler flags for CAIRO, overriding pkg-config
2013   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2014   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2015   GST_LIBS    linker flags for GST, overriding pkg-config
2016
2017 Use these variables to override the choices made by `configure' or to help
2018 it to find libraries and programs with nonstandard names/locations.
2019
2020 Report bugs to <wx-dev@lists.wxwidgets.org>.
2021 _ACEOF
2022 ac_status=$?
2023 fi
2024
2025 if test "$ac_init_help" = "recursive"; then
2026   # If there are subdirs, report their specific --help.
2027   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028     test -d "$ac_dir" || continue
2029     ac_builddir=.
2030
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033 *)
2034   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2035   # A ".." for each directory in $ac_dir_suffix.
2036   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2037   case $ac_top_builddir_sub in
2038   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040   esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2046
2047 case $srcdir in
2048   .)  # We are building in place.
2049     ac_srcdir=.
2050     ac_top_srcdir=$ac_top_builddir_sub
2051     ac_abs_top_srcdir=$ac_pwd ;;
2052   [\\/]* | ?:[\\/]* )  # Absolute name.
2053     ac_srcdir=$srcdir$ac_dir_suffix;
2054     ac_top_srcdir=$srcdir
2055     ac_abs_top_srcdir=$srcdir ;;
2056   *) # Relative name.
2057     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058     ac_top_srcdir=$ac_top_build_prefix$srcdir
2059     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063     cd "$ac_dir" || { ac_status=$?; continue; }
2064     # Check for guested configure.
2065     if test -f "$ac_srcdir/configure.gnu"; then
2066       echo &&
2067       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068     elif test -f "$ac_srcdir/configure"; then
2069       echo &&
2070       $SHELL "$ac_srcdir/configure" --help=recursive
2071     else
2072       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073     fi || ac_status=$?
2074     cd "$ac_pwd" || { ac_status=$?; break; }
2075   done
2076 fi
2077
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080   cat <<\_ACEOF
2081 wxWidgets configure 2.9.1
2082 generated by GNU Autoconf 2.61
2083
2084 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2085 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2086 This configure script is free software; the Free Software Foundation
2087 gives unlimited permission to copy, distribute and modify it.
2088 _ACEOF
2089   exit
2090 fi
2091 cat >config.log <<_ACEOF
2092 This file contains any messages produced by compilers while
2093 running configure, to aid debugging if configure makes a mistake.
2094
2095 It was created by wxWidgets $as_me 2.9.1, which was
2096 generated by GNU Autoconf 2.61.  Invocation command line was
2097
2098   $ $0 $@
2099
2100 _ACEOF
2101 exec 5>>config.log
2102 {
2103 cat <<_ASUNAME
2104 ## --------- ##
2105 ## Platform. ##
2106 ## --------- ##
2107
2108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113
2114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2116
2117 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2118 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2121 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2122 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2123 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2124
2125 _ASUNAME
2126
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130   IFS=$as_save_IFS
2131   test -z "$as_dir" && as_dir=.
2132   echo "PATH: $as_dir"
2133 done
2134 IFS=$as_save_IFS
2135
2136 } >&5
2137
2138 cat >&5 <<_ACEOF
2139
2140
2141 ## ----------- ##
2142 ## Core tests. ##
2143 ## ----------- ##
2144
2145 _ACEOF
2146
2147
2148 # Keep a trace of the command line.
2149 # Strip out --no-create and --no-recursion so they do not pile up.
2150 # Strip out --silent because we don't want to record it for future runs.
2151 # Also quote any args containing shell meta-characters.
2152 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_configure_args=
2154 ac_configure_args0=
2155 ac_configure_args1=
2156 ac_must_keep_next=false
2157 for ac_pass in 1 2
2158 do
2159   for ac_arg
2160   do
2161     case $ac_arg in
2162     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164     | -silent | --silent | --silen | --sile | --sil)
2165       continue ;;
2166     *\'*)
2167       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168     esac
2169     case $ac_pass in
2170     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2171     2)
2172       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2173       if test $ac_must_keep_next = true; then
2174         ac_must_keep_next=false # Got value, back to normal.
2175       else
2176         case $ac_arg in
2177           *=* | --config-cache | -C | -disable-* | --disable-* \
2178           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180           | -with-* | --with-* | -without-* | --without-* | --x)
2181             case "$ac_configure_args0 " in
2182               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183             esac
2184             ;;
2185           -* ) ac_must_keep_next=true ;;
2186         esac
2187       fi
2188       ac_configure_args="$ac_configure_args '$ac_arg'"
2189       ;;
2190     esac
2191   done
2192 done
2193 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2194 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2195
2196 # When interrupted or exit'd, cleanup temporary files, and complete
2197 # config.log.  We remove comments because anyway the quotes in there
2198 # would cause problems or look ugly.
2199 # WARNING: Use '\'' to represent an apostrophe within the trap.
2200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201 trap 'exit_status=$?
2202   # Save into config.log some information that might help in debugging.
2203   {
2204     echo
2205
2206     cat <<\_ASBOX
2207 ## ---------------- ##
2208 ## Cache variables. ##
2209 ## ---------------- ##
2210 _ASBOX
2211     echo
2212     # The following way of writing the cache mishandles newlines in values,
2213 (
2214   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215     eval ac_val=\$$ac_var
2216     case $ac_val in #(
2217     *${as_nl}*)
2218       case $ac_var in #(
2219       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2220 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2221       esac
2222       case $ac_var in #(
2223       _ | IFS | as_nl) ;; #(
2224       *) $as_unset $ac_var ;;
2225       esac ;;
2226     esac
2227   done
2228   (set) 2>&1 |
2229     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230     *${as_nl}ac_space=\ *)
2231       sed -n \
2232         "s/'\''/'\''\\\\'\'''\''/g;
2233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234       ;; #(
2235     *)
2236       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237       ;;
2238     esac |
2239     sort
2240 )
2241     echo
2242
2243     cat <<\_ASBOX
2244 ## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##
2247 _ASBOX
2248     echo
2249     for ac_var in $ac_subst_vars
2250     do
2251       eval ac_val=\$$ac_var
2252       case $ac_val in
2253       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254       esac
2255       echo "$ac_var='\''$ac_val'\''"
2256     done | sort
2257     echo
2258
2259     if test -n "$ac_subst_files"; then
2260       cat <<\_ASBOX
2261 ## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##
2264 _ASBOX
2265       echo
2266       for ac_var in $ac_subst_files
2267       do
2268         eval ac_val=\$$ac_var
2269         case $ac_val in
2270         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271         esac
2272         echo "$ac_var='\''$ac_val'\''"
2273       done | sort
2274       echo
2275     fi
2276
2277     if test -s confdefs.h; then
2278       cat <<\_ASBOX
2279 ## ----------- ##
2280 ## confdefs.h. ##
2281 ## ----------- ##
2282 _ASBOX
2283       echo
2284       cat confdefs.h
2285       echo
2286     fi
2287     test "$ac_signal" != 0 &&
2288       echo "$as_me: caught signal $ac_signal"
2289     echo "$as_me: exit $exit_status"
2290   } >&5
2291   rm -f core *.core core.conftest.* &&
2292     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293     exit $exit_status
2294 ' 0
2295 for ac_signal in 1 2 13 15; do
2296   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2297 done
2298 ac_signal=0
2299
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2302
2303 # Predefined preprocessor variables.
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_NAME "$PACKAGE_NAME"
2307 _ACEOF
2308
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312 _ACEOF
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 _ACEOF
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_STRING "$PACKAGE_STRING"
2322 _ACEOF
2323
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2328
2329
2330 # Let the site file select an alternate cache file if it wants to.
2331 # Prefer explicitly selected file to automatically selected ones.
2332 if test -n "$CONFIG_SITE"; then
2333   set x "$CONFIG_SITE"
2334 elif test "x$prefix" != xNONE; then
2335   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2336 else
2337   set x "$ac_default_prefix/share/config.site" \
2338         "$ac_default_prefix/etc/config.site"
2339 fi
2340 shift
2341 for ac_site_file
2342 do
2343   if test -r "$ac_site_file"; then
2344     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2345 echo "$as_me: loading site script $ac_site_file" >&6;}
2346     sed 's/^/| /' "$ac_site_file" >&5
2347     . "$ac_site_file"
2348   fi
2349 done
2350
2351 if test -r "$cache_file"; then
2352   # Some versions of bash will fail to source /dev/null (special
2353   # files actually), so we avoid doing that.
2354   if test -f "$cache_file"; then
2355     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2356 echo "$as_me: loading cache $cache_file" >&6;}
2357     case $cache_file in
2358       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2359       *)                      . "./$cache_file";;
2360     esac
2361   fi
2362 else
2363   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2364 echo "$as_me: creating cache $cache_file" >&6;}
2365   >$cache_file
2366 fi
2367
2368 # Check that the precious variables saved in the cache have kept the same
2369 # value.
2370 ac_cache_corrupted=false
2371 for ac_var in $ac_precious_vars; do
2372   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2373   eval ac_new_set=\$ac_env_${ac_var}_set
2374   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2375   eval ac_new_val=\$ac_env_${ac_var}_value
2376   case $ac_old_set,$ac_new_set in
2377     set,)
2378       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2379 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2380       ac_cache_corrupted=: ;;
2381     ,set)
2382       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2383 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2384       ac_cache_corrupted=: ;;
2385     ,);;
2386     *)
2387       if test "x$ac_old_val" != "x$ac_new_val"; then
2388         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2389 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2391 echo "$as_me:   former value:  $ac_old_val" >&2;}
2392         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2393 echo "$as_me:   current value: $ac_new_val" >&2;}
2394         ac_cache_corrupted=:
2395       fi;;
2396   esac
2397   # Pass precious variables to config.status.
2398   if test "$ac_new_set" = set; then
2399     case $ac_new_val in
2400     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2401     *) ac_arg=$ac_var=$ac_new_val ;;
2402     esac
2403     case " $ac_configure_args " in
2404       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2405       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2406     esac
2407   fi
2408 done
2409 if $ac_cache_corrupted; then
2410   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2411 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2413 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2414    { (exit 1); exit 1; }; }
2415 fi
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
2447
2448
2449
2450
2451 ac_aux_dir=
2452 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2453   if test -f "$ac_dir/install-sh"; then
2454     ac_aux_dir=$ac_dir
2455     ac_install_sh="$ac_aux_dir/install-sh -c"
2456     break
2457   elif test -f "$ac_dir/install.sh"; then
2458     ac_aux_dir=$ac_dir
2459     ac_install_sh="$ac_aux_dir/install.sh -c"
2460     break
2461   elif test -f "$ac_dir/shtool"; then
2462     ac_aux_dir=$ac_dir
2463     ac_install_sh="$ac_aux_dir/shtool install -c"
2464     break
2465   fi
2466 done
2467 if test -z "$ac_aux_dir"; then
2468   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2469 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2470    { (exit 1); exit 1; }; }
2471 fi
2472
2473 # These three variables are undocumented and unsupported,
2474 # and are intended to be withdrawn in a future Autoconf release.
2475 # They can cause serious problems if a builder's source tree is in a directory
2476 # whose full name contains unusual characters.
2477 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2478 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2479 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2480
2481
2482 # Make sure we can run config.sub.
2483 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2484   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2485 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2486    { (exit 1); exit 1; }; }
2487
2488 { echo "$as_me:$LINENO: checking build system type" >&5
2489 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2490 if test "${ac_cv_build+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   ac_build_alias=$build_alias
2494 test "x$ac_build_alias" = x &&
2495   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2496 test "x$ac_build_alias" = x &&
2497   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2498 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2499    { (exit 1); exit 1; }; }
2500 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2501   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2502 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2503    { (exit 1); exit 1; }; }
2504
2505 fi
2506 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2507 echo "${ECHO_T}$ac_cv_build" >&6; }
2508 case $ac_cv_build in
2509 *-*-*) ;;
2510 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2511 echo "$as_me: error: invalid value of canonical build" >&2;}
2512    { (exit 1); exit 1; }; };;
2513 esac
2514 build=$ac_cv_build
2515 ac_save_IFS=$IFS; IFS='-'
2516 set x $ac_cv_build
2517 shift
2518 build_cpu=$1
2519 build_vendor=$2
2520 shift; shift
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2523 build_os=$*
2524 IFS=$ac_save_IFS
2525 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2526
2527
2528 { echo "$as_me:$LINENO: checking host system type" >&5
2529 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2530 if test "${ac_cv_host+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test "x$host_alias" = x; then
2534   ac_cv_host=$ac_cv_build
2535 else
2536   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2537     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2538 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2539    { (exit 1); exit 1; }; }
2540 fi
2541
2542 fi
2543 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2544 echo "${ECHO_T}$ac_cv_host" >&6; }
2545 case $ac_cv_host in
2546 *-*-*) ;;
2547 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2548 echo "$as_me: error: invalid value of canonical host" >&2;}
2549    { (exit 1); exit 1; }; };;
2550 esac
2551 host=$ac_cv_host
2552 ac_save_IFS=$IFS; IFS='-'
2553 set x $ac_cv_host
2554 shift
2555 host_cpu=$1
2556 host_vendor=$2
2557 shift; shift
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2560 host_os=$*
2561 IFS=$ac_save_IFS
2562 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2563
2564
2565
2566 if test "$cross_compiling" != "no"; then
2567     HOST_PREFIX="${host_alias}-"
2568     HOST_SUFFIX="-$host_alias"
2569 else
2570     HOST_PREFIX=
2571     HOST_SUFFIX=
2572 fi
2573
2574
2575 wx_major_version_number=2
2576 wx_minor_version_number=9
2577 wx_release_number=1
2578 wx_subrelease_number=0
2579
2580 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2581 WX_VERSION=$WX_RELEASE.$wx_release_number
2582 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2583
2584 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2585
2586
2587 wx_top_builddir="`pwd`"
2588
2589
2590
2591
2592 USE_UNIX=1
2593 USE_OS2=0
2594 USE_WIN32=0
2595 USE_DOS=0
2596 USE_BEOS=0
2597 USE_MAC=0
2598
2599 USE_AIX=
2600 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2601 USE_GNU=                            USE_HPUX=
2602 USE_LINUX=
2603 USE_NETBSD=
2604 USE_OPENBSD=
2605 USE_OSF=                            USE_SGI=
2606 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2607 USE_ULTRIX=
2608 USE_UNIXWARE=
2609
2610 USE_ALPHA=
2611
2612 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2613
2614 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2615
2616 DEFAULT_wxUSE_OLD_COCOA=0
2617 DEFAULT_wxUSE_GTK=0
2618 DEFAULT_wxUSE_OSX_CARBON=0
2619 DEFAULT_wxUSE_OSX_COCOA=0
2620 DEFAULT_wxUSE_OSX_IPHONE=0
2621 DEFAULT_wxUSE_MGL=0
2622 DEFAULT_wxUSE_MICROWIN=0
2623 DEFAULT_wxUSE_MOTIF=0
2624 DEFAULT_wxUSE_MSW=0
2625 DEFAULT_wxUSE_PM=0
2626 DEFAULT_wxUSE_X11=0
2627 DEFAULT_wxUSE_DFB=0
2628
2629 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2630 DEFAULT_DEFAULT_wxUSE_GTK=0
2631 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2632 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2633 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2634 DEFAULT_DEFAULT_wxUSE_MGL=0
2635 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2636 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2637 DEFAULT_DEFAULT_wxUSE_MSW=0
2638 DEFAULT_DEFAULT_wxUSE_PM=0
2639 DEFAULT_DEFAULT_wxUSE_X11=0
2640 DEFAULT_DEFAULT_wxUSE_DFB=0
2641
2642 PROGRAM_EXT=
2643 SAMPLES_RPATH_FLAG=
2644 DYLIB_RPATH_INSTALL=
2645 DYLIB_RPATH_POSTLINK=
2646
2647 DEFAULT_STD_FLAG=yes
2648
2649 case "${host}" in
2650   *-hp-hpux* )
2651     USE_HPUX=1
2652     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2653     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2654     cat >>confdefs.h <<\_ACEOF
2655 #define __HPUX__ 1
2656 _ACEOF
2657
2658
2659             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2660   ;;
2661   *-*-linux* )
2662     USE_LINUX=1
2663     cat >>confdefs.h <<\_ACEOF
2664 #define __LINUX__ 1
2665 _ACEOF
2666
2667     TMP=`uname -m`
2668     if test "x$TMP" = "xalpha"; then
2669       USE_ALPHA=1
2670       cat >>confdefs.h <<\_ACEOF
2671 #define __ALPHA__ 1
2672 _ACEOF
2673
2674     fi
2675     DEFAULT_DEFAULT_wxUSE_GTK=1
2676   ;;
2677   *-*-gnu* | *-*-k*bsd*-gnu )
2678     USE_GNU=1
2679     TMP=`uname -m`
2680     if test "x$TMP" = "xalpha"; then
2681       USE_ALPHA=1
2682       cat >>confdefs.h <<\_ACEOF
2683 #define __ALPHA__ 1
2684 _ACEOF
2685
2686     fi
2687     DEFAULT_DEFAULT_wxUSE_GTK=1
2688   ;;
2689   *-*-irix5* | *-*-irix6* )
2690     USE_SGI=1
2691     USE_SVR4=1
2692     cat >>confdefs.h <<\_ACEOF
2693 #define __SGI__ 1
2694 _ACEOF
2695
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SVR4__ 1
2698 _ACEOF
2699
2700     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2701   ;;
2702   *-*-qnx*)
2703     USE_QNX=1
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __QNX__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_X11=1
2709   ;;
2710   *-*-solaris2* )
2711     USE_SUN=1
2712     USE_SOLARIS=1
2713     USE_SVR4=1
2714     cat >>confdefs.h <<\_ACEOF
2715 #define __SUN__ 1
2716 _ACEOF
2717
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __SOLARIS__ 1
2720 _ACEOF
2721
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __SVR4__ 1
2724 _ACEOF
2725
2726     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2727     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2728   ;;
2729   *-*-sunos4* )
2730     USE_SUN=1
2731     USE_SUNOS=1
2732     USE_BSD=1
2733     cat >>confdefs.h <<\_ACEOF
2734 #define __SUN__ 1
2735 _ACEOF
2736
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __SUNOS__ 1
2739 _ACEOF
2740
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __BSD__ 1
2743 _ACEOF
2744
2745     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2746   ;;
2747   *-*-freebsd*)
2748     USE_BSD=1
2749     USE_FREEBSD=1
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __FREEBSD__ 1
2752 _ACEOF
2753
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __BSD__ 1
2756 _ACEOF
2757
2758     DEFAULT_DEFAULT_wxUSE_GTK=1
2759   ;;
2760   *-*-openbsd*|*-*-mirbsd*)
2761     USE_BSD=1
2762     USE_OPENBSD=1
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __OPENBSD__ 1
2765 _ACEOF
2766
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __BSD__ 1
2769 _ACEOF
2770
2771     DEFAULT_DEFAULT_wxUSE_GTK=1
2772   ;;
2773   *-*-netbsd*)
2774     USE_BSD=1
2775     USE_NETBSD=1
2776     cat >>confdefs.h <<\_ACEOF
2777 #define __NETBSD__ 1
2778 _ACEOF
2779
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __BSD__ 1
2782 _ACEOF
2783
2784     DEFAULT_DEFAULT_wxUSE_GTK=1
2785     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2786
2787             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2788   ;;
2789   *-*-osf* )
2790     USE_ALPHA=1
2791     USE_OSF=1
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __ALPHA__ 1
2794 _ACEOF
2795
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __OSF__ 1
2798 _ACEOF
2799
2800     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2801     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2802   ;;
2803   *-*-dgux5* )
2804     USE_ALPHA=1
2805     USE_SVR4=1
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __ALPHA__ 1
2808 _ACEOF
2809
2810     cat >>confdefs.h <<\_ACEOF
2811 #define __SVR4__ 1
2812 _ACEOF
2813
2814     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2815   ;;
2816   *-*-sysv5* )
2817     USE_SYSV=1
2818     USE_SVR4=1
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __SYSV__ 1
2821 _ACEOF
2822
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __SVR4__ 1
2825 _ACEOF
2826
2827     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2828   ;;
2829   *-*-aix* )
2830     USE_AIX=1
2831     USE_SYSV=1
2832     USE_SVR4=1
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __AIX__ 1
2835 _ACEOF
2836
2837     cat >>confdefs.h <<\_ACEOF
2838 #define __SYSV__ 1
2839 _ACEOF
2840
2841     cat >>confdefs.h <<\_ACEOF
2842 #define __SVR4__ 1
2843 _ACEOF
2844
2845     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2846   ;;
2847
2848   *-*-*UnixWare*)
2849     USE_SYSV=1
2850     USE_SVR4=1
2851     USE_UNIXWARE=1
2852     cat >>confdefs.h <<\_ACEOF
2853 #define __UNIXWARE__ 1
2854 _ACEOF
2855
2856   ;;
2857
2858   *-*-cygwin* | *-*-mingw32* )
2859                 PROGRAM_EXT=".exe"
2860     DEFAULT_DEFAULT_wxUSE_MSW=1
2861   ;;
2862
2863   *-pc-msdosdjgpp )
2864     USE_UNIX=0
2865     USE_DOS=1
2866     cat >>confdefs.h <<\_ACEOF
2867 #define __DOS__ 1
2868 _ACEOF
2869
2870     PROGRAM_EXT=".exe"
2871     DEFAULT_DEFAULT_wxUSE_MGL=1
2872   ;;
2873
2874   *-pc-os2_emx | *-pc-os2-emx )
2875     cat >>confdefs.h <<\_ACEOF
2876 #define __EMX__ 1
2877 _ACEOF
2878
2879     USE_OS2=1
2880     cat >>confdefs.h <<\_ACEOF
2881 #define __OS2__ 1
2882 _ACEOF
2883
2884     PROGRAM_EXT=".exe"
2885     DEFAULT_DEFAULT_wxUSE_PM=1
2886         CXX=gcc
2887     LDFLAGS="$LDFLAGS -Zcrtdll"
2888                         ac_executable_extensions=".exe"
2889     export ac_executable_extensions
2890             ac_save_IFS="$IFS"
2891     IFS='\\'
2892     ac_TEMP_PATH=
2893     for ac_dir in $PATH; do
2894       IFS=$ac_save_IFS
2895       if test -z "$ac_TEMP_PATH"; then
2896         ac_TEMP_PATH="$ac_dir"
2897       else
2898         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2899       fi
2900     done
2901     export PATH="$ac_TEMP_PATH"
2902     unset ac_TEMP_PATH
2903     DEFAULT_STD_FLAG=no
2904   ;;
2905
2906   arm-apple-darwin*)
2907         USE_BSD=1
2908     USE_DARWIN=1
2909     cat >>confdefs.h <<\_ACEOF
2910 #define __BSD__ 1
2911 _ACEOF
2912
2913     cat >>confdefs.h <<\_ACEOF
2914 #define __DARWIN__ 1
2915 _ACEOF
2916
2917     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2918   ;;
2919
2920   *-*-darwin* )
2921         USE_BSD=1
2922     USE_DARWIN=1
2923     cat >>confdefs.h <<\_ACEOF
2924 #define __BSD__ 1
2925 _ACEOF
2926
2927     cat >>confdefs.h <<\_ACEOF
2928 #define __DARWIN__ 1
2929 _ACEOF
2930
2931     cat >>confdefs.h <<\_ACEOF
2932 #define TARGET_CARBON 1
2933 _ACEOF
2934
2935     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2936   ;;
2937
2938   *-*-beos* )
2939         USE_BEOS=1
2940     cat >>confdefs.h <<\_ACEOF
2941 #define __BEOS__ 1
2942 _ACEOF
2943
2944   ;;
2945
2946   *)
2947     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2948 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2949     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2950 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2951
2952     DEFAULT_DEFAULT_wxUSE_X11=1
2953     DEFAULT_wxUSE_SHARED=no
2954 esac
2955
2956
2957
2958 DEFAULT_wxUSE_ALL_FEATURES=yes
2959
2960 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2961 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2962
2963 DEFAULT_wxUSE_DMALLOC=no
2964 DEFAULT_wxUSE_LIBGNOMEVFS=no
2965 DEFAULT_wxUSE_LIBHILDON=no
2966 DEFAULT_wxUSE_LIBHILDON2=no
2967 DEFAULT_wxUSE_LIBMSPACK=no
2968 DEFAULT_wxUSE_LIBSDL=no
2969
2970 DEFAULT_wxUSE_ACCESSIBILITY=no
2971 DEFAULT_wxUSE_IPV6=no
2972 DEFAULT_wxUSE_GSTREAMER8=no
2973 DEFAULT_wxUSE_UIACTIONSIMULATOR=no
2974
2975 DEFAULT_wxUSE_UNICODE_UTF8=auto
2976 DEFAULT_wxUSE_OPENGL=auto
2977 DEFAULT_wxUSE_MEDIACTRL=auto
2978 DEFAULT_wxUSE_COMPILER_TLS=auto
2979
2980 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2981
2982 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2983
2984 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2985
2986 DEFAULT_wxUSE_GTK2=yes
2987
2988 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2989
2990
2991
2992
2993
2994           enablestring=disable
2995           defaultval=
2996           if test -z "$defaultval"; then
2997               if test x"$enablestring" = xdisable; then
2998                   defaultval=yes
2999               else
3000                   defaultval=no
3001               fi
3002           fi
3003
3004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3005 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3006           # Check whether --enable-gui was given.
3007 if test "${enable_gui+set}" = set; then
3008   enableval=$enable_gui;
3009                           if test "$enableval" = yes; then
3010                             wx_cv_use_gui='wxUSE_GUI=yes'
3011                           else
3012                             wx_cv_use_gui='wxUSE_GUI=no'
3013                           fi
3014
3015 else
3016
3017                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3018
3019 fi
3020
3021
3022           eval "$wx_cv_use_gui"
3023
3024           if test x"$enablestring" = xdisable; then
3025             if test $wxUSE_GUI = no; then
3026               result=yes
3027             else
3028               result=no
3029             fi
3030           else
3031             result=$wxUSE_GUI
3032           fi
3033
3034           { echo "$as_me:$LINENO: result: $result" >&5
3035 echo "${ECHO_T}$result" >&6; }
3036
3037
3038           enablestring=
3039           defaultval=
3040           if test -z "$defaultval"; then
3041               if test x"$enablestring" = xdisable; then
3042                   defaultval=yes
3043               else
3044                   defaultval=no
3045               fi
3046           fi
3047
3048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3049 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3050           # Check whether --enable-monolithic was given.
3051 if test "${enable_monolithic+set}" = set; then
3052   enableval=$enable_monolithic;
3053                           if test "$enableval" = yes; then
3054                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3055                           else
3056                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3057                           fi
3058
3059 else
3060
3061                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3062
3063 fi
3064
3065
3066           eval "$wx_cv_use_monolithic"
3067
3068           if test x"$enablestring" = xdisable; then
3069             if test $wxUSE_MONOLITHIC = no; then
3070               result=yes
3071             else
3072               result=no
3073             fi
3074           else
3075             result=$wxUSE_MONOLITHIC
3076           fi
3077
3078           { echo "$as_me:$LINENO: result: $result" >&5
3079 echo "${ECHO_T}$result" >&6; }
3080
3081
3082           enablestring=
3083           defaultval=
3084           if test -z "$defaultval"; then
3085               if test x"$enablestring" = xdisable; then
3086                   defaultval=yes
3087               else
3088                   defaultval=no
3089               fi
3090           fi
3091
3092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3093 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3094           # Check whether --enable-plugins was given.
3095 if test "${enable_plugins+set}" = set; then
3096   enableval=$enable_plugins;
3097                           if test "$enableval" = yes; then
3098                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3099                           else
3100                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3101                           fi
3102
3103 else
3104
3105                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3106
3107 fi
3108
3109
3110           eval "$wx_cv_use_plugins"
3111
3112           if test x"$enablestring" = xdisable; then
3113             if test $wxUSE_PLUGINS = no; then
3114               result=yes
3115             else
3116               result=no
3117             fi
3118           else
3119             result=$wxUSE_PLUGINS
3120           fi
3121
3122           { echo "$as_me:$LINENO: result: $result" >&5
3123 echo "${ECHO_T}$result" >&6; }
3124
3125
3126           withstring=without
3127           defaultval=$wxUSE_ALL_FEATURES
3128           if test -z "$defaultval"; then
3129               if test x"$withstring" = xwithout; then
3130                   defaultval=yes
3131               else
3132                   defaultval=no
3133               fi
3134           fi
3135           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3136 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3137
3138 # Check whether --with-subdirs was given.
3139 if test "${with_subdirs+set}" = set; then
3140   withval=$with_subdirs;
3141                         if test "$withval" = yes; then
3142                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3143                         else
3144                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3145                         fi
3146
3147 else
3148
3149                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3150
3151 fi
3152
3153
3154           eval "$wx_cv_use_subdirs"
3155
3156           if test x"$withstring" = xwithout; then
3157             if test $wxWITH_SUBDIRS = yes; then
3158               result=no
3159             else
3160               result=yes
3161             fi
3162           else
3163             result=$wxWITH_SUBDIRS
3164           fi
3165
3166           { echo "$as_me:$LINENO: result: $result" >&5
3167 echo "${ECHO_T}$result" >&6; }
3168
3169
3170 # Check whether --with-flavour was given.
3171 if test "${with_flavour+set}" = set; then
3172   withval=$with_flavour; WX_FLAVOUR="$withval"
3173 fi
3174
3175
3176           enablestring=
3177           defaultval=
3178           if test -z "$defaultval"; then
3179               if test x"$enablestring" = xdisable; then
3180                   defaultval=yes
3181               else
3182                   defaultval=no
3183               fi
3184           fi
3185
3186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3187 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3188           # Check whether --enable-official_build was given.
3189 if test "${enable_official_build+set}" = set; then
3190   enableval=$enable_official_build;
3191                           if test "$enableval" = yes; then
3192                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3193                           else
3194                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3195                           fi
3196
3197 else
3198
3199                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3200
3201 fi
3202
3203
3204           eval "$wx_cv_use_official_build"
3205
3206           if test x"$enablestring" = xdisable; then
3207             if test $wxUSE_OFFICIAL_BUILD = no; then
3208               result=yes
3209             else
3210               result=no
3211             fi
3212           else
3213             result=$wxUSE_OFFICIAL_BUILD
3214           fi
3215
3216           { echo "$as_me:$LINENO: result: $result" >&5
3217 echo "${ECHO_T}$result" >&6; }
3218
3219 # Check whether --enable-vendor was given.
3220 if test "${enable_vendor+set}" = set; then
3221   enableval=$enable_vendor; VENDOR="$enableval"
3222 fi
3223
3224 if test "x$VENDOR" = "x"; then
3225     VENDOR="custom"
3226 fi
3227
3228
3229           enablestring=disable
3230           defaultval=
3231           if test -z "$defaultval"; then
3232               if test x"$enablestring" = xdisable; then
3233                   defaultval=yes
3234               else
3235                   defaultval=no
3236               fi
3237           fi
3238
3239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3240 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3241           # Check whether --enable-all-features was given.
3242 if test "${enable_all_features+set}" = set; then
3243   enableval=$enable_all_features;
3244                           if test "$enableval" = yes; then
3245                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3246                           else
3247                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3248                           fi
3249
3250 else
3251
3252                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3253
3254 fi
3255
3256
3257           eval "$wx_cv_use_all_features"
3258
3259           if test x"$enablestring" = xdisable; then
3260             if test $wxUSE_ALL_FEATURES = no; then
3261               result=yes
3262             else
3263               result=no
3264             fi
3265           else
3266             result=$wxUSE_ALL_FEATURES
3267           fi
3268
3269           { echo "$as_me:$LINENO: result: $result" >&5
3270 echo "${ECHO_T}$result" >&6; }
3271
3272
3273 if test "$wxUSE_ALL_FEATURES" = "no"; then
3274                     DEFAULT_wxUSE_MEDIACTRL=no
3275 fi
3276
3277
3278 if test "$wxUSE_GUI" = "yes"; then
3279
3280
3281           enablestring=
3282           defaultval=
3283           if test -z "$defaultval"; then
3284               if test x"$enablestring" = xdisable; then
3285                   defaultval=yes
3286               else
3287                   defaultval=no
3288               fi
3289           fi
3290
3291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3292 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3293           # Check whether --enable-universal was given.
3294 if test "${enable_universal+set}" = set; then
3295   enableval=$enable_universal;
3296                           if test "$enableval" = yes; then
3297                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3298                           else
3299                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3300                           fi
3301
3302 else
3303
3304                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3305
3306 fi
3307
3308
3309           eval "$wx_cv_use_universal"
3310
3311           if test x"$enablestring" = xdisable; then
3312             if test $wxUSE_UNIVERSAL = no; then
3313               result=yes
3314             else
3315               result=no
3316             fi
3317           else
3318             result=$wxUSE_UNIVERSAL
3319           fi
3320
3321           { echo "$as_me:$LINENO: result: $result" >&5
3322 echo "${ECHO_T}$result" >&6; }
3323
3324 if test "$wxUSE_UNIVERSAL" = "yes"; then
3325
3326 # Check whether --with-themes was given.
3327 if test "${with_themes+set}" = set; then
3328   withval=$with_themes; wxUNIV_THEMES="$withval"
3329 fi
3330
3331 fi
3332
3333
3334 # Check whether --with-gtk was given.
3335 if test "${with_gtk+set}" = set; then
3336   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3337 fi
3338
3339
3340 # Check whether --with-motif was given.
3341 if test "${with_motif+set}" = set; then
3342   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3343 fi
3344
3345
3346 # Check whether --with-osx_carbon was given.
3347 if test "${with_osx_carbon+set}" = set; then
3348   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3349 fi
3350
3351
3352 # Check whether --with-osx_cocoa was given.
3353 if test "${with_osx_cocoa+set}" = set; then
3354   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3355 fi
3356
3357
3358 # Check whether --with-osx_iphone was given.
3359 if test "${with_osx_iphone+set}" = set; then
3360   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3361 fi
3362
3363
3364 # Check whether --with-osx was given.
3365 if test "${with_osx+set}" = set; then
3366   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3367 fi
3368
3369
3370 # Check whether --with-carbon was given.
3371 if test "${with_carbon+set}" = set; then
3372   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3373 fi
3374
3375
3376 # Check whether --with-cocoa was given.
3377 if test "${with_cocoa+set}" = set; then
3378   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3379 fi
3380
3381
3382 # Check whether --with-iphone was given.
3383 if test "${with_iphone+set}" = set; then
3384   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3385 fi
3386
3387
3388 # Check whether --with-mac was given.
3389 if test "${with_mac+set}" = set; then
3390   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3391 fi
3392
3393
3394 # Check whether --with-old_cocoa was given.
3395 if test "${with_old_cocoa+set}" = set; then
3396   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3397 fi
3398
3399
3400 # Check whether --with-wine was given.
3401 if test "${with_wine+set}" = set; then
3402   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3403 fi
3404
3405
3406 # Check whether --with-msw was given.
3407 if test "${with_msw+set}" = set; then
3408   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3409 fi
3410
3411
3412 # Check whether --with-pm was given.
3413 if test "${with_pm+set}" = set; then
3414   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3415 fi
3416
3417
3418 # Check whether --with-mgl was given.
3419 if test "${with_mgl+set}" = set; then
3420   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3421 fi
3422
3423
3424 # Check whether --with-directfb was given.
3425 if test "${with_directfb+set}" = set; then
3426   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3427 fi
3428
3429
3430 # Check whether --with-microwin was given.
3431 if test "${with_microwin+set}" = set; then
3432   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3433 fi
3434
3435
3436 # Check whether --with-x11 was given.
3437 if test "${with_x11+set}" = set; then
3438   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3439 fi
3440
3441
3442           enablestring=
3443           defaultval=
3444           if test -z "$defaultval"; then
3445               if test x"$enablestring" = xdisable; then
3446                   defaultval=yes
3447               else
3448                   defaultval=no
3449               fi
3450           fi
3451
3452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3453 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3454           # Check whether --enable-nanox was given.
3455 if test "${enable_nanox+set}" = set; then
3456   enableval=$enable_nanox;
3457                           if test "$enableval" = yes; then
3458                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3459                           else
3460                             wx_cv_use_nanox='wxUSE_NANOX=no'
3461                           fi
3462
3463 else
3464
3465                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3466
3467 fi
3468
3469
3470           eval "$wx_cv_use_nanox"
3471
3472           if test x"$enablestring" = xdisable; then
3473             if test $wxUSE_NANOX = no; then
3474               result=yes
3475             else
3476               result=no
3477             fi
3478           else
3479             result=$wxUSE_NANOX
3480           fi
3481
3482           { echo "$as_me:$LINENO: result: $result" >&5
3483 echo "${ECHO_T}$result" >&6; }
3484
3485
3486 # Check whether --enable-gtk2 was given.
3487 if test "${enable_gtk2+set}" = set; then
3488   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3489 fi
3490
3491
3492           enablestring=
3493           defaultval=
3494           if test -z "$defaultval"; then
3495               if test x"$enablestring" = xdisable; then
3496                   defaultval=yes
3497               else
3498                   defaultval=no
3499               fi
3500           fi
3501
3502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3503 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3504           # Check whether --enable-gpe was given.
3505 if test "${enable_gpe+set}" = set; then
3506   enableval=$enable_gpe;
3507                           if test "$enableval" = yes; then
3508                             wx_cv_use_gpe='wxUSE_GPE=yes'
3509                           else
3510                             wx_cv_use_gpe='wxUSE_GPE=no'
3511                           fi
3512
3513 else
3514
3515                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3516
3517 fi
3518
3519
3520           eval "$wx_cv_use_gpe"
3521
3522           if test x"$enablestring" = xdisable; then
3523             if test $wxUSE_GPE = no; then
3524               result=yes
3525             else
3526               result=no
3527             fi
3528           else
3529             result=$wxUSE_GPE
3530           fi
3531
3532           { echo "$as_me:$LINENO: result: $result" >&5
3533 echo "${ECHO_T}$result" >&6; }
3534
3535
3536
3537 { echo "$as_me:$LINENO: checking for toolkit" >&5
3538 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3539
3540
3541
3542 # In Wine, we need to default to MSW, not GTK or MOTIF
3543 if test "$wxUSE_WINE" = "yes"; then
3544     DEFAULT_DEFAULT_wxUSE_GTK=0
3545     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3546     DEFAULT_DEFAULT_wxUSE_MSW=1
3547     wxUSE_SHARED=no
3548     CC=${CC:-winegcc}
3549     CXX=${CXX:-wineg++}
3550 fi
3551
3552
3553 if test "$wxUSE_GUI" = "yes"; then
3554
3555     if test "$USE_BEOS" = 1; then
3556         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3557 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3558    { (exit 1); exit 1; }; }
3559     fi
3560
3561     if test "$TOOLKIT_GIVEN" = 1; then
3562             for toolkit in $ALL_TOOLKITS; do
3563         var=wxUSE_$toolkit
3564         eval "value=\$${var}"
3565         if test "x$value" = "xno"; then
3566           eval "$var=0"
3567         elif test "x$value" != "x"; then
3568           eval "$var=1"
3569         fi
3570
3571         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3572           eval "wx${toolkit}_VERSION=$value"
3573         fi
3574       done
3575     else
3576             for toolkit in $ALL_TOOLKITS; do
3577         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3578         eval "wxUSE_$toolkit=\$${var}"
3579       done
3580     fi
3581
3582             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3583                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3584                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3585
3586         case "${host}" in
3587       *-pc-os2_emx | *-pc-os2-emx )
3588         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3589     esac
3590
3591     case "$NUM_TOOLKITS" in
3592       1)
3593       ;;
3594       0)
3595         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3596 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3597    { (exit 1); exit 1; }; }
3598       ;;
3599       *)
3600         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3601 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3602    { (exit 1); exit 1; }; }
3603     esac
3604
3605     # to be removed when --disable-gtk2 isn't needed
3606     if test "x$wxUSE_GTK2" = "xyes"; then
3607         wxGTK_VERSION=2
3608     elif test "x$wxUSE_GTK2" = "xno"; then
3609         wxGTK_VERSION=1
3610     fi
3611
3612     for toolkit in $ALL_TOOLKITS; do
3613         var=wxUSE_$toolkit
3614         eval "value=\$${var}"
3615         if test "$value" = 1; then
3616           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3617           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3618 echo "${ECHO_T}$toolkit_echo" >&6; }
3619         fi
3620     done
3621 else
3622     if test "x$host_alias" != "x"; then
3623         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3624 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3625     else
3626         { echo "$as_me:$LINENO: result: base only" >&5
3627 echo "${ECHO_T}base only" >&6; }
3628     fi
3629 fi
3630
3631 wxUSE_MAC=0
3632 if test "$wxUSE_OSX_CARBON" = 1 \
3633        -o "$wxUSE_OSX_COCOA" = 1 \
3634        -o "$wxUSE_OSX_IPHONE" = 1; then
3635     wxUSE_MAC=1
3636 fi
3637
3638
3639
3640           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3641 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3642
3643 # Check whether --with-libpng was given.
3644 if test "${with_libpng+set}" = set; then
3645   withval=$with_libpng;
3646                         if test "$withval" = yes; then
3647                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3648                         elif test "$withval" = no; then
3649                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3650                         elif test "$withval" = sys; then
3651                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3652                         elif test "$withval" = builtin; then
3653                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3654                         else
3655                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3656 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3657    { (exit 1); exit 1; }; }
3658                         fi
3659
3660 else
3661
3662                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3663
3664 fi
3665
3666
3667           eval "$wx_cv_use_libpng"
3668
3669           if test "$wxUSE_LIBPNG" = yes; then
3670             { echo "$as_me:$LINENO: result: yes" >&5
3671 echo "${ECHO_T}yes" >&6; }
3672           elif test "$wxUSE_LIBPNG" = no; then
3673             { echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6; }
3675           elif test "$wxUSE_LIBPNG" = sys; then
3676             { echo "$as_me:$LINENO: result: system version" >&5
3677 echo "${ECHO_T}system version" >&6; }
3678           elif test "$wxUSE_LIBPNG" = builtin; then
3679             { echo "$as_me:$LINENO: result: builtin version" >&5
3680 echo "${ECHO_T}builtin version" >&6; }
3681           else
3682             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3683 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3684    { (exit 1); exit 1; }; }
3685           fi
3686
3687
3688           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3689 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3690
3691 # Check whether --with-libjpeg was given.
3692 if test "${with_libjpeg+set}" = set; then
3693   withval=$with_libjpeg;
3694                         if test "$withval" = yes; then
3695                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3696                         elif test "$withval" = no; then
3697                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3698                         elif test "$withval" = sys; then
3699                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3700                         elif test "$withval" = builtin; then
3701                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3702                         else
3703                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3704 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3705    { (exit 1); exit 1; }; }
3706                         fi
3707
3708 else
3709
3710                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3711
3712 fi
3713
3714
3715           eval "$wx_cv_use_libjpeg"
3716
3717           if test "$wxUSE_LIBJPEG" = yes; then
3718             { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3720           elif test "$wxUSE_LIBJPEG" = no; then
3721             { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3723           elif test "$wxUSE_LIBJPEG" = sys; then
3724             { echo "$as_me:$LINENO: result: system version" >&5
3725 echo "${ECHO_T}system version" >&6; }
3726           elif test "$wxUSE_LIBJPEG" = builtin; then
3727             { echo "$as_me:$LINENO: result: builtin version" >&5
3728 echo "${ECHO_T}builtin version" >&6; }
3729           else
3730             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3731 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3732    { (exit 1); exit 1; }; }
3733           fi
3734
3735
3736           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3737 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3738
3739 # Check whether --with-libtiff was given.
3740 if test "${with_libtiff+set}" = set; then
3741   withval=$with_libtiff;
3742                         if test "$withval" = yes; then
3743                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3744                         elif test "$withval" = no; then
3745                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3746                         elif test "$withval" = sys; then
3747                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3748                         elif test "$withval" = builtin; then
3749                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3750                         else
3751                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3752 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3753    { (exit 1); exit 1; }; }
3754                         fi
3755
3756 else
3757
3758                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3759
3760 fi
3761
3762
3763           eval "$wx_cv_use_libtiff"
3764
3765           if test "$wxUSE_LIBTIFF" = yes; then
3766             { echo "$as_me:$LINENO: result: yes" >&5
3767 echo "${ECHO_T}yes" >&6; }
3768           elif test "$wxUSE_LIBTIFF" = no; then
3769             { echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6; }
3771           elif test "$wxUSE_LIBTIFF" = sys; then
3772             { echo "$as_me:$LINENO: result: system version" >&5
3773 echo "${ECHO_T}system version" >&6; }
3774           elif test "$wxUSE_LIBTIFF" = builtin; then
3775             { echo "$as_me:$LINENO: result: builtin version" >&5
3776 echo "${ECHO_T}builtin version" >&6; }
3777           else
3778             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3779 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3780    { (exit 1); exit 1; }; }
3781           fi
3782
3783
3784           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3785 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3786
3787 # Check whether --with-libxpm was given.
3788 if test "${with_libxpm+set}" = set; then
3789   withval=$with_libxpm;
3790                         if test "$withval" = yes; then
3791                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3792                         elif test "$withval" = no; then
3793                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3794                         elif test "$withval" = sys; then
3795                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3796                         elif test "$withval" = builtin; then
3797                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3798                         else
3799                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3800 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3801    { (exit 1); exit 1; }; }
3802                         fi
3803
3804 else
3805
3806                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3807
3808 fi
3809
3810
3811           eval "$wx_cv_use_libxpm"
3812
3813           if test "$wxUSE_LIBXPM" = yes; then
3814             { echo "$as_me:$LINENO: result: yes" >&5
3815 echo "${ECHO_T}yes" >&6; }
3816           elif test "$wxUSE_LIBXPM" = no; then
3817             { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3819           elif test "$wxUSE_LIBXPM" = sys; then
3820             { echo "$as_me:$LINENO: result: system version" >&5
3821 echo "${ECHO_T}system version" >&6; }
3822           elif test "$wxUSE_LIBXPM" = builtin; then
3823             { echo "$as_me:$LINENO: result: builtin version" >&5
3824 echo "${ECHO_T}builtin version" >&6; }
3825           else
3826             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3827 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3828    { (exit 1); exit 1; }; }
3829           fi
3830
3831
3832           withstring=
3833           defaultval=$wxUSE_ALL_FEATURES
3834           if test -z "$defaultval"; then
3835               if test x"$withstring" = xwithout; then
3836                   defaultval=yes
3837               else
3838                   defaultval=no
3839               fi
3840           fi
3841           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3842 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3843
3844 # Check whether --with-libiconv was given.
3845 if test "${with_libiconv+set}" = set; then
3846   withval=$with_libiconv;
3847                         if test "$withval" = yes; then
3848                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3849                         else
3850                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3851                         fi
3852
3853 else
3854
3855                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3856
3857 fi
3858
3859
3860           eval "$wx_cv_use_libiconv"
3861
3862           if test x"$withstring" = xwithout; then
3863             if test $wxUSE_LIBICONV = yes; then
3864               result=no
3865             else
3866               result=yes
3867             fi
3868           else
3869             result=$wxUSE_LIBICONV
3870           fi
3871
3872           { echo "$as_me:$LINENO: result: $result" >&5
3873 echo "${ECHO_T}$result" >&6; }
3874
3875
3876           withstring=
3877           defaultval=$wxUSE_ALL_FEATURES
3878           if test -z "$defaultval"; then
3879               if test x"$withstring" = xwithout; then
3880                   defaultval=yes
3881               else
3882                   defaultval=no
3883               fi
3884           fi
3885           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3886 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3887
3888 # Check whether --with-libmspack was given.
3889 if test "${with_libmspack+set}" = set; then
3890   withval=$with_libmspack;
3891                         if test "$withval" = yes; then
3892                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3893                         else
3894                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3895                         fi
3896
3897 else
3898
3899                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3900
3901 fi
3902
3903
3904           eval "$wx_cv_use_libmspack"
3905
3906           if test x"$withstring" = xwithout; then
3907             if test $wxUSE_LIBMSPACK = yes; then
3908               result=no
3909             else
3910               result=yes
3911             fi
3912           else
3913             result=$wxUSE_LIBMSPACK
3914           fi
3915
3916           { echo "$as_me:$LINENO: result: $result" >&5
3917 echo "${ECHO_T}$result" >&6; }
3918
3919
3920           withstring=without
3921           defaultval=$wxUSE_ALL_FEATURES
3922           if test -z "$defaultval"; then
3923               if test x"$withstring" = xwithout; then
3924                   defaultval=yes
3925               else
3926                   defaultval=no
3927               fi
3928           fi
3929           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3930 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3931
3932 # Check whether --with-gtkprint was given.
3933 if test "${with_gtkprint+set}" = set; then
3934   withval=$with_gtkprint;
3935                         if test "$withval" = yes; then
3936                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3937                         else
3938                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3939                         fi
3940
3941 else
3942
3943                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3944
3945 fi
3946
3947
3948           eval "$wx_cv_use_gtkprint"
3949
3950           if test x"$withstring" = xwithout; then
3951             if test $wxUSE_GTKPRINT = yes; then
3952               result=no
3953             else
3954               result=yes
3955             fi
3956           else
3957             result=$wxUSE_GTKPRINT
3958           fi
3959
3960           { echo "$as_me:$LINENO: result: $result" >&5
3961 echo "${ECHO_T}$result" >&6; }
3962
3963
3964           withstring=without
3965           defaultval=$wxUSE_ALL_FEATURES
3966           if test -z "$defaultval"; then
3967               if test x"$withstring" = xwithout; then
3968                   defaultval=yes
3969               else
3970                   defaultval=no
3971               fi
3972           fi
3973           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3974 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3975
3976 # Check whether --with-gnomeprint was given.
3977 if test "${with_gnomeprint+set}" = set; then
3978   withval=$with_gnomeprint;
3979                         if test "$withval" = yes; then
3980                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3981                         else
3982                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3983                         fi
3984
3985 else
3986
3987                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3988
3989 fi
3990
3991
3992           eval "$wx_cv_use_gnomeprint"
3993
3994           if test x"$withstring" = xwithout; then
3995             if test $wxUSE_LIBGNOMEPRINT = yes; then
3996               result=no
3997             else
3998               result=yes
3999             fi
4000           else
4001             result=$wxUSE_LIBGNOMEPRINT
4002           fi
4003
4004           { echo "$as_me:$LINENO: result: $result" >&5
4005 echo "${ECHO_T}$result" >&6; }
4006
4007
4008           withstring=
4009           defaultval=$wxUSE_ALL_FEATURES
4010           if test -z "$defaultval"; then
4011               if test x"$withstring" = xwithout; then
4012                   defaultval=yes
4013               else
4014                   defaultval=no
4015               fi
4016           fi
4017           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4018 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4019
4020 # Check whether --with-gnomevfs was given.
4021 if test "${with_gnomevfs+set}" = set; then
4022   withval=$with_gnomevfs;
4023                         if test "$withval" = yes; then
4024                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4025                         else
4026                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4027                         fi
4028
4029 else
4030
4031                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4032
4033 fi
4034
4035
4036           eval "$wx_cv_use_gnomevfs"
4037
4038           if test x"$withstring" = xwithout; then
4039             if test $wxUSE_LIBGNOMEVFS = yes; then
4040               result=no
4041             else
4042               result=yes
4043             fi
4044           else
4045             result=$wxUSE_LIBGNOMEVFS
4046           fi
4047
4048           { echo "$as_me:$LINENO: result: $result" >&5
4049 echo "${ECHO_T}$result" >&6; }
4050
4051
4052           withstring=
4053           defaultval=$wxUSE_ALL_FEATURES
4054           if test -z "$defaultval"; then
4055               if test x"$withstring" = xwithout; then
4056                   defaultval=yes
4057               else
4058                   defaultval=no
4059               fi
4060           fi
4061           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4062 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4063
4064 # Check whether --with-hildon was given.
4065 if test "${with_hildon+set}" = set; then
4066   withval=$with_hildon;
4067                         if test "$withval" = yes; then
4068                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4069                         else
4070                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4071                         fi
4072
4073 else
4074
4075                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4076
4077 fi
4078
4079
4080           eval "$wx_cv_use_hildon"
4081
4082           if test x"$withstring" = xwithout; then
4083             if test $wxUSE_LIBHILDON = yes; then
4084               result=no
4085             else
4086               result=yes
4087             fi
4088           else
4089             result=$wxUSE_LIBHILDON
4090           fi
4091
4092           { echo "$as_me:$LINENO: result: $result" >&5
4093 echo "${ECHO_T}$result" >&6; }
4094
4095
4096           withstring=
4097           defaultval=$wxUSE_ALL_FEATURES
4098           if test -z "$defaultval"; then
4099               if test x"$withstring" = xwithout; then
4100                   defaultval=yes
4101               else
4102                   defaultval=no
4103               fi
4104           fi
4105           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4106 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4107
4108 # Check whether --with-opengl was given.
4109 if test "${with_opengl+set}" = set; then
4110   withval=$with_opengl;
4111                         if test "$withval" = yes; then
4112                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4113                         else
4114                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4115                         fi
4116
4117 else
4118
4119                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4120
4121 fi
4122
4123
4124           eval "$wx_cv_use_opengl"
4125
4126           if test x"$withstring" = xwithout; then
4127             if test $wxUSE_OPENGL = yes; then
4128               result=no
4129             else
4130               result=yes
4131             fi
4132           else
4133             result=$wxUSE_OPENGL
4134           fi
4135
4136           { echo "$as_me:$LINENO: result: $result" >&5
4137 echo "${ECHO_T}$result" >&6; }
4138
4139
4140 fi
4141
4142
4143           withstring=
4144           defaultval=$wxUSE_ALL_FEATURES
4145           if test -z "$defaultval"; then
4146               if test x"$withstring" = xwithout; then
4147                   defaultval=yes
4148               else
4149                   defaultval=no
4150               fi
4151           fi
4152           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4153 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4154
4155 # Check whether --with-dmalloc was given.
4156 if test "${with_dmalloc+set}" = set; then
4157   withval=$with_dmalloc;
4158                         if test "$withval" = yes; then
4159                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4160                         else
4161                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4162                         fi
4163
4164 else
4165
4166                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4167
4168 fi
4169
4170
4171           eval "$wx_cv_use_dmalloc"
4172
4173           if test x"$withstring" = xwithout; then
4174             if test $wxUSE_DMALLOC = yes; then
4175               result=no
4176             else
4177               result=yes
4178             fi
4179           else
4180             result=$wxUSE_DMALLOC
4181           fi
4182
4183           { echo "$as_me:$LINENO: result: $result" >&5
4184 echo "${ECHO_T}$result" >&6; }
4185
4186
4187           withstring=
4188           defaultval=$wxUSE_ALL_FEATURES
4189           if test -z "$defaultval"; then
4190               if test x"$withstring" = xwithout; then
4191                   defaultval=yes
4192               else
4193                   defaultval=no
4194               fi
4195           fi
4196           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4197 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4198
4199 # Check whether --with-sdl was given.
4200 if test "${with_sdl+set}" = set; then
4201   withval=$with_sdl;
4202                         if test "$withval" = yes; then
4203                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4204                         else
4205                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4206                         fi
4207
4208 else
4209
4210                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4211
4212 fi
4213
4214
4215           eval "$wx_cv_use_sdl"
4216
4217           if test x"$withstring" = xwithout; then
4218             if test $wxUSE_LIBSDL = yes; then
4219               result=no
4220             else
4221               result=yes
4222             fi
4223           else
4224             result=$wxUSE_LIBSDL
4225           fi
4226
4227           { echo "$as_me:$LINENO: result: $result" >&5
4228 echo "${ECHO_T}$result" >&6; }
4229
4230
4231           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4232 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4233
4234 # Check whether --with-regex was given.
4235 if test "${with_regex+set}" = set; then
4236   withval=$with_regex;
4237                         if test "$withval" = yes; then
4238                           wx_cv_use_regex='wxUSE_REGEX=yes'
4239                         elif test "$withval" = no; then
4240                           wx_cv_use_regex='wxUSE_REGEX=no'
4241                         elif test "$withval" = sys; then
4242                           wx_cv_use_regex='wxUSE_REGEX=sys'
4243                         elif test "$withval" = builtin; then
4244                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4245                         else
4246                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4247 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4248    { (exit 1); exit 1; }; }
4249                         fi
4250
4251 else
4252
4253                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4254
4255 fi
4256
4257
4258           eval "$wx_cv_use_regex"
4259
4260           if test "$wxUSE_REGEX" = yes; then
4261             { echo "$as_me:$LINENO: result: yes" >&5
4262 echo "${ECHO_T}yes" >&6; }
4263           elif test "$wxUSE_REGEX" = no; then
4264             { echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6; }
4266           elif test "$wxUSE_REGEX" = sys; then
4267             { echo "$as_me:$LINENO: result: system version" >&5
4268 echo "${ECHO_T}system version" >&6; }
4269           elif test "$wxUSE_REGEX" = builtin; then
4270             { echo "$as_me:$LINENO: result: builtin version" >&5
4271 echo "${ECHO_T}builtin version" >&6; }
4272           else
4273             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4274 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4275    { (exit 1); exit 1; }; }
4276           fi
4277
4278
4279           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4280 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4281
4282 # Check whether --with-zlib was given.
4283 if test "${with_zlib+set}" = set; then
4284   withval=$with_zlib;
4285                         if test "$withval" = yes; then
4286                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4287                         elif test "$withval" = no; then
4288                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4289                         elif test "$withval" = sys; then
4290                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4291                         elif test "$withval" = builtin; then
4292                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4293                         else
4294                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4295 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4296    { (exit 1); exit 1; }; }
4297                         fi
4298
4299 else
4300
4301                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4302
4303 fi
4304
4305
4306           eval "$wx_cv_use_zlib"
4307
4308           if test "$wxUSE_ZLIB" = yes; then
4309             { echo "$as_me:$LINENO: result: yes" >&5
4310 echo "${ECHO_T}yes" >&6; }
4311           elif test "$wxUSE_ZLIB" = no; then
4312             { echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6; }
4314           elif test "$wxUSE_ZLIB" = sys; then
4315             { echo "$as_me:$LINENO: result: system version" >&5
4316 echo "${ECHO_T}system version" >&6; }
4317           elif test "$wxUSE_ZLIB" = builtin; then
4318             { echo "$as_me:$LINENO: result: builtin version" >&5
4319 echo "${ECHO_T}builtin version" >&6; }
4320           else
4321             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4322 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4323    { (exit 1); exit 1; }; }
4324           fi
4325
4326
4327           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4328 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4329
4330 # Check whether --with-expat was given.
4331 if test "${with_expat+set}" = set; then
4332   withval=$with_expat;
4333                         if test "$withval" = yes; then
4334                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4335                         elif test "$withval" = no; then
4336                           wx_cv_use_expat='wxUSE_EXPAT=no'
4337                         elif test "$withval" = sys; then
4338                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4339                         elif test "$withval" = builtin; then
4340                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4341                         else
4342                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4343 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4344    { (exit 1); exit 1; }; }
4345                         fi
4346
4347 else
4348
4349                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4350
4351 fi
4352
4353
4354           eval "$wx_cv_use_expat"
4355
4356           if test "$wxUSE_EXPAT" = yes; then
4357             { echo "$as_me:$LINENO: result: yes" >&5
4358 echo "${ECHO_T}yes" >&6; }
4359           elif test "$wxUSE_EXPAT" = no; then
4360             { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4362           elif test "$wxUSE_EXPAT" = sys; then
4363             { echo "$as_me:$LINENO: result: system version" >&5
4364 echo "${ECHO_T}system version" >&6; }
4365           elif test "$wxUSE_EXPAT" = builtin; then
4366             { echo "$as_me:$LINENO: result: builtin version" >&5
4367 echo "${ECHO_T}builtin version" >&6; }
4368           else
4369             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4370 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4371    { (exit 1); exit 1; }; }
4372           fi
4373
4374
4375 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4376 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4377
4378 # Check whether --with-macosx-sdk was given.
4379 if test "${with_macosx_sdk+set}" = set; then
4380   withval=$with_macosx_sdk;
4381         wxUSE_MACOSX_SDK=$withval
4382         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4383
4384 fi
4385
4386 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4387 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4388
4389 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4390 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4391
4392 # Check whether --with-macosx-version-min was given.
4393 if test "${with_macosx_version_min+set}" = set; then
4394   withval=$with_macosx_version_min;
4395         wxUSE_MACOSX_VERSION_MIN=$withval
4396         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4397
4398 fi
4399
4400 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4401 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4402
4403
4404 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4405 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4406 # Check whether --enable-debug was given.
4407 if test "${enable_debug+set}" = set; then
4408   enableval=$enable_debug;
4409         if test "$enableval" = yes; then
4410             wxUSE_DEBUG=yes
4411         elif test "$enableval" = no; then
4412             wxUSE_DEBUG=no
4413         elif test "$enableval" = max; then
4414             wxUSE_DEBUG=yes
4415             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4416         else
4417             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4418 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4419    { (exit 1); exit 1; }; }
4420         fi
4421
4422 else
4423   wxUSE_DEBUG=default
4424
4425 fi
4426
4427
4428 case "$wxUSE_DEBUG" in
4429     yes)
4430                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4431         DEFAULT_wxUSE_DEBUG_INFO=yes
4432
4433                         DEFAULT_wxUSE_OPTIMISE=no
4434         ;;
4435
4436     no)
4437                         DEFAULT_wxUSE_DEBUG_FLAG=no
4438         DEFAULT_wxUSE_DEBUG_INFO=no
4439         ;;
4440
4441     default)
4442                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4443         DEFAULT_wxUSE_DEBUG_INFO=no
4444         ;;
4445 esac
4446
4447
4448           enablestring=disable
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}-debug_flag" >&5
4459 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4460           # Check whether --enable-debug_flag was given.
4461 if test "${enable_debug_flag+set}" = set; then
4462   enableval=$enable_debug_flag;
4463                           if test "$enableval" = yes; then
4464                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4465                           else
4466                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4467                           fi
4468
4469 else
4470
4471                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4472
4473 fi
4474
4475
4476           eval "$wx_cv_use_debug_flag"
4477
4478           if test x"$enablestring" = xdisable; then
4479             if test $wxUSE_DEBUG_FLAG = no; then
4480               result=yes
4481             else
4482               result=no
4483             fi
4484           else
4485             result=$wxUSE_DEBUG_FLAG
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}-debug_info" >&5
4503 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4504           # Check whether --enable-debug_info was given.
4505 if test "${enable_debug_info+set}" = set; then
4506   enableval=$enable_debug_info;
4507                           if test "$enableval" = yes; then
4508                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4509                           else
4510                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4511                           fi
4512
4513 else
4514
4515                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4516
4517 fi
4518
4519
4520           eval "$wx_cv_use_debug_info"
4521
4522           if test x"$enablestring" = xdisable; then
4523             if test $wxUSE_DEBUG_INFO = no; then
4524               result=yes
4525             else
4526               result=no
4527             fi
4528           else
4529             result=$wxUSE_DEBUG_INFO
4530           fi
4531
4532           { echo "$as_me:$LINENO: result: $result" >&5
4533 echo "${ECHO_T}$result" >&6; }
4534
4535
4536
4537
4538           enablestring=
4539           defaultval=
4540           if test -z "$defaultval"; then
4541               if test x"$enablestring" = xdisable; then
4542                   defaultval=yes
4543               else
4544                   defaultval=no
4545               fi
4546           fi
4547
4548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4549 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4550           # Check whether --enable-debug_gdb was given.
4551 if test "${enable_debug_gdb+set}" = set; then
4552   enableval=$enable_debug_gdb;
4553                           if test "$enableval" = yes; then
4554                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4555                           else
4556                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4557                           fi
4558
4559 else
4560
4561                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4562
4563 fi
4564
4565
4566           eval "$wx_cv_use_debug_gdb"
4567
4568           if test x"$enablestring" = xdisable; then
4569             if test $wxUSE_DEBUG_GDB = no; then
4570               result=yes
4571             else
4572               result=no
4573             fi
4574           else
4575             result=$wxUSE_DEBUG_GDB
4576           fi
4577
4578           { echo "$as_me:$LINENO: result: $result" >&5
4579 echo "${ECHO_T}$result" >&6; }
4580
4581
4582           enablestring=
4583           defaultval=
4584           if test -z "$defaultval"; then
4585               if test x"$enablestring" = xdisable; then
4586                   defaultval=yes
4587               else
4588                   defaultval=no
4589               fi
4590           fi
4591
4592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4593 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4594           # Check whether --enable-debug_cntxt was given.
4595 if test "${enable_debug_cntxt+set}" = set; then
4596   enableval=$enable_debug_cntxt;
4597                           if test "$enableval" = yes; then
4598                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4599                           else
4600                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4601                           fi
4602
4603 else
4604
4605                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4606
4607 fi
4608
4609
4610           eval "$wx_cv_use_debug_cntxt"
4611
4612           if test x"$enablestring" = xdisable; then
4613             if test $wxUSE_DEBUG_CONTEXT = no; then
4614               result=yes
4615             else
4616               result=no
4617             fi
4618           else
4619             result=$wxUSE_DEBUG_CONTEXT
4620           fi
4621
4622           { echo "$as_me:$LINENO: result: $result" >&5
4623 echo "${ECHO_T}$result" >&6; }
4624
4625
4626           enablestring=
4627           defaultval=
4628           if test -z "$defaultval"; then
4629               if test x"$enablestring" = xdisable; then
4630                   defaultval=yes
4631               else
4632                   defaultval=no
4633               fi
4634           fi
4635
4636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4637 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4638           # Check whether --enable-mem_tracing was given.
4639 if test "${enable_mem_tracing+set}" = set; then
4640   enableval=$enable_mem_tracing;
4641                           if test "$enableval" = yes; then
4642                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4643                           else
4644                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4645                           fi
4646
4647 else
4648
4649                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4650
4651 fi
4652
4653
4654           eval "$wx_cv_use_mem_tracing"
4655
4656           if test x"$enablestring" = xdisable; then
4657             if test $wxUSE_MEM_TRACING = no; then
4658               result=yes
4659             else
4660               result=no
4661             fi
4662           else
4663             result=$wxUSE_MEM_TRACING
4664           fi
4665
4666           { echo "$as_me:$LINENO: result: $result" >&5
4667 echo "${ECHO_T}$result" >&6; }
4668
4669
4670
4671
4672           enablestring=disable
4673           defaultval=
4674           if test -z "$defaultval"; then
4675               if test x"$enablestring" = xdisable; then
4676                   defaultval=yes
4677               else
4678                   defaultval=no
4679               fi
4680           fi
4681
4682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4683 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4684           # Check whether --enable-shared was given.
4685 if test "${enable_shared+set}" = set; then
4686   enableval=$enable_shared;
4687                           if test "$enableval" = yes; then
4688                             wx_cv_use_shared='wxUSE_SHARED=yes'
4689                           else
4690                             wx_cv_use_shared='wxUSE_SHARED=no'
4691                           fi
4692
4693 else
4694
4695                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4696
4697 fi
4698
4699
4700           eval "$wx_cv_use_shared"
4701
4702           if test x"$enablestring" = xdisable; then
4703             if test $wxUSE_SHARED = no; then
4704               result=yes
4705             else
4706               result=no
4707             fi
4708           else
4709             result=$wxUSE_SHARED
4710           fi
4711
4712           { echo "$as_me:$LINENO: result: $result" >&5
4713 echo "${ECHO_T}$result" >&6; }
4714
4715
4716           enablestring=
4717           defaultval=
4718           if test -z "$defaultval"; then
4719               if test x"$enablestring" = xdisable; then
4720                   defaultval=yes
4721               else
4722                   defaultval=no
4723               fi
4724           fi
4725
4726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4727 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4728           # Check whether --enable-stl was given.
4729 if test "${enable_stl+set}" = set; then
4730   enableval=$enable_stl;
4731                           if test "$enableval" = yes; then
4732                             wx_cv_use_stl='wxUSE_STL=yes'
4733                           else
4734                             wx_cv_use_stl='wxUSE_STL=no'
4735                           fi
4736
4737 else
4738
4739                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4740
4741 fi
4742
4743
4744           eval "$wx_cv_use_stl"
4745
4746           if test x"$enablestring" = xdisable; then
4747             if test $wxUSE_STL = no; then
4748               result=yes
4749             else
4750               result=no
4751             fi
4752           else
4753             result=$wxUSE_STL
4754           fi
4755
4756           { echo "$as_me:$LINENO: result: $result" >&5
4757 echo "${ECHO_T}$result" >&6; }
4758
4759
4760           enablestring=
4761           defaultval=
4762           if test -z "$defaultval"; then
4763               if test x"$enablestring" = xdisable; then
4764                   defaultval=yes
4765               else
4766                   defaultval=no
4767               fi
4768           fi
4769
4770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4771 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4772           # Check whether --enable-std_iostreams was given.
4773 if test "${enable_std_iostreams+set}" = set; then
4774   enableval=$enable_std_iostreams;
4775                           if test "$enableval" = yes; then
4776                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4777                           else
4778                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4779                           fi
4780
4781 else
4782
4783                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4784
4785 fi
4786
4787
4788           eval "$wx_cv_use_std_iostreams"
4789
4790           if test x"$enablestring" = xdisable; then
4791             if test $wxUSE_STD_IOSTREAM = no; then
4792               result=yes
4793             else
4794               result=no
4795             fi
4796           else
4797             result=$wxUSE_STD_IOSTREAM
4798           fi
4799
4800           { echo "$as_me:$LINENO: result: $result" >&5
4801 echo "${ECHO_T}$result" >&6; }
4802
4803
4804           enablestring=
4805           defaultval=
4806           if test -z "$defaultval"; then
4807               if test x"$enablestring" = xdisable; then
4808                   defaultval=yes
4809               else
4810                   defaultval=no
4811               fi
4812           fi
4813
4814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4815 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4816           # Check whether --enable-std_string was given.
4817 if test "${enable_std_string+set}" = set; then
4818   enableval=$enable_std_string;
4819                           if test "$enableval" = yes; then
4820                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4821                           else
4822                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4823                           fi
4824
4825 else
4826
4827                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4828
4829 fi
4830
4831
4832           eval "$wx_cv_use_std_string"
4833
4834           if test x"$enablestring" = xdisable; then
4835             if test $wxUSE_STD_STRING = no; then
4836               result=yes
4837             else
4838               result=no
4839             fi
4840           else
4841             result=$wxUSE_STD_STRING
4842           fi
4843
4844           { echo "$as_me:$LINENO: result: $result" >&5
4845 echo "${ECHO_T}$result" >&6; }
4846
4847
4848           enablestring=disable
4849           defaultval=
4850           if test -z "$defaultval"; then
4851               if test x"$enablestring" = xdisable; then
4852                   defaultval=yes
4853               else
4854                   defaultval=no
4855               fi
4856           fi
4857
4858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4859 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4860           # Check whether --enable-unicode was given.
4861 if test "${enable_unicode+set}" = set; then
4862   enableval=$enable_unicode;
4863                           if test "$enableval" = yes; then
4864                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4865                           else
4866                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4867                           fi
4868
4869 else
4870
4871                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4872
4873 fi
4874
4875
4876           eval "$wx_cv_use_unicode"
4877
4878           if test x"$enablestring" = xdisable; then
4879             if test $wxUSE_UNICODE = no; then
4880               result=yes
4881             else
4882               result=no
4883             fi
4884           else
4885             result=$wxUSE_UNICODE
4886           fi
4887
4888           { echo "$as_me:$LINENO: result: $result" >&5
4889 echo "${ECHO_T}$result" >&6; }
4890
4891
4892           enablestring=
4893           defaultval=
4894           if test -z "$defaultval"; then
4895               if test x"$enablestring" = xdisable; then
4896                   defaultval=yes
4897               else
4898                   defaultval=no
4899               fi
4900           fi
4901
4902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4903 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4904           # Check whether --enable-mslu was given.
4905 if test "${enable_mslu+set}" = set; then
4906   enableval=$enable_mslu;
4907                           if test "$enableval" = yes; then
4908                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4909                           else
4910                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4911                           fi
4912
4913 else
4914
4915                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4916
4917 fi
4918
4919
4920           eval "$wx_cv_use_mslu"
4921
4922           if test x"$enablestring" = xdisable; then
4923             if test $wxUSE_UNICODE_MSLU = no; then
4924               result=yes
4925             else
4926               result=no
4927             fi
4928           else
4929             result=$wxUSE_UNICODE_MSLU
4930           fi
4931
4932           { echo "$as_me:$LINENO: result: $result" >&5
4933 echo "${ECHO_T}$result" >&6; }
4934
4935
4936           enablestring=
4937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4938 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4939           # Check whether --enable-utf8 was given.
4940 if test "${enable_utf8+set}" = set; then
4941   enableval=$enable_utf8;
4942                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4943
4944 else
4945
4946                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4947
4948 fi
4949
4950
4951           eval "$wx_cv_use_utf8"
4952
4953           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4954 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4955
4956
4957           enablestring=
4958           defaultval=
4959           if test -z "$defaultval"; then
4960               if test x"$enablestring" = xdisable; then
4961                   defaultval=yes
4962               else
4963                   defaultval=no
4964               fi
4965           fi
4966
4967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4968 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4969           # Check whether --enable-utf8only was given.
4970 if test "${enable_utf8only+set}" = set; then
4971   enableval=$enable_utf8only;
4972                           if test "$enableval" = yes; then
4973                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4974                           else
4975                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4976                           fi
4977
4978 else
4979
4980                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4981
4982 fi
4983
4984
4985           eval "$wx_cv_use_utf8only"
4986
4987           if test x"$enablestring" = xdisable; then
4988             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
4989               result=yes
4990             else
4991               result=no
4992             fi
4993           else
4994             result=$wxUSE_UNICODE_UTF8_LOCALE
4995           fi
4996
4997           { echo "$as_me:$LINENO: result: $result" >&5
4998 echo "${ECHO_T}$result" >&6; }
4999
5000
5001           enablestring=
5002           defaultval=
5003           if test -z "$defaultval"; then
5004               if test x"$enablestring" = xdisable; then
5005                   defaultval=yes
5006               else
5007                   defaultval=no
5008               fi
5009           fi
5010
5011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5012 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5013           # Check whether --enable-extended_rtti was given.
5014 if test "${enable_extended_rtti+set}" = set; then
5015   enableval=$enable_extended_rtti;
5016                           if test "$enableval" = yes; then
5017                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5018                           else
5019                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5020                           fi
5021
5022 else
5023
5024                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5025
5026 fi
5027
5028
5029           eval "$wx_cv_use_extended_rtti"
5030
5031           if test x"$enablestring" = xdisable; then
5032             if test $wxUSE_EXTENDED_RTTI = no; then
5033               result=yes
5034             else
5035               result=no
5036             fi
5037           else
5038             result=$wxUSE_EXTENDED_RTTI
5039           fi
5040
5041           { echo "$as_me:$LINENO: result: $result" >&5
5042 echo "${ECHO_T}$result" >&6; }
5043
5044 if test "$USE_OS2" = 1; then
5045     DEFAULT_wxUSE_OMF=no
5046
5047           enablestring=
5048           defaultval=
5049           if test -z "$defaultval"; then
5050               if test x"$enablestring" = xdisable; then
5051                   defaultval=yes
5052               else
5053                   defaultval=no
5054               fi
5055           fi
5056
5057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5058 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5059           # Check whether --enable-omf was given.
5060 if test "${enable_omf+set}" = set; then
5061   enableval=$enable_omf;
5062                           if test "$enableval" = yes; then
5063                             wx_cv_use_omf='wxUSE_OMF=yes'
5064                           else
5065                             wx_cv_use_omf='wxUSE_OMF=no'
5066                           fi
5067
5068 else
5069
5070                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5071
5072 fi
5073
5074
5075           eval "$wx_cv_use_omf"
5076
5077           if test x"$enablestring" = xdisable; then
5078             if test $wxUSE_OMF = no; then
5079               result=yes
5080             else
5081               result=no
5082             fi
5083           else
5084             result=$wxUSE_OMF
5085           fi
5086
5087           { echo "$as_me:$LINENO: result: $result" >&5
5088 echo "${ECHO_T}$result" >&6; }
5089
5090 fi
5091
5092
5093           enablestring=disable
5094           defaultval=
5095           if test -z "$defaultval"; then
5096               if test x"$enablestring" = xdisable; then
5097                   defaultval=yes
5098               else
5099                   defaultval=no
5100               fi
5101           fi
5102
5103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5104 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5105           # Check whether --enable-optimise was given.
5106 if test "${enable_optimise+set}" = set; then
5107   enableval=$enable_optimise;
5108                           if test "$enableval" = yes; then
5109                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5110                           else
5111                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5112                           fi
5113
5114 else
5115
5116                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5117
5118 fi
5119
5120
5121           eval "$wx_cv_use_optimise"
5122
5123           if test x"$enablestring" = xdisable; then
5124             if test $wxUSE_OPTIMISE = no; then
5125               result=yes
5126             else
5127               result=no
5128             fi
5129           else
5130             result=$wxUSE_OPTIMISE
5131           fi
5132
5133           { echo "$as_me:$LINENO: result: $result" >&5
5134 echo "${ECHO_T}$result" >&6; }
5135
5136
5137
5138           enablestring=
5139           defaultval=
5140           if test -z "$defaultval"; then
5141               if test x"$enablestring" = xdisable; then
5142                   defaultval=yes
5143               else
5144                   defaultval=no
5145               fi
5146           fi
5147
5148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5149 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5150           # Check whether --enable-profile was given.
5151 if test "${enable_profile+set}" = set; then
5152   enableval=$enable_profile;
5153                           if test "$enableval" = yes; then
5154                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5155                           else
5156                             wx_cv_use_profile='wxUSE_PROFILE=no'
5157                           fi
5158
5159 else
5160
5161                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5162
5163 fi
5164
5165
5166           eval "$wx_cv_use_profile"
5167
5168           if test x"$enablestring" = xdisable; then
5169             if test $wxUSE_PROFILE = no; then
5170               result=yes
5171             else
5172               result=no
5173             fi
5174           else
5175             result=$wxUSE_PROFILE
5176           fi
5177
5178           { echo "$as_me:$LINENO: result: $result" >&5
5179 echo "${ECHO_T}$result" >&6; }
5180
5181
5182           enablestring=
5183           defaultval=
5184           if test -z "$defaultval"; then
5185               if test x"$enablestring" = xdisable; then
5186                   defaultval=yes
5187               else
5188                   defaultval=no
5189               fi
5190           fi
5191
5192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5193 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5194           # Check whether --enable-no_rtti was given.
5195 if test "${enable_no_rtti+set}" = set; then
5196   enableval=$enable_no_rtti;
5197                           if test "$enableval" = yes; then
5198                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5199                           else
5200                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5201                           fi
5202
5203 else
5204
5205                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5206
5207 fi
5208
5209
5210           eval "$wx_cv_use_no_rtti"
5211
5212           if test x"$enablestring" = xdisable; then
5213             if test $wxUSE_NO_RTTI = no; then
5214               result=yes
5215             else
5216               result=no
5217             fi
5218           else
5219             result=$wxUSE_NO_RTTI
5220           fi
5221
5222           { echo "$as_me:$LINENO: result: $result" >&5
5223 echo "${ECHO_T}$result" >&6; }
5224
5225
5226           enablestring=
5227           defaultval=
5228           if test -z "$defaultval"; then
5229               if test x"$enablestring" = xdisable; then
5230                   defaultval=yes
5231               else
5232                   defaultval=no
5233               fi
5234           fi
5235
5236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5237 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5238           # Check whether --enable-no_exceptions was given.
5239 if test "${enable_no_exceptions+set}" = set; then
5240   enableval=$enable_no_exceptions;
5241                           if test "$enableval" = yes; then
5242                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5243                           else
5244                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5245                           fi
5246
5247 else
5248
5249                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5250
5251 fi
5252
5253
5254           eval "$wx_cv_use_no_exceptions"
5255
5256           if test x"$enablestring" = xdisable; then
5257             if test $wxUSE_NO_EXCEPTIONS = no; then
5258               result=yes
5259             else
5260               result=no
5261             fi
5262           else
5263             result=$wxUSE_NO_EXCEPTIONS
5264           fi
5265
5266           { echo "$as_me:$LINENO: result: $result" >&5
5267 echo "${ECHO_T}$result" >&6; }
5268
5269
5270           enablestring=
5271           defaultval=
5272           if test -z "$defaultval"; then
5273               if test x"$enablestring" = xdisable; then
5274                   defaultval=yes
5275               else
5276                   defaultval=no
5277               fi
5278           fi
5279
5280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5281 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5282           # Check whether --enable-permissive was given.
5283 if test "${enable_permissive+set}" = set; then
5284   enableval=$enable_permissive;
5285                           if test "$enableval" = yes; then
5286                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5287                           else
5288                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5289                           fi
5290
5291 else
5292
5293                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5294
5295 fi
5296
5297
5298           eval "$wx_cv_use_permissive"
5299
5300           if test x"$enablestring" = xdisable; then
5301             if test $wxUSE_PERMISSIVE = no; then
5302               result=yes
5303             else
5304               result=no
5305             fi
5306           else
5307             result=$wxUSE_PERMISSIVE
5308           fi
5309
5310           { echo "$as_me:$LINENO: result: $result" >&5
5311 echo "${ECHO_T}$result" >&6; }
5312
5313
5314           enablestring=
5315           defaultval=
5316           if test -z "$defaultval"; then
5317               if test x"$enablestring" = xdisable; then
5318                   defaultval=yes
5319               else
5320                   defaultval=no
5321               fi
5322           fi
5323
5324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5325 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5326           # Check whether --enable-no_deps was given.
5327 if test "${enable_no_deps+set}" = set; then
5328   enableval=$enable_no_deps;
5329                           if test "$enableval" = yes; then
5330                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5331                           else
5332                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5333                           fi
5334
5335 else
5336
5337                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5338
5339 fi
5340
5341
5342           eval "$wx_cv_use_no_deps"
5343
5344           if test x"$enablestring" = xdisable; then
5345             if test $wxUSE_NO_DEPS = no; then
5346               result=yes
5347             else
5348               result=no
5349             fi
5350           else
5351             result=$wxUSE_NO_DEPS
5352           fi
5353
5354           { echo "$as_me:$LINENO: result: $result" >&5
5355 echo "${ECHO_T}$result" >&6; }
5356
5357
5358           enablestring=disable
5359           defaultval=
5360           if test -z "$defaultval"; then
5361               if test x"$enablestring" = xdisable; then
5362                   defaultval=yes
5363               else
5364                   defaultval=no
5365               fi
5366           fi
5367
5368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5369 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5370           # Check whether --enable-vararg_macros was given.
5371 if test "${enable_vararg_macros+set}" = set; then
5372   enableval=$enable_vararg_macros;
5373                           if test "$enableval" = yes; then
5374                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5375                           else
5376                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5377                           fi
5378
5379 else
5380
5381                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5382
5383 fi
5384
5385
5386           eval "$wx_cv_use_vararg_macros"
5387
5388           if test x"$enablestring" = xdisable; then
5389             if test $wxUSE_VARARG_MACROS = no; then
5390               result=yes
5391             else
5392               result=no
5393             fi
5394           else
5395             result=$wxUSE_VARARG_MACROS
5396           fi
5397
5398           { echo "$as_me:$LINENO: result: $result" >&5
5399 echo "${ECHO_T}$result" >&6; }
5400
5401
5402           enablestring=
5403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5404 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5405           # Check whether --enable-universal_binary was given.
5406 if test "${enable_universal_binary+set}" = set; then
5407   enableval=$enable_universal_binary;
5408                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5409
5410 else
5411
5412                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5413
5414 fi
5415
5416
5417           eval "$wx_cv_use_universal_binary"
5418
5419           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5420 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5421
5422
5423
5424           enablestring=
5425           defaultval=
5426           if test -z "$defaultval"; then
5427               if test x"$enablestring" = xdisable; then
5428                   defaultval=yes
5429               else
5430                   defaultval=no
5431               fi
5432           fi
5433
5434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5435 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5436           # Check whether --enable-compat26 was given.
5437 if test "${enable_compat26+set}" = set; then
5438   enableval=$enable_compat26;
5439                           if test "$enableval" = yes; then
5440                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5441                           else
5442                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5443                           fi
5444
5445 else
5446
5447                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5448
5449 fi
5450
5451
5452           eval "$wx_cv_use_compat26"
5453
5454           if test x"$enablestring" = xdisable; then
5455             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5456               result=yes
5457             else
5458               result=no
5459             fi
5460           else
5461             result=$WXWIN_COMPATIBILITY_2_6
5462           fi
5463
5464           { echo "$as_me:$LINENO: result: $result" >&5
5465 echo "${ECHO_T}$result" >&6; }
5466
5467
5468           enablestring=disable
5469           defaultval=
5470           if test -z "$defaultval"; then
5471               if test x"$enablestring" = xdisable; then
5472                   defaultval=yes
5473               else
5474                   defaultval=no
5475               fi
5476           fi
5477
5478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5479 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5480           # Check whether --enable-compat28 was given.
5481 if test "${enable_compat28+set}" = set; then
5482   enableval=$enable_compat28;
5483                           if test "$enableval" = yes; then
5484                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5485                           else
5486                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5487                           fi
5488
5489 else
5490
5491                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5492
5493 fi
5494
5495
5496           eval "$wx_cv_use_compat28"
5497
5498           if test x"$enablestring" = xdisable; then
5499             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5500               result=yes
5501             else
5502               result=no
5503             fi
5504           else
5505             result=$WXWIN_COMPATIBILITY_2_8
5506           fi
5507
5508           { echo "$as_me:$LINENO: result: $result" >&5
5509 echo "${ECHO_T}$result" >&6; }
5510
5511
5512
5513           enablestring=disable
5514           defaultval=
5515           if test -z "$defaultval"; then
5516               if test x"$enablestring" = xdisable; then
5517                   defaultval=yes
5518               else
5519                   defaultval=no
5520               fi
5521           fi
5522
5523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5524 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5525           # Check whether --enable-rpath was given.
5526 if test "${enable_rpath+set}" = set; then
5527   enableval=$enable_rpath;
5528                           if test "$enableval" = yes; then
5529                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5530                           else
5531                             wx_cv_use_rpath='wxUSE_RPATH=no'
5532                           fi
5533
5534 else
5535
5536                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5537
5538 fi
5539
5540
5541           eval "$wx_cv_use_rpath"
5542
5543           if test x"$enablestring" = xdisable; then
5544             if test $wxUSE_RPATH = no; then
5545               result=yes
5546             else
5547               result=no
5548             fi
5549           else
5550             result=$wxUSE_RPATH
5551           fi
5552
5553           { echo "$as_me:$LINENO: result: $result" >&5
5554 echo "${ECHO_T}$result" >&6; }
5555
5556
5557
5558           enablestring=
5559           defaultval=
5560           if test -z "$defaultval"; then
5561               if test x"$enablestring" = xdisable; then
5562                   defaultval=yes
5563               else
5564                   defaultval=no
5565               fi
5566           fi
5567
5568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5569 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5570           # Check whether --enable-objc_uniquifying was given.
5571 if test "${enable_objc_uniquifying+set}" = set; then
5572   enableval=$enable_objc_uniquifying;
5573                           if test "$enableval" = yes; then
5574                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5575                           else
5576                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5577                           fi
5578
5579 else
5580
5581                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5582
5583 fi
5584
5585
5586           eval "$wx_cv_use_objc_uniquifying"
5587
5588           if test x"$enablestring" = xdisable; then
5589             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5590               result=yes
5591             else
5592               result=no
5593             fi
5594           else
5595             result=$wxUSE_OBJC_UNIQUIFYING
5596           fi
5597
5598           { echo "$as_me:$LINENO: result: $result" >&5
5599 echo "${ECHO_T}$result" >&6; }
5600
5601
5602
5603           enablestring=disable
5604           defaultval=
5605           if test -z "$defaultval"; then
5606               if test x"$enablestring" = xdisable; then
5607                   defaultval=yes
5608               else
5609                   defaultval=no
5610               fi
5611           fi
5612
5613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5614 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5615           # Check whether --enable-visibility was given.
5616 if test "${enable_visibility+set}" = set; then
5617   enableval=$enable_visibility;
5618                           if test "$enableval" = yes; then
5619                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5620                           else
5621                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5622                           fi
5623
5624 else
5625
5626                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5627
5628 fi
5629
5630
5631           eval "$wx_cv_use_visibility"
5632
5633           if test x"$enablestring" = xdisable; then
5634             if test $wxUSE_VISIBILITY = no; then
5635               result=yes
5636             else
5637               result=no
5638             fi
5639           else
5640             result=$wxUSE_VISIBILITY
5641           fi
5642
5643           { echo "$as_me:$LINENO: result: $result" >&5
5644 echo "${ECHO_T}$result" >&6; }
5645
5646
5647           enablestring=disable
5648           defaultval=
5649           if test -z "$defaultval"; then
5650               if test x"$enablestring" = xdisable; then
5651                   defaultval=yes
5652               else
5653                   defaultval=no
5654               fi
5655           fi
5656
5657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5658 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5659           # Check whether --enable-tls was given.
5660 if test "${enable_tls+set}" = set; then
5661   enableval=$enable_tls;
5662                           if test "$enableval" = yes; then
5663                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5664                           else
5665                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5666                           fi
5667
5668 else
5669
5670                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5671
5672 fi
5673
5674
5675           eval "$wx_cv_use_tls"
5676
5677           if test x"$enablestring" = xdisable; then
5678             if test $wxUSE_COMPILER_TLS = no; then
5679               result=yes
5680             else
5681               result=no
5682             fi
5683           else
5684             result=$wxUSE_COMPILER_TLS
5685           fi
5686
5687           { echo "$as_me:$LINENO: result: $result" >&5
5688 echo "${ECHO_T}$result" >&6; }
5689
5690
5691
5692
5693           enablestring=
5694           defaultval=$wxUSE_ALL_FEATURES
5695           if test -z "$defaultval"; then
5696               if test x"$enablestring" = xdisable; then
5697                   defaultval=yes
5698               else
5699                   defaultval=no
5700               fi
5701           fi
5702
5703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5704 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5705           # Check whether --enable-intl was given.
5706 if test "${enable_intl+set}" = set; then
5707   enableval=$enable_intl;
5708                           if test "$enableval" = yes; then
5709                             wx_cv_use_intl='wxUSE_INTL=yes'
5710                           else
5711                             wx_cv_use_intl='wxUSE_INTL=no'
5712                           fi
5713
5714 else
5715
5716                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5717
5718 fi
5719
5720
5721           eval "$wx_cv_use_intl"
5722
5723           if test x"$enablestring" = xdisable; then
5724             if test $wxUSE_INTL = no; then
5725               result=yes
5726             else
5727               result=no
5728             fi
5729           else
5730             result=$wxUSE_INTL
5731           fi
5732
5733           { echo "$as_me:$LINENO: result: $result" >&5
5734 echo "${ECHO_T}$result" >&6; }
5735
5736
5737           enablestring=
5738           defaultval=$wxUSE_ALL_FEATURES
5739           if test -z "$defaultval"; then
5740               if test x"$enablestring" = xdisable; then
5741                   defaultval=yes
5742               else
5743                   defaultval=no
5744               fi
5745           fi
5746
5747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5748 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5749           # Check whether --enable-xlocale was given.
5750 if test "${enable_xlocale+set}" = set; then
5751   enableval=$enable_xlocale;
5752                           if test "$enableval" = yes; then
5753                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5754                           else
5755                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5756                           fi
5757
5758 else
5759
5760                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5761
5762 fi
5763
5764
5765           eval "$wx_cv_use_xlocale"
5766
5767           if test x"$enablestring" = xdisable; then
5768             if test $wxUSE_XLOCALE = no; then
5769               result=yes
5770             else
5771               result=no
5772             fi
5773           else
5774             result=$wxUSE_XLOCALE
5775           fi
5776
5777           { echo "$as_me:$LINENO: result: $result" >&5
5778 echo "${ECHO_T}$result" >&6; }
5779
5780
5781           enablestring=
5782           defaultval=$wxUSE_ALL_FEATURES
5783           if test -z "$defaultval"; then
5784               if test x"$enablestring" = xdisable; then
5785                   defaultval=yes
5786               else
5787                   defaultval=no
5788               fi
5789           fi
5790
5791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5792 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5793           # Check whether --enable-config was given.
5794 if test "${enable_config+set}" = set; then
5795   enableval=$enable_config;
5796                           if test "$enableval" = yes; then
5797                             wx_cv_use_config='wxUSE_CONFIG=yes'
5798                           else
5799                             wx_cv_use_config='wxUSE_CONFIG=no'
5800                           fi
5801
5802 else
5803
5804                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5805
5806 fi
5807
5808
5809           eval "$wx_cv_use_config"
5810
5811           if test x"$enablestring" = xdisable; then
5812             if test $wxUSE_CONFIG = no; then
5813               result=yes
5814             else
5815               result=no
5816             fi
5817           else
5818             result=$wxUSE_CONFIG
5819           fi
5820
5821           { echo "$as_me:$LINENO: result: $result" >&5
5822 echo "${ECHO_T}$result" >&6; }
5823
5824
5825
5826           enablestring=
5827           defaultval=$wxUSE_ALL_FEATURES
5828           if test -z "$defaultval"; then
5829               if test x"$enablestring" = xdisable; then
5830                   defaultval=yes
5831               else
5832                   defaultval=no
5833               fi
5834           fi
5835
5836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5837 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5838           # Check whether --enable-protocols was given.
5839 if test "${enable_protocols+set}" = set; then
5840   enableval=$enable_protocols;
5841                           if test "$enableval" = yes; then
5842                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5843                           else
5844                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5845                           fi
5846
5847 else
5848
5849                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5850
5851 fi
5852
5853
5854           eval "$wx_cv_use_protocols"
5855
5856           if test x"$enablestring" = xdisable; then
5857             if test $wxUSE_PROTOCOL = no; then
5858               result=yes
5859             else
5860               result=no
5861             fi
5862           else
5863             result=$wxUSE_PROTOCOL
5864           fi
5865
5866           { echo "$as_me:$LINENO: result: $result" >&5
5867 echo "${ECHO_T}$result" >&6; }
5868
5869
5870           enablestring=
5871           defaultval=$wxUSE_ALL_FEATURES
5872           if test -z "$defaultval"; then
5873               if test x"$enablestring" = xdisable; then
5874                   defaultval=yes
5875               else
5876                   defaultval=no
5877               fi
5878           fi
5879
5880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5881 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5882           # Check whether --enable-ftp was given.
5883 if test "${enable_ftp+set}" = set; then
5884   enableval=$enable_ftp;
5885                           if test "$enableval" = yes; then
5886                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5887                           else
5888                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5889                           fi
5890
5891 else
5892
5893                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5894
5895 fi
5896
5897
5898           eval "$wx_cv_use_ftp"
5899
5900           if test x"$enablestring" = xdisable; then
5901             if test $wxUSE_PROTOCOL_FTP = no; then
5902               result=yes
5903             else
5904               result=no
5905             fi
5906           else
5907             result=$wxUSE_PROTOCOL_FTP
5908           fi
5909
5910           { echo "$as_me:$LINENO: result: $result" >&5
5911 echo "${ECHO_T}$result" >&6; }
5912
5913
5914           enablestring=
5915           defaultval=$wxUSE_ALL_FEATURES
5916           if test -z "$defaultval"; then
5917               if test x"$enablestring" = xdisable; then
5918                   defaultval=yes
5919               else
5920                   defaultval=no
5921               fi
5922           fi
5923
5924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5925 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5926           # Check whether --enable-http was given.
5927 if test "${enable_http+set}" = set; then
5928   enableval=$enable_http;
5929                           if test "$enableval" = yes; then
5930                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5931                           else
5932                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5933                           fi
5934
5935 else
5936
5937                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5938
5939 fi
5940
5941
5942           eval "$wx_cv_use_http"
5943
5944           if test x"$enablestring" = xdisable; then
5945             if test $wxUSE_PROTOCOL_HTTP = no; then
5946               result=yes
5947             else
5948               result=no
5949             fi
5950           else
5951             result=$wxUSE_PROTOCOL_HTTP
5952           fi
5953
5954           { echo "$as_me:$LINENO: result: $result" >&5
5955 echo "${ECHO_T}$result" >&6; }
5956
5957
5958           enablestring=
5959           defaultval=$wxUSE_ALL_FEATURES
5960           if test -z "$defaultval"; then
5961               if test x"$enablestring" = xdisable; then
5962                   defaultval=yes
5963               else
5964                   defaultval=no
5965               fi
5966           fi
5967
5968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5969 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5970           # Check whether --enable-fileproto was given.
5971 if test "${enable_fileproto+set}" = set; then
5972   enableval=$enable_fileproto;
5973                           if test "$enableval" = yes; then
5974                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5975                           else
5976                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5977                           fi
5978
5979 else
5980
5981                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5982
5983 fi
5984
5985
5986           eval "$wx_cv_use_fileproto"
5987
5988           if test x"$enablestring" = xdisable; then
5989             if test $wxUSE_PROTOCOL_FILE = no; then
5990               result=yes
5991             else
5992               result=no
5993             fi
5994           else
5995             result=$wxUSE_PROTOCOL_FILE
5996           fi
5997
5998           { echo "$as_me:$LINENO: result: $result" >&5
5999 echo "${ECHO_T}$result" >&6; }
6000
6001
6002           enablestring=
6003           defaultval=$wxUSE_ALL_FEATURES
6004           if test -z "$defaultval"; then
6005               if test x"$enablestring" = xdisable; then
6006                   defaultval=yes
6007               else
6008                   defaultval=no
6009               fi
6010           fi
6011
6012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6013 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6014           # Check whether --enable-sockets was given.
6015 if test "${enable_sockets+set}" = set; then
6016   enableval=$enable_sockets;
6017                           if test "$enableval" = yes; then
6018                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6019                           else
6020                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6021                           fi
6022
6023 else
6024
6025                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6026
6027 fi
6028
6029
6030           eval "$wx_cv_use_sockets"
6031
6032           if test x"$enablestring" = xdisable; then
6033             if test $wxUSE_SOCKETS = no; then
6034               result=yes
6035             else
6036               result=no
6037             fi
6038           else
6039             result=$wxUSE_SOCKETS
6040           fi
6041
6042           { echo "$as_me:$LINENO: result: $result" >&5
6043 echo "${ECHO_T}$result" >&6; }
6044
6045
6046           enablestring=
6047           defaultval=$wxUSE_ALL_FEATURES
6048           if test -z "$defaultval"; then
6049               if test x"$enablestring" = xdisable; then
6050                   defaultval=yes
6051               else
6052                   defaultval=no
6053               fi
6054           fi
6055
6056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6057 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6058           # Check whether --enable-ipv6 was given.
6059 if test "${enable_ipv6+set}" = set; then
6060   enableval=$enable_ipv6;
6061                           if test "$enableval" = yes; then
6062                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6063                           else
6064                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6065                           fi
6066
6067 else
6068
6069                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6070
6071 fi
6072
6073
6074           eval "$wx_cv_use_ipv6"
6075
6076           if test x"$enablestring" = xdisable; then
6077             if test $wxUSE_IPV6 = no; then
6078               result=yes
6079             else
6080               result=no
6081             fi
6082           else
6083             result=$wxUSE_IPV6
6084           fi
6085
6086           { echo "$as_me:$LINENO: result: $result" >&5
6087 echo "${ECHO_T}$result" >&6; }
6088
6089
6090           enablestring=
6091           defaultval=$wxUSE_ALL_FEATURES
6092           if test -z "$defaultval"; then
6093               if test x"$enablestring" = xdisable; then
6094                   defaultval=yes
6095               else
6096                   defaultval=no
6097               fi
6098           fi
6099
6100           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6101 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6102           # Check whether --enable-ole was given.
6103 if test "${enable_ole+set}" = set; then
6104   enableval=$enable_ole;
6105                           if test "$enableval" = yes; then
6106                             wx_cv_use_ole='wxUSE_OLE=yes'
6107                           else
6108                             wx_cv_use_ole='wxUSE_OLE=no'
6109                           fi
6110
6111 else
6112
6113                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6114
6115 fi
6116
6117
6118           eval "$wx_cv_use_ole"
6119
6120           if test x"$enablestring" = xdisable; then
6121             if test $wxUSE_OLE = no; then
6122               result=yes
6123             else
6124               result=no
6125             fi
6126           else
6127             result=$wxUSE_OLE
6128           fi
6129
6130           { echo "$as_me:$LINENO: result: $result" >&5
6131 echo "${ECHO_T}$result" >&6; }
6132
6133
6134           enablestring=
6135           defaultval=$wxUSE_ALL_FEATURES
6136           if test -z "$defaultval"; then
6137               if test x"$enablestring" = xdisable; then
6138                   defaultval=yes
6139               else
6140                   defaultval=no
6141               fi
6142           fi
6143
6144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6145 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6146           # Check whether --enable-dataobj was given.
6147 if test "${enable_dataobj+set}" = set; then
6148   enableval=$enable_dataobj;
6149                           if test "$enableval" = yes; then
6150                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6151                           else
6152                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6153                           fi
6154
6155 else
6156
6157                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6158
6159 fi
6160
6161
6162           eval "$wx_cv_use_dataobj"
6163
6164           if test x"$enablestring" = xdisable; then
6165             if test $wxUSE_DATAOBJ = no; then
6166               result=yes
6167             else
6168               result=no
6169             fi
6170           else
6171             result=$wxUSE_DATAOBJ
6172           fi
6173
6174           { echo "$as_me:$LINENO: result: $result" >&5
6175 echo "${ECHO_T}$result" >&6; }
6176
6177
6178
6179           enablestring=
6180           defaultval=$wxUSE_ALL_FEATURES
6181           if test -z "$defaultval"; then
6182               if test x"$enablestring" = xdisable; then
6183                   defaultval=yes
6184               else
6185                   defaultval=no
6186               fi
6187           fi
6188
6189           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6190 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6191           # Check whether --enable-ipc was given.
6192 if test "${enable_ipc+set}" = set; then
6193   enableval=$enable_ipc;
6194                           if test "$enableval" = yes; then
6195                             wx_cv_use_ipc='wxUSE_IPC=yes'
6196                           else
6197                             wx_cv_use_ipc='wxUSE_IPC=no'
6198                           fi
6199
6200 else
6201
6202                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6203
6204 fi
6205
6206
6207           eval "$wx_cv_use_ipc"
6208
6209           if test x"$enablestring" = xdisable; then
6210             if test $wxUSE_IPC = no; then
6211               result=yes
6212             else
6213               result=no
6214             fi
6215           else
6216             result=$wxUSE_IPC
6217           fi
6218
6219           { echo "$as_me:$LINENO: result: $result" >&5
6220 echo "${ECHO_T}$result" >&6; }
6221
6222
6223
6224           enablestring=
6225           defaultval=$wxUSE_ALL_FEATURES
6226           if test -z "$defaultval"; then
6227               if test x"$enablestring" = xdisable; then
6228                   defaultval=yes
6229               else
6230                   defaultval=no
6231               fi
6232           fi
6233
6234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6235 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6236           # Check whether --enable-baseevtloop was given.
6237 if test "${enable_baseevtloop+set}" = set; then
6238   enableval=$enable_baseevtloop;
6239                           if test "$enableval" = yes; then
6240                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6241                           else
6242                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6243                           fi
6244
6245 else
6246
6247                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6248
6249 fi
6250
6251
6252           eval "$wx_cv_use_baseevtloop"
6253
6254           if test x"$enablestring" = xdisable; then
6255             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6256               result=yes
6257             else
6258               result=no
6259             fi
6260           else
6261             result=$wxUSE_CONSOLE_EVENTLOOP
6262           fi
6263
6264           { echo "$as_me:$LINENO: result: $result" >&5
6265 echo "${ECHO_T}$result" >&6; }
6266
6267
6268           enablestring=
6269           defaultval=$wxUSE_ALL_FEATURES
6270           if test -z "$defaultval"; then
6271               if test x"$enablestring" = xdisable; then
6272                   defaultval=yes
6273               else
6274                   defaultval=no
6275               fi
6276           fi
6277
6278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6279 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6280           # Check whether --enable-epollloop was given.
6281 if test "${enable_epollloop+set}" = set; then
6282   enableval=$enable_epollloop;
6283                           if test "$enableval" = yes; then
6284                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6285                           else
6286                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6287                           fi
6288
6289 else
6290
6291                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6292
6293 fi
6294
6295
6296           eval "$wx_cv_use_epollloop"
6297
6298           if test x"$enablestring" = xdisable; then
6299             if test $wxUSE_EPOLL_DISPATCHER = no; then
6300               result=yes
6301             else
6302               result=no
6303             fi
6304           else
6305             result=$wxUSE_EPOLL_DISPATCHER
6306           fi
6307
6308           { echo "$as_me:$LINENO: result: $result" >&5
6309 echo "${ECHO_T}$result" >&6; }
6310
6311
6312           enablestring=
6313           defaultval=$wxUSE_ALL_FEATURES
6314           if test -z "$defaultval"; then
6315               if test x"$enablestring" = xdisable; then
6316                   defaultval=yes
6317               else
6318                   defaultval=no
6319               fi
6320           fi
6321
6322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6323 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6324           # Check whether --enable-selectloop was given.
6325 if test "${enable_selectloop+set}" = set; then
6326   enableval=$enable_selectloop;
6327                           if test "$enableval" = yes; then
6328                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6329                           else
6330                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6331                           fi
6332
6333 else
6334
6335                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6336
6337 fi
6338
6339
6340           eval "$wx_cv_use_selectloop"
6341
6342           if test x"$enablestring" = xdisable; then
6343             if test $wxUSE_SELECT_DISPATCHER = no; then
6344               result=yes
6345             else
6346               result=no
6347             fi
6348           else
6349             result=$wxUSE_SELECT_DISPATCHER
6350           fi
6351
6352           { echo "$as_me:$LINENO: result: $result" >&5
6353 echo "${ECHO_T}$result" >&6; }
6354
6355
6356
6357           enablestring=
6358           defaultval=$wxUSE_ALL_FEATURES
6359           if test -z "$defaultval"; then
6360               if test x"$enablestring" = xdisable; then
6361                   defaultval=yes
6362               else
6363                   defaultval=no
6364               fi
6365           fi
6366
6367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6368 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6369           # Check whether --enable-any was given.
6370 if test "${enable_any+set}" = set; then
6371   enableval=$enable_any;
6372                           if test "$enableval" = yes; then
6373                             wx_cv_use_any='wxUSE_ANY=yes'
6374                           else
6375                             wx_cv_use_any='wxUSE_ANY=no'
6376                           fi
6377
6378 else
6379
6380                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6381
6382 fi
6383
6384
6385           eval "$wx_cv_use_any"
6386
6387           if test x"$enablestring" = xdisable; then
6388             if test $wxUSE_ANY = no; then
6389               result=yes
6390             else
6391               result=no
6392             fi
6393           else
6394             result=$wxUSE_ANY
6395           fi
6396
6397           { echo "$as_me:$LINENO: result: $result" >&5
6398 echo "${ECHO_T}$result" >&6; }
6399
6400
6401           enablestring=
6402           defaultval=$wxUSE_ALL_FEATURES
6403           if test -z "$defaultval"; then
6404               if test x"$enablestring" = xdisable; then
6405                   defaultval=yes
6406               else
6407                   defaultval=no
6408               fi
6409           fi
6410
6411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6412 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6413           # Check whether --enable-apple_ieee was given.
6414 if test "${enable_apple_ieee+set}" = set; then
6415   enableval=$enable_apple_ieee;
6416                           if test "$enableval" = yes; then
6417                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6418                           else
6419                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6420                           fi
6421
6422 else
6423
6424                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6425
6426 fi
6427
6428
6429           eval "$wx_cv_use_apple_ieee"
6430
6431           if test x"$enablestring" = xdisable; then
6432             if test $wxUSE_APPLE_IEEE = no; then
6433               result=yes
6434             else
6435               result=no
6436             fi
6437           else
6438             result=$wxUSE_APPLE_IEEE
6439           fi
6440
6441           { echo "$as_me:$LINENO: result: $result" >&5
6442 echo "${ECHO_T}$result" >&6; }
6443
6444
6445           enablestring=
6446           defaultval=$wxUSE_ALL_FEATURES
6447           if test -z "$defaultval"; then
6448               if test x"$enablestring" = xdisable; then
6449                   defaultval=yes
6450               else
6451                   defaultval=no
6452               fi
6453           fi
6454
6455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6456 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6457           # Check whether --enable-arcstream was given.
6458 if test "${enable_arcstream+set}" = set; then
6459   enableval=$enable_arcstream;
6460                           if test "$enableval" = yes; then
6461                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6462                           else
6463                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6464                           fi
6465
6466 else
6467
6468                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6469
6470 fi
6471
6472
6473           eval "$wx_cv_use_arcstream"
6474
6475           if test x"$enablestring" = xdisable; then
6476             if test $wxUSE_ARCHIVE_STREAMS = no; then
6477               result=yes
6478             else
6479               result=no
6480             fi
6481           else
6482             result=$wxUSE_ARCHIVE_STREAMS
6483           fi
6484
6485           { echo "$as_me:$LINENO: result: $result" >&5
6486 echo "${ECHO_T}$result" >&6; }
6487
6488
6489           enablestring=
6490           defaultval=$wxUSE_ALL_FEATURES
6491           if test -z "$defaultval"; then
6492               if test x"$enablestring" = xdisable; then
6493                   defaultval=yes
6494               else
6495                   defaultval=no
6496               fi
6497           fi
6498
6499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6500 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6501           # Check whether --enable-base64 was given.
6502 if test "${enable_base64+set}" = set; then
6503   enableval=$enable_base64;
6504                           if test "$enableval" = yes; then
6505                             wx_cv_use_base64='wxUSE_BASE64=yes'
6506                           else
6507                             wx_cv_use_base64='wxUSE_BASE64=no'
6508                           fi
6509
6510 else
6511
6512                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6513
6514 fi
6515
6516
6517           eval "$wx_cv_use_base64"
6518
6519           if test x"$enablestring" = xdisable; then
6520             if test $wxUSE_BASE64 = no; then
6521               result=yes
6522             else
6523               result=no
6524             fi
6525           else
6526             result=$wxUSE_BASE64
6527           fi
6528
6529           { echo "$as_me:$LINENO: result: $result" >&5
6530 echo "${ECHO_T}$result" >&6; }
6531
6532
6533           enablestring=
6534           defaultval=$wxUSE_ALL_FEATURES
6535           if test -z "$defaultval"; then
6536               if test x"$enablestring" = xdisable; then
6537                   defaultval=yes
6538               else
6539                   defaultval=no
6540               fi
6541           fi
6542
6543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6544 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6545           # Check whether --enable-backtrace was given.
6546 if test "${enable_backtrace+set}" = set; then
6547   enableval=$enable_backtrace;
6548                           if test "$enableval" = yes; then
6549                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6550                           else
6551                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6552                           fi
6553
6554 else
6555
6556                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6557
6558 fi
6559
6560
6561           eval "$wx_cv_use_backtrace"
6562
6563           if test x"$enablestring" = xdisable; then
6564             if test $wxUSE_STACKWALKER = no; then
6565               result=yes
6566             else
6567               result=no
6568             fi
6569           else
6570             result=$wxUSE_STACKWALKER
6571           fi
6572
6573           { echo "$as_me:$LINENO: result: $result" >&5
6574 echo "${ECHO_T}$result" >&6; }
6575
6576
6577           enablestring=
6578           defaultval=$wxUSE_ALL_FEATURES
6579           if test -z "$defaultval"; then
6580               if test x"$enablestring" = xdisable; then
6581                   defaultval=yes
6582               else
6583                   defaultval=no
6584               fi
6585           fi
6586
6587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6588 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6589           # Check whether --enable-catch_segvs was given.
6590 if test "${enable_catch_segvs+set}" = set; then
6591   enableval=$enable_catch_segvs;
6592                           if test "$enableval" = yes; then
6593                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6594                           else
6595                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6596                           fi
6597
6598 else
6599
6600                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6601
6602 fi
6603
6604
6605           eval "$wx_cv_use_catch_segvs"
6606
6607           if test x"$enablestring" = xdisable; then
6608             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6609               result=yes
6610             else
6611               result=no
6612             fi
6613           else
6614             result=$wxUSE_ON_FATAL_EXCEPTION
6615           fi
6616
6617           { echo "$as_me:$LINENO: result: $result" >&5
6618 echo "${ECHO_T}$result" >&6; }
6619
6620
6621           enablestring=
6622           defaultval=$wxUSE_ALL_FEATURES
6623           if test -z "$defaultval"; then
6624               if test x"$enablestring" = xdisable; then
6625                   defaultval=yes
6626               else
6627                   defaultval=no
6628               fi
6629           fi
6630
6631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6632 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6633           # Check whether --enable-cmdline was given.
6634 if test "${enable_cmdline+set}" = set; then
6635   enableval=$enable_cmdline;
6636                           if test "$enableval" = yes; then
6637                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6638                           else
6639                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6640                           fi
6641
6642 else
6643
6644                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6645
6646 fi
6647
6648
6649           eval "$wx_cv_use_cmdline"
6650
6651           if test x"$enablestring" = xdisable; then
6652             if test $wxUSE_CMDLINE_PARSER = no; then
6653               result=yes
6654             else
6655               result=no
6656             fi
6657           else
6658             result=$wxUSE_CMDLINE_PARSER
6659           fi
6660
6661           { echo "$as_me:$LINENO: result: $result" >&5
6662 echo "${ECHO_T}$result" >&6; }
6663
6664
6665           enablestring=
6666           defaultval=$wxUSE_ALL_FEATURES
6667           if test -z "$defaultval"; then
6668               if test x"$enablestring" = xdisable; then
6669                   defaultval=yes
6670               else
6671                   defaultval=no
6672               fi
6673           fi
6674
6675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6676 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6677           # Check whether --enable-datetime was given.
6678 if test "${enable_datetime+set}" = set; then
6679   enableval=$enable_datetime;
6680                           if test "$enableval" = yes; then
6681                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6682                           else
6683                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6684                           fi
6685
6686 else
6687
6688                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6689
6690 fi
6691
6692
6693           eval "$wx_cv_use_datetime"
6694
6695           if test x"$enablestring" = xdisable; then
6696             if test $wxUSE_DATETIME = no; then
6697               result=yes
6698             else
6699               result=no
6700             fi
6701           else
6702             result=$wxUSE_DATETIME
6703           fi
6704
6705           { echo "$as_me:$LINENO: result: $result" >&5
6706 echo "${ECHO_T}$result" >&6; }
6707
6708
6709           enablestring=
6710           defaultval=$wxUSE_ALL_FEATURES
6711           if test -z "$defaultval"; then
6712               if test x"$enablestring" = xdisable; then
6713                   defaultval=yes
6714               else
6715                   defaultval=no
6716               fi
6717           fi
6718
6719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6720 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6721           # Check whether --enable-debugreport was given.
6722 if test "${enable_debugreport+set}" = set; then
6723   enableval=$enable_debugreport;
6724                           if test "$enableval" = yes; then
6725                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6726                           else
6727                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6728                           fi
6729
6730 else
6731
6732                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6733
6734 fi
6735
6736
6737           eval "$wx_cv_use_debugreport"
6738
6739           if test x"$enablestring" = xdisable; then
6740             if test $wxUSE_DEBUGREPORT = no; then
6741               result=yes
6742             else
6743               result=no
6744             fi
6745           else
6746             result=$wxUSE_DEBUGREPORT
6747           fi
6748
6749           { echo "$as_me:$LINENO: result: $result" >&5
6750 echo "${ECHO_T}$result" >&6; }
6751
6752
6753           enablestring=
6754           defaultval=$wxUSE_ALL_FEATURES
6755           if test -z "$defaultval"; then
6756               if test x"$enablestring" = xdisable; then
6757                   defaultval=yes
6758               else
6759                   defaultval=no
6760               fi
6761           fi
6762
6763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6764 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6765           # Check whether --enable-dialupman was given.
6766 if test "${enable_dialupman+set}" = set; then
6767   enableval=$enable_dialupman;
6768                           if test "$enableval" = yes; then
6769                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6770                           else
6771                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6772                           fi
6773
6774 else
6775
6776                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6777
6778 fi
6779
6780
6781           eval "$wx_cv_use_dialupman"
6782
6783           if test x"$enablestring" = xdisable; then
6784             if test $wxUSE_DIALUP_MANAGER = no; then
6785               result=yes
6786             else
6787               result=no
6788             fi
6789           else
6790             result=$wxUSE_DIALUP_MANAGER
6791           fi
6792
6793           { echo "$as_me:$LINENO: result: $result" >&5
6794 echo "${ECHO_T}$result" >&6; }
6795
6796
6797           enablestring=
6798           defaultval=$wxUSE_ALL_FEATURES
6799           if test -z "$defaultval"; then
6800               if test x"$enablestring" = xdisable; then
6801                   defaultval=yes
6802               else
6803                   defaultval=no
6804               fi
6805           fi
6806
6807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6808 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6809           # Check whether --enable-dynlib was given.
6810 if test "${enable_dynlib+set}" = set; then
6811   enableval=$enable_dynlib;
6812                           if test "$enableval" = yes; then
6813                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6814                           else
6815                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6816                           fi
6817
6818 else
6819
6820                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6821
6822 fi
6823
6824
6825           eval "$wx_cv_use_dynlib"
6826
6827           if test x"$enablestring" = xdisable; then
6828             if test $wxUSE_DYNLIB_CLASS = no; then
6829               result=yes
6830             else
6831               result=no
6832             fi
6833           else
6834             result=$wxUSE_DYNLIB_CLASS
6835           fi
6836
6837           { echo "$as_me:$LINENO: result: $result" >&5
6838 echo "${ECHO_T}$result" >&6; }
6839
6840
6841           enablestring=
6842           defaultval=$wxUSE_ALL_FEATURES
6843           if test -z "$defaultval"; then
6844               if test x"$enablestring" = xdisable; then
6845                   defaultval=yes
6846               else
6847                   defaultval=no
6848               fi
6849           fi
6850
6851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6852 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6853           # Check whether --enable-dynamicloader was given.
6854 if test "${enable_dynamicloader+set}" = set; then
6855   enableval=$enable_dynamicloader;
6856                           if test "$enableval" = yes; then
6857                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6858                           else
6859                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6860                           fi
6861
6862 else
6863
6864                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6865
6866 fi
6867
6868
6869           eval "$wx_cv_use_dynamicloader"
6870
6871           if test x"$enablestring" = xdisable; then
6872             if test $wxUSE_DYNAMIC_LOADER = no; then
6873               result=yes
6874             else
6875               result=no
6876             fi
6877           else
6878             result=$wxUSE_DYNAMIC_LOADER
6879           fi
6880
6881           { echo "$as_me:$LINENO: result: $result" >&5
6882 echo "${ECHO_T}$result" >&6; }
6883
6884
6885           enablestring=
6886           defaultval=$wxUSE_ALL_FEATURES
6887           if test -z "$defaultval"; then
6888               if test x"$enablestring" = xdisable; then
6889                   defaultval=yes
6890               else
6891                   defaultval=no
6892               fi
6893           fi
6894
6895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6896 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6897           # Check whether --enable-exceptions was given.
6898 if test "${enable_exceptions+set}" = set; then
6899   enableval=$enable_exceptions;
6900                           if test "$enableval" = yes; then
6901                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6902                           else
6903                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6904                           fi
6905
6906 else
6907
6908                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6909
6910 fi
6911
6912
6913           eval "$wx_cv_use_exceptions"
6914
6915           if test x"$enablestring" = xdisable; then
6916             if test $wxUSE_EXCEPTIONS = no; then
6917               result=yes
6918             else
6919               result=no
6920             fi
6921           else
6922             result=$wxUSE_EXCEPTIONS
6923           fi
6924
6925           { echo "$as_me:$LINENO: result: $result" >&5
6926 echo "${ECHO_T}$result" >&6; }
6927
6928
6929           enablestring=
6930           defaultval=$wxUSE_ALL_FEATURES
6931           if test -z "$defaultval"; then
6932               if test x"$enablestring" = xdisable; then
6933                   defaultval=yes
6934               else
6935                   defaultval=no
6936               fi
6937           fi
6938
6939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6940 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6941           # Check whether --enable-ffile was given.
6942 if test "${enable_ffile+set}" = set; then
6943   enableval=$enable_ffile;
6944                           if test "$enableval" = yes; then
6945                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6946                           else
6947                             wx_cv_use_ffile='wxUSE_FFILE=no'
6948                           fi
6949
6950 else
6951
6952                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6953
6954 fi
6955
6956
6957           eval "$wx_cv_use_ffile"
6958
6959           if test x"$enablestring" = xdisable; then
6960             if test $wxUSE_FFILE = no; then
6961               result=yes
6962             else
6963               result=no
6964             fi
6965           else
6966             result=$wxUSE_FFILE
6967           fi
6968
6969           { echo "$as_me:$LINENO: result: $result" >&5
6970 echo "${ECHO_T}$result" >&6; }
6971
6972
6973           enablestring=
6974           defaultval=$wxUSE_ALL_FEATURES
6975           if test -z "$defaultval"; then
6976               if test x"$enablestring" = xdisable; then
6977                   defaultval=yes
6978               else
6979                   defaultval=no
6980               fi
6981           fi
6982
6983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6984 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6985           # Check whether --enable-file was given.
6986 if test "${enable_file+set}" = set; then
6987   enableval=$enable_file;
6988                           if test "$enableval" = yes; then
6989                             wx_cv_use_file='wxUSE_FILE=yes'
6990                           else
6991                             wx_cv_use_file='wxUSE_FILE=no'
6992                           fi
6993
6994 else
6995
6996                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6997
6998 fi
6999
7000
7001           eval "$wx_cv_use_file"
7002
7003           if test x"$enablestring" = xdisable; then
7004             if test $wxUSE_FILE = no; then
7005               result=yes
7006             else
7007               result=no
7008             fi
7009           else
7010             result=$wxUSE_FILE
7011           fi
7012
7013           { echo "$as_me:$LINENO: result: $result" >&5
7014 echo "${ECHO_T}$result" >&6; }
7015
7016
7017           enablestring=
7018           defaultval=$wxUSE_ALL_FEATURES
7019           if test -z "$defaultval"; then
7020               if test x"$enablestring" = xdisable; then
7021                   defaultval=yes
7022               else
7023                   defaultval=no
7024               fi
7025           fi
7026
7027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7028 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7029           # Check whether --enable-filesystem was given.
7030 if test "${enable_filesystem+set}" = set; then
7031   enableval=$enable_filesystem;
7032                           if test "$enableval" = yes; then
7033                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7034                           else
7035                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7036                           fi
7037
7038 else
7039
7040                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7041
7042 fi
7043
7044
7045           eval "$wx_cv_use_filesystem"
7046
7047           if test x"$enablestring" = xdisable; then
7048             if test $wxUSE_FILESYSTEM = no; then
7049               result=yes
7050             else
7051               result=no
7052             fi
7053           else
7054             result=$wxUSE_FILESYSTEM
7055           fi
7056
7057           { echo "$as_me:$LINENO: result: $result" >&5
7058 echo "${ECHO_T}$result" >&6; }
7059
7060
7061           enablestring=
7062           defaultval=$wxUSE_ALL_FEATURES
7063           if test -z "$defaultval"; then
7064               if test x"$enablestring" = xdisable; then
7065                   defaultval=yes
7066               else
7067                   defaultval=no
7068               fi
7069           fi
7070
7071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7072 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7073           # Check whether --enable-fontenum was given.
7074 if test "${enable_fontenum+set}" = set; then
7075   enableval=$enable_fontenum;
7076                           if test "$enableval" = yes; then
7077                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7078                           else
7079                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7080                           fi
7081
7082 else
7083
7084                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7085
7086 fi
7087
7088
7089           eval "$wx_cv_use_fontenum"
7090
7091           if test x"$enablestring" = xdisable; then
7092             if test $wxUSE_FONTENUM = no; then
7093               result=yes
7094             else
7095               result=no
7096             fi
7097           else
7098             result=$wxUSE_FONTENUM
7099           fi
7100
7101           { echo "$as_me:$LINENO: result: $result" >&5
7102 echo "${ECHO_T}$result" >&6; }
7103
7104
7105           enablestring=
7106           defaultval=$wxUSE_ALL_FEATURES
7107           if test -z "$defaultval"; then
7108               if test x"$enablestring" = xdisable; then
7109                   defaultval=yes
7110               else
7111                   defaultval=no
7112               fi
7113           fi
7114
7115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7116 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7117           # Check whether --enable-fontmap was given.
7118 if test "${enable_fontmap+set}" = set; then
7119   enableval=$enable_fontmap;
7120                           if test "$enableval" = yes; then
7121                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7122                           else
7123                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7124                           fi
7125
7126 else
7127
7128                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7129
7130 fi
7131
7132
7133           eval "$wx_cv_use_fontmap"
7134
7135           if test x"$enablestring" = xdisable; then
7136             if test $wxUSE_FONTMAP = no; then
7137               result=yes
7138             else
7139               result=no
7140             fi
7141           else
7142             result=$wxUSE_FONTMAP
7143           fi
7144
7145           { echo "$as_me:$LINENO: result: $result" >&5
7146 echo "${ECHO_T}$result" >&6; }
7147
7148
7149           enablestring=
7150           defaultval=$wxUSE_ALL_FEATURES
7151           if test -z "$defaultval"; then
7152               if test x"$enablestring" = xdisable; then
7153                   defaultval=yes
7154               else
7155                   defaultval=no
7156               fi
7157           fi
7158
7159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7160 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7161           # Check whether --enable-fs_archive was given.
7162 if test "${enable_fs_archive+set}" = set; then
7163   enableval=$enable_fs_archive;
7164                           if test "$enableval" = yes; then
7165                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7166                           else
7167                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7168                           fi
7169
7170 else
7171
7172                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7173
7174 fi
7175
7176
7177           eval "$wx_cv_use_fs_archive"
7178
7179           if test x"$enablestring" = xdisable; then
7180             if test $wxUSE_FS_ARCHIVE = no; then
7181               result=yes
7182             else
7183               result=no
7184             fi
7185           else
7186             result=$wxUSE_FS_ARCHIVE
7187           fi
7188
7189           { echo "$as_me:$LINENO: result: $result" >&5
7190 echo "${ECHO_T}$result" >&6; }
7191
7192
7193           enablestring=
7194           defaultval=$wxUSE_ALL_FEATURES
7195           if test -z "$defaultval"; then
7196               if test x"$enablestring" = xdisable; then
7197                   defaultval=yes
7198               else
7199                   defaultval=no
7200               fi
7201           fi
7202
7203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7204 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7205           # Check whether --enable-fs_inet was given.
7206 if test "${enable_fs_inet+set}" = set; then
7207   enableval=$enable_fs_inet;
7208                           if test "$enableval" = yes; then
7209                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7210                           else
7211                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7212                           fi
7213
7214 else
7215
7216                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7217
7218 fi
7219
7220
7221           eval "$wx_cv_use_fs_inet"
7222
7223           if test x"$enablestring" = xdisable; then
7224             if test $wxUSE_FS_INET = no; then
7225               result=yes
7226             else
7227               result=no
7228             fi
7229           else
7230             result=$wxUSE_FS_INET
7231           fi
7232
7233           { echo "$as_me:$LINENO: result: $result" >&5
7234 echo "${ECHO_T}$result" >&6; }
7235
7236
7237           enablestring=
7238           defaultval=$wxUSE_ALL_FEATURES
7239           if test -z "$defaultval"; then
7240               if test x"$enablestring" = xdisable; then
7241                   defaultval=yes
7242               else
7243                   defaultval=no
7244               fi
7245           fi
7246
7247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7248 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7249           # Check whether --enable-fs_zip was given.
7250 if test "${enable_fs_zip+set}" = set; then
7251   enableval=$enable_fs_zip;
7252                           if test "$enableval" = yes; then
7253                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7254                           else
7255                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7256                           fi
7257
7258 else
7259
7260                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7261
7262 fi
7263
7264
7265           eval "$wx_cv_use_fs_zip"
7266
7267           if test x"$enablestring" = xdisable; then
7268             if test $wxUSE_FS_ZIP = no; then
7269               result=yes
7270             else
7271               result=no
7272             fi
7273           else
7274             result=$wxUSE_FS_ZIP
7275           fi
7276
7277           { echo "$as_me:$LINENO: result: $result" >&5
7278 echo "${ECHO_T}$result" >&6; }
7279
7280
7281           enablestring=
7282           defaultval=$wxUSE_ALL_FEATURES
7283           if test -z "$defaultval"; then
7284               if test x"$enablestring" = xdisable; then
7285                   defaultval=yes
7286               else
7287                   defaultval=no
7288               fi
7289           fi
7290
7291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7292 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7293           # Check whether --enable-fswatcher was given.
7294 if test "${enable_fswatcher+set}" = set; then
7295   enableval=$enable_fswatcher;
7296                           if test "$enableval" = yes; then
7297                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7298                           else
7299                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7300                           fi
7301
7302 else
7303
7304                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7305
7306 fi
7307
7308
7309           eval "$wx_cv_use_fswatcher"
7310
7311           if test x"$enablestring" = xdisable; then
7312             if test $wxUSE_FSWATCHER = no; then
7313               result=yes
7314             else
7315               result=no
7316             fi
7317           else
7318             result=$wxUSE_FSWATCHER
7319           fi
7320
7321           { echo "$as_me:$LINENO: result: $result" >&5
7322 echo "${ECHO_T}$result" >&6; }
7323
7324
7325           enablestring=
7326           defaultval=$wxUSE_ALL_FEATURES
7327           if test -z "$defaultval"; then
7328               if test x"$enablestring" = xdisable; then
7329                   defaultval=yes
7330               else
7331                   defaultval=no
7332               fi
7333           fi
7334
7335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7336 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7337           # Check whether --enable-geometry was given.
7338 if test "${enable_geometry+set}" = set; then
7339   enableval=$enable_geometry;
7340                           if test "$enableval" = yes; then
7341                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7342                           else
7343                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7344                           fi
7345
7346 else
7347
7348                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7349
7350 fi
7351
7352
7353           eval "$wx_cv_use_geometry"
7354
7355           if test x"$enablestring" = xdisable; then
7356             if test $wxUSE_GEOMETRY = no; then
7357               result=yes
7358             else
7359               result=no
7360             fi
7361           else
7362             result=$wxUSE_GEOMETRY
7363           fi
7364
7365           { echo "$as_me:$LINENO: result: $result" >&5
7366 echo "${ECHO_T}$result" >&6; }
7367
7368
7369           enablestring=
7370           defaultval=$wxUSE_ALL_FEATURES
7371           if test -z "$defaultval"; then
7372               if test x"$enablestring" = xdisable; then
7373                   defaultval=yes
7374               else
7375                   defaultval=no
7376               fi
7377           fi
7378
7379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7380 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7381           # Check whether --enable-log was given.
7382 if test "${enable_log+set}" = set; then
7383   enableval=$enable_log;
7384                           if test "$enableval" = yes; then
7385                             wx_cv_use_log='wxUSE_LOG=yes'
7386                           else
7387                             wx_cv_use_log='wxUSE_LOG=no'
7388                           fi
7389
7390 else
7391
7392                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7393
7394 fi
7395
7396
7397           eval "$wx_cv_use_log"
7398
7399           if test x"$enablestring" = xdisable; then
7400             if test $wxUSE_LOG = no; then
7401               result=yes
7402             else
7403               result=no
7404             fi
7405           else
7406             result=$wxUSE_LOG
7407           fi
7408
7409           { echo "$as_me:$LINENO: result: $result" >&5
7410 echo "${ECHO_T}$result" >&6; }
7411
7412
7413           enablestring=
7414           defaultval=$wxUSE_ALL_FEATURES
7415           if test -z "$defaultval"; then
7416               if test x"$enablestring" = xdisable; then
7417                   defaultval=yes
7418               else
7419                   defaultval=no
7420               fi
7421           fi
7422
7423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7424 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7425           # Check whether --enable-longlong was given.
7426 if test "${enable_longlong+set}" = set; then
7427   enableval=$enable_longlong;
7428                           if test "$enableval" = yes; then
7429                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7430                           else
7431                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7432                           fi
7433
7434 else
7435
7436                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7437
7438 fi
7439
7440
7441           eval "$wx_cv_use_longlong"
7442
7443           if test x"$enablestring" = xdisable; then
7444             if test $wxUSE_LONGLONG = no; then
7445               result=yes
7446             else
7447               result=no
7448             fi
7449           else
7450             result=$wxUSE_LONGLONG
7451           fi
7452
7453           { echo "$as_me:$LINENO: result: $result" >&5
7454 echo "${ECHO_T}$result" >&6; }
7455
7456
7457           enablestring=
7458           defaultval=$wxUSE_ALL_FEATURES
7459           if test -z "$defaultval"; then
7460               if test x"$enablestring" = xdisable; then
7461                   defaultval=yes
7462               else
7463                   defaultval=no
7464               fi
7465           fi
7466
7467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7468 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7469           # Check whether --enable-mimetype was given.
7470 if test "${enable_mimetype+set}" = set; then
7471   enableval=$enable_mimetype;
7472                           if test "$enableval" = yes; then
7473                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7474                           else
7475                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7476                           fi
7477
7478 else
7479
7480                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7481
7482 fi
7483
7484
7485           eval "$wx_cv_use_mimetype"
7486
7487           if test x"$enablestring" = xdisable; then
7488             if test $wxUSE_MIMETYPE = no; then
7489               result=yes
7490             else
7491               result=no
7492             fi
7493           else
7494             result=$wxUSE_MIMETYPE
7495           fi
7496
7497           { echo "$as_me:$LINENO: result: $result" >&5
7498 echo "${ECHO_T}$result" >&6; }
7499
7500
7501           enablestring=
7502           defaultval=$wxUSE_ALL_FEATURES
7503           if test -z "$defaultval"; then
7504               if test x"$enablestring" = xdisable; then
7505                   defaultval=yes
7506               else
7507                   defaultval=no
7508               fi
7509           fi
7510
7511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7512 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7513           # Check whether --enable-printfposparam was given.
7514 if test "${enable_printfposparam+set}" = set; then
7515   enableval=$enable_printfposparam;
7516                           if test "$enableval" = yes; then
7517                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7518                           else
7519                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7520                           fi
7521
7522 else
7523
7524                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7525
7526 fi
7527
7528
7529           eval "$wx_cv_use_printfposparam"
7530
7531           if test x"$enablestring" = xdisable; then
7532             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7533               result=yes
7534             else
7535               result=no
7536             fi
7537           else
7538             result=$wxUSE_PRINTF_POS_PARAMS
7539           fi
7540
7541           { echo "$as_me:$LINENO: result: $result" >&5
7542 echo "${ECHO_T}$result" >&6; }
7543
7544
7545           enablestring=
7546           defaultval=$wxUSE_ALL_FEATURES
7547           if test -z "$defaultval"; then
7548               if test x"$enablestring" = xdisable; then
7549                   defaultval=yes
7550               else
7551                   defaultval=no
7552               fi
7553           fi
7554
7555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7556 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7557           # Check whether --enable-snglinst was given.
7558 if test "${enable_snglinst+set}" = set; then
7559   enableval=$enable_snglinst;
7560                           if test "$enableval" = yes; then
7561                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7562                           else
7563                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7564                           fi
7565
7566 else
7567
7568                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7569
7570 fi
7571
7572
7573           eval "$wx_cv_use_snglinst"
7574
7575           if test x"$enablestring" = xdisable; then
7576             if test $wxUSE_SNGLINST_CHECKER = no; then
7577               result=yes
7578             else
7579               result=no
7580             fi
7581           else
7582             result=$wxUSE_SNGLINST_CHECKER
7583           fi
7584
7585           { echo "$as_me:$LINENO: result: $result" >&5
7586 echo "${ECHO_T}$result" >&6; }
7587
7588
7589           enablestring=
7590           defaultval=$wxUSE_ALL_FEATURES
7591           if test -z "$defaultval"; then
7592               if test x"$enablestring" = xdisable; then
7593                   defaultval=yes
7594               else
7595                   defaultval=no
7596               fi
7597           fi
7598
7599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7600 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7601           # Check whether --enable-sound was given.
7602 if test "${enable_sound+set}" = set; then
7603   enableval=$enable_sound;
7604                           if test "$enableval" = yes; then
7605                             wx_cv_use_sound='wxUSE_SOUND=yes'
7606                           else
7607                             wx_cv_use_sound='wxUSE_SOUND=no'
7608                           fi
7609
7610 else
7611
7612                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7613
7614 fi
7615
7616
7617           eval "$wx_cv_use_sound"
7618
7619           if test x"$enablestring" = xdisable; then
7620             if test $wxUSE_SOUND = no; then
7621               result=yes
7622             else
7623               result=no
7624             fi
7625           else
7626             result=$wxUSE_SOUND
7627           fi
7628
7629           { echo "$as_me:$LINENO: result: $result" >&5
7630 echo "${ECHO_T}$result" >&6; }
7631
7632
7633           enablestring=
7634           defaultval=$wxUSE_ALL_FEATURES
7635           if test -z "$defaultval"; then
7636               if test x"$enablestring" = xdisable; then
7637                   defaultval=yes
7638               else
7639                   defaultval=no
7640               fi
7641           fi
7642
7643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7644 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7645           # Check whether --enable-stdpaths was given.
7646 if test "${enable_stdpaths+set}" = set; then
7647   enableval=$enable_stdpaths;
7648                           if test "$enableval" = yes; then
7649                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7650                           else
7651                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7652                           fi
7653
7654 else
7655
7656                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7657
7658 fi
7659
7660
7661           eval "$wx_cv_use_stdpaths"
7662
7663           if test x"$enablestring" = xdisable; then
7664             if test $wxUSE_STDPATHS = no; then
7665               result=yes
7666             else
7667               result=no
7668             fi
7669           else
7670             result=$wxUSE_STDPATHS
7671           fi
7672
7673           { echo "$as_me:$LINENO: result: $result" >&5
7674 echo "${ECHO_T}$result" >&6; }
7675
7676
7677           enablestring=
7678           defaultval=$wxUSE_ALL_FEATURES
7679           if test -z "$defaultval"; then
7680               if test x"$enablestring" = xdisable; then
7681                   defaultval=yes
7682               else
7683                   defaultval=no
7684               fi
7685           fi
7686
7687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7688 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7689           # Check whether --enable-stopwatch was given.
7690 if test "${enable_stopwatch+set}" = set; then
7691   enableval=$enable_stopwatch;
7692                           if test "$enableval" = yes; then
7693                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7694                           else
7695                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7696                           fi
7697
7698 else
7699
7700                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7701
7702 fi
7703
7704
7705           eval "$wx_cv_use_stopwatch"
7706
7707           if test x"$enablestring" = xdisable; then
7708             if test $wxUSE_STOPWATCH = no; then
7709               result=yes
7710             else
7711               result=no
7712             fi
7713           else
7714             result=$wxUSE_STOPWATCH
7715           fi
7716
7717           { echo "$as_me:$LINENO: result: $result" >&5
7718 echo "${ECHO_T}$result" >&6; }
7719
7720
7721           enablestring=
7722           defaultval=$wxUSE_ALL_FEATURES
7723           if test -z "$defaultval"; then
7724               if test x"$enablestring" = xdisable; then
7725                   defaultval=yes
7726               else
7727                   defaultval=no
7728               fi
7729           fi
7730
7731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7732 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7733           # Check whether --enable-streams was given.
7734 if test "${enable_streams+set}" = set; then
7735   enableval=$enable_streams;
7736                           if test "$enableval" = yes; then
7737                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7738                           else
7739                             wx_cv_use_streams='wxUSE_STREAMS=no'
7740                           fi
7741
7742 else
7743
7744                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7745
7746 fi
7747
7748
7749           eval "$wx_cv_use_streams"
7750
7751           if test x"$enablestring" = xdisable; then
7752             if test $wxUSE_STREAMS = no; then
7753               result=yes
7754             else
7755               result=no
7756             fi
7757           else
7758             result=$wxUSE_STREAMS
7759           fi
7760
7761           { echo "$as_me:$LINENO: result: $result" >&5
7762 echo "${ECHO_T}$result" >&6; }
7763
7764
7765           enablestring=
7766           defaultval=$wxUSE_ALL_FEATURES
7767           if test -z "$defaultval"; then
7768               if test x"$enablestring" = xdisable; then
7769                   defaultval=yes
7770               else
7771                   defaultval=no
7772               fi
7773           fi
7774
7775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7776 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7777           # Check whether --enable-sysoptions was given.
7778 if test "${enable_sysoptions+set}" = set; then
7779   enableval=$enable_sysoptions;
7780                           if test "$enableval" = yes; then
7781                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7782                           else
7783                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7784                           fi
7785
7786 else
7787
7788                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7789
7790 fi
7791
7792
7793           eval "$wx_cv_use_sysoptions"
7794
7795           if test x"$enablestring" = xdisable; then
7796             if test $wxUSE_SYSTEM_OPTIONS = no; then
7797               result=yes
7798             else
7799               result=no
7800             fi
7801           else
7802             result=$wxUSE_SYSTEM_OPTIONS
7803           fi
7804
7805           { echo "$as_me:$LINENO: result: $result" >&5
7806 echo "${ECHO_T}$result" >&6; }
7807
7808
7809           enablestring=
7810           defaultval=$wxUSE_ALL_FEATURES
7811           if test -z "$defaultval"; then
7812               if test x"$enablestring" = xdisable; then
7813                   defaultval=yes
7814               else
7815                   defaultval=no
7816               fi
7817           fi
7818
7819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7820 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7821           # Check whether --enable-tarstream was given.
7822 if test "${enable_tarstream+set}" = set; then
7823   enableval=$enable_tarstream;
7824                           if test "$enableval" = yes; then
7825                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7826                           else
7827                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7828                           fi
7829
7830 else
7831
7832                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7833
7834 fi
7835
7836
7837           eval "$wx_cv_use_tarstream"
7838
7839           if test x"$enablestring" = xdisable; then
7840             if test $wxUSE_TARSTREAM = no; then
7841               result=yes
7842             else
7843               result=no
7844             fi
7845           else
7846             result=$wxUSE_TARSTREAM
7847           fi
7848
7849           { echo "$as_me:$LINENO: result: $result" >&5
7850 echo "${ECHO_T}$result" >&6; }
7851
7852
7853           enablestring=
7854           defaultval=$wxUSE_ALL_FEATURES
7855           if test -z "$defaultval"; then
7856               if test x"$enablestring" = xdisable; then
7857                   defaultval=yes
7858               else
7859                   defaultval=no
7860               fi
7861           fi
7862
7863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7864 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7865           # Check whether --enable-textbuf was given.
7866 if test "${enable_textbuf+set}" = set; then
7867   enableval=$enable_textbuf;
7868                           if test "$enableval" = yes; then
7869                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7870                           else
7871                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7872                           fi
7873
7874 else
7875
7876                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7877
7878 fi
7879
7880
7881           eval "$wx_cv_use_textbuf"
7882
7883           if test x"$enablestring" = xdisable; then
7884             if test $wxUSE_TEXTBUFFER = no; then
7885               result=yes
7886             else
7887               result=no
7888             fi
7889           else
7890             result=$wxUSE_TEXTBUFFER
7891           fi
7892
7893           { echo "$as_me:$LINENO: result: $result" >&5
7894 echo "${ECHO_T}$result" >&6; }
7895
7896
7897           enablestring=
7898           defaultval=$wxUSE_ALL_FEATURES
7899           if test -z "$defaultval"; then
7900               if test x"$enablestring" = xdisable; then
7901                   defaultval=yes
7902               else
7903                   defaultval=no
7904               fi
7905           fi
7906
7907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7908 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7909           # Check whether --enable-textfile was given.
7910 if test "${enable_textfile+set}" = set; then
7911   enableval=$enable_textfile;
7912                           if test "$enableval" = yes; then
7913                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7914                           else
7915                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7916                           fi
7917
7918 else
7919
7920                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7921
7922 fi
7923
7924
7925           eval "$wx_cv_use_textfile"
7926
7927           if test x"$enablestring" = xdisable; then
7928             if test $wxUSE_TEXTFILE = no; then
7929               result=yes
7930             else
7931               result=no
7932             fi
7933           else
7934             result=$wxUSE_TEXTFILE
7935           fi
7936
7937           { echo "$as_me:$LINENO: result: $result" >&5
7938 echo "${ECHO_T}$result" >&6; }
7939
7940
7941           enablestring=
7942           defaultval=$wxUSE_ALL_FEATURES
7943           if test -z "$defaultval"; then
7944               if test x"$enablestring" = xdisable; then
7945                   defaultval=yes
7946               else
7947                   defaultval=no
7948               fi
7949           fi
7950
7951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7952 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7953           # Check whether --enable-timer was given.
7954 if test "${enable_timer+set}" = set; then
7955   enableval=$enable_timer;
7956                           if test "$enableval" = yes; then
7957                             wx_cv_use_timer='wxUSE_TIMER=yes'
7958                           else
7959                             wx_cv_use_timer='wxUSE_TIMER=no'
7960                           fi
7961
7962 else
7963
7964                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7965
7966 fi
7967
7968
7969           eval "$wx_cv_use_timer"
7970
7971           if test x"$enablestring" = xdisable; then
7972             if test $wxUSE_TIMER = no; then
7973               result=yes
7974             else
7975               result=no
7976             fi
7977           else
7978             result=$wxUSE_TIMER
7979           fi
7980
7981           { echo "$as_me:$LINENO: result: $result" >&5
7982 echo "${ECHO_T}$result" >&6; }
7983
7984
7985           enablestring=
7986           defaultval=$wxUSE_ALL_FEATURES
7987           if test -z "$defaultval"; then
7988               if test x"$enablestring" = xdisable; then
7989                   defaultval=yes
7990               else
7991                   defaultval=no
7992               fi
7993           fi
7994
7995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7996 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7997           # Check whether --enable-variant was given.
7998 if test "${enable_variant+set}" = set; then
7999   enableval=$enable_variant;
8000                           if test "$enableval" = yes; then
8001                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8002                           else
8003                             wx_cv_use_variant='wxUSE_VARIANT=no'
8004                           fi
8005
8006 else
8007
8008                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8009
8010 fi
8011
8012
8013           eval "$wx_cv_use_variant"
8014
8015           if test x"$enablestring" = xdisable; then
8016             if test $wxUSE_VARIANT = no; then
8017               result=yes
8018             else
8019               result=no
8020             fi
8021           else
8022             result=$wxUSE_VARIANT
8023           fi
8024
8025           { echo "$as_me:$LINENO: result: $result" >&5
8026 echo "${ECHO_T}$result" >&6; }
8027
8028
8029           enablestring=
8030           defaultval=$wxUSE_ALL_FEATURES
8031           if test -z "$defaultval"; then
8032               if test x"$enablestring" = xdisable; then
8033                   defaultval=yes
8034               else
8035                   defaultval=no
8036               fi
8037           fi
8038
8039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8040 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8041           # Check whether --enable-zipstream was given.
8042 if test "${enable_zipstream+set}" = set; then
8043   enableval=$enable_zipstream;
8044                           if test "$enableval" = yes; then
8045                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8046                           else
8047                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8048                           fi
8049
8050 else
8051
8052                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8053
8054 fi
8055
8056
8057           eval "$wx_cv_use_zipstream"
8058
8059           if test x"$enablestring" = xdisable; then
8060             if test $wxUSE_ZIPSTREAM = no; then
8061               result=yes
8062             else
8063               result=no
8064             fi
8065           else
8066             result=$wxUSE_ZIPSTREAM
8067           fi
8068
8069           { echo "$as_me:$LINENO: result: $result" >&5
8070 echo "${ECHO_T}$result" >&6; }
8071
8072
8073
8074           enablestring=
8075           defaultval=$wxUSE_ALL_FEATURES
8076           if test -z "$defaultval"; then
8077               if test x"$enablestring" = xdisable; then
8078                   defaultval=yes
8079               else
8080                   defaultval=no
8081               fi
8082           fi
8083
8084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8085 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8086           # Check whether --enable-url was given.
8087 if test "${enable_url+set}" = set; then
8088   enableval=$enable_url;
8089                           if test "$enableval" = yes; then
8090                             wx_cv_use_url='wxUSE_URL=yes'
8091                           else
8092                             wx_cv_use_url='wxUSE_URL=no'
8093                           fi
8094
8095 else
8096
8097                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8098
8099 fi
8100
8101
8102           eval "$wx_cv_use_url"
8103
8104           if test x"$enablestring" = xdisable; then
8105             if test $wxUSE_URL = no; then
8106               result=yes
8107             else
8108               result=no
8109             fi
8110           else
8111             result=$wxUSE_URL
8112           fi
8113
8114           { echo "$as_me:$LINENO: result: $result" >&5
8115 echo "${ECHO_T}$result" >&6; }
8116
8117
8118           enablestring=
8119           defaultval=$wxUSE_ALL_FEATURES
8120           if test -z "$defaultval"; then
8121               if test x"$enablestring" = xdisable; then
8122                   defaultval=yes
8123               else
8124                   defaultval=no
8125               fi
8126           fi
8127
8128           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8129 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8130           # Check whether --enable-protocol was given.
8131 if test "${enable_protocol+set}" = set; then
8132   enableval=$enable_protocol;
8133                           if test "$enableval" = yes; then
8134                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8135                           else
8136                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8137                           fi
8138
8139 else
8140
8141                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8142
8143 fi
8144
8145
8146           eval "$wx_cv_use_protocol"
8147
8148           if test x"$enablestring" = xdisable; then
8149             if test $wxUSE_PROTOCOL = no; then
8150               result=yes
8151             else
8152               result=no
8153             fi
8154           else
8155             result=$wxUSE_PROTOCOL
8156           fi
8157
8158           { echo "$as_me:$LINENO: result: $result" >&5
8159 echo "${ECHO_T}$result" >&6; }
8160
8161
8162           enablestring=
8163           defaultval=$wxUSE_ALL_FEATURES
8164           if test -z "$defaultval"; then
8165               if test x"$enablestring" = xdisable; then
8166                   defaultval=yes
8167               else
8168                   defaultval=no
8169               fi
8170           fi
8171
8172           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8173 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8174           # Check whether --enable-protocol_http was given.
8175 if test "${enable_protocol_http+set}" = set; then
8176   enableval=$enable_protocol_http;
8177                           if test "$enableval" = yes; then
8178                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8179                           else
8180                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8181                           fi
8182
8183 else
8184
8185                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8186
8187 fi
8188
8189
8190           eval "$wx_cv_use_protocol_http"
8191
8192           if test x"$enablestring" = xdisable; then
8193             if test $wxUSE_PROTOCOL_HTTP = no; then
8194               result=yes
8195             else
8196               result=no
8197             fi
8198           else
8199             result=$wxUSE_PROTOCOL_HTTP
8200           fi
8201
8202           { echo "$as_me:$LINENO: result: $result" >&5
8203 echo "${ECHO_T}$result" >&6; }
8204
8205
8206           enablestring=
8207           defaultval=$wxUSE_ALL_FEATURES
8208           if test -z "$defaultval"; then
8209               if test x"$enablestring" = xdisable; then
8210                   defaultval=yes
8211               else
8212                   defaultval=no
8213               fi
8214           fi
8215
8216           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8217 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8218           # Check whether --enable-protocol_ftp was given.
8219 if test "${enable_protocol_ftp+set}" = set; then
8220   enableval=$enable_protocol_ftp;
8221                           if test "$enableval" = yes; then
8222                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8223                           else
8224                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8225                           fi
8226
8227 else
8228
8229                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8230
8231 fi
8232
8233
8234           eval "$wx_cv_use_protocol_ftp"
8235
8236           if test x"$enablestring" = xdisable; then
8237             if test $wxUSE_PROTOCOL_FTP = no; then
8238               result=yes
8239             else
8240               result=no
8241             fi
8242           else
8243             result=$wxUSE_PROTOCOL_FTP
8244           fi
8245
8246           { echo "$as_me:$LINENO: result: $result" >&5
8247 echo "${ECHO_T}$result" >&6; }
8248
8249
8250           enablestring=
8251           defaultval=$wxUSE_ALL_FEATURES
8252           if test -z "$defaultval"; then
8253               if test x"$enablestring" = xdisable; then
8254                   defaultval=yes
8255               else
8256                   defaultval=no
8257               fi
8258           fi
8259
8260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8261 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8262           # Check whether --enable-protocol_file was given.
8263 if test "${enable_protocol_file+set}" = set; then
8264   enableval=$enable_protocol_file;
8265                           if test "$enableval" = yes; then
8266                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8267                           else
8268                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8269                           fi
8270
8271 else
8272
8273                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8274
8275 fi
8276
8277
8278           eval "$wx_cv_use_protocol_file"
8279
8280           if test x"$enablestring" = xdisable; then
8281             if test $wxUSE_PROTOCOL_FILE = no; then
8282               result=yes
8283             else
8284               result=no
8285             fi
8286           else
8287             result=$wxUSE_PROTOCOL_FILE
8288           fi
8289
8290           { echo "$as_me:$LINENO: result: $result" >&5
8291 echo "${ECHO_T}$result" >&6; }
8292
8293
8294
8295           enablestring=
8296           defaultval=$wxUSE_ALL_FEATURES
8297           if test -z "$defaultval"; then
8298               if test x"$enablestring" = xdisable; then
8299                   defaultval=yes
8300               else
8301                   defaultval=no
8302               fi
8303           fi
8304
8305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8306 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8307           # Check whether --enable-threads was given.
8308 if test "${enable_threads+set}" = set; then
8309   enableval=$enable_threads;
8310                           if test "$enableval" = yes; then
8311                             wx_cv_use_threads='wxUSE_THREADS=yes'
8312                           else
8313                             wx_cv_use_threads='wxUSE_THREADS=no'
8314                           fi
8315
8316 else
8317
8318                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8319
8320 fi
8321
8322
8323           eval "$wx_cv_use_threads"
8324
8325           if test x"$enablestring" = xdisable; then
8326             if test $wxUSE_THREADS = no; then
8327               result=yes
8328             else
8329               result=no
8330             fi
8331           else
8332             result=$wxUSE_THREADS
8333           fi
8334
8335           { echo "$as_me:$LINENO: result: $result" >&5
8336 echo "${ECHO_T}$result" >&6; }
8337
8338
8339
8340           enablestring=
8341           defaultval=
8342           if test -z "$defaultval"; then
8343               if test x"$enablestring" = xdisable; then
8344                   defaultval=yes
8345               else
8346                   defaultval=no
8347               fi
8348           fi
8349
8350           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8351 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8352           # Check whether --enable-iniconf was given.
8353 if test "${enable_iniconf+set}" = set; then
8354   enableval=$enable_iniconf;
8355                           if test "$enableval" = yes; then
8356                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8357                           else
8358                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8359                           fi
8360
8361 else
8362
8363                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8364
8365 fi
8366
8367
8368           eval "$wx_cv_use_iniconf"
8369
8370           if test x"$enablestring" = xdisable; then
8371             if test $wxUSE_INICONF = no; then
8372               result=yes
8373             else
8374               result=no
8375             fi
8376           else
8377             result=$wxUSE_INICONF
8378           fi
8379
8380           { echo "$as_me:$LINENO: result: $result" >&5
8381 echo "${ECHO_T}$result" >&6; }
8382
8383
8384           enablestring=
8385           defaultval=$wxUSE_ALL_FEATURES
8386           if test -z "$defaultval"; then
8387               if test x"$enablestring" = xdisable; then
8388                   defaultval=yes
8389               else
8390                   defaultval=no
8391               fi
8392           fi
8393
8394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8395 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8396           # Check whether --enable-regkey was given.
8397 if test "${enable_regkey+set}" = set; then
8398   enableval=$enable_regkey;
8399                           if test "$enableval" = yes; then
8400                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8401                           else
8402                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8403                           fi
8404
8405 else
8406
8407                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8408
8409 fi
8410
8411
8412           eval "$wx_cv_use_regkey"
8413
8414           if test x"$enablestring" = xdisable; then
8415             if test $wxUSE_REGKEY = no; then
8416               result=yes
8417             else
8418               result=no
8419             fi
8420           else
8421             result=$wxUSE_REGKEY
8422           fi
8423
8424           { echo "$as_me:$LINENO: result: $result" >&5
8425 echo "${ECHO_T}$result" >&6; }
8426
8427
8428 if test "$wxUSE_GUI" = "yes"; then
8429
8430
8431
8432           enablestring=
8433           defaultval=$wxUSE_ALL_FEATURES
8434           if test -z "$defaultval"; then
8435               if test x"$enablestring" = xdisable; then
8436                   defaultval=yes
8437               else
8438                   defaultval=no
8439               fi
8440           fi
8441
8442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8443 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8444           # Check whether --enable-docview was given.
8445 if test "${enable_docview+set}" = set; then
8446   enableval=$enable_docview;
8447                           if test "$enableval" = yes; then
8448                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8449                           else
8450                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8451                           fi
8452
8453 else
8454
8455                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8456
8457 fi
8458
8459
8460           eval "$wx_cv_use_docview"
8461
8462           if test x"$enablestring" = xdisable; then
8463             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8464               result=yes
8465             else
8466               result=no
8467             fi
8468           else
8469             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8470           fi
8471
8472           { echo "$as_me:$LINENO: result: $result" >&5
8473 echo "${ECHO_T}$result" >&6; }
8474
8475
8476           enablestring=
8477           defaultval=$wxUSE_ALL_FEATURES
8478           if test -z "$defaultval"; then
8479               if test x"$enablestring" = xdisable; then
8480                   defaultval=yes
8481               else
8482                   defaultval=no
8483               fi
8484           fi
8485
8486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8487 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8488           # Check whether --enable-help was given.
8489 if test "${enable_help+set}" = set; then
8490   enableval=$enable_help;
8491                           if test "$enableval" = yes; then
8492                             wx_cv_use_help='wxUSE_HELP=yes'
8493                           else
8494                             wx_cv_use_help='wxUSE_HELP=no'
8495                           fi
8496
8497 else
8498
8499                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8500
8501 fi
8502
8503
8504           eval "$wx_cv_use_help"
8505
8506           if test x"$enablestring" = xdisable; then
8507             if test $wxUSE_HELP = no; then
8508               result=yes
8509             else
8510               result=no
8511             fi
8512           else
8513             result=$wxUSE_HELP
8514           fi
8515
8516           { echo "$as_me:$LINENO: result: $result" >&5
8517 echo "${ECHO_T}$result" >&6; }
8518
8519
8520           enablestring=
8521           defaultval=$wxUSE_ALL_FEATURES
8522           if test -z "$defaultval"; then
8523               if test x"$enablestring" = xdisable; then
8524                   defaultval=yes
8525               else
8526                   defaultval=no
8527               fi
8528           fi
8529
8530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8531 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8532           # Check whether --enable-mshtmlhelp was given.
8533 if test "${enable_mshtmlhelp+set}" = set; then
8534   enableval=$enable_mshtmlhelp;
8535                           if test "$enableval" = yes; then
8536                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8537                           else
8538                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8539                           fi
8540
8541 else
8542
8543                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8544
8545 fi
8546
8547
8548           eval "$wx_cv_use_mshtmlhelp"
8549
8550           if test x"$enablestring" = xdisable; then
8551             if test $wxUSE_MS_HTML_HELP = no; then
8552               result=yes
8553             else
8554               result=no
8555             fi
8556           else
8557             result=$wxUSE_MS_HTML_HELP
8558           fi
8559
8560           { echo "$as_me:$LINENO: result: $result" >&5
8561 echo "${ECHO_T}$result" >&6; }
8562
8563
8564           enablestring=
8565           defaultval=$wxUSE_ALL_FEATURES
8566           if test -z "$defaultval"; then
8567               if test x"$enablestring" = xdisable; then
8568                   defaultval=yes
8569               else
8570                   defaultval=no
8571               fi
8572           fi
8573
8574           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8575 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8576           # Check whether --enable-html was given.
8577 if test "${enable_html+set}" = set; then
8578   enableval=$enable_html;
8579                           if test "$enableval" = yes; then
8580                             wx_cv_use_html='wxUSE_HTML=yes'
8581                           else
8582                             wx_cv_use_html='wxUSE_HTML=no'
8583                           fi
8584
8585 else
8586
8587                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8588
8589 fi
8590
8591
8592           eval "$wx_cv_use_html"
8593
8594           if test x"$enablestring" = xdisable; then
8595             if test $wxUSE_HTML = no; then
8596               result=yes
8597             else
8598               result=no
8599             fi
8600           else
8601             result=$wxUSE_HTML
8602           fi
8603
8604           { echo "$as_me:$LINENO: result: $result" >&5
8605 echo "${ECHO_T}$result" >&6; }
8606
8607
8608           enablestring=
8609           defaultval=$wxUSE_ALL_FEATURES
8610           if test -z "$defaultval"; then
8611               if test x"$enablestring" = xdisable; then
8612                   defaultval=yes
8613               else
8614                   defaultval=no
8615               fi
8616           fi
8617
8618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8619 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8620           # Check whether --enable-htmlhelp was given.
8621 if test "${enable_htmlhelp+set}" = set; then
8622   enableval=$enable_htmlhelp;
8623                           if test "$enableval" = yes; then
8624                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8625                           else
8626                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8627                           fi
8628
8629 else
8630
8631                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8632
8633 fi
8634
8635
8636           eval "$wx_cv_use_htmlhelp"
8637
8638           if test x"$enablestring" = xdisable; then
8639             if test $wxUSE_WXHTML_HELP = no; then
8640               result=yes
8641             else
8642               result=no
8643             fi
8644           else
8645             result=$wxUSE_WXHTML_HELP
8646           fi
8647
8648           { echo "$as_me:$LINENO: result: $result" >&5
8649 echo "${ECHO_T}$result" >&6; }
8650
8651
8652           enablestring=
8653           defaultval=$wxUSE_ALL_FEATURES
8654           if test -z "$defaultval"; then
8655               if test x"$enablestring" = xdisable; then
8656                   defaultval=yes
8657               else
8658                   defaultval=no
8659               fi
8660           fi
8661
8662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8663 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8664           # Check whether --enable-xrc was given.
8665 if test "${enable_xrc+set}" = set; then
8666   enableval=$enable_xrc;
8667                           if test "$enableval" = yes; then
8668                             wx_cv_use_xrc='wxUSE_XRC=yes'
8669                           else
8670                             wx_cv_use_xrc='wxUSE_XRC=no'
8671                           fi
8672
8673 else
8674
8675                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8676
8677 fi
8678
8679
8680           eval "$wx_cv_use_xrc"
8681
8682           if test x"$enablestring" = xdisable; then
8683             if test $wxUSE_XRC = no; then
8684               result=yes
8685             else
8686               result=no
8687             fi
8688           else
8689             result=$wxUSE_XRC
8690           fi
8691
8692           { echo "$as_me:$LINENO: result: $result" >&5
8693 echo "${ECHO_T}$result" >&6; }
8694
8695
8696           enablestring=
8697           defaultval=$wxUSE_ALL_FEATURES
8698           if test -z "$defaultval"; then
8699               if test x"$enablestring" = xdisable; then
8700                   defaultval=yes
8701               else
8702                   defaultval=no
8703               fi
8704           fi
8705
8706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8707 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8708           # Check whether --enable-aui was given.
8709 if test "${enable_aui+set}" = set; then
8710   enableval=$enable_aui;
8711                           if test "$enableval" = yes; then
8712                             wx_cv_use_aui='wxUSE_AUI=yes'
8713                           else
8714                             wx_cv_use_aui='wxUSE_AUI=no'
8715                           fi
8716
8717 else
8718
8719                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8720
8721 fi
8722
8723
8724           eval "$wx_cv_use_aui"
8725
8726           if test x"$enablestring" = xdisable; then
8727             if test $wxUSE_AUI = no; then
8728               result=yes
8729             else
8730               result=no
8731             fi
8732           else
8733             result=$wxUSE_AUI
8734           fi
8735
8736           { echo "$as_me:$LINENO: result: $result" >&5
8737 echo "${ECHO_T}$result" >&6; }
8738
8739
8740           enablestring=
8741           defaultval=$wxUSE_ALL_FEATURES
8742           if test -z "$defaultval"; then
8743               if test x"$enablestring" = xdisable; then
8744                   defaultval=yes
8745               else
8746                   defaultval=no
8747               fi
8748           fi
8749
8750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8751 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8752           # Check whether --enable-propgrid was given.
8753 if test "${enable_propgrid+set}" = set; then
8754   enableval=$enable_propgrid;
8755                           if test "$enableval" = yes; then
8756                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8757                           else
8758                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8759                           fi
8760
8761 else
8762
8763                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8764
8765 fi
8766
8767
8768           eval "$wx_cv_use_propgrid"
8769
8770           if test x"$enablestring" = xdisable; then
8771             if test $wxUSE_PROPGRID = no; then
8772               result=yes
8773             else
8774               result=no
8775             fi
8776           else
8777             result=$wxUSE_PROPGRID
8778           fi
8779
8780           { echo "$as_me:$LINENO: result: $result" >&5
8781 echo "${ECHO_T}$result" >&6; }
8782
8783
8784           enablestring=
8785           defaultval=$wxUSE_ALL_FEATURES
8786           if test -z "$defaultval"; then
8787               if test x"$enablestring" = xdisable; then
8788                   defaultval=yes
8789               else
8790                   defaultval=no
8791               fi
8792           fi
8793
8794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8795 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8796           # Check whether --enable-ribbon was given.
8797 if test "${enable_ribbon+set}" = set; then
8798   enableval=$enable_ribbon;
8799                           if test "$enableval" = yes; then
8800                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8801                           else
8802                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8803                           fi
8804
8805 else
8806
8807                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8808
8809 fi
8810
8811
8812           eval "$wx_cv_use_ribbon"
8813
8814           if test x"$enablestring" = xdisable; then
8815             if test $wxUSE_RIBBON = no; then
8816               result=yes
8817             else
8818               result=no
8819             fi
8820           else
8821             result=$wxUSE_RIBBON
8822           fi
8823
8824           { echo "$as_me:$LINENO: result: $result" >&5
8825 echo "${ECHO_T}$result" >&6; }
8826
8827
8828           enablestring=
8829           defaultval=$wxUSE_ALL_FEATURES
8830           if test -z "$defaultval"; then
8831               if test x"$enablestring" = xdisable; then
8832                   defaultval=yes
8833               else
8834                   defaultval=no
8835               fi
8836           fi
8837
8838           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8839 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8840           # Check whether --enable-stc was given.
8841 if test "${enable_stc+set}" = set; then
8842   enableval=$enable_stc;
8843                           if test "$enableval" = yes; then
8844                             wx_cv_use_stc='wxUSE_STC=yes'
8845                           else
8846                             wx_cv_use_stc='wxUSE_STC=no'
8847                           fi
8848
8849 else
8850
8851                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8852
8853 fi
8854
8855
8856           eval "$wx_cv_use_stc"
8857
8858           if test x"$enablestring" = xdisable; then
8859             if test $wxUSE_STC = no; then
8860               result=yes
8861             else
8862               result=no
8863             fi
8864           else
8865             result=$wxUSE_STC
8866           fi
8867
8868           { echo "$as_me:$LINENO: result: $result" >&5
8869 echo "${ECHO_T}$result" >&6; }
8870
8871
8872           enablestring=
8873           defaultval=$wxUSE_ALL_FEATURES
8874           if test -z "$defaultval"; then
8875               if test x"$enablestring" = xdisable; then
8876                   defaultval=yes
8877               else
8878                   defaultval=no
8879               fi
8880           fi
8881
8882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8883 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8884           # Check whether --enable-constraints was given.
8885 if test "${enable_constraints+set}" = set; then
8886   enableval=$enable_constraints;
8887                           if test "$enableval" = yes; then
8888                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8889                           else
8890                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8891                           fi
8892
8893 else
8894
8895                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8896
8897 fi
8898
8899
8900           eval "$wx_cv_use_constraints"
8901
8902           if test x"$enablestring" = xdisable; then
8903             if test $wxUSE_CONSTRAINTS = no; then
8904               result=yes
8905             else
8906               result=no
8907             fi
8908           else
8909             result=$wxUSE_CONSTRAINTS
8910           fi
8911
8912           { echo "$as_me:$LINENO: result: $result" >&5
8913 echo "${ECHO_T}$result" >&6; }
8914
8915
8916           enablestring=
8917           defaultval=$wxUSE_ALL_FEATURES
8918           if test -z "$defaultval"; then
8919               if test x"$enablestring" = xdisable; then
8920                   defaultval=yes
8921               else
8922                   defaultval=no
8923               fi
8924           fi
8925
8926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8927 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8928           # Check whether --enable-loggui was given.
8929 if test "${enable_loggui+set}" = set; then
8930   enableval=$enable_loggui;
8931                           if test "$enableval" = yes; then
8932                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8933                           else
8934                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8935                           fi
8936
8937 else
8938
8939                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8940
8941 fi
8942
8943
8944           eval "$wx_cv_use_loggui"
8945
8946           if test x"$enablestring" = xdisable; then
8947             if test $wxUSE_LOGGUI = no; then
8948               result=yes
8949             else
8950               result=no
8951             fi
8952           else
8953             result=$wxUSE_LOGGUI
8954           fi
8955
8956           { echo "$as_me:$LINENO: result: $result" >&5
8957 echo "${ECHO_T}$result" >&6; }
8958
8959
8960           enablestring=
8961           defaultval=$wxUSE_ALL_FEATURES
8962           if test -z "$defaultval"; then
8963               if test x"$enablestring" = xdisable; then
8964                   defaultval=yes
8965               else
8966                   defaultval=no
8967               fi
8968           fi
8969
8970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8971 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8972           # Check whether --enable-logwin was given.
8973 if test "${enable_logwin+set}" = set; then
8974   enableval=$enable_logwin;
8975                           if test "$enableval" = yes; then
8976                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8977                           else
8978                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8979                           fi
8980
8981 else
8982
8983                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8984
8985 fi
8986
8987
8988           eval "$wx_cv_use_logwin"
8989
8990           if test x"$enablestring" = xdisable; then
8991             if test $wxUSE_LOGWINDOW = no; then
8992               result=yes
8993             else
8994               result=no
8995             fi
8996           else
8997             result=$wxUSE_LOGWINDOW
8998           fi
8999
9000           { echo "$as_me:$LINENO: result: $result" >&5
9001 echo "${ECHO_T}$result" >&6; }
9002
9003
9004           enablestring=
9005           defaultval=$wxUSE_ALL_FEATURES
9006           if test -z "$defaultval"; then
9007               if test x"$enablestring" = xdisable; then
9008                   defaultval=yes
9009               else
9010                   defaultval=no
9011               fi
9012           fi
9013
9014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9015 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9016           # Check whether --enable-logdialog was given.
9017 if test "${enable_logdialog+set}" = set; then
9018   enableval=$enable_logdialog;
9019                           if test "$enableval" = yes; then
9020                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9021                           else
9022                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9023                           fi
9024
9025 else
9026
9027                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9028
9029 fi
9030
9031
9032           eval "$wx_cv_use_logdialog"
9033
9034           if test x"$enablestring" = xdisable; then
9035             if test $wxUSE_LOGDIALOG = no; then
9036               result=yes
9037             else
9038               result=no
9039             fi
9040           else
9041             result=$wxUSE_LOGDIALOG
9042           fi
9043
9044           { echo "$as_me:$LINENO: result: $result" >&5
9045 echo "${ECHO_T}$result" >&6; }
9046
9047
9048           enablestring=
9049           defaultval=$wxUSE_ALL_FEATURES
9050           if test -z "$defaultval"; then
9051               if test x"$enablestring" = xdisable; then
9052                   defaultval=yes
9053               else
9054                   defaultval=no
9055               fi
9056           fi
9057
9058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9060           # Check whether --enable-mdi was given.
9061 if test "${enable_mdi+set}" = set; then
9062   enableval=$enable_mdi;
9063                           if test "$enableval" = yes; then
9064                             wx_cv_use_mdi='wxUSE_MDI=yes'
9065                           else
9066                             wx_cv_use_mdi='wxUSE_MDI=no'
9067                           fi
9068
9069 else
9070
9071                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9072
9073 fi
9074
9075
9076           eval "$wx_cv_use_mdi"
9077
9078           if test x"$enablestring" = xdisable; then
9079             if test $wxUSE_MDI = no; then
9080               result=yes
9081             else
9082               result=no
9083             fi
9084           else
9085             result=$wxUSE_MDI
9086           fi
9087
9088           { echo "$as_me:$LINENO: result: $result" >&5
9089 echo "${ECHO_T}$result" >&6; }
9090
9091
9092           enablestring=
9093           defaultval=$wxUSE_ALL_FEATURES
9094           if test -z "$defaultval"; then
9095               if test x"$enablestring" = xdisable; then
9096                   defaultval=yes
9097               else
9098                   defaultval=no
9099               fi
9100           fi
9101
9102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9103 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9104           # Check whether --enable-mdidoc was given.
9105 if test "${enable_mdidoc+set}" = set; then
9106   enableval=$enable_mdidoc;
9107                           if test "$enableval" = yes; then
9108                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9109                           else
9110                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9111                           fi
9112
9113 else
9114
9115                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9116
9117 fi
9118
9119
9120           eval "$wx_cv_use_mdidoc"
9121
9122           if test x"$enablestring" = xdisable; then
9123             if test $wxUSE_MDI_ARCHITECTURE = no; then
9124               result=yes
9125             else
9126               result=no
9127             fi
9128           else
9129             result=$wxUSE_MDI_ARCHITECTURE
9130           fi
9131
9132           { echo "$as_me:$LINENO: result: $result" >&5
9133 echo "${ECHO_T}$result" >&6; }
9134
9135
9136           enablestring=
9137           defaultval=$wxUSE_ALL_FEATURES
9138           if test -z "$defaultval"; then
9139               if test x"$enablestring" = xdisable; then
9140                   defaultval=yes
9141               else
9142                   defaultval=no
9143               fi
9144           fi
9145
9146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9147 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9148           # Check whether --enable-mediactrl was given.
9149 if test "${enable_mediactrl+set}" = set; then
9150   enableval=$enable_mediactrl;
9151                           if test "$enableval" = yes; then
9152                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9153                           else
9154                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9155                           fi
9156
9157 else
9158
9159                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9160
9161 fi
9162
9163
9164           eval "$wx_cv_use_mediactrl"
9165
9166           if test x"$enablestring" = xdisable; then
9167             if test $wxUSE_MEDIACTRL = no; then
9168               result=yes
9169             else
9170               result=no
9171             fi
9172           else
9173             result=$wxUSE_MEDIACTRL
9174           fi
9175
9176           { echo "$as_me:$LINENO: result: $result" >&5
9177 echo "${ECHO_T}$result" >&6; }
9178
9179
9180           enablestring=
9181           defaultval=$wxUSE_ALL_FEATURES
9182           if test -z "$defaultval"; then
9183               if test x"$enablestring" = xdisable; then
9184                   defaultval=yes
9185               else
9186                   defaultval=no
9187               fi
9188           fi
9189
9190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9191 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9192           # Check whether --enable-gstreamer8 was given.
9193 if test "${enable_gstreamer8+set}" = set; then
9194   enableval=$enable_gstreamer8;
9195                           if test "$enableval" = yes; then
9196                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9197                           else
9198                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9199                           fi
9200
9201 else
9202
9203                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9204
9205 fi
9206
9207
9208           eval "$wx_cv_use_gstreamer8"
9209
9210           if test x"$enablestring" = xdisable; then
9211             if test $wxUSE_GSTREAMER8 = no; then
9212               result=yes
9213             else
9214               result=no
9215             fi
9216           else
9217             result=$wxUSE_GSTREAMER8
9218           fi
9219
9220           { echo "$as_me:$LINENO: result: $result" >&5
9221 echo "${ECHO_T}$result" >&6; }
9222
9223
9224           enablestring=
9225           defaultval=$wxUSE_ALL_FEATURES
9226           if test -z "$defaultval"; then
9227               if test x"$enablestring" = xdisable; then
9228                   defaultval=yes
9229               else
9230                   defaultval=no
9231               fi
9232           fi
9233
9234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9235 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9236           # Check whether --enable-webkit was given.
9237 if test "${enable_webkit+set}" = set; then
9238   enableval=$enable_webkit;
9239                           if test "$enableval" = yes; then
9240                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9241                           else
9242                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9243                           fi
9244
9245 else
9246
9247                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9248
9249 fi
9250
9251
9252           eval "$wx_cv_use_webkit"
9253
9254           if test x"$enablestring" = xdisable; then
9255             if test $wxUSE_WEBKIT = no; then
9256               result=yes
9257             else
9258               result=no
9259             fi
9260           else
9261             result=$wxUSE_WEBKIT
9262           fi
9263
9264           { echo "$as_me:$LINENO: result: $result" >&5
9265 echo "${ECHO_T}$result" >&6; }
9266
9267
9268           enablestring=
9269           defaultval=$wxUSE_ALL_FEATURES
9270           if test -z "$defaultval"; then
9271               if test x"$enablestring" = xdisable; then
9272                   defaultval=yes
9273               else
9274                   defaultval=no
9275               fi
9276           fi
9277
9278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9279 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9280           # Check whether --enable-richtext was given.
9281 if test "${enable_richtext+set}" = set; then
9282   enableval=$enable_richtext;
9283                           if test "$enableval" = yes; then
9284                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9285                           else
9286                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9287                           fi
9288
9289 else
9290
9291                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9292
9293 fi
9294
9295
9296           eval "$wx_cv_use_richtext"
9297
9298           if test x"$enablestring" = xdisable; then
9299             if test $wxUSE_RICHTEXT = no; then
9300               result=yes
9301             else
9302               result=no
9303             fi
9304           else
9305             result=$wxUSE_RICHTEXT
9306           fi
9307
9308           { echo "$as_me:$LINENO: result: $result" >&5
9309 echo "${ECHO_T}$result" >&6; }
9310
9311
9312           enablestring=
9313           defaultval=$wxUSE_ALL_FEATURES
9314           if test -z "$defaultval"; then
9315               if test x"$enablestring" = xdisable; then
9316                   defaultval=yes
9317               else
9318                   defaultval=no
9319               fi
9320           fi
9321
9322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9323 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9324           # Check whether --enable-postscript was given.
9325 if test "${enable_postscript+set}" = set; then
9326   enableval=$enable_postscript;
9327                           if test "$enableval" = yes; then
9328                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9329                           else
9330                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9331                           fi
9332
9333 else
9334
9335                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9336
9337 fi
9338
9339
9340           eval "$wx_cv_use_postscript"
9341
9342           if test x"$enablestring" = xdisable; then
9343             if test $wxUSE_POSTSCRIPT = no; then
9344               result=yes
9345             else
9346               result=no
9347             fi
9348           else
9349             result=$wxUSE_POSTSCRIPT
9350           fi
9351
9352           { echo "$as_me:$LINENO: result: $result" >&5
9353 echo "${ECHO_T}$result" >&6; }
9354
9355
9356           enablestring=
9357           defaultval=$wxUSE_ALL_FEATURES
9358           if test -z "$defaultval"; then
9359               if test x"$enablestring" = xdisable; then
9360                   defaultval=yes
9361               else
9362                   defaultval=no
9363               fi
9364           fi
9365
9366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9367 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9368           # Check whether --enable-printarch was given.
9369 if test "${enable_printarch+set}" = set; then
9370   enableval=$enable_printarch;
9371                           if test "$enableval" = yes; then
9372                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9373                           else
9374                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9375                           fi
9376
9377 else
9378
9379                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9380
9381 fi
9382
9383
9384           eval "$wx_cv_use_printarch"
9385
9386           if test x"$enablestring" = xdisable; then
9387             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9388               result=yes
9389             else
9390               result=no
9391             fi
9392           else
9393             result=$wxUSE_PRINTING_ARCHITECTURE
9394           fi
9395
9396           { echo "$as_me:$LINENO: result: $result" >&5
9397 echo "${ECHO_T}$result" >&6; }
9398
9399
9400           enablestring=
9401           defaultval=$wxUSE_ALL_FEATURES
9402           if test -z "$defaultval"; then
9403               if test x"$enablestring" = xdisable; then
9404                   defaultval=yes
9405               else
9406                   defaultval=no
9407               fi
9408           fi
9409
9410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9411 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9412           # Check whether --enable-svg was given.
9413 if test "${enable_svg+set}" = set; then
9414   enableval=$enable_svg;
9415                           if test "$enableval" = yes; then
9416                             wx_cv_use_svg='wxUSE_SVG=yes'
9417                           else
9418                             wx_cv_use_svg='wxUSE_SVG=no'
9419                           fi
9420
9421 else
9422
9423                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9424
9425 fi
9426
9427
9428           eval "$wx_cv_use_svg"
9429
9430           if test x"$enablestring" = xdisable; then
9431             if test $wxUSE_SVG = no; then
9432               result=yes
9433             else
9434               result=no
9435             fi
9436           else
9437             result=$wxUSE_SVG
9438           fi
9439
9440           { echo "$as_me:$LINENO: result: $result" >&5
9441 echo "${ECHO_T}$result" >&6; }
9442
9443
9444 if test "$wxUSE_MAC" != 1; then
9445
9446           enablestring=
9447           defaultval=$wxUSE_ALL_FEATURES
9448           if test -z "$defaultval"; then
9449               if test x"$enablestring" = xdisable; then
9450                   defaultval=yes
9451               else
9452                   defaultval=no
9453               fi
9454           fi
9455
9456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9457 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9458           # Check whether --enable-graphics_ctx was given.
9459 if test "${enable_graphics_ctx+set}" = set; then
9460   enableval=$enable_graphics_ctx;
9461                           if test "$enableval" = yes; then
9462                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9463                           else
9464                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9465                           fi
9466
9467 else
9468
9469                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9470
9471 fi
9472
9473
9474           eval "$wx_cv_use_graphics_ctx"
9475
9476           if test x"$enablestring" = xdisable; then
9477             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9478               result=yes
9479             else
9480               result=no
9481             fi
9482           else
9483             result=$wxUSE_GRAPHICS_CONTEXT
9484           fi
9485
9486           { echo "$as_me:$LINENO: result: $result" >&5
9487 echo "${ECHO_T}$result" >&6; }
9488
9489 fi
9490
9491
9492
9493           enablestring=
9494           defaultval=$wxUSE_ALL_FEATURES
9495           if test -z "$defaultval"; then
9496               if test x"$enablestring" = xdisable; then
9497                   defaultval=yes
9498               else
9499                   defaultval=no
9500               fi
9501           fi
9502
9503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9504 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9505           # Check whether --enable-clipboard was given.
9506 if test "${enable_clipboard+set}" = set; then
9507   enableval=$enable_clipboard;
9508                           if test "$enableval" = yes; then
9509                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9510                           else
9511                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9512                           fi
9513
9514 else
9515
9516                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9517
9518 fi
9519
9520
9521           eval "$wx_cv_use_clipboard"
9522
9523           if test x"$enablestring" = xdisable; then
9524             if test $wxUSE_CLIPBOARD = no; then
9525               result=yes
9526             else
9527               result=no
9528             fi
9529           else
9530             result=$wxUSE_CLIPBOARD
9531           fi
9532
9533           { echo "$as_me:$LINENO: result: $result" >&5
9534 echo "${ECHO_T}$result" >&6; }
9535
9536
9537           enablestring=
9538           defaultval=$wxUSE_ALL_FEATURES
9539           if test -z "$defaultval"; then
9540               if test x"$enablestring" = xdisable; then
9541                   defaultval=yes
9542               else
9543                   defaultval=no
9544               fi
9545           fi
9546
9547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9548 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9549           # Check whether --enable-dnd was given.
9550 if test "${enable_dnd+set}" = set; then
9551   enableval=$enable_dnd;
9552                           if test "$enableval" = yes; then
9553                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9554                           else
9555                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9556                           fi
9557
9558 else
9559
9560                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9561
9562 fi
9563
9564
9565           eval "$wx_cv_use_dnd"
9566
9567           if test x"$enablestring" = xdisable; then
9568             if test $wxUSE_DRAG_AND_DROP = no; then
9569               result=yes
9570             else
9571               result=no
9572             fi
9573           else
9574             result=$wxUSE_DRAG_AND_DROP
9575           fi
9576
9577           { echo "$as_me:$LINENO: result: $result" >&5
9578 echo "${ECHO_T}$result" >&6; }
9579
9580
9581           enablestring=
9582           defaultval=$wxUSE_ALL_FEATURES
9583           if test -z "$defaultval"; then
9584               if test x"$enablestring" = xdisable; then
9585                   defaultval=yes
9586               else
9587                   defaultval=no
9588               fi
9589           fi
9590
9591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9592 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9593           # Check whether --enable-metafile was given.
9594 if test "${enable_metafile+set}" = set; then
9595   enableval=$enable_metafile;
9596                           if test "$enableval" = yes; then
9597                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9598                           else
9599                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9600                           fi
9601
9602 else
9603
9604                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9605
9606 fi
9607
9608
9609           eval "$wx_cv_use_metafile"
9610
9611           if test x"$enablestring" = xdisable; then
9612             if test $wxUSE_METAFILE = no; then
9613               result=yes
9614             else
9615               result=no
9616             fi
9617           else
9618             result=$wxUSE_METAFILE
9619           fi
9620
9621           { echo "$as_me:$LINENO: result: $result" >&5
9622 echo "${ECHO_T}$result" >&6; }
9623
9624
9625
9626 DEFAULT_wxUSE_CONTROLS=none
9627
9628           enablestring=disable
9629           defaultval=
9630           if test -z "$defaultval"; then
9631               if test x"$enablestring" = xdisable; then
9632                   defaultval=yes
9633               else
9634                   defaultval=no
9635               fi
9636           fi
9637
9638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9639 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9640           # Check whether --enable-controls was given.
9641 if test "${enable_controls+set}" = set; then
9642   enableval=$enable_controls;
9643                           if test "$enableval" = yes; then
9644                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9645                           else
9646                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9647                           fi
9648
9649 else
9650
9651                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9652
9653 fi
9654
9655
9656           eval "$wx_cv_use_controls"
9657
9658           if test x"$enablestring" = xdisable; then
9659             if test $wxUSE_CONTROLS = no; then
9660               result=yes
9661             else
9662               result=no
9663             fi
9664           else
9665             result=$wxUSE_CONTROLS
9666           fi
9667
9668           { echo "$as_me:$LINENO: result: $result" >&5
9669 echo "${ECHO_T}$result" >&6; }
9670
9671
9672 if test "$wxUSE_CONTROLS" = "no"; then
9673     DEFAULT_wxUSE_ACCEL=no
9674     DEFAULT_wxUSE_ANIMATIONCTRL=no
9675     DEFAULT_wxUSE_BMPBUTTON=no
9676     DEFAULT_wxUSE_BUTTON=no
9677     DEFAULT_wxUSE_CALCTRL=no
9678     DEFAULT_wxUSE_CARET=no
9679     DEFAULT_wxUSE_CHECKBOX=no
9680     DEFAULT_wxUSE_CHECKLISTBOX=no
9681     DEFAULT_wxUSE_CHOICE=no
9682     DEFAULT_wxUSE_CHOICEBOOK=no
9683     DEFAULT_wxUSE_COLLPANE=no
9684     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9685     DEFAULT_wxUSE_COMBOBOX=no
9686     DEFAULT_wxUSE_COMBOBOX=no
9687     DEFAULT_wxUSE_DATAVIEWCTRL=no
9688     DEFAULT_wxUSE_DATEPICKCTRL=no
9689     DEFAULT_wxUSE_DETECT_SM=no
9690     DEFAULT_wxUSE_DIRPICKERCTRL=no
9691     DEFAULT_wxUSE_DISPLAY=no
9692     DEFAULT_wxUSE_FILECTRL=no
9693     DEFAULT_wxUSE_FILEPICKERCTRL=no
9694     DEFAULT_wxUSE_FONTPICKERCTRL=no
9695     DEFAULT_wxUSE_GAUGE=no
9696     DEFAULT_wxUSE_GRID=no
9697     DEFAULT_wxUSE_HEADERCTRL=no
9698     DEFAULT_wxUSE_HYPERLINKCTRL=no
9699     DEFAULT_wxUSE_IMAGLIST=no
9700     DEFAULT_wxUSE_LISTBOOK=no
9701     DEFAULT_wxUSE_LISTBOX=no
9702     DEFAULT_wxUSE_LISTCTRL=no
9703     DEFAULT_wxUSE_NOTEBOOK=no
9704     DEFAULT_wxUSE_POPUPWIN=no
9705     DEFAULT_wxUSE_RADIOBOX=no
9706     DEFAULT_wxUSE_RADIOBTN=no
9707     DEFAULT_wxUSE_REARRANGECTRL=no
9708     DEFAULT_wxUSE_SASH=no
9709     DEFAULT_wxUSE_SCROLLBAR=no
9710     DEFAULT_wxUSE_SEARCHCTRL=no
9711     DEFAULT_wxUSE_SLIDER=no
9712     DEFAULT_wxUSE_SPINBTN=no
9713     DEFAULT_wxUSE_SPINCTRL=no
9714     DEFAULT_wxUSE_SPLITTER=no
9715     DEFAULT_wxUSE_STATBMP=no
9716     DEFAULT_wxUSE_STATBOX=no
9717     DEFAULT_wxUSE_STATLINE=no
9718     DEFAULT_wxUSE_STATUSBAR=no
9719     DEFAULT_wxUSE_TIPWINDOW=no
9720     DEFAULT_wxUSE_TOGGLEBTN=no
9721     DEFAULT_wxUSE_TOOLBAR=no
9722     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9723     DEFAULT_wxUSE_TOOLBOOK=no
9724     DEFAULT_wxUSE_TOOLTIPS=no
9725     DEFAULT_wxUSE_TREEBOOK=no
9726     DEFAULT_wxUSE_TREECTRL=no
9727 fi
9728
9729
9730           enablestring=
9731           defaultval=$wxUSE_ALL_FEATURES
9732           if test -z "$defaultval"; then
9733               if test x"$enablestring" = xdisable; then
9734                   defaultval=yes
9735               else
9736                   defaultval=no
9737               fi
9738           fi
9739
9740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9741 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9742           # Check whether --enable-accel was given.
9743 if test "${enable_accel+set}" = set; then
9744   enableval=$enable_accel;
9745                           if test "$enableval" = yes; then
9746                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9747                           else
9748                             wx_cv_use_accel='wxUSE_ACCEL=no'
9749                           fi
9750
9751 else
9752
9753                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9754
9755 fi
9756
9757
9758           eval "$wx_cv_use_accel"
9759
9760           if test x"$enablestring" = xdisable; then
9761             if test $wxUSE_ACCEL = no; then
9762               result=yes
9763             else
9764               result=no
9765             fi
9766           else
9767             result=$wxUSE_ACCEL
9768           fi
9769
9770           { echo "$as_me:$LINENO: result: $result" >&5
9771 echo "${ECHO_T}$result" >&6; }
9772
9773
9774           enablestring=
9775           defaultval=$wxUSE_ALL_FEATURES
9776           if test -z "$defaultval"; then
9777               if test x"$enablestring" = xdisable; then
9778                   defaultval=yes
9779               else
9780                   defaultval=no
9781               fi
9782           fi
9783
9784           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9785 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9786           # Check whether --enable-animatectrl was given.
9787 if test "${enable_animatectrl+set}" = set; then
9788   enableval=$enable_animatectrl;
9789                           if test "$enableval" = yes; then
9790                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9791                           else
9792                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9793                           fi
9794
9795 else
9796
9797                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9798
9799 fi
9800
9801
9802           eval "$wx_cv_use_animatectrl"
9803
9804           if test x"$enablestring" = xdisable; then
9805             if test $wxUSE_ANIMATIONCTRL = no; then
9806               result=yes
9807             else
9808               result=no
9809             fi
9810           else
9811             result=$wxUSE_ANIMATIONCTRL
9812           fi
9813
9814           { echo "$as_me:$LINENO: result: $result" >&5
9815 echo "${ECHO_T}$result" >&6; }
9816
9817
9818           enablestring=
9819           defaultval=$wxUSE_ALL_FEATURES
9820           if test -z "$defaultval"; then
9821               if test x"$enablestring" = xdisable; then
9822                   defaultval=yes
9823               else
9824                   defaultval=no
9825               fi
9826           fi
9827
9828           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9829 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9830           # Check whether --enable-bmpbutton was given.
9831 if test "${enable_bmpbutton+set}" = set; then
9832   enableval=$enable_bmpbutton;
9833                           if test "$enableval" = yes; then
9834                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9835                           else
9836                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9837                           fi
9838
9839 else
9840
9841                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9842
9843 fi
9844
9845
9846           eval "$wx_cv_use_bmpbutton"
9847
9848           if test x"$enablestring" = xdisable; then
9849             if test $wxUSE_BMPBUTTON = no; then
9850               result=yes
9851             else
9852               result=no
9853             fi
9854           else
9855             result=$wxUSE_BMPBUTTON
9856           fi
9857
9858           { echo "$as_me:$LINENO: result: $result" >&5
9859 echo "${ECHO_T}$result" >&6; }
9860
9861
9862           enablestring=
9863           defaultval=$wxUSE_ALL_FEATURES
9864           if test -z "$defaultval"; then
9865               if test x"$enablestring" = xdisable; then
9866                   defaultval=yes
9867               else
9868                   defaultval=no
9869               fi
9870           fi
9871
9872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9873 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9874           # Check whether --enable-bmpcombobox was given.
9875 if test "${enable_bmpcombobox+set}" = set; then
9876   enableval=$enable_bmpcombobox;
9877                           if test "$enableval" = yes; then
9878                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9879                           else
9880                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9881                           fi
9882
9883 else
9884
9885                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9886
9887 fi
9888
9889
9890           eval "$wx_cv_use_bmpcombobox"
9891
9892           if test x"$enablestring" = xdisable; then
9893             if test $wxUSE_BITMAPCOMBOBOX = no; then
9894               result=yes
9895             else
9896               result=no
9897             fi
9898           else
9899             result=$wxUSE_BITMAPCOMBOBOX
9900           fi
9901
9902           { echo "$as_me:$LINENO: result: $result" >&5
9903 echo "${ECHO_T}$result" >&6; }
9904
9905
9906           enablestring=
9907           defaultval=$wxUSE_ALL_FEATURES
9908           if test -z "$defaultval"; then
9909               if test x"$enablestring" = xdisable; then
9910                   defaultval=yes
9911               else
9912                   defaultval=no
9913               fi
9914           fi
9915
9916           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9917 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9918           # Check whether --enable-button was given.
9919 if test "${enable_button+set}" = set; then
9920   enableval=$enable_button;
9921                           if test "$enableval" = yes; then
9922                             wx_cv_use_button='wxUSE_BUTTON=yes'
9923                           else
9924                             wx_cv_use_button='wxUSE_BUTTON=no'
9925                           fi
9926
9927 else
9928
9929                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9930
9931 fi
9932
9933
9934           eval "$wx_cv_use_button"
9935
9936           if test x"$enablestring" = xdisable; then
9937             if test $wxUSE_BUTTON = no; then
9938               result=yes
9939             else
9940               result=no
9941             fi
9942           else
9943             result=$wxUSE_BUTTON
9944           fi
9945
9946           { echo "$as_me:$LINENO: result: $result" >&5
9947 echo "${ECHO_T}$result" >&6; }
9948
9949
9950           enablestring=
9951           defaultval=$wxUSE_ALL_FEATURES
9952           if test -z "$defaultval"; then
9953               if test x"$enablestring" = xdisable; then
9954                   defaultval=yes
9955               else
9956                   defaultval=no
9957               fi
9958           fi
9959
9960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9961 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9962           # Check whether --enable-calendar was given.
9963 if test "${enable_calendar+set}" = set; then
9964   enableval=$enable_calendar;
9965                           if test "$enableval" = yes; then
9966                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9967                           else
9968                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9969                           fi
9970
9971 else
9972
9973                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9974
9975 fi
9976
9977
9978           eval "$wx_cv_use_calendar"
9979
9980           if test x"$enablestring" = xdisable; then
9981             if test $wxUSE_CALCTRL = no; then
9982               result=yes
9983             else
9984               result=no
9985             fi
9986           else
9987             result=$wxUSE_CALCTRL
9988           fi
9989
9990           { echo "$as_me:$LINENO: result: $result" >&5
9991 echo "${ECHO_T}$result" >&6; }
9992
9993
9994           enablestring=
9995           defaultval=$wxUSE_ALL_FEATURES
9996           if test -z "$defaultval"; then
9997               if test x"$enablestring" = xdisable; then
9998                   defaultval=yes
9999               else
10000                   defaultval=no
10001               fi
10002           fi
10003
10004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10005 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10006           # Check whether --enable-caret was given.
10007 if test "${enable_caret+set}" = set; then
10008   enableval=$enable_caret;
10009                           if test "$enableval" = yes; then
10010                             wx_cv_use_caret='wxUSE_CARET=yes'
10011                           else
10012                             wx_cv_use_caret='wxUSE_CARET=no'
10013                           fi
10014
10015 else
10016
10017                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10018
10019 fi
10020
10021
10022           eval "$wx_cv_use_caret"
10023
10024           if test x"$enablestring" = xdisable; then
10025             if test $wxUSE_CARET = no; then
10026               result=yes
10027             else
10028               result=no
10029             fi
10030           else
10031             result=$wxUSE_CARET
10032           fi
10033
10034           { echo "$as_me:$LINENO: result: $result" >&5
10035 echo "${ECHO_T}$result" >&6; }
10036
10037
10038           enablestring=
10039           defaultval=$wxUSE_ALL_FEATURES
10040           if test -z "$defaultval"; then
10041               if test x"$enablestring" = xdisable; then
10042                   defaultval=yes
10043               else
10044                   defaultval=no
10045               fi
10046           fi
10047
10048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10049 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10050           # Check whether --enable-checkbox was given.
10051 if test "${enable_checkbox+set}" = set; then
10052   enableval=$enable_checkbox;
10053                           if test "$enableval" = yes; then
10054                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10055                           else
10056                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10057                           fi
10058
10059 else
10060
10061                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10062
10063 fi
10064
10065
10066           eval "$wx_cv_use_checkbox"
10067
10068           if test x"$enablestring" = xdisable; then
10069             if test $wxUSE_CHECKBOX = no; then
10070               result=yes
10071             else
10072               result=no
10073             fi
10074           else
10075             result=$wxUSE_CHECKBOX
10076           fi
10077
10078           { echo "$as_me:$LINENO: result: $result" >&5
10079 echo "${ECHO_T}$result" >&6; }
10080
10081
10082           enablestring=
10083           defaultval=$wxUSE_ALL_FEATURES
10084           if test -z "$defaultval"; then
10085               if test x"$enablestring" = xdisable; then
10086                   defaultval=yes
10087               else
10088                   defaultval=no
10089               fi
10090           fi
10091
10092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10093 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10094           # Check whether --enable-checklst was given.
10095 if test "${enable_checklst+set}" = set; then
10096   enableval=$enable_checklst;
10097                           if test "$enableval" = yes; then
10098                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10099                           else
10100                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10101                           fi
10102
10103 else
10104
10105                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10106
10107 fi
10108
10109
10110           eval "$wx_cv_use_checklst"
10111
10112           if test x"$enablestring" = xdisable; then
10113             if test $wxUSE_CHECKLST = no; then
10114               result=yes
10115             else
10116               result=no
10117             fi
10118           else
10119             result=$wxUSE_CHECKLST
10120           fi
10121
10122           { echo "$as_me:$LINENO: result: $result" >&5
10123 echo "${ECHO_T}$result" >&6; }
10124
10125
10126           enablestring=
10127           defaultval=$wxUSE_ALL_FEATURES
10128           if test -z "$defaultval"; then
10129               if test x"$enablestring" = xdisable; then
10130                   defaultval=yes
10131               else
10132                   defaultval=no
10133               fi
10134           fi
10135
10136           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10137 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10138           # Check whether --enable-choice was given.
10139 if test "${enable_choice+set}" = set; then
10140   enableval=$enable_choice;
10141                           if test "$enableval" = yes; then
10142                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10143                           else
10144                             wx_cv_use_choice='wxUSE_CHOICE=no'
10145                           fi
10146
10147 else
10148
10149                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10150
10151 fi
10152
10153
10154           eval "$wx_cv_use_choice"
10155
10156           if test x"$enablestring" = xdisable; then
10157             if test $wxUSE_CHOICE = no; then
10158               result=yes
10159             else
10160               result=no
10161             fi
10162           else
10163             result=$wxUSE_CHOICE
10164           fi
10165
10166           { echo "$as_me:$LINENO: result: $result" >&5
10167 echo "${ECHO_T}$result" >&6; }
10168
10169
10170           enablestring=
10171           defaultval=$wxUSE_ALL_FEATURES
10172           if test -z "$defaultval"; then
10173               if test x"$enablestring" = xdisable; then
10174                   defaultval=yes
10175               else
10176                   defaultval=no
10177               fi
10178           fi
10179
10180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10181 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10182           # Check whether --enable-choicebook was given.
10183 if test "${enable_choicebook+set}" = set; then
10184   enableval=$enable_choicebook;
10185                           if test "$enableval" = yes; then
10186                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10187                           else
10188                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10189                           fi
10190
10191 else
10192
10193                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10194
10195 fi
10196
10197
10198           eval "$wx_cv_use_choicebook"
10199
10200           if test x"$enablestring" = xdisable; then
10201             if test $wxUSE_CHOICEBOOK = no; then
10202               result=yes
10203             else
10204               result=no
10205             fi
10206           else
10207             result=$wxUSE_CHOICEBOOK
10208           fi
10209
10210           { echo "$as_me:$LINENO: result: $result" >&5
10211 echo "${ECHO_T}$result" >&6; }
10212
10213
10214           enablestring=
10215           defaultval=$wxUSE_ALL_FEATURES
10216           if test -z "$defaultval"; then
10217               if test x"$enablestring" = xdisable; then
10218                   defaultval=yes
10219               else
10220                   defaultval=no
10221               fi
10222           fi
10223
10224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10225 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10226           # Check whether --enable-collpane was given.
10227 if test "${enable_collpane+set}" = set; then
10228   enableval=$enable_collpane;
10229                           if test "$enableval" = yes; then
10230                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10231                           else
10232                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10233                           fi
10234
10235 else
10236
10237                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10238
10239 fi
10240
10241
10242           eval "$wx_cv_use_collpane"
10243
10244           if test x"$enablestring" = xdisable; then
10245             if test $wxUSE_COLLPANE = no; then
10246               result=yes
10247             else
10248               result=no
10249             fi
10250           else
10251             result=$wxUSE_COLLPANE
10252           fi
10253
10254           { echo "$as_me:$LINENO: result: $result" >&5
10255 echo "${ECHO_T}$result" >&6; }
10256
10257
10258           enablestring=
10259           defaultval=$wxUSE_ALL_FEATURES
10260           if test -z "$defaultval"; then
10261               if test x"$enablestring" = xdisable; then
10262                   defaultval=yes
10263               else
10264                   defaultval=no
10265               fi
10266           fi
10267
10268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10269 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10270           # Check whether --enable-colourpicker was given.
10271 if test "${enable_colourpicker+set}" = set; then
10272   enableval=$enable_colourpicker;
10273                           if test "$enableval" = yes; then
10274                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10275                           else
10276                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10277                           fi
10278
10279 else
10280
10281                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10282
10283 fi
10284
10285
10286           eval "$wx_cv_use_colourpicker"
10287
10288           if test x"$enablestring" = xdisable; then
10289             if test $wxUSE_COLOURPICKERCTRL = no; then
10290               result=yes
10291             else
10292               result=no
10293             fi
10294           else
10295             result=$wxUSE_COLOURPICKERCTRL
10296           fi
10297
10298           { echo "$as_me:$LINENO: result: $result" >&5
10299 echo "${ECHO_T}$result" >&6; }
10300
10301
10302           enablestring=
10303           defaultval=$wxUSE_ALL_FEATURES
10304           if test -z "$defaultval"; then
10305               if test x"$enablestring" = xdisable; then
10306                   defaultval=yes
10307               else
10308                   defaultval=no
10309               fi
10310           fi
10311
10312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10313 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10314           # Check whether --enable-combobox was given.
10315 if test "${enable_combobox+set}" = set; then
10316   enableval=$enable_combobox;
10317                           if test "$enableval" = yes; then
10318                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10319                           else
10320                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10321                           fi
10322
10323 else
10324
10325                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10326
10327 fi
10328
10329
10330           eval "$wx_cv_use_combobox"
10331
10332           if test x"$enablestring" = xdisable; then
10333             if test $wxUSE_COMBOBOX = no; then
10334               result=yes
10335             else
10336               result=no
10337             fi
10338           else
10339             result=$wxUSE_COMBOBOX
10340           fi
10341
10342           { echo "$as_me:$LINENO: result: $result" >&5
10343 echo "${ECHO_T}$result" >&6; }
10344
10345
10346           enablestring=
10347           defaultval=$wxUSE_ALL_FEATURES
10348           if test -z "$defaultval"; then
10349               if test x"$enablestring" = xdisable; then
10350                   defaultval=yes
10351               else
10352                   defaultval=no
10353               fi
10354           fi
10355
10356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10357 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10358           # Check whether --enable-comboctrl was given.
10359 if test "${enable_comboctrl+set}" = set; then
10360   enableval=$enable_comboctrl;
10361                           if test "$enableval" = yes; then
10362                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10363                           else
10364                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10365                           fi
10366
10367 else
10368
10369                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10370
10371 fi
10372
10373
10374           eval "$wx_cv_use_comboctrl"
10375
10376           if test x"$enablestring" = xdisable; then
10377             if test $wxUSE_COMBOCTRL = no; then
10378               result=yes
10379             else
10380               result=no
10381             fi
10382           else
10383             result=$wxUSE_COMBOCTRL
10384           fi
10385
10386           { echo "$as_me:$LINENO: result: $result" >&5
10387 echo "${ECHO_T}$result" >&6; }
10388
10389
10390           enablestring=
10391           defaultval=$wxUSE_ALL_FEATURES
10392           if test -z "$defaultval"; then
10393               if test x"$enablestring" = xdisable; then
10394                   defaultval=yes
10395               else
10396                   defaultval=no
10397               fi
10398           fi
10399
10400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10401 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10402           # Check whether --enable-dataviewctrl was given.
10403 if test "${enable_dataviewctrl+set}" = set; then
10404   enableval=$enable_dataviewctrl;
10405                           if test "$enableval" = yes; then
10406                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10407                           else
10408                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10409                           fi
10410
10411 else
10412
10413                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10414
10415 fi
10416
10417
10418           eval "$wx_cv_use_dataviewctrl"
10419
10420           if test x"$enablestring" = xdisable; then
10421             if test $wxUSE_DATAVIEWCTRL = no; then
10422               result=yes
10423             else
10424               result=no
10425             fi
10426           else
10427             result=$wxUSE_DATAVIEWCTRL
10428           fi
10429
10430           { echo "$as_me:$LINENO: result: $result" >&5
10431 echo "${ECHO_T}$result" >&6; }
10432
10433
10434           enablestring=
10435           defaultval=$wxUSE_ALL_FEATURES
10436           if test -z "$defaultval"; then
10437               if test x"$enablestring" = xdisable; then
10438                   defaultval=yes
10439               else
10440                   defaultval=no
10441               fi
10442           fi
10443
10444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10445 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10446           # Check whether --enable-datepick was given.
10447 if test "${enable_datepick+set}" = set; then
10448   enableval=$enable_datepick;
10449                           if test "$enableval" = yes; then
10450                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10451                           else
10452                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10453                           fi
10454
10455 else
10456
10457                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10458
10459 fi
10460
10461
10462           eval "$wx_cv_use_datepick"
10463
10464           if test x"$enablestring" = xdisable; then
10465             if test $wxUSE_DATEPICKCTRL = no; then
10466               result=yes
10467             else
10468               result=no
10469             fi
10470           else
10471             result=$wxUSE_DATEPICKCTRL
10472           fi
10473
10474           { echo "$as_me:$LINENO: result: $result" >&5
10475 echo "${ECHO_T}$result" >&6; }
10476
10477
10478           enablestring=
10479           defaultval=$wxUSE_ALL_FEATURES
10480           if test -z "$defaultval"; then
10481               if test x"$enablestring" = xdisable; then
10482                   defaultval=yes
10483               else
10484                   defaultval=no
10485               fi
10486           fi
10487
10488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10489 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10490           # Check whether --enable-detect_sm was given.
10491 if test "${enable_detect_sm+set}" = set; then
10492   enableval=$enable_detect_sm;
10493                           if test "$enableval" = yes; then
10494                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10495                           else
10496                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10497                           fi
10498
10499 else
10500
10501                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10502
10503 fi
10504
10505
10506           eval "$wx_cv_use_detect_sm"
10507
10508           if test x"$enablestring" = xdisable; then
10509             if test $wxUSE_DETECT_SM = no; then
10510               result=yes
10511             else
10512               result=no
10513             fi
10514           else
10515             result=$wxUSE_DETECT_SM
10516           fi
10517
10518           { echo "$as_me:$LINENO: result: $result" >&5
10519 echo "${ECHO_T}$result" >&6; }
10520
10521
10522           enablestring=
10523           defaultval=$wxUSE_ALL_FEATURES
10524           if test -z "$defaultval"; then
10525               if test x"$enablestring" = xdisable; then
10526                   defaultval=yes
10527               else
10528                   defaultval=no
10529               fi
10530           fi
10531
10532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10533 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10534           # Check whether --enable-dirpicker was given.
10535 if test "${enable_dirpicker+set}" = set; then
10536   enableval=$enable_dirpicker;
10537                           if test "$enableval" = yes; then
10538                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10539                           else
10540                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10541                           fi
10542
10543 else
10544
10545                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10546
10547 fi
10548
10549
10550           eval "$wx_cv_use_dirpicker"
10551
10552           if test x"$enablestring" = xdisable; then
10553             if test $wxUSE_DIRPICKERCTRL = no; then
10554               result=yes
10555             else
10556               result=no
10557             fi
10558           else
10559             result=$wxUSE_DIRPICKERCTRL
10560           fi
10561
10562           { echo "$as_me:$LINENO: result: $result" >&5
10563 echo "${ECHO_T}$result" >&6; }
10564
10565
10566           enablestring=
10567           defaultval=$wxUSE_ALL_FEATURES
10568           if test -z "$defaultval"; then
10569               if test x"$enablestring" = xdisable; then
10570                   defaultval=yes
10571               else
10572                   defaultval=no
10573               fi
10574           fi
10575
10576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10577 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10578           # Check whether --enable-display was given.
10579 if test "${enable_display+set}" = set; then
10580   enableval=$enable_display;
10581                           if test "$enableval" = yes; then
10582                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10583                           else
10584                             wx_cv_use_display='wxUSE_DISPLAY=no'
10585                           fi
10586
10587 else
10588
10589                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10590
10591 fi
10592
10593
10594           eval "$wx_cv_use_display"
10595
10596           if test x"$enablestring" = xdisable; then
10597             if test $wxUSE_DISPLAY = no; then
10598               result=yes
10599             else
10600               result=no
10601             fi
10602           else
10603             result=$wxUSE_DISPLAY
10604           fi
10605
10606           { echo "$as_me:$LINENO: result: $result" >&5
10607 echo "${ECHO_T}$result" >&6; }
10608
10609
10610           enablestring=
10611           defaultval=$wxUSE_ALL_FEATURES
10612           if test -z "$defaultval"; then
10613               if test x"$enablestring" = xdisable; then
10614                   defaultval=yes
10615               else
10616                   defaultval=no
10617               fi
10618           fi
10619
10620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10621 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10622           # Check whether --enable-editablebox was given.
10623 if test "${enable_editablebox+set}" = set; then
10624   enableval=$enable_editablebox;
10625                           if test "$enableval" = yes; then
10626                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10627                           else
10628                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10629                           fi
10630
10631 else
10632
10633                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10634
10635 fi
10636
10637
10638           eval "$wx_cv_use_editablebox"
10639
10640           if test x"$enablestring" = xdisable; then
10641             if test $wxUSE_EDITABLELISTBOX = no; then
10642               result=yes
10643             else
10644               result=no
10645             fi
10646           else
10647             result=$wxUSE_EDITABLELISTBOX
10648           fi
10649
10650           { echo "$as_me:$LINENO: result: $result" >&5
10651 echo "${ECHO_T}$result" >&6; }
10652
10653
10654           enablestring=
10655           defaultval=$wxUSE_ALL_FEATURES
10656           if test -z "$defaultval"; then
10657               if test x"$enablestring" = xdisable; then
10658                   defaultval=yes
10659               else
10660                   defaultval=no
10661               fi
10662           fi
10663
10664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10665 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10666           # Check whether --enable-filectrl was given.
10667 if test "${enable_filectrl+set}" = set; then
10668   enableval=$enable_filectrl;
10669                           if test "$enableval" = yes; then
10670                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10671                           else
10672                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10673                           fi
10674
10675 else
10676
10677                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10678
10679 fi
10680
10681
10682           eval "$wx_cv_use_filectrl"
10683
10684           if test x"$enablestring" = xdisable; then
10685             if test $wxUSE_FILECTRL = no; then
10686               result=yes
10687             else
10688               result=no
10689             fi
10690           else
10691             result=$wxUSE_FILECTRL
10692           fi
10693
10694           { echo "$as_me:$LINENO: result: $result" >&5
10695 echo "${ECHO_T}$result" >&6; }
10696
10697
10698           enablestring=
10699           defaultval=$wxUSE_ALL_FEATURES
10700           if test -z "$defaultval"; then
10701               if test x"$enablestring" = xdisable; then
10702                   defaultval=yes
10703               else
10704                   defaultval=no
10705               fi
10706           fi
10707
10708           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10709 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10710           # Check whether --enable-filepicker was given.
10711 if test "${enable_filepicker+set}" = set; then
10712   enableval=$enable_filepicker;
10713                           if test "$enableval" = yes; then
10714                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10715                           else
10716                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10717                           fi
10718
10719 else
10720
10721                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10722
10723 fi
10724
10725
10726           eval "$wx_cv_use_filepicker"
10727
10728           if test x"$enablestring" = xdisable; then
10729             if test $wxUSE_FILEPICKERCTRL = no; then
10730               result=yes
10731             else
10732               result=no
10733             fi
10734           else
10735             result=$wxUSE_FILEPICKERCTRL
10736           fi
10737
10738           { echo "$as_me:$LINENO: result: $result" >&5
10739 echo "${ECHO_T}$result" >&6; }
10740
10741
10742           enablestring=
10743           defaultval=$wxUSE_ALL_FEATURES
10744           if test -z "$defaultval"; then
10745               if test x"$enablestring" = xdisable; then
10746                   defaultval=yes
10747               else
10748                   defaultval=no
10749               fi
10750           fi
10751
10752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10753 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10754           # Check whether --enable-fontpicker was given.
10755 if test "${enable_fontpicker+set}" = set; then
10756   enableval=$enable_fontpicker;
10757                           if test "$enableval" = yes; then
10758                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10759                           else
10760                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10761                           fi
10762
10763 else
10764
10765                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10766
10767 fi
10768
10769
10770           eval "$wx_cv_use_fontpicker"
10771
10772           if test x"$enablestring" = xdisable; then
10773             if test $wxUSE_FONTPICKERCTRL = no; then
10774               result=yes
10775             else
10776               result=no
10777             fi
10778           else
10779             result=$wxUSE_FONTPICKERCTRL
10780           fi
10781
10782           { echo "$as_me:$LINENO: result: $result" >&5
10783 echo "${ECHO_T}$result" >&6; }
10784
10785
10786           enablestring=
10787           defaultval=$wxUSE_ALL_FEATURES
10788           if test -z "$defaultval"; then
10789               if test x"$enablestring" = xdisable; then
10790                   defaultval=yes
10791               else
10792                   defaultval=no
10793               fi
10794           fi
10795
10796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10797 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10798           # Check whether --enable-gauge was given.
10799 if test "${enable_gauge+set}" = set; then
10800   enableval=$enable_gauge;
10801                           if test "$enableval" = yes; then
10802                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10803                           else
10804                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10805                           fi
10806
10807 else
10808
10809                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10810
10811 fi
10812
10813
10814           eval "$wx_cv_use_gauge"
10815
10816           if test x"$enablestring" = xdisable; then
10817             if test $wxUSE_GAUGE = no; then
10818               result=yes
10819             else
10820               result=no
10821             fi
10822           else
10823             result=$wxUSE_GAUGE
10824           fi
10825
10826           { echo "$as_me:$LINENO: result: $result" >&5
10827 echo "${ECHO_T}$result" >&6; }
10828
10829
10830           enablestring=
10831           defaultval=$wxUSE_ALL_FEATURES
10832           if test -z "$defaultval"; then
10833               if test x"$enablestring" = xdisable; then
10834                   defaultval=yes
10835               else
10836                   defaultval=no
10837               fi
10838           fi
10839
10840           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10841 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10842           # Check whether --enable-grid was given.
10843 if test "${enable_grid+set}" = set; then
10844   enableval=$enable_grid;
10845                           if test "$enableval" = yes; then
10846                             wx_cv_use_grid='wxUSE_GRID=yes'
10847                           else
10848                             wx_cv_use_grid='wxUSE_GRID=no'
10849                           fi
10850
10851 else
10852
10853                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10854
10855 fi
10856
10857
10858           eval "$wx_cv_use_grid"
10859
10860           if test x"$enablestring" = xdisable; then
10861             if test $wxUSE_GRID = no; then
10862               result=yes
10863             else
10864               result=no
10865             fi
10866           else
10867             result=$wxUSE_GRID
10868           fi
10869
10870           { echo "$as_me:$LINENO: result: $result" >&5
10871 echo "${ECHO_T}$result" >&6; }
10872
10873
10874           enablestring=
10875           defaultval=$wxUSE_ALL_FEATURES
10876           if test -z "$defaultval"; then
10877               if test x"$enablestring" = xdisable; then
10878                   defaultval=yes
10879               else
10880                   defaultval=no
10881               fi
10882           fi
10883
10884           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10885 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10886           # Check whether --enable-headerctrl was given.
10887 if test "${enable_headerctrl+set}" = set; then
10888   enableval=$enable_headerctrl;
10889                           if test "$enableval" = yes; then
10890                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10891                           else
10892                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10893                           fi
10894
10895 else
10896
10897                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10898
10899 fi
10900
10901
10902           eval "$wx_cv_use_headerctrl"
10903
10904           if test x"$enablestring" = xdisable; then
10905             if test $wxUSE_HEADERCTRL = no; then
10906               result=yes
10907             else
10908               result=no
10909             fi
10910           else
10911             result=$wxUSE_HEADERCTRL
10912           fi
10913
10914           { echo "$as_me:$LINENO: result: $result" >&5
10915 echo "${ECHO_T}$result" >&6; }
10916
10917
10918           enablestring=
10919           defaultval=$wxUSE_ALL_FEATURES
10920           if test -z "$defaultval"; then
10921               if test x"$enablestring" = xdisable; then
10922                   defaultval=yes
10923               else
10924                   defaultval=no
10925               fi
10926           fi
10927
10928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10929 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10930           # Check whether --enable-hyperlink was given.
10931 if test "${enable_hyperlink+set}" = set; then
10932   enableval=$enable_hyperlink;
10933                           if test "$enableval" = yes; then
10934                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10935                           else
10936                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10937                           fi
10938
10939 else
10940
10941                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10942
10943 fi
10944
10945
10946           eval "$wx_cv_use_hyperlink"
10947
10948           if test x"$enablestring" = xdisable; then
10949             if test $wxUSE_HYPERLINKCTRL = no; then
10950               result=yes
10951             else
10952               result=no
10953             fi
10954           else
10955             result=$wxUSE_HYPERLINKCTRL
10956           fi
10957
10958           { echo "$as_me:$LINENO: result: $result" >&5
10959 echo "${ECHO_T}$result" >&6; }
10960
10961
10962           enablestring=
10963           defaultval=$wxUSE_ALL_FEATURES
10964           if test -z "$defaultval"; then
10965               if test x"$enablestring" = xdisable; then
10966                   defaultval=yes
10967               else
10968                   defaultval=no
10969               fi
10970           fi
10971
10972           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10973 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10974           # Check whether --enable-imaglist was given.
10975 if test "${enable_imaglist+set}" = set; then
10976   enableval=$enable_imaglist;
10977                           if test "$enableval" = yes; then
10978                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10979                           else
10980                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10981                           fi
10982
10983 else
10984
10985                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10986
10987 fi
10988
10989
10990           eval "$wx_cv_use_imaglist"
10991
10992           if test x"$enablestring" = xdisable; then
10993             if test $wxUSE_IMAGLIST = no; then
10994               result=yes
10995             else
10996               result=no
10997             fi
10998           else
10999             result=$wxUSE_IMAGLIST
11000           fi
11001
11002           { echo "$as_me:$LINENO: result: $result" >&5
11003 echo "${ECHO_T}$result" >&6; }
11004
11005
11006           enablestring=
11007           defaultval=$wxUSE_ALL_FEATURES
11008           if test -z "$defaultval"; then
11009               if test x"$enablestring" = xdisable; then
11010                   defaultval=yes
11011               else
11012                   defaultval=no
11013               fi
11014           fi
11015
11016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11017 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11018           # Check whether --enable-infobar was given.
11019 if test "${enable_infobar+set}" = set; then
11020   enableval=$enable_infobar;
11021                           if test "$enableval" = yes; then
11022                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11023                           else
11024                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11025                           fi
11026
11027 else
11028
11029                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11030
11031 fi
11032
11033
11034           eval "$wx_cv_use_infobar"
11035
11036           if test x"$enablestring" = xdisable; then
11037             if test $wxUSE_INFOBAR = no; then
11038               result=yes
11039             else
11040               result=no
11041             fi
11042           else
11043             result=$wxUSE_INFOBAR
11044           fi
11045
11046           { echo "$as_me:$LINENO: result: $result" >&5
11047 echo "${ECHO_T}$result" >&6; }
11048
11049
11050           enablestring=
11051           defaultval=$wxUSE_ALL_FEATURES
11052           if test -z "$defaultval"; then
11053               if test x"$enablestring" = xdisable; then
11054                   defaultval=yes
11055               else
11056                   defaultval=no
11057               fi
11058           fi
11059
11060           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11061 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11062           # Check whether --enable-listbook was given.
11063 if test "${enable_listbook+set}" = set; then
11064   enableval=$enable_listbook;
11065                           if test "$enableval" = yes; then
11066                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11067                           else
11068                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11069                           fi
11070
11071 else
11072
11073                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11074
11075 fi
11076
11077
11078           eval "$wx_cv_use_listbook"
11079
11080           if test x"$enablestring" = xdisable; then
11081             if test $wxUSE_LISTBOOK = no; then
11082               result=yes
11083             else
11084               result=no
11085             fi
11086           else
11087             result=$wxUSE_LISTBOOK
11088           fi
11089
11090           { echo "$as_me:$LINENO: result: $result" >&5
11091 echo "${ECHO_T}$result" >&6; }
11092
11093
11094           enablestring=
11095           defaultval=$wxUSE_ALL_FEATURES
11096           if test -z "$defaultval"; then
11097               if test x"$enablestring" = xdisable; then
11098                   defaultval=yes
11099               else
11100                   defaultval=no
11101               fi
11102           fi
11103
11104           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11105 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11106           # Check whether --enable-listbox was given.
11107 if test "${enable_listbox+set}" = set; then
11108   enableval=$enable_listbox;
11109                           if test "$enableval" = yes; then
11110                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11111                           else
11112                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11113                           fi
11114
11115 else
11116
11117                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11118
11119 fi
11120
11121
11122           eval "$wx_cv_use_listbox"
11123
11124           if test x"$enablestring" = xdisable; then
11125             if test $wxUSE_LISTBOX = no; then
11126               result=yes
11127             else
11128               result=no
11129             fi
11130           else
11131             result=$wxUSE_LISTBOX
11132           fi
11133
11134           { echo "$as_me:$LINENO: result: $result" >&5
11135 echo "${ECHO_T}$result" >&6; }
11136
11137
11138           enablestring=
11139           defaultval=$wxUSE_ALL_FEATURES
11140           if test -z "$defaultval"; then
11141               if test x"$enablestring" = xdisable; then
11142                   defaultval=yes
11143               else
11144                   defaultval=no
11145               fi
11146           fi
11147
11148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11149 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11150           # Check whether --enable-listctrl was given.
11151 if test "${enable_listctrl+set}" = set; then
11152   enableval=$enable_listctrl;
11153                           if test "$enableval" = yes; then
11154                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11155                           else
11156                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11157                           fi
11158
11159 else
11160
11161                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11162
11163 fi
11164
11165
11166           eval "$wx_cv_use_listctrl"
11167
11168           if test x"$enablestring" = xdisable; then
11169             if test $wxUSE_LISTCTRL = no; then
11170               result=yes
11171             else
11172               result=no
11173             fi
11174           else
11175             result=$wxUSE_LISTCTRL
11176           fi
11177
11178           { echo "$as_me:$LINENO: result: $result" >&5
11179 echo "${ECHO_T}$result" >&6; }
11180
11181
11182           enablestring=
11183           defaultval=$wxUSE_ALL_FEATURES
11184           if test -z "$defaultval"; then
11185               if test x"$enablestring" = xdisable; then
11186                   defaultval=yes
11187               else
11188                   defaultval=no
11189               fi
11190           fi
11191
11192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11193 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11194           # Check whether --enable-notebook was given.
11195 if test "${enable_notebook+set}" = set; then
11196   enableval=$enable_notebook;
11197                           if test "$enableval" = yes; then
11198                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11199                           else
11200                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11201                           fi
11202
11203 else
11204
11205                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11206
11207 fi
11208
11209
11210           eval "$wx_cv_use_notebook"
11211
11212           if test x"$enablestring" = xdisable; then
11213             if test $wxUSE_NOTEBOOK = no; then
11214               result=yes
11215             else
11216               result=no
11217             fi
11218           else
11219             result=$wxUSE_NOTEBOOK
11220           fi
11221
11222           { echo "$as_me:$LINENO: result: $result" >&5
11223 echo "${ECHO_T}$result" >&6; }
11224
11225
11226           enablestring=
11227           defaultval=$wxUSE_ALL_FEATURES
11228           if test -z "$defaultval"; then
11229               if test x"$enablestring" = xdisable; then
11230                   defaultval=yes
11231               else
11232                   defaultval=no
11233               fi
11234           fi
11235
11236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11237 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11238           # Check whether --enable-notifmsg was given.
11239 if test "${enable_notifmsg+set}" = set; then
11240   enableval=$enable_notifmsg;
11241                           if test "$enableval" = yes; then
11242                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11243                           else
11244                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11245                           fi
11246
11247 else
11248
11249                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11250
11251 fi
11252
11253
11254           eval "$wx_cv_use_notifmsg"
11255
11256           if test x"$enablestring" = xdisable; then
11257             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11258               result=yes
11259             else
11260               result=no
11261             fi
11262           else
11263             result=$wxUSE_NOTIFICATION_MESSAGE
11264           fi
11265
11266           { echo "$as_me:$LINENO: result: $result" >&5
11267 echo "${ECHO_T}$result" >&6; }
11268
11269
11270           enablestring=
11271           defaultval=$wxUSE_ALL_FEATURES
11272           if test -z "$defaultval"; then
11273               if test x"$enablestring" = xdisable; then
11274                   defaultval=yes
11275               else
11276                   defaultval=no
11277               fi
11278           fi
11279
11280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11281 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11282           # Check whether --enable-odcombobox was given.
11283 if test "${enable_odcombobox+set}" = set; then
11284   enableval=$enable_odcombobox;
11285                           if test "$enableval" = yes; then
11286                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11287                           else
11288                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11289                           fi
11290
11291 else
11292
11293                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11294
11295 fi
11296
11297
11298           eval "$wx_cv_use_odcombobox"
11299
11300           if test x"$enablestring" = xdisable; then
11301             if test $wxUSE_ODCOMBOBOX = no; then
11302               result=yes
11303             else
11304               result=no
11305             fi
11306           else
11307             result=$wxUSE_ODCOMBOBOX
11308           fi
11309
11310           { echo "$as_me:$LINENO: result: $result" >&5
11311 echo "${ECHO_T}$result" >&6; }
11312
11313
11314           enablestring=
11315           defaultval=$wxUSE_ALL_FEATURES
11316           if test -z "$defaultval"; then
11317               if test x"$enablestring" = xdisable; then
11318                   defaultval=yes
11319               else
11320                   defaultval=no
11321               fi
11322           fi
11323
11324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11325 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11326           # Check whether --enable-popupwin was given.
11327 if test "${enable_popupwin+set}" = set; then
11328   enableval=$enable_popupwin;
11329                           if test "$enableval" = yes; then
11330                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11331                           else
11332                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11333                           fi
11334
11335 else
11336
11337                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11338
11339 fi
11340
11341
11342           eval "$wx_cv_use_popupwin"
11343
11344           if test x"$enablestring" = xdisable; then
11345             if test $wxUSE_POPUPWIN = no; then
11346               result=yes
11347             else
11348               result=no
11349             fi
11350           else
11351             result=$wxUSE_POPUPWIN
11352           fi
11353
11354           { echo "$as_me:$LINENO: result: $result" >&5
11355 echo "${ECHO_T}$result" >&6; }
11356
11357
11358           enablestring=
11359           defaultval=$wxUSE_ALL_FEATURES
11360           if test -z "$defaultval"; then
11361               if test x"$enablestring" = xdisable; then
11362                   defaultval=yes
11363               else
11364                   defaultval=no
11365               fi
11366           fi
11367
11368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11369 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11370           # Check whether --enable-radiobox was given.
11371 if test "${enable_radiobox+set}" = set; then
11372   enableval=$enable_radiobox;
11373                           if test "$enableval" = yes; then
11374                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11375                           else
11376                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11377                           fi
11378
11379 else
11380
11381                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11382
11383 fi
11384
11385
11386           eval "$wx_cv_use_radiobox"
11387
11388           if test x"$enablestring" = xdisable; then
11389             if test $wxUSE_RADIOBOX = no; then
11390               result=yes
11391             else
11392               result=no
11393             fi
11394           else
11395             result=$wxUSE_RADIOBOX
11396           fi
11397
11398           { echo "$as_me:$LINENO: result: $result" >&5
11399 echo "${ECHO_T}$result" >&6; }
11400
11401
11402           enablestring=
11403           defaultval=$wxUSE_ALL_FEATURES
11404           if test -z "$defaultval"; then
11405               if test x"$enablestring" = xdisable; then
11406                   defaultval=yes
11407               else
11408                   defaultval=no
11409               fi
11410           fi
11411
11412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11413 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11414           # Check whether --enable-radiobtn was given.
11415 if test "${enable_radiobtn+set}" = set; then
11416   enableval=$enable_radiobtn;
11417                           if test "$enableval" = yes; then
11418                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11419                           else
11420                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11421                           fi
11422
11423 else
11424
11425                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11426
11427 fi
11428
11429
11430           eval "$wx_cv_use_radiobtn"
11431
11432           if test x"$enablestring" = xdisable; then
11433             if test $wxUSE_RADIOBTN = no; then
11434               result=yes
11435             else
11436               result=no
11437             fi
11438           else
11439             result=$wxUSE_RADIOBTN
11440           fi
11441
11442           { echo "$as_me:$LINENO: result: $result" >&5
11443 echo "${ECHO_T}$result" >&6; }
11444
11445
11446           enablestring=
11447           defaultval=$wxUSE_ALL_FEATURES
11448           if test -z "$defaultval"; then
11449               if test x"$enablestring" = xdisable; then
11450                   defaultval=yes
11451               else
11452                   defaultval=no
11453               fi
11454           fi
11455
11456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11457 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11458           # Check whether --enable-rearrangectrl was given.
11459 if test "${enable_rearrangectrl+set}" = set; then
11460   enableval=$enable_rearrangectrl;
11461                           if test "$enableval" = yes; then
11462                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11463                           else
11464                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11465                           fi
11466
11467 else
11468
11469                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11470
11471 fi
11472
11473
11474           eval "$wx_cv_use_rearrangectrl"
11475
11476           if test x"$enablestring" = xdisable; then
11477             if test $wxUSE_REARRANGECTRL = no; then
11478               result=yes
11479             else
11480               result=no
11481             fi
11482           else
11483             result=$wxUSE_REARRANGECTRL
11484           fi
11485
11486           { echo "$as_me:$LINENO: result: $result" >&5
11487 echo "${ECHO_T}$result" >&6; }
11488
11489
11490           enablestring=
11491           defaultval=$wxUSE_ALL_FEATURES
11492           if test -z "$defaultval"; then
11493               if test x"$enablestring" = xdisable; then
11494                   defaultval=yes
11495               else
11496                   defaultval=no
11497               fi
11498           fi
11499
11500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11501 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11502           # Check whether --enable-sash was given.
11503 if test "${enable_sash+set}" = set; then
11504   enableval=$enable_sash;
11505                           if test "$enableval" = yes; then
11506                             wx_cv_use_sash='wxUSE_SASH=yes'
11507                           else
11508                             wx_cv_use_sash='wxUSE_SASH=no'
11509                           fi
11510
11511 else
11512
11513                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11514
11515 fi
11516
11517
11518           eval "$wx_cv_use_sash"
11519
11520           if test x"$enablestring" = xdisable; then
11521             if test $wxUSE_SASH = no; then
11522               result=yes
11523             else
11524               result=no
11525             fi
11526           else
11527             result=$wxUSE_SASH
11528           fi
11529
11530           { echo "$as_me:$LINENO: result: $result" >&5
11531 echo "${ECHO_T}$result" >&6; }
11532
11533
11534           enablestring=
11535           defaultval=$wxUSE_ALL_FEATURES
11536           if test -z "$defaultval"; then
11537               if test x"$enablestring" = xdisable; then
11538                   defaultval=yes
11539               else
11540                   defaultval=no
11541               fi
11542           fi
11543
11544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11545 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11546           # Check whether --enable-scrollbar was given.
11547 if test "${enable_scrollbar+set}" = set; then
11548   enableval=$enable_scrollbar;
11549                           if test "$enableval" = yes; then
11550                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11551                           else
11552                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11553                           fi
11554
11555 else
11556
11557                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11558
11559 fi
11560
11561
11562           eval "$wx_cv_use_scrollbar"
11563
11564           if test x"$enablestring" = xdisable; then
11565             if test $wxUSE_SCROLLBAR = no; then
11566               result=yes
11567             else
11568               result=no
11569             fi
11570           else
11571             result=$wxUSE_SCROLLBAR
11572           fi
11573
11574           { echo "$as_me:$LINENO: result: $result" >&5
11575 echo "${ECHO_T}$result" >&6; }
11576
11577
11578           enablestring=
11579           defaultval=$wxUSE_ALL_FEATURES
11580           if test -z "$defaultval"; then
11581               if test x"$enablestring" = xdisable; then
11582                   defaultval=yes
11583               else
11584                   defaultval=no
11585               fi
11586           fi
11587
11588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11589 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11590           # Check whether --enable-searchctrl was given.
11591 if test "${enable_searchctrl+set}" = set; then
11592   enableval=$enable_searchctrl;
11593                           if test "$enableval" = yes; then
11594                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11595                           else
11596                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11597                           fi
11598
11599 else
11600
11601                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11602
11603 fi
11604
11605
11606           eval "$wx_cv_use_searchctrl"
11607
11608           if test x"$enablestring" = xdisable; then
11609             if test $wxUSE_SEARCHCTRL = no; then
11610               result=yes
11611             else
11612               result=no
11613             fi
11614           else
11615             result=$wxUSE_SEARCHCTRL
11616           fi
11617
11618           { echo "$as_me:$LINENO: result: $result" >&5
11619 echo "${ECHO_T}$result" >&6; }
11620
11621
11622           enablestring=
11623           defaultval=$wxUSE_ALL_FEATURES
11624           if test -z "$defaultval"; then
11625               if test x"$enablestring" = xdisable; then
11626                   defaultval=yes
11627               else
11628                   defaultval=no
11629               fi
11630           fi
11631
11632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11633 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11634           # Check whether --enable-slider was given.
11635 if test "${enable_slider+set}" = set; then
11636   enableval=$enable_slider;
11637                           if test "$enableval" = yes; then
11638                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11639                           else
11640                             wx_cv_use_slider='wxUSE_SLIDER=no'
11641                           fi
11642
11643 else
11644
11645                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11646
11647 fi
11648
11649
11650           eval "$wx_cv_use_slider"
11651
11652           if test x"$enablestring" = xdisable; then
11653             if test $wxUSE_SLIDER = no; then
11654               result=yes
11655             else
11656               result=no
11657             fi
11658           else
11659             result=$wxUSE_SLIDER
11660           fi
11661
11662           { echo "$as_me:$LINENO: result: $result" >&5
11663 echo "${ECHO_T}$result" >&6; }
11664
11665
11666           enablestring=
11667           defaultval=$wxUSE_ALL_FEATURES
11668           if test -z "$defaultval"; then
11669               if test x"$enablestring" = xdisable; then
11670                   defaultval=yes
11671               else
11672                   defaultval=no
11673               fi
11674           fi
11675
11676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11677 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11678           # Check whether --enable-spinbtn was given.
11679 if test "${enable_spinbtn+set}" = set; then
11680   enableval=$enable_spinbtn;
11681                           if test "$enableval" = yes; then
11682                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11683                           else
11684                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11685                           fi
11686
11687 else
11688
11689                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11690
11691 fi
11692
11693
11694           eval "$wx_cv_use_spinbtn"
11695
11696           if test x"$enablestring" = xdisable; then
11697             if test $wxUSE_SPINBTN = no; then
11698               result=yes
11699             else
11700               result=no
11701             fi
11702           else
11703             result=$wxUSE_SPINBTN
11704           fi
11705
11706           { echo "$as_me:$LINENO: result: $result" >&5
11707 echo "${ECHO_T}$result" >&6; }
11708
11709
11710           enablestring=
11711           defaultval=$wxUSE_ALL_FEATURES
11712           if test -z "$defaultval"; then
11713               if test x"$enablestring" = xdisable; then
11714                   defaultval=yes
11715               else
11716                   defaultval=no
11717               fi
11718           fi
11719
11720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11721 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11722           # Check whether --enable-spinctrl was given.
11723 if test "${enable_spinctrl+set}" = set; then
11724   enableval=$enable_spinctrl;
11725                           if test "$enableval" = yes; then
11726                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11727                           else
11728                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11729                           fi
11730
11731 else
11732
11733                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11734
11735 fi
11736
11737
11738           eval "$wx_cv_use_spinctrl"
11739
11740           if test x"$enablestring" = xdisable; then
11741             if test $wxUSE_SPINCTRL = no; then
11742               result=yes
11743             else
11744               result=no
11745             fi
11746           else
11747             result=$wxUSE_SPINCTRL
11748           fi
11749
11750           { echo "$as_me:$LINENO: result: $result" >&5
11751 echo "${ECHO_T}$result" >&6; }
11752
11753
11754           enablestring=
11755           defaultval=$wxUSE_ALL_FEATURES
11756           if test -z "$defaultval"; then
11757               if test x"$enablestring" = xdisable; then
11758                   defaultval=yes
11759               else
11760                   defaultval=no
11761               fi
11762           fi
11763
11764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11765 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11766           # Check whether --enable-splitter was given.
11767 if test "${enable_splitter+set}" = set; then
11768   enableval=$enable_splitter;
11769                           if test "$enableval" = yes; then
11770                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11771                           else
11772                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11773                           fi
11774
11775 else
11776
11777                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11778
11779 fi
11780
11781
11782           eval "$wx_cv_use_splitter"
11783
11784           if test x"$enablestring" = xdisable; then
11785             if test $wxUSE_SPLITTER = no; then
11786               result=yes
11787             else
11788               result=no
11789             fi
11790           else
11791             result=$wxUSE_SPLITTER
11792           fi
11793
11794           { echo "$as_me:$LINENO: result: $result" >&5
11795 echo "${ECHO_T}$result" >&6; }
11796
11797
11798           enablestring=
11799           defaultval=$wxUSE_ALL_FEATURES
11800           if test -z "$defaultval"; then
11801               if test x"$enablestring" = xdisable; then
11802                   defaultval=yes
11803               else
11804                   defaultval=no
11805               fi
11806           fi
11807
11808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11809 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11810           # Check whether --enable-statbmp was given.
11811 if test "${enable_statbmp+set}" = set; then
11812   enableval=$enable_statbmp;
11813                           if test "$enableval" = yes; then
11814                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11815                           else
11816                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11817                           fi
11818
11819 else
11820
11821                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11822
11823 fi
11824
11825
11826           eval "$wx_cv_use_statbmp"
11827
11828           if test x"$enablestring" = xdisable; then
11829             if test $wxUSE_STATBMP = no; then
11830               result=yes
11831             else
11832               result=no
11833             fi
11834           else
11835             result=$wxUSE_STATBMP
11836           fi
11837
11838           { echo "$as_me:$LINENO: result: $result" >&5
11839 echo "${ECHO_T}$result" >&6; }
11840
11841
11842           enablestring=
11843           defaultval=$wxUSE_ALL_FEATURES
11844           if test -z "$defaultval"; then
11845               if test x"$enablestring" = xdisable; then
11846                   defaultval=yes
11847               else
11848                   defaultval=no
11849               fi
11850           fi
11851
11852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11853 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11854           # Check whether --enable-statbox was given.
11855 if test "${enable_statbox+set}" = set; then
11856   enableval=$enable_statbox;
11857                           if test "$enableval" = yes; then
11858                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11859                           else
11860                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11861                           fi
11862
11863 else
11864
11865                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11866
11867 fi
11868
11869
11870           eval "$wx_cv_use_statbox"
11871
11872           if test x"$enablestring" = xdisable; then
11873             if test $wxUSE_STATBOX = no; then
11874               result=yes
11875             else
11876               result=no
11877             fi
11878           else
11879             result=$wxUSE_STATBOX
11880           fi
11881
11882           { echo "$as_me:$LINENO: result: $result" >&5
11883 echo "${ECHO_T}$result" >&6; }
11884
11885
11886           enablestring=
11887           defaultval=$wxUSE_ALL_FEATURES
11888           if test -z "$defaultval"; then
11889               if test x"$enablestring" = xdisable; then
11890                   defaultval=yes
11891               else
11892                   defaultval=no
11893               fi
11894           fi
11895
11896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11897 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11898           # Check whether --enable-statline was given.
11899 if test "${enable_statline+set}" = set; then
11900   enableval=$enable_statline;
11901                           if test "$enableval" = yes; then
11902                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11903                           else
11904                             wx_cv_use_statline='wxUSE_STATLINE=no'
11905                           fi
11906
11907 else
11908
11909                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11910
11911 fi
11912
11913
11914           eval "$wx_cv_use_statline"
11915
11916           if test x"$enablestring" = xdisable; then
11917             if test $wxUSE_STATLINE = no; then
11918               result=yes
11919             else
11920               result=no
11921             fi
11922           else
11923             result=$wxUSE_STATLINE
11924           fi
11925
11926           { echo "$as_me:$LINENO: result: $result" >&5
11927 echo "${ECHO_T}$result" >&6; }
11928
11929
11930           enablestring=
11931           defaultval=$wxUSE_ALL_FEATURES
11932           if test -z "$defaultval"; then
11933               if test x"$enablestring" = xdisable; then
11934                   defaultval=yes
11935               else
11936                   defaultval=no
11937               fi
11938           fi
11939
11940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11941 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11942           # Check whether --enable-stattext was given.
11943 if test "${enable_stattext+set}" = set; then
11944   enableval=$enable_stattext;
11945                           if test "$enableval" = yes; then
11946                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11947                           else
11948                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11949                           fi
11950
11951 else
11952
11953                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11954
11955 fi
11956
11957
11958           eval "$wx_cv_use_stattext"
11959
11960           if test x"$enablestring" = xdisable; then
11961             if test $wxUSE_STATTEXT = no; then
11962               result=yes
11963             else
11964               result=no
11965             fi
11966           else
11967             result=$wxUSE_STATTEXT
11968           fi
11969
11970           { echo "$as_me:$LINENO: result: $result" >&5
11971 echo "${ECHO_T}$result" >&6; }
11972
11973
11974           enablestring=
11975           defaultval=$wxUSE_ALL_FEATURES
11976           if test -z "$defaultval"; then
11977               if test x"$enablestring" = xdisable; then
11978                   defaultval=yes
11979               else
11980                   defaultval=no
11981               fi
11982           fi
11983
11984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11985 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11986           # Check whether --enable-statusbar was given.
11987 if test "${enable_statusbar+set}" = set; then
11988   enableval=$enable_statusbar;
11989                           if test "$enableval" = yes; then
11990                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11991                           else
11992                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11993                           fi
11994
11995 else
11996
11997                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11998
11999 fi
12000
12001
12002           eval "$wx_cv_use_statusbar"
12003
12004           if test x"$enablestring" = xdisable; then
12005             if test $wxUSE_STATUSBAR = no; then
12006               result=yes
12007             else
12008               result=no
12009             fi
12010           else
12011             result=$wxUSE_STATUSBAR
12012           fi
12013
12014           { echo "$as_me:$LINENO: result: $result" >&5
12015 echo "${ECHO_T}$result" >&6; }
12016
12017
12018           enablestring=
12019           defaultval=$wxUSE_ALL_FEATURES
12020           if test -z "$defaultval"; then
12021               if test x"$enablestring" = xdisable; then
12022                   defaultval=yes
12023               else
12024                   defaultval=no
12025               fi
12026           fi
12027
12028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12029 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12030           # Check whether --enable-taskbaricon was given.
12031 if test "${enable_taskbaricon+set}" = set; then
12032   enableval=$enable_taskbaricon;
12033                           if test "$enableval" = yes; then
12034                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12035                           else
12036                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12037                           fi
12038
12039 else
12040
12041                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12042
12043 fi
12044
12045
12046           eval "$wx_cv_use_taskbaricon"
12047
12048           if test x"$enablestring" = xdisable; then
12049             if test $wxUSE_TASKBARICON = no; then
12050               result=yes
12051             else
12052               result=no
12053             fi
12054           else
12055             result=$wxUSE_TASKBARICON
12056           fi
12057
12058           { echo "$as_me:$LINENO: result: $result" >&5
12059 echo "${ECHO_T}$result" >&6; }
12060
12061
12062           enablestring=
12063           defaultval=$wxUSE_ALL_FEATURES
12064           if test -z "$defaultval"; then
12065               if test x"$enablestring" = xdisable; then
12066                   defaultval=yes
12067               else
12068                   defaultval=no
12069               fi
12070           fi
12071
12072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12073 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12074           # Check whether --enable-tbarnative was given.
12075 if test "${enable_tbarnative+set}" = set; then
12076   enableval=$enable_tbarnative;
12077                           if test "$enableval" = yes; then
12078                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12079                           else
12080                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12081                           fi
12082
12083 else
12084
12085                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12086
12087 fi
12088
12089
12090           eval "$wx_cv_use_tbarnative"
12091
12092           if test x"$enablestring" = xdisable; then
12093             if test $wxUSE_TOOLBAR_NATIVE = no; then
12094               result=yes
12095             else
12096               result=no
12097             fi
12098           else
12099             result=$wxUSE_TOOLBAR_NATIVE
12100           fi
12101
12102           { echo "$as_me:$LINENO: result: $result" >&5
12103 echo "${ECHO_T}$result" >&6; }
12104
12105
12106           enablestring=
12107           defaultval=$wxUSE_ALL_FEATURES
12108           if test -z "$defaultval"; then
12109               if test x"$enablestring" = xdisable; then
12110                   defaultval=yes
12111               else
12112                   defaultval=no
12113               fi
12114           fi
12115
12116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12117 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12118           # Check whether --enable-textctrl was given.
12119 if test "${enable_textctrl+set}" = set; then
12120   enableval=$enable_textctrl;
12121                           if test "$enableval" = yes; then
12122                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12123                           else
12124                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12125                           fi
12126
12127 else
12128
12129                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12130
12131 fi
12132
12133
12134           eval "$wx_cv_use_textctrl"
12135
12136           if test x"$enablestring" = xdisable; then
12137             if test $wxUSE_TEXTCTRL = no; then
12138               result=yes
12139             else
12140               result=no
12141             fi
12142           else
12143             result=$wxUSE_TEXTCTRL
12144           fi
12145
12146           { echo "$as_me:$LINENO: result: $result" >&5
12147 echo "${ECHO_T}$result" >&6; }
12148
12149
12150           enablestring=
12151           defaultval=$wxUSE_ALL_FEATURES
12152           if test -z "$defaultval"; then
12153               if test x"$enablestring" = xdisable; then
12154                   defaultval=yes
12155               else
12156                   defaultval=no
12157               fi
12158           fi
12159
12160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12161 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12162           # Check whether --enable-tipwindow was given.
12163 if test "${enable_tipwindow+set}" = set; then
12164   enableval=$enable_tipwindow;
12165                           if test "$enableval" = yes; then
12166                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12167                           else
12168                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12169                           fi
12170
12171 else
12172
12173                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12174
12175 fi
12176
12177
12178           eval "$wx_cv_use_tipwindow"
12179
12180           if test x"$enablestring" = xdisable; then
12181             if test $wxUSE_TIPWINDOW = no; then
12182               result=yes
12183             else
12184               result=no
12185             fi
12186           else
12187             result=$wxUSE_TIPWINDOW
12188           fi
12189
12190           { echo "$as_me:$LINENO: result: $result" >&5
12191 echo "${ECHO_T}$result" >&6; }
12192
12193
12194           enablestring=
12195           defaultval=$wxUSE_ALL_FEATURES
12196           if test -z "$defaultval"; then
12197               if test x"$enablestring" = xdisable; then
12198                   defaultval=yes
12199               else
12200                   defaultval=no
12201               fi
12202           fi
12203
12204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12205 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12206           # Check whether --enable-togglebtn was given.
12207 if test "${enable_togglebtn+set}" = set; then
12208   enableval=$enable_togglebtn;
12209                           if test "$enableval" = yes; then
12210                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12211                           else
12212                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12213                           fi
12214
12215 else
12216
12217                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12218
12219 fi
12220
12221
12222           eval "$wx_cv_use_togglebtn"
12223
12224           if test x"$enablestring" = xdisable; then
12225             if test $wxUSE_TOGGLEBTN = no; then
12226               result=yes
12227             else
12228               result=no
12229             fi
12230           else
12231             result=$wxUSE_TOGGLEBTN
12232           fi
12233
12234           { echo "$as_me:$LINENO: result: $result" >&5
12235 echo "${ECHO_T}$result" >&6; }
12236
12237
12238           enablestring=
12239           defaultval=$wxUSE_ALL_FEATURES
12240           if test -z "$defaultval"; then
12241               if test x"$enablestring" = xdisable; then
12242                   defaultval=yes
12243               else
12244                   defaultval=no
12245               fi
12246           fi
12247
12248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12249 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12250           # Check whether --enable-toolbar was given.
12251 if test "${enable_toolbar+set}" = set; then
12252   enableval=$enable_toolbar;
12253                           if test "$enableval" = yes; then
12254                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12255                           else
12256                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12257                           fi
12258
12259 else
12260
12261                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12262
12263 fi
12264
12265
12266           eval "$wx_cv_use_toolbar"
12267
12268           if test x"$enablestring" = xdisable; then
12269             if test $wxUSE_TOOLBAR = no; then
12270               result=yes
12271             else
12272               result=no
12273             fi
12274           else
12275             result=$wxUSE_TOOLBAR
12276           fi
12277
12278           { echo "$as_me:$LINENO: result: $result" >&5
12279 echo "${ECHO_T}$result" >&6; }
12280
12281
12282           enablestring=
12283           defaultval=$wxUSE_ALL_FEATURES
12284           if test -z "$defaultval"; then
12285               if test x"$enablestring" = xdisable; then
12286                   defaultval=yes
12287               else
12288                   defaultval=no
12289               fi
12290           fi
12291
12292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12293 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12294           # Check whether --enable-toolbook was given.
12295 if test "${enable_toolbook+set}" = set; then
12296   enableval=$enable_toolbook;
12297                           if test "$enableval" = yes; then
12298                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12299                           else
12300                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12301                           fi
12302
12303 else
12304
12305                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12306
12307 fi
12308
12309
12310           eval "$wx_cv_use_toolbook"
12311
12312           if test x"$enablestring" = xdisable; then
12313             if test $wxUSE_TOOLBOOK = no; then
12314               result=yes
12315             else
12316               result=no
12317             fi
12318           else
12319             result=$wxUSE_TOOLBOOK
12320           fi
12321
12322           { echo "$as_me:$LINENO: result: $result" >&5
12323 echo "${ECHO_T}$result" >&6; }
12324
12325
12326           enablestring=
12327           defaultval=$wxUSE_ALL_FEATURES
12328           if test -z "$defaultval"; then
12329               if test x"$enablestring" = xdisable; then
12330                   defaultval=yes
12331               else
12332                   defaultval=no
12333               fi
12334           fi
12335
12336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12337 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12338           # Check whether --enable-treebook was given.
12339 if test "${enable_treebook+set}" = set; then
12340   enableval=$enable_treebook;
12341                           if test "$enableval" = yes; then
12342                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12343                           else
12344                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12345                           fi
12346
12347 else
12348
12349                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12350
12351 fi
12352
12353
12354           eval "$wx_cv_use_treebook"
12355
12356           if test x"$enablestring" = xdisable; then
12357             if test $wxUSE_TREEBOOK = no; then
12358               result=yes
12359             else
12360               result=no
12361             fi
12362           else
12363             result=$wxUSE_TREEBOOK
12364           fi
12365
12366           { echo "$as_me:$LINENO: result: $result" >&5
12367 echo "${ECHO_T}$result" >&6; }
12368
12369
12370           enablestring=
12371           defaultval=$wxUSE_ALL_FEATURES
12372           if test -z "$defaultval"; then
12373               if test x"$enablestring" = xdisable; then
12374                   defaultval=yes
12375               else
12376                   defaultval=no
12377               fi
12378           fi
12379
12380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12381 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12382           # Check whether --enable-treectrl was given.
12383 if test "${enable_treectrl+set}" = set; then
12384   enableval=$enable_treectrl;
12385                           if test "$enableval" = yes; then
12386                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12387                           else
12388                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12389                           fi
12390
12391 else
12392
12393                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12394
12395 fi
12396
12397
12398           eval "$wx_cv_use_treectrl"
12399
12400           if test x"$enablestring" = xdisable; then
12401             if test $wxUSE_TREECTRL = no; then
12402               result=yes
12403             else
12404               result=no
12405             fi
12406           else
12407             result=$wxUSE_TREECTRL
12408           fi
12409
12410           { echo "$as_me:$LINENO: result: $result" >&5
12411 echo "${ECHO_T}$result" >&6; }
12412
12413
12414
12415
12416           enablestring=
12417           defaultval=$wxUSE_ALL_FEATURES
12418           if test -z "$defaultval"; then
12419               if test x"$enablestring" = xdisable; then
12420                   defaultval=yes
12421               else
12422                   defaultval=no
12423               fi
12424           fi
12425
12426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12427 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12428           # Check whether --enable-commondlg was given.
12429 if test "${enable_commondlg+set}" = set; then
12430   enableval=$enable_commondlg;
12431                           if test "$enableval" = yes; then
12432                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12433                           else
12434                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12435                           fi
12436
12437 else
12438
12439                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12440
12441 fi
12442
12443
12444           eval "$wx_cv_use_commondlg"
12445
12446           if test x"$enablestring" = xdisable; then
12447             if test $wxUSE_COMMONDLGS = no; then
12448               result=yes
12449             else
12450               result=no
12451             fi
12452           else
12453             result=$wxUSE_COMMONDLGS
12454           fi
12455
12456           { echo "$as_me:$LINENO: result: $result" >&5
12457 echo "${ECHO_T}$result" >&6; }
12458
12459
12460           enablestring=
12461           defaultval=$wxUSE_ALL_FEATURES
12462           if test -z "$defaultval"; then
12463               if test x"$enablestring" = xdisable; then
12464                   defaultval=yes
12465               else
12466                   defaultval=no
12467               fi
12468           fi
12469
12470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12471 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12472           # Check whether --enable-aboutdlg was given.
12473 if test "${enable_aboutdlg+set}" = set; then
12474   enableval=$enable_aboutdlg;
12475                           if test "$enableval" = yes; then
12476                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12477                           else
12478                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12479                           fi
12480
12481 else
12482
12483                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12484
12485 fi
12486
12487
12488           eval "$wx_cv_use_aboutdlg"
12489
12490           if test x"$enablestring" = xdisable; then
12491             if test $wxUSE_ABOUTDLG = no; then
12492               result=yes
12493             else
12494               result=no
12495             fi
12496           else
12497             result=$wxUSE_ABOUTDLG
12498           fi
12499
12500           { echo "$as_me:$LINENO: result: $result" >&5
12501 echo "${ECHO_T}$result" >&6; }
12502
12503
12504           enablestring=
12505           defaultval=$wxUSE_ALL_FEATURES
12506           if test -z "$defaultval"; then
12507               if test x"$enablestring" = xdisable; then
12508                   defaultval=yes
12509               else
12510                   defaultval=no
12511               fi
12512           fi
12513
12514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12515 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12516           # Check whether --enable-choicedlg was given.
12517 if test "${enable_choicedlg+set}" = set; then
12518   enableval=$enable_choicedlg;
12519                           if test "$enableval" = yes; then
12520                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12521                           else
12522                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12523                           fi
12524
12525 else
12526
12527                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12528
12529 fi
12530
12531
12532           eval "$wx_cv_use_choicedlg"
12533
12534           if test x"$enablestring" = xdisable; then
12535             if test $wxUSE_CHOICEDLG = no; then
12536               result=yes
12537             else
12538               result=no
12539             fi
12540           else
12541             result=$wxUSE_CHOICEDLG
12542           fi
12543
12544           { echo "$as_me:$LINENO: result: $result" >&5
12545 echo "${ECHO_T}$result" >&6; }
12546
12547
12548           enablestring=
12549           defaultval=$wxUSE_ALL_FEATURES
12550           if test -z "$defaultval"; then
12551               if test x"$enablestring" = xdisable; then
12552                   defaultval=yes
12553               else
12554                   defaultval=no
12555               fi
12556           fi
12557
12558           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12559 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12560           # Check whether --enable-coldlg was given.
12561 if test "${enable_coldlg+set}" = set; then
12562   enableval=$enable_coldlg;
12563                           if test "$enableval" = yes; then
12564                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12565                           else
12566                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12567                           fi
12568
12569 else
12570
12571                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12572
12573 fi
12574
12575
12576           eval "$wx_cv_use_coldlg"
12577
12578           if test x"$enablestring" = xdisable; then
12579             if test $wxUSE_COLOURDLG = no; then
12580               result=yes
12581             else
12582               result=no
12583             fi
12584           else
12585             result=$wxUSE_COLOURDLG
12586           fi
12587
12588           { echo "$as_me:$LINENO: result: $result" >&5
12589 echo "${ECHO_T}$result" >&6; }
12590
12591
12592           enablestring=
12593           defaultval=$wxUSE_ALL_FEATURES
12594           if test -z "$defaultval"; then
12595               if test x"$enablestring" = xdisable; then
12596                   defaultval=yes
12597               else
12598                   defaultval=no
12599               fi
12600           fi
12601
12602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12603 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12604           # Check whether --enable-filedlg was given.
12605 if test "${enable_filedlg+set}" = set; then
12606   enableval=$enable_filedlg;
12607                           if test "$enableval" = yes; then
12608                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12609                           else
12610                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12611                           fi
12612
12613 else
12614
12615                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12616
12617 fi
12618
12619
12620           eval "$wx_cv_use_filedlg"
12621
12622           if test x"$enablestring" = xdisable; then
12623             if test $wxUSE_FILEDLG = no; then
12624               result=yes
12625             else
12626               result=no
12627             fi
12628           else
12629             result=$wxUSE_FILEDLG
12630           fi
12631
12632           { echo "$as_me:$LINENO: result: $result" >&5
12633 echo "${ECHO_T}$result" >&6; }
12634
12635
12636           enablestring=
12637           defaultval=$wxUSE_ALL_FEATURES
12638           if test -z "$defaultval"; then
12639               if test x"$enablestring" = xdisable; then
12640                   defaultval=yes
12641               else
12642                   defaultval=no
12643               fi
12644           fi
12645
12646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12647 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12648           # Check whether --enable-finddlg was given.
12649 if test "${enable_finddlg+set}" = set; then
12650   enableval=$enable_finddlg;
12651                           if test "$enableval" = yes; then
12652                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12653                           else
12654                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12655                           fi
12656
12657 else
12658
12659                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12660
12661 fi
12662
12663
12664           eval "$wx_cv_use_finddlg"
12665
12666           if test x"$enablestring" = xdisable; then
12667             if test $wxUSE_FINDREPLDLG = no; then
12668               result=yes
12669             else
12670               result=no
12671             fi
12672           else
12673             result=$wxUSE_FINDREPLDLG
12674           fi
12675
12676           { echo "$as_me:$LINENO: result: $result" >&5
12677 echo "${ECHO_T}$result" >&6; }
12678
12679
12680           enablestring=
12681           defaultval=$wxUSE_ALL_FEATURES
12682           if test -z "$defaultval"; then
12683               if test x"$enablestring" = xdisable; then
12684                   defaultval=yes
12685               else
12686                   defaultval=no
12687               fi
12688           fi
12689
12690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12691 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12692           # Check whether --enable-fontdlg was given.
12693 if test "${enable_fontdlg+set}" = set; then
12694   enableval=$enable_fontdlg;
12695                           if test "$enableval" = yes; then
12696                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12697                           else
12698                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12699                           fi
12700
12701 else
12702
12703                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12704
12705 fi
12706
12707
12708           eval "$wx_cv_use_fontdlg"
12709
12710           if test x"$enablestring" = xdisable; then
12711             if test $wxUSE_FONTDLG = no; then
12712               result=yes
12713             else
12714               result=no
12715             fi
12716           else
12717             result=$wxUSE_FONTDLG
12718           fi
12719
12720           { echo "$as_me:$LINENO: result: $result" >&5
12721 echo "${ECHO_T}$result" >&6; }
12722
12723
12724           enablestring=
12725           defaultval=$wxUSE_ALL_FEATURES
12726           if test -z "$defaultval"; then
12727               if test x"$enablestring" = xdisable; then
12728                   defaultval=yes
12729               else
12730                   defaultval=no
12731               fi
12732           fi
12733
12734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12735 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12736           # Check whether --enable-dirdlg was given.
12737 if test "${enable_dirdlg+set}" = set; then
12738   enableval=$enable_dirdlg;
12739                           if test "$enableval" = yes; then
12740                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12741                           else
12742                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12743                           fi
12744
12745 else
12746
12747                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12748
12749 fi
12750
12751
12752           eval "$wx_cv_use_dirdlg"
12753
12754           if test x"$enablestring" = xdisable; then
12755             if test $wxUSE_DIRDLG = no; then
12756               result=yes
12757             else
12758               result=no
12759             fi
12760           else
12761             result=$wxUSE_DIRDLG
12762           fi
12763
12764           { echo "$as_me:$LINENO: result: $result" >&5
12765 echo "${ECHO_T}$result" >&6; }
12766
12767
12768           enablestring=
12769           defaultval=$wxUSE_ALL_FEATURES
12770           if test -z "$defaultval"; then
12771               if test x"$enablestring" = xdisable; then
12772                   defaultval=yes
12773               else
12774                   defaultval=no
12775               fi
12776           fi
12777
12778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12779 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12780           # Check whether --enable-msgdlg was given.
12781 if test "${enable_msgdlg+set}" = set; then
12782   enableval=$enable_msgdlg;
12783                           if test "$enableval" = yes; then
12784                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12785                           else
12786                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12787                           fi
12788
12789 else
12790
12791                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12792
12793 fi
12794
12795
12796           eval "$wx_cv_use_msgdlg"
12797
12798           if test x"$enablestring" = xdisable; then
12799             if test $wxUSE_MSGDLG = no; then
12800               result=yes
12801             else
12802               result=no
12803             fi
12804           else
12805             result=$wxUSE_MSGDLG
12806           fi
12807
12808           { echo "$as_me:$LINENO: result: $result" >&5
12809 echo "${ECHO_T}$result" >&6; }
12810
12811
12812           enablestring=
12813           defaultval=$wxUSE_ALL_FEATURES
12814           if test -z "$defaultval"; then
12815               if test x"$enablestring" = xdisable; then
12816                   defaultval=yes
12817               else
12818                   defaultval=no
12819               fi
12820           fi
12821
12822           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12823 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12824           # Check whether --enable-numberdlg was given.
12825 if test "${enable_numberdlg+set}" = set; then
12826   enableval=$enable_numberdlg;
12827                           if test "$enableval" = yes; then
12828                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12829                           else
12830                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12831                           fi
12832
12833 else
12834
12835                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12836
12837 fi
12838
12839
12840           eval "$wx_cv_use_numberdlg"
12841
12842           if test x"$enablestring" = xdisable; then
12843             if test $wxUSE_NUMBERDLG = no; then
12844               result=yes
12845             else
12846               result=no
12847             fi
12848           else
12849             result=$wxUSE_NUMBERDLG
12850           fi
12851
12852           { echo "$as_me:$LINENO: result: $result" >&5
12853 echo "${ECHO_T}$result" >&6; }
12854
12855
12856           enablestring=
12857           defaultval=$wxUSE_ALL_FEATURES
12858           if test -z "$defaultval"; then
12859               if test x"$enablestring" = xdisable; then
12860                   defaultval=yes
12861               else
12862                   defaultval=no
12863               fi
12864           fi
12865
12866           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12867 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12868           # Check whether --enable-splash was given.
12869 if test "${enable_splash+set}" = set; then
12870   enableval=$enable_splash;
12871                           if test "$enableval" = yes; then
12872                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12873                           else
12874                             wx_cv_use_splash='wxUSE_SPLASH=no'
12875                           fi
12876
12877 else
12878
12879                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12880
12881 fi
12882
12883
12884           eval "$wx_cv_use_splash"
12885
12886           if test x"$enablestring" = xdisable; then
12887             if test $wxUSE_SPLASH = no; then
12888               result=yes
12889             else
12890               result=no
12891             fi
12892           else
12893             result=$wxUSE_SPLASH
12894           fi
12895
12896           { echo "$as_me:$LINENO: result: $result" >&5
12897 echo "${ECHO_T}$result" >&6; }
12898
12899
12900           enablestring=
12901           defaultval=$wxUSE_ALL_FEATURES
12902           if test -z "$defaultval"; then
12903               if test x"$enablestring" = xdisable; then
12904                   defaultval=yes
12905               else
12906                   defaultval=no
12907               fi
12908           fi
12909
12910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12911 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12912           # Check whether --enable-textdlg was given.
12913 if test "${enable_textdlg+set}" = set; then
12914   enableval=$enable_textdlg;
12915                           if test "$enableval" = yes; then
12916                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12917                           else
12918                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12919                           fi
12920
12921 else
12922
12923                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12924
12925 fi
12926
12927
12928           eval "$wx_cv_use_textdlg"
12929
12930           if test x"$enablestring" = xdisable; then
12931             if test $wxUSE_TEXTDLG = no; then
12932               result=yes
12933             else
12934               result=no
12935             fi
12936           else
12937             result=$wxUSE_TEXTDLG
12938           fi
12939
12940           { echo "$as_me:$LINENO: result: $result" >&5
12941 echo "${ECHO_T}$result" >&6; }
12942
12943
12944           enablestring=
12945           defaultval=$wxUSE_ALL_FEATURES
12946           if test -z "$defaultval"; then
12947               if test x"$enablestring" = xdisable; then
12948                   defaultval=yes
12949               else
12950                   defaultval=no
12951               fi
12952           fi
12953
12954           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12955 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12956           # Check whether --enable-tipdlg was given.
12957 if test "${enable_tipdlg+set}" = set; then
12958   enableval=$enable_tipdlg;
12959                           if test "$enableval" = yes; then
12960                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12961                           else
12962                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12963                           fi
12964
12965 else
12966
12967                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12968
12969 fi
12970
12971
12972           eval "$wx_cv_use_tipdlg"
12973
12974           if test x"$enablestring" = xdisable; then
12975             if test $wxUSE_STARTUP_TIPS = no; then
12976               result=yes
12977             else
12978               result=no
12979             fi
12980           else
12981             result=$wxUSE_STARTUP_TIPS
12982           fi
12983
12984           { echo "$as_me:$LINENO: result: $result" >&5
12985 echo "${ECHO_T}$result" >&6; }
12986
12987
12988           enablestring=
12989           defaultval=$wxUSE_ALL_FEATURES
12990           if test -z "$defaultval"; then
12991               if test x"$enablestring" = xdisable; then
12992                   defaultval=yes
12993               else
12994                   defaultval=no
12995               fi
12996           fi
12997
12998           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12999 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13000           # Check whether --enable-progressdlg was given.
13001 if test "${enable_progressdlg+set}" = set; then
13002   enableval=$enable_progressdlg;
13003                           if test "$enableval" = yes; then
13004                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13005                           else
13006                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13007                           fi
13008
13009 else
13010
13011                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13012
13013 fi
13014
13015
13016           eval "$wx_cv_use_progressdlg"
13017
13018           if test x"$enablestring" = xdisable; then
13019             if test $wxUSE_PROGRESSDLG = no; then
13020               result=yes
13021             else
13022               result=no
13023             fi
13024           else
13025             result=$wxUSE_PROGRESSDLG
13026           fi
13027
13028           { echo "$as_me:$LINENO: result: $result" >&5
13029 echo "${ECHO_T}$result" >&6; }
13030
13031
13032           enablestring=
13033           defaultval=$wxUSE_ALL_FEATURES
13034           if test -z "$defaultval"; then
13035               if test x"$enablestring" = xdisable; then
13036                   defaultval=yes
13037               else
13038                   defaultval=no
13039               fi
13040           fi
13041
13042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13043 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13044           # Check whether --enable-wizarddlg was given.
13045 if test "${enable_wizarddlg+set}" = set; then
13046   enableval=$enable_wizarddlg;
13047                           if test "$enableval" = yes; then
13048                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13049                           else
13050                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13051                           fi
13052
13053 else
13054
13055                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13056
13057 fi
13058
13059
13060           eval "$wx_cv_use_wizarddlg"
13061
13062           if test x"$enablestring" = xdisable; then
13063             if test $wxUSE_WIZARDDLG = no; then
13064               result=yes
13065             else
13066               result=no
13067             fi
13068           else
13069             result=$wxUSE_WIZARDDLG
13070           fi
13071
13072           { echo "$as_me:$LINENO: result: $result" >&5
13073 echo "${ECHO_T}$result" >&6; }
13074
13075
13076
13077
13078           enablestring=
13079           defaultval=$wxUSE_ALL_FEATURES
13080           if test -z "$defaultval"; then
13081               if test x"$enablestring" = xdisable; then
13082                   defaultval=yes
13083               else
13084                   defaultval=no
13085               fi
13086           fi
13087
13088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13089 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13090           # Check whether --enable-menus was given.
13091 if test "${enable_menus+set}" = set; then
13092   enableval=$enable_menus;
13093                           if test "$enableval" = yes; then
13094                             wx_cv_use_menus='wxUSE_MENUS=yes'
13095                           else
13096                             wx_cv_use_menus='wxUSE_MENUS=no'
13097                           fi
13098
13099 else
13100
13101                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13102
13103 fi
13104
13105
13106           eval "$wx_cv_use_menus"
13107
13108           if test x"$enablestring" = xdisable; then
13109             if test $wxUSE_MENUS = no; then
13110               result=yes
13111             else
13112               result=no
13113             fi
13114           else
13115             result=$wxUSE_MENUS
13116           fi
13117
13118           { echo "$as_me:$LINENO: result: $result" >&5
13119 echo "${ECHO_T}$result" >&6; }
13120
13121
13122           enablestring=
13123           defaultval=$wxUSE_ALL_FEATURES
13124           if test -z "$defaultval"; then
13125               if test x"$enablestring" = xdisable; then
13126                   defaultval=yes
13127               else
13128                   defaultval=no
13129               fi
13130           fi
13131
13132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13133 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13134           # Check whether --enable-miniframe was given.
13135 if test "${enable_miniframe+set}" = set; then
13136   enableval=$enable_miniframe;
13137                           if test "$enableval" = yes; then
13138                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13139                           else
13140                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13141                           fi
13142
13143 else
13144
13145                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13146
13147 fi
13148
13149
13150           eval "$wx_cv_use_miniframe"
13151
13152           if test x"$enablestring" = xdisable; then
13153             if test $wxUSE_MINIFRAME = no; then
13154               result=yes
13155             else
13156               result=no
13157             fi
13158           else
13159             result=$wxUSE_MINIFRAME
13160           fi
13161
13162           { echo "$as_me:$LINENO: result: $result" >&5
13163 echo "${ECHO_T}$result" >&6; }
13164
13165
13166           enablestring=
13167           defaultval=$wxUSE_ALL_FEATURES
13168           if test -z "$defaultval"; then
13169               if test x"$enablestring" = xdisable; then
13170                   defaultval=yes
13171               else
13172                   defaultval=no
13173               fi
13174           fi
13175
13176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13177 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13178           # Check whether --enable-tooltips was given.
13179 if test "${enable_tooltips+set}" = set; then
13180   enableval=$enable_tooltips;
13181                           if test "$enableval" = yes; then
13182                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13183                           else
13184                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13185                           fi
13186
13187 else
13188
13189                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13190
13191 fi
13192
13193
13194           eval "$wx_cv_use_tooltips"
13195
13196           if test x"$enablestring" = xdisable; then
13197             if test $wxUSE_TOOLTIPS = no; then
13198               result=yes
13199             else
13200               result=no
13201             fi
13202           else
13203             result=$wxUSE_TOOLTIPS
13204           fi
13205
13206           { echo "$as_me:$LINENO: result: $result" >&5
13207 echo "${ECHO_T}$result" >&6; }
13208
13209
13210           enablestring=
13211           defaultval=$wxUSE_ALL_FEATURES
13212           if test -z "$defaultval"; then
13213               if test x"$enablestring" = xdisable; then
13214                   defaultval=yes
13215               else
13216                   defaultval=no
13217               fi
13218           fi
13219
13220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13221 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13222           # Check whether --enable-splines was given.
13223 if test "${enable_splines+set}" = set; then
13224   enableval=$enable_splines;
13225                           if test "$enableval" = yes; then
13226                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13227                           else
13228                             wx_cv_use_splines='wxUSE_SPLINES=no'
13229                           fi
13230
13231 else
13232
13233                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13234
13235 fi
13236
13237
13238           eval "$wx_cv_use_splines"
13239
13240           if test x"$enablestring" = xdisable; then
13241             if test $wxUSE_SPLINES = no; then
13242               result=yes
13243             else
13244               result=no
13245             fi
13246           else
13247             result=$wxUSE_SPLINES
13248           fi
13249
13250           { echo "$as_me:$LINENO: result: $result" >&5
13251 echo "${ECHO_T}$result" >&6; }
13252
13253
13254           enablestring=
13255           defaultval=$wxUSE_ALL_FEATURES
13256           if test -z "$defaultval"; then
13257               if test x"$enablestring" = xdisable; then
13258                   defaultval=yes
13259               else
13260                   defaultval=no
13261               fi
13262           fi
13263
13264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13265 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13266           # Check whether --enable-mousewheel was given.
13267 if test "${enable_mousewheel+set}" = set; then
13268   enableval=$enable_mousewheel;
13269                           if test "$enableval" = yes; then
13270                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13271                           else
13272                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13273                           fi
13274
13275 else
13276
13277                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13278
13279 fi
13280
13281
13282           eval "$wx_cv_use_mousewheel"
13283
13284           if test x"$enablestring" = xdisable; then
13285             if test $wxUSE_MOUSEWHEEL = no; then
13286               result=yes
13287             else
13288               result=no
13289             fi
13290           else
13291             result=$wxUSE_MOUSEWHEEL
13292           fi
13293
13294           { echo "$as_me:$LINENO: result: $result" >&5
13295 echo "${ECHO_T}$result" >&6; }
13296
13297
13298           enablestring=
13299           defaultval=$wxUSE_ALL_FEATURES
13300           if test -z "$defaultval"; then
13301               if test x"$enablestring" = xdisable; then
13302                   defaultval=yes
13303               else
13304                   defaultval=no
13305               fi
13306           fi
13307
13308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13309 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13310           # Check whether --enable-validators was given.
13311 if test "${enable_validators+set}" = set; then
13312   enableval=$enable_validators;
13313                           if test "$enableval" = yes; then
13314                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13315                           else
13316                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13317                           fi
13318
13319 else
13320
13321                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13322
13323 fi
13324
13325
13326           eval "$wx_cv_use_validators"
13327
13328           if test x"$enablestring" = xdisable; then
13329             if test $wxUSE_VALIDATORS = no; then
13330               result=yes
13331             else
13332               result=no
13333             fi
13334           else
13335             result=$wxUSE_VALIDATORS
13336           fi
13337
13338           { echo "$as_me:$LINENO: result: $result" >&5
13339 echo "${ECHO_T}$result" >&6; }
13340
13341
13342           enablestring=
13343           defaultval=$wxUSE_ALL_FEATURES
13344           if test -z "$defaultval"; then
13345               if test x"$enablestring" = xdisable; then
13346                   defaultval=yes
13347               else
13348                   defaultval=no
13349               fi
13350           fi
13351
13352           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13353 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13354           # Check whether --enable-busyinfo was given.
13355 if test "${enable_busyinfo+set}" = set; then
13356   enableval=$enable_busyinfo;
13357                           if test "$enableval" = yes; then
13358                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13359                           else
13360                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13361                           fi
13362
13363 else
13364
13365                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13366
13367 fi
13368
13369
13370           eval "$wx_cv_use_busyinfo"
13371
13372           if test x"$enablestring" = xdisable; then
13373             if test $wxUSE_BUSYINFO = no; then
13374               result=yes
13375             else
13376               result=no
13377             fi
13378           else
13379             result=$wxUSE_BUSYINFO
13380           fi
13381
13382           { echo "$as_me:$LINENO: result: $result" >&5
13383 echo "${ECHO_T}$result" >&6; }
13384
13385
13386           enablestring=
13387           defaultval=$wxUSE_ALL_FEATURES
13388           if test -z "$defaultval"; then
13389               if test x"$enablestring" = xdisable; then
13390                   defaultval=yes
13391               else
13392                   defaultval=no
13393               fi
13394           fi
13395
13396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13397 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13398           # Check whether --enable-joystick was given.
13399 if test "${enable_joystick+set}" = set; then
13400   enableval=$enable_joystick;
13401                           if test "$enableval" = yes; then
13402                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13403                           else
13404                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13405                           fi
13406
13407 else
13408
13409                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13410
13411 fi
13412
13413
13414           eval "$wx_cv_use_joystick"
13415
13416           if test x"$enablestring" = xdisable; then
13417             if test $wxUSE_JOYSTICK = no; then
13418               result=yes
13419             else
13420               result=no
13421             fi
13422           else
13423             result=$wxUSE_JOYSTICK
13424           fi
13425
13426           { echo "$as_me:$LINENO: result: $result" >&5
13427 echo "${ECHO_T}$result" >&6; }
13428
13429
13430           enablestring=
13431           defaultval=$wxUSE_ALL_FEATURES
13432           if test -z "$defaultval"; then
13433               if test x"$enablestring" = xdisable; then
13434                   defaultval=yes
13435               else
13436                   defaultval=no
13437               fi
13438           fi
13439
13440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13441 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13442           # Check whether --enable-metafile was given.
13443 if test "${enable_metafile+set}" = set; then
13444   enableval=$enable_metafile;
13445                           if test "$enableval" = yes; then
13446                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13447                           else
13448                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13449                           fi
13450
13451 else
13452
13453                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13454
13455 fi
13456
13457
13458           eval "$wx_cv_use_metafile"
13459
13460           if test x"$enablestring" = xdisable; then
13461             if test $wxUSE_METAFILE = no; then
13462               result=yes
13463             else
13464               result=no
13465             fi
13466           else
13467             result=$wxUSE_METAFILE
13468           fi
13469
13470           { echo "$as_me:$LINENO: result: $result" >&5
13471 echo "${ECHO_T}$result" >&6; }
13472
13473
13474           enablestring=
13475           defaultval=$wxUSE_ALL_FEATURES
13476           if test -z "$defaultval"; then
13477               if test x"$enablestring" = xdisable; then
13478                   defaultval=yes
13479               else
13480                   defaultval=no
13481               fi
13482           fi
13483
13484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13485 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13486           # Check whether --enable-dragimage was given.
13487 if test "${enable_dragimage+set}" = set; then
13488   enableval=$enable_dragimage;
13489                           if test "$enableval" = yes; then
13490                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13491                           else
13492                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13493                           fi
13494
13495 else
13496
13497                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13498
13499 fi
13500
13501
13502           eval "$wx_cv_use_dragimage"
13503
13504           if test x"$enablestring" = xdisable; then
13505             if test $wxUSE_DRAGIMAGE = no; then
13506               result=yes
13507             else
13508               result=no
13509             fi
13510           else
13511             result=$wxUSE_DRAGIMAGE
13512           fi
13513
13514           { echo "$as_me:$LINENO: result: $result" >&5
13515 echo "${ECHO_T}$result" >&6; }
13516
13517
13518           enablestring=
13519           defaultval=$wxUSE_ALL_FEATURES
13520           if test -z "$defaultval"; then
13521               if test x"$enablestring" = xdisable; then
13522                   defaultval=yes
13523               else
13524                   defaultval=no
13525               fi
13526           fi
13527
13528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13529 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13530           # Check whether --enable-accessibility was given.
13531 if test "${enable_accessibility+set}" = set; then
13532   enableval=$enable_accessibility;
13533                           if test "$enableval" = yes; then
13534                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13535                           else
13536                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13537                           fi
13538
13539 else
13540
13541                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13542
13543 fi
13544
13545
13546           eval "$wx_cv_use_accessibility"
13547
13548           if test x"$enablestring" = xdisable; then
13549             if test $wxUSE_ACCESSIBILITY = no; then
13550               result=yes
13551             else
13552               result=no
13553             fi
13554           else
13555             result=$wxUSE_ACCESSIBILITY
13556           fi
13557
13558           { echo "$as_me:$LINENO: result: $result" >&5
13559 echo "${ECHO_T}$result" >&6; }
13560
13561
13562           enablestring=
13563           defaultval=$wxUSE_ALL_FEATURES
13564           if test -z "$defaultval"; then
13565               if test x"$enablestring" = xdisable; then
13566                   defaultval=yes
13567               else
13568                   defaultval=no
13569               fi
13570           fi
13571
13572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
13573 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
13574           # Check whether --enable-uiactionsim was given.
13575 if test "${enable_uiactionsim+set}" = set; then
13576   enableval=$enable_uiactionsim;
13577                           if test "$enableval" = yes; then
13578                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
13579                           else
13580                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
13581                           fi
13582
13583 else
13584
13585                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
13586
13587 fi
13588
13589
13590           eval "$wx_cv_use_uiactionsim"
13591
13592           if test x"$enablestring" = xdisable; then
13593             if test $wxUSE_UIACTIONSIMULATOR = no; then
13594               result=yes
13595             else
13596               result=no
13597             fi
13598           else
13599             result=$wxUSE_UIACTIONSIMULATOR
13600           fi
13601
13602           { echo "$as_me:$LINENO: result: $result" >&5
13603 echo "${ECHO_T}$result" >&6; }
13604
13605
13606
13607
13608           enablestring=
13609           defaultval=$wxUSE_ALL_FEATURES
13610           if test -z "$defaultval"; then
13611               if test x"$enablestring" = xdisable; then
13612                   defaultval=yes
13613               else
13614                   defaultval=no
13615               fi
13616           fi
13617
13618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13619 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13620           # Check whether --enable-palette was given.
13621 if test "${enable_palette+set}" = set; then
13622   enableval=$enable_palette;
13623                           if test "$enableval" = yes; then
13624                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13625                           else
13626                             wx_cv_use_palette='wxUSE_PALETTE=no'
13627                           fi
13628
13629 else
13630
13631                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13632
13633 fi
13634
13635
13636           eval "$wx_cv_use_palette"
13637
13638           if test x"$enablestring" = xdisable; then
13639             if test $wxUSE_PALETTE = no; then
13640               result=yes
13641             else
13642               result=no
13643             fi
13644           else
13645             result=$wxUSE_PALETTE
13646           fi
13647
13648           { echo "$as_me:$LINENO: result: $result" >&5
13649 echo "${ECHO_T}$result" >&6; }
13650
13651
13652           enablestring=
13653           defaultval=$wxUSE_ALL_FEATURES
13654           if test -z "$defaultval"; then
13655               if test x"$enablestring" = xdisable; then
13656                   defaultval=yes
13657               else
13658                   defaultval=no
13659               fi
13660           fi
13661
13662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13663 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13664           # Check whether --enable-image was given.
13665 if test "${enable_image+set}" = set; then
13666   enableval=$enable_image;
13667                           if test "$enableval" = yes; then
13668                             wx_cv_use_image='wxUSE_IMAGE=yes'
13669                           else
13670                             wx_cv_use_image='wxUSE_IMAGE=no'
13671                           fi
13672
13673 else
13674
13675                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13676
13677 fi
13678
13679
13680           eval "$wx_cv_use_image"
13681
13682           if test x"$enablestring" = xdisable; then
13683             if test $wxUSE_IMAGE = no; then
13684               result=yes
13685             else
13686               result=no
13687             fi
13688           else
13689             result=$wxUSE_IMAGE
13690           fi
13691
13692           { echo "$as_me:$LINENO: result: $result" >&5
13693 echo "${ECHO_T}$result" >&6; }
13694
13695
13696           enablestring=
13697           defaultval=$wxUSE_ALL_FEATURES
13698           if test -z "$defaultval"; then
13699               if test x"$enablestring" = xdisable; then
13700                   defaultval=yes
13701               else
13702                   defaultval=no
13703               fi
13704           fi
13705
13706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13707 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13708           # Check whether --enable-gif was given.
13709 if test "${enable_gif+set}" = set; then
13710   enableval=$enable_gif;
13711                           if test "$enableval" = yes; then
13712                             wx_cv_use_gif='wxUSE_GIF=yes'
13713                           else
13714                             wx_cv_use_gif='wxUSE_GIF=no'
13715                           fi
13716
13717 else
13718
13719                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13720
13721 fi
13722
13723
13724           eval "$wx_cv_use_gif"
13725
13726           if test x"$enablestring" = xdisable; then
13727             if test $wxUSE_GIF = no; then
13728               result=yes
13729             else
13730               result=no
13731             fi
13732           else
13733             result=$wxUSE_GIF
13734           fi
13735
13736           { echo "$as_me:$LINENO: result: $result" >&5
13737 echo "${ECHO_T}$result" >&6; }
13738
13739
13740           enablestring=
13741           defaultval=$wxUSE_ALL_FEATURES
13742           if test -z "$defaultval"; then
13743               if test x"$enablestring" = xdisable; then
13744                   defaultval=yes
13745               else
13746                   defaultval=no
13747               fi
13748           fi
13749
13750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13751 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13752           # Check whether --enable-pcx was given.
13753 if test "${enable_pcx+set}" = set; then
13754   enableval=$enable_pcx;
13755                           if test "$enableval" = yes; then
13756                             wx_cv_use_pcx='wxUSE_PCX=yes'
13757                           else
13758                             wx_cv_use_pcx='wxUSE_PCX=no'
13759                           fi
13760
13761 else
13762
13763                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13764
13765 fi
13766
13767
13768           eval "$wx_cv_use_pcx"
13769
13770           if test x"$enablestring" = xdisable; then
13771             if test $wxUSE_PCX = no; then
13772               result=yes
13773             else
13774               result=no
13775             fi
13776           else
13777             result=$wxUSE_PCX
13778           fi
13779
13780           { echo "$as_me:$LINENO: result: $result" >&5
13781 echo "${ECHO_T}$result" >&6; }
13782
13783
13784           enablestring=
13785           defaultval=$wxUSE_ALL_FEATURES
13786           if test -z "$defaultval"; then
13787               if test x"$enablestring" = xdisable; then
13788                   defaultval=yes
13789               else
13790                   defaultval=no
13791               fi
13792           fi
13793
13794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13795 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13796           # Check whether --enable-tga was given.
13797 if test "${enable_tga+set}" = set; then
13798   enableval=$enable_tga;
13799                           if test "$enableval" = yes; then
13800                             wx_cv_use_tga='wxUSE_TGA=yes'
13801                           else
13802                             wx_cv_use_tga='wxUSE_TGA=no'
13803                           fi
13804
13805 else
13806
13807                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13808
13809 fi
13810
13811
13812           eval "$wx_cv_use_tga"
13813
13814           if test x"$enablestring" = xdisable; then
13815             if test $wxUSE_TGA = no; then
13816               result=yes
13817             else
13818               result=no
13819             fi
13820           else
13821             result=$wxUSE_TGA
13822           fi
13823
13824           { echo "$as_me:$LINENO: result: $result" >&5
13825 echo "${ECHO_T}$result" >&6; }
13826
13827
13828           enablestring=
13829           defaultval=$wxUSE_ALL_FEATURES
13830           if test -z "$defaultval"; then
13831               if test x"$enablestring" = xdisable; then
13832                   defaultval=yes
13833               else
13834                   defaultval=no
13835               fi
13836           fi
13837
13838           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13839 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13840           # Check whether --enable-iff was given.
13841 if test "${enable_iff+set}" = set; then
13842   enableval=$enable_iff;
13843                           if test "$enableval" = yes; then
13844                             wx_cv_use_iff='wxUSE_IFF=yes'
13845                           else
13846                             wx_cv_use_iff='wxUSE_IFF=no'
13847                           fi
13848
13849 else
13850
13851                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13852
13853 fi
13854
13855
13856           eval "$wx_cv_use_iff"
13857
13858           if test x"$enablestring" = xdisable; then
13859             if test $wxUSE_IFF = no; then
13860               result=yes
13861             else
13862               result=no
13863             fi
13864           else
13865             result=$wxUSE_IFF
13866           fi
13867
13868           { echo "$as_me:$LINENO: result: $result" >&5
13869 echo "${ECHO_T}$result" >&6; }
13870
13871
13872           enablestring=
13873           defaultval=$wxUSE_ALL_FEATURES
13874           if test -z "$defaultval"; then
13875               if test x"$enablestring" = xdisable; then
13876                   defaultval=yes
13877               else
13878                   defaultval=no
13879               fi
13880           fi
13881
13882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13883 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13884           # Check whether --enable-pnm was given.
13885 if test "${enable_pnm+set}" = set; then
13886   enableval=$enable_pnm;
13887                           if test "$enableval" = yes; then
13888                             wx_cv_use_pnm='wxUSE_PNM=yes'
13889                           else
13890                             wx_cv_use_pnm='wxUSE_PNM=no'
13891                           fi
13892
13893 else
13894
13895                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13896
13897 fi
13898
13899
13900           eval "$wx_cv_use_pnm"
13901
13902           if test x"$enablestring" = xdisable; then
13903             if test $wxUSE_PNM = no; then
13904               result=yes
13905             else
13906               result=no
13907             fi
13908           else
13909             result=$wxUSE_PNM
13910           fi
13911
13912           { echo "$as_me:$LINENO: result: $result" >&5
13913 echo "${ECHO_T}$result" >&6; }
13914
13915
13916           enablestring=
13917           defaultval=$wxUSE_ALL_FEATURES
13918           if test -z "$defaultval"; then
13919               if test x"$enablestring" = xdisable; then
13920                   defaultval=yes
13921               else
13922                   defaultval=no
13923               fi
13924           fi
13925
13926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13927 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13928           # Check whether --enable-xpm was given.
13929 if test "${enable_xpm+set}" = set; then
13930   enableval=$enable_xpm;
13931                           if test "$enableval" = yes; then
13932                             wx_cv_use_xpm='wxUSE_XPM=yes'
13933                           else
13934                             wx_cv_use_xpm='wxUSE_XPM=no'
13935                           fi
13936
13937 else
13938
13939                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13940
13941 fi
13942
13943
13944           eval "$wx_cv_use_xpm"
13945
13946           if test x"$enablestring" = xdisable; then
13947             if test $wxUSE_XPM = no; then
13948               result=yes
13949             else
13950               result=no
13951             fi
13952           else
13953             result=$wxUSE_XPM
13954           fi
13955
13956           { echo "$as_me:$LINENO: result: $result" >&5
13957 echo "${ECHO_T}$result" >&6; }
13958
13959
13960           enablestring=
13961           defaultval=$wxUSE_ALL_FEATURES
13962           if test -z "$defaultval"; then
13963               if test x"$enablestring" = xdisable; then
13964                   defaultval=yes
13965               else
13966                   defaultval=no
13967               fi
13968           fi
13969
13970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13971 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13972           # Check whether --enable-ico_cur was given.
13973 if test "${enable_ico_cur+set}" = set; then
13974   enableval=$enable_ico_cur;
13975                           if test "$enableval" = yes; then
13976                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13977                           else
13978                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13979                           fi
13980
13981 else
13982
13983                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13984
13985 fi
13986
13987
13988           eval "$wx_cv_use_ico_cur"
13989
13990           if test x"$enablestring" = xdisable; then
13991             if test $wxUSE_ICO_CUR = no; then
13992               result=yes
13993             else
13994               result=no
13995             fi
13996           else
13997             result=$wxUSE_ICO_CUR
13998           fi
13999
14000           { echo "$as_me:$LINENO: result: $result" >&5
14001 echo "${ECHO_T}$result" >&6; }
14002
14003
14004
14005
14006           enablestring=
14007           defaultval=$wxUSE_ALL_FEATURES
14008           if test -z "$defaultval"; then
14009               if test x"$enablestring" = xdisable; then
14010                   defaultval=yes
14011               else
14012                   defaultval=no
14013               fi
14014           fi
14015
14016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14017 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14018           # Check whether --enable-dccache was given.
14019 if test "${enable_dccache+set}" = set; then
14020   enableval=$enable_dccache;
14021                           if test "$enableval" = yes; then
14022                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14023                           else
14024                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14025                           fi
14026
14027 else
14028
14029                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14030
14031 fi
14032
14033
14034           eval "$wx_cv_use_dccache"
14035
14036           if test x"$enablestring" = xdisable; then
14037             if test $wxUSE_DC_CACHEING = no; then
14038               result=yes
14039             else
14040               result=no
14041             fi
14042           else
14043             result=$wxUSE_DC_CACHEING
14044           fi
14045
14046           { echo "$as_me:$LINENO: result: $result" >&5
14047 echo "${ECHO_T}$result" >&6; }
14048
14049
14050           enablestring=
14051           defaultval=$wxUSE_ALL_FEATURES
14052           if test -z "$defaultval"; then
14053               if test x"$enablestring" = xdisable; then
14054                   defaultval=yes
14055               else
14056                   defaultval=no
14057               fi
14058           fi
14059
14060           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14061 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14062           # Check whether --enable-ps-in-msw was given.
14063 if test "${enable_ps_in_msw+set}" = set; then
14064   enableval=$enable_ps_in_msw;
14065                           if test "$enableval" = yes; then
14066                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14067                           else
14068                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14069                           fi
14070
14071 else
14072
14073                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14074
14075 fi
14076
14077
14078           eval "$wx_cv_use_ps_in_msw"
14079
14080           if test x"$enablestring" = xdisable; then
14081             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14082               result=yes
14083             else
14084               result=no
14085             fi
14086           else
14087             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14088           fi
14089
14090           { echo "$as_me:$LINENO: result: $result" >&5
14091 echo "${ECHO_T}$result" >&6; }
14092
14093
14094           enablestring=
14095           defaultval=$wxUSE_ALL_FEATURES
14096           if test -z "$defaultval"; then
14097               if test x"$enablestring" = xdisable; then
14098                   defaultval=yes
14099               else
14100                   defaultval=no
14101               fi
14102           fi
14103
14104           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14105 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14106           # Check whether --enable-ownerdrawn was given.
14107 if test "${enable_ownerdrawn+set}" = set; then
14108   enableval=$enable_ownerdrawn;
14109                           if test "$enableval" = yes; then
14110                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14111                           else
14112                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14113                           fi
14114
14115 else
14116
14117                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14118
14119 fi
14120
14121
14122           eval "$wx_cv_use_ownerdrawn"
14123
14124           if test x"$enablestring" = xdisable; then
14125             if test $wxUSE_OWNER_DRAWN = no; then
14126               result=yes
14127             else
14128               result=no
14129             fi
14130           else
14131             result=$wxUSE_OWNER_DRAWN
14132           fi
14133
14134           { echo "$as_me:$LINENO: result: $result" >&5
14135 echo "${ECHO_T}$result" >&6; }
14136
14137
14138           enablestring=
14139           defaultval=$wxUSE_ALL_FEATURES
14140           if test -z "$defaultval"; then
14141               if test x"$enablestring" = xdisable; then
14142                   defaultval=yes
14143               else
14144                   defaultval=no
14145               fi
14146           fi
14147
14148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14149 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14150           # Check whether --enable-uxtheme was given.
14151 if test "${enable_uxtheme+set}" = set; then
14152   enableval=$enable_uxtheme;
14153                           if test "$enableval" = yes; then
14154                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14155                           else
14156                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14157                           fi
14158
14159 else
14160
14161                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14162
14163 fi
14164
14165
14166           eval "$wx_cv_use_uxtheme"
14167
14168           if test x"$enablestring" = xdisable; then
14169             if test $wxUSE_UXTHEME = no; then
14170               result=yes
14171             else
14172               result=no
14173             fi
14174           else
14175             result=$wxUSE_UXTHEME
14176           fi
14177
14178           { echo "$as_me:$LINENO: result: $result" >&5
14179 echo "${ECHO_T}$result" >&6; }
14180
14181
14182           enablestring=
14183           defaultval=$wxUSE_ALL_FEATURES
14184           if test -z "$defaultval"; then
14185               if test x"$enablestring" = xdisable; then
14186                   defaultval=yes
14187               else
14188                   defaultval=no
14189               fi
14190           fi
14191
14192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14193 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14194           # Check whether --enable-wxdib was given.
14195 if test "${enable_wxdib+set}" = set; then
14196   enableval=$enable_wxdib;
14197                           if test "$enableval" = yes; then
14198                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14199                           else
14200                             wx_cv_use_wxdib='wxUSE_DIB=no'
14201                           fi
14202
14203 else
14204
14205                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14206
14207 fi
14208
14209
14210           eval "$wx_cv_use_wxdib"
14211
14212           if test x"$enablestring" = xdisable; then
14213             if test $wxUSE_DIB = no; then
14214               result=yes
14215             else
14216               result=no
14217             fi
14218           else
14219             result=$wxUSE_DIB
14220           fi
14221
14222           { echo "$as_me:$LINENO: result: $result" >&5
14223 echo "${ECHO_T}$result" >&6; }
14224
14225
14226 if test "$wxUSE_MSW" != 1; then
14227     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14228 fi
14229
14230
14231           enablestring=
14232           defaultval=$wxUSE_ALL_FEATURES
14233           if test -z "$defaultval"; then
14234               if test x"$enablestring" = xdisable; then
14235                   defaultval=yes
14236               else
14237                   defaultval=no
14238               fi
14239           fi
14240
14241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14242 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14243           # Check whether --enable-autoidman was given.
14244 if test "${enable_autoidman+set}" = set; then
14245   enableval=$enable_autoidman;
14246                           if test "$enableval" = yes; then
14247                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14248                           else
14249                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14250                           fi
14251
14252 else
14253
14254                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14255
14256 fi
14257
14258
14259           eval "$wx_cv_use_autoidman"
14260
14261           if test x"$enablestring" = xdisable; then
14262             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14263               result=yes
14264             else
14265               result=no
14266             fi
14267           else
14268             result=$wxUSE_AUTOID_MANAGEMENT
14269           fi
14270
14271           { echo "$as_me:$LINENO: result: $result" >&5
14272 echo "${ECHO_T}$result" >&6; }
14273
14274
14275 fi
14276
14277
14278 cat >confcache <<\_ACEOF
14279 # This file is a shell script that caches the results of configure
14280 # tests run on this system so they can be shared between configure
14281 # scripts and configure runs, see configure's option --config-cache.
14282 # It is not useful on other systems.  If it contains results you don't
14283 # want to keep, you may remove or edit it.
14284 #
14285 # config.status only pays attention to the cache file if you give it
14286 # the --recheck option to rerun configure.
14287 #
14288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14290 # following values.
14291
14292 _ACEOF
14293
14294 # The following way of writing the cache mishandles newlines in values,
14295 # but we know of no workaround that is simple, portable, and efficient.
14296 # So, we kill variables containing newlines.
14297 # Ultrix sh set writes to stderr and can't be redirected directly,
14298 # and sets the high bit in the cache file unless we assign to the vars.
14299 (
14300   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14301     eval ac_val=\$$ac_var
14302     case $ac_val in #(
14303     *${as_nl}*)
14304       case $ac_var in #(
14305       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14306 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14307       esac
14308       case $ac_var in #(
14309       _ | IFS | as_nl) ;; #(
14310       *) $as_unset $ac_var ;;
14311       esac ;;
14312     esac
14313   done
14314
14315   (set) 2>&1 |
14316     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14317     *${as_nl}ac_space=\ *)
14318       # `set' does not quote correctly, so add quotes (double-quote
14319       # substitution turns \\\\ into \\, and sed turns \\ into \).
14320       sed -n \
14321         "s/'/'\\\\''/g;
14322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14323       ;; #(
14324     *)
14325       # `set' quotes correctly as required by POSIX, so do not add quotes.
14326       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14327       ;;
14328     esac |
14329     sort
14330 ) |
14331   sed '
14332      /^ac_cv_env_/b end
14333      t clear
14334      :clear
14335      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14336      t end
14337      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14338      :end' >>confcache
14339 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14340   if test -w "$cache_file"; then
14341     test "x$cache_file" != "x/dev/null" &&
14342       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14343 echo "$as_me: updating cache $cache_file" >&6;}
14344     cat confcache >$cache_file
14345   else
14346     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14347 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14348   fi
14349 fi
14350 rm -f confcache
14351
14352 CFLAGS=${CFLAGS:=}
14353
14354
14355
14356     ac_ext=c
14357 ac_cpp='$CPP $CPPFLAGS'
14358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14361 if test -n "$ac_tool_prefix"; then
14362   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14366 if test "${ac_cv_prog_CC+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   if test -n "$CC"; then
14370   ac_cv_prog_CC="$CC" # Let the user override the test.
14371 else
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in $PATH
14374 do
14375   IFS=$as_save_IFS
14376   test -z "$as_dir" && as_dir=.
14377   for ac_exec_ext in '' $ac_executable_extensions; do
14378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14379     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14381     break 2
14382   fi
14383 done
14384 done
14385 IFS=$as_save_IFS
14386
14387 fi
14388 fi
14389 CC=$ac_cv_prog_CC
14390 if test -n "$CC"; then
14391   { echo "$as_me:$LINENO: result: $CC" >&5
14392 echo "${ECHO_T}$CC" >&6; }
14393 else
14394   { echo "$as_me:$LINENO: result: no" >&5
14395 echo "${ECHO_T}no" >&6; }
14396 fi
14397
14398
14399 fi
14400 if test -z "$ac_cv_prog_CC"; then
14401   ac_ct_CC=$CC
14402   # Extract the first word of "gcc", so it can be a program name with args.
14403 set dummy gcc; ac_word=$2
14404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   if test -n "$ac_ct_CC"; then
14410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14411 else
14412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14414 do
14415   IFS=$as_save_IFS
14416   test -z "$as_dir" && as_dir=.
14417   for ac_exec_ext in '' $ac_executable_extensions; do
14418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14419     ac_cv_prog_ac_ct_CC="gcc"
14420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14421     break 2
14422   fi
14423 done
14424 done
14425 IFS=$as_save_IFS
14426
14427 fi
14428 fi
14429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14430 if test -n "$ac_ct_CC"; then
14431   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14432 echo "${ECHO_T}$ac_ct_CC" >&6; }
14433 else
14434   { echo "$as_me:$LINENO: result: no" >&5
14435 echo "${ECHO_T}no" >&6; }
14436 fi
14437
14438   if test "x$ac_ct_CC" = x; then
14439     CC=""
14440   else
14441     case $cross_compiling:$ac_tool_warned in
14442 yes:)
14443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14444 whose name does not start with the host triplet.  If you think this
14445 configuration is useful to you, please write to autoconf@gnu.org." >&5
14446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14447 whose name does not start with the host triplet.  If you think this
14448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14449 ac_tool_warned=yes ;;
14450 esac
14451     CC=$ac_ct_CC
14452   fi
14453 else
14454   CC="$ac_cv_prog_CC"
14455 fi
14456
14457 if test -z "$CC"; then
14458           if test -n "$ac_tool_prefix"; then
14459     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14460 set dummy ${ac_tool_prefix}cc; ac_word=$2
14461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14463 if test "${ac_cv_prog_CC+set}" = set; then
14464   echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466   if test -n "$CC"; then
14467   ac_cv_prog_CC="$CC" # Let the user override the test.
14468 else
14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14471 do
14472   IFS=$as_save_IFS
14473   test -z "$as_dir" && as_dir=.
14474   for ac_exec_ext in '' $ac_executable_extensions; do
14475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14476     ac_cv_prog_CC="${ac_tool_prefix}cc"
14477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14478     break 2
14479   fi
14480 done
14481 done
14482 IFS=$as_save_IFS
14483
14484 fi
14485 fi
14486 CC=$ac_cv_prog_CC
14487 if test -n "$CC"; then
14488   { echo "$as_me:$LINENO: result: $CC" >&5
14489 echo "${ECHO_T}$CC" >&6; }
14490 else
14491   { echo "$as_me:$LINENO: result: no" >&5
14492 echo "${ECHO_T}no" >&6; }
14493 fi
14494
14495
14496   fi
14497 fi
14498 if test -z "$CC"; then
14499   # Extract the first word of "cc", so it can be a program name with args.
14500 set dummy cc; ac_word=$2
14501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14503 if test "${ac_cv_prog_CC+set}" = set; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   if test -n "$CC"; then
14507   ac_cv_prog_CC="$CC" # Let the user override the test.
14508 else
14509   ac_prog_rejected=no
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14512 do
14513   IFS=$as_save_IFS
14514   test -z "$as_dir" && as_dir=.
14515   for ac_exec_ext in '' $ac_executable_extensions; do
14516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14518        ac_prog_rejected=yes
14519        continue
14520      fi
14521     ac_cv_prog_CC="cc"
14522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523     break 2
14524   fi
14525 done
14526 done
14527 IFS=$as_save_IFS
14528
14529 if test $ac_prog_rejected = yes; then
14530   # We found a bogon in the path, so make sure we never use it.
14531   set dummy $ac_cv_prog_CC
14532   shift
14533   if test $# != 0; then
14534     # We chose a different compiler from the bogus one.
14535     # However, it has the same basename, so the bogon will be chosen
14536     # first if we set CC to just the basename; use the full file name.
14537     shift
14538     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14539   fi
14540 fi
14541 fi
14542 fi
14543 CC=$ac_cv_prog_CC
14544 if test -n "$CC"; then
14545   { echo "$as_me:$LINENO: result: $CC" >&5
14546 echo "${ECHO_T}$CC" >&6; }
14547 else
14548   { echo "$as_me:$LINENO: result: no" >&5
14549 echo "${ECHO_T}no" >&6; }
14550 fi
14551
14552
14553 fi
14554 if test -z "$CC"; then
14555   if test -n "$ac_tool_prefix"; then
14556   for ac_prog in cl.exe
14557   do
14558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14562 if test "${ac_cv_prog_CC+set}" = set; then
14563   echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565   if test -n "$CC"; then
14566   ac_cv_prog_CC="$CC" # Let the user override the test.
14567 else
14568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14569 for as_dir in $PATH
14570 do
14571   IFS=$as_save_IFS
14572   test -z "$as_dir" && as_dir=.
14573   for ac_exec_ext in '' $ac_executable_extensions; do
14574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14577     break 2
14578   fi
14579 done
14580 done
14581 IFS=$as_save_IFS
14582
14583 fi
14584 fi
14585 CC=$ac_cv_prog_CC
14586 if test -n "$CC"; then
14587   { echo "$as_me:$LINENO: result: $CC" >&5
14588 echo "${ECHO_T}$CC" >&6; }
14589 else
14590   { echo "$as_me:$LINENO: result: no" >&5
14591 echo "${ECHO_T}no" >&6; }
14592 fi
14593
14594
14595     test -n "$CC" && break
14596   done
14597 fi
14598 if test -z "$CC"; then
14599   ac_ct_CC=$CC
14600   for ac_prog in cl.exe
14601 do
14602   # Extract the first word of "$ac_prog", so it can be a program name with args.
14603 set dummy $ac_prog; ac_word=$2
14604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   if test -n "$ac_ct_CC"; then
14610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14611 else
14612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14613 for as_dir in $PATH
14614 do
14615   IFS=$as_save_IFS
14616   test -z "$as_dir" && as_dir=.
14617   for ac_exec_ext in '' $ac_executable_extensions; do
14618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14619     ac_cv_prog_ac_ct_CC="$ac_prog"
14620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14621     break 2
14622   fi
14623 done
14624 done
14625 IFS=$as_save_IFS
14626
14627 fi
14628 fi
14629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14630 if test -n "$ac_ct_CC"; then
14631   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14632 echo "${ECHO_T}$ac_ct_CC" >&6; }
14633 else
14634   { echo "$as_me:$LINENO: result: no" >&5
14635 echo "${ECHO_T}no" >&6; }
14636 fi
14637
14638
14639   test -n "$ac_ct_CC" && break
14640 done
14641
14642   if test "x$ac_ct_CC" = x; then
14643     CC=""
14644   else
14645     case $cross_compiling:$ac_tool_warned in
14646 yes:)
14647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14648 whose name does not start with the host triplet.  If you think this
14649 configuration is useful to you, please write to autoconf@gnu.org." >&5
14650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14651 whose name does not start with the host triplet.  If you think this
14652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14653 ac_tool_warned=yes ;;
14654 esac
14655     CC=$ac_ct_CC
14656   fi
14657 fi
14658
14659 fi
14660
14661
14662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14663 See \`config.log' for more details." >&5
14664 echo "$as_me: error: no acceptable C compiler found in \$PATH
14665 See \`config.log' for more details." >&2;}
14666    { (exit 1); exit 1; }; }
14667
14668 # Provide some information about the compiler.
14669 echo "$as_me:$LINENO: checking for C compiler version" >&5
14670 ac_compiler=`set X $ac_compile; echo $2`
14671 { (ac_try="$ac_compiler --version >&5"
14672 case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_compiler --version >&5") 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }
14681 { (ac_try="$ac_compiler -v >&5"
14682 case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_compiler -v >&5") 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }
14691 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }
14701
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708
14709 int
14710 main ()
14711 {
14712
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 ac_clean_files_save=$ac_clean_files
14718 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14719 # Try to create an executable without -o first, disregard a.out.
14720 # It will help us diagnose broken compilers, and finding out an intuition
14721 # of exeext.
14722 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14723 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14725 #
14726 # List of possible output files, starting from the most likely.
14727 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14728 # only as a last resort.  b.out is created by i960 compilers.
14729 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14730 #
14731 # The IRIX 6 linker writes into existing files which may not be
14732 # executable, retaining their permissions.  Remove them first so a
14733 # subsequent execution test works.
14734 ac_rmfiles=
14735 for ac_file in $ac_files
14736 do
14737   case $ac_file in
14738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14739     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14740   esac
14741 done
14742 rm -f $ac_rmfiles
14743
14744 if { (ac_try="$ac_link_default"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_link_default") 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; then
14754   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14756 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14757 # so that the user can short-circuit this test for compilers unknown to
14758 # Autoconf.
14759 for ac_file in $ac_files ''
14760 do
14761   test -f "$ac_file" || continue
14762   case $ac_file in
14763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14764         ;;
14765     [ab].out )
14766         # We found the default executable, but exeext='' is most
14767         # certainly right.
14768         break;;
14769     *.* )
14770         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14771         then :; else
14772            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14773         fi
14774         # We set ac_cv_exeext here because the later test for it is not
14775         # safe: cross compilers may not add the suffix if given an `-o'
14776         # argument, so we may need to know it at that point already.
14777         # Even if this section looks crufty: it has the advantage of
14778         # actually working.
14779         break;;
14780     * )
14781         break;;
14782   esac
14783 done
14784 test "$ac_cv_exeext" = no && ac_cv_exeext=
14785
14786 else
14787   ac_file=''
14788 fi
14789
14790 { echo "$as_me:$LINENO: result: $ac_file" >&5
14791 echo "${ECHO_T}$ac_file" >&6; }
14792 if test -z "$ac_file"; then
14793   echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14797 See \`config.log' for more details." >&5
14798 echo "$as_me: error: C compiler cannot create executables
14799 See \`config.log' for more details." >&2;}
14800    { (exit 77); exit 77; }; }
14801 fi
14802
14803 ac_exeext=$ac_cv_exeext
14804
14805 # Check that the compiler produces executables we can run.  If not, either
14806 # the compiler is broken, or we cross compile.
14807 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14810 # If not cross compiling, check that we can run a simple program.
14811 if test "$cross_compiling" != yes; then
14812   if { ac_try='./$ac_file'
14813   { (case "(($ac_try" in
14814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815   *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818   (eval "$ac_try") 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822     cross_compiling=no
14823   else
14824     if test "$cross_compiling" = maybe; then
14825         cross_compiling=yes
14826     else
14827         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14828 If you meant to cross compile, use \`--host'.
14829 See \`config.log' for more details." >&5
14830 echo "$as_me: error: cannot run C compiled programs.
14831 If you meant to cross compile, use \`--host'.
14832 See \`config.log' for more details." >&2;}
14833    { (exit 1); exit 1; }; }
14834     fi
14835   fi
14836 fi
14837 { echo "$as_me:$LINENO: result: yes" >&5
14838 echo "${ECHO_T}yes" >&6; }
14839
14840 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14841 ac_clean_files=$ac_clean_files_save
14842 # Check that the compiler produces executables we can run.  If not, either
14843 # the compiler is broken, or we cross compile.
14844 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14845 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14846 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14847 echo "${ECHO_T}$cross_compiling" >&6; }
14848
14849 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14850 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854   *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857   (eval "$ac_link") 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; then
14861   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14862 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14863 # work properly (i.e., refer to `conftest.exe'), while it won't with
14864 # `rm'.
14865 for ac_file in conftest.exe conftest conftest.*; do
14866   test -f "$ac_file" || continue
14867   case $ac_file in
14868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14869     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14870           break;;
14871     * ) break;;
14872   esac
14873 done
14874 else
14875   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14876 See \`config.log' for more details." >&5
14877 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14878 See \`config.log' for more details." >&2;}
14879    { (exit 1); exit 1; }; }
14880 fi
14881
14882 rm -f conftest$ac_cv_exeext
14883 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14884 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14885
14886 rm -f conftest.$ac_ext
14887 EXEEXT=$ac_cv_exeext
14888 ac_exeext=$EXEEXT
14889 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14890 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14891 if test "${ac_cv_objext+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900
14901 int
14902 main ()
14903 {
14904
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 rm -f conftest.o conftest.obj
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913   *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916   (eval "$ac_compile") 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; then
14920   for ac_file in conftest.o conftest.obj conftest.*; do
14921   test -f "$ac_file" || continue;
14922   case $ac_file in
14923     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14924     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14925        break;;
14926   esac
14927 done
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14933 See \`config.log' for more details." >&5
14934 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14935 See \`config.log' for more details." >&2;}
14936    { (exit 1); exit 1; }; }
14937 fi
14938
14939 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14940 fi
14941 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14942 echo "${ECHO_T}$ac_cv_objext" >&6; }
14943 OBJEXT=$ac_cv_objext
14944 ac_objext=$OBJEXT
14945 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14946 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956
14957 int
14958 main ()
14959 {
14960 #ifndef __GNUC__
14961        choke me
14962 #endif
14963
14964   ;
14965   return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972   *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975   (eval "$ac_compile") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } && {
14982          test -z "$ac_c_werror_flag" ||
14983          test ! -s conftest.err
14984        } && test -s conftest.$ac_objext; then
14985   ac_compiler_gnu=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990         ac_compiler_gnu=no
14991 fi
14992
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14995
14996 fi
14997 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14998 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14999 GCC=`test $ac_compiler_gnu = yes && echo yes`
15000 ac_test_CFLAGS=${CFLAGS+set}
15001 ac_save_CFLAGS=$CFLAGS
15002 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15004 if test "${ac_cv_prog_cc_g+set}" = set; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007   ac_save_c_werror_flag=$ac_c_werror_flag
15008    ac_c_werror_flag=yes
15009    ac_cv_prog_cc_g=no
15010    CFLAGS="-g"
15011    cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h.  */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h.  */
15017
15018 int
15019 main ()
15020 {
15021
15022   ;
15023   return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_compile") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_c_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest.$ac_objext; then
15043   ac_cv_prog_cc_g=yes
15044 else
15045   echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048         CFLAGS=""
15049       cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h.  */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h.  */
15055
15056 int
15057 main ()
15058 {
15059
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (ac_try="$ac_compile"
15066 case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_compile") 2>conftest.er1
15072   ac_status=$?
15073   grep -v '^ *+' conftest.er1 >conftest.err
15074   rm -f conftest.er1
15075   cat conftest.err >&5
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); } && {
15078          test -z "$ac_c_werror_flag" ||
15079          test ! -s conftest.err
15080        } && test -s conftest.$ac_objext; then
15081   :
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086         ac_c_werror_flag=$ac_save_c_werror_flag
15087          CFLAGS="-g"
15088          cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h.  */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h.  */
15094
15095 int
15096 main ()
15097 {
15098
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110   (eval "$ac_compile") 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } && {
15117          test -z "$ac_c_werror_flag" ||
15118          test ! -s conftest.err
15119        } && test -s conftest.$ac_objext; then
15120   ac_cv_prog_cc_g=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125
15126 fi
15127
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 fi
15130
15131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15132 fi
15133
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135    ac_c_werror_flag=$ac_save_c_werror_flag
15136 fi
15137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15138 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15139 if test "$ac_test_CFLAGS" = set; then
15140   CFLAGS=$ac_save_CFLAGS
15141 elif test $ac_cv_prog_cc_g = yes; then
15142   if test "$GCC" = yes; then
15143     CFLAGS="-g -O2"
15144   else
15145     CFLAGS="-g"
15146   fi
15147 else
15148   if test "$GCC" = yes; then
15149     CFLAGS="-O2"
15150   else
15151     CFLAGS=
15152   fi
15153 fi
15154 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15155 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15156 if test "${ac_cv_prog_cc_c89+set}" = set; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   ac_cv_prog_cc_c89=no
15160 ac_save_CC=$CC
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h.  */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h.  */
15167 #include <stdarg.h>
15168 #include <stdio.h>
15169 #include <sys/types.h>
15170 #include <sys/stat.h>
15171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15172 struct buf { int x; };
15173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15174 static char *e (p, i)
15175      char **p;
15176      int i;
15177 {
15178   return p[i];
15179 }
15180 static char *f (char * (*g) (char **, int), char **p, ...)
15181 {
15182   char *s;
15183   va_list v;
15184   va_start (v,p);
15185   s = g (p, va_arg (v,int));
15186   va_end (v);
15187   return s;
15188 }
15189
15190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15191    function prototypes and stuff, but not '\xHH' hex character constants.
15192    These don't provoke an error unfortunately, instead are silently treated
15193    as 'x'.  The following induces an error, until -std is added to get
15194    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15195    array size at least.  It's necessary to write '\x00'==0 to get something
15196    that's true only with -std.  */
15197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15198
15199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15200    inside strings and character constants.  */
15201 #define FOO(x) 'x'
15202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15203
15204 int test (int i, double x);
15205 struct s1 {int (*f) (int a);};
15206 struct s2 {int (*f) (double a);};
15207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15208 int argc;
15209 char **argv;
15210 int
15211 main ()
15212 {
15213 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15219         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15220 do
15221   CC="$ac_save_CC $ac_arg"
15222   rm -f conftest.$ac_objext
15223 if { (ac_try="$ac_compile"
15224 case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_compile") 2>conftest.er1
15230   ac_status=$?
15231   grep -v '^ *+' conftest.er1 >conftest.err
15232   rm -f conftest.er1
15233   cat conftest.err >&5
15234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235   (exit $ac_status); } && {
15236          test -z "$ac_c_werror_flag" ||
15237          test ! -s conftest.err
15238        } && test -s conftest.$ac_objext; then
15239   ac_cv_prog_cc_c89=$ac_arg
15240 else
15241   echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244
15245 fi
15246
15247 rm -f core conftest.err conftest.$ac_objext
15248   test "x$ac_cv_prog_cc_c89" != "xno" && break
15249 done
15250 rm -f conftest.$ac_ext
15251 CC=$ac_save_CC
15252
15253 fi
15254 # AC_CACHE_VAL
15255 case "x$ac_cv_prog_cc_c89" in
15256   x)
15257     { echo "$as_me:$LINENO: result: none needed" >&5
15258 echo "${ECHO_T}none needed" >&6; } ;;
15259   xno)
15260     { echo "$as_me:$LINENO: result: unsupported" >&5
15261 echo "${ECHO_T}unsupported" >&6; } ;;
15262   *)
15263     CC="$CC $ac_cv_prog_cc_c89"
15264     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15265 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15266 esac
15267
15268
15269 ac_ext=c
15270 ac_cpp='$CPP $CPPFLAGS'
15271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15274
15275
15276
15277
15278     ac_ext=c
15279 ac_cpp='$CPP $CPPFLAGS'
15280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15283
15284     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15285 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15286 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295
15296 int
15297 main ()
15298 {
15299
15300              #ifndef __INTEL_COMPILER
15301                 choke me
15302              #endif
15303
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_compile") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } && {
15322          test -z "$ac_c_werror_flag" ||
15323          test ! -s conftest.err
15324        } && test -s conftest.$ac_objext; then
15325   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330         bakefile_cv_c_compiler___INTEL_COMPILER=no
15331
15332 fi
15333
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335
15336
15337 fi
15338 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15339 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15340     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15341         :; INTELCC=yes
15342     else
15343         :;
15344     fi
15345     ac_ext=c
15346 ac_cpp='$CPP $CPPFLAGS'
15347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15350
15351
15352
15353
15354         if test "$INTELCC" = "yes"; then
15355
15356
15357     ac_ext=c
15358 ac_cpp='$CPP $CPPFLAGS'
15359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15362
15363     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15364 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15365 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 int
15376 main ()
15377 {
15378
15379              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15380                 choke me
15381              #endif
15382
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (ac_try="$ac_compile"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_compile") 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } && {
15401          test -z "$ac_c_werror_flag" ||
15402          test ! -s conftest.err
15403        } && test -s conftest.$ac_objext; then
15404   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15410
15411 fi
15412
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414
15415
15416 fi
15417 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15418 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15419     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15420         :; INTELCC8=yes
15421     else
15422         :;
15423     fi
15424     ac_ext=c
15425 ac_cpp='$CPP $CPPFLAGS'
15426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15429
15430
15431
15432
15433
15434     ac_ext=c
15435 ac_cpp='$CPP $CPPFLAGS'
15436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15439
15440     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15441 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15442 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15443   echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445   cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451
15452 int
15453 main ()
15454 {
15455
15456              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15457                 choke me
15458              #endif
15459
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (ac_try="$ac_compile"
15466 case "(($ac_try" in
15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468   *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471   (eval "$ac_compile") 2>conftest.er1
15472   ac_status=$?
15473   grep -v '^ *+' conftest.er1 >conftest.err
15474   rm -f conftest.er1
15475   cat conftest.err >&5
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } && {
15478          test -z "$ac_c_werror_flag" ||
15479          test ! -s conftest.err
15480        } && test -s conftest.$ac_objext; then
15481   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15487
15488 fi
15489
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491
15492
15493 fi
15494 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15495 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15496     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15497         :; INTELCC10=yes
15498     else
15499         :;
15500     fi
15501     ac_ext=c
15502 ac_cpp='$CPP $CPPFLAGS'
15503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15506
15507
15508
15509     fi
15510
15511         if test "x$GCC" != "xyes"; then
15512         if test "xCC" = "xC"; then
15513             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15514 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15515 if test "${bakefile_cv_c_exto+set}" = set; then
15516   echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518   cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h.  */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h.  */
15524
15525 int
15526 main ()
15527 {
15528
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 rm -f conftest.$ac_objext conftest.$ac_ext.o
15534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15535   (eval $ac_compile) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; then
15539   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15540     case $ac_file in
15541         conftest.$ac_ext.o)
15542             bakefile_cv_c_exto="-ext o"
15543             ;;
15544         *)
15545             ;;
15546     esac
15547 done
15548 else
15549   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15550 See \`config.log' for more details." >&5
15551 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15552 See \`config.log' for more details." >&2;}
15553    { (exit 1); exit 1; }; }
15554
15555 fi
15556
15557 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15558
15559 fi
15560 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15561 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15562 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15563     if test "c" = "c"; then
15564         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15565     fi
15566     if test "c" = "cxx"; then
15567         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15568     fi
15569 fi
15570
15571             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15572                 unset ac_cv_prog_cc_g
15573                 ac_test_CFLAGS=${CFLAGS+set}
15574 ac_save_CFLAGS=$CFLAGS
15575 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15577 if test "${ac_cv_prog_cc_g+set}" = set; then
15578   echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580   ac_save_c_werror_flag=$ac_c_werror_flag
15581    ac_c_werror_flag=yes
15582    ac_cv_prog_cc_g=no
15583    CFLAGS="-g"
15584    cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h.  */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h.  */
15590
15591 int
15592 main ()
15593 {
15594
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (ac_try="$ac_compile"
15601 case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_compile") 2>conftest.er1
15607   ac_status=$?
15608   grep -v '^ *+' conftest.er1 >conftest.err
15609   rm -f conftest.er1
15610   cat conftest.err >&5
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); } && {
15613          test -z "$ac_c_werror_flag" ||
15614          test ! -s conftest.err
15615        } && test -s conftest.$ac_objext; then
15616   ac_cv_prog_cc_g=yes
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621         CFLAGS=""
15622       cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628
15629 int
15630 main ()
15631 {
15632
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (ac_try="$ac_compile"
15639 case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_compile") 2>conftest.er1
15645   ac_status=$?
15646   grep -v '^ *+' conftest.er1 >conftest.err
15647   rm -f conftest.er1
15648   cat conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } && {
15651          test -z "$ac_c_werror_flag" ||
15652          test ! -s conftest.err
15653        } && test -s conftest.$ac_objext; then
15654   :
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659         ac_c_werror_flag=$ac_save_c_werror_flag
15660          CFLAGS="-g"
15661          cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667
15668 int
15669 main ()
15670 {
15671
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (ac_try="$ac_compile"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_compile") 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } && {
15690          test -z "$ac_c_werror_flag" ||
15691          test ! -s conftest.err
15692        } && test -s conftest.$ac_objext; then
15693   ac_cv_prog_cc_g=yes
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698
15699 fi
15700
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 fi
15703
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 fi
15706
15707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15708    ac_c_werror_flag=$ac_save_c_werror_flag
15709 fi
15710 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15711 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15712 if test "$ac_test_CFLAGS" = set; then
15713   CFLAGS=$ac_save_CFLAGS
15714 elif test $ac_cv_prog_cc_g = yes; then
15715   if test "$GCC" = yes; then
15716     CFLAGS="-g -O2"
15717   else
15718     CFLAGS="-g"
15719   fi
15720 else
15721   if test "$GCC" = yes; then
15722     CFLAGS="-O2"
15723   else
15724     CFLAGS=
15725   fi
15726 fi
15727             fi
15728         fi
15729
15730                         case `uname -s` in
15731             AIX*)
15732
15733
15734     ac_ext=c
15735 ac_cpp='$CPP $CPPFLAGS'
15736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15739
15740     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15741 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15742 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751
15752 int
15753 main ()
15754 {
15755
15756              #ifndef __xlC__
15757                 choke me
15758              #endif
15759
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_compile") 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } && {
15778          test -z "$ac_c_werror_flag" ||
15779          test ! -s conftest.err
15780        } && test -s conftest.$ac_objext; then
15781   bakefile_cv_c_compiler___xlC__=yes
15782 else
15783   echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15785
15786         bakefile_cv_c_compiler___xlC__=no
15787
15788 fi
15789
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791
15792
15793 fi
15794 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15795 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15796     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15797         :; XLCC=yes
15798     else
15799         :;
15800     fi
15801     ac_ext=c
15802 ac_cpp='$CPP $CPPFLAGS'
15803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15806
15807
15808
15809                 ;;
15810
15811             Darwin)
15812
15813
15814     ac_ext=c
15815 ac_cpp='$CPP $CPPFLAGS'
15816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15819
15820     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15821 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15822 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831
15832 int
15833 main ()
15834 {
15835
15836              #ifndef __MWERKS__
15837                 choke me
15838              #endif
15839
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext
15845 if { (ac_try="$ac_compile"
15846 case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_compile") 2>conftest.er1
15852   ac_status=$?
15853   grep -v '^ *+' conftest.er1 >conftest.err
15854   rm -f conftest.er1
15855   cat conftest.err >&5
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); } && {
15858          test -z "$ac_c_werror_flag" ||
15859          test ! -s conftest.err
15860        } && test -s conftest.$ac_objext; then
15861   bakefile_cv_c_compiler___MWERKS__=yes
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866         bakefile_cv_c_compiler___MWERKS__=no
15867
15868 fi
15869
15870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15871
15872
15873 fi
15874 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15875 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15876     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15877         :; MWCC=yes
15878     else
15879         :;
15880     fi
15881     ac_ext=c
15882 ac_cpp='$CPP $CPPFLAGS'
15883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15886
15887
15888
15889                 if test "$MWCC" != "yes"; then
15890
15891
15892     ac_ext=c
15893 ac_cpp='$CPP $CPPFLAGS'
15894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15897
15898     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15899 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15900 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909
15910 int
15911 main ()
15912 {
15913
15914              #ifndef __xlC__
15915                 choke me
15916              #endif
15917
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_compile") 2>conftest.er1
15930   ac_status=$?
15931   grep -v '^ *+' conftest.er1 >conftest.err
15932   rm -f conftest.er1
15933   cat conftest.err >&5
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); } && {
15936          test -z "$ac_c_werror_flag" ||
15937          test ! -s conftest.err
15938        } && test -s conftest.$ac_objext; then
15939   bakefile_cv_c_compiler___xlC__=yes
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944         bakefile_cv_c_compiler___xlC__=no
15945
15946 fi
15947
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949
15950
15951 fi
15952 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15953 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15954     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15955         :; XLCC=yes
15956     else
15957         :;
15958     fi
15959     ac_ext=c
15960 ac_cpp='$CPP $CPPFLAGS'
15961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15964
15965
15966
15967                 fi
15968                 ;;
15969
15970             IRIX*)
15971
15972
15973     ac_ext=c
15974 ac_cpp='$CPP $CPPFLAGS'
15975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15978
15979     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15980 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15981 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990
15991 int
15992 main ()
15993 {
15994
15995              #ifndef _SGI_COMPILER_VERSION
15996                 choke me
15997              #endif
15998
15999   ;
16000   return 0;
16001 }
16002 _ACEOF
16003 rm -f conftest.$ac_objext
16004 if { (ac_try="$ac_compile"
16005 case "(($ac_try" in
16006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007   *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010   (eval "$ac_compile") 2>conftest.er1
16011   ac_status=$?
16012   grep -v '^ *+' conftest.er1 >conftest.err
16013   rm -f conftest.er1
16014   cat conftest.err >&5
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } && {
16017          test -z "$ac_c_werror_flag" ||
16018          test ! -s conftest.err
16019        } && test -s conftest.$ac_objext; then
16020   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16026
16027 fi
16028
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030
16031
16032 fi
16033 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16034 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16035     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16036         :; SGICC=yes
16037     else
16038         :;
16039     fi
16040     ac_ext=c
16041 ac_cpp='$CPP $CPPFLAGS'
16042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16045
16046
16047
16048                 ;;
16049
16050             Linux*)
16051                                                 if test "$INTELCC" != "yes"; then
16052
16053
16054     ac_ext=c
16055 ac_cpp='$CPP $CPPFLAGS'
16056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16059
16060     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16061 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16062 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065   cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h.  */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h.  */
16071
16072 int
16073 main ()
16074 {
16075
16076              #ifndef __SUNPRO_C
16077                 choke me
16078              #endif
16079
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext
16085 if { (ac_try="$ac_compile"
16086 case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_compile") 2>conftest.er1
16092   ac_status=$?
16093   grep -v '^ *+' conftest.er1 >conftest.err
16094   rm -f conftest.er1
16095   cat conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } && {
16098          test -z "$ac_c_werror_flag" ||
16099          test ! -s conftest.err
16100        } && test -s conftest.$ac_objext; then
16101   bakefile_cv_c_compiler___SUNPRO_C=yes
16102 else
16103   echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16105
16106         bakefile_cv_c_compiler___SUNPRO_C=no
16107
16108 fi
16109
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111
16112
16113 fi
16114 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16115 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16116     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16117         :; SUNCC=yes
16118     else
16119         :;
16120     fi
16121     ac_ext=c
16122 ac_cpp='$CPP $CPPFLAGS'
16123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16126
16127
16128
16129                 fi
16130                 ;;
16131
16132             HP-UX*)
16133
16134
16135     ac_ext=c
16136 ac_cpp='$CPP $CPPFLAGS'
16137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140
16141     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16142 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16143 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16144   echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146   cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152
16153 int
16154 main ()
16155 {
16156
16157              #ifndef __HP_cc
16158                 choke me
16159              #endif
16160
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (ac_try="$ac_compile"
16167 case "(($ac_try" in
16168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169   *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172   (eval "$ac_compile") 2>conftest.er1
16173   ac_status=$?
16174   grep -v '^ *+' conftest.er1 >conftest.err
16175   rm -f conftest.er1
16176   cat conftest.err >&5
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); } && {
16179          test -z "$ac_c_werror_flag" ||
16180          test ! -s conftest.err
16181        } && test -s conftest.$ac_objext; then
16182   bakefile_cv_c_compiler___HP_cc=yes
16183 else
16184   echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187         bakefile_cv_c_compiler___HP_cc=no
16188
16189 fi
16190
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192
16193
16194 fi
16195 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16196 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16197     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16198         :; HPCC=yes
16199     else
16200         :;
16201     fi
16202     ac_ext=c
16203 ac_cpp='$CPP $CPPFLAGS'
16204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16207
16208
16209
16210                 ;;
16211
16212             OSF1)
16213
16214
16215     ac_ext=c
16216 ac_cpp='$CPP $CPPFLAGS'
16217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16220
16221     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16222 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16223 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16224   echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226   cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232
16233 int
16234 main ()
16235 {
16236
16237              #ifndef __DECC
16238                 choke me
16239              #endif
16240
16241   ;
16242   return 0;
16243 }
16244 _ACEOF
16245 rm -f conftest.$ac_objext
16246 if { (ac_try="$ac_compile"
16247 case "(($ac_try" in
16248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249   *) ac_try_echo=$ac_try;;
16250 esac
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252   (eval "$ac_compile") 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } && {
16259          test -z "$ac_c_werror_flag" ||
16260          test ! -s conftest.err
16261        } && test -s conftest.$ac_objext; then
16262   bakefile_cv_c_compiler___DECC=yes
16263 else
16264   echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16266
16267         bakefile_cv_c_compiler___DECC=no
16268
16269 fi
16270
16271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272
16273
16274 fi
16275 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16276 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16277     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16278         :; COMPAQCC=yes
16279     else
16280         :;
16281     fi
16282     ac_ext=c
16283 ac_cpp='$CPP $CPPFLAGS'
16284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16287
16288
16289
16290                 ;;
16291
16292             SunOS)
16293
16294
16295     ac_ext=c
16296 ac_cpp='$CPP $CPPFLAGS'
16297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16300
16301     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16302 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16303 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h.  */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h.  */
16312
16313 int
16314 main ()
16315 {
16316
16317              #ifndef __SUNPRO_C
16318                 choke me
16319              #endif
16320
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (ac_try="$ac_compile"
16327 case "(($ac_try" in
16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329   *) ac_try_echo=$ac_try;;
16330 esac
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332   (eval "$ac_compile") 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } && {
16339          test -z "$ac_c_werror_flag" ||
16340          test ! -s conftest.err
16341        } && test -s conftest.$ac_objext; then
16342   bakefile_cv_c_compiler___SUNPRO_C=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347         bakefile_cv_c_compiler___SUNPRO_C=no
16348
16349 fi
16350
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352
16353
16354 fi
16355 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16356 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16357     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16358         :; SUNCC=yes
16359     else
16360         :;
16361     fi
16362     ac_ext=c
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16367
16368
16369
16370                 ;;
16371         esac
16372     fi
16373
16374
16375
16376 ac_ext=c
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16383 # On Suns, sometimes $CPP names a directory.
16384 if test -n "$CPP" && test -d "$CPP"; then
16385   CPP=
16386 fi
16387 if test -z "$CPP"; then
16388   if test "${ac_cv_prog_CPP+set}" = set; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391       # Double quotes because CPP needs to be expanded
16392     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16393     do
16394       ac_preproc_ok=false
16395 for ac_c_preproc_warn_flag in '' yes
16396 do
16397   # Use a header file that comes with gcc, so configuring glibc
16398   # with a fresh cross-compiler works.
16399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400   # <limits.h> exists even on freestanding compilers.
16401   # On the NeXT, cc -E runs the code through the compiler's parser,
16402   # not just through cpp. "Syntax error" is here to catch this case.
16403   cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h.  */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h.  */
16409 #ifdef __STDC__
16410 # include <limits.h>
16411 #else
16412 # include <assert.h>
16413 #endif
16414                      Syntax error
16415 _ACEOF
16416 if { (ac_try="$ac_cpp conftest.$ac_ext"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16423   ac_status=$?
16424   grep -v '^ *+' conftest.er1 >conftest.err
16425   rm -f conftest.er1
16426   cat conftest.err >&5
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } >/dev/null && {
16429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430          test ! -s conftest.err
16431        }; then
16432   :
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437   # Broken: fails on valid input.
16438 continue
16439 fi
16440
16441 rm -f conftest.err conftest.$ac_ext
16442
16443   # OK, works on sane cases.  Now check whether nonexistent headers
16444   # can be detected and how.
16445   cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451 #include <ac_nonexistent.h>
16452 _ACEOF
16453 if { (ac_try="$ac_cpp conftest.$ac_ext"
16454 case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } >/dev/null && {
16466          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16467          test ! -s conftest.err
16468        }; then
16469   # Broken: success on invalid input.
16470 continue
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475   # Passes both tests.
16476 ac_preproc_ok=:
16477 break
16478 fi
16479
16480 rm -f conftest.err conftest.$ac_ext
16481
16482 done
16483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16484 rm -f conftest.err conftest.$ac_ext
16485 if $ac_preproc_ok; then
16486   break
16487 fi
16488
16489     done
16490     ac_cv_prog_CPP=$CPP
16491
16492 fi
16493   CPP=$ac_cv_prog_CPP
16494 else
16495   ac_cv_prog_CPP=$CPP
16496 fi
16497 { echo "$as_me:$LINENO: result: $CPP" >&5
16498 echo "${ECHO_T}$CPP" >&6; }
16499 ac_preproc_ok=false
16500 for ac_c_preproc_warn_flag in '' yes
16501 do
16502   # Use a header file that comes with gcc, so configuring glibc
16503   # with a fresh cross-compiler works.
16504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16505   # <limits.h> exists even on freestanding compilers.
16506   # On the NeXT, cc -E runs the code through the compiler's parser,
16507   # not just through cpp. "Syntax error" is here to catch this case.
16508   cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514 #ifdef __STDC__
16515 # include <limits.h>
16516 #else
16517 # include <assert.h>
16518 #endif
16519                      Syntax error
16520 _ACEOF
16521 if { (ac_try="$ac_cpp conftest.$ac_ext"
16522 case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } >/dev/null && {
16534          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16535          test ! -s conftest.err
16536        }; then
16537   :
16538 else
16539   echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542   # Broken: fails on valid input.
16543 continue
16544 fi
16545
16546 rm -f conftest.err conftest.$ac_ext
16547
16548   # OK, works on sane cases.  Now check whether nonexistent headers
16549   # can be detected and how.
16550   cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556 #include <ac_nonexistent.h>
16557 _ACEOF
16558 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
16571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16572          test ! -s conftest.err
16573        }; then
16574   # Broken: success on invalid input.
16575 continue
16576 else
16577   echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580   # Passes both tests.
16581 ac_preproc_ok=:
16582 break
16583 fi
16584
16585 rm -f conftest.err conftest.$ac_ext
16586
16587 done
16588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16589 rm -f conftest.err conftest.$ac_ext
16590 if $ac_preproc_ok; then
16591   :
16592 else
16593   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16594 See \`config.log' for more details." >&5
16595 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16596 See \`config.log' for more details." >&2;}
16597    { (exit 1); exit 1; }; }
16598 fi
16599
16600 ac_ext=c
16601 ac_cpp='$CPP $CPPFLAGS'
16602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16605
16606
16607 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16608 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16609 if test "${ac_cv_path_GREP+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   # Extract the first word of "grep ggrep" to use in msg output
16613 if test -z "$GREP"; then
16614 set dummy grep ggrep; ac_prog_name=$2
16615 if test "${ac_cv_path_GREP+set}" = set; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618   ac_path_GREP_found=false
16619 # Loop through the user's path and test for each of PROGNAME-LIST
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16622 do
16623   IFS=$as_save_IFS
16624   test -z "$as_dir" && as_dir=.
16625   for ac_prog in grep ggrep; do
16626   for ac_exec_ext in '' $ac_executable_extensions; do
16627     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16628     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16629     # Check for GNU ac_path_GREP and select it if it is found.
16630   # Check for GNU $ac_path_GREP
16631 case `"$ac_path_GREP" --version 2>&1` in
16632 *GNU*)
16633   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16634 *)
16635   ac_count=0
16636   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16637   while :
16638   do
16639     cat "conftest.in" "conftest.in" >"conftest.tmp"
16640     mv "conftest.tmp" "conftest.in"
16641     cp "conftest.in" "conftest.nl"
16642     echo 'GREP' >> "conftest.nl"
16643     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16645     ac_count=`expr $ac_count + 1`
16646     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16647       # Best one so far, save it but keep looking for a better one
16648       ac_cv_path_GREP="$ac_path_GREP"
16649       ac_path_GREP_max=$ac_count
16650     fi
16651     # 10*(2^10) chars as input seems more than enough
16652     test $ac_count -gt 10 && break
16653   done
16654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16655 esac
16656
16657
16658     $ac_path_GREP_found && break 3
16659   done
16660 done
16661
16662 done
16663 IFS=$as_save_IFS
16664
16665
16666 fi
16667
16668 GREP="$ac_cv_path_GREP"
16669 if test -z "$GREP"; then
16670   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16672    { (exit 1); exit 1; }; }
16673 fi
16674
16675 else
16676   ac_cv_path_GREP=$GREP
16677 fi
16678
16679
16680 fi
16681 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16682 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16683  GREP="$ac_cv_path_GREP"
16684
16685
16686 { echo "$as_me:$LINENO: checking for egrep" >&5
16687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16688 if test "${ac_cv_path_EGREP+set}" = set; then
16689   echo $ECHO_N "(cached) $ECHO_C" >&6
16690 else
16691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16692    then ac_cv_path_EGREP="$GREP -E"
16693    else
16694      # Extract the first word of "egrep" to use in msg output
16695 if test -z "$EGREP"; then
16696 set dummy egrep; ac_prog_name=$2
16697 if test "${ac_cv_path_EGREP+set}" = set; then
16698   echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700   ac_path_EGREP_found=false
16701 # Loop through the user's path and test for each of PROGNAME-LIST
16702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16704 do
16705   IFS=$as_save_IFS
16706   test -z "$as_dir" && as_dir=.
16707   for ac_prog in egrep; do
16708   for ac_exec_ext in '' $ac_executable_extensions; do
16709     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16710     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16711     # Check for GNU ac_path_EGREP and select it if it is found.
16712   # Check for GNU $ac_path_EGREP
16713 case `"$ac_path_EGREP" --version 2>&1` in
16714 *GNU*)
16715   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16716 *)
16717   ac_count=0
16718   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16719   while :
16720   do
16721     cat "conftest.in" "conftest.in" >"conftest.tmp"
16722     mv "conftest.tmp" "conftest.in"
16723     cp "conftest.in" "conftest.nl"
16724     echo 'EGREP' >> "conftest.nl"
16725     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16727     ac_count=`expr $ac_count + 1`
16728     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16729       # Best one so far, save it but keep looking for a better one
16730       ac_cv_path_EGREP="$ac_path_EGREP"
16731       ac_path_EGREP_max=$ac_count
16732     fi
16733     # 10*(2^10) chars as input seems more than enough
16734     test $ac_count -gt 10 && break
16735   done
16736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16737 esac
16738
16739
16740     $ac_path_EGREP_found && break 3
16741   done
16742 done
16743
16744 done
16745 IFS=$as_save_IFS
16746
16747
16748 fi
16749
16750 EGREP="$ac_cv_path_EGREP"
16751 if test -z "$EGREP"; then
16752   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16753 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16754    { (exit 1); exit 1; }; }
16755 fi
16756
16757 else
16758   ac_cv_path_EGREP=$EGREP
16759 fi
16760
16761
16762    fi
16763 fi
16764 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16765 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16766  EGREP="$ac_cv_path_EGREP"
16767
16768
16769 if test $ac_cv_c_compiler_gnu = yes; then
16770     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16771 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16772 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16773   echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775     ac_pattern="Autoconf.*'x'"
16776   cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h.  */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h.  */
16782 #include <sgtty.h>
16783 Autoconf TIOCGETP
16784 _ACEOF
16785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16786   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16787   ac_cv_prog_gcc_traditional=yes
16788 else
16789   ac_cv_prog_gcc_traditional=no
16790 fi
16791 rm -f conftest*
16792
16793
16794   if test $ac_cv_prog_gcc_traditional = no; then
16795     cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801 #include <termio.h>
16802 Autoconf TCGETA
16803 _ACEOF
16804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16805   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16806   ac_cv_prog_gcc_traditional=yes
16807 fi
16808 rm -f conftest*
16809
16810   fi
16811 fi
16812 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16813 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16814   if test $ac_cv_prog_gcc_traditional = yes; then
16815     CC="$CC -traditional"
16816   fi
16817 fi
16818
16819
16820 CXXFLAGS=${CXXFLAGS:=}
16821
16822
16823
16824     ac_ext=cpp
16825 ac_cpp='$CXXCPP $CPPFLAGS'
16826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16829 if test -z "$CXX"; then
16830   if test -n "$CCC"; then
16831     CXX=$CCC
16832   else
16833     if test -n "$ac_tool_prefix"; then
16834   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16835   do
16836     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16840 if test "${ac_cv_prog_CXX+set}" = set; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843   if test -n "$CXX"; then
16844   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16845 else
16846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16847 for as_dir in $PATH
16848 do
16849   IFS=$as_save_IFS
16850   test -z "$as_dir" && as_dir=.
16851   for ac_exec_ext in '' $ac_executable_extensions; do
16852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16853     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16855     break 2
16856   fi
16857 done
16858 done
16859 IFS=$as_save_IFS
16860
16861 fi
16862 fi
16863 CXX=$ac_cv_prog_CXX
16864 if test -n "$CXX"; then
16865   { echo "$as_me:$LINENO: result: $CXX" >&5
16866 echo "${ECHO_T}$CXX" >&6; }
16867 else
16868   { echo "$as_me:$LINENO: result: no" >&5
16869 echo "${ECHO_T}no" >&6; }
16870 fi
16871
16872
16873     test -n "$CXX" && break
16874   done
16875 fi
16876 if test -z "$CXX"; then
16877   ac_ct_CXX=$CXX
16878   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16879 do
16880   # Extract the first word of "$ac_prog", so it can be a program name with args.
16881 set dummy $ac_prog; ac_word=$2
16882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16884 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   if test -n "$ac_ct_CXX"; then
16888   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16889 else
16890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16891 for as_dir in $PATH
16892 do
16893   IFS=$as_save_IFS
16894   test -z "$as_dir" && as_dir=.
16895   for ac_exec_ext in '' $ac_executable_extensions; do
16896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16897     ac_cv_prog_ac_ct_CXX="$ac_prog"
16898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16899     break 2
16900   fi
16901 done
16902 done
16903 IFS=$as_save_IFS
16904
16905 fi
16906 fi
16907 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16908 if test -n "$ac_ct_CXX"; then
16909   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16910 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16911 else
16912   { echo "$as_me:$LINENO: result: no" >&5
16913 echo "${ECHO_T}no" >&6; }
16914 fi
16915
16916
16917   test -n "$ac_ct_CXX" && break
16918 done
16919
16920   if test "x$ac_ct_CXX" = x; then
16921     CXX="g++"
16922   else
16923     case $cross_compiling:$ac_tool_warned in
16924 yes:)
16925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16926 whose name does not start with the host triplet.  If you think this
16927 configuration is useful to you, please write to autoconf@gnu.org." >&5
16928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16929 whose name does not start with the host triplet.  If you think this
16930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16931 ac_tool_warned=yes ;;
16932 esac
16933     CXX=$ac_ct_CXX
16934   fi
16935 fi
16936
16937   fi
16938 fi
16939 # Provide some information about the compiler.
16940 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16941 ac_compiler=`set X $ac_compile; echo $2`
16942 { (ac_try="$ac_compiler --version >&5"
16943 case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_compiler --version >&5") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }
16952 { (ac_try="$ac_compiler -v >&5"
16953 case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958   (eval "$ac_compiler -v >&5") 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }
16962 { (ac_try="$ac_compiler -V >&5"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_compiler -V >&5") 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }
16972
16973 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16974 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16975 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16976   echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978   cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h.  */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h.  */
16984
16985 int
16986 main ()
16987 {
16988 #ifndef __GNUC__
16989        choke me
16990 #endif
16991
16992   ;
16993   return 0;
16994 }
16995 _ACEOF
16996 rm -f conftest.$ac_objext
16997 if { (ac_try="$ac_compile"
16998 case "(($ac_try" in
16999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000   *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003   (eval "$ac_compile") 2>conftest.er1
17004   ac_status=$?
17005   grep -v '^ *+' conftest.er1 >conftest.err
17006   rm -f conftest.er1
17007   cat conftest.err >&5
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } && {
17010          test -z "$ac_cxx_werror_flag" ||
17011          test ! -s conftest.err
17012        } && test -s conftest.$ac_objext; then
17013   ac_compiler_gnu=yes
17014 else
17015   echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018         ac_compiler_gnu=no
17019 fi
17020
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17023
17024 fi
17025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17027 GXX=`test $ac_compiler_gnu = yes && echo yes`
17028 ac_test_CXXFLAGS=${CXXFLAGS+set}
17029 ac_save_CXXFLAGS=$CXXFLAGS
17030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17032 if test "${ac_cv_prog_cxx_g+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17036    ac_cxx_werror_flag=yes
17037    ac_cv_prog_cxx_g=no
17038    CXXFLAGS="-g"
17039    cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045
17046 int
17047 main ()
17048 {
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_compile") 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } && {
17068          test -z "$ac_cxx_werror_flag" ||
17069          test ! -s conftest.err
17070        } && test -s conftest.$ac_objext; then
17071   ac_cv_prog_cxx_g=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         CXXFLAGS=""
17077       cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083
17084 int
17085 main ()
17086 {
17087
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext
17093 if { (ac_try="$ac_compile"
17094 case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_compile") 2>conftest.er1
17100   ac_status=$?
17101   grep -v '^ *+' conftest.er1 >conftest.err
17102   rm -f conftest.er1
17103   cat conftest.err >&5
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } && {
17106          test -z "$ac_cxx_werror_flag" ||
17107          test ! -s conftest.err
17108        } && test -s conftest.$ac_objext; then
17109   :
17110 else
17111   echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17115          CXXFLAGS="-g"
17116          cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122
17123 int
17124 main ()
17125 {
17126
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 rm -f conftest.$ac_objext
17132 if { (ac_try="$ac_compile"
17133 case "(($ac_try" in
17134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135   *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138   (eval "$ac_compile") 2>conftest.er1
17139   ac_status=$?
17140   grep -v '^ *+' conftest.er1 >conftest.err
17141   rm -f conftest.er1
17142   cat conftest.err >&5
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); } && {
17145          test -z "$ac_cxx_werror_flag" ||
17146          test ! -s conftest.err
17147        } && test -s conftest.$ac_objext; then
17148   ac_cv_prog_cxx_g=yes
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153
17154 fi
17155
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 fi
17158
17159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160 fi
17161
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17164 fi
17165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17166 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17167 if test "$ac_test_CXXFLAGS" = set; then
17168   CXXFLAGS=$ac_save_CXXFLAGS
17169 elif test $ac_cv_prog_cxx_g = yes; then
17170   if test "$GXX" = yes; then
17171     CXXFLAGS="-g -O2"
17172   else
17173     CXXFLAGS="-g"
17174   fi
17175 else
17176   if test "$GXX" = yes; then
17177     CXXFLAGS="-O2"
17178   else
17179     CXXFLAGS=
17180   fi
17181 fi
17182 ac_ext=c
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187
17188
17189
17190
17191     ac_ext=cpp
17192 ac_cpp='$CXXCPP $CPPFLAGS'
17193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17196
17197     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17198 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17199 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208
17209 int
17210 main ()
17211 {
17212
17213              #ifndef __INTEL_COMPILER
17214                 choke me
17215              #endif
17216
17217   ;
17218   return 0;
17219 }
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (ac_try="$ac_compile"
17223 case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_compile") 2>conftest.er1
17229   ac_status=$?
17230   grep -v '^ *+' conftest.er1 >conftest.err
17231   rm -f conftest.er1
17232   cat conftest.err >&5
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } && {
17235          test -z "$ac_cxx_werror_flag" ||
17236          test ! -s conftest.err
17237        } && test -s conftest.$ac_objext; then
17238   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17239 else
17240   echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17244
17245 fi
17246
17247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248
17249
17250 fi
17251 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17252 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17253     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17254         :; INTELCXX=yes
17255     else
17256         :;
17257     fi
17258     ac_ext=c
17259 ac_cpp='$CPP $CPPFLAGS'
17260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17263
17264
17265
17266
17267         if test "$INTELCXX" = "yes"; then
17268
17269
17270     ac_ext=cpp
17271 ac_cpp='$CXXCPP $CPPFLAGS'
17272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17275
17276     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17277 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17278 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17279   echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281   cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h.  */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h.  */
17287
17288 int
17289 main ()
17290 {
17291
17292              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17293                 choke me
17294              #endif
17295
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext
17301 if { (ac_try="$ac_compile"
17302 case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_compile") 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } && {
17314          test -z "$ac_cxx_werror_flag" ||
17315          test ! -s conftest.err
17316        } && test -s conftest.$ac_objext; then
17317   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17323
17324 fi
17325
17326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327
17328
17329 fi
17330 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17331 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17332     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17333         :; INTELCXX8=yes
17334     else
17335         :;
17336     fi
17337     ac_ext=c
17338 ac_cpp='$CPP $CPPFLAGS'
17339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17342
17343
17344
17345
17346
17347     ac_ext=cpp
17348 ac_cpp='$CXXCPP $CPPFLAGS'
17349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17352
17353     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17354 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17355 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364
17365 int
17366 main ()
17367 {
17368
17369              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17370                 choke me
17371              #endif
17372
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_compile") 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } && {
17391          test -z "$ac_cxx_werror_flag" ||
17392          test ! -s conftest.err
17393        } && test -s conftest.$ac_objext; then
17394   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17395 else
17396   echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17400
17401 fi
17402
17403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404
17405
17406 fi
17407 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17408 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17409     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17410         :; INTELCXX10=yes
17411     else
17412         :;
17413     fi
17414     ac_ext=c
17415 ac_cpp='$CPP $CPPFLAGS'
17416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17419
17420
17421
17422     fi
17423
17424         if test "x$GCXX" != "xyes"; then
17425         if test "xCXX" = "xC"; then
17426             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17427 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17428 if test "${bakefile_cv_c_exto+set}" = set; then
17429   echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431   cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h.  */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h.  */
17437
17438 int
17439 main ()
17440 {
17441
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext conftest.$ac_ext.o
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448   (eval $ac_compile) 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); }; then
17452   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17453     case $ac_file in
17454         conftest.$ac_ext.o)
17455             bakefile_cv_c_exto="-ext o"
17456             ;;
17457         *)
17458             ;;
17459     esac
17460 done
17461 else
17462   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17463 See \`config.log' for more details." >&5
17464 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17465 See \`config.log' for more details." >&2;}
17466    { (exit 1); exit 1; }; }
17467
17468 fi
17469
17470 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17471
17472 fi
17473 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17474 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17475 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17476     if test "c" = "c"; then
17477         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17478     fi
17479     if test "c" = "cxx"; then
17480         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17481     fi
17482 fi
17483
17484             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17485                 unset ac_cv_prog_cc_g
17486                 ac_test_CFLAGS=${CFLAGS+set}
17487 ac_save_CFLAGS=$CFLAGS
17488 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17489 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17490 if test "${ac_cv_prog_cc_g+set}" = set; then
17491   echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493   ac_save_c_werror_flag=$ac_c_werror_flag
17494    ac_c_werror_flag=yes
17495    ac_cv_prog_cc_g=no
17496    CFLAGS="-g"
17497    cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503
17504 int
17505 main ()
17506 {
17507
17508   ;
17509   return 0;
17510 }
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (ac_try="$ac_compile"
17514 case "(($ac_try" in
17515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516   *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519   (eval "$ac_compile") 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } && {
17526          test -z "$ac_c_werror_flag" ||
17527          test ! -s conftest.err
17528        } && test -s conftest.$ac_objext; then
17529   ac_cv_prog_cc_g=yes
17530 else
17531   echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534         CFLAGS=""
17535       cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h.  */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h.  */
17541
17542 int
17543 main ()
17544 {
17545
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (ac_try="$ac_compile"
17552 case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_compile") 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } && {
17564          test -z "$ac_c_werror_flag" ||
17565          test ! -s conftest.err
17566        } && test -s conftest.$ac_objext; then
17567   :
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572         ac_c_werror_flag=$ac_save_c_werror_flag
17573          CFLAGS="-g"
17574          cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h.  */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h.  */
17580
17581 int
17582 main ()
17583 {
17584
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext
17590 if { (ac_try="$ac_compile"
17591 case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_compile") 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } && {
17603          test -z "$ac_c_werror_flag" ||
17604          test ! -s conftest.err
17605        } && test -s conftest.$ac_objext; then
17606   ac_cv_prog_cc_g=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611
17612 fi
17613
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615 fi
17616
17617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621    ac_c_werror_flag=$ac_save_c_werror_flag
17622 fi
17623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17625 if test "$ac_test_CFLAGS" = set; then
17626   CFLAGS=$ac_save_CFLAGS
17627 elif test $ac_cv_prog_cc_g = yes; then
17628   if test "$GCC" = yes; then
17629     CFLAGS="-g -O2"
17630   else
17631     CFLAGS="-g"
17632   fi
17633 else
17634   if test "$GCC" = yes; then
17635     CFLAGS="-O2"
17636   else
17637     CFLAGS=
17638   fi
17639 fi
17640             fi
17641         fi
17642
17643                         case `uname -s` in
17644             AIX*)
17645
17646
17647     ac_ext=cpp
17648 ac_cpp='$CXXCPP $CPPFLAGS'
17649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17652
17653     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17654 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17655 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664
17665 int
17666 main ()
17667 {
17668
17669              #ifndef __xlC__
17670                 choke me
17671              #endif
17672
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest.$ac_objext
17678 if { (ac_try="$ac_compile"
17679 case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_compile") 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } && {
17691          test -z "$ac_cxx_werror_flag" ||
17692          test ! -s conftest.err
17693        } && test -s conftest.$ac_objext; then
17694   bakefile_cv_cxx_compiler___xlC__=yes
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699         bakefile_cv_cxx_compiler___xlC__=no
17700
17701 fi
17702
17703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704
17705
17706 fi
17707 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17708 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17709     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17710         :; XLCXX=yes
17711     else
17712         :;
17713     fi
17714     ac_ext=c
17715 ac_cpp='$CPP $CPPFLAGS'
17716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17719
17720
17721
17722                 ;;
17723
17724             Darwin)
17725
17726
17727     ac_ext=cpp
17728 ac_cpp='$CXXCPP $CPPFLAGS'
17729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17732
17733     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17734 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17735 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738   cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17744
17745 int
17746 main ()
17747 {
17748
17749              #ifndef __MWERKS__
17750                 choke me
17751              #endif
17752
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 rm -f conftest.$ac_objext
17758 if { (ac_try="$ac_compile"
17759 case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_compile") 2>conftest.er1
17765   ac_status=$?
17766   grep -v '^ *+' conftest.er1 >conftest.err
17767   rm -f conftest.er1
17768   cat conftest.err >&5
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); } && {
17771          test -z "$ac_cxx_werror_flag" ||
17772          test ! -s conftest.err
17773        } && test -s conftest.$ac_objext; then
17774   bakefile_cv_cxx_compiler___MWERKS__=yes
17775 else
17776   echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779         bakefile_cv_cxx_compiler___MWERKS__=no
17780
17781 fi
17782
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784
17785
17786 fi
17787 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17788 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17789     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17790         :; MWCXX=yes
17791     else
17792         :;
17793     fi
17794     ac_ext=c
17795 ac_cpp='$CPP $CPPFLAGS'
17796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17799
17800
17801
17802                 if test "$MWCXX" != "yes"; then
17803
17804
17805     ac_ext=cpp
17806 ac_cpp='$CXXCPP $CPPFLAGS'
17807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17810
17811     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17812 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17813 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822
17823 int
17824 main ()
17825 {
17826
17827              #ifndef __xlC__
17828                 choke me
17829              #endif
17830
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842   (eval "$ac_compile") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } && {
17849          test -z "$ac_cxx_werror_flag" ||
17850          test ! -s conftest.err
17851        } && test -s conftest.$ac_objext; then
17852   bakefile_cv_cxx_compiler___xlC__=yes
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857         bakefile_cv_cxx_compiler___xlC__=no
17858
17859 fi
17860
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862
17863
17864 fi
17865 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17866 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17867     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17868         :; XLCXX=yes
17869     else
17870         :;
17871     fi
17872     ac_ext=c
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17877
17878
17879
17880                 fi
17881                 ;;
17882
17883             IRIX*)
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 whether we are using the SGI C++ compiler" >&5
17893 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17894 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17895   echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897   cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903
17904 int
17905 main ()
17906 {
17907
17908              #ifndef _SGI_COMPILER_VERSION
17909                 choke me
17910              #endif
17911
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (ac_try="$ac_compile"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_compile") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && {
17930          test -z "$ac_cxx_werror_flag" ||
17931          test ! -s conftest.err
17932        } && test -s conftest.$ac_objext; then
17933   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17934 else
17935   echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17939
17940 fi
17941
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943
17944
17945 fi
17946 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17947 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17948     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17949         :; SGICXX=yes
17950     else
17951         :;
17952     fi
17953     ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959
17960
17961                 ;;
17962
17963             Linux*)
17964                                                 if test "$INTELCXX" != "yes"; then
17965
17966
17967     ac_ext=cpp
17968 ac_cpp='$CXXCPP $CPPFLAGS'
17969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17972
17973     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17974 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17975 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17976   echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978   cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984
17985 int
17986 main ()
17987 {
17988
17989              #ifndef __SUNPRO_CC
17990                 choke me
17991              #endif
17992
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_compile") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } && {
18011          test -z "$ac_cxx_werror_flag" ||
18012          test ! -s conftest.err
18013        } && test -s conftest.$ac_objext; then
18014   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18015 else
18016   echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18020
18021 fi
18022
18023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18024
18025
18026 fi
18027 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18028 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18029     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18030         :; SUNCXX=yes
18031     else
18032         :;
18033     fi
18034     ac_ext=c
18035 ac_cpp='$CPP $CPPFLAGS'
18036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18039
18040
18041
18042                 fi
18043                 ;;
18044
18045             HP-UX*)
18046
18047
18048     ac_ext=cpp
18049 ac_cpp='$CXXCPP $CPPFLAGS'
18050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18053
18054     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18055 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18056 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18057   echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059   cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h.  */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h.  */
18065
18066 int
18067 main ()
18068 {
18069
18070              #ifndef __HP_aCC
18071                 choke me
18072              #endif
18073
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (ac_try="$ac_compile"
18080 case "(($ac_try" in
18081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082   *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085   (eval "$ac_compile") 2>conftest.er1
18086   ac_status=$?
18087   grep -v '^ *+' conftest.er1 >conftest.err
18088   rm -f conftest.er1
18089   cat conftest.err >&5
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); } && {
18092          test -z "$ac_cxx_werror_flag" ||
18093          test ! -s conftest.err
18094        } && test -s conftest.$ac_objext; then
18095   bakefile_cv_cxx_compiler___HP_aCC=yes
18096 else
18097   echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18099
18100         bakefile_cv_cxx_compiler___HP_aCC=no
18101
18102 fi
18103
18104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18105
18106
18107 fi
18108 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18109 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18110     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18111         :; HPCXX=yes
18112     else
18113         :;
18114     fi
18115     ac_ext=c
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18120
18121
18122
18123                 ;;
18124
18125             OSF1)
18126
18127
18128     ac_ext=cpp
18129 ac_cpp='$CXXCPP $CPPFLAGS'
18130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18133
18134     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18135 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18136 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h.  */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h.  */
18145
18146 int
18147 main ()
18148 {
18149
18150              #ifndef __DECCXX
18151                 choke me
18152              #endif
18153
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (ac_try="$ac_compile"
18160 case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_compile") 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } && {
18172          test -z "$ac_cxx_werror_flag" ||
18173          test ! -s conftest.err
18174        } && test -s conftest.$ac_objext; then
18175   bakefile_cv_cxx_compiler___DECCXX=yes
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         bakefile_cv_cxx_compiler___DECCXX=no
18181
18182 fi
18183
18184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185
18186
18187 fi
18188 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18189 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18190     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18191         :; COMPAQCXX=yes
18192     else
18193         :;
18194     fi
18195     ac_ext=c
18196 ac_cpp='$CPP $CPPFLAGS'
18197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18200
18201
18202
18203                 ;;
18204
18205             SunOS)
18206
18207
18208     ac_ext=cpp
18209 ac_cpp='$CXXCPP $CPPFLAGS'
18210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18213
18214     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18215 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18216 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18217   echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219   cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h.  */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h.  */
18225
18226 int
18227 main ()
18228 {
18229
18230              #ifndef __SUNPRO_CC
18231                 choke me
18232              #endif
18233
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext
18239 if { (ac_try="$ac_compile"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_compile") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } && {
18252          test -z "$ac_cxx_werror_flag" ||
18253          test ! -s conftest.err
18254        } && test -s conftest.$ac_objext; then
18255   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18261
18262 fi
18263
18264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18265
18266
18267 fi
18268 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18269 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18270     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18271         :; SUNCXX=yes
18272     else
18273         :;
18274     fi
18275     ac_ext=c
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18280
18281
18282
18283                 ;;
18284         esac
18285     fi
18286
18287
18288
18289 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18290     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18291 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18292    { (exit 1); exit 1; }; }
18293 fi
18294
18295 if test "x$SUNCXX" != xyes; then
18296     if test -n "$ac_tool_prefix"; then
18297   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18298 set dummy ${ac_tool_prefix}ar; ac_word=$2
18299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18301 if test "${ac_cv_prog_AR+set}" = set; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304   if test -n "$AR"; then
18305   ac_cv_prog_AR="$AR" # Let the user override the test.
18306 else
18307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18308 for as_dir in $PATH
18309 do
18310   IFS=$as_save_IFS
18311   test -z "$as_dir" && as_dir=.
18312   for ac_exec_ext in '' $ac_executable_extensions; do
18313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18314     ac_cv_prog_AR="${ac_tool_prefix}ar"
18315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18316     break 2
18317   fi
18318 done
18319 done
18320 IFS=$as_save_IFS
18321
18322 fi
18323 fi
18324 AR=$ac_cv_prog_AR
18325 if test -n "$AR"; then
18326   { echo "$as_me:$LINENO: result: $AR" >&5
18327 echo "${ECHO_T}$AR" >&6; }
18328 else
18329   { echo "$as_me:$LINENO: result: no" >&5
18330 echo "${ECHO_T}no" >&6; }
18331 fi
18332
18333
18334 fi
18335 if test -z "$ac_cv_prog_AR"; then
18336   ac_ct_AR=$AR
18337   # Extract the first word of "ar", so it can be a program name with args.
18338 set dummy ar; ac_word=$2
18339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18341 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 else
18344   if test -n "$ac_ct_AR"; then
18345   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18346 else
18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18348 for as_dir in $PATH
18349 do
18350   IFS=$as_save_IFS
18351   test -z "$as_dir" && as_dir=.
18352   for ac_exec_ext in '' $ac_executable_extensions; do
18353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18354     ac_cv_prog_ac_ct_AR="ar"
18355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18356     break 2
18357   fi
18358 done
18359 done
18360 IFS=$as_save_IFS
18361
18362 fi
18363 fi
18364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18365 if test -n "$ac_ct_AR"; then
18366   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18367 echo "${ECHO_T}$ac_ct_AR" >&6; }
18368 else
18369   { echo "$as_me:$LINENO: result: no" >&5
18370 echo "${ECHO_T}no" >&6; }
18371 fi
18372
18373   if test "x$ac_ct_AR" = x; then
18374     AR=""
18375   else
18376     case $cross_compiling:$ac_tool_warned in
18377 yes:)
18378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18379 whose name does not start with the host triplet.  If you think this
18380 configuration is useful to you, please write to autoconf@gnu.org." >&5
18381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18382 whose name does not start with the host triplet.  If you think this
18383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18384 ac_tool_warned=yes ;;
18385 esac
18386     AR=$ac_ct_AR
18387   fi
18388 else
18389   AR="$ac_cv_prog_AR"
18390 fi
18391
18392     if test "x$AR" = "x" ; then
18393         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18394 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18395    { (exit 1); exit 1; }; }
18396     fi
18397 fi
18398
18399
18400 if test "$wxUSE_MAC" = 1; then
18401
18402 retest_macosx_linking=no
18403
18404     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18405                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18406             # Implicitly turn on the new --with-macosx-sdk using the default
18407             # SDK which provides the behavior this option has always had.
18408             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18409                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18410 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18411                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18412 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18413                 wxUSE_MACOSX_SDK=yes
18414             fi
18415         else
18416             # Complain to user if he specified an argument to --enable-universal_binary
18417             # and also 1) specified --with-macosx-sdk using the default (yes) or
18418             # 2) specified --with-macosx-sdk using a path or 3) specified
18419             # --without-macosx-sdk (no).
18420             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18421                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18422 See \`config.log' for more details." >&5
18423 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18424 See \`config.log' for more details." >&2;}
18425    { (exit 1); exit 1; }; }
18426             else
18427                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18428                 # special-case the empty string because the below test simply
18429                 # converts "no" to the empty string anyway.
18430                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18431                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18432 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18433             fi
18434         fi
18435                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18436         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18437         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18438         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18439         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18440         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18441                                                                                                                 retest_macosx_linking=yes
18442
18443                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18444 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18445         bk_use_pch=no
18446     fi
18447
18448 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18449     wxUSE_MACOSX_SDK=
18450 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18451     # TODO: Search for most recent SDK and use it.
18452     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18453 fi
18454
18455
18456 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18457     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18458 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18459     if ! test -d "$wxUSE_MACOSX_SDK"; then
18460         { { echo "$as_me:$LINENO: error: not found
18461 See \`config.log' for more details." >&5
18462 echo "$as_me: error: not found
18463 See \`config.log' for more details." >&2;}
18464    { (exit 1); exit 1; }; }
18465     else
18466         { echo "$as_me:$LINENO: result: exists" >&5
18467 echo "${ECHO_T}exists" >&6; }
18468     fi
18469     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18470     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18471     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18472     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18473     retest_macosx_linking=yes
18474             fi
18475
18476 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18477     wxUSE_MACOSX_VERSION_MIN=
18478 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18479     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18480         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18481 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18482
18483         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/'`
18484
18485         # If that failed, try again with the new key
18486         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18487
18488             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/'`
18489
18490         fi
18491
18492         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18493             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18494             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18495 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18496         else
18497             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18498 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18499             wxUSE_MACOSX_VERSION_MIN=
18500         fi
18501     else
18502         wxUSE_MACOSX_VERSION_MIN=
18503     fi
18504 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18505     for ac_prog in sw_vers
18506 do
18507   # Extract the first word of "$ac_prog", so it can be a program name with args.
18508 set dummy $ac_prog; ac_word=$2
18509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18511 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514   if test -n "$OSX_SW_VERS"; then
18515   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
18516 else
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18519 do
18520   IFS=$as_save_IFS
18521   test -z "$as_dir" && as_dir=.
18522   for ac_exec_ext in '' $ac_executable_extensions; do
18523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18524     ac_cv_prog_OSX_SW_VERS="$ac_prog"
18525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18526     break 2
18527   fi
18528 done
18529 done
18530 IFS=$as_save_IFS
18531
18532 fi
18533 fi
18534 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
18535 if test -n "$OSX_SW_VERS"; then
18536   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
18537 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
18538 else
18539   { echo "$as_me:$LINENO: result: no" >&5
18540 echo "${ECHO_T}no" >&6; }
18541 fi
18542
18543
18544   test -n "$OSX_SW_VERS" && break
18545 done
18546
18547     if test "$OSX_SW_VERS" != ""; then
18548         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
18549     else
18550                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
18551 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
18552         OSX_VERSION="10.4"
18553     fi
18554
18555     case "$OSX_VERSION" in
18556         10.4* )
18557             wxUSE_MACOSX_VERSION_MIN=10.4
18558             ;;
18559
18560         * )
18561             if test "$wxUSE_OSX_CARBON" = 1; then
18562                 # otherwise configure stops on leopard for universal_binary
18563                 wxUSE_MACOSX_VERSION_MIN=10.4
18564             else
18565                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
18566                 wxUSE_MACOSX_VERSION_MIN=10.5
18567             fi
18568             ;;
18569     esac
18570 fi
18571
18572 NEEDS_GCC40="no"
18573 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
18574     NEEDS_GCC40="yes"
18575 fi
18576
18577 if test "$wxUSE_OSX_CARBON" = 1; then
18578     NEEDS_GCC40="yes"
18579 fi
18580
18581 if test "x$NEEDS_GCC40" == "xyes"; then
18582     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
18583     # and wants 10.4 compatible code, then 'downgrade' to 4.0
18584     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
18585     if test "x$CC" = "xgcc"; then
18586         CCVERSION=`$CC --version | grep 4.[2-9].`
18587         if test "x$CCVERSION" != "x"; then
18588             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
18589             CC="/usr/bin/gcc-4.0"
18590         fi
18591     fi
18592
18593     if test "x$CXX" = "xg++"; then
18594         CCVERSION=`$CXX --version | grep 4.[2-9].`
18595         if test "x$CCVERSION" != "x"; then
18596             CXX="/usr/bin/g++-4.0"
18597         fi
18598     fi
18599 fi
18600
18601 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18602     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18603     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18604     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18605     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18606     retest_macosx_linking=yes
18607 fi
18608
18609 if test "x$retest_macosx_linking" = "xyes"; then
18610     ac_ext=c
18611 ac_cpp='$CPP $CPPFLAGS'
18612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615
18616     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18617 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18618     cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h.  */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h.  */
18624
18625 int
18626 main ()
18627 {
18628
18629   ;
18630   return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_link") 2>conftest.er1
18641   ac_status=$?
18642   grep -v '^ *+' conftest.er1 >conftest.err
18643   rm -f conftest.er1
18644   cat conftest.err >&5
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); } && {
18647          test -z "$ac_c_werror_flag" ||
18648          test ! -s conftest.err
18649        } && test -s conftest$ac_exeext &&
18650        $as_test_x conftest$ac_exeext; then
18651   { echo "$as_me:$LINENO: result: yes" >&5
18652 echo "${ECHO_T}yes" >&6; }
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18658 See \`config.log' for more details." >&5
18659 echo "$as_me: error: no.  Try a different SDK
18660 See \`config.log' for more details." >&2;}
18661    { (exit 1); exit 1; }; }; exit 1
18662 fi
18663
18664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18665       conftest$ac_exeext conftest.$ac_ext
18666     ac_ext=c
18667 ac_cpp='$CPP $CPPFLAGS'
18668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18671
18672
18673     ac_ext=cpp
18674 ac_cpp='$CXXCPP $CPPFLAGS'
18675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18678
18679     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18680 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18681     cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h.  */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h.  */
18687
18688 int
18689 main ()
18690 {
18691
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (ac_try="$ac_link"
18698 case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_link") 2>conftest.er1
18704   ac_status=$?
18705   grep -v '^ *+' conftest.er1 >conftest.err
18706   rm -f conftest.er1
18707   cat conftest.err >&5
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } && {
18710          test -z "$ac_cxx_werror_flag" ||
18711          test ! -s conftest.err
18712        } && test -s conftest$ac_exeext &&
18713        $as_test_x conftest$ac_exeext; then
18714   { echo "$as_me:$LINENO: result: yes" >&5
18715 echo "${ECHO_T}yes" >&6; }
18716 else
18717   echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719
18720         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18721 See \`config.log' for more details." >&5
18722 echo "$as_me: error: no.  Try a different SDK
18723 See \`config.log' for more details." >&2;}
18724    { (exit 1); exit 1; }; }; exit 1
18725 fi
18726
18727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18728       conftest$ac_exeext conftest.$ac_ext
18729     ac_ext=c
18730 ac_cpp='$CPP $CPPFLAGS'
18731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18734
18735 fi
18736
18737 fi
18738 case "${host}" in
18739
18740                 *-*-darwin* )
18741         INSTALL_PROGRAM="cp -fp"
18742         INSTALL_DATA="cp -fp"
18743         ;;
18744     *)
18745         ;;
18746 esac
18747
18748
18749 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18750     CXXFLAGS="-qunique $CXXFLAGS"
18751 fi
18752
18753 case "${host}" in
18754   powerpc-*-darwin* )
18755     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18756 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18757     cat >conftest.$ac_ext <<_ACEOF
18758 /* confdefs.h.  */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h.  */
18763
18764 int
18765 main ()
18766 {
18767 #ifndef __POWERPC__
18768         choke me for lack of PowerPC
18769 #endif
18770
18771   ;
18772   return 0;
18773 }
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (ac_try="$ac_compile"
18777 case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_compile") 2>conftest.er1
18783   ac_status=$?
18784   grep -v '^ *+' conftest.er1 >conftest.err
18785   rm -f conftest.er1
18786   cat conftest.err >&5
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } && {
18789          test -z "$ac_c_werror_flag" ||
18790          test ! -s conftest.err
18791        } && test -s conftest.$ac_objext; then
18792   { echo "$as_me:$LINENO: result: yes" >&5
18793 echo "${ECHO_T}yes" >&6; }
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798         { echo "$as_me:$LINENO: result: no" >&5
18799 echo "${ECHO_T}no" >&6; }
18800         cat >>confdefs.h <<\_ACEOF
18801 #define __POWERPC__ 1
18802 _ACEOF
18803
18804
18805 fi
18806
18807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808   ;;
18809 esac
18810
18811 case "${host}" in
18812   *-*-darwin* )
18813     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18814 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18815     cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821 #include <CoreFoundation/CFBase.h>
18822
18823 int
18824 main ()
18825 {
18826
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (ac_try="$ac_compile"
18833 case "(($ac_try" in
18834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835   *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838   (eval "$ac_compile") 2>conftest.er1
18839   ac_status=$?
18840   grep -v '^ *+' conftest.er1 >conftest.err
18841   rm -f conftest.er1
18842   cat conftest.err >&5
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); } && {
18845          test -z "$ac_c_werror_flag" ||
18846          test ! -s conftest.err
18847        } && test -s conftest.$ac_objext; then
18848   { echo "$as_me:$LINENO: result: yes" >&5
18849 echo "${ECHO_T}yes" >&6; }
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854         { echo "$as_me:$LINENO: result: no" >&5
18855 echo "${ECHO_T}no" >&6; }
18856         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18857 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18858         cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h.  */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h.  */
18864 #define __CF_USE_FRAMEWORK_INCLUDES__
18865 #include <CoreFoundation/CFBase.h>
18866
18867 int
18868 main ()
18869 {
18870
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (ac_try="$ac_compile"
18877 case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_compile") 2>conftest.er1
18883   ac_status=$?
18884   grep -v '^ *+' conftest.er1 >conftest.err
18885   rm -f conftest.er1
18886   cat conftest.err >&5
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } && {
18889          test -z "$ac_c_werror_flag" ||
18890          test ! -s conftest.err
18891        } && test -s conftest.$ac_objext; then
18892   { echo "$as_me:$LINENO: result: yes" >&5
18893 echo "${ECHO_T}yes" >&6; }
18894                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18900 See \`config.log' for more details." >&5
18901 echo "$as_me: error: no.  CoreFoundation not available.
18902 See \`config.log' for more details." >&2;}
18903    { (exit 1); exit 1; }; }
18904
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908
18909
18910 fi
18911
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18913   ;;
18914 esac
18915
18916 wants_win32=0
18917 doesnt_want_win32=0
18918 case "${host}" in
18919   *-*-cygwin*)
18920       if test "$wxUSE_MSW" = 1 ; then
18921         wants_win32=1
18922       else
18923                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18924 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18925 if test "${wx_cv_nocygwin+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928
18929                 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935
18936 int
18937 main ()
18938 {
18939
18940                         #ifdef __MINGW32__
18941                             choke me
18942                         #endif
18943
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 rm -f conftest.$ac_objext
18949 if { (ac_try="$ac_compile"
18950 case "(($ac_try" in
18951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952   *) ac_try_echo=$ac_try;;
18953 esac
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955   (eval "$ac_compile") 2>conftest.er1
18956   ac_status=$?
18957   grep -v '^ *+' conftest.er1 >conftest.err
18958   rm -f conftest.er1
18959   cat conftest.err >&5
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); } && {
18962          test -z "$ac_c_werror_flag" ||
18963          test ! -s conftest.err
18964        } && test -s conftest.$ac_objext; then
18965   wx_cv_nocygwin=no
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         wx_cv_nocygwin=yes
18971
18972 fi
18973
18974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18975
18976
18977 fi
18978 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18979 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18980
18981         if test "$wx_cv_nocygwin" = "yes"; then
18982             wants_win32=1
18983         else
18984             doesnt_want_win32=1
18985         fi
18986       fi
18987       if test "$wants_win32" = 1 ; then
18988         BAKEFILE_FORCE_PLATFORM=win32
18989       fi
18990   ;;
18991   *-*-mingw*)
18992       wants_win32=1
18993   ;;
18994 esac
18995
18996 if test "$wxUSE_WINE" = "yes"; then
18997     wants_win32=1
18998     LDFLAGS_GUI="-mwindows"
18999 fi
19000
19001 if test "$wants_win32" = 1 ; then
19002     USE_UNIX=0
19003     USE_WIN32=1
19004     cat >>confdefs.h <<\_ACEOF
19005 #define __WIN32__ 1
19006 _ACEOF
19007
19008     cat >>confdefs.h <<\_ACEOF
19009 #define __WIN95__ 1
19010 _ACEOF
19011
19012     cat >>confdefs.h <<\_ACEOF
19013 #define __WINDOWS__ 1
19014 _ACEOF
19015
19016     cat >>confdefs.h <<\_ACEOF
19017 #define __GNUWIN32__ 1
19018 _ACEOF
19019
19020     cat >>confdefs.h <<\_ACEOF
19021 #define STRICT 1
19022 _ACEOF
19023
19024 fi
19025 if test "$doesnt_want_win32" = 1 ; then
19026     USE_UNIX=1
19027     USE_WIN32=0
19028 fi
19029
19030 if test "$USE_UNIX" = 1 ; then
19031     wxUSE_UNIX=yes
19032     cat >>confdefs.h <<\_ACEOF
19033 #define __UNIX__ 1
19034 _ACEOF
19035
19036 fi
19037
19038 case "${host}" in
19039   *-pc-os2_emx | *-pc-os2-emx )
19040                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19041                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19042 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19043 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046   ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lcExt  $LIBS"
19048 cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054
19055 /* Override any GCC internal prototype to avoid an error.
19056    Use char because int might match the return type of a GCC
19057    builtin and then its argument prototype would still apply.  */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char drand48 ();
19062 int
19063 main ()
19064 {
19065 return drand48 ();
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (ac_try="$ac_link"
19072 case "(($ac_try" in
19073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074   *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077   (eval "$ac_link") 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } && {
19084          test -z "$ac_c_werror_flag" ||
19085          test ! -s conftest.err
19086        } && test -s conftest$ac_exeext &&
19087        $as_test_x conftest$ac_exeext; then
19088   ac_cv_lib_cExt_drand48=yes
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093         ac_cv_lib_cExt_drand48=no
19094 fi
19095
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097       conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19099 fi
19100 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19101 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19102 if test $ac_cv_lib_cExt_drand48 = yes; then
19103   LIBS="$LIBS -lcExt"
19104 fi
19105
19106       else
19107                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19108       fi
19109                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19110 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19111 if test "${wx_cv_gccversion+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114
19115           if test "$cross_compiling" = yes; then
19116                 wx_cv_gccversion="EMX2"
19117
19118 else
19119   cat >conftest.$ac_ext <<_ACEOF
19120 /* confdefs.h.  */
19121 _ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h.  */
19125
19126                   #include <stdio.h>
19127
19128                   int main()
19129                   {
19130                       FILE *f=fopen("conftestval", "w");
19131                       if (!f) exit(1);
19132                       fprintf(f,
19133                   #if (__GNUC__ < 3)
19134                               "EMX2"
19135                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19136                               "EMX3"
19137                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19138                               "Innotek5"
19139                   #else
19140                               "Innotek6"
19141                   #endif
19142                       );
19143                       exit(0);
19144                   }
19145
19146 _ACEOF
19147 rm -f conftest$ac_exeext
19148 if { (ac_try="$ac_link"
19149 case "(($ac_try" in
19150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151   *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154   (eval "$ac_link") 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19158   { (case "(($ac_try" in
19159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160   *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163   (eval "$ac_try") 2>&5
19164   ac_status=$?
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); }; }; then
19167   wx_cv_gccversion=`cat conftestval`
19168 else
19169   echo "$as_me: program exited with status $ac_status" >&5
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19172
19173 ( exit $ac_status )
19174 wx_cv_gccversion="EMX2"
19175 fi
19176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19177 fi
19178
19179
19180
19181 fi
19182 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19183 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19184       if test "$wx_cv_gccversion" = "EMX2"; then
19185           LIBS="$LIBS -lstdcpp"
19186           LDFLAGS="$LDFLAGS -Zsysv-signals"
19187       else
19188           if test "$wx_cv_gccversion" = "EMX3"; then
19189               LIBS="$LIBS -lstdcxx -lgcc"
19190               LDFLAGS="$LDFLAGS -Zsysv-signals"
19191           else
19192               LIBS="$LIBS -lstdc++"
19193           fi
19194       fi
19195       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19196         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19197 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19198         wxUSE_OMF=yes
19199         enable_omf=yes
19200       fi
19201         ;;
19202   *)
19203
19204       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19205 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19206 if test "${ac_cv_string_strcasecmp+set}" = set; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209
19210           cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h.  */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h.  */
19216
19217               #include <string.h>
19218
19219 int
19220 main ()
19221 {
19222
19223                   strcasecmp("foo", "bar");
19224
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext conftest$ac_exeext
19230 if { (ac_try="$ac_link"
19231 case "(($ac_try" in
19232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233   *) ac_try_echo=$ac_try;;
19234 esac
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236   (eval "$ac_link") 2>conftest.er1
19237   ac_status=$?
19238   grep -v '^ *+' conftest.er1 >conftest.err
19239   rm -f conftest.er1
19240   cat conftest.err >&5
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); } && {
19243          test -z "$ac_c_werror_flag" ||
19244          test ! -s conftest.err
19245        } && test -s conftest$ac_exeext &&
19246        $as_test_x conftest$ac_exeext; then
19247   ac_cv_string_strcasecmp=yes
19248 else
19249   echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19251
19252         ac_cv_string_strcasecmp=no
19253
19254 fi
19255
19256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19257       conftest$ac_exeext conftest.$ac_ext
19258
19259 fi
19260 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19261 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19262
19263       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19264           cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_STRCASECMP_IN_STRING_H 1
19266 _ACEOF
19267
19268       else
19269           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19270 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19271 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274
19275               cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281
19282                   #include <strings.h>
19283
19284 int
19285 main ()
19286 {
19287
19288                       strcasecmp("foo", "bar");
19289
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext conftest$ac_exeext
19295 if { (ac_try="$ac_link"
19296 case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301   (eval "$ac_link") 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } && {
19308          test -z "$ac_c_werror_flag" ||
19309          test ! -s conftest.err
19310        } && test -s conftest$ac_exeext &&
19311        $as_test_x conftest$ac_exeext; then
19312   ac_cv_strings_strcasecmp=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_strings_strcasecmp=no
19318
19319 fi
19320
19321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19322       conftest$ac_exeext conftest.$ac_ext
19323
19324 fi
19325 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19326 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19327
19328           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19329               cat >>confdefs.h <<\_ACEOF
19330 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19331 _ACEOF
19332
19333           else
19334               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19335 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19336    { (exit 1); exit 1; }; }
19337           fi
19338       fi
19339
19340         ;;
19341 esac
19342
19343
19344 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19345 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19346 if test "${ac_cv_header_stdc+set}" = set; then
19347   echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349   cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355 #include <stdlib.h>
19356 #include <stdarg.h>
19357 #include <string.h>
19358 #include <float.h>
19359
19360 int
19361 main ()
19362 {
19363
19364   ;
19365   return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_compile") 2>conftest.er1
19376   ac_status=$?
19377   grep -v '^ *+' conftest.er1 >conftest.err
19378   rm -f conftest.er1
19379   cat conftest.err >&5
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } && {
19382          test -z "$ac_c_werror_flag" ||
19383          test ! -s conftest.err
19384        } && test -s conftest.$ac_objext; then
19385   ac_cv_header_stdc=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390         ac_cv_header_stdc=no
19391 fi
19392
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394
19395 if test $ac_cv_header_stdc = yes; then
19396   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19397   cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 #include <string.h>
19404
19405 _ACEOF
19406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19407   $EGREP "memchr" >/dev/null 2>&1; then
19408   :
19409 else
19410   ac_cv_header_stdc=no
19411 fi
19412 rm -f conftest*
19413
19414 fi
19415
19416 if test $ac_cv_header_stdc = yes; then
19417   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19418   cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424 #include <stdlib.h>
19425
19426 _ACEOF
19427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19428   $EGREP "free" >/dev/null 2>&1; then
19429   :
19430 else
19431   ac_cv_header_stdc=no
19432 fi
19433 rm -f conftest*
19434
19435 fi
19436
19437 if test $ac_cv_header_stdc = yes; then
19438   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19439   if test "$cross_compiling" = yes; then
19440   :
19441 else
19442   cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h.  */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h.  */
19448 #include <ctype.h>
19449 #include <stdlib.h>
19450 #if ((' ' & 0x0FF) == 0x020)
19451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19453 #else
19454 # define ISLOWER(c) \
19455                    (('a' <= (c) && (c) <= 'i') \
19456                      || ('j' <= (c) && (c) <= 'r') \
19457                      || ('s' <= (c) && (c) <= 'z'))
19458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19459 #endif
19460
19461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19462 int
19463 main ()
19464 {
19465   int i;
19466   for (i = 0; i < 256; i++)
19467     if (XOR (islower (i), ISLOWER (i))
19468         || toupper (i) != TOUPPER (i))
19469       return 2;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest$ac_exeext
19474 if { (ac_try="$ac_link"
19475 case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_link") 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19484   { (case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_try") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   :
19494 else
19495   echo "$as_me: program exited with status $ac_status" >&5
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ( exit $ac_status )
19500 ac_cv_header_stdc=no
19501 fi
19502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19503 fi
19504
19505
19506 fi
19507 fi
19508 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19509 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19510 if test $ac_cv_header_stdc = yes; then
19511
19512 cat >>confdefs.h <<\_ACEOF
19513 #define STDC_HEADERS 1
19514 _ACEOF
19515
19516 fi
19517
19518 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19529                   inttypes.h stdint.h unistd.h
19530 do
19531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 $ac_includes_default
19544
19545 #include <$ac_header>
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_compile") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest.$ac_objext; then
19564   eval "$as_ac_Header=yes"
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         eval "$as_ac_Header=no"
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 fi
19574 ac_res=`eval echo '${'$as_ac_Header'}'`
19575                { echo "$as_me:$LINENO: result: $ac_res" >&5
19576 echo "${ECHO_T}$ac_res" >&6; }
19577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19578   cat >>confdefs.h <<_ACEOF
19579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19580 _ACEOF
19581
19582 fi
19583
19584 done
19585
19586
19587
19588
19589 for ac_header in langinfo.h wchar.h
19590 do
19591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603 $ac_includes_default
19604
19605 #include <$ac_header>
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_compile") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } && {
19621          test -z "$ac_c_werror_flag" ||
19622          test ! -s conftest.err
19623        } && test -s conftest.$ac_objext; then
19624   eval "$as_ac_Header=yes"
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         eval "$as_ac_Header=no"
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19633 fi
19634 ac_res=`eval echo '${'$as_ac_Header'}'`
19635                { echo "$as_me:$LINENO: result: $ac_res" >&5
19636 echo "${ECHO_T}$ac_res" >&6; }
19637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19638   cat >>confdefs.h <<_ACEOF
19639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19640 _ACEOF
19641
19642 fi
19643
19644 done
19645
19646
19647 if test "$ac_cv_header_wchar_h" != "yes"; then
19648
19649 for ac_header in wcstr.h
19650 do
19651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h.  */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h.  */
19663 $ac_includes_default
19664
19665 #include <$ac_header>
19666 _ACEOF
19667 rm -f conftest.$ac_objext
19668 if { (ac_try="$ac_compile"
19669 case "(($ac_try" in
19670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671   *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674   (eval "$ac_compile") 2>conftest.er1
19675   ac_status=$?
19676   grep -v '^ *+' conftest.er1 >conftest.err
19677   rm -f conftest.er1
19678   cat conftest.err >&5
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); } && {
19681          test -z "$ac_c_werror_flag" ||
19682          test ! -s conftest.err
19683        } && test -s conftest.$ac_objext; then
19684   eval "$as_ac_Header=yes"
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689         eval "$as_ac_Header=no"
19690 fi
19691
19692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 fi
19694 ac_res=`eval echo '${'$as_ac_Header'}'`
19695                { echo "$as_me:$LINENO: result: $ac_res" >&5
19696 echo "${ECHO_T}$ac_res" >&6; }
19697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19698   cat >>confdefs.h <<_ACEOF
19699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19700 _ACEOF
19701
19702 fi
19703
19704 done
19705
19706 fi
19707
19708 case "${host}" in
19709   *-pc-os2_emx | *-pc-os2-emx )
19710                   if test $ac_cv_header_langinfo_h = "yes" \
19711                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19712                      -o "$wx_cv_gccversion" = "EMX3" \
19713                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19714           LIBS="$LIBS -lintl"
19715       fi
19716   ;;
19717 esac
19718
19719 if test "$USE_UNIX" = 1 ; then
19720
19721 for ac_header in sys/select.h
19722 do
19723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 $ac_includes_default
19736
19737 #include <$ac_header>
19738 _ACEOF
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746   (eval "$ac_compile") 2>conftest.er1
19747   ac_status=$?
19748   grep -v '^ *+' conftest.er1 >conftest.err
19749   rm -f conftest.er1
19750   cat conftest.err >&5
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } && {
19753          test -z "$ac_c_werror_flag" ||
19754          test ! -s conftest.err
19755        } && test -s conftest.$ac_objext; then
19756   eval "$as_ac_Header=yes"
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761         eval "$as_ac_Header=no"
19762 fi
19763
19764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19765 fi
19766 ac_res=`eval echo '${'$as_ac_Header'}'`
19767                { echo "$as_me:$LINENO: result: $ac_res" >&5
19768 echo "${ECHO_T}$ac_res" >&6; }
19769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19770   cat >>confdefs.h <<_ACEOF
19771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19772 _ACEOF
19773
19774 fi
19775
19776 done
19777
19778 fi
19779
19780
19781 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19782 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19783 if test "${ac_cv_c_const+set}" = set; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792
19793 int
19794 main ()
19795 {
19796 /* FIXME: Include the comments suggested by Paul. */
19797 #ifndef __cplusplus
19798   /* Ultrix mips cc rejects this.  */
19799   typedef int charset[2];
19800   const charset cs;
19801   /* SunOS 4.1.1 cc rejects this.  */
19802   char const *const *pcpcc;
19803   char **ppc;
19804   /* NEC SVR4.0.2 mips cc rejects this.  */
19805   struct point {int x, y;};
19806   static struct point const zero = {0,0};
19807   /* AIX XL C 1.02.0.0 rejects this.
19808      It does not let you subtract one const X* pointer from another in
19809      an arm of an if-expression whose if-part is not a constant
19810      expression */
19811   const char *g = "string";
19812   pcpcc = &g + (g ? g-g : 0);
19813   /* HPUX 7.0 cc rejects these. */
19814   ++pcpcc;
19815   ppc = (char**) pcpcc;
19816   pcpcc = (char const *const *) ppc;
19817   { /* SCO 3.2v4 cc rejects this.  */
19818     char *t;
19819     char const *s = 0 ? (char *) 0 : (char const *) 0;
19820
19821     *t++ = 0;
19822     if (s) return 0;
19823   }
19824   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19825     int x[] = {25, 17};
19826     const int *foo = &x[0];
19827     ++foo;
19828   }
19829   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19830     typedef const int *iptr;
19831     iptr p = 0;
19832     ++p;
19833   }
19834   { /* AIX XL C 1.02.0.0 rejects this saying
19835        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19836     struct s { int j; const int *ap[3]; };
19837     struct s *b; b->j = 5;
19838   }
19839   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19840     const int foo = 10;
19841     if (!foo) return 0;
19842   }
19843   return !cs[0] && !zero.x;
19844 #endif
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_cv_c_const=yes
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872         ac_cv_c_const=no
19873 fi
19874
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876 fi
19877 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19878 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19879 if test $ac_cv_c_const = no; then
19880
19881 cat >>confdefs.h <<\_ACEOF
19882 #define const
19883 _ACEOF
19884
19885 fi
19886
19887 { echo "$as_me:$LINENO: checking for inline" >&5
19888 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19889 if test "${ac_cv_c_inline+set}" = set; then
19890   echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892   ac_cv_c_inline=no
19893 for ac_kw in inline __inline__ __inline; do
19894   cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900 #ifndef __cplusplus
19901 typedef int foo_t;
19902 static $ac_kw foo_t static_foo () {return 0; }
19903 $ac_kw foo_t foo () {return 0; }
19904 #endif
19905
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_compile") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } && {
19921          test -z "$ac_c_werror_flag" ||
19922          test ! -s conftest.err
19923        } && test -s conftest.$ac_objext; then
19924   ac_cv_c_inline=$ac_kw
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929
19930 fi
19931
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933   test "$ac_cv_c_inline" != no && break
19934 done
19935
19936 fi
19937 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19938 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19939
19940
19941 case $ac_cv_c_inline in
19942   inline | yes) ;;
19943   *)
19944     case $ac_cv_c_inline in
19945       no) ac_val=;;
19946       *) ac_val=$ac_cv_c_inline;;
19947     esac
19948     cat >>confdefs.h <<_ACEOF
19949 #ifndef __cplusplus
19950 #define inline $ac_val
19951 #endif
19952 _ACEOF
19953     ;;
19954 esac
19955
19956
19957 { echo "$as_me:$LINENO: checking for short" >&5
19958 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19959 if test "${ac_cv_type_short+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962   cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 typedef short ac__type_new_;
19970 int
19971 main ()
19972 {
19973 if ((ac__type_new_ *) 0)
19974   return 0;
19975 if (sizeof (ac__type_new_))
19976   return 0;
19977   ;
19978   return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext
19982 if { (ac_try="$ac_compile"
19983 case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_compile") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && {
19995          test -z "$ac_c_werror_flag" ||
19996          test ! -s conftest.err
19997        } && test -s conftest.$ac_objext; then
19998   ac_cv_type_short=yes
19999 else
20000   echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003         ac_cv_type_short=no
20004 fi
20005
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20009 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20010
20011 # The cast to long int works around a bug in the HP C Compiler
20012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20014 # This bug is HP SR number 8606223364.
20015 { echo "$as_me:$LINENO: checking size of short" >&5
20016 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20017 if test "${ac_cv_sizeof_short+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   if test "$cross_compiling" = yes; then
20021   # Depending upon the size, compute the lo and hi bounds.
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h.  */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h.  */
20028 $ac_includes_default
20029    typedef short ac__type_sizeof_;
20030 int
20031 main ()
20032 {
20033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20034 test_array [0] = 0
20035
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_compile") 2>conftest.er1
20048   ac_status=$?
20049   grep -v '^ *+' conftest.er1 >conftest.err
20050   rm -f conftest.er1
20051   cat conftest.err >&5
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); } && {
20054          test -z "$ac_c_werror_flag" ||
20055          test ! -s conftest.err
20056        } && test -s conftest.$ac_objext; then
20057   ac_lo=0 ac_mid=0
20058   while :; do
20059     cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 $ac_includes_default
20066    typedef short ac__type_sizeof_;
20067 int
20068 main ()
20069 {
20070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20071 test_array [0] = 0
20072
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext
20078 if { (ac_try="$ac_compile"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_compile") 2>conftest.er1
20085   ac_status=$?
20086   grep -v '^ *+' conftest.er1 >conftest.err
20087   rm -f conftest.er1
20088   cat conftest.err >&5
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } && {
20091          test -z "$ac_c_werror_flag" ||
20092          test ! -s conftest.err
20093        } && test -s conftest.$ac_objext; then
20094   ac_hi=$ac_mid; break
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099         ac_lo=`expr $ac_mid + 1`
20100                         if test $ac_lo -le $ac_mid; then
20101                           ac_lo= ac_hi=
20102                           break
20103                         fi
20104                         ac_mid=`expr 2 '*' $ac_mid + 1`
20105 fi
20106
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108   done
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 $ac_includes_default
20120    typedef short ac__type_sizeof_;
20121 int
20122 main ()
20123 {
20124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20125 test_array [0] = 0
20126
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_compile") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && {
20145          test -z "$ac_c_werror_flag" ||
20146          test ! -s conftest.err
20147        } && test -s conftest.$ac_objext; then
20148   ac_hi=-1 ac_mid=-1
20149   while :; do
20150     cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156 $ac_includes_default
20157    typedef short ac__type_sizeof_;
20158 int
20159 main ()
20160 {
20161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20162 test_array [0] = 0
20163
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext
20169 if { (ac_try="$ac_compile"
20170 case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_compile") 2>conftest.er1
20176   ac_status=$?
20177   grep -v '^ *+' conftest.er1 >conftest.err
20178   rm -f conftest.er1
20179   cat conftest.err >&5
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } && {
20182          test -z "$ac_c_werror_flag" ||
20183          test ! -s conftest.err
20184        } && test -s conftest.$ac_objext; then
20185   ac_lo=$ac_mid; break
20186 else
20187   echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20189
20190         ac_hi=`expr '(' $ac_mid ')' - 1`
20191                         if test $ac_mid -le $ac_hi; then
20192                           ac_lo= ac_hi=
20193                           break
20194                         fi
20195                         ac_mid=`expr 2 '*' $ac_mid`
20196 fi
20197
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199   done
20200 else
20201   echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204         ac_lo= ac_hi=
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 # Binary search between lo and hi bounds.
20212 while test "x$ac_lo" != "x$ac_hi"; do
20213   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20214   cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 $ac_includes_default
20221    typedef short ac__type_sizeof_;
20222 int
20223 main ()
20224 {
20225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20226 test_array [0] = 0
20227
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext
20233 if { (ac_try="$ac_compile"
20234 case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_compile") 2>conftest.er1
20240   ac_status=$?
20241   grep -v '^ *+' conftest.er1 >conftest.err
20242   rm -f conftest.er1
20243   cat conftest.err >&5
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); } && {
20246          test -z "$ac_c_werror_flag" ||
20247          test ! -s conftest.err
20248        } && test -s conftest.$ac_objext; then
20249   ac_hi=$ac_mid
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254         ac_lo=`expr '(' $ac_mid ')' + 1`
20255 fi
20256
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258 done
20259 case $ac_lo in
20260 ?*) ac_cv_sizeof_short=$ac_lo;;
20261 '') if test "$ac_cv_type_short" = yes; then
20262      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20263 See \`config.log' for more details." >&5
20264 echo "$as_me: error: cannot compute sizeof (short)
20265 See \`config.log' for more details." >&2;}
20266    { (exit 77); exit 77; }; }
20267    else
20268      ac_cv_sizeof_short=0
20269    fi ;;
20270 esac
20271 else
20272   cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278 $ac_includes_default
20279    typedef short ac__type_sizeof_;
20280 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20281 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20282 #include <stdio.h>
20283 #include <stdlib.h>
20284 int
20285 main ()
20286 {
20287
20288   FILE *f = fopen ("conftest.val", "w");
20289   if (! f)
20290     return 1;
20291   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20292     {
20293       long int i = longval ();
20294       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20295         return 1;
20296       fprintf (f, "%ld\n", i);
20297     }
20298   else
20299     {
20300       unsigned long int i = ulongval ();
20301       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20302         return 1;
20303       fprintf (f, "%lu\n", i);
20304     }
20305   return ferror (f) || fclose (f) != 0;
20306
20307   ;
20308   return 0;
20309 }
20310 _ACEOF
20311 rm -f conftest$ac_exeext
20312 if { (ac_try="$ac_link"
20313 case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_link") 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20322   { (case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327   (eval "$ac_try") 2>&5
20328   ac_status=$?
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); }; }; then
20331   ac_cv_sizeof_short=`cat conftest.val`
20332 else
20333   echo "$as_me: program exited with status $ac_status" >&5
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ( exit $ac_status )
20338 if test "$ac_cv_type_short" = yes; then
20339      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20340 See \`config.log' for more details." >&5
20341 echo "$as_me: error: cannot compute sizeof (short)
20342 See \`config.log' for more details." >&2;}
20343    { (exit 77); exit 77; }; }
20344    else
20345      ac_cv_sizeof_short=0
20346    fi
20347 fi
20348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20349 fi
20350 rm -f conftest.val
20351 fi
20352 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20353 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20354
20355
20356
20357 cat >>confdefs.h <<_ACEOF
20358 #define SIZEOF_SHORT $ac_cv_sizeof_short
20359 _ACEOF
20360
20361
20362 { echo "$as_me:$LINENO: checking for void *" >&5
20363 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20364 if test "${ac_cv_type_void_p+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367   cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h.  */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h.  */
20373 $ac_includes_default
20374 typedef void * ac__type_new_;
20375 int
20376 main ()
20377 {
20378 if ((ac__type_new_ *) 0)
20379   return 0;
20380 if (sizeof (ac__type_new_))
20381   return 0;
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (ac_try="$ac_compile"
20388 case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393   (eval "$ac_compile") 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } && {
20400          test -z "$ac_c_werror_flag" ||
20401          test ! -s conftest.err
20402        } && test -s conftest.$ac_objext; then
20403   ac_cv_type_void_p=yes
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408         ac_cv_type_void_p=no
20409 fi
20410
20411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20412 fi
20413 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20414 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20415
20416 # The cast to long int works around a bug in the HP C Compiler
20417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20419 # This bug is HP SR number 8606223364.
20420 { echo "$as_me:$LINENO: checking size of void *" >&5
20421 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20422 if test "${ac_cv_sizeof_void_p+set}" = set; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   if test "$cross_compiling" = yes; then
20426   # Depending upon the size, compute the lo and hi bounds.
20427 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433 $ac_includes_default
20434    typedef void * ac__type_sizeof_;
20435 int
20436 main ()
20437 {
20438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20439 test_array [0] = 0
20440
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_compile") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } && {
20459          test -z "$ac_c_werror_flag" ||
20460          test ! -s conftest.err
20461        } && test -s conftest.$ac_objext; then
20462   ac_lo=0 ac_mid=0
20463   while :; do
20464     cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470 $ac_includes_default
20471    typedef void * ac__type_sizeof_;
20472 int
20473 main ()
20474 {
20475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20476 test_array [0] = 0
20477
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (ac_try="$ac_compile"
20484 case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_compile") 2>conftest.er1
20490   ac_status=$?
20491   grep -v '^ *+' conftest.er1 >conftest.err
20492   rm -f conftest.er1
20493   cat conftest.err >&5
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } && {
20496          test -z "$ac_c_werror_flag" ||
20497          test ! -s conftest.err
20498        } && test -s conftest.$ac_objext; then
20499   ac_hi=$ac_mid; break
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504         ac_lo=`expr $ac_mid + 1`
20505                         if test $ac_lo -le $ac_mid; then
20506                           ac_lo= ac_hi=
20507                           break
20508                         fi
20509                         ac_mid=`expr 2 '*' $ac_mid + 1`
20510 fi
20511
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513   done
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518         cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h.  */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h.  */
20524 $ac_includes_default
20525    typedef void * ac__type_sizeof_;
20526 int
20527 main ()
20528 {
20529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20530 test_array [0] = 0
20531
20532   ;
20533   return 0;
20534 }
20535 _ACEOF
20536 rm -f conftest.$ac_objext
20537 if { (ac_try="$ac_compile"
20538 case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_compile") 2>conftest.er1
20544   ac_status=$?
20545   grep -v '^ *+' conftest.er1 >conftest.err
20546   rm -f conftest.er1
20547   cat conftest.err >&5
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); } && {
20550          test -z "$ac_c_werror_flag" ||
20551          test ! -s conftest.err
20552        } && test -s conftest.$ac_objext; then
20553   ac_hi=-1 ac_mid=-1
20554   while :; do
20555     cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561 $ac_includes_default
20562    typedef void * ac__type_sizeof_;
20563 int
20564 main ()
20565 {
20566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20567 test_array [0] = 0
20568
20569   ;
20570   return 0;
20571 }
20572 _ACEOF
20573 rm -f conftest.$ac_objext
20574 if { (ac_try="$ac_compile"
20575 case "(($ac_try" in
20576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577   *) ac_try_echo=$ac_try;;
20578 esac
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580   (eval "$ac_compile") 2>conftest.er1
20581   ac_status=$?
20582   grep -v '^ *+' conftest.er1 >conftest.err
20583   rm -f conftest.er1
20584   cat conftest.err >&5
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } && {
20587          test -z "$ac_c_werror_flag" ||
20588          test ! -s conftest.err
20589        } && test -s conftest.$ac_objext; then
20590   ac_lo=$ac_mid; break
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595         ac_hi=`expr '(' $ac_mid ')' - 1`
20596                         if test $ac_mid -le $ac_hi; then
20597                           ac_lo= ac_hi=
20598                           break
20599                         fi
20600                         ac_mid=`expr 2 '*' $ac_mid`
20601 fi
20602
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604   done
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609         ac_lo= ac_hi=
20610 fi
20611
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 fi
20614
20615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 # Binary search between lo and hi bounds.
20617 while test "x$ac_lo" != "x$ac_hi"; do
20618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20619   cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 $ac_includes_default
20626    typedef void * ac__type_sizeof_;
20627 int
20628 main ()
20629 {
20630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20631 test_array [0] = 0
20632
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_compile") 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } && {
20651          test -z "$ac_c_werror_flag" ||
20652          test ! -s conftest.err
20653        } && test -s conftest.$ac_objext; then
20654   ac_hi=$ac_mid
20655 else
20656   echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659         ac_lo=`expr '(' $ac_mid ')' + 1`
20660 fi
20661
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 done
20664 case $ac_lo in
20665 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20666 '') if test "$ac_cv_type_void_p" = yes; then
20667      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20668 See \`config.log' for more details." >&5
20669 echo "$as_me: error: cannot compute sizeof (void *)
20670 See \`config.log' for more details." >&2;}
20671    { (exit 77); exit 77; }; }
20672    else
20673      ac_cv_sizeof_void_p=0
20674    fi ;;
20675 esac
20676 else
20677   cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 $ac_includes_default
20684    typedef void * ac__type_sizeof_;
20685 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20686 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20687 #include <stdio.h>
20688 #include <stdlib.h>
20689 int
20690 main ()
20691 {
20692
20693   FILE *f = fopen ("conftest.val", "w");
20694   if (! f)
20695     return 1;
20696   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20697     {
20698       long int i = longval ();
20699       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20700         return 1;
20701       fprintf (f, "%ld\n", i);
20702     }
20703   else
20704     {
20705       unsigned long int i = ulongval ();
20706       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20707         return 1;
20708       fprintf (f, "%lu\n", i);
20709     }
20710   return ferror (f) || fclose (f) != 0;
20711
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_link") 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20727   { (case "(($ac_try" in
20728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729   *) ac_try_echo=$ac_try;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732   (eval "$ac_try") 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; }; then
20736   ac_cv_sizeof_void_p=`cat conftest.val`
20737 else
20738   echo "$as_me: program exited with status $ac_status" >&5
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742 ( exit $ac_status )
20743 if test "$ac_cv_type_void_p" = yes; then
20744      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20745 See \`config.log' for more details." >&5
20746 echo "$as_me: error: cannot compute sizeof (void *)
20747 See \`config.log' for more details." >&2;}
20748    { (exit 77); exit 77; }; }
20749    else
20750      ac_cv_sizeof_void_p=0
20751    fi
20752 fi
20753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20754 fi
20755 rm -f conftest.val
20756 fi
20757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20758 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20759
20760
20761
20762 cat >>confdefs.h <<_ACEOF
20763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20764 _ACEOF
20765
20766
20767 { echo "$as_me:$LINENO: checking for int" >&5
20768 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20769 if test "${ac_cv_type_int+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772   cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778 $ac_includes_default
20779 typedef int ac__type_new_;
20780 int
20781 main ()
20782 {
20783 if ((ac__type_new_ *) 0)
20784   return 0;
20785 if (sizeof (ac__type_new_))
20786   return 0;
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest.$ac_objext
20792 if { (ac_try="$ac_compile"
20793 case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_compile") 2>conftest.er1
20799   ac_status=$?
20800   grep -v '^ *+' conftest.er1 >conftest.err
20801   rm -f conftest.er1
20802   cat conftest.err >&5
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } && {
20805          test -z "$ac_c_werror_flag" ||
20806          test ! -s conftest.err
20807        } && test -s conftest.$ac_objext; then
20808   ac_cv_type_int=yes
20809 else
20810   echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813         ac_cv_type_int=no
20814 fi
20815
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 fi
20818 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20819 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20820
20821 # The cast to long int works around a bug in the HP C Compiler
20822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20824 # This bug is HP SR number 8606223364.
20825 { echo "$as_me:$LINENO: checking size of int" >&5
20826 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20827 if test "${ac_cv_sizeof_int+set}" = set; then
20828   echo $ECHO_N "(cached) $ECHO_C" >&6
20829 else
20830   if test "$cross_compiling" = yes; then
20831   # Depending upon the size, compute the lo and hi bounds.
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 $ac_includes_default
20839    typedef int ac__type_sizeof_;
20840 int
20841 main ()
20842 {
20843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20844 test_array [0] = 0
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest.$ac_objext; then
20867   ac_lo=0 ac_mid=0
20868   while :; do
20869     cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 $ac_includes_default
20876    typedef int ac__type_sizeof_;
20877 int
20878 main ()
20879 {
20880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20881 test_array [0] = 0
20882
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891   *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894   (eval "$ac_compile") 2>conftest.er1
20895   ac_status=$?
20896   grep -v '^ *+' conftest.er1 >conftest.err
20897   rm -f conftest.er1
20898   cat conftest.err >&5
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } && {
20901          test -z "$ac_c_werror_flag" ||
20902          test ! -s conftest.err
20903        } && test -s conftest.$ac_objext; then
20904   ac_hi=$ac_mid; break
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         ac_lo=`expr $ac_mid + 1`
20910                         if test $ac_lo -le $ac_mid; then
20911                           ac_lo= ac_hi=
20912                           break
20913                         fi
20914                         ac_mid=`expr 2 '*' $ac_mid + 1`
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918   done
20919 else
20920   echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923         cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 $ac_includes_default
20930    typedef int ac__type_sizeof_;
20931 int
20932 main ()
20933 {
20934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20935 test_array [0] = 0
20936
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext
20942 if { (ac_try="$ac_compile"
20943 case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_compile") 2>conftest.er1
20949   ac_status=$?
20950   grep -v '^ *+' conftest.er1 >conftest.err
20951   rm -f conftest.er1
20952   cat conftest.err >&5
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); } && {
20955          test -z "$ac_c_werror_flag" ||
20956          test ! -s conftest.err
20957        } && test -s conftest.$ac_objext; then
20958   ac_hi=-1 ac_mid=-1
20959   while :; do
20960     cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h.  */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h.  */
20966 $ac_includes_default
20967    typedef int ac__type_sizeof_;
20968 int
20969 main ()
20970 {
20971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20972 test_array [0] = 0
20973
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_compile") 2>conftest.er1
20986   ac_status=$?
20987   grep -v '^ *+' conftest.er1 >conftest.err
20988   rm -f conftest.er1
20989   cat conftest.err >&5
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } && {
20992          test -z "$ac_c_werror_flag" ||
20993          test ! -s conftest.err
20994        } && test -s conftest.$ac_objext; then
20995   ac_lo=$ac_mid; break
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000         ac_hi=`expr '(' $ac_mid ')' - 1`
21001                         if test $ac_mid -le $ac_hi; then
21002                           ac_lo= ac_hi=
21003                           break
21004                         fi
21005                         ac_mid=`expr 2 '*' $ac_mid`
21006 fi
21007
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009   done
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         ac_lo= ac_hi=
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 fi
21019
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 # Binary search between lo and hi bounds.
21022 while test "x$ac_lo" != "x$ac_hi"; do
21023   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21024   cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030 $ac_includes_default
21031    typedef int ac__type_sizeof_;
21032 int
21033 main ()
21034 {
21035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21036 test_array [0] = 0
21037
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_compile") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest.$ac_objext; then
21059   ac_hi=$ac_mid
21060 else
21061   echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064         ac_lo=`expr '(' $ac_mid ')' + 1`
21065 fi
21066
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068 done
21069 case $ac_lo in
21070 ?*) ac_cv_sizeof_int=$ac_lo;;
21071 '') if test "$ac_cv_type_int" = yes; then
21072      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21073 See \`config.log' for more details." >&5
21074 echo "$as_me: error: cannot compute sizeof (int)
21075 See \`config.log' for more details." >&2;}
21076    { (exit 77); exit 77; }; }
21077    else
21078      ac_cv_sizeof_int=0
21079    fi ;;
21080 esac
21081 else
21082   cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 $ac_includes_default
21089    typedef int ac__type_sizeof_;
21090 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21091 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21092 #include <stdio.h>
21093 #include <stdlib.h>
21094 int
21095 main ()
21096 {
21097
21098   FILE *f = fopen ("conftest.val", "w");
21099   if (! f)
21100     return 1;
21101   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21102     {
21103       long int i = longval ();
21104       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21105         return 1;
21106       fprintf (f, "%ld\n", i);
21107     }
21108   else
21109     {
21110       unsigned long int i = ulongval ();
21111       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21112         return 1;
21113       fprintf (f, "%lu\n", i);
21114     }
21115   return ferror (f) || fclose (f) != 0;
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_link") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132   { (case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_try") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   ac_cv_sizeof_int=`cat conftest.val`
21142 else
21143   echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 ( exit $ac_status )
21148 if test "$ac_cv_type_int" = yes; then
21149      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21150 See \`config.log' for more details." >&5
21151 echo "$as_me: error: cannot compute sizeof (int)
21152 See \`config.log' for more details." >&2;}
21153    { (exit 77); exit 77; }; }
21154    else
21155      ac_cv_sizeof_int=0
21156    fi
21157 fi
21158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21159 fi
21160 rm -f conftest.val
21161 fi
21162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21163 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21164
21165
21166
21167 cat >>confdefs.h <<_ACEOF
21168 #define SIZEOF_INT $ac_cv_sizeof_int
21169 _ACEOF
21170
21171
21172 { echo "$as_me:$LINENO: checking for long" >&5
21173 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21174 if test "${ac_cv_type_long+set}" = set; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177   cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 $ac_includes_default
21184 typedef long ac__type_new_;
21185 int
21186 main ()
21187 {
21188 if ((ac__type_new_ *) 0)
21189   return 0;
21190 if (sizeof (ac__type_new_))
21191   return 0;
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_compile") 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } && {
21210          test -z "$ac_c_werror_flag" ||
21211          test ! -s conftest.err
21212        } && test -s conftest.$ac_objext; then
21213   ac_cv_type_long=yes
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218         ac_cv_type_long=no
21219 fi
21220
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 fi
21223 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21224 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21225
21226 # The cast to long int works around a bug in the HP C Compiler
21227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21229 # This bug is HP SR number 8606223364.
21230 { echo "$as_me:$LINENO: checking size of long" >&5
21231 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21232 if test "${ac_cv_sizeof_long+set}" = set; then
21233   echo $ECHO_N "(cached) $ECHO_C" >&6
21234 else
21235   if test "$cross_compiling" = yes; then
21236   # Depending upon the size, compute the lo and hi bounds.
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243 $ac_includes_default
21244    typedef long ac__type_sizeof_;
21245 int
21246 main ()
21247 {
21248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21249 test_array [0] = 0
21250
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_compile") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } && {
21269          test -z "$ac_c_werror_flag" ||
21270          test ! -s conftest.err
21271        } && test -s conftest.$ac_objext; then
21272   ac_lo=0 ac_mid=0
21273   while :; do
21274     cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 $ac_includes_default
21281    typedef long ac__type_sizeof_;
21282 int
21283 main ()
21284 {
21285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21286 test_array [0] = 0
21287
21288   ;
21289   return 0;
21290 }
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (ac_try="$ac_compile"
21294 case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299   (eval "$ac_compile") 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } && {
21306          test -z "$ac_c_werror_flag" ||
21307          test ! -s conftest.err
21308        } && test -s conftest.$ac_objext; then
21309   ac_hi=$ac_mid; break
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314         ac_lo=`expr $ac_mid + 1`
21315                         if test $ac_lo -le $ac_mid; then
21316                           ac_lo= ac_hi=
21317                           break
21318                         fi
21319                         ac_mid=`expr 2 '*' $ac_mid + 1`
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323   done
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328         cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 $ac_includes_default
21335    typedef long ac__type_sizeof_;
21336 int
21337 main ()
21338 {
21339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21340 test_array [0] = 0
21341
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_compile") 2>conftest.er1
21354   ac_status=$?
21355   grep -v '^ *+' conftest.er1 >conftest.err
21356   rm -f conftest.er1
21357   cat conftest.err >&5
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } && {
21360          test -z "$ac_c_werror_flag" ||
21361          test ! -s conftest.err
21362        } && test -s conftest.$ac_objext; then
21363   ac_hi=-1 ac_mid=-1
21364   while :; do
21365     cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h.  */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h.  */
21371 $ac_includes_default
21372    typedef long ac__type_sizeof_;
21373 int
21374 main ()
21375 {
21376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21377 test_array [0] = 0
21378
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390   (eval "$ac_compile") 2>conftest.er1
21391   ac_status=$?
21392   grep -v '^ *+' conftest.er1 >conftest.err
21393   rm -f conftest.er1
21394   cat conftest.err >&5
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); } && {
21397          test -z "$ac_c_werror_flag" ||
21398          test ! -s conftest.err
21399        } && test -s conftest.$ac_objext; then
21400   ac_lo=$ac_mid; break
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405         ac_hi=`expr '(' $ac_mid ')' - 1`
21406                         if test $ac_mid -le $ac_hi; then
21407                           ac_lo= ac_hi=
21408                           break
21409                         fi
21410                         ac_mid=`expr 2 '*' $ac_mid`
21411 fi
21412
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414   done
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419         ac_lo= ac_hi=
21420 fi
21421
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21423 fi
21424
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426 # Binary search between lo and hi bounds.
21427 while test "x$ac_lo" != "x$ac_hi"; do
21428   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21429   cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 $ac_includes_default
21436    typedef long ac__type_sizeof_;
21437 int
21438 main ()
21439 {
21440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21441 test_array [0] = 0
21442
21443   ;
21444   return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454   (eval "$ac_compile") 2>conftest.er1
21455   ac_status=$?
21456   grep -v '^ *+' conftest.er1 >conftest.err
21457   rm -f conftest.er1
21458   cat conftest.err >&5
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); } && {
21461          test -z "$ac_c_werror_flag" ||
21462          test ! -s conftest.err
21463        } && test -s conftest.$ac_objext; then
21464   ac_hi=$ac_mid
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         ac_lo=`expr '(' $ac_mid ')' + 1`
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 done
21474 case $ac_lo in
21475 ?*) ac_cv_sizeof_long=$ac_lo;;
21476 '') if test "$ac_cv_type_long" = yes; then
21477      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21478 See \`config.log' for more details." >&5
21479 echo "$as_me: error: cannot compute sizeof (long)
21480 See \`config.log' for more details." >&2;}
21481    { (exit 77); exit 77; }; }
21482    else
21483      ac_cv_sizeof_long=0
21484    fi ;;
21485 esac
21486 else
21487   cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 $ac_includes_default
21494    typedef long ac__type_sizeof_;
21495 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21496 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21497 #include <stdio.h>
21498 #include <stdlib.h>
21499 int
21500 main ()
21501 {
21502
21503   FILE *f = fopen ("conftest.val", "w");
21504   if (! f)
21505     return 1;
21506   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21507     {
21508       long int i = longval ();
21509       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21510         return 1;
21511       fprintf (f, "%ld\n", i);
21512     }
21513   else
21514     {
21515       unsigned long int i = ulongval ();
21516       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21517         return 1;
21518       fprintf (f, "%lu\n", i);
21519     }
21520   return ferror (f) || fclose (f) != 0;
21521
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest$ac_exeext
21527 if { (ac_try="$ac_link"
21528 case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_link") 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21537   { (case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_try") 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); }; }; then
21546   ac_cv_sizeof_long=`cat conftest.val`
21547 else
21548   echo "$as_me: program exited with status $ac_status" >&5
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 ( exit $ac_status )
21553 if test "$ac_cv_type_long" = yes; then
21554      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21555 See \`config.log' for more details." >&5
21556 echo "$as_me: error: cannot compute sizeof (long)
21557 See \`config.log' for more details." >&2;}
21558    { (exit 77); exit 77; }; }
21559    else
21560      ac_cv_sizeof_long=0
21561    fi
21562 fi
21563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21564 fi
21565 rm -f conftest.val
21566 fi
21567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21568 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21569
21570
21571
21572 cat >>confdefs.h <<_ACEOF
21573 #define SIZEOF_LONG $ac_cv_sizeof_long
21574 _ACEOF
21575
21576
21577 { echo "$as_me:$LINENO: checking for size_t" >&5
21578 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21579 if test "${ac_cv_type_size_t+set}" = set; then
21580   echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 $ac_includes_default
21589 typedef size_t ac__type_new_;
21590 int
21591 main ()
21592 {
21593 if ((ac__type_new_ *) 0)
21594   return 0;
21595 if (sizeof (ac__type_new_))
21596   return 0;
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_compile") 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } && {
21615          test -z "$ac_c_werror_flag" ||
21616          test ! -s conftest.err
21617        } && test -s conftest.$ac_objext; then
21618   ac_cv_type_size_t=yes
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         ac_cv_type_size_t=no
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21629 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21630
21631 # The cast to long int works around a bug in the HP C Compiler
21632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21634 # This bug is HP SR number 8606223364.
21635 { echo "$as_me:$LINENO: checking size of size_t" >&5
21636 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21637 if test "${ac_cv_sizeof_size_t+set}" = set; then
21638   echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640   if test "$cross_compiling" = yes; then
21641   # Depending upon the size, compute the lo and hi bounds.
21642 cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 $ac_includes_default
21649    typedef size_t ac__type_sizeof_;
21650 int
21651 main ()
21652 {
21653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21654 test_array [0] = 0
21655
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_compile") 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } && {
21674          test -z "$ac_c_werror_flag" ||
21675          test ! -s conftest.err
21676        } && test -s conftest.$ac_objext; then
21677   ac_lo=0 ac_mid=0
21678   while :; do
21679     cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685 $ac_includes_default
21686    typedef size_t ac__type_sizeof_;
21687 int
21688 main ()
21689 {
21690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21691 test_array [0] = 0
21692
21693   ;
21694   return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701   *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704   (eval "$ac_compile") 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } && {
21711          test -z "$ac_c_werror_flag" ||
21712          test ! -s conftest.err
21713        } && test -s conftest.$ac_objext; then
21714   ac_hi=$ac_mid; break
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         ac_lo=`expr $ac_mid + 1`
21720                         if test $ac_lo -le $ac_mid; then
21721                           ac_lo= ac_hi=
21722                           break
21723                         fi
21724                         ac_mid=`expr 2 '*' $ac_mid + 1`
21725 fi
21726
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728   done
21729 else
21730   echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733         cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739 $ac_includes_default
21740    typedef size_t ac__type_sizeof_;
21741 int
21742 main ()
21743 {
21744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21745 test_array [0] = 0
21746
21747   ;
21748   return 0;
21749 }
21750 _ACEOF
21751 rm -f conftest.$ac_objext
21752 if { (ac_try="$ac_compile"
21753 case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_compile") 2>conftest.er1
21759   ac_status=$?
21760   grep -v '^ *+' conftest.er1 >conftest.err
21761   rm -f conftest.er1
21762   cat conftest.err >&5
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } && {
21765          test -z "$ac_c_werror_flag" ||
21766          test ! -s conftest.err
21767        } && test -s conftest.$ac_objext; then
21768   ac_hi=-1 ac_mid=-1
21769   while :; do
21770     cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h.  */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h.  */
21776 $ac_includes_default
21777    typedef size_t ac__type_sizeof_;
21778 int
21779 main ()
21780 {
21781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21782 test_array [0] = 0
21783
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 rm -f conftest.$ac_objext
21789 if { (ac_try="$ac_compile"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_compile") 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } && {
21802          test -z "$ac_c_werror_flag" ||
21803          test ! -s conftest.err
21804        } && test -s conftest.$ac_objext; then
21805   ac_lo=$ac_mid; break
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810         ac_hi=`expr '(' $ac_mid ')' - 1`
21811                         if test $ac_mid -le $ac_hi; then
21812                           ac_lo= ac_hi=
21813                           break
21814                         fi
21815                         ac_mid=`expr 2 '*' $ac_mid`
21816 fi
21817
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819   done
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824         ac_lo= ac_hi=
21825 fi
21826
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 # Binary search between lo and hi bounds.
21832 while test "x$ac_lo" != "x$ac_hi"; do
21833   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21834   cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840 $ac_includes_default
21841    typedef size_t ac__type_sizeof_;
21842 int
21843 main ()
21844 {
21845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21846 test_array [0] = 0
21847
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 rm -f conftest.$ac_objext
21853 if { (ac_try="$ac_compile"
21854 case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_compile") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } && {
21866          test -z "$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        } && test -s conftest.$ac_objext; then
21869   ac_hi=$ac_mid
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874         ac_lo=`expr '(' $ac_mid ')' + 1`
21875 fi
21876
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878 done
21879 case $ac_lo in
21880 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21881 '') if test "$ac_cv_type_size_t" = yes; then
21882      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21883 See \`config.log' for more details." >&5
21884 echo "$as_me: error: cannot compute sizeof (size_t)
21885 See \`config.log' for more details." >&2;}
21886    { (exit 77); exit 77; }; }
21887    else
21888      ac_cv_sizeof_size_t=0
21889    fi ;;
21890 esac
21891 else
21892   cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 $ac_includes_default
21899    typedef size_t ac__type_sizeof_;
21900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21902 #include <stdio.h>
21903 #include <stdlib.h>
21904 int
21905 main ()
21906 {
21907
21908   FILE *f = fopen ("conftest.val", "w");
21909   if (! f)
21910     return 1;
21911   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21912     {
21913       long int i = longval ();
21914       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21915         return 1;
21916       fprintf (f, "%ld\n", i);
21917     }
21918   else
21919     {
21920       unsigned long int i = ulongval ();
21921       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21922         return 1;
21923       fprintf (f, "%lu\n", i);
21924     }
21925   return ferror (f) || fclose (f) != 0;
21926
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_link") 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942   { (case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_try") 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; }; then
21951   ac_cv_sizeof_size_t=`cat conftest.val`
21952 else
21953   echo "$as_me: program exited with status $ac_status" >&5
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957 ( exit $ac_status )
21958 if test "$ac_cv_type_size_t" = yes; then
21959      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21960 See \`config.log' for more details." >&5
21961 echo "$as_me: error: cannot compute sizeof (size_t)
21962 See \`config.log' for more details." >&2;}
21963    { (exit 77); exit 77; }; }
21964    else
21965      ac_cv_sizeof_size_t=0
21966    fi
21967 fi
21968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21969 fi
21970 rm -f conftest.val
21971 fi
21972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21973 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21974
21975
21976
21977 cat >>confdefs.h <<_ACEOF
21978 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21979 _ACEOF
21980
21981
21982
21983 case "${host}" in
21984     arm-*-linux* )
21985         { echo "$as_me:$LINENO: checking for long long" >&5
21986 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21987 if test "${ac_cv_type_long_long+set}" = set; then
21988   echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990   cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h.  */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h.  */
21996 $ac_includes_default
21997 typedef long long ac__type_new_;
21998 int
21999 main ()
22000 {
22001 if ((ac__type_new_ *) 0)
22002   return 0;
22003 if (sizeof (ac__type_new_))
22004   return 0;
22005   ;
22006   return 0;
22007 }
22008 _ACEOF
22009 rm -f conftest.$ac_objext
22010 if { (ac_try="$ac_compile"
22011 case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_compile") 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } && {
22023          test -z "$ac_c_werror_flag" ||
22024          test ! -s conftest.err
22025        } && test -s conftest.$ac_objext; then
22026   ac_cv_type_long_long=yes
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031         ac_cv_type_long_long=no
22032 fi
22033
22034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 fi
22036 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22037 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22038
22039 # The cast to long int works around a bug in the HP C Compiler
22040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22042 # This bug is HP SR number 8606223364.
22043 { echo "$as_me:$LINENO: checking size of long long" >&5
22044 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22045 if test "${ac_cv_sizeof_long_long+set}" = set; then
22046   echo $ECHO_N "(cached) $ECHO_C" >&6
22047 else
22048   if test "$cross_compiling" = yes; then
22049   # Depending upon the size, compute the lo and hi bounds.
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 $ac_includes_default
22057    typedef long long ac__type_sizeof_;
22058 int
22059 main ()
22060 {
22061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22062 test_array [0] = 0
22063
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072   *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075   (eval "$ac_compile") 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } && {
22082          test -z "$ac_c_werror_flag" ||
22083          test ! -s conftest.err
22084        } && test -s conftest.$ac_objext; then
22085   ac_lo=0 ac_mid=0
22086   while :; do
22087     cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093 $ac_includes_default
22094    typedef long long ac__type_sizeof_;
22095 int
22096 main ()
22097 {
22098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22099 test_array [0] = 0
22100
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112   (eval "$ac_compile") 2>conftest.er1
22113   ac_status=$?
22114   grep -v '^ *+' conftest.er1 >conftest.err
22115   rm -f conftest.er1
22116   cat conftest.err >&5
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); } && {
22119          test -z "$ac_c_werror_flag" ||
22120          test ! -s conftest.err
22121        } && test -s conftest.$ac_objext; then
22122   ac_hi=$ac_mid; break
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127         ac_lo=`expr $ac_mid + 1`
22128                         if test $ac_lo -le $ac_mid; then
22129                           ac_lo= ac_hi=
22130                           break
22131                         fi
22132                         ac_mid=`expr 2 '*' $ac_mid + 1`
22133 fi
22134
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136   done
22137 else
22138   echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141         cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147 $ac_includes_default
22148    typedef long long ac__type_sizeof_;
22149 int
22150 main ()
22151 {
22152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22153 test_array [0] = 0
22154
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163   *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166   (eval "$ac_compile") 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && {
22173          test -z "$ac_c_werror_flag" ||
22174          test ! -s conftest.err
22175        } && test -s conftest.$ac_objext; then
22176   ac_hi=-1 ac_mid=-1
22177   while :; do
22178     cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 $ac_includes_default
22185    typedef long long ac__type_sizeof_;
22186 int
22187 main ()
22188 {
22189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22190 test_array [0] = 0
22191
22192   ;
22193   return 0;
22194 }
22195 _ACEOF
22196 rm -f conftest.$ac_objext
22197 if { (ac_try="$ac_compile"
22198 case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203   (eval "$ac_compile") 2>conftest.er1
22204   ac_status=$?
22205   grep -v '^ *+' conftest.er1 >conftest.err
22206   rm -f conftest.er1
22207   cat conftest.err >&5
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); } && {
22210          test -z "$ac_c_werror_flag" ||
22211          test ! -s conftest.err
22212        } && test -s conftest.$ac_objext; then
22213   ac_lo=$ac_mid; break
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22217
22218         ac_hi=`expr '(' $ac_mid ')' - 1`
22219                         if test $ac_mid -le $ac_hi; then
22220                           ac_lo= ac_hi=
22221                           break
22222                         fi
22223                         ac_mid=`expr 2 '*' $ac_mid`
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227   done
22228 else
22229   echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22231
22232         ac_lo= ac_hi=
22233 fi
22234
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 fi
22237
22238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 # Binary search between lo and hi bounds.
22240 while test "x$ac_lo" != "x$ac_hi"; do
22241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 $ac_includes_default
22249    typedef long long ac__type_sizeof_;
22250 int
22251 main ()
22252 {
22253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22254 test_array [0] = 0
22255
22256   ;
22257   return 0;
22258 }
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264   *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267   (eval "$ac_compile") 2>conftest.er1
22268   ac_status=$?
22269   grep -v '^ *+' conftest.er1 >conftest.err
22270   rm -f conftest.er1
22271   cat conftest.err >&5
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } && {
22274          test -z "$ac_c_werror_flag" ||
22275          test ! -s conftest.err
22276        } && test -s conftest.$ac_objext; then
22277   ac_hi=$ac_mid
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282         ac_lo=`expr '(' $ac_mid ')' + 1`
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 done
22287 case $ac_lo in
22288 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22289 '') if test "$ac_cv_type_long_long" = yes; then
22290      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22291 See \`config.log' for more details." >&5
22292 echo "$as_me: error: cannot compute sizeof (long long)
22293 See \`config.log' for more details." >&2;}
22294    { (exit 77); exit 77; }; }
22295    else
22296      ac_cv_sizeof_long_long=0
22297    fi ;;
22298 esac
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h.  */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h.  */
22306 $ac_includes_default
22307    typedef long long ac__type_sizeof_;
22308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22310 #include <stdio.h>
22311 #include <stdlib.h>
22312 int
22313 main ()
22314 {
22315
22316   FILE *f = fopen ("conftest.val", "w");
22317   if (! f)
22318     return 1;
22319   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22320     {
22321       long int i = longval ();
22322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22323         return 1;
22324       fprintf (f, "%ld\n", i);
22325     }
22326   else
22327     {
22328       unsigned long int i = ulongval ();
22329       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22330         return 1;
22331       fprintf (f, "%lu\n", i);
22332     }
22333   return ferror (f) || fclose (f) != 0;
22334
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest$ac_exeext
22340 if { (ac_try="$ac_link"
22341 case "(($ac_try" in
22342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343   *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346   (eval "$ac_link") 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350   { (case "(($ac_try" in
22351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352   *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355   (eval "$ac_try") 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); }; }; then
22359   ac_cv_sizeof_long_long=`cat conftest.val`
22360 else
22361   echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 ( exit $ac_status )
22366 if test "$ac_cv_type_long_long" = yes; then
22367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22368 See \`config.log' for more details." >&5
22369 echo "$as_me: error: cannot compute sizeof (long long)
22370 See \`config.log' for more details." >&2;}
22371    { (exit 77); exit 77; }; }
22372    else
22373      ac_cv_sizeof_long_long=0
22374    fi
22375 fi
22376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22377 fi
22378 rm -f conftest.val
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22381 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22382
22383
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22387 _ACEOF
22388
22389
22390     ;;
22391     *-hp-hpux* )
22392         { echo "$as_me:$LINENO: checking for long long" >&5
22393 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22394 if test "${ac_cv_type_long_long+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397   cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403 $ac_includes_default
22404 typedef long long ac__type_new_;
22405 int
22406 main ()
22407 {
22408 if ((ac__type_new_ *) 0)
22409   return 0;
22410 if (sizeof (ac__type_new_))
22411   return 0;
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423   (eval "$ac_compile") 2>conftest.er1
22424   ac_status=$?
22425   grep -v '^ *+' conftest.er1 >conftest.err
22426   rm -f conftest.er1
22427   cat conftest.err >&5
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); } && {
22430          test -z "$ac_c_werror_flag" ||
22431          test ! -s conftest.err
22432        } && test -s conftest.$ac_objext; then
22433   ac_cv_type_long_long=yes
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438         ac_cv_type_long_long=no
22439 fi
22440
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 fi
22443 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22444 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22445
22446 # The cast to long int works around a bug in the HP C Compiler
22447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22449 # This bug is HP SR number 8606223364.
22450 { echo "$as_me:$LINENO: checking size of long long" >&5
22451 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22452 if test "${ac_cv_sizeof_long_long+set}" = set; then
22453   echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455   if test "$cross_compiling" = yes; then
22456   # Depending upon the size, compute the lo and hi bounds.
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 $ac_includes_default
22464    typedef long long ac__type_sizeof_;
22465 int
22466 main ()
22467 {
22468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22469 test_array [0] = 0
22470
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_compile") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } && {
22489          test -z "$ac_c_werror_flag" ||
22490          test ! -s conftest.err
22491        } && test -s conftest.$ac_objext; then
22492   ac_lo=0 ac_mid=0
22493   while :; do
22494     cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h.  */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h.  */
22500 $ac_includes_default
22501    typedef long long ac__type_sizeof_;
22502 int
22503 main ()
22504 {
22505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22506 test_array [0] = 0
22507
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516   *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519   (eval "$ac_compile") 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } && {
22526          test -z "$ac_c_werror_flag" ||
22527          test ! -s conftest.err
22528        } && test -s conftest.$ac_objext; then
22529   ac_hi=$ac_mid; break
22530 else
22531   echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22533
22534         ac_lo=`expr $ac_mid + 1`
22535                         if test $ac_lo -le $ac_mid; then
22536                           ac_lo= ac_hi=
22537                           break
22538                         fi
22539                         ac_mid=`expr 2 '*' $ac_mid + 1`
22540 fi
22541
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543   done
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 $ac_includes_default
22555    typedef long long ac__type_sizeof_;
22556 int
22557 main ()
22558 {
22559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22560 test_array [0] = 0
22561
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (ac_try="$ac_compile"
22568 case "(($ac_try" in
22569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570   *) ac_try_echo=$ac_try;;
22571 esac
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573   (eval "$ac_compile") 2>conftest.er1
22574   ac_status=$?
22575   grep -v '^ *+' conftest.er1 >conftest.err
22576   rm -f conftest.er1
22577   cat conftest.err >&5
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); } && {
22580          test -z "$ac_c_werror_flag" ||
22581          test ! -s conftest.err
22582        } && test -s conftest.$ac_objext; then
22583   ac_hi=-1 ac_mid=-1
22584   while :; do
22585     cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h.  */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h.  */
22591 $ac_includes_default
22592    typedef long long ac__type_sizeof_;
22593 int
22594 main ()
22595 {
22596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22597 test_array [0] = 0
22598
22599   ;
22600   return 0;
22601 }
22602 _ACEOF
22603 rm -f conftest.$ac_objext
22604 if { (ac_try="$ac_compile"
22605 case "(($ac_try" in
22606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607   *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610   (eval "$ac_compile") 2>conftest.er1
22611   ac_status=$?
22612   grep -v '^ *+' conftest.er1 >conftest.err
22613   rm -f conftest.er1
22614   cat conftest.err >&5
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } && {
22617          test -z "$ac_c_werror_flag" ||
22618          test ! -s conftest.err
22619        } && test -s conftest.$ac_objext; then
22620   ac_lo=$ac_mid; break
22621 else
22622   echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625         ac_hi=`expr '(' $ac_mid ')' - 1`
22626                         if test $ac_mid -le $ac_hi; then
22627                           ac_lo= ac_hi=
22628                           break
22629                         fi
22630                         ac_mid=`expr 2 '*' $ac_mid`
22631 fi
22632
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634   done
22635 else
22636   echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639         ac_lo= ac_hi=
22640 fi
22641
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643 fi
22644
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 # Binary search between lo and hi bounds.
22647 while test "x$ac_lo" != "x$ac_hi"; do
22648   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22649   cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655 $ac_includes_default
22656    typedef long long ac__type_sizeof_;
22657 int
22658 main ()
22659 {
22660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22661 test_array [0] = 0
22662
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest.$ac_objext
22668 if { (ac_try="$ac_compile"
22669 case "(($ac_try" in
22670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671   *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674   (eval "$ac_compile") 2>conftest.er1
22675   ac_status=$?
22676   grep -v '^ *+' conftest.er1 >conftest.err
22677   rm -f conftest.er1
22678   cat conftest.err >&5
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); } && {
22681          test -z "$ac_c_werror_flag" ||
22682          test ! -s conftest.err
22683        } && test -s conftest.$ac_objext; then
22684   ac_hi=$ac_mid
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689         ac_lo=`expr '(' $ac_mid ')' + 1`
22690 fi
22691
22692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693 done
22694 case $ac_lo in
22695 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22696 '') if test "$ac_cv_type_long_long" = yes; then
22697      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22698 See \`config.log' for more details." >&5
22699 echo "$as_me: error: cannot compute sizeof (long long)
22700 See \`config.log' for more details." >&2;}
22701    { (exit 77); exit 77; }; }
22702    else
22703      ac_cv_sizeof_long_long=0
22704    fi ;;
22705 esac
22706 else
22707   cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713 $ac_includes_default
22714    typedef long long ac__type_sizeof_;
22715 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22716 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22717 #include <stdio.h>
22718 #include <stdlib.h>
22719 int
22720 main ()
22721 {
22722
22723   FILE *f = fopen ("conftest.val", "w");
22724   if (! f)
22725     return 1;
22726   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22727     {
22728       long int i = longval ();
22729       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22730         return 1;
22731       fprintf (f, "%ld\n", i);
22732     }
22733   else
22734     {
22735       unsigned long int i = ulongval ();
22736       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22737         return 1;
22738       fprintf (f, "%lu\n", i);
22739     }
22740   return ferror (f) || fclose (f) != 0;
22741
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 rm -f conftest$ac_exeext
22747 if { (ac_try="$ac_link"
22748 case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_link") 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22757   { (case "(($ac_try" in
22758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759   *) ac_try_echo=$ac_try;;
22760 esac
22761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22762   (eval "$ac_try") 2>&5
22763   ac_status=$?
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); }; }; then
22766   ac_cv_sizeof_long_long=`cat conftest.val`
22767 else
22768   echo "$as_me: program exited with status $ac_status" >&5
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22771
22772 ( exit $ac_status )
22773 if test "$ac_cv_type_long_long" = yes; then
22774      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22775 See \`config.log' for more details." >&5
22776 echo "$as_me: error: cannot compute sizeof (long long)
22777 See \`config.log' for more details." >&2;}
22778    { (exit 77); exit 77; }; }
22779    else
22780      ac_cv_sizeof_long_long=0
22781    fi
22782 fi
22783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22784 fi
22785 rm -f conftest.val
22786 fi
22787 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22788 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22789
22790
22791
22792 cat >>confdefs.h <<_ACEOF
22793 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22794 _ACEOF
22795
22796
22797         if test "$ac_cv_sizeof_long_long" != 0; then
22798                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22799         fi
22800     ;;
22801     * )
22802         { echo "$as_me:$LINENO: checking for long long" >&5
22803 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22804 if test "${ac_cv_type_long_long+set}" = set; then
22805   echo $ECHO_N "(cached) $ECHO_C" >&6
22806 else
22807   cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h.  */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h.  */
22813 $ac_includes_default
22814 typedef long long ac__type_new_;
22815 int
22816 main ()
22817 {
22818 if ((ac__type_new_ *) 0)
22819   return 0;
22820 if (sizeof (ac__type_new_))
22821   return 0;
22822   ;
22823   return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830   *) ac_try_echo=$ac_try;;
22831 esac
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833   (eval "$ac_compile") 2>conftest.er1
22834   ac_status=$?
22835   grep -v '^ *+' conftest.er1 >conftest.err
22836   rm -f conftest.er1
22837   cat conftest.err >&5
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } && {
22840          test -z "$ac_c_werror_flag" ||
22841          test ! -s conftest.err
22842        } && test -s conftest.$ac_objext; then
22843   ac_cv_type_long_long=yes
22844 else
22845   echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848         ac_cv_type_long_long=no
22849 fi
22850
22851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 fi
22853 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22854 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22855
22856 # The cast to long int works around a bug in the HP C Compiler
22857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22859 # This bug is HP SR number 8606223364.
22860 { echo "$as_me:$LINENO: checking size of long long" >&5
22861 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22862 if test "${ac_cv_sizeof_long_long+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   if test "$cross_compiling" = yes; then
22866   # Depending upon the size, compute the lo and hi bounds.
22867 cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h.  */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h.  */
22873 $ac_includes_default
22874    typedef long long ac__type_sizeof_;
22875 int
22876 main ()
22877 {
22878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22879 test_array [0] = 0
22880
22881   ;
22882   return 0;
22883 }
22884 _ACEOF
22885 rm -f conftest.$ac_objext
22886 if { (ac_try="$ac_compile"
22887 case "(($ac_try" in
22888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889   *) ac_try_echo=$ac_try;;
22890 esac
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892   (eval "$ac_compile") 2>conftest.er1
22893   ac_status=$?
22894   grep -v '^ *+' conftest.er1 >conftest.err
22895   rm -f conftest.er1
22896   cat conftest.err >&5
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); } && {
22899          test -z "$ac_c_werror_flag" ||
22900          test ! -s conftest.err
22901        } && test -s conftest.$ac_objext; then
22902   ac_lo=0 ac_mid=0
22903   while :; do
22904     cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 $ac_includes_default
22911    typedef long long ac__type_sizeof_;
22912 int
22913 main ()
22914 {
22915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22916 test_array [0] = 0
22917
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext
22923 if { (ac_try="$ac_compile"
22924 case "(($ac_try" in
22925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926   *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929   (eval "$ac_compile") 2>conftest.er1
22930   ac_status=$?
22931   grep -v '^ *+' conftest.er1 >conftest.err
22932   rm -f conftest.er1
22933   cat conftest.err >&5
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); } && {
22936          test -z "$ac_c_werror_flag" ||
22937          test ! -s conftest.err
22938        } && test -s conftest.$ac_objext; then
22939   ac_hi=$ac_mid; break
22940 else
22941   echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944         ac_lo=`expr $ac_mid + 1`
22945                         if test $ac_lo -le $ac_mid; then
22946                           ac_lo= ac_hi=
22947                           break
22948                         fi
22949                         ac_mid=`expr 2 '*' $ac_mid + 1`
22950 fi
22951
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953   done
22954 else
22955   echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958         cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964 $ac_includes_default
22965    typedef long long ac__type_sizeof_;
22966 int
22967 main ()
22968 {
22969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22970 test_array [0] = 0
22971
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_compile") 2>conftest.er1
22984   ac_status=$?
22985   grep -v '^ *+' conftest.er1 >conftest.err
22986   rm -f conftest.er1
22987   cat conftest.err >&5
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } && {
22990          test -z "$ac_c_werror_flag" ||
22991          test ! -s conftest.err
22992        } && test -s conftest.$ac_objext; then
22993   ac_hi=-1 ac_mid=-1
22994   while :; do
22995     cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001 $ac_includes_default
23002    typedef long long ac__type_sizeof_;
23003 int
23004 main ()
23005 {
23006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23007 test_array [0] = 0
23008
23009   ;
23010   return 0;
23011 }
23012 _ACEOF
23013 rm -f conftest.$ac_objext
23014 if { (ac_try="$ac_compile"
23015 case "(($ac_try" in
23016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017   *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020   (eval "$ac_compile") 2>conftest.er1
23021   ac_status=$?
23022   grep -v '^ *+' conftest.er1 >conftest.err
23023   rm -f conftest.er1
23024   cat conftest.err >&5
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } && {
23027          test -z "$ac_c_werror_flag" ||
23028          test ! -s conftest.err
23029        } && test -s conftest.$ac_objext; then
23030   ac_lo=$ac_mid; break
23031 else
23032   echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035         ac_hi=`expr '(' $ac_mid ')' - 1`
23036                         if test $ac_mid -le $ac_hi; then
23037                           ac_lo= ac_hi=
23038                           break
23039                         fi
23040                         ac_mid=`expr 2 '*' $ac_mid`
23041 fi
23042
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044   done
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049         ac_lo= ac_hi=
23050 fi
23051
23052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053 fi
23054
23055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056 # Binary search between lo and hi bounds.
23057 while test "x$ac_lo" != "x$ac_hi"; do
23058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23059   cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h.  */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h.  */
23065 $ac_includes_default
23066    typedef long long ac__type_sizeof_;
23067 int
23068 main ()
23069 {
23070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23071 test_array [0] = 0
23072
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081   *) ac_try_echo=$ac_try;;
23082 esac
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084   (eval "$ac_compile") 2>conftest.er1
23085   ac_status=$?
23086   grep -v '^ *+' conftest.er1 >conftest.err
23087   rm -f conftest.er1
23088   cat conftest.err >&5
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); } && {
23091          test -z "$ac_c_werror_flag" ||
23092          test ! -s conftest.err
23093        } && test -s conftest.$ac_objext; then
23094   ac_hi=$ac_mid
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099         ac_lo=`expr '(' $ac_mid ')' + 1`
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 done
23104 case $ac_lo in
23105 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23106 '') if test "$ac_cv_type_long_long" = yes; then
23107      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23108 See \`config.log' for more details." >&5
23109 echo "$as_me: error: cannot compute sizeof (long long)
23110 See \`config.log' for more details." >&2;}
23111    { (exit 77); exit 77; }; }
23112    else
23113      ac_cv_sizeof_long_long=0
23114    fi ;;
23115 esac
23116 else
23117   cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h.  */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h.  */
23123 $ac_includes_default
23124    typedef long long ac__type_sizeof_;
23125 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23126 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23127 #include <stdio.h>
23128 #include <stdlib.h>
23129 int
23130 main ()
23131 {
23132
23133   FILE *f = fopen ("conftest.val", "w");
23134   if (! f)
23135     return 1;
23136   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23137     {
23138       long int i = longval ();
23139       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23140         return 1;
23141       fprintf (f, "%ld\n", i);
23142     }
23143   else
23144     {
23145       unsigned long int i = ulongval ();
23146       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23147         return 1;
23148       fprintf (f, "%lu\n", i);
23149     }
23150   return ferror (f) || fclose (f) != 0;
23151
23152   ;
23153   return 0;
23154 }
23155 _ACEOF
23156 rm -f conftest$ac_exeext
23157 if { (ac_try="$ac_link"
23158 case "(($ac_try" in
23159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160   *) ac_try_echo=$ac_try;;
23161 esac
23162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163   (eval "$ac_link") 2>&5
23164   ac_status=$?
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23167   { (case "(($ac_try" in
23168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169   *) ac_try_echo=$ac_try;;
23170 esac
23171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172   (eval "$ac_try") 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); }; }; then
23176   ac_cv_sizeof_long_long=`cat conftest.val`
23177 else
23178   echo "$as_me: program exited with status $ac_status" >&5
23179 echo "$as_me: failed program was:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23181
23182 ( exit $ac_status )
23183 if test "$ac_cv_type_long_long" = yes; then
23184      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23185 See \`config.log' for more details." >&5
23186 echo "$as_me: error: cannot compute sizeof (long long)
23187 See \`config.log' for more details." >&2;}
23188    { (exit 77); exit 77; }; }
23189    else
23190      ac_cv_sizeof_long_long=0
23191    fi
23192 fi
23193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23194 fi
23195 rm -f conftest.val
23196 fi
23197 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23198 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23199
23200
23201
23202 cat >>confdefs.h <<_ACEOF
23203 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23204 _ACEOF
23205
23206
23207 esac
23208
23209 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23210 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23211 if test "${ac_cv_type_wchar_t+set}" = set; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214   cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220
23221         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23222         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23223         #  error "fake wchar_t"
23224         #endif
23225         #ifdef HAVE_WCHAR_H
23226         #  ifdef __CYGWIN__
23227         #    include <stddef.h>
23228         #  endif
23229         #  include <wchar.h>
23230         #endif
23231         #ifdef HAVE_STDLIB_H
23232         #  include <stdlib.h>
23233         #endif
23234         #include <stdio.h>
23235
23236
23237
23238 typedef wchar_t ac__type_new_;
23239 int
23240 main ()
23241 {
23242 if ((ac__type_new_ *) 0)
23243   return 0;
23244 if (sizeof (ac__type_new_))
23245   return 0;
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (ac_try="$ac_compile"
23252 case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_compile") 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } && {
23264          test -z "$ac_c_werror_flag" ||
23265          test ! -s conftest.err
23266        } && test -s conftest.$ac_objext; then
23267   ac_cv_type_wchar_t=yes
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272         ac_cv_type_wchar_t=no
23273 fi
23274
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23276 fi
23277 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23278 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23279
23280 # The cast to long int works around a bug in the HP C Compiler
23281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23283 # This bug is HP SR number 8606223364.
23284 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23285 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23286 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23287   echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289   if test "$cross_compiling" = yes; then
23290   # Depending upon the size, compute the lo and hi bounds.
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297
23298         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23299         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23300         #  error "fake wchar_t"
23301         #endif
23302         #ifdef HAVE_WCHAR_H
23303         #  ifdef __CYGWIN__
23304         #    include <stddef.h>
23305         #  endif
23306         #  include <wchar.h>
23307         #endif
23308         #ifdef HAVE_STDLIB_H
23309         #  include <stdlib.h>
23310         #endif
23311         #include <stdio.h>
23312
23313
23314
23315    typedef wchar_t ac__type_sizeof_;
23316 int
23317 main ()
23318 {
23319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23320 test_array [0] = 0
23321
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330   *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333   (eval "$ac_compile") 2>conftest.er1
23334   ac_status=$?
23335   grep -v '^ *+' conftest.er1 >conftest.err
23336   rm -f conftest.er1
23337   cat conftest.err >&5
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); } && {
23340          test -z "$ac_c_werror_flag" ||
23341          test ! -s conftest.err
23342        } && test -s conftest.$ac_objext; then
23343   ac_lo=0 ac_mid=0
23344   while :; do
23345     cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351
23352         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23353         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23354         #  error "fake wchar_t"
23355         #endif
23356         #ifdef HAVE_WCHAR_H
23357         #  ifdef __CYGWIN__
23358         #    include <stddef.h>
23359         #  endif
23360         #  include <wchar.h>
23361         #endif
23362         #ifdef HAVE_STDLIB_H
23363         #  include <stdlib.h>
23364         #endif
23365         #include <stdio.h>
23366
23367
23368
23369    typedef wchar_t ac__type_sizeof_;
23370 int
23371 main ()
23372 {
23373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23374 test_array [0] = 0
23375
23376   ;
23377   return 0;
23378 }
23379 _ACEOF
23380 rm -f conftest.$ac_objext
23381 if { (ac_try="$ac_compile"
23382 case "(($ac_try" in
23383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384   *) ac_try_echo=$ac_try;;
23385 esac
23386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23387   (eval "$ac_compile") 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
23391   cat conftest.err >&5
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); } && {
23394          test -z "$ac_c_werror_flag" ||
23395          test ! -s conftest.err
23396        } && test -s conftest.$ac_objext; then
23397   ac_hi=$ac_mid; break
23398 else
23399   echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402         ac_lo=`expr $ac_mid + 1`
23403                         if test $ac_lo -le $ac_mid; then
23404                           ac_lo= ac_hi=
23405                           break
23406                         fi
23407                         ac_mid=`expr 2 '*' $ac_mid + 1`
23408 fi
23409
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411   done
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416         cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422
23423         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23424         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23425         #  error "fake wchar_t"
23426         #endif
23427         #ifdef HAVE_WCHAR_H
23428         #  ifdef __CYGWIN__
23429         #    include <stddef.h>
23430         #  endif
23431         #  include <wchar.h>
23432         #endif
23433         #ifdef HAVE_STDLIB_H
23434         #  include <stdlib.h>
23435         #endif
23436         #include <stdio.h>
23437
23438
23439
23440    typedef wchar_t ac__type_sizeof_;
23441 int
23442 main ()
23443 {
23444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23445 test_array [0] = 0
23446
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458   (eval "$ac_compile") 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } && {
23465          test -z "$ac_c_werror_flag" ||
23466          test ! -s conftest.err
23467        } && test -s conftest.$ac_objext; then
23468   ac_hi=-1 ac_mid=-1
23469   while :; do
23470     cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23478         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23479         #  error "fake wchar_t"
23480         #endif
23481         #ifdef HAVE_WCHAR_H
23482         #  ifdef __CYGWIN__
23483         #    include <stddef.h>
23484         #  endif
23485         #  include <wchar.h>
23486         #endif
23487         #ifdef HAVE_STDLIB_H
23488         #  include <stdlib.h>
23489         #endif
23490         #include <stdio.h>
23491
23492
23493
23494    typedef wchar_t ac__type_sizeof_;
23495 int
23496 main ()
23497 {
23498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23499 test_array [0] = 0
23500
23501   ;
23502   return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509   *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512   (eval "$ac_compile") 2>conftest.er1
23513   ac_status=$?
23514   grep -v '^ *+' conftest.er1 >conftest.err
23515   rm -f conftest.er1
23516   cat conftest.err >&5
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } && {
23519          test -z "$ac_c_werror_flag" ||
23520          test ! -s conftest.err
23521        } && test -s conftest.$ac_objext; then
23522   ac_lo=$ac_mid; break
23523 else
23524   echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23526
23527         ac_hi=`expr '(' $ac_mid ')' - 1`
23528                         if test $ac_mid -le $ac_hi; then
23529                           ac_lo= ac_hi=
23530                           break
23531                         fi
23532                         ac_mid=`expr 2 '*' $ac_mid`
23533 fi
23534
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536   done
23537 else
23538   echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23540
23541         ac_lo= ac_hi=
23542 fi
23543
23544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 fi
23546
23547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548 # Binary search between lo and hi bounds.
23549 while test "x$ac_lo" != "x$ac_hi"; do
23550   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23551   cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h.  */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h.  */
23557
23558         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23559         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23560         #  error "fake wchar_t"
23561         #endif
23562         #ifdef HAVE_WCHAR_H
23563         #  ifdef __CYGWIN__
23564         #    include <stddef.h>
23565         #  endif
23566         #  include <wchar.h>
23567         #endif
23568         #ifdef HAVE_STDLIB_H
23569         #  include <stdlib.h>
23570         #endif
23571         #include <stdio.h>
23572
23573
23574
23575    typedef wchar_t ac__type_sizeof_;
23576 int
23577 main ()
23578 {
23579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23580 test_array [0] = 0
23581
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (ac_try="$ac_compile"
23588 case "(($ac_try" in
23589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590   *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593   (eval "$ac_compile") 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } && {
23600          test -z "$ac_c_werror_flag" ||
23601          test ! -s conftest.err
23602        } && test -s conftest.$ac_objext; then
23603   ac_hi=$ac_mid
23604 else
23605   echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23607
23608         ac_lo=`expr '(' $ac_mid ')' + 1`
23609 fi
23610
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 done
23613 case $ac_lo in
23614 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23615 '') if test "$ac_cv_type_wchar_t" = yes; then
23616      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23617 See \`config.log' for more details." >&5
23618 echo "$as_me: error: cannot compute sizeof (wchar_t)
23619 See \`config.log' for more details." >&2;}
23620    { (exit 77); exit 77; }; }
23621    else
23622      ac_cv_sizeof_wchar_t=0
23623    fi ;;
23624 esac
23625 else
23626   cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632
23633         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23634         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23635         #  error "fake wchar_t"
23636         #endif
23637         #ifdef HAVE_WCHAR_H
23638         #  ifdef __CYGWIN__
23639         #    include <stddef.h>
23640         #  endif
23641         #  include <wchar.h>
23642         #endif
23643         #ifdef HAVE_STDLIB_H
23644         #  include <stdlib.h>
23645         #endif
23646         #include <stdio.h>
23647
23648
23649
23650    typedef wchar_t ac__type_sizeof_;
23651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23653 #include <stdio.h>
23654 #include <stdlib.h>
23655 int
23656 main ()
23657 {
23658
23659   FILE *f = fopen ("conftest.val", "w");
23660   if (! f)
23661     return 1;
23662   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23663     {
23664       long int i = longval ();
23665       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23666         return 1;
23667       fprintf (f, "%ld\n", i);
23668     }
23669   else
23670     {
23671       unsigned long int i = ulongval ();
23672       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23673         return 1;
23674       fprintf (f, "%lu\n", i);
23675     }
23676   return ferror (f) || fclose (f) != 0;
23677
23678   ;
23679   return 0;
23680 }
23681 _ACEOF
23682 rm -f conftest$ac_exeext
23683 if { (ac_try="$ac_link"
23684 case "(($ac_try" in
23685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686   *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689   (eval "$ac_link") 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23693   { (case "(($ac_try" in
23694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695   *) ac_try_echo=$ac_try;;
23696 esac
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698   (eval "$ac_try") 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; }; then
23702   ac_cv_sizeof_wchar_t=`cat conftest.val`
23703 else
23704   echo "$as_me: program exited with status $ac_status" >&5
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ( exit $ac_status )
23709 if test "$ac_cv_type_wchar_t" = yes; then
23710      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23711 See \`config.log' for more details." >&5
23712 echo "$as_me: error: cannot compute sizeof (wchar_t)
23713 See \`config.log' for more details." >&2;}
23714    { (exit 77); exit 77; }; }
23715    else
23716      ac_cv_sizeof_wchar_t=0
23717    fi
23718 fi
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23720 fi
23721 rm -f conftest.val
23722 fi
23723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23724 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23725
23726
23727
23728 cat >>confdefs.h <<_ACEOF
23729 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23730 _ACEOF
23731
23732
23733 if test "$ac_cv_sizeof_wchar_t" != 0; then
23734     wxUSE_WCHAR_T=yes
23735 else
23736     wxUSE_WCHAR_T=no
23737 fi
23738
23739 { echo "$as_me:$LINENO: checking for va_copy" >&5
23740 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23741 if test "${wx_cv_func_va_copy+set}" = set; then
23742   echo $ECHO_N "(cached) $ECHO_C" >&6
23743 else
23744
23745         ac_ext=cpp
23746 ac_cpp='$CXXCPP $CPPFLAGS'
23747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23750
23751         cat >conftest.$ac_ext <<_ACEOF
23752
23753             #include <stdarg.h>
23754             void foo(char *f, ...)
23755             {
23756                 va_list ap1, ap2;
23757                 va_start(ap1, f);
23758                 va_copy(ap2, ap1);
23759                 va_end(ap2);
23760                 va_end(ap1);
23761             }
23762             int main()
23763             {
23764                 foo("hi", 17);
23765                 return 0;
23766             }
23767 _ACEOF
23768 rm -f conftest.$ac_objext conftest$ac_exeext
23769 if { (ac_try="$ac_link"
23770 case "(($ac_try" in
23771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772   *) ac_try_echo=$ac_try;;
23773 esac
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775   (eval "$ac_link") 2>conftest.er1
23776   ac_status=$?
23777   grep -v '^ *+' conftest.er1 >conftest.err
23778   rm -f conftest.er1
23779   cat conftest.err >&5
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); } && {
23782          test -z "$ac_cxx_werror_flag" ||
23783          test ! -s conftest.err
23784        } && test -s conftest$ac_exeext &&
23785        $as_test_x conftest$ac_exeext; then
23786   wx_cv_func_va_copy=yes
23787 else
23788   echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23790
23791         wx_cv_func_va_copy=no
23792
23793 fi
23794
23795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23796       conftest$ac_exeext conftest.$ac_ext
23797         ac_ext=c
23798 ac_cpp='$CPP $CPPFLAGS'
23799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23802
23803
23804
23805 fi
23806 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23807 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23808
23809 if test $wx_cv_func_va_copy = "yes"; then
23810     cat >>confdefs.h <<\_ACEOF
23811 #define HAVE_VA_COPY 1
23812 _ACEOF
23813
23814 else
23815         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23816 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23817 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23818   echo $ECHO_N "(cached) $ECHO_C" >&6
23819 else
23820
23821             if test "$cross_compiling" = yes; then
23822                   wx_cv_type_va_list_lvalue=yes
23823
23824 else
23825   cat >conftest.$ac_ext <<_ACEOF
23826
23827                 #include <stdarg.h>
23828                 int foo(char *f, ...)
23829                 {
23830                     va_list ap1, ap2;
23831                     va_start(ap1, f);
23832                     ap2 = ap1;
23833                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23834                         return 1;
23835                     va_end(ap2);
23836                     va_end(ap1);
23837                     return 0;
23838                 }
23839                 int main()
23840                 {
23841                     return foo("hi", 17);
23842                 }
23843 _ACEOF
23844 rm -f conftest$ac_exeext
23845 if { (ac_try="$ac_link"
23846 case "(($ac_try" in
23847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848   *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851   (eval "$ac_link") 2>&5
23852   ac_status=$?
23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23855   { (case "(($ac_try" in
23856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857   *) ac_try_echo=$ac_try;;
23858 esac
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860   (eval "$ac_try") 2>&5
23861   ac_status=$?
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); }; }; then
23864   wx_cv_type_va_list_lvalue=yes
23865 else
23866   echo "$as_me: program exited with status $ac_status" >&5
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 ( exit $ac_status )
23871 wx_cv_type_va_list_lvalue=no
23872 fi
23873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23874 fi
23875
23876
23877
23878
23879 fi
23880 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23881 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23882
23883     if test $wx_cv_type_va_list_lvalue != "yes"; then
23884                         cat >>confdefs.h <<\_ACEOF
23885 #define VA_LIST_IS_ARRAY 1
23886 _ACEOF
23887
23888     fi
23889 fi
23890
23891 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23892
23893 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23894 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23895 if test "${wx_cv_have_variadic_macros+set}" = set; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898
23899                         ac_ext=cpp
23900 ac_cpp='$CXXCPP $CPPFLAGS'
23901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23904
23905         cat >conftest.$ac_ext <<_ACEOF
23906 /* confdefs.h.  */
23907 _ACEOF
23908 cat confdefs.h >>conftest.$ac_ext
23909 cat >>conftest.$ac_ext <<_ACEOF
23910 /* end confdefs.h.  */
23911
23912                     #include <stdio.h>
23913                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23914
23915 int
23916 main ()
23917 {
23918
23919                     test("%s %d %p", "test", 1, 0);
23920
23921
23922   ;
23923   return 0;
23924 }
23925 _ACEOF
23926 rm -f conftest.$ac_objext
23927 if { (ac_try="$ac_compile"
23928 case "(($ac_try" in
23929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23930   *) ac_try_echo=$ac_try;;
23931 esac
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933   (eval "$ac_compile") 2>conftest.er1
23934   ac_status=$?
23935   grep -v '^ *+' conftest.er1 >conftest.err
23936   rm -f conftest.er1
23937   cat conftest.err >&5
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); } && {
23940          test -z "$ac_cxx_werror_flag" ||
23941          test ! -s conftest.err
23942        } && test -s conftest.$ac_objext; then
23943   wx_cv_have_variadic_macros=yes
23944 else
23945   echo "$as_me: failed program was:" >&5
23946 sed 's/^/| /' conftest.$ac_ext >&5
23947
23948         wx_cv_have_variadic_macros=no
23949
23950 fi
23951
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953         ac_ext=c
23954 ac_cpp='$CPP $CPPFLAGS'
23955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23958
23959
23960
23961 fi
23962 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23963 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23964
23965 if test $wx_cv_have_variadic_macros = "yes"; then
23966     cat >>confdefs.h <<\_ACEOF
23967 #define HAVE_VARIADIC_MACROS 1
23968 _ACEOF
23969
23970 fi
23971
23972 fi
23973
23974 LARGEFILE_CPPFLAGS=
23975 # Check whether --enable-largefile was given.
23976 if test "${enable_largefile+set}" = set; then
23977   enableval=$enable_largefile;
23978 fi
23979
23980 if test "$enable_largefile" != no; then
23981             wx_largefile=no
23982
23983     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23984 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23985 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988
23989           cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h.  */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h.  */
23995 #define _FILE_OFFSET_BITS 64
23996                           #include <sys/types.h>
23997 int
23998 main ()
23999 {
24000 typedef struct {
24001     unsigned int field: sizeof(off_t) == 8;
24002 } wxlf;
24003
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012   *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015   (eval "$ac_compile") 2>conftest.er1
24016   ac_status=$?
24017   grep -v '^ *+' conftest.er1 >conftest.err
24018   rm -f conftest.er1
24019   cat conftest.err >&5
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && {
24022          test -z "$ac_c_werror_flag" ||
24023          test ! -s conftest.err
24024        } && test -s conftest.$ac_objext; then
24025   ac_cv_sys_file_offset_bits=64
24026 else
24027   echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24029
24030         ac_cv_sys_file_offset_bits=no
24031 fi
24032
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034
24035
24036 fi
24037 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24038 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24039
24040     if test "$ac_cv_sys_file_offset_bits" != no; then
24041         wx_largefile=yes
24042         cat >>confdefs.h <<_ACEOF
24043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24044 _ACEOF
24045
24046     fi
24047
24048     if test "x$wx_largefile" != "xyes"; then
24049
24050     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24051 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24052 if test "${ac_cv_sys_large_files+set}" = set; then
24053   echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055
24056           cat >conftest.$ac_ext <<_ACEOF
24057 /* confdefs.h.  */
24058 _ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h.  */
24062 #define _LARGE_FILES 1
24063                           #include <sys/types.h>
24064 int
24065 main ()
24066 {
24067 typedef struct {
24068     unsigned int field: sizeof(off_t) == 8;
24069 } wxlf;
24070
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 rm -f conftest.$ac_objext
24076 if { (ac_try="$ac_compile"
24077 case "(($ac_try" in
24078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079   *) ac_try_echo=$ac_try;;
24080 esac
24081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24082   (eval "$ac_compile") 2>conftest.er1
24083   ac_status=$?
24084   grep -v '^ *+' conftest.er1 >conftest.err
24085   rm -f conftest.er1
24086   cat conftest.err >&5
24087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088   (exit $ac_status); } && {
24089          test -z "$ac_c_werror_flag" ||
24090          test ! -s conftest.err
24091        } && test -s conftest.$ac_objext; then
24092   ac_cv_sys_large_files=1
24093 else
24094   echo "$as_me: failed program was:" >&5
24095 sed 's/^/| /' conftest.$ac_ext >&5
24096
24097         ac_cv_sys_large_files=no
24098 fi
24099
24100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24101
24102
24103 fi
24104 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24105 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24106
24107     if test "$ac_cv_sys_large_files" != no; then
24108         wx_largefile=yes
24109         cat >>confdefs.h <<_ACEOF
24110 #define _LARGE_FILES $ac_cv_sys_large_files
24111 _ACEOF
24112
24113     fi
24114
24115     fi
24116
24117     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24118 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24119     if test "x$wx_largefile" = "xyes"; then
24120         cat >>confdefs.h <<\_ACEOF
24121 #define HAVE_LARGEFILE_SUPPORT 1
24122 _ACEOF
24123
24124     fi
24125     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24126 echo "${ECHO_T}$wx_largefile" >&6; }
24127 fi
24128
24129 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24130     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24131 elif test "$ac_cv_sys_large_files" = 1; then
24132     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24133 fi
24134
24135 if test -n "$LARGEFILE_CPPFLAGS"; then
24136     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24137
24138                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24139         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24140 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24141 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24142   echo $ECHO_N "(cached) $ECHO_C" >&6
24143 else
24144
24145                 ac_ext=cpp
24146 ac_cpp='$CXXCPP $CPPFLAGS'
24147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24150
24151                 cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157
24158 int
24159 main ()
24160 {
24161
24162                         #ifndef __STDC_EXT__
24163                             choke me
24164                         #endif
24165
24166   ;
24167   return 0;
24168 }
24169 _ACEOF
24170 rm -f conftest.$ac_objext
24171 if { (ac_try="$ac_compile"
24172 case "(($ac_try" in
24173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174   *) ac_try_echo=$ac_try;;
24175 esac
24176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24177   (eval "$ac_compile") 2>conftest.er1
24178   ac_status=$?
24179   grep -v '^ *+' conftest.er1 >conftest.err
24180   rm -f conftest.er1
24181   cat conftest.err >&5
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); } && {
24184          test -z "$ac_cxx_werror_flag" ||
24185          test ! -s conftest.err
24186        } && test -s conftest.$ac_objext; then
24187   wx_cv_STDC_EXT_required=no
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192         wx_cv_STDC_EXT_required=yes
24193
24194 fi
24195
24196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24197                 ac_ext=c
24198 ac_cpp='$CPP $CPPFLAGS'
24199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24202
24203
24204
24205 fi
24206 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24207 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24208         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24209             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24210         fi
24211     fi
24212 fi
24213
24214 ac_ext=cpp
24215 ac_cpp='$CXXCPP $CPPFLAGS'
24216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24219
24220 old_CPPFLAGS="$CPPFLAGS"
24221 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24222 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24223 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24224 if test "${ac_cv_sys_largefile_source+set}" = set; then
24225   echo $ECHO_N "(cached) $ECHO_C" >&6
24226 else
24227   while :; do
24228   cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234 #include <sys/types.h> /* for off_t */
24235      #include <stdio.h>
24236 int
24237 main ()
24238 {
24239 int (*fp) (FILE *, off_t, int) = fseeko;
24240      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext conftest$ac_exeext
24246 if { (ac_try="$ac_link"
24247 case "(($ac_try" in
24248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249   *) ac_try_echo=$ac_try;;
24250 esac
24251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24252   (eval "$ac_link") 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } && {
24259          test -z "$ac_cxx_werror_flag" ||
24260          test ! -s conftest.err
24261        } && test -s conftest$ac_exeext &&
24262        $as_test_x conftest$ac_exeext; then
24263   ac_cv_sys_largefile_source=no; break
24264 else
24265   echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24267
24268
24269 fi
24270
24271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24272       conftest$ac_exeext conftest.$ac_ext
24273   cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h.  */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h.  */
24279 #define _LARGEFILE_SOURCE 1
24280 #include <sys/types.h> /* for off_t */
24281      #include <stdio.h>
24282 int
24283 main ()
24284 {
24285 int (*fp) (FILE *, off_t, int) = fseeko;
24286      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24287   ;
24288   return 0;
24289 }
24290 _ACEOF
24291 rm -f conftest.$ac_objext conftest$ac_exeext
24292 if { (ac_try="$ac_link"
24293 case "(($ac_try" in
24294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295   *) ac_try_echo=$ac_try;;
24296 esac
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298   (eval "$ac_link") 2>conftest.er1
24299   ac_status=$?
24300   grep -v '^ *+' conftest.er1 >conftest.err
24301   rm -f conftest.er1
24302   cat conftest.err >&5
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); } && {
24305          test -z "$ac_cxx_werror_flag" ||
24306          test ! -s conftest.err
24307        } && test -s conftest$ac_exeext &&
24308        $as_test_x conftest$ac_exeext; then
24309   ac_cv_sys_largefile_source=1; break
24310 else
24311   echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24313
24314
24315 fi
24316
24317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24318       conftest$ac_exeext conftest.$ac_ext
24319   ac_cv_sys_largefile_source=unknown
24320   break
24321 done
24322 fi
24323 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24324 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24325 case $ac_cv_sys_largefile_source in #(
24326   no | unknown) ;;
24327   *)
24328 cat >>confdefs.h <<_ACEOF
24329 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24330 _ACEOF
24331 ;;
24332 esac
24333 rm -f conftest*
24334
24335 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24336 # in glibc 2.1.3, but that breaks too many other things.
24337 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24338 if test $ac_cv_sys_largefile_source != unknown; then
24339
24340 cat >>confdefs.h <<\_ACEOF
24341 #define HAVE_FSEEKO 1
24342 _ACEOF
24343
24344 fi
24345
24346 CPPFLAGS="$old_CPPFLAGS"
24347 ac_ext=c
24348 ac_cpp='$CPP $CPPFLAGS'
24349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24352
24353 if test "$ac_cv_sys_largefile_source" != no; then
24354     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24355 fi
24356
24357 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24359 if test "${ac_cv_c_bigendian+set}" = set; then
24360   echo $ECHO_N "(cached) $ECHO_C" >&6
24361 else
24362   ac_cv_c_bigendian=unknown
24363 # See if sys/param.h defines the BYTE_ORDER macro.
24364 cat >conftest.$ac_ext <<_ACEOF
24365 /* confdefs.h.  */
24366 _ACEOF
24367 cat confdefs.h >>conftest.$ac_ext
24368 cat >>conftest.$ac_ext <<_ACEOF
24369 /* end confdefs.h.  */
24370 #include <sys/types.h>
24371 #include <sys/param.h>
24372 int
24373 main ()
24374 {
24375
24376 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24377  bogus endian macros
24378 #endif
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390   (eval "$ac_compile") 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && {
24397          test -z "$ac_c_werror_flag" ||
24398          test ! -s conftest.err
24399        } && test -s conftest.$ac_objext; then
24400   # It does; now see whether it defined to BIG_ENDIAN or not.
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407 #include <sys/types.h>
24408 #include <sys/param.h>
24409 int
24410 main ()
24411 {
24412
24413 #if BYTE_ORDER != BIG_ENDIAN
24414  not big endian
24415 #endif
24416   ;
24417   return 0;
24418 }
24419 _ACEOF
24420 rm -f conftest.$ac_objext
24421 if { (ac_try="$ac_compile"
24422 case "(($ac_try" in
24423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424   *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427   (eval "$ac_compile") 2>conftest.er1
24428   ac_status=$?
24429   grep -v '^ *+' conftest.er1 >conftest.err
24430   rm -f conftest.er1
24431   cat conftest.err >&5
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } && {
24434          test -z "$ac_c_werror_flag" ||
24435          test ! -s conftest.err
24436        } && test -s conftest.$ac_objext; then
24437   ac_cv_c_bigendian=yes
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442         ac_cv_c_bigendian=no
24443 fi
24444
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446 else
24447   echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24449
24450
24451 fi
24452
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24454 if test $ac_cv_c_bigendian = unknown; then
24455 if test "$cross_compiling" = yes; then
24456   ac_cv_c_bigendian=unknown
24457 else
24458   cat >conftest.$ac_ext <<_ACEOF
24459 /* confdefs.h.  */
24460 _ACEOF
24461 cat confdefs.h >>conftest.$ac_ext
24462 cat >>conftest.$ac_ext <<_ACEOF
24463 /* end confdefs.h.  */
24464 main () {
24465   /* Are we little or big endian?  From Harbison&Steele.  */
24466   union
24467   {
24468     long l;
24469     char c[sizeof (long)];
24470   } u;
24471   u.l = 1;
24472   exit (u.c[sizeof (long) - 1] == 1);
24473 }
24474 _ACEOF
24475 rm -f conftest$ac_exeext
24476 if { (ac_try="$ac_link"
24477 case "(($ac_try" in
24478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479   *) ac_try_echo=$ac_try;;
24480 esac
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482   (eval "$ac_link") 2>&5
24483   ac_status=$?
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24486   { (case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491   (eval "$ac_try") 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); }; }; then
24495   ac_cv_c_bigendian=no
24496 else
24497   echo "$as_me: program exited with status $ac_status" >&5
24498 echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501 ( exit $ac_status )
24502 ac_cv_c_bigendian=yes
24503 fi
24504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24505 fi
24506
24507
24508 fi
24509 fi
24510 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24511 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24512 if test $ac_cv_c_bigendian = unknown; then
24513   { 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
24514 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;}
24515 fi
24516 if test $ac_cv_c_bigendian = yes; then
24517   cat >>confdefs.h <<\_ACEOF
24518 #define WORDS_BIGENDIAN 1
24519 _ACEOF
24520
24521 fi
24522
24523
24524
24525
24526     ac_ext=cpp
24527 ac_cpp='$CXXCPP $CPPFLAGS'
24528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24531
24532
24533
24534 for ac_header in iostream
24535 do
24536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24540   echo $ECHO_N "(cached) $ECHO_C" >&6
24541 else
24542   cat >conftest.$ac_ext <<_ACEOF
24543 /* confdefs.h.  */
24544 _ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h.  */
24548
24549
24550 #include <$ac_header>
24551 _ACEOF
24552 rm -f conftest.$ac_objext
24553 if { (ac_try="$ac_compile"
24554 case "(($ac_try" in
24555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556   *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559   (eval "$ac_compile") 2>conftest.er1
24560   ac_status=$?
24561   grep -v '^ *+' conftest.er1 >conftest.err
24562   rm -f conftest.er1
24563   cat conftest.err >&5
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); } && {
24566          test -z "$ac_cxx_werror_flag" ||
24567          test ! -s conftest.err
24568        } && test -s conftest.$ac_objext; then
24569   eval "$as_ac_Header=yes"
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24573
24574         eval "$as_ac_Header=no"
24575 fi
24576
24577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578 fi
24579 ac_res=`eval echo '${'$as_ac_Header'}'`
24580                { echo "$as_me:$LINENO: result: $ac_res" >&5
24581 echo "${ECHO_T}$ac_res" >&6; }
24582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24583   cat >>confdefs.h <<_ACEOF
24584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24585 _ACEOF
24586
24587 fi
24588
24589 done
24590
24591
24592     if test "$ac_cv_header_iostream" = "yes" ; then
24593       :
24594     else
24595       cat >>confdefs.h <<\_ACEOF
24596 #define wxUSE_IOSTREAMH 1
24597 _ACEOF
24598
24599     fi
24600
24601     ac_ext=c
24602 ac_cpp='$CPP $CPPFLAGS'
24603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24606
24607
24608
24609
24610   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24611 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24612 if test "${wx_cv_explicit+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615
24616
24617     ac_ext=cpp
24618 ac_cpp='$CXXCPP $CPPFLAGS'
24619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24622
24623
24624             cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h.  */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h.  */
24630
24631         class Foo { public: explicit Foo(int) {} };
24632
24633 int
24634 main ()
24635 {
24636
24637         return 0;
24638
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 rm -f conftest.$ac_objext
24644 if { (ac_try="$ac_compile"
24645 case "(($ac_try" in
24646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647   *) ac_try_echo=$ac_try;;
24648 esac
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650   (eval "$ac_compile") 2>conftest.er1
24651   ac_status=$?
24652   grep -v '^ *+' conftest.er1 >conftest.err
24653   rm -f conftest.er1
24654   cat conftest.err >&5
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); } && {
24657          test -z "$ac_cxx_werror_flag" ||
24658          test ! -s conftest.err
24659        } && test -s conftest.$ac_objext; then
24660
24661         cat >conftest.$ac_ext <<_ACEOF
24662 /* confdefs.h.  */
24663 _ACEOF
24664 cat confdefs.h >>conftest.$ac_ext
24665 cat >>conftest.$ac_ext <<_ACEOF
24666 /* end confdefs.h.  */
24667
24668                 class Foo { public: explicit Foo(int) {} };
24669                 static void TakeFoo(const Foo& foo) { }
24670
24671 int
24672 main ()
24673 {
24674
24675                 TakeFoo(17);
24676                 return 0;
24677
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 rm -f conftest.$ac_objext
24683 if { (ac_try="$ac_compile"
24684 case "(($ac_try" in
24685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686   *) ac_try_echo=$ac_try;;
24687 esac
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689   (eval "$ac_compile") 2>conftest.er1
24690   ac_status=$?
24691   grep -v '^ *+' conftest.er1 >conftest.err
24692   rm -f conftest.er1
24693   cat conftest.err >&5
24694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695   (exit $ac_status); } && {
24696          test -z "$ac_cxx_werror_flag" ||
24697          test ! -s conftest.err
24698        } && test -s conftest.$ac_objext; then
24699   wx_cv_explicit=no
24700 else
24701   echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704         wx_cv_explicit=yes
24705
24706 fi
24707
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709
24710 else
24711   echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24713
24714         wx_cv_explicit=no
24715
24716 fi
24717
24718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719
24720     ac_ext=c
24721 ac_cpp='$CPP $CPPFLAGS'
24722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24725
24726
24727 fi
24728 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24729 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24730
24731   if test "$wx_cv_explicit" = "yes"; then
24732     cat >>confdefs.h <<\_ACEOF
24733 #define HAVE_EXPLICIT 1
24734 _ACEOF
24735
24736   fi
24737
24738
24739 if test "x$SUNCXX" = xyes; then
24740     CXXFLAGS="-features=tmplife $CXXFLAGS"
24741 fi
24742
24743 if test "x$SUNCC" = xyes; then
24744     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24745 fi
24746
24747 if test "x$SGICC" = "xyes"; then
24748     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
24749 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
24750 if test "${wx_cv_prog_sgicc744+set}" = set; then
24751   echo $ECHO_N "(cached) $ECHO_C" >&6
24752 else
24753
24754             cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760
24761 int
24762 main ()
24763 {
24764
24765                     #if _SGI_COMPILER_VERSION >= 744
24766                     chock me: mipsPro is 7.4.4 or later
24767                     #endif
24768
24769   ;
24770   return 0;
24771 }
24772 _ACEOF
24773 rm -f conftest.$ac_objext
24774 if { (ac_try="$ac_compile"
24775 case "(($ac_try" in
24776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777   *) ac_try_echo=$ac_try;;
24778 esac
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780   (eval "$ac_compile") 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } && {
24787          test -z "$ac_c_werror_flag" ||
24788          test ! -s conftest.err
24789        } && test -s conftest.$ac_objext; then
24790   wx_cv_prog_sgicc744=no
24791 else
24792   echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795         wx_cv_prog_sgicc744=yes
24796
24797 fi
24798
24799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800
24801
24802 fi
24803 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
24804 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
24805
24806     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
24807         CFLAGS="-woff 3970 $CFLAGS"
24808     fi
24809 fi
24810 if test "x$SGICXX" = "xyes"; then
24811     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
24812 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
24813 if test "${wx_cv_prog_sgicxx744+set}" = set; then
24814   echo $ECHO_N "(cached) $ECHO_C" >&6
24815 else
24816
24817             ac_ext=cpp
24818 ac_cpp='$CXXCPP $CPPFLAGS'
24819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24822
24823             cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830 int
24831 main ()
24832 {
24833
24834                     #if _SGI_COMPILER_VERSION >= 744
24835                     chock me: mipsPro is 7.4.4 or later
24836                     #endif
24837
24838   ;
24839   return 0;
24840 }
24841 _ACEOF
24842 rm -f conftest.$ac_objext
24843 if { (ac_try="$ac_compile"
24844 case "(($ac_try" in
24845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846   *) ac_try_echo=$ac_try;;
24847 esac
24848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24849   (eval "$ac_compile") 2>conftest.er1
24850   ac_status=$?
24851   grep -v '^ *+' conftest.er1 >conftest.err
24852   rm -f conftest.er1
24853   cat conftest.err >&5
24854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855   (exit $ac_status); } && {
24856          test -z "$ac_cxx_werror_flag" ||
24857          test ! -s conftest.err
24858        } && test -s conftest.$ac_objext; then
24859   wx_cv_prog_sgicxx744=no
24860 else
24861   echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864         wx_cv_prog_sgicxx744=yes
24865
24866 fi
24867
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869             ac_ext=c
24870 ac_cpp='$CPP $CPPFLAGS'
24871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24874
24875
24876
24877 fi
24878 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
24879 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
24880
24881     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
24882         CXXFLAGS="-woff 3970 $CXXFLAGS"
24883     fi
24884 fi
24885
24886 if test "x$HPCC" = "xyes"; then
24887                     CFLAGS="+W 2011,2450 $CFLAGS"
24888 fi
24889 if test "x$HPCXX" = "xyes"; then
24890                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24891 fi
24892
24893 if test "x$COMPAQCXX" = "xyes"; then
24894                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24895 fi
24896
24897 ac_ext=cpp
24898 ac_cpp='$CXXCPP $CPPFLAGS'
24899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24902
24903
24904 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24905     if test "$wxUSE_UNICODE" = "yes"; then
24906         std_string="std::wstring"
24907         char_type="wchar_t"
24908     else
24909         std_string="std::string"
24910         char_type="char"
24911     fi
24912
24913         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24914 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24915 if test "${wx_cv_class_stdstring+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918
24919             cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h.  */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h.  */
24925 #include <string>
24926 int
24927 main ()
24928 {
24929 $std_string foo;
24930   ;
24931   return 0;
24932 }
24933 _ACEOF
24934 rm -f conftest.$ac_objext
24935 if { (ac_try="$ac_compile"
24936 case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941   (eval "$ac_compile") 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } && {
24948          test -z "$ac_cxx_werror_flag" ||
24949          test ! -s conftest.err
24950        } && test -s conftest.$ac_objext; then
24951   wx_cv_class_stdstring=yes
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956         wx_cv_class_stdstring=no
24957
24958 fi
24959
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24961
24962
24963 fi
24964 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24965 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24966
24967     if test "$wx_cv_class_stdstring" = yes; then
24968         if test "$wxUSE_UNICODE" = "yes"; then
24969             cat >>confdefs.h <<\_ACEOF
24970 #define HAVE_STD_WSTRING 1
24971 _ACEOF
24972
24973         fi
24974                     else
24975         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24976 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24977 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980
24981                 cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987
24988                     #ifdef HAVE_WCHAR_H
24989                     #  ifdef __CYGWIN__
24990                     #    include <stddef.h>
24991                     #  endif
24992                     #  include <wchar.h>
24993                     #endif
24994                     #ifdef HAVE_STDLIB_H
24995                     #  include <stdlib.h>
24996                     #endif
24997                     #include <stdio.h>
24998                     #include <string>
24999
25000 int
25001 main ()
25002 {
25003 std::basic_string<$char_type> foo;
25004                      const $char_type* dummy = foo.c_str();
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_compile") 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } && {
25023          test -z "$ac_cxx_werror_flag" ||
25024          test ! -s conftest.err
25025        } && test -s conftest.$ac_objext; then
25026   wx_cv_class_stdbasicstring=yes
25027 else
25028   echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031         wx_cv_class_stdbasicstring=no
25032
25033 fi
25034
25035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036
25037
25038 fi
25039 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25040 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25041
25042         if test "$wx_cv_class_stdbasicstring" != yes; then
25043             if test "$wxUSE_STL" = "yes"; then
25044                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25045 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25046    { (exit 1); exit 1; }; }
25047             elif test "$wxUSE_STD_STRING" = "yes"; then
25048                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25049 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25050    { (exit 1); exit 1; }; }
25051             else
25052                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25053 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25054                 wxUSE_STD_STRING=no
25055             fi
25056         fi
25057     fi
25058 fi
25059
25060 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25061     { echo "$as_me:$LINENO: checking for std::istream" >&5
25062 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25063 if test "${ac_cv_type_std__istream+set}" = set; then
25064   echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066   cat >conftest.$ac_ext <<_ACEOF
25067 /* confdefs.h.  */
25068 _ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h.  */
25072 #include <iostream>
25073
25074 typedef std::istream ac__type_new_;
25075 int
25076 main ()
25077 {
25078 if ((ac__type_new_ *) 0)
25079   return 0;
25080 if (sizeof (ac__type_new_))
25081   return 0;
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext
25087 if { (ac_try="$ac_compile"
25088 case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093   (eval "$ac_compile") 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } && {
25100          test -z "$ac_cxx_werror_flag" ||
25101          test ! -s conftest.err
25102        } && test -s conftest.$ac_objext; then
25103   ac_cv_type_std__istream=yes
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108         ac_cv_type_std__istream=no
25109 fi
25110
25111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25112 fi
25113 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25114 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25115 if test $ac_cv_type_std__istream = yes; then
25116
25117 cat >>confdefs.h <<_ACEOF
25118 #define HAVE_STD__ISTREAM 1
25119 _ACEOF
25120
25121
25122 else
25123   wxUSE_STD_IOSTREAM=no
25124 fi
25125 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25126 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25127 if test "${ac_cv_type_std__ostream+set}" = set; then
25128   echo $ECHO_N "(cached) $ECHO_C" >&6
25129 else
25130   cat >conftest.$ac_ext <<_ACEOF
25131 /* confdefs.h.  */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h.  */
25136 #include <iostream>
25137
25138 typedef std::ostream ac__type_new_;
25139 int
25140 main ()
25141 {
25142 if ((ac__type_new_ *) 0)
25143   return 0;
25144 if (sizeof (ac__type_new_))
25145   return 0;
25146   ;
25147   return 0;
25148 }
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154   *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157   (eval "$ac_compile") 2>conftest.er1
25158   ac_status=$?
25159   grep -v '^ *+' conftest.er1 >conftest.err
25160   rm -f conftest.er1
25161   cat conftest.err >&5
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } && {
25164          test -z "$ac_cxx_werror_flag" ||
25165          test ! -s conftest.err
25166        } && test -s conftest.$ac_objext; then
25167   ac_cv_type_std__ostream=yes
25168 else
25169   echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172         ac_cv_type_std__ostream=no
25173 fi
25174
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 fi
25177 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25178 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25179 if test $ac_cv_type_std__ostream = yes; then
25180
25181 cat >>confdefs.h <<_ACEOF
25182 #define HAVE_STD__OSTREAM 1
25183 _ACEOF
25184
25185
25186 else
25187   wxUSE_STD_IOSTREAM=no
25188 fi
25189
25190
25191     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25192         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25193             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25194 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25195    { (exit 1); exit 1; }; }
25196         else
25197             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25198 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25199         fi
25200     fi
25201 fi
25202
25203 if test "$wxUSE_STL" = "yes"; then
25204         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25205 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25206 if test "${wx_cv_lib_stl+set}" = set; then
25207   echo $ECHO_N "(cached) $ECHO_C" >&6
25208 else
25209   cat >conftest.$ac_ext <<_ACEOF
25210 /* confdefs.h.  */
25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h.  */
25215 #include <string>
25216             #include <functional>
25217             #include <algorithm>
25218             #include <vector>
25219             #include <list>
25220 int
25221 main ()
25222 {
25223 std::vector<int> moo;
25224              std::list<int> foo;
25225              std::vector<int>::iterator it =
25226                  std::find_if(moo.begin(), moo.end(),
25227                               std::bind2nd(std::less<int>(), 3));
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest.$ac_objext
25233 if { (ac_try="$ac_compile"
25234 case "(($ac_try" in
25235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236   *) ac_try_echo=$ac_try;;
25237 esac
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239   (eval "$ac_compile") 2>conftest.er1
25240   ac_status=$?
25241   grep -v '^ *+' conftest.er1 >conftest.err
25242   rm -f conftest.er1
25243   cat conftest.err >&5
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); } && {
25246          test -z "$ac_cxx_werror_flag" ||
25247          test ! -s conftest.err
25248        } && test -s conftest.$ac_objext; then
25249   wx_cv_lib_stl=yes
25250 else
25251   echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25253
25254         wx_cv_lib_stl=no
25255
25256 fi
25257
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259
25260 fi
25261 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25262 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25263
25264     if test "$wx_cv_lib_stl" != yes; then
25265          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25266 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25267    { (exit 1); exit 1; }; }
25268     fi
25269
25270         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25271 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25272 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25273   echo $ECHO_N "(cached) $ECHO_C" >&6
25274 else
25275   cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281 #include <string>
25282 int
25283 main ()
25284 {
25285 std::string foo, bar;
25286             foo.compare(bar);
25287             foo.compare(1, 1, bar);
25288             foo.compare(1, 1, bar, 1, 1);
25289             foo.compare("");
25290             foo.compare(1, 1, "");
25291             foo.compare(1, 1, "", 2);
25292   ;
25293   return 0;
25294 }
25295 _ACEOF
25296 rm -f conftest.$ac_objext
25297 if { (ac_try="$ac_compile"
25298 case "(($ac_try" in
25299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300   *) ac_try_echo=$ac_try;;
25301 esac
25302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25303   (eval "$ac_compile") 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } && {
25310          test -z "$ac_cxx_werror_flag" ||
25311          test ! -s conftest.err
25312        } && test -s conftest.$ac_objext; then
25313   wx_cv_func_stdstring_compare=yes
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318         wx_cv_func_stdstring_compare=no
25319
25320 fi
25321
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323
25324 fi
25325 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25326 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25327
25328     if test "$wx_cv_func_stdstring_compare" = yes; then
25329         cat >>confdefs.h <<\_ACEOF
25330 #define HAVE_STD_STRING_COMPARE 1
25331 _ACEOF
25332
25333     fi
25334
25335     if test "$wx_cv_class_gnuhashmapset" = yes; then
25336          cat >>confdefs.h <<\_ACEOF
25337 #define HAVE_EXT_HASH_MAP 1
25338 _ACEOF
25339
25340          cat >>confdefs.h <<\_ACEOF
25341 #define HAVE_GNU_CXX_HASH_MAP 1
25342 _ACEOF
25343
25344     fi
25345
25346     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25347 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25348 if test "${ac_cv_header_unordered_map+set}" = set; then
25349   echo $ECHO_N "(cached) $ECHO_C" >&6
25350 else
25351   cat >conftest.$ac_ext <<_ACEOF
25352 /* confdefs.h.  */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h.  */
25357
25358
25359
25360 #include <unordered_map>
25361 _ACEOF
25362 rm -f conftest.$ac_objext
25363 if { (ac_try="$ac_compile"
25364 case "(($ac_try" in
25365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366   *) ac_try_echo=$ac_try;;
25367 esac
25368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25369   (eval "$ac_compile") 2>conftest.er1
25370   ac_status=$?
25371   grep -v '^ *+' conftest.er1 >conftest.err
25372   rm -f conftest.er1
25373   cat conftest.err >&5
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } && {
25376          test -z "$ac_cxx_werror_flag" ||
25377          test ! -s conftest.err
25378        } && test -s conftest.$ac_objext; then
25379   ac_cv_header_unordered_map=yes
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384         ac_cv_header_unordered_map=no
25385 fi
25386
25387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388 fi
25389 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25390 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25391 if test $ac_cv_header_unordered_map = yes; then
25392   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25393 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25394 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25395   echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397   cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 #include <unordered_map>
25404                 #include <unordered_set>
25405 int
25406 main ()
25407 {
25408 std::unordered_map<double*, char*> test1;
25409                  std::unordered_set<char*> test2;
25410   ;
25411   return 0;
25412 }
25413 _ACEOF
25414 rm -f conftest.$ac_objext
25415 if { (ac_try="$ac_compile"
25416 case "(($ac_try" in
25417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418   *) ac_try_echo=$ac_try;;
25419 esac
25420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25421   (eval "$ac_compile") 2>conftest.er1
25422   ac_status=$?
25423   grep -v '^ *+' conftest.er1 >conftest.err
25424   rm -f conftest.er1
25425   cat conftest.err >&5
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); } && {
25428          test -z "$ac_cxx_werror_flag" ||
25429          test ! -s conftest.err
25430        } && test -s conftest.$ac_objext; then
25431   wx_cv_class_stdunorderedmapset=yes
25432 else
25433   echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436         wx_cv_class_stdunorderedmapset=no
25437 fi
25438
25439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25440
25441
25442 fi
25443 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25444 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
25445 fi
25446
25447
25448
25449     if test "$wx_cv_class_stdunorderedmapset" = yes; then
25450          cat >>confdefs.h <<\_ACEOF
25451 #define HAVE_STD_UNORDERED_MAP 1
25452 _ACEOF
25453
25454          cat >>confdefs.h <<\_ACEOF
25455 #define HAVE_STD_UNORDERED_SET 1
25456 _ACEOF
25457
25458     else
25459         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25460 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
25461 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25462   echo $ECHO_N "(cached) $ECHO_C" >&6
25463 else
25464   cat >conftest.$ac_ext <<_ACEOF
25465 /* confdefs.h.  */
25466 _ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h.  */
25470
25471
25472
25473 #include <tr1/unordered_map>
25474 _ACEOF
25475 rm -f conftest.$ac_objext
25476 if { (ac_try="$ac_compile"
25477 case "(($ac_try" in
25478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479   *) ac_try_echo=$ac_try;;
25480 esac
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482   (eval "$ac_compile") 2>conftest.er1
25483   ac_status=$?
25484   grep -v '^ *+' conftest.er1 >conftest.err
25485   rm -f conftest.er1
25486   cat conftest.err >&5
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } && {
25489          test -z "$ac_cxx_werror_flag" ||
25490          test ! -s conftest.err
25491        } && test -s conftest.$ac_objext; then
25492   ac_cv_header_tr1_unordered_map=yes
25493 else
25494   echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25496
25497         ac_cv_header_tr1_unordered_map=no
25498 fi
25499
25500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25501 fi
25502 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25503 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25504 if test $ac_cv_header_tr1_unordered_map = yes; then
25505   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25506 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25507 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510   cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h.  */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h.  */
25516 #include <tr1/unordered_map>
25517                     #include <tr1/unordered_set>
25518 int
25519 main ()
25520 {
25521 std::tr1::unordered_map<double*, char*> test1;
25522                      std::tr1::unordered_set<char*> test2;
25523             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25524             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25525             #endif
25526   ;
25527   return 0;
25528 }
25529 _ACEOF
25530 rm -f conftest.$ac_objext
25531 if { (ac_try="$ac_compile"
25532 case "(($ac_try" in
25533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534   *) ac_try_echo=$ac_try;;
25535 esac
25536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537   (eval "$ac_compile") 2>conftest.er1
25538   ac_status=$?
25539   grep -v '^ *+' conftest.er1 >conftest.err
25540   rm -f conftest.er1
25541   cat conftest.err >&5
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); } && {
25544          test -z "$ac_cxx_werror_flag" ||
25545          test ! -s conftest.err
25546        } && test -s conftest.$ac_objext; then
25547   wx_cv_class_tr1unorderedmapset=yes
25548 else
25549   echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552         wx_cv_class_tr1unorderedmapset=no
25553 fi
25554
25555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556
25557
25558 fi
25559 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25560 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25561 fi
25562
25563
25564
25565         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25566             cat >>confdefs.h <<\_ACEOF
25567 #define HAVE_TR1_UNORDERED_MAP 1
25568 _ACEOF
25569
25570             cat >>confdefs.h <<\_ACEOF
25571 #define HAVE_TR1_UNORDERED_SET 1
25572 _ACEOF
25573
25574         else
25575                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25576 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25577 if test "${ac_cv_header_hash_map+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h.  */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h.  */
25586
25587
25588
25589 #include <hash_map>
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598   (eval "$ac_compile") 2>conftest.er1
25599   ac_status=$?
25600   grep -v '^ *+' conftest.er1 >conftest.err
25601   rm -f conftest.er1
25602   cat conftest.err >&5
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } && {
25605          test -z "$ac_cxx_werror_flag" ||
25606          test ! -s conftest.err
25607        } && test -s conftest.$ac_objext; then
25608   ac_cv_header_hash_map=yes
25609 else
25610   echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25612
25613         ac_cv_header_hash_map=no
25614 fi
25615
25616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 fi
25618 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25619 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25620 if test $ac_cv_header_hash_map = yes; then
25621   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25622 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25623 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626   cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h.  */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h.  */
25632 #include <hash_map>
25633                         #include <hash_set>
25634 int
25635 main ()
25636 {
25637 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25638                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25639   ;
25640   return 0;
25641 }
25642 _ACEOF
25643 rm -f conftest.$ac_objext
25644 if { (ac_try="$ac_compile"
25645 case "(($ac_try" in
25646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647   *) ac_try_echo=$ac_try;;
25648 esac
25649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25650   (eval "$ac_compile") 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } && {
25657          test -z "$ac_cxx_werror_flag" ||
25658          test ! -s conftest.err
25659        } && test -s conftest.$ac_objext; then
25660   wx_cv_class_stdhashmapset=yes
25661 else
25662   echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25664
25665         wx_cv_class_stdhashmapset=no
25666 fi
25667
25668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669
25670
25671 fi
25672 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25673 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25674 fi
25675
25676
25677
25678             if test "$wx_cv_class_stdhashmapset" = yes; then
25679                 cat >>confdefs.h <<\_ACEOF
25680 #define HAVE_HASH_MAP 1
25681 _ACEOF
25682
25683                 cat >>confdefs.h <<\_ACEOF
25684 #define HAVE_STD_HASH_MAP 1
25685 _ACEOF
25686
25687             fi
25688
25689             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25690 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25691 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25692   echo $ECHO_N "(cached) $ECHO_C" >&6
25693 else
25694   cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h.  */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h.  */
25700
25701
25702
25703 #include <ext/hash_map>
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709   *) ac_try_echo=$ac_try;;
25710 esac
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712   (eval "$ac_compile") 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } && {
25719          test -z "$ac_cxx_werror_flag" ||
25720          test ! -s conftest.err
25721        } && test -s conftest.$ac_objext; then
25722   ac_cv_header_ext_hash_map=yes
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         ac_cv_header_ext_hash_map=no
25728 fi
25729
25730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 fi
25732 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25733 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25734 if test $ac_cv_header_ext_hash_map = yes; then
25735   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25736 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25737 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25738   echo $ECHO_N "(cached) $ECHO_C" >&6
25739 else
25740   cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746 #include <ext/hash_map>
25747                         #include <ext/hash_set>
25748 int
25749 main ()
25750 {
25751 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25752                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25753   ;
25754   return 0;
25755 }
25756 _ACEOF
25757 rm -f conftest.$ac_objext
25758 if { (ac_try="$ac_compile"
25759 case "(($ac_try" in
25760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761   *) ac_try_echo=$ac_try;;
25762 esac
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764   (eval "$ac_compile") 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } && {
25771          test -z "$ac_cxx_werror_flag" ||
25772          test ! -s conftest.err
25773        } && test -s conftest.$ac_objext; then
25774   wx_cv_class_gnuhashmapset=yes
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779         wx_cv_class_gnuhashmapset=no
25780 fi
25781
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783
25784
25785 fi
25786 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25787 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25788 fi
25789
25790
25791
25792         fi
25793     fi
25794 fi
25795
25796
25797
25798   if test -n "$GCC"; then
25799     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25800 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25801     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25802   echo $ECHO_N "(cached) $ECHO_C" >&6
25803 else
25804
25805       cat >conftest.$ac_ext <<_ACEOF
25806 /* confdefs.h.  */
25807 _ACEOF
25808 cat confdefs.h >>conftest.$ac_ext
25809 cat >>conftest.$ac_ext <<_ACEOF
25810 /* end confdefs.h.  */
25811
25812 int
25813 main ()
25814 {
25815
25816           unsigned int value=0;
25817           /* wxAtomicInc doesn't use return value here */
25818           __sync_fetch_and_add(&value, 2);
25819           __sync_sub_and_fetch(&value, 1);
25820           /* but wxAtomicDec does, so mimic that: */
25821           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25822
25823   ;
25824   return 0;
25825 }
25826 _ACEOF
25827 rm -f conftest.$ac_objext conftest$ac_exeext
25828 if { (ac_try="$ac_link"
25829 case "(($ac_try" in
25830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831   *) ac_try_echo=$ac_try;;
25832 esac
25833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834   (eval "$ac_link") 2>conftest.er1
25835   ac_status=$?
25836   grep -v '^ *+' conftest.er1 >conftest.err
25837   rm -f conftest.er1
25838   cat conftest.err >&5
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); } && {
25841          test -z "$ac_cxx_werror_flag" ||
25842          test ! -s conftest.err
25843        } && test -s conftest$ac_exeext &&
25844        $as_test_x conftest$ac_exeext; then
25845   wx_cv_cc_gcc_atomic_builtins=yes
25846 else
25847   echo "$as_me: failed program was:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25849
25850         wx_cv_cc_gcc_atomic_builtins=no
25851 fi
25852
25853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25854       conftest$ac_exeext conftest.$ac_ext
25855
25856 fi
25857
25858     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25859 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25860     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25861       cat >>confdefs.h <<\_ACEOF
25862 #define HAVE_GCC_ATOMIC_BUILTINS 1
25863 _ACEOF
25864
25865     fi
25866   fi
25867
25868
25869 ac_ext=c
25870 ac_cpp='$CPP $CPPFLAGS'
25871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25874
25875
25876
25877 SEARCH_INCLUDE="\
25878     /usr/local/include        \
25879     /usr/local/X11/include    \
25880     /usr/local/include/X11    \
25881     /usr/local/X11R7/include  \
25882     /usr/local/X11R6/include  \
25883     /usr/local/include/X11R7  \
25884     /usr/local/include/X11R6  \
25885                               \
25886     /usr/Motif-2.1/include    \
25887     /usr/Motif-1.2/include    \
25888     /usr/include/Motif1.2     \
25889                               \
25890     /usr/dt/include           \
25891     /usr/openwin/include      \
25892                               \
25893     /usr/include/Xm           \
25894                               \
25895     /usr/X11R7/include        \
25896     /usr/X11R6/include        \
25897     /usr/X11R6.4/include      \
25898                               \
25899     /usr/include/X11R7        \
25900     /usr/include/X11R6        \
25901                               \
25902     /usr/X11/include          \
25903     /usr/include/X11          \
25904                               \
25905     /usr/XFree86/include/X11  \
25906     /usr/pkg/include          \
25907                               \
25908     /usr/local/X1R5/include  \
25909     /usr/local/include/X11R5  \
25910     /usr/X11R5/include        \
25911     /usr/include/X11R5        \
25912                               \
25913     /usr/local/X11R4/include  \
25914     /usr/local/include/X11R4  \
25915     /usr/X11R4/include        \
25916     /usr/include/X11R4        \
25917                               \
25918     /usr/openwin/share/include"
25919
25920 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25921 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25922
25923 case "${host}" in
25924     *-*-irix6* )
25925         if test "${wx_cv_std_libpath+set}" = set; then
25926   echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928
25929                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25930                     for e in a so sl dylib dll.a; do
25931                         libc="$d/libc.$e"
25932                         if test -f $libc; then
25933                             save_LIBS="$LIBS"
25934                             LIBS="$libc"
25935                             cat >conftest.$ac_ext <<_ACEOF
25936 int main() { return 0; }
25937 _ACEOF
25938 rm -f conftest.$ac_objext conftest$ac_exeext
25939 if { (ac_try="$ac_link"
25940 case "(($ac_try" in
25941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942   *) ac_try_echo=$ac_try;;
25943 esac
25944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25945   (eval "$ac_link") 2>conftest.er1
25946   ac_status=$?
25947   grep -v '^ *+' conftest.er1 >conftest.err
25948   rm -f conftest.er1
25949   cat conftest.err >&5
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); } && {
25952          test -z "$ac_c_werror_flag" ||
25953          test ! -s conftest.err
25954        } && test -s conftest$ac_exeext &&
25955        $as_test_x conftest$ac_exeext; then
25956   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961
25962 fi
25963
25964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25965       conftest$ac_exeext conftest.$ac_ext
25966                             LIBS="$save_LIBS"
25967                             if test "x$wx_cv_std_libpath" != "x"; then
25968                                 break 2
25969                             fi
25970                         fi
25971                     done
25972                 done
25973                 if test "x$wx_cv_std_libpath" = "x"; then
25974                     wx_cv_std_libpath="lib"
25975                 fi
25976
25977
25978 fi
25979
25980         ;;
25981
25982     *-*-solaris2* )
25983                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25984             wx_cv_std_libpath="lib/64"
25985         else
25986             wx_cv_std_libpath="lib"
25987         fi
25988         ;;
25989
25990     *-*-linux* )
25991                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25992                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25993             wx_cv_std_libpath="lib64"
25994         else
25995             wx_cv_std_libpath="lib"
25996         fi
25997         ;;
25998
25999     *)
26000         wx_cv_std_libpath="lib";
26001         ;;
26002 esac
26003
26004 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26005 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26006
26007 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26008
26009 if test "$build" != "$host" -a "$GCC" = yes; then
26010                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26011         cross_root=`dirname $cross_root`
26012         cross_root=`dirname $cross_root`
26013
26014                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26015         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26016         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26017
26018                 if test -z "$PKG_CONFIG_PATH"; then
26019             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26020             export PKG_CONFIG_PATH
26021         fi
26022
26023                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26024
26025 ac_find_includes=
26026 for ac_dir in $SEARCH_INCLUDE /usr/include;
26027   do
26028     if test -f "$ac_dir/X11/Intrinsic.h"; then
26029       ac_find_includes=$ac_dir
26030       break
26031     fi
26032   done
26033
26034             x_includes=$ac_find_includes
26035         fi
26036         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26037
26038   ac_find_libraries=
26039   for ac_dir in $SEARCH_LIB;
26040   do
26041     for ac_extension in a so sl dylib dll.a; do
26042       if test -f "$ac_dir/libXt.$ac_extension"; then
26043         ac_find_libraries=$ac_dir
26044         break 2
26045       fi
26046     done
26047   done
26048
26049             x_libraries=$ac_find_libraries
26050         fi
26051     fi
26052 fi
26053
26054
26055 cat >confcache <<\_ACEOF
26056 # This file is a shell script that caches the results of configure
26057 # tests run on this system so they can be shared between configure
26058 # scripts and configure runs, see configure's option --config-cache.
26059 # It is not useful on other systems.  If it contains results you don't
26060 # want to keep, you may remove or edit it.
26061 #
26062 # config.status only pays attention to the cache file if you give it
26063 # the --recheck option to rerun configure.
26064 #
26065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26067 # following values.
26068
26069 _ACEOF
26070
26071 # The following way of writing the cache mishandles newlines in values,
26072 # but we know of no workaround that is simple, portable, and efficient.
26073 # So, we kill variables containing newlines.
26074 # Ultrix sh set writes to stderr and can't be redirected directly,
26075 # and sets the high bit in the cache file unless we assign to the vars.
26076 (
26077   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26078     eval ac_val=\$$ac_var
26079     case $ac_val in #(
26080     *${as_nl}*)
26081       case $ac_var in #(
26082       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26083 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26084       esac
26085       case $ac_var in #(
26086       _ | IFS | as_nl) ;; #(
26087       *) $as_unset $ac_var ;;
26088       esac ;;
26089     esac
26090   done
26091
26092   (set) 2>&1 |
26093     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26094     *${as_nl}ac_space=\ *)
26095       # `set' does not quote correctly, so add quotes (double-quote
26096       # substitution turns \\\\ into \\, and sed turns \\ into \).
26097       sed -n \
26098         "s/'/'\\\\''/g;
26099           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26100       ;; #(
26101     *)
26102       # `set' quotes correctly as required by POSIX, so do not add quotes.
26103       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26104       ;;
26105     esac |
26106     sort
26107 ) |
26108   sed '
26109      /^ac_cv_env_/b end
26110      t clear
26111      :clear
26112      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26113      t end
26114      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26115      :end' >>confcache
26116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26117   if test -w "$cache_file"; then
26118     test "x$cache_file" != "x/dev/null" &&
26119       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26120 echo "$as_me: updating cache $cache_file" >&6;}
26121     cat confcache >$cache_file
26122   else
26123     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26124 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26125   fi
26126 fi
26127 rm -f confcache
26128
26129 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
26130     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26131 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
26132 if test "${wx_cv_lib_glibc21+set}" = set; then
26133   echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26135
26136         cat >conftest.$ac_ext <<_ACEOF
26137 /* confdefs.h.  */
26138 _ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h.  */
26142 #include <features.h>
26143 int
26144 main ()
26145 {
26146
26147                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
26148                 not glibc 2.1
26149                 #endif
26150
26151   ;
26152   return 0;
26153 }
26154 _ACEOF
26155 rm -f conftest.$ac_objext
26156 if { (ac_try="$ac_compile"
26157 case "(($ac_try" in
26158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159   *) ac_try_echo=$ac_try;;
26160 esac
26161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162   (eval "$ac_compile") 2>conftest.er1
26163   ac_status=$?
26164   grep -v '^ *+' conftest.er1 >conftest.err
26165   rm -f conftest.er1
26166   cat conftest.err >&5
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } && {
26169          test -z "$ac_c_werror_flag" ||
26170          test ! -s conftest.err
26171        } && test -s conftest.$ac_objext; then
26172
26173                 wx_cv_lib_glibc21=yes
26174
26175 else
26176   echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26178
26179
26180                 wx_cv_lib_glibc21=no
26181
26182
26183 fi
26184
26185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26186
26187 fi
26188 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
26189 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
26190     if test "$wx_cv_lib_glibc21" = "yes"; then
26191         cat >>confdefs.h <<\_ACEOF
26192 #define wxHAVE_GLIBC2 1
26193 _ACEOF
26194
26195     fi
26196 fi
26197
26198 if test "x$wx_cv_lib_glibc21" = "xyes"; then
26199     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
26200         cat >>confdefs.h <<\_ACEOF
26201 #define _GNU_SOURCE 1
26202 _ACEOF
26203
26204     fi
26205 fi
26206
26207 have_cos=0
26208 have_floor=0
26209
26210 for ac_func in cos
26211 do
26212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26226 #define $ac_func innocuous_$ac_func
26227
26228 /* System header to define __stub macros and hopefully few prototypes,
26229     which can conflict with char $ac_func (); below.
26230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26231     <limits.h> exists even on freestanding compilers.  */
26232
26233 #ifdef __STDC__
26234 # include <limits.h>
26235 #else
26236 # include <assert.h>
26237 #endif
26238
26239 #undef $ac_func
26240
26241 /* Override any GCC internal prototype to avoid an error.
26242    Use char because int might match the return type of a GCC
26243    builtin and then its argument prototype would still apply.  */
26244 #ifdef __cplusplus
26245 extern "C"
26246 #endif
26247 char $ac_func ();
26248 /* The GNU C library defines this for functions which it implements
26249     to always fail with ENOSYS.  Some functions are actually named
26250     something starting with __ and the normal name is an alias.  */
26251 #if defined __stub_$ac_func || defined __stub___$ac_func
26252 choke me
26253 #endif
26254
26255 int
26256 main ()
26257 {
26258 return $ac_func ();
26259   ;
26260   return 0;
26261 }
26262 _ACEOF
26263 rm -f conftest.$ac_objext conftest$ac_exeext
26264 if { (ac_try="$ac_link"
26265 case "(($ac_try" in
26266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26267   *) ac_try_echo=$ac_try;;
26268 esac
26269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26270   (eval "$ac_link") 2>conftest.er1
26271   ac_status=$?
26272   grep -v '^ *+' conftest.er1 >conftest.err
26273   rm -f conftest.er1
26274   cat conftest.err >&5
26275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276   (exit $ac_status); } && {
26277          test -z "$ac_c_werror_flag" ||
26278          test ! -s conftest.err
26279        } && test -s conftest$ac_exeext &&
26280        $as_test_x conftest$ac_exeext; then
26281   eval "$as_ac_var=yes"
26282 else
26283   echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26285
26286         eval "$as_ac_var=no"
26287 fi
26288
26289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26290       conftest$ac_exeext conftest.$ac_ext
26291 fi
26292 ac_res=`eval echo '${'$as_ac_var'}'`
26293                { echo "$as_me:$LINENO: result: $ac_res" >&5
26294 echo "${ECHO_T}$ac_res" >&6; }
26295 if test `eval echo '${'$as_ac_var'}'` = yes; then
26296   cat >>confdefs.h <<_ACEOF
26297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26298 _ACEOF
26299  have_cos=1
26300 fi
26301 done
26302
26303
26304 for ac_func in floor
26305 do
26306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26310   echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312   cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26320 #define $ac_func innocuous_$ac_func
26321
26322 /* System header to define __stub macros and hopefully few prototypes,
26323     which can conflict with char $ac_func (); below.
26324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26325     <limits.h> exists even on freestanding compilers.  */
26326
26327 #ifdef __STDC__
26328 # include <limits.h>
26329 #else
26330 # include <assert.h>
26331 #endif
26332
26333 #undef $ac_func
26334
26335 /* Override any GCC internal prototype to avoid an error.
26336    Use char because int might match the return type of a GCC
26337    builtin and then its argument prototype would still apply.  */
26338 #ifdef __cplusplus
26339 extern "C"
26340 #endif
26341 char $ac_func ();
26342 /* The GNU C library defines this for functions which it implements
26343     to always fail with ENOSYS.  Some functions are actually named
26344     something starting with __ and the normal name is an alias.  */
26345 #if defined __stub_$ac_func || defined __stub___$ac_func
26346 choke me
26347 #endif
26348
26349 int
26350 main ()
26351 {
26352 return $ac_func ();
26353   ;
26354   return 0;
26355 }
26356 _ACEOF
26357 rm -f conftest.$ac_objext conftest$ac_exeext
26358 if { (ac_try="$ac_link"
26359 case "(($ac_try" in
26360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361   *) ac_try_echo=$ac_try;;
26362 esac
26363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26364   (eval "$ac_link") 2>conftest.er1
26365   ac_status=$?
26366   grep -v '^ *+' conftest.er1 >conftest.err
26367   rm -f conftest.er1
26368   cat conftest.err >&5
26369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); } && {
26371          test -z "$ac_c_werror_flag" ||
26372          test ! -s conftest.err
26373        } && test -s conftest$ac_exeext &&
26374        $as_test_x conftest$ac_exeext; then
26375   eval "$as_ac_var=yes"
26376 else
26377   echo "$as_me: failed program was:" >&5
26378 sed 's/^/| /' conftest.$ac_ext >&5
26379
26380         eval "$as_ac_var=no"
26381 fi
26382
26383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26384       conftest$ac_exeext conftest.$ac_ext
26385 fi
26386 ac_res=`eval echo '${'$as_ac_var'}'`
26387                { echo "$as_me:$LINENO: result: $ac_res" >&5
26388 echo "${ECHO_T}$ac_res" >&6; }
26389 if test `eval echo '${'$as_ac_var'}'` = yes; then
26390   cat >>confdefs.h <<_ACEOF
26391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26392 _ACEOF
26393  have_floor=1
26394 fi
26395 done
26396
26397 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
26398 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
26399 if test "$have_cos" = 1 -a "$have_floor" = 1; then
26400     { echo "$as_me:$LINENO: result: yes" >&5
26401 echo "${ECHO_T}yes" >&6; }
26402 else
26403     { echo "$as_me:$LINENO: result: no" >&5
26404 echo "${ECHO_T}no" >&6; }
26405     LIBS="$LIBS -lm"
26406     # use different functions to avoid configure caching
26407     have_sin=0
26408     have_ceil=0
26409
26410 for ac_func in sin
26411 do
26412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26416   echo $ECHO_N "(cached) $ECHO_C" >&6
26417 else
26418   cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h.  */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h.  */
26424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26426 #define $ac_func innocuous_$ac_func
26427
26428 /* System header to define __stub macros and hopefully few prototypes,
26429     which can conflict with char $ac_func (); below.
26430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26431     <limits.h> exists even on freestanding compilers.  */
26432
26433 #ifdef __STDC__
26434 # include <limits.h>
26435 #else
26436 # include <assert.h>
26437 #endif
26438
26439 #undef $ac_func
26440
26441 /* Override any GCC internal prototype to avoid an error.
26442    Use char because int might match the return type of a GCC
26443    builtin and then its argument prototype would still apply.  */
26444 #ifdef __cplusplus
26445 extern "C"
26446 #endif
26447 char $ac_func ();
26448 /* The GNU C library defines this for functions which it implements
26449     to always fail with ENOSYS.  Some functions are actually named
26450     something starting with __ and the normal name is an alias.  */
26451 #if defined __stub_$ac_func || defined __stub___$ac_func
26452 choke me
26453 #endif
26454
26455 int
26456 main ()
26457 {
26458 return $ac_func ();
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (ac_try="$ac_link"
26465 case "(($ac_try" in
26466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467   *) ac_try_echo=$ac_try;;
26468 esac
26469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26470   (eval "$ac_link") 2>conftest.er1
26471   ac_status=$?
26472   grep -v '^ *+' conftest.er1 >conftest.err
26473   rm -f conftest.er1
26474   cat conftest.err >&5
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); } && {
26477          test -z "$ac_c_werror_flag" ||
26478          test ! -s conftest.err
26479        } && test -s conftest$ac_exeext &&
26480        $as_test_x conftest$ac_exeext; then
26481   eval "$as_ac_var=yes"
26482 else
26483   echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.$ac_ext >&5
26485
26486         eval "$as_ac_var=no"
26487 fi
26488
26489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26490       conftest$ac_exeext conftest.$ac_ext
26491 fi
26492 ac_res=`eval echo '${'$as_ac_var'}'`
26493                { echo "$as_me:$LINENO: result: $ac_res" >&5
26494 echo "${ECHO_T}$ac_res" >&6; }
26495 if test `eval echo '${'$as_ac_var'}'` = yes; then
26496   cat >>confdefs.h <<_ACEOF
26497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26498 _ACEOF
26499  have_sin=1
26500 fi
26501 done
26502
26503
26504 for ac_func in ceil
26505 do
26506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512   cat >conftest.$ac_ext <<_ACEOF
26513 /* confdefs.h.  */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h.  */
26518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26520 #define $ac_func innocuous_$ac_func
26521
26522 /* System header to define __stub macros and hopefully few prototypes,
26523     which can conflict with char $ac_func (); below.
26524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26525     <limits.h> exists even on freestanding compilers.  */
26526
26527 #ifdef __STDC__
26528 # include <limits.h>
26529 #else
26530 # include <assert.h>
26531 #endif
26532
26533 #undef $ac_func
26534
26535 /* Override any GCC internal prototype to avoid an error.
26536    Use char because int might match the return type of a GCC
26537    builtin and then its argument prototype would still apply.  */
26538 #ifdef __cplusplus
26539 extern "C"
26540 #endif
26541 char $ac_func ();
26542 /* The GNU C library defines this for functions which it implements
26543     to always fail with ENOSYS.  Some functions are actually named
26544     something starting with __ and the normal name is an alias.  */
26545 #if defined __stub_$ac_func || defined __stub___$ac_func
26546 choke me
26547 #endif
26548
26549 int
26550 main ()
26551 {
26552 return $ac_func ();
26553   ;
26554   return 0;
26555 }
26556 _ACEOF
26557 rm -f conftest.$ac_objext conftest$ac_exeext
26558 if { (ac_try="$ac_link"
26559 case "(($ac_try" in
26560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561   *) ac_try_echo=$ac_try;;
26562 esac
26563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564   (eval "$ac_link") 2>conftest.er1
26565   ac_status=$?
26566   grep -v '^ *+' conftest.er1 >conftest.err
26567   rm -f conftest.er1
26568   cat conftest.err >&5
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); } && {
26571          test -z "$ac_c_werror_flag" ||
26572          test ! -s conftest.err
26573        } && test -s conftest$ac_exeext &&
26574        $as_test_x conftest$ac_exeext; then
26575   eval "$as_ac_var=yes"
26576 else
26577   echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26579
26580         eval "$as_ac_var=no"
26581 fi
26582
26583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26584       conftest$ac_exeext conftest.$ac_ext
26585 fi
26586 ac_res=`eval echo '${'$as_ac_var'}'`
26587                { echo "$as_me:$LINENO: result: $ac_res" >&5
26588 echo "${ECHO_T}$ac_res" >&6; }
26589 if test `eval echo '${'$as_ac_var'}'` = yes; then
26590   cat >>confdefs.h <<_ACEOF
26591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26592 _ACEOF
26593  have_ceil=1
26594 fi
26595 done
26596
26597     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26598 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26599     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26600         { echo "$as_me:$LINENO: result: yes" >&5
26601 echo "${ECHO_T}yes" >&6; }
26602     else
26603         { echo "$as_me:$LINENO: result: no" >&5
26604 echo "${ECHO_T}no" >&6; }
26605         # not sure we should warn the user, crash, etc.
26606     fi
26607 fi
26608
26609 ac_ext=cpp
26610 ac_cpp='$CXXCPP $CPPFLAGS'
26611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26614
26615 if test "wxUSE_UNICODE" = "yes"; then
26616
26617   for wx_func in wcstoull
26618   do
26619     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26620 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26621 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26622   echo $ECHO_N "(cached) $ECHO_C" >&6
26623 else
26624
26625         cat >conftest.$ac_ext <<_ACEOF
26626
26627             /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632
26633
26634                 $ac_includes_default
26635
26636 int
26637 main ()
26638 {
26639
26640                 #ifndef $wx_func
26641                   &$wx_func;
26642                 #endif
26643
26644
26645   ;
26646   return 0;
26647 }
26648
26649 _ACEOF
26650 rm -f conftest.$ac_objext conftest$ac_exeext
26651 if { (ac_try="$ac_link"
26652 case "(($ac_try" in
26653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654   *) ac_try_echo=$ac_try;;
26655 esac
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657   (eval "$ac_link") 2>conftest.er1
26658   ac_status=$?
26659   grep -v '^ *+' conftest.er1 >conftest.err
26660   rm -f conftest.er1
26661   cat conftest.err >&5
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); } && {
26664          test -z "$ac_cxx_werror_flag" ||
26665          test ! -s conftest.err
26666        } && test -s conftest$ac_exeext &&
26667        $as_test_x conftest$ac_exeext; then
26668   eval wx_cv_func_$wx_func=yes
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673         eval wx_cv_func_$wx_func=no
26674 fi
26675
26676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26677       conftest$ac_exeext conftest.$ac_ext
26678
26679 fi
26680 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26681                { echo "$as_me:$LINENO: result: $ac_res" >&5
26682 echo "${ECHO_T}$ac_res" >&6; }
26683
26684     if eval test \$wx_cv_func_$wx_func = yes
26685     then
26686       cat >>confdefs.h <<_ACEOF
26687 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26688 _ACEOF
26689
26690
26691     else
26692       :
26693
26694     fi
26695   done
26696
26697 else
26698
26699   for wx_func in strtoull
26700   do
26701     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26702 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26703 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26704   echo $ECHO_N "(cached) $ECHO_C" >&6
26705 else
26706
26707         cat >conftest.$ac_ext <<_ACEOF
26708
26709             /* confdefs.h.  */
26710 _ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h.  */
26714
26715
26716                 $ac_includes_default
26717
26718 int
26719 main ()
26720 {
26721
26722                 #ifndef $wx_func
26723                   &$wx_func;
26724                 #endif
26725
26726
26727   ;
26728   return 0;
26729 }
26730
26731 _ACEOF
26732 rm -f conftest.$ac_objext conftest$ac_exeext
26733 if { (ac_try="$ac_link"
26734 case "(($ac_try" in
26735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26736   *) ac_try_echo=$ac_try;;
26737 esac
26738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26739   (eval "$ac_link") 2>conftest.er1
26740   ac_status=$?
26741   grep -v '^ *+' conftest.er1 >conftest.err
26742   rm -f conftest.er1
26743   cat conftest.err >&5
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); } && {
26746          test -z "$ac_cxx_werror_flag" ||
26747          test ! -s conftest.err
26748        } && test -s conftest$ac_exeext &&
26749        $as_test_x conftest$ac_exeext; then
26750   eval wx_cv_func_$wx_func=yes
26751 else
26752   echo "$as_me: failed program was:" >&5
26753 sed 's/^/| /' conftest.$ac_ext >&5
26754
26755         eval wx_cv_func_$wx_func=no
26756 fi
26757
26758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26759       conftest$ac_exeext conftest.$ac_ext
26760
26761 fi
26762 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26763                { echo "$as_me:$LINENO: result: $ac_res" >&5
26764 echo "${ECHO_T}$ac_res" >&6; }
26765
26766     if eval test \$wx_cv_func_$wx_func = yes
26767     then
26768       cat >>confdefs.h <<_ACEOF
26769 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26770 _ACEOF
26771
26772
26773     else
26774       :
26775
26776     fi
26777   done
26778
26779 fi
26780 ac_ext=c
26781 ac_cpp='$CPP $CPPFLAGS'
26782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26785
26786
26787
26788
26789 if test "$wxUSE_REGEX" != "no"; then
26790     cat >>confdefs.h <<\_ACEOF
26791 #define wxUSE_REGEX 1
26792 _ACEOF
26793
26794
26795     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26796         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26797 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26798         wxUSE_REGEX=builtin
26799     fi
26800
26801     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26802                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26803 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26804 if test "${ac_cv_header_regex_h+set}" = set; then
26805   echo $ECHO_N "(cached) $ECHO_C" >&6
26806 else
26807   cat >conftest.$ac_ext <<_ACEOF
26808 /* confdefs.h.  */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h.  */
26813
26814
26815 #include <regex.h>
26816 _ACEOF
26817 rm -f conftest.$ac_objext
26818 if { (ac_try="$ac_compile"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_compile") 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } && {
26831          test -z "$ac_c_werror_flag" ||
26832          test ! -s conftest.err
26833        } && test -s conftest.$ac_objext; then
26834   ac_cv_header_regex_h=yes
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839         ac_cv_header_regex_h=no
26840 fi
26841
26842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 fi
26844 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26845 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26846 if test $ac_cv_header_regex_h = yes; then
26847
26848
26849 for ac_func in regcomp re_search
26850 do
26851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26855   echo $ECHO_N "(cached) $ECHO_C" >&6
26856 else
26857   cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26865 #define $ac_func innocuous_$ac_func
26866
26867 /* System header to define __stub macros and hopefully few prototypes,
26868     which can conflict with char $ac_func (); below.
26869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26870     <limits.h> exists even on freestanding compilers.  */
26871
26872 #ifdef __STDC__
26873 # include <limits.h>
26874 #else
26875 # include <assert.h>
26876 #endif
26877
26878 #undef $ac_func
26879
26880 /* Override any GCC internal prototype to avoid an error.
26881    Use char because int might match the return type of a GCC
26882    builtin and then its argument prototype would still apply.  */
26883 #ifdef __cplusplus
26884 extern "C"
26885 #endif
26886 char $ac_func ();
26887 /* The GNU C library defines this for functions which it implements
26888     to always fail with ENOSYS.  Some functions are actually named
26889     something starting with __ and the normal name is an alias.  */
26890 #if defined __stub_$ac_func || defined __stub___$ac_func
26891 choke me
26892 #endif
26893
26894 int
26895 main ()
26896 {
26897 return $ac_func ();
26898   ;
26899   return 0;
26900 }
26901 _ACEOF
26902 rm -f conftest.$ac_objext conftest$ac_exeext
26903 if { (ac_try="$ac_link"
26904 case "(($ac_try" in
26905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906   *) ac_try_echo=$ac_try;;
26907 esac
26908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26909   (eval "$ac_link") 2>conftest.er1
26910   ac_status=$?
26911   grep -v '^ *+' conftest.er1 >conftest.err
26912   rm -f conftest.er1
26913   cat conftest.err >&5
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); } && {
26916          test -z "$ac_c_werror_flag" ||
26917          test ! -s conftest.err
26918        } && test -s conftest$ac_exeext &&
26919        $as_test_x conftest$ac_exeext; then
26920   eval "$as_ac_var=yes"
26921 else
26922   echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925         eval "$as_ac_var=no"
26926 fi
26927
26928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26929       conftest$ac_exeext conftest.$ac_ext
26930 fi
26931 ac_res=`eval echo '${'$as_ac_var'}'`
26932                { echo "$as_me:$LINENO: result: $ac_res" >&5
26933 echo "${ECHO_T}$ac_res" >&6; }
26934 if test `eval echo '${'$as_ac_var'}'` = yes; then
26935   cat >>confdefs.h <<_ACEOF
26936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26937 _ACEOF
26938
26939 fi
26940 done
26941
26942 fi
26943
26944
26945
26946         if test "x$ac_cv_func_regcomp" != "xyes"; then
26947             if test "$wxUSE_REGEX" = "sys" ; then
26948                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26949 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26950    { (exit 1); exit 1; }; }
26951             else
26952                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26953 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26954                 wxUSE_REGEX=builtin
26955             fi
26956         else
26957                         wxUSE_REGEX=sys
26958                         cat >>confdefs.h <<\_ACEOF
26959 #define WX_NO_REGEX_ADVANCED 1
26960 _ACEOF
26961
26962         fi
26963     fi
26964 fi
26965
26966
26967 ZLIB_LINK=
26968 if test "$wxUSE_ZLIB" != "no" ; then
26969     cat >>confdefs.h <<\_ACEOF
26970 #define wxUSE_ZLIB 1
26971 _ACEOF
26972
26973
26974     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26975                                                 if test "$USE_DARWIN" = 1; then
26976             system_zlib_h_ok="yes"
26977         else
26978                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26979 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26980 if test "${ac_cv_header_zlib_h+set}" = set; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983   if test "$cross_compiling" = yes; then
26984                       unset ac_cv_header_zlib_h
26985
26986 else
26987   cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h.  */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h.  */
26993
26994                         #include <zlib.h>
26995                         #include <stdio.h>
26996
26997                         int main()
26998                         {
26999                             FILE *f=fopen("conftestval", "w");
27000                             if (!f) exit(1);
27001                             fprintf(f, "%s",
27002                                     ZLIB_VERSION[0] == '1' &&
27003                                     (ZLIB_VERSION[2] > '1' ||
27004                                     (ZLIB_VERSION[2] == '1' &&
27005                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27006                             exit(0);
27007                         }
27008
27009 _ACEOF
27010 rm -f conftest$ac_exeext
27011 if { (ac_try="$ac_link"
27012 case "(($ac_try" in
27013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014   *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017   (eval "$ac_link") 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27021   { (case "(($ac_try" in
27022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023   *) ac_try_echo=$ac_try;;
27024 esac
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026   (eval "$ac_try") 2>&5
27027   ac_status=$?
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); }; }; then
27030   ac_cv_header_zlib_h=`cat conftestval`
27031 else
27032   echo "$as_me: program exited with status $ac_status" >&5
27033 echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036 ( exit $ac_status )
27037 ac_cv_header_zlib_h=no
27038 fi
27039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27040 fi
27041
27042
27043
27044 fi
27045 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27046 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27047                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
27048 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27049 if test "${ac_cv_header_zlib_h+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 else
27052   cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058
27059
27060 #include <zlib.h>
27061 _ACEOF
27062 rm -f conftest.$ac_objext
27063 if { (ac_try="$ac_compile"
27064 case "(($ac_try" in
27065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066   *) ac_try_echo=$ac_try;;
27067 esac
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069   (eval "$ac_compile") 2>conftest.er1
27070   ac_status=$?
27071   grep -v '^ *+' conftest.er1 >conftest.err
27072   rm -f conftest.er1
27073   cat conftest.err >&5
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); } && {
27076          test -z "$ac_c_werror_flag" ||
27077          test ! -s conftest.err
27078        } && test -s conftest.$ac_objext; then
27079   ac_cv_header_zlib_h=yes
27080 else
27081   echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27083
27084         ac_cv_header_zlib_h=no
27085 fi
27086
27087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 fi
27089 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27090 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27091
27092
27093
27094             system_zlib_h_ok=$ac_cv_header_zlib_h
27095         fi
27096
27097         if test "$system_zlib_h_ok" = "yes"; then
27098             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27099 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
27100 if test "${ac_cv_lib_z_deflate+set}" = set; then
27101   echo $ECHO_N "(cached) $ECHO_C" >&6
27102 else
27103   ac_check_lib_save_LIBS=$LIBS
27104 LIBS="-lz  $LIBS"
27105 cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h.  */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h.  */
27111
27112 /* Override any GCC internal prototype to avoid an error.
27113    Use char because int might match the return type of a GCC
27114    builtin and then its argument prototype would still apply.  */
27115 #ifdef __cplusplus
27116 extern "C"
27117 #endif
27118 char deflate ();
27119 int
27120 main ()
27121 {
27122 return deflate ();
27123   ;
27124   return 0;
27125 }
27126 _ACEOF
27127 rm -f conftest.$ac_objext conftest$ac_exeext
27128 if { (ac_try="$ac_link"
27129 case "(($ac_try" in
27130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131   *) ac_try_echo=$ac_try;;
27132 esac
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134   (eval "$ac_link") 2>conftest.er1
27135   ac_status=$?
27136   grep -v '^ *+' conftest.er1 >conftest.err
27137   rm -f conftest.er1
27138   cat conftest.err >&5
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } && {
27141          test -z "$ac_c_werror_flag" ||
27142          test ! -s conftest.err
27143        } && test -s conftest$ac_exeext &&
27144        $as_test_x conftest$ac_exeext; then
27145   ac_cv_lib_z_deflate=yes
27146 else
27147   echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27149
27150         ac_cv_lib_z_deflate=no
27151 fi
27152
27153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27154       conftest$ac_exeext conftest.$ac_ext
27155 LIBS=$ac_check_lib_save_LIBS
27156 fi
27157 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
27158 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
27159 if test $ac_cv_lib_z_deflate = yes; then
27160   ZLIB_LINK=" -lz"
27161 fi
27162
27163         fi
27164
27165         if test "x$ZLIB_LINK" = "x" ; then
27166             if test "$wxUSE_ZLIB" = "sys" ; then
27167                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
27168 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
27169    { (exit 1); exit 1; }; }
27170             else
27171                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
27172 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
27173                 wxUSE_ZLIB=builtin
27174             fi
27175         else
27176                         wxUSE_ZLIB=sys
27177         fi
27178     fi
27179 fi
27180
27181
27182 PNG_LINK=
27183 if test "$wxUSE_LIBPNG" != "no" ; then
27184     cat >>confdefs.h <<\_ACEOF
27185 #define wxUSE_LIBPNG 1
27186 _ACEOF
27187
27188
27189     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
27190         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
27191 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
27192         wxUSE_LIBPNG=sys
27193     fi
27194
27195                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
27196         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
27197 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
27198         wxUSE_LIBPNG=builtin
27199     fi
27200
27201     if test "$wxUSE_MGL" != 1 ; then
27202                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
27203                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
27204 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
27205 if test "${ac_cv_header_png_h+set}" = set; then
27206   echo $ECHO_N "(cached) $ECHO_C" >&6
27207 else
27208   if test "$cross_compiling" = yes; then
27209                       unset ac_cv_header_png_h
27210
27211 else
27212   cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h.  */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h.  */
27218
27219                         #include <png.h>
27220                         #include <stdio.h>
27221
27222                         int main()
27223                         {
27224                             FILE *f=fopen("conftestval", "w");
27225                             if (!f) exit(1);
27226                             fprintf(f, "%s",
27227                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
27228                             exit(0);
27229                         }
27230
27231 _ACEOF
27232 rm -f conftest$ac_exeext
27233 if { (ac_try="$ac_link"
27234 case "(($ac_try" in
27235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236   *) ac_try_echo=$ac_try;;
27237 esac
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239   (eval "$ac_link") 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27243   { (case "(($ac_try" in
27244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245   *) ac_try_echo=$ac_try;;
27246 esac
27247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27248   (eval "$ac_try") 2>&5
27249   ac_status=$?
27250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251   (exit $ac_status); }; }; then
27252   ac_cv_header_png_h=`cat conftestval`
27253 else
27254   echo "$as_me: program exited with status $ac_status" >&5
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257
27258 ( exit $ac_status )
27259 ac_cv_header_png_h=no
27260 fi
27261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27262 fi
27263
27264
27265
27266 fi
27267 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27268 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27269             { echo "$as_me:$LINENO: checking for png.h" >&5
27270 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27271 if test "${ac_cv_header_png_h+set}" = set; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274   cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h.  */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h.  */
27280
27281
27282 #include <png.h>
27283 _ACEOF
27284 rm -f conftest.$ac_objext
27285 if { (ac_try="$ac_compile"
27286 case "(($ac_try" in
27287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27288   *) ac_try_echo=$ac_try;;
27289 esac
27290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27291   (eval "$ac_compile") 2>conftest.er1
27292   ac_status=$?
27293   grep -v '^ *+' conftest.er1 >conftest.err
27294   rm -f conftest.er1
27295   cat conftest.err >&5
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); } && {
27298          test -z "$ac_c_werror_flag" ||
27299          test ! -s conftest.err
27300        } && test -s conftest.$ac_objext; then
27301   ac_cv_header_png_h=yes
27302 else
27303   echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27305
27306         ac_cv_header_png_h=no
27307 fi
27308
27309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27310 fi
27311 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27312 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27313
27314
27315
27316             if test "$ac_cv_header_png_h" = "yes"; then
27317                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
27318 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
27319 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
27320   echo $ECHO_N "(cached) $ECHO_C" >&6
27321 else
27322   ac_check_lib_save_LIBS=$LIBS
27323 LIBS="-lpng -lz -lm $LIBS"
27324 cat >conftest.$ac_ext <<_ACEOF
27325 /* confdefs.h.  */
27326 _ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h.  */
27330
27331 /* Override any GCC internal prototype to avoid an error.
27332    Use char because int might match the return type of a GCC
27333    builtin and then its argument prototype would still apply.  */
27334 #ifdef __cplusplus
27335 extern "C"
27336 #endif
27337 char png_sig_cmp ();
27338 int
27339 main ()
27340 {
27341 return png_sig_cmp ();
27342   ;
27343   return 0;
27344 }
27345 _ACEOF
27346 rm -f conftest.$ac_objext conftest$ac_exeext
27347 if { (ac_try="$ac_link"
27348 case "(($ac_try" in
27349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350   *) ac_try_echo=$ac_try;;
27351 esac
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353   (eval "$ac_link") 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } && {
27360          test -z "$ac_c_werror_flag" ||
27361          test ! -s conftest.err
27362        } && test -s conftest$ac_exeext &&
27363        $as_test_x conftest$ac_exeext; then
27364   ac_cv_lib_png_png_sig_cmp=yes
27365 else
27366   echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27368
27369         ac_cv_lib_png_png_sig_cmp=no
27370 fi
27371
27372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27373       conftest$ac_exeext conftest.$ac_ext
27374 LIBS=$ac_check_lib_save_LIBS
27375 fi
27376 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
27377 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
27378 if test $ac_cv_lib_png_png_sig_cmp = yes; then
27379   PNG_LINK=" -lpng -lz"
27380 fi
27381
27382             fi
27383
27384             if test "x$PNG_LINK" = "x" ; then
27385                 if test "$wxUSE_LIBPNG" = "sys" ; then
27386                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
27387 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
27388    { (exit 1); exit 1; }; }
27389                 else
27390                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
27391 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
27392                     wxUSE_LIBPNG=builtin
27393                 fi
27394             else
27395                                 wxUSE_LIBPNG=sys
27396             fi
27397         fi
27398     fi
27399 fi
27400
27401
27402 JPEG_LINK=
27403 if test "$wxUSE_LIBJPEG" != "no" ; then
27404     cat >>confdefs.h <<\_ACEOF
27405 #define wxUSE_LIBJPEG 1
27406 _ACEOF
27407
27408
27409     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
27410         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
27411 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
27412         wxUSE_LIBJPEG=sys
27413     fi
27414
27415     if test "$wxUSE_MGL" != 1 ; then
27416                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
27417                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
27418 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
27419             if test "${ac_cv_header_jpeglib_h+set}" = set; then
27420   echo $ECHO_N "(cached) $ECHO_C" >&6
27421 else
27422   cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h.  */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h.  */
27428
27429                         #undef HAVE_STDLIB_H
27430                         #include <stdio.h>
27431                         #include <jpeglib.h>
27432
27433 int
27434 main ()
27435 {
27436
27437
27438   ;
27439   return 0;
27440 }
27441 _ACEOF
27442 rm -f conftest.$ac_objext
27443 if { (ac_try="$ac_compile"
27444 case "(($ac_try" in
27445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446   *) ac_try_echo=$ac_try;;
27447 esac
27448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449   (eval "$ac_compile") 2>conftest.er1
27450   ac_status=$?
27451   grep -v '^ *+' conftest.er1 >conftest.err
27452   rm -f conftest.er1
27453   cat conftest.err >&5
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); } && {
27456          test -z "$ac_c_werror_flag" ||
27457          test ! -s conftest.err
27458        } && test -s conftest.$ac_objext; then
27459   ac_cv_header_jpeglib_h=yes
27460 else
27461   echo "$as_me: failed program was:" >&5
27462 sed 's/^/| /' conftest.$ac_ext >&5
27463
27464         ac_cv_header_jpeglib_h=no
27465
27466 fi
27467
27468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27469
27470 fi
27471
27472             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
27473 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
27474
27475             if test "$ac_cv_header_jpeglib_h" = "yes"; then
27476                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
27477 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
27478 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
27479   echo $ECHO_N "(cached) $ECHO_C" >&6
27480 else
27481   ac_check_lib_save_LIBS=$LIBS
27482 LIBS="-ljpeg  $LIBS"
27483 cat >conftest.$ac_ext <<_ACEOF
27484 /* confdefs.h.  */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h.  */
27489
27490 /* Override any GCC internal prototype to avoid an error.
27491    Use char because int might match the return type of a GCC
27492    builtin and then its argument prototype would still apply.  */
27493 #ifdef __cplusplus
27494 extern "C"
27495 #endif
27496 char jpeg_read_header ();
27497 int
27498 main ()
27499 {
27500 return jpeg_read_header ();
27501   ;
27502   return 0;
27503 }
27504 _ACEOF
27505 rm -f conftest.$ac_objext conftest$ac_exeext
27506 if { (ac_try="$ac_link"
27507 case "(($ac_try" in
27508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509   *) ac_try_echo=$ac_try;;
27510 esac
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512   (eval "$ac_link") 2>conftest.er1
27513   ac_status=$?
27514   grep -v '^ *+' conftest.er1 >conftest.err
27515   rm -f conftest.er1
27516   cat conftest.err >&5
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); } && {
27519          test -z "$ac_c_werror_flag" ||
27520          test ! -s conftest.err
27521        } && test -s conftest$ac_exeext &&
27522        $as_test_x conftest$ac_exeext; then
27523   ac_cv_lib_jpeg_jpeg_read_header=yes
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528         ac_cv_lib_jpeg_jpeg_read_header=no
27529 fi
27530
27531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27532       conftest$ac_exeext conftest.$ac_ext
27533 LIBS=$ac_check_lib_save_LIBS
27534 fi
27535 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27536 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27537 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27538   JPEG_LINK=" -ljpeg"
27539 fi
27540
27541             fi
27542
27543             if test "x$JPEG_LINK" = "x" ; then
27544                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27545                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27546 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27547    { (exit 1); exit 1; }; }
27548                 else
27549                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27550 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27551                     wxUSE_LIBJPEG=builtin
27552                 fi
27553             else
27554                                 wxUSE_LIBJPEG=sys
27555
27556                 if test "$wxUSE_MSW" = 1; then
27557                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27558 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27559 if test "${ac_cv_type_boolean+set}" = set; then
27560   echo $ECHO_N "(cached) $ECHO_C" >&6
27561 else
27562   cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568 #include <windows.h>
27569
27570 typedef boolean ac__type_new_;
27571 int
27572 main ()
27573 {
27574 if ((ac__type_new_ *) 0)
27575   return 0;
27576 if (sizeof (ac__type_new_))
27577   return 0;
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext
27583 if { (ac_try="$ac_compile"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589   (eval "$ac_compile") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } && {
27596          test -z "$ac_c_werror_flag" ||
27597          test ! -s conftest.err
27598        } && test -s conftest.$ac_objext; then
27599   ac_cv_type_boolean=yes
27600 else
27601   echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27603
27604         ac_cv_type_boolean=no
27605 fi
27606
27607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27608 fi
27609 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27610 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27611 if test $ac_cv_type_boolean = yes; then
27612
27613 cat >>confdefs.h <<_ACEOF
27614 #define HAVE_BOOLEAN 1
27615 _ACEOF
27616
27617
27618                             { echo "$as_me:$LINENO: checking for boolean" >&5
27619 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27620 if test "${ac_cv_type_boolean+set}" = set; then
27621   echo $ECHO_N "(cached) $ECHO_C" >&6
27622 else
27623   cat >conftest.$ac_ext <<_ACEOF
27624 /* confdefs.h.  */
27625 _ACEOF
27626 cat confdefs.h >>conftest.$ac_ext
27627 cat >>conftest.$ac_ext <<_ACEOF
27628 /* end confdefs.h.  */
27629
27630                                     #undef HAVE_BOOLEAN
27631                                     #include <stdio.h>
27632                                     #include <jpeglib.h>
27633
27634
27635 typedef boolean ac__type_new_;
27636 int
27637 main ()
27638 {
27639 if ((ac__type_new_ *) 0)
27640   return 0;
27641 if (sizeof (ac__type_new_))
27642   return 0;
27643   ;
27644   return 0;
27645 }
27646 _ACEOF
27647 rm -f conftest.$ac_objext
27648 if { (ac_try="$ac_compile"
27649 case "(($ac_try" in
27650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651   *) ac_try_echo=$ac_try;;
27652 esac
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654   (eval "$ac_compile") 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } && {
27661          test -z "$ac_c_werror_flag" ||
27662          test ! -s conftest.err
27663        } && test -s conftest.$ac_objext; then
27664   ac_cv_type_boolean=yes
27665 else
27666   echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27668
27669         ac_cv_type_boolean=no
27670 fi
27671
27672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27673 fi
27674 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27675 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27676
27677 # The cast to long int works around a bug in the HP C Compiler
27678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27680 # This bug is HP SR number 8606223364.
27681 { echo "$as_me:$LINENO: checking size of boolean" >&5
27682 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27683 if test "${ac_cv_sizeof_boolean+set}" = set; then
27684   echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686   if test "$cross_compiling" = yes; then
27687   # Depending upon the size, compute the lo and hi bounds.
27688 cat >conftest.$ac_ext <<_ACEOF
27689 /* confdefs.h.  */
27690 _ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h.  */
27694
27695                                     #undef HAVE_BOOLEAN
27696                                     #include <stdio.h>
27697                                     #include <jpeglib.h>
27698
27699
27700    typedef boolean ac__type_sizeof_;
27701 int
27702 main ()
27703 {
27704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27705 test_array [0] = 0
27706
27707   ;
27708   return 0;
27709 }
27710 _ACEOF
27711 rm -f conftest.$ac_objext
27712 if { (ac_try="$ac_compile"
27713 case "(($ac_try" in
27714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715   *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718   (eval "$ac_compile") 2>conftest.er1
27719   ac_status=$?
27720   grep -v '^ *+' conftest.er1 >conftest.err
27721   rm -f conftest.er1
27722   cat conftest.err >&5
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); } && {
27725          test -z "$ac_c_werror_flag" ||
27726          test ! -s conftest.err
27727        } && test -s conftest.$ac_objext; then
27728   ac_lo=0 ac_mid=0
27729   while :; do
27730     cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h.  */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h.  */
27736
27737                                     #undef HAVE_BOOLEAN
27738                                     #include <stdio.h>
27739                                     #include <jpeglib.h>
27740
27741
27742    typedef boolean ac__type_sizeof_;
27743 int
27744 main ()
27745 {
27746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27747 test_array [0] = 0
27748
27749   ;
27750   return 0;
27751 }
27752 _ACEOF
27753 rm -f conftest.$ac_objext
27754 if { (ac_try="$ac_compile"
27755 case "(($ac_try" in
27756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757   *) ac_try_echo=$ac_try;;
27758 esac
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760   (eval "$ac_compile") 2>conftest.er1
27761   ac_status=$?
27762   grep -v '^ *+' conftest.er1 >conftest.err
27763   rm -f conftest.er1
27764   cat conftest.err >&5
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); } && {
27767          test -z "$ac_c_werror_flag" ||
27768          test ! -s conftest.err
27769        } && test -s conftest.$ac_objext; then
27770   ac_hi=$ac_mid; break
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775         ac_lo=`expr $ac_mid + 1`
27776                         if test $ac_lo -le $ac_mid; then
27777                           ac_lo= ac_hi=
27778                           break
27779                         fi
27780                         ac_mid=`expr 2 '*' $ac_mid + 1`
27781 fi
27782
27783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27784   done
27785 else
27786   echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27788
27789         cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795
27796                                     #undef HAVE_BOOLEAN
27797                                     #include <stdio.h>
27798                                     #include <jpeglib.h>
27799
27800
27801    typedef boolean ac__type_sizeof_;
27802 int
27803 main ()
27804 {
27805 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27806 test_array [0] = 0
27807
27808   ;
27809   return 0;
27810 }
27811 _ACEOF
27812 rm -f conftest.$ac_objext
27813 if { (ac_try="$ac_compile"
27814 case "(($ac_try" in
27815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27816   *) ac_try_echo=$ac_try;;
27817 esac
27818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27819   (eval "$ac_compile") 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } && {
27826          test -z "$ac_c_werror_flag" ||
27827          test ! -s conftest.err
27828        } && test -s conftest.$ac_objext; then
27829   ac_hi=-1 ac_mid=-1
27830   while :; do
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                                     #undef HAVE_BOOLEAN
27839                                     #include <stdio.h>
27840                                     #include <jpeglib.h>
27841
27842
27843    typedef boolean ac__type_sizeof_;
27844 int
27845 main ()
27846 {
27847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27848 test_array [0] = 0
27849
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 rm -f conftest.$ac_objext
27855 if { (ac_try="$ac_compile"
27856 case "(($ac_try" in
27857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858   *) ac_try_echo=$ac_try;;
27859 esac
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861   (eval "$ac_compile") 2>conftest.er1
27862   ac_status=$?
27863   grep -v '^ *+' conftest.er1 >conftest.err
27864   rm -f conftest.er1
27865   cat conftest.err >&5
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); } && {
27868          test -z "$ac_c_werror_flag" ||
27869          test ! -s conftest.err
27870        } && test -s conftest.$ac_objext; then
27871   ac_lo=$ac_mid; break
27872 else
27873   echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27875
27876         ac_hi=`expr '(' $ac_mid ')' - 1`
27877                         if test $ac_mid -le $ac_hi; then
27878                           ac_lo= ac_hi=
27879                           break
27880                         fi
27881                         ac_mid=`expr 2 '*' $ac_mid`
27882 fi
27883
27884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27885   done
27886 else
27887   echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890         ac_lo= ac_hi=
27891 fi
27892
27893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27894 fi
27895
27896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897 # Binary search between lo and hi bounds.
27898 while test "x$ac_lo" != "x$ac_hi"; do
27899   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27900   cat >conftest.$ac_ext <<_ACEOF
27901 /* confdefs.h.  */
27902 _ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h.  */
27906
27907                                     #undef HAVE_BOOLEAN
27908                                     #include <stdio.h>
27909                                     #include <jpeglib.h>
27910
27911
27912    typedef boolean ac__type_sizeof_;
27913 int
27914 main ()
27915 {
27916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27917 test_array [0] = 0
27918
27919   ;
27920   return 0;
27921 }
27922 _ACEOF
27923 rm -f conftest.$ac_objext
27924 if { (ac_try="$ac_compile"
27925 case "(($ac_try" in
27926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27927   *) ac_try_echo=$ac_try;;
27928 esac
27929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27930   (eval "$ac_compile") 2>conftest.er1
27931   ac_status=$?
27932   grep -v '^ *+' conftest.er1 >conftest.err
27933   rm -f conftest.er1
27934   cat conftest.err >&5
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); } && {
27937          test -z "$ac_c_werror_flag" ||
27938          test ! -s conftest.err
27939        } && test -s conftest.$ac_objext; then
27940   ac_hi=$ac_mid
27941 else
27942   echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27944
27945         ac_lo=`expr '(' $ac_mid ')' + 1`
27946 fi
27947
27948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27949 done
27950 case $ac_lo in
27951 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27952 '') if test "$ac_cv_type_boolean" = yes; then
27953      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27954 See \`config.log' for more details." >&5
27955 echo "$as_me: error: cannot compute sizeof (boolean)
27956 See \`config.log' for more details." >&2;}
27957    { (exit 77); exit 77; }; }
27958    else
27959      ac_cv_sizeof_boolean=0
27960    fi ;;
27961 esac
27962 else
27963   cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969
27970                                     #undef HAVE_BOOLEAN
27971                                     #include <stdio.h>
27972                                     #include <jpeglib.h>
27973
27974
27975    typedef boolean ac__type_sizeof_;
27976 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27977 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27978 #include <stdio.h>
27979 #include <stdlib.h>
27980 int
27981 main ()
27982 {
27983
27984   FILE *f = fopen ("conftest.val", "w");
27985   if (! f)
27986     return 1;
27987   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27988     {
27989       long int i = longval ();
27990       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27991         return 1;
27992       fprintf (f, "%ld\n", i);
27993     }
27994   else
27995     {
27996       unsigned long int i = ulongval ();
27997       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27998         return 1;
27999       fprintf (f, "%lu\n", i);
28000     }
28001   return ferror (f) || fclose (f) != 0;
28002
28003   ;
28004   return 0;
28005 }
28006 _ACEOF
28007 rm -f conftest$ac_exeext
28008 if { (ac_try="$ac_link"
28009 case "(($ac_try" in
28010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011   *) ac_try_echo=$ac_try;;
28012 esac
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014   (eval "$ac_link") 2>&5
28015   ac_status=$?
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28018   { (case "(($ac_try" in
28019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28020   *) ac_try_echo=$ac_try;;
28021 esac
28022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28023   (eval "$ac_try") 2>&5
28024   ac_status=$?
28025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026   (exit $ac_status); }; }; then
28027   ac_cv_sizeof_boolean=`cat conftest.val`
28028 else
28029   echo "$as_me: program exited with status $ac_status" >&5
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033 ( exit $ac_status )
28034 if test "$ac_cv_type_boolean" = yes; then
28035      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28036 See \`config.log' for more details." >&5
28037 echo "$as_me: error: cannot compute sizeof (boolean)
28038 See \`config.log' for more details." >&2;}
28039    { (exit 77); exit 77; }; }
28040    else
28041      ac_cv_sizeof_boolean=0
28042    fi
28043 fi
28044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28045 fi
28046 rm -f conftest.val
28047 fi
28048 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28049 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
28050
28051
28052
28053 cat >>confdefs.h <<_ACEOF
28054 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28055 _ACEOF
28056
28057
28058                             cat >>confdefs.h <<_ACEOF
28059 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28060 _ACEOF
28061
28062
28063 fi
28064
28065                 fi
28066             fi
28067         fi
28068     fi
28069 fi
28070
28071
28072 TIFF_LINK=
28073 TIFF_PREREQ_LINKS=-lm
28074 if test "$wxUSE_LIBTIFF" != "no" ; then
28075     cat >>confdefs.h <<\_ACEOF
28076 #define wxUSE_LIBTIFF 1
28077 _ACEOF
28078
28079
28080     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28081                         if test "$wxUSE_LIBJPEG" = "sys"; then
28082             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28083         fi
28084         if test "$wxUSE_ZLIB" = "sys"; then
28085             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28086         fi
28087         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
28088 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
28089 if test "${ac_cv_header_tiffio_h+set}" = set; then
28090   echo $ECHO_N "(cached) $ECHO_C" >&6
28091 else
28092   cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h.  */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h.  */
28098
28099
28100
28101 #include <tiffio.h>
28102 _ACEOF
28103 rm -f conftest.$ac_objext
28104 if { (ac_try="$ac_compile"
28105 case "(($ac_try" in
28106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107   *) ac_try_echo=$ac_try;;
28108 esac
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110   (eval "$ac_compile") 2>conftest.er1
28111   ac_status=$?
28112   grep -v '^ *+' conftest.er1 >conftest.err
28113   rm -f conftest.er1
28114   cat conftest.err >&5
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); } && {
28117          test -z "$ac_c_werror_flag" ||
28118          test ! -s conftest.err
28119        } && test -s conftest.$ac_objext; then
28120   ac_cv_header_tiffio_h=yes
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125         ac_cv_header_tiffio_h=no
28126 fi
28127
28128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28129 fi
28130 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28131 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
28132 if test $ac_cv_header_tiffio_h = yes; then
28133
28134                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28135 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
28136 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
28137   echo $ECHO_N "(cached) $ECHO_C" >&6
28138 else
28139   ac_check_lib_save_LIBS=$LIBS
28140 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28141 cat >conftest.$ac_ext <<_ACEOF
28142 /* confdefs.h.  */
28143 _ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h.  */
28147
28148 /* Override any GCC internal prototype to avoid an error.
28149    Use char because int might match the return type of a GCC
28150    builtin and then its argument prototype would still apply.  */
28151 #ifdef __cplusplus
28152 extern "C"
28153 #endif
28154 char TIFFError ();
28155 int
28156 main ()
28157 {
28158 return TIFFError ();
28159   ;
28160   return 0;
28161 }
28162 _ACEOF
28163 rm -f conftest.$ac_objext conftest$ac_exeext
28164 if { (ac_try="$ac_link"
28165 case "(($ac_try" in
28166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167   *) ac_try_echo=$ac_try;;
28168 esac
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170   (eval "$ac_link") 2>conftest.er1
28171   ac_status=$?
28172   grep -v '^ *+' conftest.er1 >conftest.err
28173   rm -f conftest.er1
28174   cat conftest.err >&5
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); } && {
28177          test -z "$ac_c_werror_flag" ||
28178          test ! -s conftest.err
28179        } && test -s conftest$ac_exeext &&
28180        $as_test_x conftest$ac_exeext; then
28181   ac_cv_lib_tiff_TIFFError=yes
28182 else
28183   echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28185
28186         ac_cv_lib_tiff_TIFFError=no
28187 fi
28188
28189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28190       conftest$ac_exeext conftest.$ac_ext
28191 LIBS=$ac_check_lib_save_LIBS
28192 fi
28193 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
28194 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
28195 if test $ac_cv_lib_tiff_TIFFError = yes; then
28196   TIFF_LINK=" -ltiff"
28197 fi
28198
28199
28200 fi
28201
28202
28203
28204         if test "x$TIFF_LINK" = "x" ; then
28205             if test "$wxUSE_LIBTIFF" = "sys" ; then
28206                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
28207 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
28208    { (exit 1); exit 1; }; }
28209             else
28210                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
28211 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
28212                 wxUSE_LIBTIFF=builtin
28213             fi
28214         else
28215                         wxUSE_LIBTIFF=sys
28216         fi
28217     fi
28218     if test "$wxUSE_LIBTIFF" = "builtin" ; then
28219         if test "$wxUSE_LIBJPEG" = "no"; then
28220                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
28221         fi
28222         subdirs="$subdirs src/tiff"
28223
28224     fi
28225 fi
28226
28227
28228 if test "$wxUSE_WCHAR_T" != "yes"; then
28229     if test "$wxUSE_EXPAT" != "no"; then
28230         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
28231 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
28232         wxUSE_EXPAT=no
28233     fi
28234     if test "$wxUSE_XML" != "no"; then
28235         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
28236 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
28237         wxUSE_XML=no
28238     fi
28239 fi
28240
28241 if test "$wxUSE_EXPAT" != "no"; then
28242     wxUSE_XML=yes
28243     cat >>confdefs.h <<\_ACEOF
28244 #define wxUSE_EXPAT 1
28245 _ACEOF
28246
28247     cat >>confdefs.h <<\_ACEOF
28248 #define wxUSE_XML 1
28249 _ACEOF
28250
28251
28252     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
28253         { echo "$as_me:$LINENO: checking for expat.h" >&5
28254 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
28255 if test "${ac_cv_header_expat_h+set}" = set; then
28256   echo $ECHO_N "(cached) $ECHO_C" >&6
28257 else
28258   cat >conftest.$ac_ext <<_ACEOF
28259 /* confdefs.h.  */
28260 _ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h.  */
28264
28265
28266 #include <expat.h>
28267 _ACEOF
28268 rm -f conftest.$ac_objext
28269 if { (ac_try="$ac_compile"
28270 case "(($ac_try" in
28271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272   *) ac_try_echo=$ac_try;;
28273 esac
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275   (eval "$ac_compile") 2>conftest.er1
28276   ac_status=$?
28277   grep -v '^ *+' conftest.er1 >conftest.err
28278   rm -f conftest.er1
28279   cat conftest.err >&5
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); } && {
28282          test -z "$ac_c_werror_flag" ||
28283          test ! -s conftest.err
28284        } && test -s conftest.$ac_objext; then
28285   ac_cv_header_expat_h=yes
28286 else
28287   echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290         ac_cv_header_expat_h=no
28291 fi
28292
28293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294 fi
28295 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
28296 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
28297 if test $ac_cv_header_expat_h = yes; then
28298   found_expat_h=1
28299 fi
28300
28301
28302         if test "x$found_expat_h" = "x1"; then
28303                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
28304 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
28305 if test "${wx_cv_expat_is_not_broken+set}" = set; then
28306   echo $ECHO_N "(cached) $ECHO_C" >&6
28307 else
28308
28309                 ac_ext=cpp
28310 ac_cpp='$CXXCPP $CPPFLAGS'
28311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28314
28315                 cat >conftest.$ac_ext <<_ACEOF
28316 /* confdefs.h.  */
28317 _ACEOF
28318 cat confdefs.h >>conftest.$ac_ext
28319 cat >>conftest.$ac_ext <<_ACEOF
28320 /* end confdefs.h.  */
28321 #include <expat.h>
28322 int
28323 main ()
28324 {
28325
28326   ;
28327   return 0;
28328 }
28329 _ACEOF
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334   *) ac_try_echo=$ac_try;;
28335 esac
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337   (eval "$ac_compile") 2>conftest.er1
28338   ac_status=$?
28339   grep -v '^ *+' conftest.er1 >conftest.err
28340   rm -f conftest.er1
28341   cat conftest.err >&5
28342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); } && {
28344          test -z "$ac_cxx_werror_flag" ||
28345          test ! -s conftest.err
28346        } && test -s conftest.$ac_objext; then
28347   wx_cv_expat_is_not_broken=yes
28348 else
28349   echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28351
28352         wx_cv_expat_is_not_broken=no
28353
28354 fi
28355
28356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28357                 ac_ext=c
28358 ac_cpp='$CPP $CPPFLAGS'
28359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28362
28363
28364
28365 fi
28366 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
28367 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
28368             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
28369                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
28370 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
28371 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
28372   echo $ECHO_N "(cached) $ECHO_C" >&6
28373 else
28374   ac_check_lib_save_LIBS=$LIBS
28375 LIBS="-lexpat  $LIBS"
28376 cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h.  */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h.  */
28382
28383 /* Override any GCC internal prototype to avoid an error.
28384    Use char because int might match the return type of a GCC
28385    builtin and then its argument prototype would still apply.  */
28386 #ifdef __cplusplus
28387 extern "C"
28388 #endif
28389 char XML_ParserCreate ();
28390 int
28391 main ()
28392 {
28393 return XML_ParserCreate ();
28394   ;
28395   return 0;
28396 }
28397 _ACEOF
28398 rm -f conftest.$ac_objext conftest$ac_exeext
28399 if { (ac_try="$ac_link"
28400 case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405   (eval "$ac_link") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } && {
28412          test -z "$ac_c_werror_flag" ||
28413          test ! -s conftest.err
28414        } && test -s conftest$ac_exeext &&
28415        $as_test_x conftest$ac_exeext; then
28416   ac_cv_lib_expat_XML_ParserCreate=yes
28417 else
28418   echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28420
28421         ac_cv_lib_expat_XML_ParserCreate=no
28422 fi
28423
28424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28425       conftest$ac_exeext conftest.$ac_ext
28426 LIBS=$ac_check_lib_save_LIBS
28427 fi
28428 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
28429 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
28430 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
28431   EXPAT_LINK=" -lexpat"
28432 fi
28433
28434             fi
28435         fi
28436         if test "x$EXPAT_LINK" = "x" ; then
28437             if test "$wxUSE_EXPAT" = "sys" ; then
28438                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
28439 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
28440    { (exit 1); exit 1; }; }
28441             else
28442                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
28443 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
28444                 wxUSE_EXPAT=builtin
28445             fi
28446         else
28447                         wxUSE_EXPAT=sys
28448         fi
28449     fi
28450     if test "$wxUSE_EXPAT" = "builtin" ; then
28451                 subdirs="$subdirs src/expat"
28452
28453     fi
28454 fi
28455
28456
28457
28458 if test "$wxUSE_LIBMSPACK" != "no"; then
28459     { echo "$as_me:$LINENO: checking for mspack.h" >&5
28460 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
28461 if test "${ac_cv_header_mspack_h+set}" = set; then
28462   echo $ECHO_N "(cached) $ECHO_C" >&6
28463 else
28464   cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470
28471
28472 #include <mspack.h>
28473 _ACEOF
28474 rm -f conftest.$ac_objext
28475 if { (ac_try="$ac_compile"
28476 case "(($ac_try" in
28477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478   *) ac_try_echo=$ac_try;;
28479 esac
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481   (eval "$ac_compile") 2>conftest.er1
28482   ac_status=$?
28483   grep -v '^ *+' conftest.er1 >conftest.err
28484   rm -f conftest.er1
28485   cat conftest.err >&5
28486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487   (exit $ac_status); } && {
28488          test -z "$ac_c_werror_flag" ||
28489          test ! -s conftest.err
28490        } && test -s conftest.$ac_objext; then
28491   ac_cv_header_mspack_h=yes
28492 else
28493   echo "$as_me: failed program was:" >&5
28494 sed 's/^/| /' conftest.$ac_ext >&5
28495
28496         ac_cv_header_mspack_h=no
28497 fi
28498
28499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28500 fi
28501 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28502 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
28503 if test $ac_cv_header_mspack_h = yes; then
28504   found_mspack_h=1
28505 fi
28506
28507
28508     if test "x$found_mspack_h" = "x1"; then
28509         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28510 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
28511 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28512   echo $ECHO_N "(cached) $ECHO_C" >&6
28513 else
28514   ac_check_lib_save_LIBS=$LIBS
28515 LIBS="-lmspack  $LIBS"
28516 cat >conftest.$ac_ext <<_ACEOF
28517 /* confdefs.h.  */
28518 _ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h.  */
28522
28523 /* Override any GCC internal prototype to avoid an error.
28524    Use char because int might match the return type of a GCC
28525    builtin and then its argument prototype would still apply.  */
28526 #ifdef __cplusplus
28527 extern "C"
28528 #endif
28529 char mspack_create_chm_decompressor ();
28530 int
28531 main ()
28532 {
28533 return mspack_create_chm_decompressor ();
28534   ;
28535   return 0;
28536 }
28537 _ACEOF
28538 rm -f conftest.$ac_objext conftest$ac_exeext
28539 if { (ac_try="$ac_link"
28540 case "(($ac_try" in
28541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542   *) ac_try_echo=$ac_try;;
28543 esac
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545   (eval "$ac_link") 2>conftest.er1
28546   ac_status=$?
28547   grep -v '^ *+' conftest.er1 >conftest.err
28548   rm -f conftest.er1
28549   cat conftest.err >&5
28550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551   (exit $ac_status); } && {
28552          test -z "$ac_c_werror_flag" ||
28553          test ! -s conftest.err
28554        } && test -s conftest$ac_exeext &&
28555        $as_test_x conftest$ac_exeext; then
28556   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28562 fi
28563
28564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28565       conftest$ac_exeext conftest.$ac_ext
28566 LIBS=$ac_check_lib_save_LIBS
28567 fi
28568 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28569 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28570 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28571   MSPACK_LINK=" -lmspack"
28572 fi
28573
28574     fi
28575     if test "x$MSPACK_LINK" = "x" ; then
28576         wxUSE_LIBMSPACK=no
28577     fi
28578 fi
28579
28580 if test "$wxUSE_LIBMSPACK" != "no"; then
28581     cat >>confdefs.h <<\_ACEOF
28582 #define wxUSE_LIBMSPACK 1
28583 _ACEOF
28584
28585 fi
28586
28587
28588
28589 AFMINSTALL=
28590 WIN32INSTALL=
28591
28592 TOOLKIT=
28593 TOOLKIT_INCLUDE=
28594 WIDGET_SET=
28595
28596 if test "$USE_WIN32" = 1 ; then
28597
28598 for ac_header in w32api.h
28599 do
28600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28604   echo $ECHO_N "(cached) $ECHO_C" >&6
28605 else
28606   cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h.  */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h.  */
28612
28613
28614 #include <$ac_header>
28615 _ACEOF
28616 rm -f conftest.$ac_objext
28617 if { (ac_try="$ac_compile"
28618 case "(($ac_try" in
28619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620   *) ac_try_echo=$ac_try;;
28621 esac
28622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623   (eval "$ac_compile") 2>conftest.er1
28624   ac_status=$?
28625   grep -v '^ *+' conftest.er1 >conftest.err
28626   rm -f conftest.er1
28627   cat conftest.err >&5
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); } && {
28630          test -z "$ac_c_werror_flag" ||
28631          test ! -s conftest.err
28632        } && test -s conftest.$ac_objext; then
28633   eval "$as_ac_Header=yes"
28634 else
28635   echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28637
28638         eval "$as_ac_Header=no"
28639 fi
28640
28641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28642 fi
28643 ac_res=`eval echo '${'$as_ac_Header'}'`
28644                { echo "$as_me:$LINENO: result: $ac_res" >&5
28645 echo "${ECHO_T}$ac_res" >&6; }
28646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28647   cat >>confdefs.h <<_ACEOF
28648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28649 _ACEOF
28650
28651 fi
28652
28653 done
28654
28655     { echo "$as_me:$LINENO: checking for windows.h" >&5
28656 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28657 if test "${ac_cv_header_windows_h+set}" = set; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666
28667
28668 #include <windows.h>
28669 _ACEOF
28670 rm -f conftest.$ac_objext
28671 if { (ac_try="$ac_compile"
28672 case "(($ac_try" in
28673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674   *) ac_try_echo=$ac_try;;
28675 esac
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677   (eval "$ac_compile") 2>conftest.er1
28678   ac_status=$?
28679   grep -v '^ *+' conftest.er1 >conftest.err
28680   rm -f conftest.er1
28681   cat conftest.err >&5
28682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683   (exit $ac_status); } && {
28684          test -z "$ac_c_werror_flag" ||
28685          test ! -s conftest.err
28686        } && test -s conftest.$ac_objext; then
28687   ac_cv_header_windows_h=yes
28688 else
28689   echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692         ac_cv_header_windows_h=no
28693 fi
28694
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696 fi
28697 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28698 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28699 if test $ac_cv_header_windows_h = yes; then
28700   :
28701 else
28702
28703         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28704 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28705    { (exit 1); exit 1; }; }
28706
28707 fi
28708
28709
28710
28711             case "${host}" in
28712         x86_64-*-mingw32* )
28713                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28714
28715                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
28716         ;;
28717         * )
28718             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28719         ;;
28720     esac
28721     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28722         LIBS="$LIBS -loleacc"
28723     fi
28724
28725     case "${host}" in
28726         *-*-cygwin* )
28727                         LIBS="$LIBS -lkernel32 -luser32"
28728     esac
28729
28730         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28731     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28732
28733                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28734
28735         WIN32INSTALL=win32install
28736
28737         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28738 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28739 if test "${ac_cv_header_pbt_h+set}" = set; then
28740   echo $ECHO_N "(cached) $ECHO_C" >&6
28741 else
28742   cat >conftest.$ac_ext <<_ACEOF
28743 /* confdefs.h.  */
28744 _ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h.  */
28748
28749
28750 #include <pbt.h>
28751 _ACEOF
28752 rm -f conftest.$ac_objext
28753 if { (ac_try="$ac_compile"
28754 case "(($ac_try" in
28755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756   *) ac_try_echo=$ac_try;;
28757 esac
28758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759   (eval "$ac_compile") 2>conftest.er1
28760   ac_status=$?
28761   grep -v '^ *+' conftest.er1 >conftest.err
28762   rm -f conftest.er1
28763   cat conftest.err >&5
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); } && {
28766          test -z "$ac_c_werror_flag" ||
28767          test ! -s conftest.err
28768        } && test -s conftest.$ac_objext; then
28769   ac_cv_header_pbt_h=yes
28770 else
28771   echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28773
28774         ac_cv_header_pbt_h=no
28775 fi
28776
28777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28778 fi
28779 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28780 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28781 if test $ac_cv_header_pbt_h = yes; then
28782   :
28783 else
28784   cat >>confdefs.h <<\_ACEOF
28785 #define NEED_PBT_H 1
28786 _ACEOF
28787
28788 fi
28789
28790
28791 fi
28792
28793 if test "$wxUSE_GUI" = "yes"; then
28794     USE_GUI=1
28795
28796     GUI_TK_LIBRARY=
28797
28798     WXGTK12=
28799     WXGTK127=
28800     WXGTK2=
28801     WXGPE=
28802
28803     if test "$wxUSE_OLD_COCOA" = 1 ; then
28804         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28805             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28806 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28807             wxUSE_PRINTING_ARCHITECTURE=no
28808         fi
28809         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28810             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28811 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28812             wxUSE_DRAG_AND_DROP=no
28813         fi
28814         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28815             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28816 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28817             wxUSE_DRAGIMAGE=no
28818         fi
28819     fi
28820
28821     if test "$wxUSE_MSW" = 1 ; then
28822         TOOLKIT=MSW
28823         GUIDIST=MSW_DIST
28824
28825                 case "${host}" in
28826             *-*-mingw32* )
28827                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28828         esac
28829     fi
28830
28831     if test "$wxUSE_GTK" = 1; then
28832                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28833 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28834
28835         gtk_version_cached=1
28836         if test "${wx_cv_lib_gtk+set}" = set; then
28837   echo $ECHO_N "(cached) $ECHO_C" >&6
28838 else
28839
28840                                                 gtk_version_cached=0
28841                 { echo "$as_me:$LINENO: result: " >&5
28842 echo "${ECHO_T}" >&6; }
28843
28844                                                 GTK_MODULES=
28845                 if test "$wxUSE_THREADS" = "yes"; then
28846                     GTK_MODULES=gthread
28847                 fi
28848
28849                                 wx_cv_lib_gtk=
28850                 if test "x$wxGTK_VERSION" != "x1"
28851                 then
28852                                                                                 case "${host}" in
28853                         *-*-solaris2* )
28854                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28855                                 enable_gtktest=no
28856                             fi
28857                     esac
28858
28859                     # Check whether --enable-gtktest was given.
28860 if test "${enable_gtktest+set}" = set; then
28861   enableval=$enable_gtktest;
28862 else
28863   enable_gtktest=yes
28864 fi
28865
28866
28867   pkg_config_args=gtk+-2.0
28868   for module in . $GTK_MODULES
28869   do
28870       case "$module" in
28871          gthread)
28872              pkg_config_args="$pkg_config_args gthread-2.0"
28873          ;;
28874       esac
28875   done
28876
28877   no_gtk=""
28878
28879   # Extract the first word of "pkg-config", so it can be a program name with args.
28880 set dummy pkg-config; ac_word=$2
28881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28884   echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886   case $PKG_CONFIG in
28887   [\\/]* | ?:[\\/]*)
28888   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28889   ;;
28890   *)
28891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28892 for as_dir in $PATH
28893 do
28894   IFS=$as_save_IFS
28895   test -z "$as_dir" && as_dir=.
28896   for ac_exec_ext in '' $ac_executable_extensions; do
28897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28898     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28900     break 2
28901   fi
28902 done
28903 done
28904 IFS=$as_save_IFS
28905
28906   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28907   ;;
28908 esac
28909 fi
28910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28911 if test -n "$PKG_CONFIG"; then
28912   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28913 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28914 else
28915   { echo "$as_me:$LINENO: result: no" >&5
28916 echo "${ECHO_T}no" >&6; }
28917 fi
28918
28919
28920
28921   if test x$PKG_CONFIG != xno ; then
28922     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28923       :
28924     else
28925       echo "*** pkg-config too old; version 0.7 or better required."
28926       no_gtk=yes
28927       PKG_CONFIG=no
28928     fi
28929   else
28930     no_gtk=yes
28931   fi
28932
28933   min_gtk_version=2.4.0
28934   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28935 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28936
28937   if test x$PKG_CONFIG != xno ; then
28938     ## don't try to run the test against uninstalled libtool libs
28939     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28940           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28941           enable_gtktest=no
28942     fi
28943
28944     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28945           :
28946     else
28947           no_gtk=yes
28948     fi
28949   fi
28950
28951   if test x"$no_gtk" = x ; then
28952     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28953     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28954     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28955            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28956     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28957            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28958     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28959            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28960     if test "x$enable_gtktest" = "xyes" ; then
28961       ac_save_CFLAGS="$CFLAGS"
28962       ac_save_LIBS="$LIBS"
28963       CFLAGS="$CFLAGS $GTK_CFLAGS"
28964       LIBS="$GTK_LIBS $LIBS"
28965       rm -f conf.gtktest
28966       if test "$cross_compiling" = yes; then
28967   echo $ac_n "cross compiling; assumed OK... $ac_c"
28968 else
28969   cat >conftest.$ac_ext <<_ACEOF
28970 /* confdefs.h.  */
28971 _ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h.  */
28975
28976 #include <gtk/gtk.h>
28977 #include <stdio.h>
28978 #include <stdlib.h>
28979
28980 int
28981 main ()
28982 {
28983   int major, minor, micro;
28984   char *tmp_version;
28985
28986   system ("touch conf.gtktest");
28987
28988   /* HP/UX 9 (%@#!) writes to sscanf strings */
28989   tmp_version = g_strdup("$min_gtk_version");
28990   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28991      printf("%s, bad version string\n", "$min_gtk_version");
28992      exit(1);
28993    }
28994
28995   if ((gtk_major_version != $gtk_config_major_version) ||
28996       (gtk_minor_version != $gtk_config_minor_version) ||
28997       (gtk_micro_version != $gtk_config_micro_version))
28998     {
28999       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29000              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29001              gtk_major_version, gtk_minor_version, gtk_micro_version);
29002       printf ("*** was found! If pkg-config was correct, then it is best\n");
29003       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29004       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29005       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29006       printf("*** required on your system.\n");
29007       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29008       printf("*** to point to the correct configuration files\n");
29009     }
29010   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29011            (gtk_minor_version != GTK_MINOR_VERSION) ||
29012            (gtk_micro_version != GTK_MICRO_VERSION))
29013     {
29014       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29015              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29016       printf("*** library (version %d.%d.%d)\n",
29017              gtk_major_version, gtk_minor_version, gtk_micro_version);
29018     }
29019   else
29020     {
29021       if ((gtk_major_version > major) ||
29022         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29023         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29024       {
29025         return 0;
29026        }
29027      else
29028       {
29029         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29030                gtk_major_version, gtk_minor_version, gtk_micro_version);
29031         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29032                major, minor, micro);
29033         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29034         printf("***\n");
29035         printf("*** If you have already installed a sufficiently new version, this error\n");
29036         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29037         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29038         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29039         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29040         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29041         printf("*** so that the correct libraries are found at run-time))\n");
29042       }
29043     }
29044   return 1;
29045 }
29046
29047 _ACEOF
29048 rm -f conftest$ac_exeext
29049 if { (ac_try="$ac_link"
29050 case "(($ac_try" in
29051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052   *) ac_try_echo=$ac_try;;
29053 esac
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055   (eval "$ac_link") 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29059   { (case "(($ac_try" in
29060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061   *) ac_try_echo=$ac_try;;
29062 esac
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064   (eval "$ac_try") 2>&5
29065   ac_status=$?
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); }; }; then
29068   :
29069 else
29070   echo "$as_me: program exited with status $ac_status" >&5
29071 echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29073
29074 ( exit $ac_status )
29075 no_gtk=yes
29076 fi
29077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29078 fi
29079
29080
29081        CFLAGS="$ac_save_CFLAGS"
29082        LIBS="$ac_save_LIBS"
29083      fi
29084   fi
29085   if test "x$no_gtk" = x ; then
29086      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29087 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
29088      wx_cv_lib_gtk=2.0
29089   else
29090      { echo "$as_me:$LINENO: result: no" >&5
29091 echo "${ECHO_T}no" >&6; }
29092      if test "$PKG_CONFIG" = "no" ; then
29093        echo "*** A new enough version of pkg-config was not found."
29094        echo "*** See http://pkgconfig.sourceforge.net"
29095      else
29096        if test -f conf.gtktest ; then
29097         :
29098        else
29099           echo "*** Could not run GTK+ test program, checking why..."
29100           ac_save_CFLAGS="$CFLAGS"
29101           ac_save_LIBS="$LIBS"
29102           CFLAGS="$CFLAGS $GTK_CFLAGS"
29103           LIBS="$LIBS $GTK_LIBS"
29104           cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h.  */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h.  */
29110
29111 #include <gtk/gtk.h>
29112 #include <stdio.h>
29113
29114 int
29115 main ()
29116 {
29117  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29118   ;
29119   return 0;
29120 }
29121 _ACEOF
29122 rm -f conftest.$ac_objext conftest$ac_exeext
29123 if { (ac_try="$ac_link"
29124 case "(($ac_try" in
29125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126   *) ac_try_echo=$ac_try;;
29127 esac
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129   (eval "$ac_link") 2>conftest.er1
29130   ac_status=$?
29131   grep -v '^ *+' conftest.er1 >conftest.err
29132   rm -f conftest.er1
29133   cat conftest.err >&5
29134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); } && {
29136          test -z "$ac_c_werror_flag" ||
29137          test ! -s conftest.err
29138        } && test -s conftest$ac_exeext &&
29139        $as_test_x conftest$ac_exeext; then
29140    echo "*** The test program compiled, but did not run. This usually means"
29141           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29142           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29143           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29144           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29145           echo "*** is required on your system"
29146           echo "***"
29147           echo "*** If you have an old version installed, it is best to remove it, although"
29148           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29149 else
29150   echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29152
29153          echo "*** The test program failed to compile or link. See the file config.log for the"
29154           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29155 fi
29156
29157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29158       conftest$ac_exeext conftest.$ac_ext
29159           CFLAGS="$ac_save_CFLAGS"
29160           LIBS="$ac_save_LIBS"
29161        fi
29162      fi
29163      GTK_CFLAGS=""
29164      GTK_LIBS=""
29165      :
29166   fi
29167
29168
29169   rm -f conf.gtktest
29170
29171
29172                                         case "${host}" in
29173                         *-*-solaris2* )
29174                             if test "$wxUSE_SHARED" != "yes"; then
29175                                 GTK_LIBS="$GTK_LIBS -lX11"
29176                             fi
29177                     esac
29178                 fi
29179
29180                                 if test -z "$wx_cv_lib_gtk"; then
29181                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
29182
29183 # Check whether --with-gtk-prefix was given.
29184 if test "${with_gtk_prefix+set}" = set; then
29185   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29186 else
29187   gtk_config_prefix=""
29188 fi
29189
29190
29191 # Check whether --with-gtk-exec-prefix was given.
29192 if test "${with_gtk_exec_prefix+set}" = set; then
29193   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29194 else
29195   gtk_config_exec_prefix=""
29196 fi
29197
29198 # Check whether --enable-gtktest was given.
29199 if test "${enable_gtktest+set}" = set; then
29200   enableval=$enable_gtktest;
29201 else
29202   enable_gtktest=yes
29203 fi
29204
29205
29206   for module in . $GTK_MODULES
29207   do
29208       case "$module" in
29209          gthread)
29210              gtk_config_args="$gtk_config_args gthread"
29211          ;;
29212       esac
29213   done
29214
29215   if test x$gtk_config_exec_prefix != x ; then
29216      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29217      if test x${GTK_CONFIG+set} != xset ; then
29218         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29219      fi
29220   fi
29221   if test x$gtk_config_prefix != x ; then
29222      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29223      if test x${GTK_CONFIG+set} != xset ; then
29224         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29225      fi
29226   fi
29227
29228   # Extract the first word of "gtk-config", so it can be a program name with args.
29229 set dummy gtk-config; ac_word=$2
29230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29232 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29233   echo $ECHO_N "(cached) $ECHO_C" >&6
29234 else
29235   case $GTK_CONFIG in
29236   [\\/]* | ?:[\\/]*)
29237   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29238   ;;
29239   *)
29240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29241 for as_dir in $PATH
29242 do
29243   IFS=$as_save_IFS
29244   test -z "$as_dir" && as_dir=.
29245   for ac_exec_ext in '' $ac_executable_extensions; do
29246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29247     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29249     break 2
29250   fi
29251 done
29252 done
29253 IFS=$as_save_IFS
29254
29255   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29256   ;;
29257 esac
29258 fi
29259 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29260 if test -n "$GTK_CONFIG"; then
29261   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29262 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29263 else
29264   { echo "$as_me:$LINENO: result: no" >&5
29265 echo "${ECHO_T}no" >&6; }
29266 fi
29267
29268
29269   min_gtk_version=1.2.7
29270   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29271 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29272   no_gtk=""
29273   if test "$GTK_CONFIG" = "no" ; then
29274     no_gtk=yes
29275   else
29276     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29277     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29278     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29279            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29280     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29281            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29282     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29283            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29284     if test "x$enable_gtktest" = "xyes" ; then
29285       ac_save_CFLAGS="$CFLAGS"
29286       ac_save_LIBS="$LIBS"
29287       CFLAGS="$CFLAGS $GTK_CFLAGS"
29288       LIBS="$GTK_LIBS $LIBS"
29289       rm -f conf.gtktest
29290       if test "$cross_compiling" = yes; then
29291   echo $ac_n "cross compiling; assumed OK... $ac_c"
29292 else
29293   cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299
29300 #include <gtk/gtk.h>
29301 #include <stdio.h>
29302 #include <stdlib.h>
29303
29304 int
29305 main ()
29306 {
29307   int major, minor, micro;
29308   char *tmp_version;
29309
29310   system ("touch conf.gtktest");
29311
29312   /* HP/UX 9 (%@#!) writes to sscanf strings */
29313   tmp_version = g_strdup("$min_gtk_version");
29314   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29315      printf("%s, bad version string\n", "$min_gtk_version");
29316      exit(1);
29317    }
29318
29319   if ((gtk_major_version != $gtk_config_major_version) ||
29320       (gtk_minor_version != $gtk_config_minor_version) ||
29321       (gtk_micro_version != $gtk_config_micro_version))
29322     {
29323       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29324              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29325              gtk_major_version, gtk_minor_version, gtk_micro_version);
29326       printf ("*** was found! If gtk-config was correct, then it is best\n");
29327       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29328       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29329       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29330       printf("*** required on your system.\n");
29331       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29332       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29333       printf("*** before re-running configure\n");
29334     }
29335 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29336   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29337            (gtk_minor_version != GTK_MINOR_VERSION) ||
29338            (gtk_micro_version != GTK_MICRO_VERSION))
29339     {
29340       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29341              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29342       printf("*** library (version %d.%d.%d)\n",
29343              gtk_major_version, gtk_minor_version, gtk_micro_version);
29344     }
29345 #endif /* defined (GTK_MAJOR_VERSION) ... */
29346   else
29347     {
29348       if ((gtk_major_version > major) ||
29349         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29350         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29351       {
29352         return 0;
29353        }
29354      else
29355       {
29356         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29357                gtk_major_version, gtk_minor_version, gtk_micro_version);
29358         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29359                major, minor, micro);
29360         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29361         printf("***\n");
29362         printf("*** If you have already installed a sufficiently new version, this error\n");
29363         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29364         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29365         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29366         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29367         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29368         printf("*** so that the correct libraries are found at run-time))\n");
29369       }
29370     }
29371   return 1;
29372 }
29373
29374 _ACEOF
29375 rm -f conftest$ac_exeext
29376 if { (ac_try="$ac_link"
29377 case "(($ac_try" in
29378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379   *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382   (eval "$ac_link") 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29386   { (case "(($ac_try" in
29387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388   *) ac_try_echo=$ac_try;;
29389 esac
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391   (eval "$ac_try") 2>&5
29392   ac_status=$?
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); }; }; then
29395   :
29396 else
29397   echo "$as_me: program exited with status $ac_status" >&5
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29400
29401 ( exit $ac_status )
29402 no_gtk=yes
29403 fi
29404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29405 fi
29406
29407
29408        CFLAGS="$ac_save_CFLAGS"
29409        LIBS="$ac_save_LIBS"
29410      fi
29411   fi
29412   if test "x$no_gtk" = x ; then
29413      { echo "$as_me:$LINENO: result: yes" >&5
29414 echo "${ECHO_T}yes" >&6; }
29415      wx_cv_lib_gtk=1.2.7
29416   else
29417      { echo "$as_me:$LINENO: result: no" >&5
29418 echo "${ECHO_T}no" >&6; }
29419      if test "$GTK_CONFIG" = "no" ; then
29420        echo "*** The gtk-config script installed by GTK could not be found"
29421        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29422        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29423        echo "*** full path to gtk-config."
29424      else
29425        if test -f conf.gtktest ; then
29426         :
29427        else
29428           echo "*** Could not run GTK test program, checking why..."
29429           CFLAGS="$CFLAGS $GTK_CFLAGS"
29430           LIBS="$LIBS $GTK_LIBS"
29431           cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437
29438 #include <gtk/gtk.h>
29439 #include <stdio.h>
29440
29441 int
29442 main ()
29443 {
29444  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29445   ;
29446   return 0;
29447 }
29448 _ACEOF
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (ac_try="$ac_link"
29451 case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_link") 2>conftest.er1
29457   ac_status=$?
29458   grep -v '^ *+' conftest.er1 >conftest.err
29459   rm -f conftest.er1
29460   cat conftest.err >&5
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); } && {
29463          test -z "$ac_c_werror_flag" ||
29464          test ! -s conftest.err
29465        } && test -s conftest$ac_exeext &&
29466        $as_test_x conftest$ac_exeext; then
29467    echo "*** The test program compiled, but did not run. This usually means"
29468           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29469           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29470           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29471           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29472           echo "*** is required on your system"
29473           echo "***"
29474           echo "*** If you have an old version installed, it is best to remove it, although"
29475           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29476           echo "***"
29477           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29478           echo "*** came with the system with the command"
29479           echo "***"
29480           echo "***    rpm --erase --nodeps gtk gtk-devel"
29481 else
29482   echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485          echo "*** The test program failed to compile or link. See the file config.log for the"
29486           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29487           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29488           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29489 fi
29490
29491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29492       conftest$ac_exeext conftest.$ac_ext
29493           CFLAGS="$ac_save_CFLAGS"
29494           LIBS="$ac_save_LIBS"
29495        fi
29496      fi
29497      GTK_CFLAGS=""
29498      GTK_LIBS=""
29499      :
29500   fi
29501
29502
29503   rm -f conf.gtktest
29504
29505
29506                         if test -z "$wx_cv_lib_gtk"; then
29507
29508 # Check whether --with-gtk-prefix was given.
29509 if test "${with_gtk_prefix+set}" = set; then
29510   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29511 else
29512   gtk_config_prefix=""
29513 fi
29514
29515
29516 # Check whether --with-gtk-exec-prefix was given.
29517 if test "${with_gtk_exec_prefix+set}" = set; then
29518   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29519 else
29520   gtk_config_exec_prefix=""
29521 fi
29522
29523 # Check whether --enable-gtktest was given.
29524 if test "${enable_gtktest+set}" = set; then
29525   enableval=$enable_gtktest;
29526 else
29527   enable_gtktest=yes
29528 fi
29529
29530
29531   for module in . $GTK_MODULES
29532   do
29533       case "$module" in
29534          gthread)
29535              gtk_config_args="$gtk_config_args gthread"
29536          ;;
29537       esac
29538   done
29539
29540   if test x$gtk_config_exec_prefix != x ; then
29541      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29542      if test x${GTK_CONFIG+set} != xset ; then
29543         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29544      fi
29545   fi
29546   if test x$gtk_config_prefix != x ; then
29547      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29548      if test x${GTK_CONFIG+set} != xset ; then
29549         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29550      fi
29551   fi
29552
29553   # Extract the first word of "gtk-config", so it can be a program name with args.
29554 set dummy gtk-config; ac_word=$2
29555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29557 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29558   echo $ECHO_N "(cached) $ECHO_C" >&6
29559 else
29560   case $GTK_CONFIG in
29561   [\\/]* | ?:[\\/]*)
29562   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29563   ;;
29564   *)
29565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29566 for as_dir in $PATH
29567 do
29568   IFS=$as_save_IFS
29569   test -z "$as_dir" && as_dir=.
29570   for ac_exec_ext in '' $ac_executable_extensions; do
29571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29572     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29574     break 2
29575   fi
29576 done
29577 done
29578 IFS=$as_save_IFS
29579
29580   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29581   ;;
29582 esac
29583 fi
29584 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29585 if test -n "$GTK_CONFIG"; then
29586   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29587 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29588 else
29589   { echo "$as_me:$LINENO: result: no" >&5
29590 echo "${ECHO_T}no" >&6; }
29591 fi
29592
29593
29594   min_gtk_version=1.2.3
29595   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29596 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29597   no_gtk=""
29598   if test "$GTK_CONFIG" = "no" ; then
29599     no_gtk=yes
29600   else
29601     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29602     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29603     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29604            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29605     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29606            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29607     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29608            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29609     if test "x$enable_gtktest" = "xyes" ; then
29610       ac_save_CFLAGS="$CFLAGS"
29611       ac_save_LIBS="$LIBS"
29612       CFLAGS="$CFLAGS $GTK_CFLAGS"
29613       LIBS="$GTK_LIBS $LIBS"
29614       rm -f conf.gtktest
29615       if test "$cross_compiling" = yes; then
29616   echo $ac_n "cross compiling; assumed OK... $ac_c"
29617 else
29618   cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624
29625 #include <gtk/gtk.h>
29626 #include <stdio.h>
29627 #include <stdlib.h>
29628
29629 int
29630 main ()
29631 {
29632   int major, minor, micro;
29633   char *tmp_version;
29634
29635   system ("touch conf.gtktest");
29636
29637   /* HP/UX 9 (%@#!) writes to sscanf strings */
29638   tmp_version = g_strdup("$min_gtk_version");
29639   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29640      printf("%s, bad version string\n", "$min_gtk_version");
29641      exit(1);
29642    }
29643
29644   if ((gtk_major_version != $gtk_config_major_version) ||
29645       (gtk_minor_version != $gtk_config_minor_version) ||
29646       (gtk_micro_version != $gtk_config_micro_version))
29647     {
29648       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29649              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29650              gtk_major_version, gtk_minor_version, gtk_micro_version);
29651       printf ("*** was found! If gtk-config was correct, then it is best\n");
29652       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29653       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29654       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29655       printf("*** required on your system.\n");
29656       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29657       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29658       printf("*** before re-running configure\n");
29659     }
29660 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29661   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29662            (gtk_minor_version != GTK_MINOR_VERSION) ||
29663            (gtk_micro_version != GTK_MICRO_VERSION))
29664     {
29665       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29666              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29667       printf("*** library (version %d.%d.%d)\n",
29668              gtk_major_version, gtk_minor_version, gtk_micro_version);
29669     }
29670 #endif /* defined (GTK_MAJOR_VERSION) ... */
29671   else
29672     {
29673       if ((gtk_major_version > major) ||
29674         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29675         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29676       {
29677         return 0;
29678        }
29679      else
29680       {
29681         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29682                gtk_major_version, gtk_minor_version, gtk_micro_version);
29683         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29684                major, minor, micro);
29685         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29686         printf("***\n");
29687         printf("*** If you have already installed a sufficiently new version, this error\n");
29688         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29689         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29690         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29691         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29692         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29693         printf("*** so that the correct libraries are found at run-time))\n");
29694       }
29695     }
29696   return 1;
29697 }
29698
29699 _ACEOF
29700 rm -f conftest$ac_exeext
29701 if { (ac_try="$ac_link"
29702 case "(($ac_try" in
29703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704   *) ac_try_echo=$ac_try;;
29705 esac
29706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707   (eval "$ac_link") 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29711   { (case "(($ac_try" in
29712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713   *) ac_try_echo=$ac_try;;
29714 esac
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716   (eval "$ac_try") 2>&5
29717   ac_status=$?
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); }; }; then
29720   :
29721 else
29722   echo "$as_me: program exited with status $ac_status" >&5
29723 echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29725
29726 ( exit $ac_status )
29727 no_gtk=yes
29728 fi
29729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29730 fi
29731
29732
29733        CFLAGS="$ac_save_CFLAGS"
29734        LIBS="$ac_save_LIBS"
29735      fi
29736   fi
29737   if test "x$no_gtk" = x ; then
29738      { echo "$as_me:$LINENO: result: yes" >&5
29739 echo "${ECHO_T}yes" >&6; }
29740      wx_cv_lib_gtk=1.2.3
29741   else
29742      { echo "$as_me:$LINENO: result: no" >&5
29743 echo "${ECHO_T}no" >&6; }
29744      if test "$GTK_CONFIG" = "no" ; then
29745        echo "*** The gtk-config script installed by GTK could not be found"
29746        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29747        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29748        echo "*** full path to gtk-config."
29749      else
29750        if test -f conf.gtktest ; then
29751         :
29752        else
29753           echo "*** Could not run GTK test program, checking why..."
29754           CFLAGS="$CFLAGS $GTK_CFLAGS"
29755           LIBS="$LIBS $GTK_LIBS"
29756           cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762
29763 #include <gtk/gtk.h>
29764 #include <stdio.h>
29765
29766 int
29767 main ()
29768 {
29769  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29770   ;
29771   return 0;
29772 }
29773 _ACEOF
29774 rm -f conftest.$ac_objext conftest$ac_exeext
29775 if { (ac_try="$ac_link"
29776 case "(($ac_try" in
29777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778   *) ac_try_echo=$ac_try;;
29779 esac
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781   (eval "$ac_link") 2>conftest.er1
29782   ac_status=$?
29783   grep -v '^ *+' conftest.er1 >conftest.err
29784   rm -f conftest.er1
29785   cat conftest.err >&5
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); } && {
29788          test -z "$ac_c_werror_flag" ||
29789          test ! -s conftest.err
29790        } && test -s conftest$ac_exeext &&
29791        $as_test_x conftest$ac_exeext; then
29792    echo "*** The test program compiled, but did not run. This usually means"
29793           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29794           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29795           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29796           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29797           echo "*** is required on your system"
29798           echo "***"
29799           echo "*** If you have an old version installed, it is best to remove it, although"
29800           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29801           echo "***"
29802           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29803           echo "*** came with the system with the command"
29804           echo "***"
29805           echo "***    rpm --erase --nodeps gtk gtk-devel"
29806 else
29807   echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29809
29810          echo "*** The test program failed to compile or link. See the file config.log for the"
29811           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29812           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29813           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29814 fi
29815
29816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29817       conftest$ac_exeext conftest.$ac_ext
29818           CFLAGS="$ac_save_CFLAGS"
29819           LIBS="$ac_save_LIBS"
29820        fi
29821      fi
29822      GTK_CFLAGS=""
29823      GTK_LIBS=""
29824      :
29825   fi
29826
29827
29828   rm -f conf.gtktest
29829
29830                         fi
29831                     fi
29832                 fi
29833
29834                 if test -z "$wx_cv_lib_gtk"; then
29835                                         wx_cv_lib_gtk=none
29836                 else
29837                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29838                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29839                 fi
29840
29841
29842 fi
29843
29844
29845                         if test "$gtk_version_cached" = 1; then
29846             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29847 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29848         fi
29849
29850         case "$wx_cv_lib_gtk" in
29851             2.0)    WXGTK2=1
29852                     TOOLKIT_VERSION=2
29853                     ;;
29854             1.2.7)  WXGTK127=1
29855                     WXGTK12=1
29856                     ;;
29857             1.2.3)  WXGTK12=1
29858                     ;;
29859             *)      { { echo "$as_me:$LINENO: error:
29860 The development files for GTK+ were not found. For GTK+ 2, please
29861 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29862 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29863 and that the version is 1.2.3 or above. Also check that the
29864 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29865 --libs' are in the LD_LIBRARY_PATH or equivalent.
29866                             " >&5
29867 echo "$as_me: error:
29868 The development files for GTK+ were not found. For GTK+ 2, please
29869 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29870 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29871 and that the version is 1.2.3 or above. Also check that the
29872 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29873 --libs' are in the LD_LIBRARY_PATH or equivalent.
29874                             " >&2;}
29875    { (exit 1); exit 1; }; }
29876                     ;;
29877         esac
29878
29879         if test "$WXGTK2" = 1; then
29880             save_CFLAGS="$CFLAGS"
29881             save_LIBS="$LIBS"
29882             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29883             LIBS="$LIBS $wx_cv_libs_gtk"
29884
29885                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
29886 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
29887             cat >conftest.$ac_ext <<_ACEOF
29888 /* confdefs.h.  */
29889 _ACEOF
29890 cat confdefs.h >>conftest.$ac_ext
29891 cat >>conftest.$ac_ext <<_ACEOF
29892 /* end confdefs.h.  */
29893
29894                             #include <gtk/gtk.h>
29895
29896 int
29897 main ()
29898 {
29899
29900                             #if !GTK_CHECK_VERSION(2,18,0)
29901                             Not GTK+ 2.18
29902                             #endif
29903
29904   ;
29905   return 0;
29906 }
29907 _ACEOF
29908 rm -f conftest.$ac_objext
29909 if { (ac_try="$ac_compile"
29910 case "(($ac_try" in
29911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912   *) ac_try_echo=$ac_try;;
29913 esac
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915   (eval "$ac_compile") 2>conftest.er1
29916   ac_status=$?
29917   grep -v '^ *+' conftest.er1 >conftest.err
29918   rm -f conftest.er1
29919   cat conftest.err >&5
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); } && {
29922          test -z "$ac_c_werror_flag" ||
29923          test ! -s conftest.err
29924        } && test -s conftest.$ac_objext; then
29925
29926                             cat >>confdefs.h <<\_ACEOF
29927 #define __WXGTK218__ 1
29928 _ACEOF
29929
29930                             cat >>confdefs.h <<\_ACEOF
29931 #define __WXGTK210__ 1
29932 _ACEOF
29933
29934                             cat >>confdefs.h <<\_ACEOF
29935 #define __WXGTK26__ 1
29936 _ACEOF
29937
29938                             { echo "$as_me:$LINENO: result: yes" >&5
29939 echo "${ECHO_T}yes" >&6; }
29940                             ac_wxgtk218=1
29941
29942 else
29943   echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29945
29946
29947                             { echo "$as_me:$LINENO: result: no" >&5
29948 echo "${ECHO_T}no" >&6; }
29949                             ac_wxgtk218=0
29950
29951 fi
29952
29953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29954
29955             if test "$ac_wxgtk218" = 0; then
29956                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29957 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29958                 cat >conftest.$ac_ext <<_ACEOF
29959 /* confdefs.h.  */
29960 _ACEOF
29961 cat confdefs.h >>conftest.$ac_ext
29962 cat >>conftest.$ac_ext <<_ACEOF
29963 /* end confdefs.h.  */
29964
29965                                 #include <gtk/gtk.h>
29966
29967 int
29968 main ()
29969 {
29970
29971                                 #if !GTK_CHECK_VERSION(2,10,0)
29972                                 Not GTK+ 2.10
29973                                 #endif
29974
29975   ;
29976   return 0;
29977 }
29978 _ACEOF
29979 rm -f conftest.$ac_objext
29980 if { (ac_try="$ac_compile"
29981 case "(($ac_try" in
29982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983   *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986   (eval "$ac_compile") 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } && {
29993          test -z "$ac_c_werror_flag" ||
29994          test ! -s conftest.err
29995        } && test -s conftest.$ac_objext; then
29996
29997                                 cat >>confdefs.h <<\_ACEOF
29998 #define __WXGTK210__ 1
29999 _ACEOF
30000
30001                                 cat >>confdefs.h <<\_ACEOF
30002 #define __WXGTK26__ 1
30003 _ACEOF
30004
30005                                 { echo "$as_me:$LINENO: result: yes" >&5
30006 echo "${ECHO_T}yes" >&6; }
30007                                 ac_wxgtk210=1
30008
30009 else
30010   echo "$as_me: failed program was:" >&5
30011 sed 's/^/| /' conftest.$ac_ext >&5
30012
30013
30014                                 { echo "$as_me:$LINENO: result: no" >&5
30015 echo "${ECHO_T}no" >&6; }
30016                                 ac_wxgtk210=0
30017
30018 fi
30019
30020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30021
30022                 if test "$ac_wxgtk210" = 0; then
30023                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30024 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30025                     cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031
30032                                     #include <gtk/gtk.h>
30033
30034 int
30035 main ()
30036 {
30037
30038                                     #if !GTK_CHECK_VERSION(2,6,0)
30039                                     Not GTK+ 2.6
30040                                     #endif
30041
30042   ;
30043   return 0;
30044 }
30045 _ACEOF
30046 rm -f conftest.$ac_objext
30047 if { (ac_try="$ac_compile"
30048 case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053   (eval "$ac_compile") 2>conftest.er1
30054   ac_status=$?
30055   grep -v '^ *+' conftest.er1 >conftest.err
30056   rm -f conftest.er1
30057   cat conftest.err >&5
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); } && {
30060          test -z "$ac_c_werror_flag" ||
30061          test ! -s conftest.err
30062        } && test -s conftest.$ac_objext; then
30063
30064                                     cat >>confdefs.h <<\_ACEOF
30065 #define __WXGTK26__ 1
30066 _ACEOF
30067
30068                                     { echo "$as_me:$LINENO: result: yes" >&5
30069 echo "${ECHO_T}yes" >&6; }
30070                                     ac_wxgtk26=1
30071
30072 else
30073   echo "$as_me: failed program was:" >&5
30074 sed 's/^/| /' conftest.$ac_ext >&5
30075
30076
30077                                     { echo "$as_me:$LINENO: result: no" >&5
30078 echo "${ECHO_T}no" >&6; }
30079                                     ac_wxgtk26=0
30080
30081 fi
30082
30083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30084                 fi
30085             fi
30086
30087             CFLAGS="$save_CFLAGS"
30088             LIBS="$save_LIBS"
30089         else
30090             if test "$wxUSE_UNICODE" = "yes"; then
30091                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30092 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
30093                 wxUSE_UNICODE=no
30094             fi
30095
30096                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30097 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
30098 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
30099   echo $ECHO_N "(cached) $ECHO_C" >&6
30100 else
30101   ac_check_lib_save_LIBS=$LIBS
30102 LIBS="-lgdk  $LIBS"
30103 cat >conftest.$ac_ext <<_ACEOF
30104 /* confdefs.h.  */
30105 _ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h.  */
30109
30110 /* Override any GCC internal prototype to avoid an error.
30111    Use char because int might match the return type of a GCC
30112    builtin and then its argument prototype would still apply.  */
30113 #ifdef __cplusplus
30114 extern "C"
30115 #endif
30116 char gdk_im_open ();
30117 int
30118 main ()
30119 {
30120 return gdk_im_open ();
30121   ;
30122   return 0;
30123 }
30124 _ACEOF
30125 rm -f conftest.$ac_objext conftest$ac_exeext
30126 if { (ac_try="$ac_link"
30127 case "(($ac_try" in
30128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129   *) ac_try_echo=$ac_try;;
30130 esac
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132   (eval "$ac_link") 2>conftest.er1
30133   ac_status=$?
30134   grep -v '^ *+' conftest.er1 >conftest.err
30135   rm -f conftest.er1
30136   cat conftest.err >&5
30137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138   (exit $ac_status); } && {
30139          test -z "$ac_c_werror_flag" ||
30140          test ! -s conftest.err
30141        } && test -s conftest$ac_exeext &&
30142        $as_test_x conftest$ac_exeext; then
30143   ac_cv_lib_gdk_gdk_im_open=yes
30144 else
30145   echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30147
30148         ac_cv_lib_gdk_gdk_im_open=no
30149 fi
30150
30151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30152       conftest$ac_exeext conftest.$ac_ext
30153 LIBS=$ac_check_lib_save_LIBS
30154 fi
30155 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30156 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
30157 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
30158   cat >>confdefs.h <<\_ACEOF
30159 #define HAVE_XIM 1
30160 _ACEOF
30161
30162 fi
30163
30164
30165                                     if test "$USE_DARWIN" != 1; then
30166
30167 for ac_func in poll
30168 do
30169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30173   echo $ECHO_N "(cached) $ECHO_C" >&6
30174 else
30175   cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30183 #define $ac_func innocuous_$ac_func
30184
30185 /* System header to define __stub macros and hopefully few prototypes,
30186     which can conflict with char $ac_func (); below.
30187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30188     <limits.h> exists even on freestanding compilers.  */
30189
30190 #ifdef __STDC__
30191 # include <limits.h>
30192 #else
30193 # include <assert.h>
30194 #endif
30195
30196 #undef $ac_func
30197
30198 /* Override any GCC internal prototype to avoid an error.
30199    Use char because int might match the return type of a GCC
30200    builtin and then its argument prototype would still apply.  */
30201 #ifdef __cplusplus
30202 extern "C"
30203 #endif
30204 char $ac_func ();
30205 /* The GNU C library defines this for functions which it implements
30206     to always fail with ENOSYS.  Some functions are actually named
30207     something starting with __ and the normal name is an alias.  */
30208 #if defined __stub_$ac_func || defined __stub___$ac_func
30209 choke me
30210 #endif
30211
30212 int
30213 main ()
30214 {
30215 return $ac_func ();
30216   ;
30217   return 0;
30218 }
30219 _ACEOF
30220 rm -f conftest.$ac_objext conftest$ac_exeext
30221 if { (ac_try="$ac_link"
30222 case "(($ac_try" in
30223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224   *) ac_try_echo=$ac_try;;
30225 esac
30226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227   (eval "$ac_link") 2>conftest.er1
30228   ac_status=$?
30229   grep -v '^ *+' conftest.er1 >conftest.err
30230   rm -f conftest.er1
30231   cat conftest.err >&5
30232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233   (exit $ac_status); } && {
30234          test -z "$ac_c_werror_flag" ||
30235          test ! -s conftest.err
30236        } && test -s conftest$ac_exeext &&
30237        $as_test_x conftest$ac_exeext; then
30238   eval "$as_ac_var=yes"
30239 else
30240   echo "$as_me: failed program was:" >&5
30241 sed 's/^/| /' conftest.$ac_ext >&5
30242
30243         eval "$as_ac_var=no"
30244 fi
30245
30246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30247       conftest$ac_exeext conftest.$ac_ext
30248 fi
30249 ac_res=`eval echo '${'$as_ac_var'}'`
30250                { echo "$as_me:$LINENO: result: $ac_res" >&5
30251 echo "${ECHO_T}$ac_res" >&6; }
30252 if test `eval echo '${'$as_ac_var'}'` = yes; then
30253   cat >>confdefs.h <<_ACEOF
30254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30255 _ACEOF
30256
30257 fi
30258 done
30259
30260             fi
30261         fi
30262
30263         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
30264         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
30265
30266                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
30267
30268         AFMINSTALL=afminstall
30269         TOOLKIT=GTK
30270         GUIDIST=GTK_DIST
30271
30272                 if test "$wxUSE_GPE" = "yes"; then
30273             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
30274 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
30275
30276   ac_find_libraries=
30277   for ac_dir in $SEARCH_LIB;
30278   do
30279     for ac_extension in a so sl dylib dll.a; do
30280       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
30281         ac_find_libraries=$ac_dir
30282         break 2
30283       fi
30284     done
30285   done
30286
30287             if test "$ac_find_libraries" != "" ; then
30288
30289     if test "$ac_find_libraries" = "default location"; then
30290     ac_path_to_link=""
30291   else
30292     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30293     result=$?
30294     if test $result = 0; then
30295       ac_path_to_link=""
30296     else
30297       ac_path_to_link=" -L$ac_find_libraries"
30298     fi
30299   fi
30300
30301                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
30302                 WXGPE=1
30303                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30304 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
30305             else
30306                 { echo "$as_me:$LINENO: result: not found" >&5
30307 echo "${ECHO_T}not found" >&6; }
30308             fi
30309
30310                                                                                                                     fi
30311     fi
30312
30313     if test "$wxUSE_MGL" = 1; then
30314        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
30315 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
30316         if test "x$MGL_ROOT" = x ; then
30317             { echo "$as_me:$LINENO: result: not found" >&5
30318 echo "${ECHO_T}not found" >&6; }
30319             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
30320 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
30321    { (exit 1); exit 1; }; }
30322         else
30323             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
30324 echo "${ECHO_T}$MGL_ROOT" >&6; }
30325         fi
30326
30327         { echo "$as_me:$LINENO: checking for libmgl location" >&5
30328 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
30329                                 case "${host}" in
30330             *-*-linux* )
30331                                           if test "x$wxUSE_SHARED" = xyes ; then
30332                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
30333               else
30334                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
30335               fi
30336               ;;
30337             *-pc-msdosdjgpp )
30338               mgl_os_candidates="dos32/dj2"
30339               ;;
30340             *)
30341               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
30342 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
30343    { (exit 1); exit 1; }; }
30344         esac
30345
30346         mgl_lib_type=""
30347         mgl_os=""
30348
30349         for mgl_os_i in $mgl_os_candidates ; do
30350             if test "x$mgl_os" = x ; then
30351                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
30352                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
30353                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
30354                         mgl_lib_type=debug
30355                         mgl_os=$mgl_os_i
30356                     fi
30357                 fi
30358                 if test "x$mgl_lib_type" = x ; then
30359                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
30360                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
30361                         mgl_lib_type=release
30362                         mgl_os=$mgl_os_i
30363                     fi
30364                 fi
30365             fi
30366         done
30367
30368         if test "x$mgl_os" = x ; then
30369             { echo "$as_me:$LINENO: result: not found" >&5
30370 echo "${ECHO_T}not found" >&6; }
30371             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
30372 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
30373    { (exit 1); exit 1; }; }
30374         fi
30375         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
30376 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
30377
30378         wxUSE_UNIVERSAL="yes"
30379
30380         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
30381         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
30382
30383         AFMINSTALL=afminstall
30384         TOOLKIT=MGL
30385         GUIDIST=MGL_DIST
30386     fi
30387
30388     if test "$wxUSE_DFB" = 1; then
30389
30390
30391 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30392         if test -n "$ac_tool_prefix"; then
30393   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30394 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30397 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400   case $PKG_CONFIG in
30401   [\\/]* | ?:[\\/]*)
30402   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30403   ;;
30404   *)
30405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406 for as_dir in $PATH
30407 do
30408   IFS=$as_save_IFS
30409   test -z "$as_dir" && as_dir=.
30410   for ac_exec_ext in '' $ac_executable_extensions; do
30411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30414     break 2
30415   fi
30416 done
30417 done
30418 IFS=$as_save_IFS
30419
30420   ;;
30421 esac
30422 fi
30423 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30424 if test -n "$PKG_CONFIG"; then
30425   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30426 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30427 else
30428   { echo "$as_me:$LINENO: result: no" >&5
30429 echo "${ECHO_T}no" >&6; }
30430 fi
30431
30432
30433 fi
30434 if test -z "$ac_cv_path_PKG_CONFIG"; then
30435   ac_pt_PKG_CONFIG=$PKG_CONFIG
30436   # Extract the first word of "pkg-config", so it can be a program name with args.
30437 set dummy pkg-config; ac_word=$2
30438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30440 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443   case $ac_pt_PKG_CONFIG in
30444   [\\/]* | ?:[\\/]*)
30445   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30446   ;;
30447   *)
30448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30449 for as_dir in $PATH
30450 do
30451   IFS=$as_save_IFS
30452   test -z "$as_dir" && as_dir=.
30453   for ac_exec_ext in '' $ac_executable_extensions; do
30454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30455     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30457     break 2
30458   fi
30459 done
30460 done
30461 IFS=$as_save_IFS
30462
30463   ;;
30464 esac
30465 fi
30466 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30467 if test -n "$ac_pt_PKG_CONFIG"; then
30468   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30469 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30470 else
30471   { echo "$as_me:$LINENO: result: no" >&5
30472 echo "${ECHO_T}no" >&6; }
30473 fi
30474
30475   if test "x$ac_pt_PKG_CONFIG" = x; then
30476     PKG_CONFIG=""
30477   else
30478     case $cross_compiling:$ac_tool_warned in
30479 yes:)
30480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30481 whose name does not start with the host triplet.  If you think this
30482 configuration is useful to you, please write to autoconf@gnu.org." >&5
30483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30484 whose name does not start with the host triplet.  If you think this
30485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30486 ac_tool_warned=yes ;;
30487 esac
30488     PKG_CONFIG=$ac_pt_PKG_CONFIG
30489   fi
30490 else
30491   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30492 fi
30493
30494 fi
30495 if test -n "$PKG_CONFIG"; then
30496         _pkg_min_version=0.9.0
30497         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30498 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
30499         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30500                 { echo "$as_me:$LINENO: result: yes" >&5
30501 echo "${ECHO_T}yes" >&6; }
30502         else
30503                 { echo "$as_me:$LINENO: result: no" >&5
30504 echo "${ECHO_T}no" >&6; }
30505                 PKG_CONFIG=""
30506         fi
30507
30508 fi
30509
30510
30511 pkg_failed=no
30512 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
30513 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
30514
30515 if test -n "$PKG_CONFIG"; then
30516     if test -n "$DIRECTFB_CFLAGS"; then
30517         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
30518     else
30519         if test -n "$PKG_CONFIG" && \
30520     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30521   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30522   ac_status=$?
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); }; then
30525   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
30526 else
30527   pkg_failed=yes
30528 fi
30529     fi
30530 else
30531         pkg_failed=untried
30532 fi
30533 if test -n "$PKG_CONFIG"; then
30534     if test -n "$DIRECTFB_LIBS"; then
30535         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
30536     else
30537         if test -n "$PKG_CONFIG" && \
30538     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30539   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30540   ac_status=$?
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); }; then
30543   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
30544 else
30545   pkg_failed=yes
30546 fi
30547     fi
30548 else
30549         pkg_failed=untried
30550 fi
30551
30552
30553
30554 if test $pkg_failed = yes; then
30555
30556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30557         _pkg_short_errors_supported=yes
30558 else
30559         _pkg_short_errors_supported=no
30560 fi
30561         if test $_pkg_short_errors_supported = yes; then
30562                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30563         else
30564                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30565         fi
30566         # Put the nasty error message in config.log where it belongs
30567         echo "$DIRECTFB_PKG_ERRORS" >&5
30568
30569
30570                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30571 echo "$as_me: error: DirectFB not found." >&2;}
30572    { (exit 1); exit 1; }; }
30573
30574
30575 elif test $pkg_failed = untried; then
30576
30577                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30578 echo "$as_me: error: DirectFB not found." >&2;}
30579    { (exit 1); exit 1; }; }
30580
30581
30582 else
30583         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30584         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
30585         { echo "$as_me:$LINENO: result: yes" >&5
30586 echo "${ECHO_T}yes" >&6; }
30587
30588                            wxUSE_UNIVERSAL="yes"
30589                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30590                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30591                            TOOLKIT=DFB
30592                            GUIDIST=DFB_DIST
30593
30594 fi
30595     fi
30596
30597     if test "$wxUSE_MICROWIN" = 1; then
30598         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30599 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
30600         if test "x$MICROWINDOWS" = x ; then
30601             { echo "$as_me:$LINENO: result: not found" >&5
30602 echo "${ECHO_T}not found" >&6; }
30603             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30604 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30605    { (exit 1); exit 1; }; }
30606         else
30607             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30608 echo "${ECHO_T}$MICROWINDOWS" >&6; }
30609         fi
30610
30611         if test -f $MICROWINDOWS/lib/libmwin.a; then
30612             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30613 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
30614         else
30615             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30616 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30617    { (exit 1); exit 1; }; }
30618         fi
30619
30620         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30621         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30622
30623         wxUSE_UNIVERSAL="yes"
30624
30625         AFMINSTALL=afminstall
30626         TOOLKIT=MICROWIN
30627         GUIDIST=MICROWIN_DIST
30628
30629         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30630     fi
30631
30632         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30633                                 { echo "$as_me:$LINENO: checking for X" >&5
30634 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30635
30636
30637 # Check whether --with-x was given.
30638 if test "${with_x+set}" = set; then
30639   withval=$with_x;
30640 fi
30641
30642 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30643 if test "x$with_x" = xno; then
30644   # The user explicitly disabled X.
30645   have_x=disabled
30646 else
30647   case $x_includes,$x_libraries in #(
30648     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30649 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30650    { (exit 1); exit 1; }; };; #(
30651     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   # One or both of the vars are not set, and there is no cached value.
30655 ac_x_includes=no ac_x_libraries=no
30656 rm -f -r conftest.dir
30657 if mkdir conftest.dir; then
30658   cd conftest.dir
30659   cat >Imakefile <<'_ACEOF'
30660 incroot:
30661         @echo incroot='${INCROOT}'
30662 usrlibdir:
30663         @echo usrlibdir='${USRLIBDIR}'
30664 libdir:
30665         @echo libdir='${LIBDIR}'
30666 _ACEOF
30667   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30668     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30669     for ac_var in incroot usrlibdir libdir; do
30670       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30671     done
30672     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30673     for ac_extension in a so sl; do
30674       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30675          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30676         ac_im_usrlibdir=$ac_im_libdir; break
30677       fi
30678     done
30679     # Screen out bogus values from the imake configuration.  They are
30680     # bogus both because they are the default anyway, and because
30681     # using them would break gcc on systems where it needs fixed includes.
30682     case $ac_im_incroot in
30683         /usr/include) ac_x_includes= ;;
30684         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30685     esac
30686     case $ac_im_usrlibdir in
30687         /usr/lib | /lib) ;;
30688         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30689     esac
30690   fi
30691   cd ..
30692   rm -f -r conftest.dir
30693 fi
30694
30695 # Standard set of common directories for X headers.
30696 # Check X11 before X11Rn because it is often a symlink to the current release.
30697 ac_x_header_dirs='
30698 /usr/X11/include
30699 /usr/X11R6/include
30700 /usr/X11R5/include
30701 /usr/X11R4/include
30702
30703 /usr/include/X11
30704 /usr/include/X11R6
30705 /usr/include/X11R5
30706 /usr/include/X11R4
30707
30708 /usr/local/X11/include
30709 /usr/local/X11R6/include
30710 /usr/local/X11R5/include
30711 /usr/local/X11R4/include
30712
30713 /usr/local/include/X11
30714 /usr/local/include/X11R6
30715 /usr/local/include/X11R5
30716 /usr/local/include/X11R4
30717
30718 /usr/X386/include
30719 /usr/x386/include
30720 /usr/XFree86/include/X11
30721
30722 /usr/include
30723 /usr/local/include
30724 /usr/unsupported/include
30725 /usr/athena/include
30726 /usr/local/x11r5/include
30727 /usr/lpp/Xamples/include
30728
30729 /usr/openwin/include
30730 /usr/openwin/share/include'
30731
30732 if test "$ac_x_includes" = no; then
30733   # Guess where to find include files, by looking for Xlib.h.
30734   # First, try using that file with no special directory specified.
30735   cat >conftest.$ac_ext <<_ACEOF
30736 /* confdefs.h.  */
30737 _ACEOF
30738 cat confdefs.h >>conftest.$ac_ext
30739 cat >>conftest.$ac_ext <<_ACEOF
30740 /* end confdefs.h.  */
30741 #include <X11/Xlib.h>
30742 _ACEOF
30743 if { (ac_try="$ac_cpp conftest.$ac_ext"
30744 case "(($ac_try" in
30745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746   *) ac_try_echo=$ac_try;;
30747 esac
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30750   ac_status=$?
30751   grep -v '^ *+' conftest.er1 >conftest.err
30752   rm -f conftest.er1
30753   cat conftest.err >&5
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); } >/dev/null && {
30756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30757          test ! -s conftest.err
30758        }; then
30759   # We can compile using X headers with no special include directory.
30760 ac_x_includes=
30761 else
30762   echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30764
30765   for ac_dir in $ac_x_header_dirs; do
30766   if test -r "$ac_dir/X11/Xlib.h"; then
30767     ac_x_includes=$ac_dir
30768     break
30769   fi
30770 done
30771 fi
30772
30773 rm -f conftest.err conftest.$ac_ext
30774 fi # $ac_x_includes = no
30775
30776 if test "$ac_x_libraries" = no; then
30777   # Check for the libraries.
30778   # See if we find them without any special options.
30779   # Don't add to $LIBS permanently.
30780   ac_save_LIBS=$LIBS
30781   LIBS="-lX11 $LIBS"
30782   cat >conftest.$ac_ext <<_ACEOF
30783 /* confdefs.h.  */
30784 _ACEOF
30785 cat confdefs.h >>conftest.$ac_ext
30786 cat >>conftest.$ac_ext <<_ACEOF
30787 /* end confdefs.h.  */
30788 #include <X11/Xlib.h>
30789 int
30790 main ()
30791 {
30792 XrmInitialize ()
30793   ;
30794   return 0;
30795 }
30796 _ACEOF
30797 rm -f conftest.$ac_objext conftest$ac_exeext
30798 if { (ac_try="$ac_link"
30799 case "(($ac_try" in
30800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801   *) ac_try_echo=$ac_try;;
30802 esac
30803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30804   (eval "$ac_link") 2>conftest.er1
30805   ac_status=$?
30806   grep -v '^ *+' conftest.er1 >conftest.err
30807   rm -f conftest.er1
30808   cat conftest.err >&5
30809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810   (exit $ac_status); } && {
30811          test -z "$ac_c_werror_flag" ||
30812          test ! -s conftest.err
30813        } && test -s conftest$ac_exeext &&
30814        $as_test_x conftest$ac_exeext; then
30815   LIBS=$ac_save_LIBS
30816 # We can link X programs with no special library path.
30817 ac_x_libraries=
30818 else
30819   echo "$as_me: failed program was:" >&5
30820 sed 's/^/| /' conftest.$ac_ext >&5
30821
30822         LIBS=$ac_save_LIBS
30823 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30824 do
30825   # Don't even attempt the hair of trying to link an X program!
30826   for ac_extension in a so sl; do
30827     if test -r "$ac_dir/libX11.$ac_extension"; then
30828       ac_x_libraries=$ac_dir
30829       break 2
30830     fi
30831   done
30832 done
30833 fi
30834
30835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30836       conftest$ac_exeext conftest.$ac_ext
30837 fi # $ac_x_libraries = no
30838
30839 case $ac_x_includes,$ac_x_libraries in #(
30840   no,* | *,no | *\'*)
30841     # Didn't find X, or a directory has "'" in its name.
30842     ac_cv_have_x="have_x=no";; #(
30843   *)
30844     # Record where we found X for the cache.
30845     ac_cv_have_x="have_x=yes\
30846         ac_x_includes='$ac_x_includes'\
30847         ac_x_libraries='$ac_x_libraries'"
30848 esac
30849 fi
30850 ;; #(
30851     *) have_x=yes;;
30852   esac
30853   eval "$ac_cv_have_x"
30854 fi # $with_x != no
30855
30856 if test "$have_x" != yes; then
30857   { echo "$as_me:$LINENO: result: $have_x" >&5
30858 echo "${ECHO_T}$have_x" >&6; }
30859   no_x=yes
30860 else
30861   # If each of the values was on the command line, it overrides each guess.
30862   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30863   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30864   # Update the cache value to reflect the command line values.
30865   ac_cv_have_x="have_x=yes\
30866         ac_x_includes='$x_includes'\
30867         ac_x_libraries='$x_libraries'"
30868   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30869 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30870 fi
30871
30872 if test "$no_x" = yes; then
30873   # Not all programs may use this symbol, but it does not hurt to define it.
30874
30875 cat >>confdefs.h <<\_ACEOF
30876 #define X_DISPLAY_MISSING 1
30877 _ACEOF
30878
30879   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30880 else
30881   if test -n "$x_includes"; then
30882     X_CFLAGS="$X_CFLAGS -I$x_includes"
30883   fi
30884
30885   # It would also be nice to do this for all -L options, not just this one.
30886   if test -n "$x_libraries"; then
30887     X_LIBS="$X_LIBS -L$x_libraries"
30888     # For Solaris; some versions of Sun CC require a space after -R and
30889     # others require no space.  Words are not sufficient . . . .
30890     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30891 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30892     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30893     ac_xsave_c_werror_flag=$ac_c_werror_flag
30894     ac_c_werror_flag=yes
30895     cat >conftest.$ac_ext <<_ACEOF
30896 /* confdefs.h.  */
30897 _ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h.  */
30901
30902 int
30903 main ()
30904 {
30905
30906   ;
30907   return 0;
30908 }
30909 _ACEOF
30910 rm -f conftest.$ac_objext conftest$ac_exeext
30911 if { (ac_try="$ac_link"
30912 case "(($ac_try" in
30913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914   *) ac_try_echo=$ac_try;;
30915 esac
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917   (eval "$ac_link") 2>conftest.er1
30918   ac_status=$?
30919   grep -v '^ *+' conftest.er1 >conftest.err
30920   rm -f conftest.er1
30921   cat conftest.err >&5
30922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923   (exit $ac_status); } && {
30924          test -z "$ac_c_werror_flag" ||
30925          test ! -s conftest.err
30926        } && test -s conftest$ac_exeext &&
30927        $as_test_x conftest$ac_exeext; then
30928   { echo "$as_me:$LINENO: result: no" >&5
30929 echo "${ECHO_T}no" >&6; }
30930        X_LIBS="$X_LIBS -R$x_libraries"
30931 else
30932   echo "$as_me: failed program was:" >&5
30933 sed 's/^/| /' conftest.$ac_ext >&5
30934
30935         LIBS="$ac_xsave_LIBS -R $x_libraries"
30936        cat >conftest.$ac_ext <<_ACEOF
30937 /* confdefs.h.  */
30938 _ACEOF
30939 cat confdefs.h >>conftest.$ac_ext
30940 cat >>conftest.$ac_ext <<_ACEOF
30941 /* end confdefs.h.  */
30942
30943 int
30944 main ()
30945 {
30946
30947   ;
30948   return 0;
30949 }
30950 _ACEOF
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (ac_try="$ac_link"
30953 case "(($ac_try" in
30954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955   *) ac_try_echo=$ac_try;;
30956 esac
30957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958   (eval "$ac_link") 2>conftest.er1
30959   ac_status=$?
30960   grep -v '^ *+' conftest.er1 >conftest.err
30961   rm -f conftest.er1
30962   cat conftest.err >&5
30963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); } && {
30965          test -z "$ac_c_werror_flag" ||
30966          test ! -s conftest.err
30967        } && test -s conftest$ac_exeext &&
30968        $as_test_x conftest$ac_exeext; then
30969   { echo "$as_me:$LINENO: result: yes" >&5
30970 echo "${ECHO_T}yes" >&6; }
30971           X_LIBS="$X_LIBS -R $x_libraries"
30972 else
30973   echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976         { echo "$as_me:$LINENO: result: neither works" >&5
30977 echo "${ECHO_T}neither works" >&6; }
30978 fi
30979
30980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30981       conftest$ac_exeext conftest.$ac_ext
30982 fi
30983
30984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30985       conftest$ac_exeext conftest.$ac_ext
30986     ac_c_werror_flag=$ac_xsave_c_werror_flag
30987     LIBS=$ac_xsave_LIBS
30988   fi
30989
30990   # Check for system-dependent libraries X programs must link with.
30991   # Do this before checking for the system-independent R6 libraries
30992   # (-lICE), since we may need -lsocket or whatever for X linking.
30993
30994   if test "$ISC" = yes; then
30995     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30996   else
30997     # Martyn Johnson says this is needed for Ultrix, if the X
30998     # libraries were built with DECnet support.  And Karl Berry says
30999     # the Alpha needs dnet_stub (dnet does not exist).
31000     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31001     cat >conftest.$ac_ext <<_ACEOF
31002 /* confdefs.h.  */
31003 _ACEOF
31004 cat confdefs.h >>conftest.$ac_ext
31005 cat >>conftest.$ac_ext <<_ACEOF
31006 /* end confdefs.h.  */
31007
31008 /* Override any GCC internal prototype to avoid an error.
31009    Use char because int might match the return type of a GCC
31010    builtin and then its argument prototype would still apply.  */
31011 #ifdef __cplusplus
31012 extern "C"
31013 #endif
31014 char XOpenDisplay ();
31015 int
31016 main ()
31017 {
31018 return XOpenDisplay ();
31019   ;
31020   return 0;
31021 }
31022 _ACEOF
31023 rm -f conftest.$ac_objext conftest$ac_exeext
31024 if { (ac_try="$ac_link"
31025 case "(($ac_try" in
31026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027   *) ac_try_echo=$ac_try;;
31028 esac
31029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030   (eval "$ac_link") 2>conftest.er1
31031   ac_status=$?
31032   grep -v '^ *+' conftest.er1 >conftest.err
31033   rm -f conftest.er1
31034   cat conftest.err >&5
31035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036   (exit $ac_status); } && {
31037          test -z "$ac_c_werror_flag" ||
31038          test ! -s conftest.err
31039        } && test -s conftest$ac_exeext &&
31040        $as_test_x conftest$ac_exeext; then
31041   :
31042 else
31043   echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31045
31046         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31047 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
31048 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31049   echo $ECHO_N "(cached) $ECHO_C" >&6
31050 else
31051   ac_check_lib_save_LIBS=$LIBS
31052 LIBS="-ldnet  $LIBS"
31053 cat >conftest.$ac_ext <<_ACEOF
31054 /* confdefs.h.  */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h.  */
31059
31060 /* Override any GCC internal prototype to avoid an error.
31061    Use char because int might match the return type of a GCC
31062    builtin and then its argument prototype would still apply.  */
31063 #ifdef __cplusplus
31064 extern "C"
31065 #endif
31066 char dnet_ntoa ();
31067 int
31068 main ()
31069 {
31070 return dnet_ntoa ();
31071   ;
31072   return 0;
31073 }
31074 _ACEOF
31075 rm -f conftest.$ac_objext conftest$ac_exeext
31076 if { (ac_try="$ac_link"
31077 case "(($ac_try" in
31078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079   *) ac_try_echo=$ac_try;;
31080 esac
31081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31082   (eval "$ac_link") 2>conftest.er1
31083   ac_status=$?
31084   grep -v '^ *+' conftest.er1 >conftest.err
31085   rm -f conftest.er1
31086   cat conftest.err >&5
31087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31088   (exit $ac_status); } && {
31089          test -z "$ac_c_werror_flag" ||
31090          test ! -s conftest.err
31091        } && test -s conftest$ac_exeext &&
31092        $as_test_x conftest$ac_exeext; then
31093   ac_cv_lib_dnet_dnet_ntoa=yes
31094 else
31095   echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31097
31098         ac_cv_lib_dnet_dnet_ntoa=no
31099 fi
31100
31101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31102       conftest$ac_exeext conftest.$ac_ext
31103 LIBS=$ac_check_lib_save_LIBS
31104 fi
31105 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31106 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31107 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
31108   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31109 fi
31110
31111     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31112       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31113 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
31114 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31115   echo $ECHO_N "(cached) $ECHO_C" >&6
31116 else
31117   ac_check_lib_save_LIBS=$LIBS
31118 LIBS="-ldnet_stub  $LIBS"
31119 cat >conftest.$ac_ext <<_ACEOF
31120 /* confdefs.h.  */
31121 _ACEOF
31122 cat confdefs.h >>conftest.$ac_ext
31123 cat >>conftest.$ac_ext <<_ACEOF
31124 /* end confdefs.h.  */
31125
31126 /* Override any GCC internal prototype to avoid an error.
31127    Use char because int might match the return type of a GCC
31128    builtin and then its argument prototype would still apply.  */
31129 #ifdef __cplusplus
31130 extern "C"
31131 #endif
31132 char dnet_ntoa ();
31133 int
31134 main ()
31135 {
31136 return dnet_ntoa ();
31137   ;
31138   return 0;
31139 }
31140 _ACEOF
31141 rm -f conftest.$ac_objext conftest$ac_exeext
31142 if { (ac_try="$ac_link"
31143 case "(($ac_try" in
31144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145   *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148   (eval "$ac_link") 2>conftest.er1
31149   ac_status=$?
31150   grep -v '^ *+' conftest.er1 >conftest.err
31151   rm -f conftest.er1
31152   cat conftest.err >&5
31153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154   (exit $ac_status); } && {
31155          test -z "$ac_c_werror_flag" ||
31156          test ! -s conftest.err
31157        } && test -s conftest$ac_exeext &&
31158        $as_test_x conftest$ac_exeext; then
31159   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31160 else
31161   echo "$as_me: failed program was:" >&5
31162 sed 's/^/| /' conftest.$ac_ext >&5
31163
31164         ac_cv_lib_dnet_stub_dnet_ntoa=no
31165 fi
31166
31167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31168       conftest$ac_exeext conftest.$ac_ext
31169 LIBS=$ac_check_lib_save_LIBS
31170 fi
31171 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31172 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31173 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
31174   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31175 fi
31176
31177     fi
31178 fi
31179
31180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31181       conftest$ac_exeext conftest.$ac_ext
31182     LIBS="$ac_xsave_LIBS"
31183
31184     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31185     # to get the SysV transport functions.
31186     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31187     # needs -lnsl.
31188     # The nsl library prevents programs from opening the X display
31189     # on Irix 5.2, according to T.E. Dickey.
31190     # The functions gethostbyname, getservbyname, and inet_addr are
31191     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31192     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
31193 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
31194 if test "${ac_cv_func_gethostbyname+set}" = set; then
31195   echo $ECHO_N "(cached) $ECHO_C" >&6
31196 else
31197   cat >conftest.$ac_ext <<_ACEOF
31198 /* confdefs.h.  */
31199 _ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h.  */
31203 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31205 #define gethostbyname innocuous_gethostbyname
31206
31207 /* System header to define __stub macros and hopefully few prototypes,
31208     which can conflict with char gethostbyname (); below.
31209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31210     <limits.h> exists even on freestanding compilers.  */
31211
31212 #ifdef __STDC__
31213 # include <limits.h>
31214 #else
31215 # include <assert.h>
31216 #endif
31217
31218 #undef gethostbyname
31219
31220 /* Override any GCC internal prototype to avoid an error.
31221    Use char because int might match the return type of a GCC
31222    builtin and then its argument prototype would still apply.  */
31223 #ifdef __cplusplus
31224 extern "C"
31225 #endif
31226 char gethostbyname ();
31227 /* The GNU C library defines this for functions which it implements
31228     to always fail with ENOSYS.  Some functions are actually named
31229     something starting with __ and the normal name is an alias.  */
31230 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31231 choke me
31232 #endif
31233
31234 int
31235 main ()
31236 {
31237 return gethostbyname ();
31238   ;
31239   return 0;
31240 }
31241 _ACEOF
31242 rm -f conftest.$ac_objext conftest$ac_exeext
31243 if { (ac_try="$ac_link"
31244 case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_link") 2>conftest.er1
31250   ac_status=$?
31251   grep -v '^ *+' conftest.er1 >conftest.err
31252   rm -f conftest.er1
31253   cat conftest.err >&5
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); } && {
31256          test -z "$ac_c_werror_flag" ||
31257          test ! -s conftest.err
31258        } && test -s conftest$ac_exeext &&
31259        $as_test_x conftest$ac_exeext; then
31260   ac_cv_func_gethostbyname=yes
31261 else
31262   echo "$as_me: failed program was:" >&5
31263 sed 's/^/| /' conftest.$ac_ext >&5
31264
31265         ac_cv_func_gethostbyname=no
31266 fi
31267
31268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31269       conftest$ac_exeext conftest.$ac_ext
31270 fi
31271 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31272 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
31273
31274     if test $ac_cv_func_gethostbyname = no; then
31275       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31276 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
31277 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31278   echo $ECHO_N "(cached) $ECHO_C" >&6
31279 else
31280   ac_check_lib_save_LIBS=$LIBS
31281 LIBS="-lnsl  $LIBS"
31282 cat >conftest.$ac_ext <<_ACEOF
31283 /* confdefs.h.  */
31284 _ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h.  */
31288
31289 /* Override any GCC internal prototype to avoid an error.
31290    Use char because int might match the return type of a GCC
31291    builtin and then its argument prototype would still apply.  */
31292 #ifdef __cplusplus
31293 extern "C"
31294 #endif
31295 char gethostbyname ();
31296 int
31297 main ()
31298 {
31299 return gethostbyname ();
31300   ;
31301   return 0;
31302 }
31303 _ACEOF
31304 rm -f conftest.$ac_objext conftest$ac_exeext
31305 if { (ac_try="$ac_link"
31306 case "(($ac_try" in
31307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308   *) ac_try_echo=$ac_try;;
31309 esac
31310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311   (eval "$ac_link") 2>conftest.er1
31312   ac_status=$?
31313   grep -v '^ *+' conftest.er1 >conftest.err
31314   rm -f conftest.er1
31315   cat conftest.err >&5
31316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317   (exit $ac_status); } && {
31318          test -z "$ac_c_werror_flag" ||
31319          test ! -s conftest.err
31320        } && test -s conftest$ac_exeext &&
31321        $as_test_x conftest$ac_exeext; then
31322   ac_cv_lib_nsl_gethostbyname=yes
31323 else
31324   echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31326
31327         ac_cv_lib_nsl_gethostbyname=no
31328 fi
31329
31330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31331       conftest$ac_exeext conftest.$ac_ext
31332 LIBS=$ac_check_lib_save_LIBS
31333 fi
31334 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31335 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
31336 if test $ac_cv_lib_nsl_gethostbyname = yes; then
31337   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31338 fi
31339
31340       if test $ac_cv_lib_nsl_gethostbyname = no; then
31341         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31342 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
31343 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31344   echo $ECHO_N "(cached) $ECHO_C" >&6
31345 else
31346   ac_check_lib_save_LIBS=$LIBS
31347 LIBS="-lbsd  $LIBS"
31348 cat >conftest.$ac_ext <<_ACEOF
31349 /* confdefs.h.  */
31350 _ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h.  */
31354
31355 /* Override any GCC internal prototype to avoid an error.
31356    Use char because int might match the return type of a GCC
31357    builtin and then its argument prototype would still apply.  */
31358 #ifdef __cplusplus
31359 extern "C"
31360 #endif
31361 char gethostbyname ();
31362 int
31363 main ()
31364 {
31365 return gethostbyname ();
31366   ;
31367   return 0;
31368 }
31369 _ACEOF
31370 rm -f conftest.$ac_objext conftest$ac_exeext
31371 if { (ac_try="$ac_link"
31372 case "(($ac_try" in
31373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31374   *) ac_try_echo=$ac_try;;
31375 esac
31376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31377   (eval "$ac_link") 2>conftest.er1
31378   ac_status=$?
31379   grep -v '^ *+' conftest.er1 >conftest.err
31380   rm -f conftest.er1
31381   cat conftest.err >&5
31382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383   (exit $ac_status); } && {
31384          test -z "$ac_c_werror_flag" ||
31385          test ! -s conftest.err
31386        } && test -s conftest$ac_exeext &&
31387        $as_test_x conftest$ac_exeext; then
31388   ac_cv_lib_bsd_gethostbyname=yes
31389 else
31390   echo "$as_me: failed program was:" >&5
31391 sed 's/^/| /' conftest.$ac_ext >&5
31392
31393         ac_cv_lib_bsd_gethostbyname=no
31394 fi
31395
31396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31397       conftest$ac_exeext conftest.$ac_ext
31398 LIBS=$ac_check_lib_save_LIBS
31399 fi
31400 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31401 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
31402 if test $ac_cv_lib_bsd_gethostbyname = yes; then
31403   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31404 fi
31405
31406       fi
31407     fi
31408
31409     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31410     # socket/setsockopt and other routines are undefined under SCO ODT
31411     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31412     # on later versions), says Simon Leinen: it contains gethostby*
31413     # variants that don't use the name server (or something).  -lsocket
31414     # must be given before -lnsl if both are needed.  We assume that
31415     # if connect needs -lnsl, so does gethostbyname.
31416     { echo "$as_me:$LINENO: checking for connect" >&5
31417 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
31418 if test "${ac_cv_func_connect+set}" = set; then
31419   echo $ECHO_N "(cached) $ECHO_C" >&6
31420 else
31421   cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h.  */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h.  */
31427 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31429 #define connect innocuous_connect
31430
31431 /* System header to define __stub macros and hopefully few prototypes,
31432     which can conflict with char connect (); below.
31433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31434     <limits.h> exists even on freestanding compilers.  */
31435
31436 #ifdef __STDC__
31437 # include <limits.h>
31438 #else
31439 # include <assert.h>
31440 #endif
31441
31442 #undef connect
31443
31444 /* Override any GCC internal prototype to avoid an error.
31445    Use char because int might match the return type of a GCC
31446    builtin and then its argument prototype would still apply.  */
31447 #ifdef __cplusplus
31448 extern "C"
31449 #endif
31450 char connect ();
31451 /* The GNU C library defines this for functions which it implements
31452     to always fail with ENOSYS.  Some functions are actually named
31453     something starting with __ and the normal name is an alias.  */
31454 #if defined __stub_connect || defined __stub___connect
31455 choke me
31456 #endif
31457
31458 int
31459 main ()
31460 {
31461 return connect ();
31462   ;
31463   return 0;
31464 }
31465 _ACEOF
31466 rm -f conftest.$ac_objext conftest$ac_exeext
31467 if { (ac_try="$ac_link"
31468 case "(($ac_try" in
31469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470   *) ac_try_echo=$ac_try;;
31471 esac
31472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473   (eval "$ac_link") 2>conftest.er1
31474   ac_status=$?
31475   grep -v '^ *+' conftest.er1 >conftest.err
31476   rm -f conftest.er1
31477   cat conftest.err >&5
31478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479   (exit $ac_status); } && {
31480          test -z "$ac_c_werror_flag" ||
31481          test ! -s conftest.err
31482        } && test -s conftest$ac_exeext &&
31483        $as_test_x conftest$ac_exeext; then
31484   ac_cv_func_connect=yes
31485 else
31486   echo "$as_me: failed program was:" >&5
31487 sed 's/^/| /' conftest.$ac_ext >&5
31488
31489         ac_cv_func_connect=no
31490 fi
31491
31492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31493       conftest$ac_exeext conftest.$ac_ext
31494 fi
31495 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31496 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
31497
31498     if test $ac_cv_func_connect = no; then
31499       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31500 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
31501 if test "${ac_cv_lib_socket_connect+set}" = set; then
31502   echo $ECHO_N "(cached) $ECHO_C" >&6
31503 else
31504   ac_check_lib_save_LIBS=$LIBS
31505 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31506 cat >conftest.$ac_ext <<_ACEOF
31507 /* confdefs.h.  */
31508 _ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h.  */
31512
31513 /* Override any GCC internal prototype to avoid an error.
31514    Use char because int might match the return type of a GCC
31515    builtin and then its argument prototype would still apply.  */
31516 #ifdef __cplusplus
31517 extern "C"
31518 #endif
31519 char connect ();
31520 int
31521 main ()
31522 {
31523 return connect ();
31524   ;
31525   return 0;
31526 }
31527 _ACEOF
31528 rm -f conftest.$ac_objext conftest$ac_exeext
31529 if { (ac_try="$ac_link"
31530 case "(($ac_try" in
31531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532   *) ac_try_echo=$ac_try;;
31533 esac
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535   (eval "$ac_link") 2>conftest.er1
31536   ac_status=$?
31537   grep -v '^ *+' conftest.er1 >conftest.err
31538   rm -f conftest.er1
31539   cat conftest.err >&5
31540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541   (exit $ac_status); } && {
31542          test -z "$ac_c_werror_flag" ||
31543          test ! -s conftest.err
31544        } && test -s conftest$ac_exeext &&
31545        $as_test_x conftest$ac_exeext; then
31546   ac_cv_lib_socket_connect=yes
31547 else
31548   echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31550
31551         ac_cv_lib_socket_connect=no
31552 fi
31553
31554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31555       conftest$ac_exeext conftest.$ac_ext
31556 LIBS=$ac_check_lib_save_LIBS
31557 fi
31558 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31559 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
31560 if test $ac_cv_lib_socket_connect = yes; then
31561   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31562 fi
31563
31564     fi
31565
31566     # Guillermo Gomez says -lposix is necessary on A/UX.
31567     { echo "$as_me:$LINENO: checking for remove" >&5
31568 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
31569 if test "${ac_cv_func_remove+set}" = set; then
31570   echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572   cat >conftest.$ac_ext <<_ACEOF
31573 /* confdefs.h.  */
31574 _ACEOF
31575 cat confdefs.h >>conftest.$ac_ext
31576 cat >>conftest.$ac_ext <<_ACEOF
31577 /* end confdefs.h.  */
31578 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31580 #define remove innocuous_remove
31581
31582 /* System header to define __stub macros and hopefully few prototypes,
31583     which can conflict with char remove (); below.
31584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31585     <limits.h> exists even on freestanding compilers.  */
31586
31587 #ifdef __STDC__
31588 # include <limits.h>
31589 #else
31590 # include <assert.h>
31591 #endif
31592
31593 #undef remove
31594
31595 /* Override any GCC internal prototype to avoid an error.
31596    Use char because int might match the return type of a GCC
31597    builtin and then its argument prototype would still apply.  */
31598 #ifdef __cplusplus
31599 extern "C"
31600 #endif
31601 char remove ();
31602 /* The GNU C library defines this for functions which it implements
31603     to always fail with ENOSYS.  Some functions are actually named
31604     something starting with __ and the normal name is an alias.  */
31605 #if defined __stub_remove || defined __stub___remove
31606 choke me
31607 #endif
31608
31609 int
31610 main ()
31611 {
31612 return remove ();
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (ac_try="$ac_link"
31619 case "(($ac_try" in
31620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621   *) ac_try_echo=$ac_try;;
31622 esac
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624   (eval "$ac_link") 2>conftest.er1
31625   ac_status=$?
31626   grep -v '^ *+' conftest.er1 >conftest.err
31627   rm -f conftest.er1
31628   cat conftest.err >&5
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } && {
31631          test -z "$ac_c_werror_flag" ||
31632          test ! -s conftest.err
31633        } && test -s conftest$ac_exeext &&
31634        $as_test_x conftest$ac_exeext; then
31635   ac_cv_func_remove=yes
31636 else
31637   echo "$as_me: failed program was:" >&5
31638 sed 's/^/| /' conftest.$ac_ext >&5
31639
31640         ac_cv_func_remove=no
31641 fi
31642
31643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31644       conftest$ac_exeext conftest.$ac_ext
31645 fi
31646 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31647 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31648
31649     if test $ac_cv_func_remove = no; then
31650       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31651 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31652 if test "${ac_cv_lib_posix_remove+set}" = set; then
31653   echo $ECHO_N "(cached) $ECHO_C" >&6
31654 else
31655   ac_check_lib_save_LIBS=$LIBS
31656 LIBS="-lposix  $LIBS"
31657 cat >conftest.$ac_ext <<_ACEOF
31658 /* confdefs.h.  */
31659 _ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h.  */
31663
31664 /* Override any GCC internal prototype to avoid an error.
31665    Use char because int might match the return type of a GCC
31666    builtin and then its argument prototype would still apply.  */
31667 #ifdef __cplusplus
31668 extern "C"
31669 #endif
31670 char remove ();
31671 int
31672 main ()
31673 {
31674 return remove ();
31675   ;
31676   return 0;
31677 }
31678 _ACEOF
31679 rm -f conftest.$ac_objext conftest$ac_exeext
31680 if { (ac_try="$ac_link"
31681 case "(($ac_try" in
31682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683   *) ac_try_echo=$ac_try;;
31684 esac
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686   (eval "$ac_link") 2>conftest.er1
31687   ac_status=$?
31688   grep -v '^ *+' conftest.er1 >conftest.err
31689   rm -f conftest.er1
31690   cat conftest.err >&5
31691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692   (exit $ac_status); } && {
31693          test -z "$ac_c_werror_flag" ||
31694          test ! -s conftest.err
31695        } && test -s conftest$ac_exeext &&
31696        $as_test_x conftest$ac_exeext; then
31697   ac_cv_lib_posix_remove=yes
31698 else
31699   echo "$as_me: failed program was:" >&5
31700 sed 's/^/| /' conftest.$ac_ext >&5
31701
31702         ac_cv_lib_posix_remove=no
31703 fi
31704
31705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31706       conftest$ac_exeext conftest.$ac_ext
31707 LIBS=$ac_check_lib_save_LIBS
31708 fi
31709 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31710 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31711 if test $ac_cv_lib_posix_remove = yes; then
31712   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31713 fi
31714
31715     fi
31716
31717     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31718     { echo "$as_me:$LINENO: checking for shmat" >&5
31719 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31720 if test "${ac_cv_func_shmat+set}" = set; then
31721   echo $ECHO_N "(cached) $ECHO_C" >&6
31722 else
31723   cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h.  */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h.  */
31729 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31731 #define shmat innocuous_shmat
31732
31733 /* System header to define __stub macros and hopefully few prototypes,
31734     which can conflict with char shmat (); below.
31735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31736     <limits.h> exists even on freestanding compilers.  */
31737
31738 #ifdef __STDC__
31739 # include <limits.h>
31740 #else
31741 # include <assert.h>
31742 #endif
31743
31744 #undef shmat
31745
31746 /* Override any GCC internal prototype to avoid an error.
31747    Use char because int might match the return type of a GCC
31748    builtin and then its argument prototype would still apply.  */
31749 #ifdef __cplusplus
31750 extern "C"
31751 #endif
31752 char shmat ();
31753 /* The GNU C library defines this for functions which it implements
31754     to always fail with ENOSYS.  Some functions are actually named
31755     something starting with __ and the normal name is an alias.  */
31756 #if defined __stub_shmat || defined __stub___shmat
31757 choke me
31758 #endif
31759
31760 int
31761 main ()
31762 {
31763 return shmat ();
31764   ;
31765   return 0;
31766 }
31767 _ACEOF
31768 rm -f conftest.$ac_objext conftest$ac_exeext
31769 if { (ac_try="$ac_link"
31770 case "(($ac_try" in
31771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772   *) ac_try_echo=$ac_try;;
31773 esac
31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775   (eval "$ac_link") 2>conftest.er1
31776   ac_status=$?
31777   grep -v '^ *+' conftest.er1 >conftest.err
31778   rm -f conftest.er1
31779   cat conftest.err >&5
31780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781   (exit $ac_status); } && {
31782          test -z "$ac_c_werror_flag" ||
31783          test ! -s conftest.err
31784        } && test -s conftest$ac_exeext &&
31785        $as_test_x conftest$ac_exeext; then
31786   ac_cv_func_shmat=yes
31787 else
31788   echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31790
31791         ac_cv_func_shmat=no
31792 fi
31793
31794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31795       conftest$ac_exeext conftest.$ac_ext
31796 fi
31797 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31798 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31799
31800     if test $ac_cv_func_shmat = no; then
31801       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31802 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31803 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31804   echo $ECHO_N "(cached) $ECHO_C" >&6
31805 else
31806   ac_check_lib_save_LIBS=$LIBS
31807 LIBS="-lipc  $LIBS"
31808 cat >conftest.$ac_ext <<_ACEOF
31809 /* confdefs.h.  */
31810 _ACEOF
31811 cat confdefs.h >>conftest.$ac_ext
31812 cat >>conftest.$ac_ext <<_ACEOF
31813 /* end confdefs.h.  */
31814
31815 /* Override any GCC internal prototype to avoid an error.
31816    Use char because int might match the return type of a GCC
31817    builtin and then its argument prototype would still apply.  */
31818 #ifdef __cplusplus
31819 extern "C"
31820 #endif
31821 char shmat ();
31822 int
31823 main ()
31824 {
31825 return shmat ();
31826   ;
31827   return 0;
31828 }
31829 _ACEOF
31830 rm -f conftest.$ac_objext conftest$ac_exeext
31831 if { (ac_try="$ac_link"
31832 case "(($ac_try" in
31833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834   *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837   (eval "$ac_link") 2>conftest.er1
31838   ac_status=$?
31839   grep -v '^ *+' conftest.er1 >conftest.err
31840   rm -f conftest.er1
31841   cat conftest.err >&5
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); } && {
31844          test -z "$ac_c_werror_flag" ||
31845          test ! -s conftest.err
31846        } && test -s conftest$ac_exeext &&
31847        $as_test_x conftest$ac_exeext; then
31848   ac_cv_lib_ipc_shmat=yes
31849 else
31850   echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31852
31853         ac_cv_lib_ipc_shmat=no
31854 fi
31855
31856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31857       conftest$ac_exeext conftest.$ac_ext
31858 LIBS=$ac_check_lib_save_LIBS
31859 fi
31860 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31861 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31862 if test $ac_cv_lib_ipc_shmat = yes; then
31863   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31864 fi
31865
31866     fi
31867   fi
31868
31869   # Check for libraries that X11R6 Xt/Xaw programs need.
31870   ac_save_LDFLAGS=$LDFLAGS
31871   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31872   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31873   # check for ICE first), but we must link in the order -lSM -lICE or
31874   # we get undefined symbols.  So assume we have SM if we have ICE.
31875   # These have to be linked with before -lX11, unlike the other
31876   # libraries we check for below, so use a different variable.
31877   # John Interrante, Karl Berry
31878   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31879 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31880 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31881   echo $ECHO_N "(cached) $ECHO_C" >&6
31882 else
31883   ac_check_lib_save_LIBS=$LIBS
31884 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31885 cat >conftest.$ac_ext <<_ACEOF
31886 /* confdefs.h.  */
31887 _ACEOF
31888 cat confdefs.h >>conftest.$ac_ext
31889 cat >>conftest.$ac_ext <<_ACEOF
31890 /* end confdefs.h.  */
31891
31892 /* Override any GCC internal prototype to avoid an error.
31893    Use char because int might match the return type of a GCC
31894    builtin and then its argument prototype would still apply.  */
31895 #ifdef __cplusplus
31896 extern "C"
31897 #endif
31898 char IceConnectionNumber ();
31899 int
31900 main ()
31901 {
31902 return IceConnectionNumber ();
31903   ;
31904   return 0;
31905 }
31906 _ACEOF
31907 rm -f conftest.$ac_objext conftest$ac_exeext
31908 if { (ac_try="$ac_link"
31909 case "(($ac_try" in
31910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911   *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914   (eval "$ac_link") 2>conftest.er1
31915   ac_status=$?
31916   grep -v '^ *+' conftest.er1 >conftest.err
31917   rm -f conftest.er1
31918   cat conftest.err >&5
31919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); } && {
31921          test -z "$ac_c_werror_flag" ||
31922          test ! -s conftest.err
31923        } && test -s conftest$ac_exeext &&
31924        $as_test_x conftest$ac_exeext; then
31925   ac_cv_lib_ICE_IceConnectionNumber=yes
31926 else
31927   echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31929
31930         ac_cv_lib_ICE_IceConnectionNumber=no
31931 fi
31932
31933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31934       conftest$ac_exeext conftest.$ac_ext
31935 LIBS=$ac_check_lib_save_LIBS
31936 fi
31937 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31938 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31939 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31940   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31941 fi
31942
31943   LDFLAGS=$ac_save_LDFLAGS
31944
31945 fi
31946
31947
31948         if test "$no_x" = "yes"; then
31949           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31950 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31951    { (exit 1); exit 1; }; }
31952         fi
31953
31954                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31955         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31956         AFMINSTALL=afminstall
31957         COMPILED_X_PROGRAM=0
31958
31959     fi
31960
31961     if test "$wxUSE_X11" = 1; then
31962         if test "$wxUSE_NANOX" = "yes"; then
31963             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31964 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31965             if test "x$MICROWIN" = x ; then
31966                 { echo "$as_me:$LINENO: result: not found" >&5
31967 echo "${ECHO_T}not found" >&6; }
31968                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31969 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31970    { (exit 1); exit 1; }; }
31971             else
31972                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31973 echo "${ECHO_T}$MICROWIN" >&6; }
31974                 cat >>confdefs.h <<\_ACEOF
31975 #define wxUSE_NANOX 1
31976 _ACEOF
31977
31978             fi
31979         fi
31980
31981         if test "$wxUSE_UNICODE" = "yes"; then
31982
31983
31984 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31985         if test -n "$ac_tool_prefix"; then
31986   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31990 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31991   echo $ECHO_N "(cached) $ECHO_C" >&6
31992 else
31993   case $PKG_CONFIG in
31994   [\\/]* | ?:[\\/]*)
31995   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31996   ;;
31997   *)
31998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31999 for as_dir in $PATH
32000 do
32001   IFS=$as_save_IFS
32002   test -z "$as_dir" && as_dir=.
32003   for ac_exec_ext in '' $ac_executable_extensions; do
32004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32005     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32007     break 2
32008   fi
32009 done
32010 done
32011 IFS=$as_save_IFS
32012
32013   ;;
32014 esac
32015 fi
32016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32017 if test -n "$PKG_CONFIG"; then
32018   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32019 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32020 else
32021   { echo "$as_me:$LINENO: result: no" >&5
32022 echo "${ECHO_T}no" >&6; }
32023 fi
32024
32025
32026 fi
32027 if test -z "$ac_cv_path_PKG_CONFIG"; then
32028   ac_pt_PKG_CONFIG=$PKG_CONFIG
32029   # Extract the first word of "pkg-config", so it can be a program name with args.
32030 set dummy pkg-config; ac_word=$2
32031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32033 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32034   echo $ECHO_N "(cached) $ECHO_C" >&6
32035 else
32036   case $ac_pt_PKG_CONFIG in
32037   [\\/]* | ?:[\\/]*)
32038   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32039   ;;
32040   *)
32041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32042 for as_dir in $PATH
32043 do
32044   IFS=$as_save_IFS
32045   test -z "$as_dir" && as_dir=.
32046   for ac_exec_ext in '' $ac_executable_extensions; do
32047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32048     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32050     break 2
32051   fi
32052 done
32053 done
32054 IFS=$as_save_IFS
32055
32056   ;;
32057 esac
32058 fi
32059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32060 if test -n "$ac_pt_PKG_CONFIG"; then
32061   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32062 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32063 else
32064   { echo "$as_me:$LINENO: result: no" >&5
32065 echo "${ECHO_T}no" >&6; }
32066 fi
32067
32068   if test "x$ac_pt_PKG_CONFIG" = x; then
32069     PKG_CONFIG=""
32070   else
32071     case $cross_compiling:$ac_tool_warned in
32072 yes:)
32073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32074 whose name does not start with the host triplet.  If you think this
32075 configuration is useful to you, please write to autoconf@gnu.org." >&5
32076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32077 whose name does not start with the host triplet.  If you think this
32078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32079 ac_tool_warned=yes ;;
32080 esac
32081     PKG_CONFIG=$ac_pt_PKG_CONFIG
32082   fi
32083 else
32084   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32085 fi
32086
32087 fi
32088 if test -n "$PKG_CONFIG"; then
32089         _pkg_min_version=0.9.0
32090         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32091 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32092         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32093                 { echo "$as_me:$LINENO: result: yes" >&5
32094 echo "${ECHO_T}yes" >&6; }
32095         else
32096                 { echo "$as_me:$LINENO: result: no" >&5
32097 echo "${ECHO_T}no" >&6; }
32098                 PKG_CONFIG=""
32099         fi
32100
32101 fi
32102
32103
32104 pkg_failed=no
32105 { echo "$as_me:$LINENO: checking for PANGOX" >&5
32106 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
32107
32108 if test -n "$PKG_CONFIG"; then
32109     if test -n "$PANGOX_CFLAGS"; then
32110         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32111     else
32112         if test -n "$PKG_CONFIG" && \
32113     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32114   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32115   ac_status=$?
32116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117   (exit $ac_status); }; then
32118   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32119 else
32120   pkg_failed=yes
32121 fi
32122     fi
32123 else
32124         pkg_failed=untried
32125 fi
32126 if test -n "$PKG_CONFIG"; then
32127     if test -n "$PANGOX_LIBS"; then
32128         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32129     else
32130         if test -n "$PKG_CONFIG" && \
32131     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32132   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32133   ac_status=$?
32134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135   (exit $ac_status); }; then
32136   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32137 else
32138   pkg_failed=yes
32139 fi
32140     fi
32141 else
32142         pkg_failed=untried
32143 fi
32144
32145
32146
32147 if test $pkg_failed = yes; then
32148
32149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32150         _pkg_short_errors_supported=yes
32151 else
32152         _pkg_short_errors_supported=no
32153 fi
32154         if test $_pkg_short_errors_supported = yes; then
32155                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32156         else
32157                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
32158         fi
32159         # Put the nasty error message in config.log where it belongs
32160         echo "$PANGOX_PKG_ERRORS" >&5
32161
32162
32163                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32164 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32165    { (exit 1); exit 1; }; }
32166
32167
32168 elif test $pkg_failed = untried; then
32169
32170                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32171 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32172    { (exit 1); exit 1; }; }
32173
32174
32175 else
32176         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
32177         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
32178         { echo "$as_me:$LINENO: result: yes" >&5
32179 echo "${ECHO_T}yes" >&6; }
32180
32181                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
32182                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
32183                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
32184
32185 fi
32186
32187 pkg_failed=no
32188 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
32189 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
32190
32191 if test -n "$PKG_CONFIG"; then
32192     if test -n "$PANGOFT2_CFLAGS"; then
32193         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
32194     else
32195         if test -n "$PKG_CONFIG" && \
32196     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32197   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32198   ac_status=$?
32199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200   (exit $ac_status); }; then
32201   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
32202 else
32203   pkg_failed=yes
32204 fi
32205     fi
32206 else
32207         pkg_failed=untried
32208 fi
32209 if test -n "$PKG_CONFIG"; then
32210     if test -n "$PANGOFT2_LIBS"; then
32211         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
32212     else
32213         if test -n "$PKG_CONFIG" && \
32214     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32215   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32216   ac_status=$?
32217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218   (exit $ac_status); }; then
32219   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
32220 else
32221   pkg_failed=yes
32222 fi
32223     fi
32224 else
32225         pkg_failed=untried
32226 fi
32227
32228
32229
32230 if test $pkg_failed = yes; then
32231
32232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32233         _pkg_short_errors_supported=yes
32234 else
32235         _pkg_short_errors_supported=no
32236 fi
32237         if test $_pkg_short_errors_supported = yes; then
32238                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
32239         else
32240                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
32241         fi
32242         # Put the nasty error message in config.log where it belongs
32243         echo "$PANGOFT2_PKG_ERRORS" >&5
32244
32245
32246                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32247 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32248                     wxUSE_PRINTING_ARCHITECTURE="no"
32249
32250
32251 elif test $pkg_failed = untried; then
32252
32253                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32254 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32255                     wxUSE_PRINTING_ARCHITECTURE="no"
32256
32257
32258 else
32259         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
32260         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
32261         { echo "$as_me:$LINENO: result: yes" >&5
32262 echo "${ECHO_T}yes" >&6; }
32263
32264                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
32265                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
32266                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
32267
32268 fi
32269
32270 pkg_failed=no
32271 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
32272 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
32273
32274 if test -n "$PKG_CONFIG"; then
32275     if test -n "$PANGOXFT_CFLAGS"; then
32276         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
32277     else
32278         if test -n "$PKG_CONFIG" && \
32279     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32280   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32281   ac_status=$?
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); }; then
32284   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
32285 else
32286   pkg_failed=yes
32287 fi
32288     fi
32289 else
32290         pkg_failed=untried
32291 fi
32292 if test -n "$PKG_CONFIG"; then
32293     if test -n "$PANGOXFT_LIBS"; then
32294         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
32295     else
32296         if test -n "$PKG_CONFIG" && \
32297     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32298   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32299   ac_status=$?
32300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); }; then
32302   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
32303 else
32304   pkg_failed=yes
32305 fi
32306     fi
32307 else
32308         pkg_failed=untried
32309 fi
32310
32311
32312
32313 if test $pkg_failed = yes; then
32314
32315 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32316         _pkg_short_errors_supported=yes
32317 else
32318         _pkg_short_errors_supported=no
32319 fi
32320         if test $_pkg_short_errors_supported = yes; then
32321                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
32322         else
32323                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
32324         fi
32325         # Put the nasty error message in config.log where it belongs
32326         echo "$PANGOXFT_PKG_ERRORS" >&5
32327
32328
32329                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32330 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32331
32332
32333 elif test $pkg_failed = untried; then
32334
32335                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32336 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32337
32338
32339 else
32340         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
32341         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
32342         { echo "$as_me:$LINENO: result: yes" >&5
32343 echo "${ECHO_T}yes" >&6; }
32344
32345                     cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_PANGO_XFT 1
32347 _ACEOF
32348
32349                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
32350                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
32351                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
32352
32353 fi
32354             save_LIBS="$LIBS"
32355             LIBS="$LIBS $PANGOX_LIBS"
32356
32357 for ac_func in pango_font_family_is_monospace
32358 do
32359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365   cat >conftest.$ac_ext <<_ACEOF
32366 /* confdefs.h.  */
32367 _ACEOF
32368 cat confdefs.h >>conftest.$ac_ext
32369 cat >>conftest.$ac_ext <<_ACEOF
32370 /* end confdefs.h.  */
32371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32373 #define $ac_func innocuous_$ac_func
32374
32375 /* System header to define __stub macros and hopefully few prototypes,
32376     which can conflict with char $ac_func (); below.
32377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32378     <limits.h> exists even on freestanding compilers.  */
32379
32380 #ifdef __STDC__
32381 # include <limits.h>
32382 #else
32383 # include <assert.h>
32384 #endif
32385
32386 #undef $ac_func
32387
32388 /* Override any GCC internal prototype to avoid an error.
32389    Use char because int might match the return type of a GCC
32390    builtin and then its argument prototype would still apply.  */
32391 #ifdef __cplusplus
32392 extern "C"
32393 #endif
32394 char $ac_func ();
32395 /* The GNU C library defines this for functions which it implements
32396     to always fail with ENOSYS.  Some functions are actually named
32397     something starting with __ and the normal name is an alias.  */
32398 #if defined __stub_$ac_func || defined __stub___$ac_func
32399 choke me
32400 #endif
32401
32402 int
32403 main ()
32404 {
32405 return $ac_func ();
32406   ;
32407   return 0;
32408 }
32409 _ACEOF
32410 rm -f conftest.$ac_objext conftest$ac_exeext
32411 if { (ac_try="$ac_link"
32412 case "(($ac_try" in
32413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414   *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417   (eval "$ac_link") 2>conftest.er1
32418   ac_status=$?
32419   grep -v '^ *+' conftest.er1 >conftest.err
32420   rm -f conftest.er1
32421   cat conftest.err >&5
32422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423   (exit $ac_status); } && {
32424          test -z "$ac_c_werror_flag" ||
32425          test ! -s conftest.err
32426        } && test -s conftest$ac_exeext &&
32427        $as_test_x conftest$ac_exeext; then
32428   eval "$as_ac_var=yes"
32429 else
32430   echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32432
32433         eval "$as_ac_var=no"
32434 fi
32435
32436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32437       conftest$ac_exeext conftest.$ac_ext
32438 fi
32439 ac_res=`eval echo '${'$as_ac_var'}'`
32440                { echo "$as_me:$LINENO: result: $ac_res" >&5
32441 echo "${ECHO_T}$ac_res" >&6; }
32442 if test `eval echo '${'$as_ac_var'}'` = yes; then
32443   cat >>confdefs.h <<_ACEOF
32444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32445 _ACEOF
32446
32447 fi
32448 done
32449
32450             LIBS="$save_LIBS"
32451         fi
32452
32453         wxUSE_UNIVERSAL="yes"
32454
32455         if test "$wxUSE_NANOX" = "yes"; then
32456             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
32457             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"
32458             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
32459         else
32460             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
32461         fi
32462
32463         TOOLKIT=X11
32464         GUIDIST=X11_DIST
32465     fi
32466
32467     if test "$wxUSE_MOTIF" = 1; then
32468         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
32469 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
32470
32471 ac_find_includes=
32472 for ac_dir in $SEARCH_INCLUDE /usr/include;
32473   do
32474     if test -f "$ac_dir/Xm/Xm.h"; then
32475       ac_find_includes=$ac_dir
32476       break
32477     fi
32478   done
32479
32480         if test "$ac_find_includes" != "" ; then
32481             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32482 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32483
32484     if test "x$ac_find_includes" = "x/usr/include"; then
32485     ac_path_to_include=""
32486   else
32487     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
32488     result=$?
32489     if test $result = 0; then
32490       ac_path_to_include=""
32491     else
32492       ac_path_to_include=" -I$ac_find_includes"
32493     fi
32494   fi
32495
32496             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
32497         else
32498             save_CFLAGS=$CFLAGS
32499             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32500
32501             cat >conftest.$ac_ext <<_ACEOF
32502 /* confdefs.h.  */
32503 _ACEOF
32504 cat confdefs.h >>conftest.$ac_ext
32505 cat >>conftest.$ac_ext <<_ACEOF
32506 /* end confdefs.h.  */
32507
32508                     #include <Xm/Xm.h>
32509
32510 int
32511 main ()
32512 {
32513
32514                     int version;
32515                     version = xmUseVersion;
32516
32517   ;
32518   return 0;
32519 }
32520 _ACEOF
32521 rm -f conftest.$ac_objext
32522 if { (ac_try="$ac_compile"
32523 case "(($ac_try" in
32524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525   *) ac_try_echo=$ac_try;;
32526 esac
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528   (eval "$ac_compile") 2>conftest.er1
32529   ac_status=$?
32530   grep -v '^ *+' conftest.er1 >conftest.err
32531   rm -f conftest.er1
32532   cat conftest.err >&5
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); } && {
32535          test -z "$ac_c_werror_flag" ||
32536          test ! -s conftest.err
32537        } && test -s conftest.$ac_objext; then
32538
32539                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32540 echo "${ECHO_T}found in default search path" >&6; }
32541                     COMPILED_X_PROGRAM=1
32542
32543 else
32544   echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32546
32547
32548                     { echo "$as_me:$LINENO: result: no" >&5
32549 echo "${ECHO_T}no" >&6; }
32550                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
32551 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
32552    { (exit 1); exit 1; }; }
32553
32554
32555 fi
32556
32557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32558
32559             CFLAGS=$save_CFLAGS
32560         fi
32561
32562
32563         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
32564 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
32565
32566   ac_find_libraries=
32567   for ac_dir in $SEARCH_LIB;
32568   do
32569     for ac_extension in a so sl dylib dll.a; do
32570       if test -f "$ac_dir/libXm.$ac_extension"; then
32571         ac_find_libraries=$ac_dir
32572         break 2
32573       fi
32574     done
32575   done
32576
32577
32578         if test "x$ac_find_libraries" != "x" ; then
32579             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32580 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32581
32582
32583     if test "$ac_find_libraries" = "default location"; then
32584     ac_path_to_link=""
32585   else
32586     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32587     result=$?
32588     if test $result = 0; then
32589       ac_path_to_link=""
32590     else
32591       ac_path_to_link=" -L$ac_find_libraries"
32592     fi
32593   fi
32594
32595             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32596         else
32597                                                 save_CFLAGS=$CFLAGS
32598             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32599             save_LIBS="$LIBS"
32600             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32601
32602             cat >conftest.$ac_ext <<_ACEOF
32603 /* confdefs.h.  */
32604 _ACEOF
32605 cat confdefs.h >>conftest.$ac_ext
32606 cat >>conftest.$ac_ext <<_ACEOF
32607 /* end confdefs.h.  */
32608
32609                     #include <Xm/Xm.h>
32610
32611 int
32612 main ()
32613 {
32614
32615                     int version;
32616                     version = xmUseVersion;
32617
32618   ;
32619   return 0;
32620 }
32621 _ACEOF
32622 rm -f conftest.$ac_objext conftest$ac_exeext
32623 if { (ac_try="$ac_link"
32624 case "(($ac_try" in
32625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626   *) ac_try_echo=$ac_try;;
32627 esac
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629   (eval "$ac_link") 2>conftest.er1
32630   ac_status=$?
32631   grep -v '^ *+' conftest.er1 >conftest.err
32632   rm -f conftest.er1
32633   cat conftest.err >&5
32634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635   (exit $ac_status); } && {
32636          test -z "$ac_c_werror_flag" ||
32637          test ! -s conftest.err
32638        } && test -s conftest$ac_exeext &&
32639        $as_test_x conftest$ac_exeext; then
32640
32641                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32642 echo "${ECHO_T}found in default search path" >&6; }
32643                     COMPILED_X_PROGRAM=1
32644
32645 else
32646   echo "$as_me: failed program was:" >&5
32647 sed 's/^/| /' conftest.$ac_ext >&5
32648
32649
32650                     { echo "$as_me:$LINENO: result: no" >&5
32651 echo "${ECHO_T}no" >&6; }
32652                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32653 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32654    { (exit 1); exit 1; }; }
32655
32656
32657 fi
32658
32659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32660       conftest$ac_exeext conftest.$ac_ext
32661
32662             CFLAGS=$save_CFLAGS
32663             LIBS="$save_LIBS"
32664         fi
32665
32666         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32667 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32668         libp_link=""
32669         libsm_ice_link=""
32670         libs_found=0
32671         for libp in "" " -lXp"; do
32672             if test "$libs_found" = 0; then
32673                 for libsm_ice in "" " -lSM -lICE"; do
32674                     if test "$libs_found" = 0; then
32675                         save_LIBS="$LIBS"
32676                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32677                         save_CFLAGS=$CFLAGS
32678                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32679
32680                         cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686
32687                                 #include <Xm/Xm.h>
32688                                 #include <Xm/List.h>
32689
32690 int
32691 main ()
32692 {
32693
32694                                 XmString string = NULL;
32695                                 Widget w = NULL;
32696                                 int position = 0;
32697                                 XmListAddItem(w, string, position);
32698
32699   ;
32700   return 0;
32701 }
32702 _ACEOF
32703 rm -f conftest.$ac_objext conftest$ac_exeext
32704 if { (ac_try="$ac_link"
32705 case "(($ac_try" in
32706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707   *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710   (eval "$ac_link") 2>conftest.er1
32711   ac_status=$?
32712   grep -v '^ *+' conftest.er1 >conftest.err
32713   rm -f conftest.er1
32714   cat conftest.err >&5
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); } && {
32717          test -z "$ac_c_werror_flag" ||
32718          test ! -s conftest.err
32719        } && test -s conftest$ac_exeext &&
32720        $as_test_x conftest$ac_exeext; then
32721
32722                                 libp_link="$libp"
32723                                 libsm_ice_link="$libsm_ice"
32724                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32725 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32726                                 libs_found=1
32727
32728 else
32729   echo "$as_me: failed program was:" >&5
32730 sed 's/^/| /' conftest.$ac_ext >&5
32731
32732
32733
32734 fi
32735
32736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32737       conftest$ac_exeext conftest.$ac_ext
32738
32739                         LIBS="$save_LIBS"
32740                         CFLAGS=$save_CFLAGS
32741                     fi
32742                 done
32743             fi
32744         done
32745
32746         if test "$libs_found" = 0; then
32747             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32748 echo "${ECHO_T}can't find the right libraries" >&6; }
32749             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32750 echo "$as_me: error: can't link a simple motif program" >&2;}
32751    { (exit 1); exit 1; }; }
32752         fi
32753
32754                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32755 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32756 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32757   echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759   ac_check_lib_save_LIBS=$LIBS
32760 LIBS="-lSgm  $LIBS"
32761 cat >conftest.$ac_ext <<_ACEOF
32762 /* confdefs.h.  */
32763 _ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h.  */
32767
32768 /* Override any GCC internal prototype to avoid an error.
32769    Use char because int might match the return type of a GCC
32770    builtin and then its argument prototype would still apply.  */
32771 #ifdef __cplusplus
32772 extern "C"
32773 #endif
32774 char SgCreateList ();
32775 int
32776 main ()
32777 {
32778 return SgCreateList ();
32779   ;
32780   return 0;
32781 }
32782 _ACEOF
32783 rm -f conftest.$ac_objext conftest$ac_exeext
32784 if { (ac_try="$ac_link"
32785 case "(($ac_try" in
32786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787   *) ac_try_echo=$ac_try;;
32788 esac
32789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790   (eval "$ac_link") 2>conftest.er1
32791   ac_status=$?
32792   grep -v '^ *+' conftest.er1 >conftest.err
32793   rm -f conftest.er1
32794   cat conftest.err >&5
32795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796   (exit $ac_status); } && {
32797          test -z "$ac_c_werror_flag" ||
32798          test ! -s conftest.err
32799        } && test -s conftest$ac_exeext &&
32800        $as_test_x conftest$ac_exeext; then
32801   ac_cv_lib_Sgm_SgCreateList=yes
32802 else
32803   echo "$as_me: failed program was:" >&5
32804 sed 's/^/| /' conftest.$ac_ext >&5
32805
32806         ac_cv_lib_Sgm_SgCreateList=no
32807 fi
32808
32809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32810       conftest$ac_exeext conftest.$ac_ext
32811 LIBS=$ac_check_lib_save_LIBS
32812 fi
32813 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32814 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32815 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32816   libsgm_link=" -lSgm"
32817 fi
32818
32819
32820         save_CFLAGS=$CFLAGS
32821         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32822
32823         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32824 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32825 if test "${wx_cv_lib_motif2+set}" = set; then
32826   echo $ECHO_N "(cached) $ECHO_C" >&6
32827 else
32828   cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834
32835                             #include <Xm/Xm.h>
32836
32837 int
32838 main ()
32839 {
32840
32841                             #if XmVersion < 2000
32842                             Not Motif 2
32843                             #endif
32844
32845   ;
32846   return 0;
32847 }
32848 _ACEOF
32849 rm -f conftest.$ac_objext
32850 if { (ac_try="$ac_compile"
32851 case "(($ac_try" in
32852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32853   *) ac_try_echo=$ac_try;;
32854 esac
32855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32856   (eval "$ac_compile") 2>conftest.er1
32857   ac_status=$?
32858   grep -v '^ *+' conftest.er1 >conftest.err
32859   rm -f conftest.er1
32860   cat conftest.err >&5
32861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862   (exit $ac_status); } && {
32863          test -z "$ac_c_werror_flag" ||
32864          test ! -s conftest.err
32865        } && test -s conftest.$ac_objext; then
32866   wx_cv_lib_motif2="yes"
32867 else
32868   echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32870
32871         wx_cv_lib_motif2="no"
32872 fi
32873
32874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32875 fi
32876 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32877 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32878         if test "$wx_cv_lib_motif2" = "yes"; then
32879             cat >>confdefs.h <<\_ACEOF
32880 #define __WXMOTIF20__ 1
32881 _ACEOF
32882
32883         else
32884             cat >>confdefs.h <<\_ACEOF
32885 #define __WXMOTIF20__ 0
32886 _ACEOF
32887
32888         fi
32889
32890         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32891 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32892 if test "${wx_cv_lib_lesstif+set}" = set; then
32893   echo $ECHO_N "(cached) $ECHO_C" >&6
32894 else
32895   cat >conftest.$ac_ext <<_ACEOF
32896 /* confdefs.h.  */
32897 _ACEOF
32898 cat confdefs.h >>conftest.$ac_ext
32899 cat >>conftest.$ac_ext <<_ACEOF
32900 /* end confdefs.h.  */
32901
32902                             #include <Xm/Xm.h>
32903
32904 int
32905 main ()
32906 {
32907
32908                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32909                             Not Lesstif
32910                             #endif
32911
32912   ;
32913   return 0;
32914 }
32915 _ACEOF
32916 rm -f conftest.$ac_objext
32917 if { (ac_try="$ac_compile"
32918 case "(($ac_try" in
32919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920   *) ac_try_echo=$ac_try;;
32921 esac
32922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32923   (eval "$ac_compile") 2>conftest.er1
32924   ac_status=$?
32925   grep -v '^ *+' conftest.er1 >conftest.err
32926   rm -f conftest.er1
32927   cat conftest.err >&5
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); } && {
32930          test -z "$ac_c_werror_flag" ||
32931          test ! -s conftest.err
32932        } && test -s conftest.$ac_objext; then
32933   wx_cv_lib_lesstif="yes"
32934 else
32935   echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32937
32938         wx_cv_lib_lesstif="no"
32939 fi
32940
32941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32942
32943 fi
32944 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32945 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32946         if test "$wx_cv_lib_lesstif" = "yes"; then
32947             cat >>confdefs.h <<\_ACEOF
32948 #define __WXLESSTIF__ 1
32949 _ACEOF
32950
32951         else
32952             cat >>confdefs.h <<\_ACEOF
32953 #define __WXLESSTIF__ 0
32954 _ACEOF
32955
32956         fi
32957
32958         CFLAGS=$save_CFLAGS
32959
32960         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32961         TOOLKIT=MOTIF
32962         GUIDIST=MOTIF_DIST
32963     fi
32964
32965         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32966                 if test "$wxUSE_LIBXPM" = "sys"; then
32967             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32968 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32969
32970   ac_find_libraries=
32971   for ac_dir in $SEARCH_LIB;
32972   do
32973     for ac_extension in a so sl dylib dll.a; do
32974       if test -f "$ac_dir/libXpm.$ac_extension"; then
32975         ac_find_libraries=$ac_dir
32976         break 2
32977       fi
32978     done
32979   done
32980
32981             if test "$ac_find_libraries" != "" ; then
32982
32983     if test "$ac_find_libraries" = "default location"; then
32984     ac_path_to_link=""
32985   else
32986     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32987     result=$?
32988     if test $result = 0; then
32989       ac_path_to_link=""
32990     else
32991       ac_path_to_link=" -L$ac_find_libraries"
32992     fi
32993   fi
32994
32995                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32996                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32997 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32998
32999                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33000 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33001 if test "${wx_cv_x11_xpm_h+set}" = set; then
33002   echo $ECHO_N "(cached) $ECHO_C" >&6
33003 else
33004
33005                         save_CFLAGS=$CFLAGS
33006                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33007
33008                         cat >conftest.$ac_ext <<_ACEOF
33009 /* confdefs.h.  */
33010 _ACEOF
33011 cat confdefs.h >>conftest.$ac_ext
33012 cat >>conftest.$ac_ext <<_ACEOF
33013 /* end confdefs.h.  */
33014
33015                                 #include <X11/xpm.h>
33016
33017 int
33018 main ()
33019 {
33020
33021                                 int version;
33022                                 version = XpmLibraryVersion();
33023
33024   ;
33025   return 0;
33026 }
33027 _ACEOF
33028 rm -f conftest.$ac_objext
33029 if { (ac_try="$ac_compile"
33030 case "(($ac_try" in
33031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032   *) ac_try_echo=$ac_try;;
33033 esac
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035   (eval "$ac_compile") 2>conftest.er1
33036   ac_status=$?
33037   grep -v '^ *+' conftest.er1 >conftest.err
33038   rm -f conftest.er1
33039   cat conftest.err >&5
33040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041   (exit $ac_status); } && {
33042          test -z "$ac_c_werror_flag" ||
33043          test ! -s conftest.err
33044        } && test -s conftest.$ac_objext; then
33045   wx_cv_x11_xpm_h=yes
33046 else
33047   echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050         wx_cv_x11_xpm_h=no
33051
33052 fi
33053
33054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33055
33056                         CFLAGS=$save_CFLAGS
33057
33058
33059 fi
33060 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33061 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
33062
33063                 if test $wx_cv_x11_xpm_h = "yes"; then
33064                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33065                     cat >>confdefs.h <<\_ACEOF
33066 #define wxHAVE_LIB_XPM 1
33067 _ACEOF
33068
33069                 else
33070                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33071 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33072                 fi
33073             fi
33074
33075         fi
33076
33077                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33078 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
33079 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
33080   echo $ECHO_N "(cached) $ECHO_C" >&6
33081 else
33082   ac_check_lib_save_LIBS=$LIBS
33083 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33084 cat >conftest.$ac_ext <<_ACEOF
33085 /* confdefs.h.  */
33086 _ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h.  */
33090
33091 /* Override any GCC internal prototype to avoid an error.
33092    Use char because int might match the return type of a GCC
33093    builtin and then its argument prototype would still apply.  */
33094 #ifdef __cplusplus
33095 extern "C"
33096 #endif
33097 char XShapeQueryExtension ();
33098 int
33099 main ()
33100 {
33101 return XShapeQueryExtension ();
33102   ;
33103   return 0;
33104 }
33105 _ACEOF
33106 rm -f conftest.$ac_objext conftest$ac_exeext
33107 if { (ac_try="$ac_link"
33108 case "(($ac_try" in
33109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33110   *) ac_try_echo=$ac_try;;
33111 esac
33112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33113   (eval "$ac_link") 2>conftest.er1
33114   ac_status=$?
33115   grep -v '^ *+' conftest.er1 >conftest.err
33116   rm -f conftest.er1
33117   cat conftest.err >&5
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); } && {
33120          test -z "$ac_c_werror_flag" ||
33121          test ! -s conftest.err
33122        } && test -s conftest$ac_exeext &&
33123        $as_test_x conftest$ac_exeext; then
33124   ac_cv_lib_Xext_XShapeQueryExtension=yes
33125 else
33126   echo "$as_me: failed program was:" >&5
33127 sed 's/^/| /' conftest.$ac_ext >&5
33128
33129         ac_cv_lib_Xext_XShapeQueryExtension=no
33130 fi
33131
33132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33133       conftest$ac_exeext conftest.$ac_ext
33134 LIBS=$ac_check_lib_save_LIBS
33135 fi
33136 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33137 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
33138 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
33139
33140                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33141                       wxHAVE_XEXT_LIB=1
33142
33143 fi
33144
33145
33146         if test "$wxHAVE_XEXT_LIB" = 1; then
33147             save_CFLAGS="$CFLAGS"
33148             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33149
33150             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33151 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
33152             cat >conftest.$ac_ext <<_ACEOF
33153 /* confdefs.h.  */
33154 _ACEOF
33155 cat confdefs.h >>conftest.$ac_ext
33156 cat >>conftest.$ac_ext <<_ACEOF
33157 /* end confdefs.h.  */
33158
33159                             #include <X11/Xlib.h>
33160                             #include <X11/extensions/shape.h>
33161
33162 int
33163 main ()
33164 {
33165
33166                             int dummy1, dummy2;
33167                             XShapeQueryExtension((Display*)NULL,
33168                                                  (int*)NULL, (int*)NULL);
33169
33170   ;
33171   return 0;
33172 }
33173 _ACEOF
33174 rm -f conftest.$ac_objext
33175 if { (ac_try="$ac_compile"
33176 case "(($ac_try" in
33177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178   *) ac_try_echo=$ac_try;;
33179 esac
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181   (eval "$ac_compile") 2>conftest.er1
33182   ac_status=$?
33183   grep -v '^ *+' conftest.er1 >conftest.err
33184   rm -f conftest.er1
33185   cat conftest.err >&5
33186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); } && {
33188          test -z "$ac_c_werror_flag" ||
33189          test ! -s conftest.err
33190        } && test -s conftest.$ac_objext; then
33191
33192                             cat >>confdefs.h <<\_ACEOF
33193 #define HAVE_XSHAPE 1
33194 _ACEOF
33195
33196                             { echo "$as_me:$LINENO: result: found" >&5
33197 echo "${ECHO_T}found" >&6; }
33198
33199 else
33200   echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.$ac_ext >&5
33202
33203
33204                             { echo "$as_me:$LINENO: result: not found" >&5
33205 echo "${ECHO_T}not found" >&6; }
33206
33207 fi
33208
33209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33210             CFLAGS="$save_CFLAGS"
33211
33212         fi
33213     fi
33214
33215     if test "$wxUSE_OSX_CARBON" = 1; then
33216         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
33217 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
33218         if test "$GCC" = yes; then
33219             { echo "$as_me:$LINENO: result: gcc" >&5
33220 echo "${ECHO_T}gcc" >&6; }
33221             CPPFLAGS_PASCAL="-fpascal-strings"
33222         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
33223             { echo "$as_me:$LINENO: result: xlc" >&5
33224 echo "${ECHO_T}xlc" >&6; }
33225             CPPFLAGS_PASCAL="-qmacpstr"
33226         else
33227             { echo "$as_me:$LINENO: result: none" >&5
33228 echo "${ECHO_T}none" >&6; }
33229         fi
33230
33231         if test "x$wxUSE_UNIX" = "xyes"; then
33232             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
33233         else
33234                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
33235         fi
33236
33237         TOOLKIT=OSX_CARBON
33238                 GUIDIST=OSX_CARBON_DIST
33239                         WXBASEPORT="_carbon"
33240
33241                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
33242     fi
33243
33244     if test "$wxUSE_OSX_COCOA" = 1; then
33245         TOOLKIT=OSX_COCOA
33246         GUIDIST=OSX_COCOA_DIST
33247
33248                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
33249     fi
33250
33251     if test "$wxUSE_OSX_IPHONE" = 1; then
33252         TOOLKIT=OSX_IPHONE
33253     fi
33254
33255     if test "$wxUSE_OLD_COCOA" = 1; then
33256         TOOLKIT=COCOA
33257         GUIDIST=COCOA_DIST
33258     fi
33259
33260     if test "$wxUSE_PM" = 1; then
33261         TOOLKIT=PM
33262         GUIDIST=PM_DIST
33263         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
33264 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
33265 if test "${wx_cv_spbcdata+set}" = set; then
33266   echo $ECHO_N "(cached) $ECHO_C" >&6
33267 else
33268
33269                 cat >conftest.$ac_ext <<_ACEOF
33270 /* confdefs.h.  */
33271 _ACEOF
33272 cat confdefs.h >>conftest.$ac_ext
33273 cat >>conftest.$ac_ext <<_ACEOF
33274 /* end confdefs.h.  */
33275
33276                         #define INCL_PM
33277                         #include <os2.h>
33278
33279 int
33280 main ()
33281 {
33282
33283                         SPBCDATA test;
33284
33285   ;
33286   return 0;
33287 }
33288 _ACEOF
33289 rm -f conftest.$ac_objext
33290 if { (ac_try="$ac_compile"
33291 case "(($ac_try" in
33292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293   *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296   (eval "$ac_compile") 2>conftest.er1
33297   ac_status=$?
33298   grep -v '^ *+' conftest.er1 >conftest.err
33299   rm -f conftest.er1
33300   cat conftest.err >&5
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); } && {
33303          test -z "$ac_c_werror_flag" ||
33304          test ! -s conftest.err
33305        } && test -s conftest.$ac_objext; then
33306   wx_cv_spbcdata=yes
33307 else
33308   echo "$as_me: failed program was:" >&5
33309 sed 's/^/| /' conftest.$ac_ext >&5
33310
33311         wx_cv_spbcdata=no
33312
33313 fi
33314
33315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33316
33317
33318 fi
33319 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
33320 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
33321
33322         if test $wx_cv_spbcdata = "yes"; then
33323             cat >>confdefs.h <<\_ACEOF
33324 #define HAVE_SPBCDATA 1
33325 _ACEOF
33326
33327         fi
33328     fi
33329
33330         if test "$TOOLKIT" = "PM" ; then
33331         TOOLKIT_DIR="os2"
33332     else
33333         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
33334     fi
33335
33336     if test "$wxUSE_UNIVERSAL" = "yes"; then
33337         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
33338         WIDGET_SET=univ
33339     fi
33340
33341         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
33342     DISTDIR="wx\$(TOOLKIT)"
33343 else
33344     USE_GUI=0
33345
33346             TOOLKIT_DIR="base"
33347
33348         if test "$USE_WIN32" = 1 ; then
33349                         TOOLKIT="MSW"
33350     fi
33351
33352         GUIDIST="BASE_DIST"
33353     DISTDIR="wxBase"
33354 fi
33355
33356
33357
33358 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
33359     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
33360         wxUSE_UNICODE_UTF8=yes
33361     elif test "$USE_OS2" = 1 ; then
33362                                 wxUSE_UNICODE_UTF8=yes
33363     else
33364         wxUSE_UNICODE_UTF8=no
33365     fi
33366 fi
33367
33368
33369 if test "$wxUSE_GUI" = "yes"; then
33370     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
33371
33372 for ac_header in X11/Xlib.h
33373 do
33374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33378   echo $ECHO_N "(cached) $ECHO_C" >&6
33379 else
33380   cat >conftest.$ac_ext <<_ACEOF
33381 /* confdefs.h.  */
33382 _ACEOF
33383 cat confdefs.h >>conftest.$ac_ext
33384 cat >>conftest.$ac_ext <<_ACEOF
33385 /* end confdefs.h.  */
33386
33387
33388 #include <$ac_header>
33389 _ACEOF
33390 rm -f conftest.$ac_objext
33391 if { (ac_try="$ac_compile"
33392 case "(($ac_try" in
33393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394   *) ac_try_echo=$ac_try;;
33395 esac
33396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397   (eval "$ac_compile") 2>conftest.er1
33398   ac_status=$?
33399   grep -v '^ *+' conftest.er1 >conftest.err
33400   rm -f conftest.er1
33401   cat conftest.err >&5
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); } && {
33404          test -z "$ac_c_werror_flag" ||
33405          test ! -s conftest.err
33406        } && test -s conftest.$ac_objext; then
33407   eval "$as_ac_Header=yes"
33408 else
33409   echo "$as_me: failed program was:" >&5
33410 sed 's/^/| /' conftest.$ac_ext >&5
33411
33412         eval "$as_ac_Header=no"
33413 fi
33414
33415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33416 fi
33417 ac_res=`eval echo '${'$as_ac_Header'}'`
33418                { echo "$as_me:$LINENO: result: $ac_res" >&5
33419 echo "${ECHO_T}$ac_res" >&6; }
33420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33421   cat >>confdefs.h <<_ACEOF
33422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33423 _ACEOF
33424
33425 fi
33426
33427 done
33428
33429
33430 for ac_header in X11/XKBlib.h
33431 do
33432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33436   echo $ECHO_N "(cached) $ECHO_C" >&6
33437 else
33438   cat >conftest.$ac_ext <<_ACEOF
33439 /* confdefs.h.  */
33440 _ACEOF
33441 cat confdefs.h >>conftest.$ac_ext
33442 cat >>conftest.$ac_ext <<_ACEOF
33443 /* end confdefs.h.  */
33444
33445                           #if HAVE_X11_XLIB_H
33446                             #include <X11/Xlib.h>
33447                           #endif
33448
33449
33450 #include <$ac_header>
33451 _ACEOF
33452 rm -f conftest.$ac_objext
33453 if { (ac_try="$ac_compile"
33454 case "(($ac_try" in
33455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33456   *) ac_try_echo=$ac_try;;
33457 esac
33458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33459   (eval "$ac_compile") 2>conftest.er1
33460   ac_status=$?
33461   grep -v '^ *+' conftest.er1 >conftest.err
33462   rm -f conftest.er1
33463   cat conftest.err >&5
33464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465   (exit $ac_status); } && {
33466          test -z "$ac_c_werror_flag" ||
33467          test ! -s conftest.err
33468        } && test -s conftest.$ac_objext; then
33469   eval "$as_ac_Header=yes"
33470 else
33471   echo "$as_me: failed program was:" >&5
33472 sed 's/^/| /' conftest.$ac_ext >&5
33473
33474         eval "$as_ac_Header=no"
33475 fi
33476
33477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478 fi
33479 ac_res=`eval echo '${'$as_ac_Header'}'`
33480                { echo "$as_me:$LINENO: result: $ac_res" >&5
33481 echo "${ECHO_T}$ac_res" >&6; }
33482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33483   cat >>confdefs.h <<_ACEOF
33484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33485 _ACEOF
33486
33487 fi
33488
33489 done
33490
33491     fi
33492 fi
33493
33494
33495
33496 if test "$wxUSE_DISPLAY" = "yes"; then
33497     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
33498         { echo "$as_me:$LINENO: checking for Xinerama" >&5
33499 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
33500
33501   ac_find_libraries=
33502   for ac_dir in $SEARCH_LIB;
33503   do
33504     for ac_extension in a so sl dylib dll.a; do
33505       if test -f "$ac_dir/libXinerama.$ac_extension"; then
33506         ac_find_libraries=$ac_dir
33507         break 2
33508       fi
33509     done
33510   done
33511
33512         if test "$ac_find_libraries" != "" ; then
33513
33514     if test "$ac_find_libraries" = "default location"; then
33515     ac_path_to_link=""
33516   else
33517     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33518     result=$?
33519     if test $result = 0; then
33520       ac_path_to_link=""
33521     else
33522       ac_path_to_link=" -L$ac_find_libraries"
33523     fi
33524   fi
33525
33526             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33527                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33528             fi
33529             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33530             { echo "$as_me:$LINENO: result: yes" >&5
33531 echo "${ECHO_T}yes" >&6; }
33532
33533             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33534 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
33535
33536   ac_find_libraries=
33537   for ac_dir in $SEARCH_LIB;
33538   do
33539     for ac_extension in a so sl dylib dll.a; do
33540       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33541         ac_find_libraries=$ac_dir
33542         break 2
33543       fi
33544     done
33545   done
33546
33547             if test "$ac_find_libraries" != "" ; then
33548                 { echo "$as_me:$LINENO: result: yes" >&5
33549 echo "${ECHO_T}yes" >&6; }
33550
33551 for ac_header in X11/extensions/xf86vmode.h
33552 do
33553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33557   echo $ECHO_N "(cached) $ECHO_C" >&6
33558 else
33559   cat >conftest.$ac_ext <<_ACEOF
33560 /* confdefs.h.  */
33561 _ACEOF
33562 cat confdefs.h >>conftest.$ac_ext
33563 cat >>conftest.$ac_ext <<_ACEOF
33564 /* end confdefs.h.  */
33565
33566                                       #if HAVE_X11_XLIB_H
33567                                         #include <X11/Xlib.h>
33568                                       #endif
33569
33570
33571 #include <$ac_header>
33572 _ACEOF
33573 rm -f conftest.$ac_objext
33574 if { (ac_try="$ac_compile"
33575 case "(($ac_try" in
33576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33577   *) ac_try_echo=$ac_try;;
33578 esac
33579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33580   (eval "$ac_compile") 2>conftest.er1
33581   ac_status=$?
33582   grep -v '^ *+' conftest.er1 >conftest.err
33583   rm -f conftest.er1
33584   cat conftest.err >&5
33585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586   (exit $ac_status); } && {
33587          test -z "$ac_c_werror_flag" ||
33588          test ! -s conftest.err
33589        } && test -s conftest.$ac_objext; then
33590   eval "$as_ac_Header=yes"
33591 else
33592   echo "$as_me: failed program was:" >&5
33593 sed 's/^/| /' conftest.$ac_ext >&5
33594
33595         eval "$as_ac_Header=no"
33596 fi
33597
33598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33599 fi
33600 ac_res=`eval echo '${'$as_ac_Header'}'`
33601                { echo "$as_me:$LINENO: result: $ac_res" >&5
33602 echo "${ECHO_T}$ac_res" >&6; }
33603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33604   cat >>confdefs.h <<_ACEOF
33605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33606 _ACEOF
33607
33608                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33609
33610 fi
33611
33612 done
33613
33614             else
33615                 { echo "$as_me:$LINENO: result: no" >&5
33616 echo "${ECHO_T}no" >&6; }
33617             fi
33618
33619         else
33620             { echo "$as_me:$LINENO: result: no" >&5
33621 echo "${ECHO_T}no" >&6; }
33622             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33623 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33624             wxUSE_DISPLAY="no"
33625         fi
33626     elif test "$wxUSE_MSW" = 1; then
33627         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33628 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33629 if test "${ac_cv_header_ddraw_h+set}" = set; then
33630   echo $ECHO_N "(cached) $ECHO_C" >&6
33631 else
33632   cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h.  */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h.  */
33638 #include <windows.h>
33639
33640 #include <ddraw.h>
33641 _ACEOF
33642 rm -f conftest.$ac_objext
33643 if { (ac_try="$ac_compile"
33644 case "(($ac_try" in
33645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33646   *) ac_try_echo=$ac_try;;
33647 esac
33648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33649   (eval "$ac_compile") 2>conftest.er1
33650   ac_status=$?
33651   grep -v '^ *+' conftest.er1 >conftest.err
33652   rm -f conftest.er1
33653   cat conftest.err >&5
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } && {
33656          test -z "$ac_c_werror_flag" ||
33657          test ! -s conftest.err
33658        } && test -s conftest.$ac_objext; then
33659   ac_cv_header_ddraw_h=yes
33660 else
33661   echo "$as_me: failed program was:" >&5
33662 sed 's/^/| /' conftest.$ac_ext >&5
33663
33664         ac_cv_header_ddraw_h=no
33665 fi
33666
33667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33668 fi
33669 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33670 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33671
33672
33673     fi
33674 fi
33675
33676 if test "$wxUSE_DETECT_SM" = "yes"; then
33677     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
33678         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33679 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33680
33681   ac_find_libraries=
33682   for ac_dir in $SEARCH_LIB;
33683   do
33684     for ac_extension in a so sl dylib dll.a; do
33685       if test -f "$ac_dir/libSM.$ac_extension"; then
33686         ac_find_libraries=$ac_dir
33687         break 2
33688       fi
33689     done
33690   done
33691
33692         if test "$ac_find_libraries" != "" ; then
33693
33694     if test "$ac_find_libraries" = "default location"; then
33695     ac_path_to_link=""
33696   else
33697     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33698     result=$?
33699     if test $result = 0; then
33700       ac_path_to_link=""
33701     else
33702       ac_path_to_link=" -L$ac_find_libraries"
33703     fi
33704   fi
33705
33706             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33707                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33708             fi
33709             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33710             { echo "$as_me:$LINENO: result: yes" >&5
33711 echo "${ECHO_T}yes" >&6; }
33712         else
33713             { echo "$as_me:$LINENO: result: no" >&5
33714 echo "${ECHO_T}no" >&6; }
33715             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33716 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33717             wxUSE_DETECT_SM="no"
33718         fi
33719     else
33720         wxUSE_DETECT_SM="no"
33721     fi
33722 fi
33723
33724
33725
33726 USE_OPENGL=0
33727 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33728
33729
33730     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
33731         OPENGL_LIBS="-framework OpenGL -framework AGL"
33732     elif test "$wxUSE_MSW" = 1; then
33733         OPENGL_LIBS="-lopengl32 -lglu32"
33734     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33735
33736                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33737 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33738
33739 ac_find_includes=
33740 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33741   do
33742     if test -f "$ac_dir/GL/gl.h"; then
33743       ac_find_includes=$ac_dir
33744       break
33745     fi
33746   done
33747
33748         if test "$ac_find_includes" != "" ; then
33749             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33750 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33751
33752     if test "x$ac_find_includes" = "x/usr/include"; then
33753     ac_path_to_include=""
33754   else
33755     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33756     result=$?
33757     if test $result = 0; then
33758       ac_path_to_include=""
33759     else
33760       ac_path_to_include=" -I$ac_find_includes"
33761     fi
33762   fi
33763
33764             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33765         else
33766             { echo "$as_me:$LINENO: result: not found" >&5
33767 echo "${ECHO_T}not found" >&6; }
33768         fi
33769
33770         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33771 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33772 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33773   echo $ECHO_N "(cached) $ECHO_C" >&6
33774 else
33775   cat >conftest.$ac_ext <<_ACEOF
33776 /* confdefs.h.  */
33777 _ACEOF
33778 cat confdefs.h >>conftest.$ac_ext
33779 cat >>conftest.$ac_ext <<_ACEOF
33780 /* end confdefs.h.  */
33781
33782
33783 #include <GL/gl.h>
33784 _ACEOF
33785 rm -f conftest.$ac_objext
33786 if { (ac_try="$ac_compile"
33787 case "(($ac_try" in
33788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789   *) ac_try_echo=$ac_try;;
33790 esac
33791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792   (eval "$ac_compile") 2>conftest.er1
33793   ac_status=$?
33794   grep -v '^ *+' conftest.er1 >conftest.err
33795   rm -f conftest.er1
33796   cat conftest.err >&5
33797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798   (exit $ac_status); } && {
33799          test -z "$ac_c_werror_flag" ||
33800          test ! -s conftest.err
33801        } && test -s conftest.$ac_objext; then
33802   ac_cv_header_GL_gl_h=yes
33803 else
33804   echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807         ac_cv_header_GL_gl_h=no
33808 fi
33809
33810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33811 fi
33812 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33813 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33814 if test $ac_cv_header_GL_gl_h = yes; then
33815
33816             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33817 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33818 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33819   echo $ECHO_N "(cached) $ECHO_C" >&6
33820 else
33821   cat >conftest.$ac_ext <<_ACEOF
33822 /* confdefs.h.  */
33823 _ACEOF
33824 cat confdefs.h >>conftest.$ac_ext
33825 cat >>conftest.$ac_ext <<_ACEOF
33826 /* end confdefs.h.  */
33827
33828
33829 #include <GL/glu.h>
33830 _ACEOF
33831 rm -f conftest.$ac_objext
33832 if { (ac_try="$ac_compile"
33833 case "(($ac_try" in
33834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33835   *) ac_try_echo=$ac_try;;
33836 esac
33837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33838   (eval "$ac_compile") 2>conftest.er1
33839   ac_status=$?
33840   grep -v '^ *+' conftest.er1 >conftest.err
33841   rm -f conftest.er1
33842   cat conftest.err >&5
33843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); } && {
33845          test -z "$ac_c_werror_flag" ||
33846          test ! -s conftest.err
33847        } && test -s conftest.$ac_objext; then
33848   ac_cv_header_GL_glu_h=yes
33849 else
33850   echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33852
33853         ac_cv_header_GL_glu_h=no
33854 fi
33855
33856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33857 fi
33858 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33859 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33860 if test $ac_cv_header_GL_glu_h = yes; then
33861
33862                 found_gl=0
33863
33864                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33865 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33866
33867   ac_find_libraries=
33868   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33869   do
33870     for ac_extension in a so sl dylib dll.a; do
33871       if test -f "$ac_dir/libGL.$ac_extension"; then
33872         ac_find_libraries=$ac_dir
33873         break 2
33874       fi
33875     done
33876   done
33877
33878                 if test "$ac_find_libraries" != "" ; then
33879                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33880 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33881
33882
33883     if test "$ac_find_libraries" = "default location"; then
33884     ac_path_to_link=""
33885   else
33886     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33887     result=$?
33888     if test $result = 0; then
33889       ac_path_to_link=""
33890     else
33891       ac_path_to_link=" -L$ac_find_libraries"
33892     fi
33893   fi
33894
33895                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33896                         LDFLAGS_GL="$ac_path_to_link"
33897                     fi
33898
33899                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33900 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33901
33902   ac_find_libraries=
33903   for ac_dir in $SEARCH_LIB;
33904   do
33905     for ac_extension in a so sl dylib dll.a; do
33906       if test -f "$ac_dir/libGLU.$ac_extension"; then
33907         ac_find_libraries=$ac_dir
33908         break 2
33909       fi
33910     done
33911   done
33912
33913                     if test "$ac_find_libraries" != "" ; then
33914
33915     if test "$ac_find_libraries" = "default location"; then
33916     ac_path_to_link=""
33917   else
33918     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33919     result=$?
33920     if test $result = 0; then
33921       ac_path_to_link=""
33922     else
33923       ac_path_to_link=" -L$ac_find_libraries"
33924     fi
33925   fi
33926
33927                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33928                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33929                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33930                         fi
33931
33932                         found_gl=1
33933                         OPENGL_LIBS="-lGL -lGLU"
33934                         { echo "$as_me:$LINENO: result: yes" >&5
33935 echo "${ECHO_T}yes" >&6; }
33936                     else
33937                         { echo "$as_me:$LINENO: result: no" >&5
33938 echo "${ECHO_T}no" >&6; }
33939                     fi
33940                 else
33941                     { echo "$as_me:$LINENO: result: no" >&5
33942 echo "${ECHO_T}no" >&6; }
33943                 fi
33944
33945                 if test "$found_gl" != 1; then
33946                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33947 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33948
33949   ac_find_libraries=
33950   for ac_dir in $SEARCH_LIB;
33951   do
33952     for ac_extension in a so sl dylib dll.a; do
33953       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33954         ac_find_libraries=$ac_dir
33955         break 2
33956       fi
33957     done
33958   done
33959
33960                     if test "$ac_find_libraries" != "" ; then
33961
33962     if test "$ac_find_libraries" = "default location"; then
33963     ac_path_to_link=""
33964   else
33965     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33966     result=$?
33967     if test $result = 0; then
33968       ac_path_to_link=""
33969     else
33970       ac_path_to_link=" -L$ac_find_libraries"
33971     fi
33972   fi
33973
33974                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33975                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33976                         { echo "$as_me:$LINENO: result: yes" >&5
33977 echo "${ECHO_T}yes" >&6; }
33978                     else
33979                         { echo "$as_me:$LINENO: result: no" >&5
33980 echo "${ECHO_T}no" >&6; }
33981                     fi
33982                 fi
33983
33984 fi
33985
33986
33987
33988 fi
33989
33990
33991
33992         if test "x$OPENGL_LIBS" = "x"; then
33993             if test "$wxUSE_OPENGL" = "yes"; then
33994                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33995 echo "$as_me: error: OpenGL libraries not available" >&2;}
33996    { (exit 1); exit 1; }; }
33997             else
33998                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33999 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34000                 wxUSE_OPENGL=no
34001                 USE_OPENGL=0
34002             fi
34003         fi
34004     else
34005         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34006 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34007         wxUSE_OPENGL="no"
34008     fi
34009
34010     if test "$wxUSE_OPENGL" = "auto"; then
34011                                 wxUSE_OPENGL=yes
34012     fi
34013
34014     if test "$wxUSE_OPENGL" = "yes"; then
34015         USE_OPENGL=1
34016         cat >>confdefs.h <<\_ACEOF
34017 #define wxUSE_OPENGL 1
34018 _ACEOF
34019
34020         cat >>confdefs.h <<\_ACEOF
34021 #define wxUSE_GLCANVAS 1
34022 _ACEOF
34023
34024         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34025     fi
34026 fi
34027
34028
34029 if test -n "$TOOLKIT" ; then
34030     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34031 fi
34032
34033
34034
34035 if test "$wxUSE_SHARED" = "yes"; then
34036     case "${host}" in
34037       *-pc-msdosdjgpp )
34038                 wxUSE_SHARED=no
34039         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34040 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34041       ;;
34042     esac
34043 fi
34044
34045 if test "$wxUSE_SHARED" = "yes"; then
34046
34047
34048     case "${host}" in
34049         *-*-cygwin* | *-*-mingw* )
34050                                                                                                 wx_cv_version_script=no
34051             ;;
34052
34053         *)
34054             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34055 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
34056 if test "${wx_cv_version_script+set}" = set; then
34057   echo $ECHO_N "(cached) $ECHO_C" >&6
34058 else
34059
34060                 echo "VER_1 { *; };" >conftest.sym
34061                 echo "int main() { return 0; }" >conftest.cpp
34062
34063                 if { ac_try='
34064                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34065                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067   (eval $ac_try) 2>&5
34068   ac_status=$?
34069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070   (exit $ac_status); }; } ; then
34071                   if test -s conftest.stderr ; then
34072                       wx_cv_version_script=no
34073                   else
34074                       wx_cv_version_script=yes
34075                   fi
34076                 else
34077                   wx_cv_version_script=no
34078                 fi
34079
34080                                                                                                                                                                                                 if test $wx_cv_version_script = yes
34081                 then
34082                   echo "struct B { virtual ~B() { } }; \
34083                         struct D : public B { }; \
34084                         void F() { D d; }" > conftest.cpp
34085
34086                   if { ac_try='
34087                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34088                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
34089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34090   (eval $ac_try) 2>&5
34091   ac_status=$?
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); }; } &&
34094                      { ac_try='
34095                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34096                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34098   (eval $ac_try) 2>&5
34099   ac_status=$?
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); }; }
34102                   then
34103                     if { ac_try='
34104                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34105                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34107   (eval $ac_try) 2>&5
34108   ac_status=$?
34109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110   (exit $ac_status); }; }
34111                     then
34112                       wx_cv_version_script=yes
34113                     else
34114                       wx_cv_version_script=no
34115                     fi
34116                   fi
34117                 fi
34118
34119                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34120                 rm -f conftest1.output conftest2.output conftest3.output
34121
34122 fi
34123 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34124 echo "${ECHO_T}$wx_cv_version_script" >&6; }
34125
34126             if test $wx_cv_version_script = yes ; then
34127                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34128             fi
34129             ;;
34130     esac
34131
34132
34133             if test "$wxUSE_VISIBILITY" != "no"; then
34134
34135
34136   if test -n "$GCC"; then
34137     CFLAGS_VISIBILITY="-fvisibility=hidden"
34138     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
34139     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34140 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
34141     if test "${wx_cv_cc_visibility+set}" = set; then
34142   echo $ECHO_N "(cached) $ECHO_C" >&6
34143 else
34144
34145       wx_save_CXXFLAGS="$CXXFLAGS"
34146       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34147       ac_ext=cpp
34148 ac_cpp='$CXXCPP $CPPFLAGS'
34149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34152
34153       cat >conftest.$ac_ext <<_ACEOF
34154 /* confdefs.h.  */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h.  */
34159
34160          /* we need gcc >= 4.0, older versions with visibility support
34161             didn't have class visibility: */
34162          #if defined(__GNUC__) && __GNUC__ < 4
34163          error this gcc is too old;
34164          #endif
34165
34166          /* visibility only makes sense for ELF shared libs: */
34167          #if !defined(__ELF__) && !defined(__APPLE__)
34168          error this platform has no visibility;
34169          #endif
34170
34171          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34172          extern __attribute__((__visibility__("default"))) int exportedvar;
34173          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
34174          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
34175          class __attribute__((__visibility__("default"))) Foo {
34176            Foo() {}
34177          };
34178
34179 int
34180 main ()
34181 {
34182
34183   ;
34184   return 0;
34185 }
34186 _ACEOF
34187 rm -f conftest.$ac_objext
34188 if { (ac_try="$ac_compile"
34189 case "(($ac_try" in
34190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191   *) ac_try_echo=$ac_try;;
34192 esac
34193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194   (eval "$ac_compile") 2>conftest.er1
34195   ac_status=$?
34196   grep -v '^ *+' conftest.er1 >conftest.err
34197   rm -f conftest.er1
34198   cat conftest.err >&5
34199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200   (exit $ac_status); } && {
34201          test -z "$ac_cxx_werror_flag" ||
34202          test ! -s conftest.err
34203        } && test -s conftest.$ac_objext; then
34204   wx_cv_cc_visibility=yes
34205 else
34206   echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209         wx_cv_cc_visibility=no
34210 fi
34211
34212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34213       ac_ext=c
34214 ac_cpp='$CPP $CPPFLAGS'
34215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34218
34219       CXXFLAGS="$wx_save_CXXFLAGS"
34220 fi
34221
34222     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
34223 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
34224     if test $wx_cv_cc_visibility = yes; then
34225                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
34226 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
34227       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
34228   echo $ECHO_N "(cached) $ECHO_C" >&6
34229 else
34230
34231         wx_save_CXXFLAGS="$CXXFLAGS"
34232         wx_save_LDFLAGS="$LDFLAGS"
34233         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34234         LDFLAGS="$LDFLAGS -shared -fPIC"
34235         ac_ext=cpp
34236 ac_cpp='$CXXCPP $CPPFLAGS'
34237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34240
34241         cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247
34248             #include <string>
34249
34250 int
34251 main ()
34252 {
34253
34254             std::string s("hello");
34255             return s.length();
34256
34257   ;
34258   return 0;
34259 }
34260 _ACEOF
34261 rm -f conftest.$ac_objext conftest$ac_exeext
34262 if { (ac_try="$ac_link"
34263 case "(($ac_try" in
34264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265   *) ac_try_echo=$ac_try;;
34266 esac
34267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268   (eval "$ac_link") 2>conftest.er1
34269   ac_status=$?
34270   grep -v '^ *+' conftest.er1 >conftest.err
34271   rm -f conftest.er1
34272   cat conftest.err >&5
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); } && {
34275          test -z "$ac_cxx_werror_flag" ||
34276          test ! -s conftest.err
34277        } && test -s conftest$ac_exeext &&
34278        $as_test_x conftest$ac_exeext; then
34279   wx_cv_cc_broken_libstdcxx_visibility=no
34280 else
34281   echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34283
34284         wx_cv_cc_broken_libstdcxx_visibility=yes
34285 fi
34286
34287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34288       conftest$ac_exeext conftest.$ac_ext
34289         ac_ext=c
34290 ac_cpp='$CPP $CPPFLAGS'
34291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34294
34295         CXXFLAGS="$wx_save_CXXFLAGS"
34296         LDFLAGS="$wx_save_LDFLAGS"
34297 fi
34298
34299       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
34300 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
34301
34302       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34303         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
34304 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
34305         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
34306   echo $ECHO_N "(cached) $ECHO_C" >&6
34307 else
34308
34309           ac_ext=cpp
34310 ac_cpp='$CXXCPP $CPPFLAGS'
34311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34314
34315           cat >conftest.$ac_ext <<_ACEOF
34316 /* confdefs.h.  */
34317 _ACEOF
34318 cat confdefs.h >>conftest.$ac_ext
34319 cat >>conftest.$ac_ext <<_ACEOF
34320 /* end confdefs.h.  */
34321
34322               #pragma GCC visibility push(default)
34323               #include <string>
34324               #pragma GCC visibility pop
34325
34326 int
34327 main ()
34328 {
34329
34330               std::string s("hello");
34331               return s.length();
34332
34333   ;
34334   return 0;
34335 }
34336 _ACEOF
34337 rm -f conftest.$ac_objext conftest$ac_exeext
34338 if { (ac_try="$ac_link"
34339 case "(($ac_try" in
34340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34341   *) ac_try_echo=$ac_try;;
34342 esac
34343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34344   (eval "$ac_link") 2>conftest.er1
34345   ac_status=$?
34346   grep -v '^ *+' conftest.er1 >conftest.err
34347   rm -f conftest.er1
34348   cat conftest.err >&5
34349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350   (exit $ac_status); } && {
34351          test -z "$ac_cxx_werror_flag" ||
34352          test ! -s conftest.err
34353        } && test -s conftest$ac_exeext &&
34354        $as_test_x conftest$ac_exeext; then
34355   wx_cv_cc_visibility_workaround=no
34356 else
34357   echo "$as_me: failed program was:" >&5
34358 sed 's/^/| /' conftest.$ac_ext >&5
34359
34360         wx_cv_cc_visibility_workaround=yes
34361 fi
34362
34363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34364       conftest$ac_exeext conftest.$ac_ext
34365           ac_ext=c
34366 ac_cpp='$CPP $CPPFLAGS'
34367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34370
34371
34372 fi
34373
34374         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
34375 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
34376
34377         if test $wx_cv_cc_visibility_workaround = no; then
34378                     wx_cv_cc_visibility=no
34379         fi
34380       fi
34381     fi
34382
34383     if test $wx_cv_cc_visibility = yes; then
34384       cat >>confdefs.h <<\_ACEOF
34385 #define HAVE_VISIBILITY 1
34386 _ACEOF
34387
34388       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34389         cat >>confdefs.h <<\_ACEOF
34390 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
34391 _ACEOF
34392
34393       fi
34394     else
34395       CFLAGS_VISIBILITY=""
34396       CXXFLAGS_VISIBILITY=""
34397     fi
34398
34399
34400   fi
34401
34402     fi
34403
34404         if test "x$SUNCXX" = xyes; then
34405         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
34406         WXCONFIG_RPATH="-R\$libdir"
34407     else
34408     case "${host}" in
34409       *-*-linux* | *-*-gnu* )
34410         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34411         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34412         ;;
34413
34414       *-*-solaris2* )
34415
34416                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
34417
34418                         saveLdflags="$LDFLAGS"
34419         LDFLAGS="$saveLdflags -Wl,-rpath,/"
34420         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
34421 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
34422         cat >conftest.$ac_ext <<_ACEOF
34423 /* confdefs.h.  */
34424 _ACEOF
34425 cat confdefs.h >>conftest.$ac_ext
34426 cat >>conftest.$ac_ext <<_ACEOF
34427 /* end confdefs.h.  */
34428
34429 int
34430 main ()
34431 {
34432
34433   ;
34434   return 0;
34435 }
34436 _ACEOF
34437 rm -f conftest.$ac_objext conftest$ac_exeext
34438 if { (ac_try="$ac_link"
34439 case "(($ac_try" in
34440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34441   *) ac_try_echo=$ac_try;;
34442 esac
34443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34444   (eval "$ac_link") 2>conftest.er1
34445   ac_status=$?
34446   grep -v '^ *+' conftest.er1 >conftest.err
34447   rm -f conftest.er1
34448   cat conftest.err >&5
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); } && {
34451          test -z "$ac_c_werror_flag" ||
34452          test ! -s conftest.err
34453        } && test -s conftest$ac_exeext &&
34454        $as_test_x conftest$ac_exeext; then
34455
34456                 { echo "$as_me:$LINENO: result: yes" >&5
34457 echo "${ECHO_T}yes" >&6; }
34458                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34459                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34460
34461 else
34462   echo "$as_me: failed program was:" >&5
34463 sed 's/^/| /' conftest.$ac_ext >&5
34464
34465
34466                 { echo "$as_me:$LINENO: result: no" >&5
34467 echo "${ECHO_T}no" >&6; }
34468                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34469 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
34470                 LDFLAGS="$saveLdflags -Wl,-R,/"
34471                 cat >conftest.$ac_ext <<_ACEOF
34472 /* confdefs.h.  */
34473 _ACEOF
34474 cat confdefs.h >>conftest.$ac_ext
34475 cat >>conftest.$ac_ext <<_ACEOF
34476 /* end confdefs.h.  */
34477
34478 int
34479 main ()
34480 {
34481
34482   ;
34483   return 0;
34484 }
34485 _ACEOF
34486 rm -f conftest.$ac_objext conftest$ac_exeext
34487 if { (ac_try="$ac_link"
34488 case "(($ac_try" in
34489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34490   *) ac_try_echo=$ac_try;;
34491 esac
34492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34493   (eval "$ac_link") 2>conftest.er1
34494   ac_status=$?
34495   grep -v '^ *+' conftest.er1 >conftest.err
34496   rm -f conftest.er1
34497   cat conftest.err >&5
34498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499   (exit $ac_status); } && {
34500          test -z "$ac_c_werror_flag" ||
34501          test ! -s conftest.err
34502        } && test -s conftest$ac_exeext &&
34503        $as_test_x conftest$ac_exeext; then
34504
34505                         { echo "$as_me:$LINENO: result: yes" >&5
34506 echo "${ECHO_T}yes" >&6; }
34507                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
34508                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
34509
34510 else
34511   echo "$as_me: failed program was:" >&5
34512 sed 's/^/| /' conftest.$ac_ext >&5
34513
34514
34515                         { echo "$as_me:$LINENO: result: no" >&5
34516 echo "${ECHO_T}no" >&6; }
34517
34518 fi
34519
34520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34521       conftest$ac_exeext conftest.$ac_ext
34522
34523 fi
34524
34525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34526       conftest$ac_exeext conftest.$ac_ext
34527         LDFLAGS="$saveLdflags"
34528       ;;
34529
34530       *-*-darwin* )
34531         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
34532         if test "$install_name_tool" -a -x "$install_name_tool"; then
34533             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
34534             cat <<EOF >change-install-names
34535 #!/bin/sh
34536 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34537 for i in \${libnames} ; do
34538     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
34539     for dep in \${libnames} ; do
34540         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
34541     done
34542 done
34543 EOF
34544             chmod +x change-install-names
34545             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
34546         fi
34547
34548                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
34549       ;;
34550
34551       *-*-cygwin* | *-*-mingw32* )
34552         ;;
34553
34554       *-*-hpux* )
34555         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
34556         WXCONFIG_RPATH="-Wl,+b,\$libdir"
34557         ;;
34558
34559     esac
34560     fi
34561
34562             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34563
34564     if test $wxUSE_RPATH = "no"; then
34565         SAMPLES_RPATH_FLAG=''
34566         DYLIB_PATH_POSTLINK=''
34567         WXCONFIG_RPATH=''
34568     fi
34569
34570     SHARED=1
34571
34572 else
34573
34574     config_linkage_component="-static"
34575     SHARED=0
34576
34577 fi
34578
34579
34580 UNICODE=0
34581 lib_unicode_suffix=
34582 WX_CHARTYPE="ansi"
34583 if test "$wxUSE_UNICODE" = "yes"; then
34584     lib_unicode_suffix=u
34585     WX_CHARTYPE="unicode"
34586     UNICODE=1
34587 fi
34588
34589 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34590 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
34591
34592 DEBUG_INFO=0
34593 if test "$wxUSE_DEBUG_INFO" = "yes"; then
34594     DEBUG_INFO=1
34595 fi
34596
34597 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
34598
34599 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
34600
34601 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
34602
34603
34604 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34605     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34606 else
34607     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34608 fi
34609 if test "${TOOLKIT_DIR}" = "os2"; then
34610     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34611 else
34612     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34613 fi
34614
34615
34616
34617 if test "$wxUSE_OLD_COCOA" = 1; then
34618
34619     ac_ext=c
34620 ac_cpp='$CPP $CPPFLAGS'
34621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34624
34625 ac_ext=m
34626
34627     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34628 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34629     cat >conftest.$ac_ext <<_ACEOF
34630 /* confdefs.h.  */
34631 _ACEOF
34632 cat confdefs.h >>conftest.$ac_ext
34633 cat >>conftest.$ac_ext <<_ACEOF
34634 /* end confdefs.h.  */
34635 #include <AppKit/NSEvent.h>
34636 #include <CoreFoundation/CoreFoundation.h>
34637
34638 int
34639 main ()
34640 {
34641
34642   ;
34643   return 0;
34644 }
34645 _ACEOF
34646 rm -f conftest.$ac_objext
34647 if { (ac_try="$ac_compile"
34648 case "(($ac_try" in
34649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34650   *) ac_try_echo=$ac_try;;
34651 esac
34652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34653   (eval "$ac_compile") 2>conftest.er1
34654   ac_status=$?
34655   grep -v '^ *+' conftest.er1 >conftest.err
34656   rm -f conftest.er1
34657   cat conftest.err >&5
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); } && {
34660          test -z "$ac_c_werror_flag" ||
34661          test ! -s conftest.err
34662        } && test -s conftest.$ac_objext; then
34663   { echo "$as_me:$LINENO: result: no" >&5
34664 echo "${ECHO_T}no" >&6; }
34665 else
34666   echo "$as_me: failed program was:" >&5
34667 sed 's/^/| /' conftest.$ac_ext >&5
34668
34669         { echo "$as_me:$LINENO: result: yes" >&5
34670 echo "${ECHO_T}yes" >&6; }
34671         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34672 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34673         cat >conftest.$ac_ext <<_ACEOF
34674 /* confdefs.h.  */
34675 _ACEOF
34676 cat confdefs.h >>conftest.$ac_ext
34677 cat >>conftest.$ac_ext <<_ACEOF
34678 /* end confdefs.h.  */
34679 #define __Point__ 1
34680 #include <AppKit/NSEvent.h>
34681 #include <CoreFoundation/CoreFoundation.h>
34682
34683 int
34684 main ()
34685 {
34686
34687   ;
34688   return 0;
34689 }
34690 _ACEOF
34691 rm -f conftest.$ac_objext
34692 if { (ac_try="$ac_compile"
34693 case "(($ac_try" in
34694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34695   *) ac_try_echo=$ac_try;;
34696 esac
34697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34698   (eval "$ac_compile") 2>conftest.er1
34699   ac_status=$?
34700   grep -v '^ *+' conftest.er1 >conftest.err
34701   rm -f conftest.er1
34702   cat conftest.err >&5
34703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704   (exit $ac_status); } && {
34705          test -z "$ac_c_werror_flag" ||
34706          test ! -s conftest.err
34707        } && test -s conftest.$ac_objext; then
34708   { echo "$as_me:$LINENO: result: yes" >&5
34709 echo "${ECHO_T}yes" >&6; }
34710             cat >>confdefs.h <<\_ACEOF
34711 #define __Point__ 1
34712 _ACEOF
34713
34714
34715 else
34716   echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34718
34719         { { echo "$as_me:$LINENO: error: no
34720 See \`config.log' for more details." >&5
34721 echo "$as_me: error: no
34722 See \`config.log' for more details." >&2;}
34723    { (exit 1); exit 1; }; }
34724
34725 fi
34726
34727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34728
34729 fi
34730
34731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34732     ac_ext=c
34733 ac_cpp='$CPP $CPPFLAGS'
34734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34737
34738 fi
34739
34740
34741 { echo "$as_me:$LINENO: checking for mode_t" >&5
34742 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34743 if test "${ac_cv_type_mode_t+set}" = set; then
34744   echo $ECHO_N "(cached) $ECHO_C" >&6
34745 else
34746   cat >conftest.$ac_ext <<_ACEOF
34747 /* confdefs.h.  */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h.  */
34752 $ac_includes_default
34753 typedef mode_t ac__type_new_;
34754 int
34755 main ()
34756 {
34757 if ((ac__type_new_ *) 0)
34758   return 0;
34759 if (sizeof (ac__type_new_))
34760   return 0;
34761   ;
34762   return 0;
34763 }
34764 _ACEOF
34765 rm -f conftest.$ac_objext
34766 if { (ac_try="$ac_compile"
34767 case "(($ac_try" in
34768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34769   *) ac_try_echo=$ac_try;;
34770 esac
34771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34772   (eval "$ac_compile") 2>conftest.er1
34773   ac_status=$?
34774   grep -v '^ *+' conftest.er1 >conftest.err
34775   rm -f conftest.er1
34776   cat conftest.err >&5
34777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778   (exit $ac_status); } && {
34779          test -z "$ac_c_werror_flag" ||
34780          test ! -s conftest.err
34781        } && test -s conftest.$ac_objext; then
34782   ac_cv_type_mode_t=yes
34783 else
34784   echo "$as_me: failed program was:" >&5
34785 sed 's/^/| /' conftest.$ac_ext >&5
34786
34787         ac_cv_type_mode_t=no
34788 fi
34789
34790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34791 fi
34792 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34793 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34794 if test $ac_cv_type_mode_t = yes; then
34795   :
34796 else
34797
34798 cat >>confdefs.h <<_ACEOF
34799 #define mode_t int
34800 _ACEOF
34801
34802 fi
34803
34804 { echo "$as_me:$LINENO: checking for off_t" >&5
34805 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34806 if test "${ac_cv_type_off_t+set}" = set; then
34807   echo $ECHO_N "(cached) $ECHO_C" >&6
34808 else
34809   cat >conftest.$ac_ext <<_ACEOF
34810 /* confdefs.h.  */
34811 _ACEOF
34812 cat confdefs.h >>conftest.$ac_ext
34813 cat >>conftest.$ac_ext <<_ACEOF
34814 /* end confdefs.h.  */
34815 $ac_includes_default
34816 typedef off_t ac__type_new_;
34817 int
34818 main ()
34819 {
34820 if ((ac__type_new_ *) 0)
34821   return 0;
34822 if (sizeof (ac__type_new_))
34823   return 0;
34824   ;
34825   return 0;
34826 }
34827 _ACEOF
34828 rm -f conftest.$ac_objext
34829 if { (ac_try="$ac_compile"
34830 case "(($ac_try" in
34831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34832   *) ac_try_echo=$ac_try;;
34833 esac
34834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34835   (eval "$ac_compile") 2>conftest.er1
34836   ac_status=$?
34837   grep -v '^ *+' conftest.er1 >conftest.err
34838   rm -f conftest.er1
34839   cat conftest.err >&5
34840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841   (exit $ac_status); } && {
34842          test -z "$ac_c_werror_flag" ||
34843          test ! -s conftest.err
34844        } && test -s conftest.$ac_objext; then
34845   ac_cv_type_off_t=yes
34846 else
34847   echo "$as_me: failed program was:" >&5
34848 sed 's/^/| /' conftest.$ac_ext >&5
34849
34850         ac_cv_type_off_t=no
34851 fi
34852
34853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34854 fi
34855 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34856 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34857 if test $ac_cv_type_off_t = yes; then
34858   :
34859 else
34860
34861 cat >>confdefs.h <<_ACEOF
34862 #define off_t long int
34863 _ACEOF
34864
34865 fi
34866
34867 { echo "$as_me:$LINENO: checking for pid_t" >&5
34868 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34869 if test "${ac_cv_type_pid_t+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 $ac_includes_default
34879 typedef pid_t ac__type_new_;
34880 int
34881 main ()
34882 {
34883 if ((ac__type_new_ *) 0)
34884   return 0;
34885 if (sizeof (ac__type_new_))
34886   return 0;
34887   ;
34888   return 0;
34889 }
34890 _ACEOF
34891 rm -f conftest.$ac_objext
34892 if { (ac_try="$ac_compile"
34893 case "(($ac_try" in
34894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34895   *) ac_try_echo=$ac_try;;
34896 esac
34897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34898   (eval "$ac_compile") 2>conftest.er1
34899   ac_status=$?
34900   grep -v '^ *+' conftest.er1 >conftest.err
34901   rm -f conftest.er1
34902   cat conftest.err >&5
34903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904   (exit $ac_status); } && {
34905          test -z "$ac_c_werror_flag" ||
34906          test ! -s conftest.err
34907        } && test -s conftest.$ac_objext; then
34908   ac_cv_type_pid_t=yes
34909 else
34910   echo "$as_me: failed program was:" >&5
34911 sed 's/^/| /' conftest.$ac_ext >&5
34912
34913         ac_cv_type_pid_t=no
34914 fi
34915
34916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34917 fi
34918 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34919 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34920 if test $ac_cv_type_pid_t = yes; then
34921   :
34922 else
34923
34924 cat >>confdefs.h <<_ACEOF
34925 #define pid_t int
34926 _ACEOF
34927
34928 fi
34929
34930 { echo "$as_me:$LINENO: checking for size_t" >&5
34931 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34932 if test "${ac_cv_type_size_t+set}" = set; then
34933   echo $ECHO_N "(cached) $ECHO_C" >&6
34934 else
34935   cat >conftest.$ac_ext <<_ACEOF
34936 /* confdefs.h.  */
34937 _ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h.  */
34941 $ac_includes_default
34942 typedef size_t ac__type_new_;
34943 int
34944 main ()
34945 {
34946 if ((ac__type_new_ *) 0)
34947   return 0;
34948 if (sizeof (ac__type_new_))
34949   return 0;
34950   ;
34951   return 0;
34952 }
34953 _ACEOF
34954 rm -f conftest.$ac_objext
34955 if { (ac_try="$ac_compile"
34956 case "(($ac_try" in
34957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34958   *) ac_try_echo=$ac_try;;
34959 esac
34960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34961   (eval "$ac_compile") 2>conftest.er1
34962   ac_status=$?
34963   grep -v '^ *+' conftest.er1 >conftest.err
34964   rm -f conftest.er1
34965   cat conftest.err >&5
34966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967   (exit $ac_status); } && {
34968          test -z "$ac_c_werror_flag" ||
34969          test ! -s conftest.err
34970        } && test -s conftest.$ac_objext; then
34971   ac_cv_type_size_t=yes
34972 else
34973   echo "$as_me: failed program was:" >&5
34974 sed 's/^/| /' conftest.$ac_ext >&5
34975
34976         ac_cv_type_size_t=no
34977 fi
34978
34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980 fi
34981 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34982 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34983 if test $ac_cv_type_size_t = yes; then
34984   :
34985 else
34986
34987 cat >>confdefs.h <<_ACEOF
34988 #define size_t unsigned int
34989 _ACEOF
34990
34991 fi
34992
34993
34994 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34995 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34996 if test "${ac_cv_type_ssize_t+set}" = set; then
34997   echo $ECHO_N "(cached) $ECHO_C" >&6
34998 else
34999   cat >conftest.$ac_ext <<_ACEOF
35000 /* confdefs.h.  */
35001 _ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h.  */
35005 $ac_includes_default
35006 typedef ssize_t ac__type_new_;
35007 int
35008 main ()
35009 {
35010 if ((ac__type_new_ *) 0)
35011   return 0;
35012 if (sizeof (ac__type_new_))
35013   return 0;
35014   ;
35015   return 0;
35016 }
35017 _ACEOF
35018 rm -f conftest.$ac_objext
35019 if { (ac_try="$ac_compile"
35020 case "(($ac_try" in
35021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35022   *) ac_try_echo=$ac_try;;
35023 esac
35024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35025   (eval "$ac_compile") 2>conftest.er1
35026   ac_status=$?
35027   grep -v '^ *+' conftest.er1 >conftest.err
35028   rm -f conftest.er1
35029   cat conftest.err >&5
35030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031   (exit $ac_status); } && {
35032          test -z "$ac_c_werror_flag" ||
35033          test ! -s conftest.err
35034        } && test -s conftest.$ac_objext; then
35035   ac_cv_type_ssize_t=yes
35036 else
35037   echo "$as_me: failed program was:" >&5
35038 sed 's/^/| /' conftest.$ac_ext >&5
35039
35040         ac_cv_type_ssize_t=no
35041 fi
35042
35043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35044 fi
35045 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35046 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35047 if test $ac_cv_type_ssize_t = yes; then
35048
35049 cat >>confdefs.h <<_ACEOF
35050 #define HAVE_SSIZE_T 1
35051 _ACEOF
35052
35053
35054 fi
35055
35056
35057 ac_ext=cpp
35058 ac_cpp='$CXXCPP $CPPFLAGS'
35059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35062  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35063 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
35064 if test "${wx_cv_size_t_is_uint+set}" = set; then
35065   echo $ECHO_N "(cached) $ECHO_C" >&6
35066 else
35067
35068                             cat >conftest.$ac_ext <<_ACEOF
35069 /* confdefs.h.  */
35070 _ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h.  */
35074 #include <stddef.h>
35075 int
35076 main ()
35077 {
35078
35079             return 0; }
35080
35081             struct Foo { void foo(size_t); void foo(unsigned int); };
35082
35083             int bar() {
35084
35085   ;
35086   return 0;
35087 }
35088 _ACEOF
35089 rm -f conftest.$ac_objext
35090 if { (ac_try="$ac_compile"
35091 case "(($ac_try" in
35092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35093   *) ac_try_echo=$ac_try;;
35094 esac
35095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35096   (eval "$ac_compile") 2>conftest.er1
35097   ac_status=$?
35098   grep -v '^ *+' conftest.er1 >conftest.err
35099   rm -f conftest.er1
35100   cat conftest.err >&5
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); } && {
35103          test -z "$ac_cxx_werror_flag" ||
35104          test ! -s conftest.err
35105        } && test -s conftest.$ac_objext; then
35106   wx_cv_size_t_is_uint=no
35107 else
35108   echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.$ac_ext >&5
35110
35111         wx_cv_size_t_is_uint=yes
35112
35113 fi
35114
35115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35116
35117
35118 fi
35119 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35120 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
35121
35122 if test "$wx_cv_size_t_is_uint" = "yes"; then
35123     cat >>confdefs.h <<\_ACEOF
35124 #define wxSIZE_T_IS_UINT 1
35125 _ACEOF
35126
35127 else
35128     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35129 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
35130 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35131   echo $ECHO_N "(cached) $ECHO_C" >&6
35132 else
35133   cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h.  */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h.  */
35139 #include <stddef.h>
35140 int
35141 main ()
35142 {
35143
35144                 return 0; }
35145
35146                 struct Foo { void foo(size_t); void foo(unsigned long); };
35147
35148                 int bar() {
35149
35150   ;
35151   return 0;
35152 }
35153 _ACEOF
35154 rm -f conftest.$ac_objext
35155 if { (ac_try="$ac_compile"
35156 case "(($ac_try" in
35157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158   *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161   (eval "$ac_compile") 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && {
35168          test -z "$ac_cxx_werror_flag" ||
35169          test ! -s conftest.err
35170        } && test -s conftest.$ac_objext; then
35171   wx_cv_size_t_is_ulong=no
35172 else
35173   echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35175
35176         wx_cv_size_t_is_ulong=yes
35177
35178 fi
35179
35180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35181
35182 fi
35183 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35184 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
35185
35186     if test "$wx_cv_size_t_is_ulong" = "yes"; then
35187         cat >>confdefs.h <<\_ACEOF
35188 #define wxSIZE_T_IS_ULONG 1
35189 _ACEOF
35190
35191     fi
35192 fi
35193
35194 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
35195 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
35196 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
35197   echo $ECHO_N "(cached) $ECHO_C" >&6
35198 else
35199   cat >conftest.$ac_ext <<_ACEOF
35200 /* confdefs.h.  */
35201 _ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h.  */
35205 #include <wchar.h>
35206 int
35207 main ()
35208 {
35209
35210             return 0; }
35211
35212             struct Foo { void foo(wchar_t);
35213                          void foo(unsigned short);
35214                          void foo(unsigned int);
35215                          void foo(unsigned long); };
35216
35217             int bar() {
35218
35219   ;
35220   return 0;
35221 }
35222 _ACEOF
35223 rm -f conftest.$ac_objext
35224 if { (ac_try="$ac_compile"
35225 case "(($ac_try" in
35226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35227   *) ac_try_echo=$ac_try;;
35228 esac
35229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35230   (eval "$ac_compile") 2>conftest.er1
35231   ac_status=$?
35232   grep -v '^ *+' conftest.er1 >conftest.err
35233   rm -f conftest.er1
35234   cat conftest.err >&5
35235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236   (exit $ac_status); } && {
35237          test -z "$ac_cxx_werror_flag" ||
35238          test ! -s conftest.err
35239        } && test -s conftest.$ac_objext; then
35240   wx_cv_wchar_t_is_separate_type=yes
35241 else
35242   echo "$as_me: failed program was:" >&5
35243 sed 's/^/| /' conftest.$ac_ext >&5
35244
35245         wx_cv_wchar_t_is_separate_type=no
35246
35247 fi
35248
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35250
35251 fi
35252 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
35253 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
35254
35255 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
35256     cat >>confdefs.h <<\_ACEOF
35257 #define wxWCHAR_T_IS_REAL_TYPE 1
35258 _ACEOF
35259
35260 else
35261     cat >>confdefs.h <<\_ACEOF
35262 #define wxWCHAR_T_IS_REAL_TYPE 0
35263 _ACEOF
35264
35265 fi
35266
35267 ac_ext=c
35268 ac_cpp='$CPP $CPPFLAGS'
35269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35272
35273
35274 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35275 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
35276 if test "${wx_cv_struct_pw_gecos+set}" = set; then
35277   echo $ECHO_N "(cached) $ECHO_C" >&6
35278 else
35279
35280         cat >conftest.$ac_ext <<_ACEOF
35281 /* confdefs.h.  */
35282 _ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h.  */
35286 #include <pwd.h>
35287 int
35288 main ()
35289 {
35290
35291                 char *p;
35292                 struct passwd *pw;
35293                 p = pw->pw_gecos;
35294
35295   ;
35296   return 0;
35297 }
35298 _ACEOF
35299 rm -f conftest.$ac_objext
35300 if { (ac_try="$ac_compile"
35301 case "(($ac_try" in
35302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35303   *) ac_try_echo=$ac_try;;
35304 esac
35305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35306   (eval "$ac_compile") 2>conftest.er1
35307   ac_status=$?
35308   grep -v '^ *+' conftest.er1 >conftest.err
35309   rm -f conftest.er1
35310   cat conftest.err >&5
35311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312   (exit $ac_status); } && {
35313          test -z "$ac_c_werror_flag" ||
35314          test ! -s conftest.err
35315        } && test -s conftest.$ac_objext; then
35316
35317                 wx_cv_struct_pw_gecos=yes
35318
35319 else
35320   echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35322
35323
35324                 wx_cv_struct_pw_gecos=no
35325
35326
35327 fi
35328
35329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35330
35331
35332 fi
35333 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
35334 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
35335
35336 if test "$wx_cv_struct_pw_gecos" = "yes"; then
35337     cat >>confdefs.h <<\_ACEOF
35338 #define HAVE_PW_GECOS 1
35339 _ACEOF
35340
35341 fi
35342
35343
35344 if test "$wxUSE_WCHAR_T" = "yes"; then
35345     cat >>confdefs.h <<\_ACEOF
35346 #define wxUSE_WCHAR_T 1
35347 _ACEOF
35348
35349
35350         WCSLEN_FOUND=0
35351     WCHAR_LINK=
35352
35353 for ac_func in wcslen
35354 do
35355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35359   echo $ECHO_N "(cached) $ECHO_C" >&6
35360 else
35361   cat >conftest.$ac_ext <<_ACEOF
35362 /* confdefs.h.  */
35363 _ACEOF
35364 cat confdefs.h >>conftest.$ac_ext
35365 cat >>conftest.$ac_ext <<_ACEOF
35366 /* end confdefs.h.  */
35367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35369 #define $ac_func innocuous_$ac_func
35370
35371 /* System header to define __stub macros and hopefully few prototypes,
35372     which can conflict with char $ac_func (); below.
35373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35374     <limits.h> exists even on freestanding compilers.  */
35375
35376 #ifdef __STDC__
35377 # include <limits.h>
35378 #else
35379 # include <assert.h>
35380 #endif
35381
35382 #undef $ac_func
35383
35384 /* Override any GCC internal prototype to avoid an error.
35385    Use char because int might match the return type of a GCC
35386    builtin and then its argument prototype would still apply.  */
35387 #ifdef __cplusplus
35388 extern "C"
35389 #endif
35390 char $ac_func ();
35391 /* The GNU C library defines this for functions which it implements
35392     to always fail with ENOSYS.  Some functions are actually named
35393     something starting with __ and the normal name is an alias.  */
35394 #if defined __stub_$ac_func || defined __stub___$ac_func
35395 choke me
35396 #endif
35397
35398 int
35399 main ()
35400 {
35401 return $ac_func ();
35402   ;
35403   return 0;
35404 }
35405 _ACEOF
35406 rm -f conftest.$ac_objext conftest$ac_exeext
35407 if { (ac_try="$ac_link"
35408 case "(($ac_try" in
35409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35410   *) ac_try_echo=$ac_try;;
35411 esac
35412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35413   (eval "$ac_link") 2>conftest.er1
35414   ac_status=$?
35415   grep -v '^ *+' conftest.er1 >conftest.err
35416   rm -f conftest.er1
35417   cat conftest.err >&5
35418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419   (exit $ac_status); } && {
35420          test -z "$ac_c_werror_flag" ||
35421          test ! -s conftest.err
35422        } && test -s conftest$ac_exeext &&
35423        $as_test_x conftest$ac_exeext; then
35424   eval "$as_ac_var=yes"
35425 else
35426   echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35428
35429         eval "$as_ac_var=no"
35430 fi
35431
35432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35433       conftest$ac_exeext conftest.$ac_ext
35434 fi
35435 ac_res=`eval echo '${'$as_ac_var'}'`
35436                { echo "$as_me:$LINENO: result: $ac_res" >&5
35437 echo "${ECHO_T}$ac_res" >&6; }
35438 if test `eval echo '${'$as_ac_var'}'` = yes; then
35439   cat >>confdefs.h <<_ACEOF
35440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35441 _ACEOF
35442  WCSLEN_FOUND=1
35443 fi
35444 done
35445
35446
35447     if test "$WCSLEN_FOUND" = 0; then
35448         if test "$TOOLKIT" = "MSW"; then
35449             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35450 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
35451 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35452   echo $ECHO_N "(cached) $ECHO_C" >&6
35453 else
35454   ac_check_lib_save_LIBS=$LIBS
35455 LIBS="-lmsvcrt  $LIBS"
35456 cat >conftest.$ac_ext <<_ACEOF
35457 /* confdefs.h.  */
35458 _ACEOF
35459 cat confdefs.h >>conftest.$ac_ext
35460 cat >>conftest.$ac_ext <<_ACEOF
35461 /* end confdefs.h.  */
35462
35463 /* Override any GCC internal prototype to avoid an error.
35464    Use char because int might match the return type of a GCC
35465    builtin and then its argument prototype would still apply.  */
35466 #ifdef __cplusplus
35467 extern "C"
35468 #endif
35469 char wcslen ();
35470 int
35471 main ()
35472 {
35473 return wcslen ();
35474   ;
35475   return 0;
35476 }
35477 _ACEOF
35478 rm -f conftest.$ac_objext conftest$ac_exeext
35479 if { (ac_try="$ac_link"
35480 case "(($ac_try" in
35481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482   *) ac_try_echo=$ac_try;;
35483 esac
35484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35485   (eval "$ac_link") 2>conftest.er1
35486   ac_status=$?
35487   grep -v '^ *+' conftest.er1 >conftest.err
35488   rm -f conftest.er1
35489   cat conftest.err >&5
35490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491   (exit $ac_status); } && {
35492          test -z "$ac_c_werror_flag" ||
35493          test ! -s conftest.err
35494        } && test -s conftest$ac_exeext &&
35495        $as_test_x conftest$ac_exeext; then
35496   ac_cv_lib_msvcrt_wcslen=yes
35497 else
35498   echo "$as_me: failed program was:" >&5
35499 sed 's/^/| /' conftest.$ac_ext >&5
35500
35501         ac_cv_lib_msvcrt_wcslen=no
35502 fi
35503
35504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35505       conftest$ac_exeext conftest.$ac_ext
35506 LIBS=$ac_check_lib_save_LIBS
35507 fi
35508 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35509 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
35510 if test $ac_cv_lib_msvcrt_wcslen = yes; then
35511   WCHAR_OK=1
35512 fi
35513
35514         else
35515             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35516 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
35517 if test "${ac_cv_lib_w_wcslen+set}" = set; then
35518   echo $ECHO_N "(cached) $ECHO_C" >&6
35519 else
35520   ac_check_lib_save_LIBS=$LIBS
35521 LIBS="-lw  $LIBS"
35522 cat >conftest.$ac_ext <<_ACEOF
35523 /* confdefs.h.  */
35524 _ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h.  */
35528
35529 /* Override any GCC internal prototype to avoid an error.
35530    Use char because int might match the return type of a GCC
35531    builtin and then its argument prototype would still apply.  */
35532 #ifdef __cplusplus
35533 extern "C"
35534 #endif
35535 char wcslen ();
35536 int
35537 main ()
35538 {
35539 return wcslen ();
35540   ;
35541   return 0;
35542 }
35543 _ACEOF
35544 rm -f conftest.$ac_objext conftest$ac_exeext
35545 if { (ac_try="$ac_link"
35546 case "(($ac_try" in
35547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548   *) ac_try_echo=$ac_try;;
35549 esac
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551   (eval "$ac_link") 2>conftest.er1
35552   ac_status=$?
35553   grep -v '^ *+' conftest.er1 >conftest.err
35554   rm -f conftest.er1
35555   cat conftest.err >&5
35556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557   (exit $ac_status); } && {
35558          test -z "$ac_c_werror_flag" ||
35559          test ! -s conftest.err
35560        } && test -s conftest$ac_exeext &&
35561        $as_test_x conftest$ac_exeext; then
35562   ac_cv_lib_w_wcslen=yes
35563 else
35564   echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35566
35567         ac_cv_lib_w_wcslen=no
35568 fi
35569
35570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35571       conftest$ac_exeext conftest.$ac_ext
35572 LIBS=$ac_check_lib_save_LIBS
35573 fi
35574 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35575 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
35576 if test $ac_cv_lib_w_wcslen = yes; then
35577
35578                             WCHAR_LINK=" -lw"
35579                             WCSLEN_FOUND=1
35580
35581 fi
35582
35583         fi
35584     fi
35585
35586     if test "$WCSLEN_FOUND" = 1; then
35587         cat >>confdefs.h <<\_ACEOF
35588 #define HAVE_WCSLEN 1
35589 _ACEOF
35590
35591     fi
35592
35593
35594
35595
35596
35597
35598 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
35599 do
35600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35604   echo $ECHO_N "(cached) $ECHO_C" >&6
35605 else
35606   cat >conftest.$ac_ext <<_ACEOF
35607 /* confdefs.h.  */
35608 _ACEOF
35609 cat confdefs.h >>conftest.$ac_ext
35610 cat >>conftest.$ac_ext <<_ACEOF
35611 /* end confdefs.h.  */
35612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35614 #define $ac_func innocuous_$ac_func
35615
35616 /* System header to define __stub macros and hopefully few prototypes,
35617     which can conflict with char $ac_func (); below.
35618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35619     <limits.h> exists even on freestanding compilers.  */
35620
35621 #ifdef __STDC__
35622 # include <limits.h>
35623 #else
35624 # include <assert.h>
35625 #endif
35626
35627 #undef $ac_func
35628
35629 /* Override any GCC internal prototype to avoid an error.
35630    Use char because int might match the return type of a GCC
35631    builtin and then its argument prototype would still apply.  */
35632 #ifdef __cplusplus
35633 extern "C"
35634 #endif
35635 char $ac_func ();
35636 /* The GNU C library defines this for functions which it implements
35637     to always fail with ENOSYS.  Some functions are actually named
35638     something starting with __ and the normal name is an alias.  */
35639 #if defined __stub_$ac_func || defined __stub___$ac_func
35640 choke me
35641 #endif
35642
35643 int
35644 main ()
35645 {
35646 return $ac_func ();
35647   ;
35648   return 0;
35649 }
35650 _ACEOF
35651 rm -f conftest.$ac_objext conftest$ac_exeext
35652 if { (ac_try="$ac_link"
35653 case "(($ac_try" in
35654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35655   *) ac_try_echo=$ac_try;;
35656 esac
35657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35658   (eval "$ac_link") 2>conftest.er1
35659   ac_status=$?
35660   grep -v '^ *+' conftest.er1 >conftest.err
35661   rm -f conftest.er1
35662   cat conftest.err >&5
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); } && {
35665          test -z "$ac_c_werror_flag" ||
35666          test ! -s conftest.err
35667        } && test -s conftest$ac_exeext &&
35668        $as_test_x conftest$ac_exeext; then
35669   eval "$as_ac_var=yes"
35670 else
35671   echo "$as_me: failed program was:" >&5
35672 sed 's/^/| /' conftest.$ac_ext >&5
35673
35674         eval "$as_ac_var=no"
35675 fi
35676
35677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35678       conftest$ac_exeext conftest.$ac_ext
35679 fi
35680 ac_res=`eval echo '${'$as_ac_var'}'`
35681                { echo "$as_me:$LINENO: result: $ac_res" >&5
35682 echo "${ECHO_T}$ac_res" >&6; }
35683 if test `eval echo '${'$as_ac_var'}'` = yes; then
35684   cat >>confdefs.h <<_ACEOF
35685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35686 _ACEOF
35687
35688 fi
35689 done
35690
35691
35692                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35693         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35694     fi
35695
35696                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35697 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35698 if test "${ac_cv_type_mbstate_t+set}" = set; then
35699   echo $ECHO_N "(cached) $ECHO_C" >&6
35700 else
35701   cat >conftest.$ac_ext <<_ACEOF
35702 /* confdefs.h.  */
35703 _ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h.  */
35707 #include <wchar.h>
35708
35709 typedef mbstate_t ac__type_new_;
35710 int
35711 main ()
35712 {
35713 if ((ac__type_new_ *) 0)
35714   return 0;
35715 if (sizeof (ac__type_new_))
35716   return 0;
35717   ;
35718   return 0;
35719 }
35720 _ACEOF
35721 rm -f conftest.$ac_objext
35722 if { (ac_try="$ac_compile"
35723 case "(($ac_try" in
35724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35725   *) ac_try_echo=$ac_try;;
35726 esac
35727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35728   (eval "$ac_compile") 2>conftest.er1
35729   ac_status=$?
35730   grep -v '^ *+' conftest.er1 >conftest.err
35731   rm -f conftest.er1
35732   cat conftest.err >&5
35733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); } && {
35735          test -z "$ac_c_werror_flag" ||
35736          test ! -s conftest.err
35737        } && test -s conftest.$ac_objext; then
35738   ac_cv_type_mbstate_t=yes
35739 else
35740   echo "$as_me: failed program was:" >&5
35741 sed 's/^/| /' conftest.$ac_ext >&5
35742
35743         ac_cv_type_mbstate_t=no
35744 fi
35745
35746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35747 fi
35748 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35749 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35750 if test $ac_cv_type_mbstate_t = yes; then
35751
35752 cat >>confdefs.h <<_ACEOF
35753 #define HAVE_MBSTATE_T 1
35754 _ACEOF
35755
35756
35757 for ac_func in wcsrtombs
35758 do
35759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35763   echo $ECHO_N "(cached) $ECHO_C" >&6
35764 else
35765   cat >conftest.$ac_ext <<_ACEOF
35766 /* confdefs.h.  */
35767 _ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h.  */
35771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35773 #define $ac_func innocuous_$ac_func
35774
35775 /* System header to define __stub macros and hopefully few prototypes,
35776     which can conflict with char $ac_func (); below.
35777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35778     <limits.h> exists even on freestanding compilers.  */
35779
35780 #ifdef __STDC__
35781 # include <limits.h>
35782 #else
35783 # include <assert.h>
35784 #endif
35785
35786 #undef $ac_func
35787
35788 /* Override any GCC internal prototype to avoid an error.
35789    Use char because int might match the return type of a GCC
35790    builtin and then its argument prototype would still apply.  */
35791 #ifdef __cplusplus
35792 extern "C"
35793 #endif
35794 char $ac_func ();
35795 /* The GNU C library defines this for functions which it implements
35796     to always fail with ENOSYS.  Some functions are actually named
35797     something starting with __ and the normal name is an alias.  */
35798 #if defined __stub_$ac_func || defined __stub___$ac_func
35799 choke me
35800 #endif
35801
35802 int
35803 main ()
35804 {
35805 return $ac_func ();
35806   ;
35807   return 0;
35808 }
35809 _ACEOF
35810 rm -f conftest.$ac_objext conftest$ac_exeext
35811 if { (ac_try="$ac_link"
35812 case "(($ac_try" in
35813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35814   *) ac_try_echo=$ac_try;;
35815 esac
35816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35817   (eval "$ac_link") 2>conftest.er1
35818   ac_status=$?
35819   grep -v '^ *+' conftest.er1 >conftest.err
35820   rm -f conftest.er1
35821   cat conftest.err >&5
35822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823   (exit $ac_status); } && {
35824          test -z "$ac_c_werror_flag" ||
35825          test ! -s conftest.err
35826        } && test -s conftest$ac_exeext &&
35827        $as_test_x conftest$ac_exeext; then
35828   eval "$as_ac_var=yes"
35829 else
35830   echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35832
35833         eval "$as_ac_var=no"
35834 fi
35835
35836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35837       conftest$ac_exeext conftest.$ac_ext
35838 fi
35839 ac_res=`eval echo '${'$as_ac_var'}'`
35840                { echo "$as_me:$LINENO: result: $ac_res" >&5
35841 echo "${ECHO_T}$ac_res" >&6; }
35842 if test `eval echo '${'$as_ac_var'}'` = yes; then
35843   cat >>confdefs.h <<_ACEOF
35844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35845 _ACEOF
35846
35847 fi
35848 done
35849
35850 fi
35851
35852 else
35853     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35854 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35855 fi
35856
35857
35858
35859
35860 for ac_func in snprintf vsnprintf vsscanf
35861 do
35862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35866   echo $ECHO_N "(cached) $ECHO_C" >&6
35867 else
35868   cat >conftest.$ac_ext <<_ACEOF
35869 /* confdefs.h.  */
35870 _ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h.  */
35874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35876 #define $ac_func innocuous_$ac_func
35877
35878 /* System header to define __stub macros and hopefully few prototypes,
35879     which can conflict with char $ac_func (); below.
35880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35881     <limits.h> exists even on freestanding compilers.  */
35882
35883 #ifdef __STDC__
35884 # include <limits.h>
35885 #else
35886 # include <assert.h>
35887 #endif
35888
35889 #undef $ac_func
35890
35891 /* Override any GCC internal prototype to avoid an error.
35892    Use char because int might match the return type of a GCC
35893    builtin and then its argument prototype would still apply.  */
35894 #ifdef __cplusplus
35895 extern "C"
35896 #endif
35897 char $ac_func ();
35898 /* The GNU C library defines this for functions which it implements
35899     to always fail with ENOSYS.  Some functions are actually named
35900     something starting with __ and the normal name is an alias.  */
35901 #if defined __stub_$ac_func || defined __stub___$ac_func
35902 choke me
35903 #endif
35904
35905 int
35906 main ()
35907 {
35908 return $ac_func ();
35909   ;
35910   return 0;
35911 }
35912 _ACEOF
35913 rm -f conftest.$ac_objext conftest$ac_exeext
35914 if { (ac_try="$ac_link"
35915 case "(($ac_try" in
35916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35917   *) ac_try_echo=$ac_try;;
35918 esac
35919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35920   (eval "$ac_link") 2>conftest.er1
35921   ac_status=$?
35922   grep -v '^ *+' conftest.er1 >conftest.err
35923   rm -f conftest.er1
35924   cat conftest.err >&5
35925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35926   (exit $ac_status); } && {
35927          test -z "$ac_c_werror_flag" ||
35928          test ! -s conftest.err
35929        } && test -s conftest$ac_exeext &&
35930        $as_test_x conftest$ac_exeext; then
35931   eval "$as_ac_var=yes"
35932 else
35933   echo "$as_me: failed program was:" >&5
35934 sed 's/^/| /' conftest.$ac_ext >&5
35935
35936         eval "$as_ac_var=no"
35937 fi
35938
35939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35940       conftest$ac_exeext conftest.$ac_ext
35941 fi
35942 ac_res=`eval echo '${'$as_ac_var'}'`
35943                { echo "$as_me:$LINENO: result: $ac_res" >&5
35944 echo "${ECHO_T}$ac_res" >&6; }
35945 if test `eval echo '${'$as_ac_var'}'` = yes; then
35946   cat >>confdefs.h <<_ACEOF
35947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35948 _ACEOF
35949
35950 fi
35951 done
35952
35953
35954 ac_ext=cpp
35955 ac_cpp='$CXXCPP $CPPFLAGS'
35956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35959
35960 if test "$ac_cv_func_vsnprintf" = "yes"; then
35961         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35962 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35963 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35964   echo $ECHO_N "(cached) $ECHO_C" >&6
35965 else
35966
35967                                                             cat >conftest.$ac_ext <<_ACEOF
35968 /* confdefs.h.  */
35969 _ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h.  */
35973
35974                     #include <stdio.h>
35975                     #include <stdarg.h>
35976                     #ifdef __MSL__
35977                     #if __MSL__ >= 0x6000
35978                     namespace std {}
35979                     using namespace std;
35980                     #endif
35981                     #endif
35982
35983 int
35984 main ()
35985 {
35986
35987                     char *buf;
35988                     va_list ap;
35989                     vsnprintf(buf, 10u, "%s", ap);
35990
35991   ;
35992   return 0;
35993 }
35994 _ACEOF
35995 rm -f conftest.$ac_objext
35996 if { (ac_try="$ac_compile"
35997 case "(($ac_try" in
35998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35999   *) ac_try_echo=$ac_try;;
36000 esac
36001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36002   (eval "$ac_compile") 2>conftest.er1
36003   ac_status=$?
36004   grep -v '^ *+' conftest.er1 >conftest.err
36005   rm -f conftest.er1
36006   cat conftest.err >&5
36007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008   (exit $ac_status); } && {
36009          test -z "$ac_cxx_werror_flag" ||
36010          test ! -s conftest.err
36011        } && test -s conftest.$ac_objext; then
36012   wx_cv_func_vsnprintf_decl=yes
36013 else
36014   echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36016
36017         wx_cv_func_vsnprintf_decl=no
36018
36019 fi
36020
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022
36023
36024 fi
36025 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36026 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36027
36028     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36029         cat >>confdefs.h <<\_ACEOF
36030 #define HAVE_VSNPRINTF_DECL 1
36031 _ACEOF
36032
36033
36034                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36035 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
36036 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36037   echo $ECHO_N "(cached) $ECHO_C" >&6
36038 else
36039
36040                 cat >conftest.$ac_ext <<_ACEOF
36041 /* confdefs.h.  */
36042 _ACEOF
36043 cat confdefs.h >>conftest.$ac_ext
36044 cat >>conftest.$ac_ext <<_ACEOF
36045 /* end confdefs.h.  */
36046
36047                         #include <stdio.h>
36048                         #include <stdarg.h>
36049                         #ifdef __MSL__
36050                         #if __MSL__ >= 0x6000
36051                         namespace std {}
36052                         using namespace std;
36053                         #endif
36054                         #endif
36055
36056 int
36057 main ()
36058 {
36059
36060                         char *buf;
36061                         va_list ap;
36062                         const char *fmt = "%s";
36063                         vsnprintf(buf, 10u, fmt, ap);
36064
36065   ;
36066   return 0;
36067 }
36068 _ACEOF
36069 rm -f conftest.$ac_objext
36070 if { (ac_try="$ac_compile"
36071 case "(($ac_try" in
36072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36073   *) ac_try_echo=$ac_try;;
36074 esac
36075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36076   (eval "$ac_compile") 2>conftest.er1
36077   ac_status=$?
36078   grep -v '^ *+' conftest.er1 >conftest.err
36079   rm -f conftest.er1
36080   cat conftest.err >&5
36081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082   (exit $ac_status); } && {
36083          test -z "$ac_cxx_werror_flag" ||
36084          test ! -s conftest.err
36085        } && test -s conftest.$ac_objext; then
36086   wx_cv_func_broken_vsnprintf_decl=no
36087 else
36088   echo "$as_me: failed program was:" >&5
36089 sed 's/^/| /' conftest.$ac_ext >&5
36090
36091         wx_cv_func_broken_vsnprintf_decl=yes
36092
36093 fi
36094
36095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36096
36097
36098 fi
36099 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36100 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
36101
36102         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36103             cat >>confdefs.h <<\_ACEOF
36104 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36105 _ACEOF
36106
36107         fi
36108     fi
36109 fi
36110
36111 if test "$ac_cv_func_snprintf" = "yes"; then
36112     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36113 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
36114 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36115   echo $ECHO_N "(cached) $ECHO_C" >&6
36116 else
36117
36118             cat >conftest.$ac_ext <<_ACEOF
36119 /* confdefs.h.  */
36120 _ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h.  */
36124
36125                     #include <stdio.h>
36126                     #include <stdarg.h>
36127                     #ifdef __MSL__
36128                     #if __MSL__ >= 0x6000
36129                     namespace std {}
36130                     using namespace std;
36131                     #endif
36132                     #endif
36133
36134 int
36135 main ()
36136 {
36137
36138                     char *buf;
36139                     snprintf(buf, 10u, "%s", "wx");
36140
36141   ;
36142   return 0;
36143 }
36144 _ACEOF
36145 rm -f conftest.$ac_objext
36146 if { (ac_try="$ac_compile"
36147 case "(($ac_try" in
36148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36149   *) ac_try_echo=$ac_try;;
36150 esac
36151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36152   (eval "$ac_compile") 2>conftest.er1
36153   ac_status=$?
36154   grep -v '^ *+' conftest.er1 >conftest.err
36155   rm -f conftest.er1
36156   cat conftest.err >&5
36157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158   (exit $ac_status); } && {
36159          test -z "$ac_cxx_werror_flag" ||
36160          test ! -s conftest.err
36161        } && test -s conftest.$ac_objext; then
36162   wx_cv_func_snprintf_decl=yes
36163 else
36164   echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36166
36167         wx_cv_func_snprintf_decl=no
36168
36169 fi
36170
36171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36172
36173
36174 fi
36175 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36176 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
36177
36178     if test "$wx_cv_func_snprintf_decl" = "yes"; then
36179         cat >>confdefs.h <<\_ACEOF
36180 #define HAVE_SNPRINTF_DECL 1
36181 _ACEOF
36182
36183     fi
36184
36185     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36186
36187                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36188 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
36189 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
36190   echo $ECHO_N "(cached) $ECHO_C" >&6
36191 else
36192
36193                 if test "$cross_compiling" = yes; then
36194
36195                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
36196 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
36197 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
36198 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36199                         wx_cv_func_snprintf_pos_params=no
36200
36201
36202 else
36203   cat >conftest.$ac_ext <<_ACEOF
36204 /* confdefs.h.  */
36205 _ACEOF
36206 cat confdefs.h >>conftest.$ac_ext
36207 cat >>conftest.$ac_ext <<_ACEOF
36208 /* end confdefs.h.  */
36209
36210                         #include <stdio.h>
36211
36212                         int main (void)
36213                         {
36214                             char buffer[128];
36215                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
36216                             if (strcmp ("2 3 1", buffer) == 0)
36217                                 exit (0);
36218                             exit (1);
36219                         }
36220
36221 _ACEOF
36222 rm -f conftest$ac_exeext
36223 if { (ac_try="$ac_link"
36224 case "(($ac_try" in
36225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36226   *) ac_try_echo=$ac_try;;
36227 esac
36228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36229   (eval "$ac_link") 2>&5
36230   ac_status=$?
36231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36233   { (case "(($ac_try" in
36234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36235   *) ac_try_echo=$ac_try;;
36236 esac
36237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36238   (eval "$ac_try") 2>&5
36239   ac_status=$?
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); }; }; then
36242   wx_cv_func_snprintf_pos_params=no
36243 else
36244   echo "$as_me: program exited with status $ac_status" >&5
36245 echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248 ( exit $ac_status )
36249 wx_cv_func_snprintf_pos_params=yes
36250 fi
36251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36252 fi
36253
36254
36255
36256
36257 fi
36258 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
36259 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
36260
36261         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
36262             cat >>confdefs.h <<\_ACEOF
36263 #define HAVE_UNIX98_PRINTF 1
36264 _ACEOF
36265
36266         fi
36267     fi
36268 fi
36269
36270 if test "$ac_cv_func_vsscanf" = "yes"; then
36271     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
36272 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
36273 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
36274   echo $ECHO_N "(cached) $ECHO_C" >&6
36275 else
36276
36277             cat >conftest.$ac_ext <<_ACEOF
36278 /* confdefs.h.  */
36279 _ACEOF
36280 cat confdefs.h >>conftest.$ac_ext
36281 cat >>conftest.$ac_ext <<_ACEOF
36282 /* end confdefs.h.  */
36283
36284                     #include <stdio.h>
36285                     #include <stdarg.h>
36286                     #ifdef __MSL__
36287                     #if __MSL__ >= 0x6000
36288                     namespace std {}
36289                     using namespace std;
36290                     #endif
36291                     #endif
36292
36293 int
36294 main ()
36295 {
36296
36297                     char *buf;
36298                     va_list args;
36299                     vsscanf(buf, "%s", args);
36300
36301   ;
36302   return 0;
36303 }
36304 _ACEOF
36305 rm -f conftest.$ac_objext
36306 if { (ac_try="$ac_compile"
36307 case "(($ac_try" in
36308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36309   *) ac_try_echo=$ac_try;;
36310 esac
36311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36312   (eval "$ac_compile") 2>conftest.er1
36313   ac_status=$?
36314   grep -v '^ *+' conftest.er1 >conftest.err
36315   rm -f conftest.er1
36316   cat conftest.err >&5
36317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318   (exit $ac_status); } && {
36319          test -z "$ac_cxx_werror_flag" ||
36320          test ! -s conftest.err
36321        } && test -s conftest.$ac_objext; then
36322   wx_cv_func_vsscanf_decl=yes
36323 else
36324   echo "$as_me: failed program was:" >&5
36325 sed 's/^/| /' conftest.$ac_ext >&5
36326
36327         wx_cv_func_vsscanf_decl=no
36328
36329 fi
36330
36331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36332
36333
36334 fi
36335 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
36336 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
36337
36338     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
36339         cat >>confdefs.h <<\_ACEOF
36340 #define HAVE_VSSCANF_DECL 1
36341 _ACEOF
36342
36343     fi
36344 fi
36345 ac_ext=c
36346 ac_cpp='$CPP $CPPFLAGS'
36347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36350
36351
36352 if test "$wxUSE_UNICODE" = yes; then
36353
36354             wchar_headers="#include <stdio.h>
36355 #include <wchar.h>"
36356     case "${host}" in
36357         *-*-solaris2* )
36358
36359 for ac_header in widec.h
36360 do
36361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36365   echo $ECHO_N "(cached) $ECHO_C" >&6
36366 else
36367   cat >conftest.$ac_ext <<_ACEOF
36368 /* confdefs.h.  */
36369 _ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h.  */
36373 $ac_includes_default
36374
36375 #include <$ac_header>
36376 _ACEOF
36377 rm -f conftest.$ac_objext
36378 if { (ac_try="$ac_compile"
36379 case "(($ac_try" in
36380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36381   *) ac_try_echo=$ac_try;;
36382 esac
36383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36384   (eval "$ac_compile") 2>conftest.er1
36385   ac_status=$?
36386   grep -v '^ *+' conftest.er1 >conftest.err
36387   rm -f conftest.er1
36388   cat conftest.err >&5
36389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390   (exit $ac_status); } && {
36391          test -z "$ac_c_werror_flag" ||
36392          test ! -s conftest.err
36393        } && test -s conftest.$ac_objext; then
36394   eval "$as_ac_Header=yes"
36395 else
36396   echo "$as_me: failed program was:" >&5
36397 sed 's/^/| /' conftest.$ac_ext >&5
36398
36399         eval "$as_ac_Header=no"
36400 fi
36401
36402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36403 fi
36404 ac_res=`eval echo '${'$as_ac_Header'}'`
36405                { echo "$as_me:$LINENO: result: $ac_res" >&5
36406 echo "${ECHO_T}$ac_res" >&6; }
36407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36408   cat >>confdefs.h <<_ACEOF
36409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36410 _ACEOF
36411
36412 fi
36413
36414 done
36415
36416             if test "$ac_cv_header_widec_h" = "yes"; then
36417                 wchar_headers="$wchar_headers
36418 #include <widec.h>"
36419             fi
36420     esac
36421
36422
36423   for wx_func in putws fputws wprintf vswprintf vswscanf
36424   do
36425     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36426 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36427 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36428   echo $ECHO_N "(cached) $ECHO_C" >&6
36429 else
36430
36431         cat >conftest.$ac_ext <<_ACEOF
36432
36433             /* confdefs.h.  */
36434 _ACEOF
36435 cat confdefs.h >>conftest.$ac_ext
36436 cat >>conftest.$ac_ext <<_ACEOF
36437 /* end confdefs.h.  */
36438
36439                 $wchar_headers
36440                 $ac_includes_default
36441
36442 int
36443 main ()
36444 {
36445
36446                 #ifndef $wx_func
36447                   &$wx_func;
36448                 #endif
36449
36450
36451   ;
36452   return 0;
36453 }
36454
36455 _ACEOF
36456 rm -f conftest.$ac_objext conftest$ac_exeext
36457 if { (ac_try="$ac_link"
36458 case "(($ac_try" in
36459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36460   *) ac_try_echo=$ac_try;;
36461 esac
36462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36463   (eval "$ac_link") 2>conftest.er1
36464   ac_status=$?
36465   grep -v '^ *+' conftest.er1 >conftest.err
36466   rm -f conftest.er1
36467   cat conftest.err >&5
36468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469   (exit $ac_status); } && {
36470          test -z "$ac_c_werror_flag" ||
36471          test ! -s conftest.err
36472        } && test -s conftest$ac_exeext &&
36473        $as_test_x conftest$ac_exeext; then
36474   eval wx_cv_func_$wx_func=yes
36475 else
36476   echo "$as_me: failed program was:" >&5
36477 sed 's/^/| /' conftest.$ac_ext >&5
36478
36479         eval wx_cv_func_$wx_func=no
36480 fi
36481
36482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36483       conftest$ac_exeext conftest.$ac_ext
36484
36485 fi
36486 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36487                { echo "$as_me:$LINENO: result: $ac_res" >&5
36488 echo "${ECHO_T}$ac_res" >&6; }
36489
36490     if eval test \$wx_cv_func_$wx_func = yes
36491     then
36492       cat >>confdefs.h <<_ACEOF
36493 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36494 _ACEOF
36495
36496
36497     else
36498       :
36499
36500     fi
36501   done
36502
36503
36504                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36505 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
36506     cat >conftest.$ac_ext <<_ACEOF
36507 /* confdefs.h.  */
36508 _ACEOF
36509 cat confdefs.h >>conftest.$ac_ext
36510 cat >>conftest.$ac_ext <<_ACEOF
36511 /* end confdefs.h.  */
36512 #include <wchar.h>
36513 int
36514 main ()
36515 {
36516 &_vsnwprintf;
36517   ;
36518   return 0;
36519 }
36520 _ACEOF
36521 rm -f conftest.$ac_objext
36522 if { (ac_try="$ac_compile"
36523 case "(($ac_try" in
36524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525   *) ac_try_echo=$ac_try;;
36526 esac
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528   (eval "$ac_compile") 2>conftest.er1
36529   ac_status=$?
36530   grep -v '^ *+' conftest.er1 >conftest.err
36531   rm -f conftest.er1
36532   cat conftest.err >&5
36533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534   (exit $ac_status); } && {
36535          test -z "$ac_c_werror_flag" ||
36536          test ! -s conftest.err
36537        } && test -s conftest.$ac_objext; then
36538   { echo "$as_me:$LINENO: result: yes" >&5
36539 echo "${ECHO_T}yes" >&6; }
36540                     cat >>confdefs.h <<\_ACEOF
36541 #define HAVE__VSNWPRINTF 1
36542 _ACEOF
36543
36544 else
36545   echo "$as_me: failed program was:" >&5
36546 sed 's/^/| /' conftest.$ac_ext >&5
36547
36548         { echo "$as_me:$LINENO: result: no" >&5
36549 echo "${ECHO_T}no" >&6; }
36550 fi
36551
36552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
36553 fi
36554
36555 if test "$wxUSE_FILE" = "yes"; then
36556
36557   for wx_func in fsync
36558   do
36559     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36560 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36561 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36562   echo $ECHO_N "(cached) $ECHO_C" >&6
36563 else
36564
36565         cat >conftest.$ac_ext <<_ACEOF
36566
36567             /* confdefs.h.  */
36568 _ACEOF
36569 cat confdefs.h >>conftest.$ac_ext
36570 cat >>conftest.$ac_ext <<_ACEOF
36571 /* end confdefs.h.  */
36572
36573
36574                 $ac_includes_default
36575
36576 int
36577 main ()
36578 {
36579
36580                 #ifndef $wx_func
36581                   &$wx_func;
36582                 #endif
36583
36584
36585   ;
36586   return 0;
36587 }
36588
36589 _ACEOF
36590 rm -f conftest.$ac_objext conftest$ac_exeext
36591 if { (ac_try="$ac_link"
36592 case "(($ac_try" in
36593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36594   *) ac_try_echo=$ac_try;;
36595 esac
36596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36597   (eval "$ac_link") 2>conftest.er1
36598   ac_status=$?
36599   grep -v '^ *+' conftest.er1 >conftest.err
36600   rm -f conftest.er1
36601   cat conftest.err >&5
36602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603   (exit $ac_status); } && {
36604          test -z "$ac_c_werror_flag" ||
36605          test ! -s conftest.err
36606        } && test -s conftest$ac_exeext &&
36607        $as_test_x conftest$ac_exeext; then
36608   eval wx_cv_func_$wx_func=yes
36609 else
36610   echo "$as_me: failed program was:" >&5
36611 sed 's/^/| /' conftest.$ac_ext >&5
36612
36613         eval wx_cv_func_$wx_func=no
36614 fi
36615
36616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36617       conftest$ac_exeext conftest.$ac_ext
36618
36619 fi
36620 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36621                { echo "$as_me:$LINENO: result: $ac_res" >&5
36622 echo "${ECHO_T}$ac_res" >&6; }
36623
36624     if eval test \$wx_cv_func_$wx_func = yes
36625     then
36626       cat >>confdefs.h <<_ACEOF
36627 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36628 _ACEOF
36629
36630
36631     else
36632       :
36633
36634     fi
36635   done
36636
36637 fi
36638
36639 ac_ext=cpp
36640 ac_cpp='$CXXCPP $CPPFLAGS'
36641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36644
36645
36646   for wx_func in round
36647   do
36648     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36649 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36650 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36651   echo $ECHO_N "(cached) $ECHO_C" >&6
36652 else
36653
36654         cat >conftest.$ac_ext <<_ACEOF
36655
36656             /* confdefs.h.  */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h.  */
36661
36662                 #include <math.h>
36663                 $ac_includes_default
36664
36665 int
36666 main ()
36667 {
36668
36669                 #ifndef $wx_func
36670                   &$wx_func;
36671                 #endif
36672
36673
36674   ;
36675   return 0;
36676 }
36677
36678 _ACEOF
36679 rm -f conftest.$ac_objext conftest$ac_exeext
36680 if { (ac_try="$ac_link"
36681 case "(($ac_try" in
36682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36683   *) ac_try_echo=$ac_try;;
36684 esac
36685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36686   (eval "$ac_link") 2>conftest.er1
36687   ac_status=$?
36688   grep -v '^ *+' conftest.er1 >conftest.err
36689   rm -f conftest.er1
36690   cat conftest.err >&5
36691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692   (exit $ac_status); } && {
36693          test -z "$ac_cxx_werror_flag" ||
36694          test ! -s conftest.err
36695        } && test -s conftest$ac_exeext &&
36696        $as_test_x conftest$ac_exeext; then
36697   eval wx_cv_func_$wx_func=yes
36698 else
36699   echo "$as_me: failed program was:" >&5
36700 sed 's/^/| /' conftest.$ac_ext >&5
36701
36702         eval wx_cv_func_$wx_func=no
36703 fi
36704
36705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36706       conftest$ac_exeext conftest.$ac_ext
36707
36708 fi
36709 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36710                { echo "$as_me:$LINENO: result: $ac_res" >&5
36711 echo "${ECHO_T}$ac_res" >&6; }
36712
36713     if eval test \$wx_cv_func_$wx_func = yes
36714     then
36715       cat >>confdefs.h <<_ACEOF
36716 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36717 _ACEOF
36718
36719
36720     else
36721       :
36722
36723     fi
36724   done
36725
36726 ac_ext=c
36727 ac_cpp='$CPP $CPPFLAGS'
36728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36731
36732
36733 if test "$TOOLKIT" != "MSW"; then
36734
36735 if test "$wxUSE_LIBICONV" != "no" ; then
36736
36737
36738
36739 # Check whether --with-libiconv-prefix was given.
36740 if test "${with_libiconv_prefix+set}" = set; then
36741   withval=$with_libiconv_prefix;
36742     for dir in `echo "$withval" | tr : ' '`; do
36743       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36744       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36745     done
36746
36747 fi
36748
36749
36750   { echo "$as_me:$LINENO: checking for iconv" >&5
36751 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36752 if test "${am_cv_func_iconv+set}" = set; then
36753   echo $ECHO_N "(cached) $ECHO_C" >&6
36754 else
36755
36756     am_cv_func_iconv="no, consider installing GNU libiconv"
36757     am_cv_lib_iconv=no
36758     cat >conftest.$ac_ext <<_ACEOF
36759 /* confdefs.h.  */
36760 _ACEOF
36761 cat confdefs.h >>conftest.$ac_ext
36762 cat >>conftest.$ac_ext <<_ACEOF
36763 /* end confdefs.h.  */
36764 #include <stdlib.h>
36765 #include <iconv.h>
36766 int
36767 main ()
36768 {
36769 iconv_t cd = iconv_open("","");
36770        iconv(cd,NULL,NULL,NULL,NULL);
36771        iconv_close(cd);
36772   ;
36773   return 0;
36774 }
36775 _ACEOF
36776 rm -f conftest.$ac_objext conftest$ac_exeext
36777 if { (ac_try="$ac_link"
36778 case "(($ac_try" in
36779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36780   *) ac_try_echo=$ac_try;;
36781 esac
36782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36783   (eval "$ac_link") 2>conftest.er1
36784   ac_status=$?
36785   grep -v '^ *+' conftest.er1 >conftest.err
36786   rm -f conftest.er1
36787   cat conftest.err >&5
36788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789   (exit $ac_status); } && {
36790          test -z "$ac_c_werror_flag" ||
36791          test ! -s conftest.err
36792        } && test -s conftest$ac_exeext &&
36793        $as_test_x conftest$ac_exeext; then
36794   am_cv_func_iconv=yes
36795 else
36796   echo "$as_me: failed program was:" >&5
36797 sed 's/^/| /' conftest.$ac_ext >&5
36798
36799
36800 fi
36801
36802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36803       conftest$ac_exeext conftest.$ac_ext
36804     if test "$am_cv_func_iconv" != yes; then
36805       am_save_LIBS="$LIBS"
36806       LIBS="$LIBS -liconv"
36807       cat >conftest.$ac_ext <<_ACEOF
36808 /* confdefs.h.  */
36809 _ACEOF
36810 cat confdefs.h >>conftest.$ac_ext
36811 cat >>conftest.$ac_ext <<_ACEOF
36812 /* end confdefs.h.  */
36813 #include <stdlib.h>
36814 #include <iconv.h>
36815 int
36816 main ()
36817 {
36818 iconv_t cd = iconv_open("","");
36819          iconv(cd,NULL,NULL,NULL,NULL);
36820          iconv_close(cd);
36821   ;
36822   return 0;
36823 }
36824 _ACEOF
36825 rm -f conftest.$ac_objext conftest$ac_exeext
36826 if { (ac_try="$ac_link"
36827 case "(($ac_try" in
36828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36829   *) ac_try_echo=$ac_try;;
36830 esac
36831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36832   (eval "$ac_link") 2>conftest.er1
36833   ac_status=$?
36834   grep -v '^ *+' conftest.er1 >conftest.err
36835   rm -f conftest.er1
36836   cat conftest.err >&5
36837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838   (exit $ac_status); } && {
36839          test -z "$ac_c_werror_flag" ||
36840          test ! -s conftest.err
36841        } && test -s conftest$ac_exeext &&
36842        $as_test_x conftest$ac_exeext; then
36843   am_cv_lib_iconv=yes
36844         am_cv_func_iconv=yes
36845 else
36846   echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36848
36849
36850 fi
36851
36852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36853       conftest$ac_exeext conftest.$ac_ext
36854       LIBS="$am_save_LIBS"
36855     fi
36856
36857 fi
36858 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36859 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36860   if test "$am_cv_func_iconv" = yes; then
36861
36862 cat >>confdefs.h <<\_ACEOF
36863 #define HAVE_ICONV 1
36864 _ACEOF
36865
36866     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36867 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36868 if test "${wx_cv_func_iconv_const+set}" = set; then
36869   echo $ECHO_N "(cached) $ECHO_C" >&6
36870 else
36871   cat >conftest.$ac_ext <<_ACEOF
36872 /* confdefs.h.  */
36873 _ACEOF
36874 cat confdefs.h >>conftest.$ac_ext
36875 cat >>conftest.$ac_ext <<_ACEOF
36876 /* end confdefs.h.  */
36877
36878 #include <stdlib.h>
36879 #include <iconv.h>
36880 extern
36881 #ifdef __cplusplus
36882 "C"
36883 #endif
36884 #if defined(__STDC__) || defined(__cplusplus)
36885 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36886 #else
36887 size_t iconv();
36888 #endif
36889
36890 int
36891 main ()
36892 {
36893
36894   ;
36895   return 0;
36896 }
36897 _ACEOF
36898 rm -f conftest.$ac_objext
36899 if { (ac_try="$ac_compile"
36900 case "(($ac_try" in
36901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36902   *) ac_try_echo=$ac_try;;
36903 esac
36904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36905   (eval "$ac_compile") 2>conftest.er1
36906   ac_status=$?
36907   grep -v '^ *+' conftest.er1 >conftest.err
36908   rm -f conftest.er1
36909   cat conftest.err >&5
36910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911   (exit $ac_status); } && {
36912          test -z "$ac_c_werror_flag" ||
36913          test ! -s conftest.err
36914        } && test -s conftest.$ac_objext; then
36915   wx_cv_func_iconv_const="no"
36916 else
36917   echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36919
36920         wx_cv_func_iconv_const="yes"
36921
36922 fi
36923
36924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36925
36926 fi
36927 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36928 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36929
36930     iconv_const=
36931     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36932         iconv_const="const"
36933     fi
36934
36935
36936 cat >>confdefs.h <<_ACEOF
36937 #define ICONV_CONST $iconv_const
36938 _ACEOF
36939
36940   fi
36941   LIBICONV=
36942   if test "$am_cv_lib_iconv" = yes; then
36943     LIBICONV="-liconv"
36944   fi
36945
36946
36947     LIBS="$LIBICONV $LIBS"
36948 fi
36949
36950 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36951
36952 for ac_func in sigaction
36953 do
36954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36958   echo $ECHO_N "(cached) $ECHO_C" >&6
36959 else
36960   cat >conftest.$ac_ext <<_ACEOF
36961 /* confdefs.h.  */
36962 _ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h.  */
36966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36968 #define $ac_func innocuous_$ac_func
36969
36970 /* System header to define __stub macros and hopefully few prototypes,
36971     which can conflict with char $ac_func (); below.
36972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36973     <limits.h> exists even on freestanding compilers.  */
36974
36975 #ifdef __STDC__
36976 # include <limits.h>
36977 #else
36978 # include <assert.h>
36979 #endif
36980
36981 #undef $ac_func
36982
36983 /* Override any GCC internal prototype to avoid an error.
36984    Use char because int might match the return type of a GCC
36985    builtin and then its argument prototype would still apply.  */
36986 #ifdef __cplusplus
36987 extern "C"
36988 #endif
36989 char $ac_func ();
36990 /* The GNU C library defines this for functions which it implements
36991     to always fail with ENOSYS.  Some functions are actually named
36992     something starting with __ and the normal name is an alias.  */
36993 #if defined __stub_$ac_func || defined __stub___$ac_func
36994 choke me
36995 #endif
36996
36997 int
36998 main ()
36999 {
37000 return $ac_func ();
37001   ;
37002   return 0;
37003 }
37004 _ACEOF
37005 rm -f conftest.$ac_objext conftest$ac_exeext
37006 if { (ac_try="$ac_link"
37007 case "(($ac_try" in
37008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37009   *) ac_try_echo=$ac_try;;
37010 esac
37011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37012   (eval "$ac_link") 2>conftest.er1
37013   ac_status=$?
37014   grep -v '^ *+' conftest.er1 >conftest.err
37015   rm -f conftest.er1
37016   cat conftest.err >&5
37017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018   (exit $ac_status); } && {
37019          test -z "$ac_c_werror_flag" ||
37020          test ! -s conftest.err
37021        } && test -s conftest$ac_exeext &&
37022        $as_test_x conftest$ac_exeext; then
37023   eval "$as_ac_var=yes"
37024 else
37025   echo "$as_me: failed program was:" >&5
37026 sed 's/^/| /' conftest.$ac_ext >&5
37027
37028         eval "$as_ac_var=no"
37029 fi
37030
37031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37032       conftest$ac_exeext conftest.$ac_ext
37033 fi
37034 ac_res=`eval echo '${'$as_ac_var'}'`
37035                { echo "$as_me:$LINENO: result: $ac_res" >&5
37036 echo "${ECHO_T}$ac_res" >&6; }
37037 if test `eval echo '${'$as_ac_var'}'` = yes; then
37038   cat >>confdefs.h <<_ACEOF
37039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37040 _ACEOF
37041
37042 fi
37043 done
37044
37045
37046     if test "$ac_cv_func_sigaction" = "no"; then
37047         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37048 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37049         wxUSE_ON_FATAL_EXCEPTION=no
37050     fi
37051
37052     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37053       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37054 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
37055 if test "${wx_cv_type_sa_handler+set}" = set; then
37056   echo $ECHO_N "(cached) $ECHO_C" >&6
37057 else
37058
37059                 ac_ext=cpp
37060 ac_cpp='$CXXCPP $CPPFLAGS'
37061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37064
37065         cat >conftest.$ac_ext <<_ACEOF
37066 /* confdefs.h.  */
37067 _ACEOF
37068 cat confdefs.h >>conftest.$ac_ext
37069 cat >>conftest.$ac_ext <<_ACEOF
37070 /* end confdefs.h.  */
37071 #include <signal.h>
37072 int
37073 main ()
37074 {
37075
37076                         extern void testSigHandler(int);
37077
37078                         struct sigaction sa;
37079                         sa.sa_handler = testSigHandler;
37080
37081   ;
37082   return 0;
37083 }
37084 _ACEOF
37085 rm -f conftest.$ac_objext
37086 if { (ac_try="$ac_compile"
37087 case "(($ac_try" in
37088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37089   *) ac_try_echo=$ac_try;;
37090 esac
37091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37092   (eval "$ac_compile") 2>conftest.er1
37093   ac_status=$?
37094   grep -v '^ *+' conftest.er1 >conftest.err
37095   rm -f conftest.er1
37096   cat conftest.err >&5
37097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098   (exit $ac_status); } && {
37099          test -z "$ac_cxx_werror_flag" ||
37100          test ! -s conftest.err
37101        } && test -s conftest.$ac_objext; then
37102
37103                         wx_cv_type_sa_handler=int
37104
37105 else
37106   echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37108
37109
37110                         wx_cv_type_sa_handler=void
37111
37112 fi
37113
37114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37115         ac_ext=c
37116 ac_cpp='$CPP $CPPFLAGS'
37117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37120
37121
37122 fi
37123 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37124 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
37125
37126       cat >>confdefs.h <<_ACEOF
37127 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37128 _ACEOF
37129
37130     fi
37131 fi
37132
37133 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37134     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37135 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
37136 if test "${wx_cv_func_backtrace+set}" = set; then
37137   echo $ECHO_N "(cached) $ECHO_C" >&6
37138 else
37139
37140             ac_ext=cpp
37141 ac_cpp='$CXXCPP $CPPFLAGS'
37142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37145
37146             cat >conftest.$ac_ext <<_ACEOF
37147 /* confdefs.h.  */
37148 _ACEOF
37149 cat confdefs.h >>conftest.$ac_ext
37150 cat >>conftest.$ac_ext <<_ACEOF
37151 /* end confdefs.h.  */
37152 #include <execinfo.h>
37153 int
37154 main ()
37155 {
37156
37157                     void *trace[1];
37158                     char **messages;
37159
37160                     backtrace(trace, 1);
37161                     messages = backtrace_symbols(trace, 1);
37162
37163   ;
37164   return 0;
37165 }
37166 _ACEOF
37167 rm -f conftest.$ac_objext
37168 if { (ac_try="$ac_compile"
37169 case "(($ac_try" in
37170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37171   *) ac_try_echo=$ac_try;;
37172 esac
37173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37174   (eval "$ac_compile") 2>conftest.er1
37175   ac_status=$?
37176   grep -v '^ *+' conftest.er1 >conftest.err
37177   rm -f conftest.er1
37178   cat conftest.err >&5
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); } && {
37181          test -z "$ac_cxx_werror_flag" ||
37182          test ! -s conftest.err
37183        } && test -s conftest.$ac_objext; then
37184   wx_cv_func_backtrace=yes
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189         wx_cv_func_backtrace=no
37190
37191 fi
37192
37193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37194             ac_ext=c
37195 ac_cpp='$CPP $CPPFLAGS'
37196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37199
37200
37201
37202 fi
37203 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37204 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
37205
37206
37207     if test "$wx_cv_func_backtrace" = "no"; then
37208         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37209 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37210         wxUSE_STACKWALKER=no
37211     else
37212         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37213 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
37214 if test "${wx_cv_func_cxa_demangle+set}" = set; then
37215   echo $ECHO_N "(cached) $ECHO_C" >&6
37216 else
37217
37218                 ac_ext=cpp
37219 ac_cpp='$CXXCPP $CPPFLAGS'
37220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37223
37224                 cat >conftest.$ac_ext <<_ACEOF
37225 /* confdefs.h.  */
37226 _ACEOF
37227 cat confdefs.h >>conftest.$ac_ext
37228 cat >>conftest.$ac_ext <<_ACEOF
37229 /* end confdefs.h.  */
37230 #include <cxxabi.h>
37231 int
37232 main ()
37233 {
37234
37235                         int rc;
37236                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37237
37238   ;
37239   return 0;
37240 }
37241 _ACEOF
37242 rm -f conftest.$ac_objext conftest$ac_exeext
37243 if { (ac_try="$ac_link"
37244 case "(($ac_try" in
37245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37246   *) ac_try_echo=$ac_try;;
37247 esac
37248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37249   (eval "$ac_link") 2>conftest.er1
37250   ac_status=$?
37251   grep -v '^ *+' conftest.er1 >conftest.err
37252   rm -f conftest.er1
37253   cat conftest.err >&5
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); } && {
37256          test -z "$ac_cxx_werror_flag" ||
37257          test ! -s conftest.err
37258        } && test -s conftest$ac_exeext &&
37259        $as_test_x conftest$ac_exeext; then
37260   wx_cv_func_cxa_demangle=yes
37261 else
37262   echo "$as_me: failed program was:" >&5
37263 sed 's/^/| /' conftest.$ac_ext >&5
37264
37265         wx_cv_func_cxa_demangle=no
37266
37267 fi
37268
37269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37270       conftest$ac_exeext conftest.$ac_ext
37271                 ac_ext=c
37272 ac_cpp='$CPP $CPPFLAGS'
37273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37276
37277
37278
37279 fi
37280 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37281 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
37282
37283         if test "$wx_cv_func_cxa_demangle" = "yes"; then
37284             cat >>confdefs.h <<\_ACEOF
37285 #define HAVE_CXA_DEMANGLE 1
37286 _ACEOF
37287
37288         fi
37289     fi
37290 fi
37291
37292 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
37293     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37294 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37295     wxUSE_STACKWALKER=no
37296 fi
37297
37298
37299
37300
37301 for ac_func in mkstemp mktemp
37302 do
37303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37307   echo $ECHO_N "(cached) $ECHO_C" >&6
37308 else
37309   cat >conftest.$ac_ext <<_ACEOF
37310 /* confdefs.h.  */
37311 _ACEOF
37312 cat confdefs.h >>conftest.$ac_ext
37313 cat >>conftest.$ac_ext <<_ACEOF
37314 /* end confdefs.h.  */
37315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37317 #define $ac_func innocuous_$ac_func
37318
37319 /* System header to define __stub macros and hopefully few prototypes,
37320     which can conflict with char $ac_func (); below.
37321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37322     <limits.h> exists even on freestanding compilers.  */
37323
37324 #ifdef __STDC__
37325 # include <limits.h>
37326 #else
37327 # include <assert.h>
37328 #endif
37329
37330 #undef $ac_func
37331
37332 /* Override any GCC internal prototype to avoid an error.
37333    Use char because int might match the return type of a GCC
37334    builtin and then its argument prototype would still apply.  */
37335 #ifdef __cplusplus
37336 extern "C"
37337 #endif
37338 char $ac_func ();
37339 /* The GNU C library defines this for functions which it implements
37340     to always fail with ENOSYS.  Some functions are actually named
37341     something starting with __ and the normal name is an alias.  */
37342 #if defined __stub_$ac_func || defined __stub___$ac_func
37343 choke me
37344 #endif
37345
37346 int
37347 main ()
37348 {
37349 return $ac_func ();
37350   ;
37351   return 0;
37352 }
37353 _ACEOF
37354 rm -f conftest.$ac_objext conftest$ac_exeext
37355 if { (ac_try="$ac_link"
37356 case "(($ac_try" in
37357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37358   *) ac_try_echo=$ac_try;;
37359 esac
37360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37361   (eval "$ac_link") 2>conftest.er1
37362   ac_status=$?
37363   grep -v '^ *+' conftest.er1 >conftest.err
37364   rm -f conftest.er1
37365   cat conftest.err >&5
37366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367   (exit $ac_status); } && {
37368          test -z "$ac_c_werror_flag" ||
37369          test ! -s conftest.err
37370        } && test -s conftest$ac_exeext &&
37371        $as_test_x conftest$ac_exeext; then
37372   eval "$as_ac_var=yes"
37373 else
37374   echo "$as_me: failed program was:" >&5
37375 sed 's/^/| /' conftest.$ac_ext >&5
37376
37377         eval "$as_ac_var=no"
37378 fi
37379
37380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37381       conftest$ac_exeext conftest.$ac_ext
37382 fi
37383 ac_res=`eval echo '${'$as_ac_var'}'`
37384                { echo "$as_me:$LINENO: result: $ac_res" >&5
37385 echo "${ECHO_T}$ac_res" >&6; }
37386 if test `eval echo '${'$as_ac_var'}'` = yes; then
37387   cat >>confdefs.h <<_ACEOF
37388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37389 _ACEOF
37390  break
37391 fi
37392 done
37393
37394
37395 { echo "$as_me:$LINENO: checking for statfs" >&5
37396 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
37397 if test "${wx_cv_func_statfs+set}" = set; then
37398   echo $ECHO_N "(cached) $ECHO_C" >&6
37399 else
37400   cat >conftest.$ac_ext <<_ACEOF
37401 /* confdefs.h.  */
37402 _ACEOF
37403 cat confdefs.h >>conftest.$ac_ext
37404 cat >>conftest.$ac_ext <<_ACEOF
37405 /* end confdefs.h.  */
37406
37407              #if defined(__BSD__)
37408              #include <sys/param.h>
37409              #include <sys/mount.h>
37410              #else
37411              #include <sys/vfs.h>
37412              #endif
37413
37414 int
37415 main ()
37416 {
37417
37418              long l;
37419              struct statfs fs;
37420              statfs("/", &fs);
37421              l = fs.f_bsize;
37422              l += fs.f_blocks;
37423              l += fs.f_bavail;
37424
37425   ;
37426   return 0;
37427 }
37428 _ACEOF
37429 rm -f conftest.$ac_objext
37430 if { (ac_try="$ac_compile"
37431 case "(($ac_try" in
37432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37433   *) ac_try_echo=$ac_try;;
37434 esac
37435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37436   (eval "$ac_compile") 2>conftest.er1
37437   ac_status=$?
37438   grep -v '^ *+' conftest.er1 >conftest.err
37439   rm -f conftest.er1
37440   cat conftest.err >&5
37441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442   (exit $ac_status); } && {
37443          test -z "$ac_c_werror_flag" ||
37444          test ! -s conftest.err
37445        } && test -s conftest.$ac_objext; then
37446   wx_cv_func_statfs=yes
37447 else
37448   echo "$as_me: failed program was:" >&5
37449 sed 's/^/| /' conftest.$ac_ext >&5
37450
37451         wx_cv_func_statfs=no
37452
37453 fi
37454
37455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37456
37457 fi
37458 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37459 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
37460
37461 if test "$wx_cv_func_statfs" = "yes"; then
37462         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
37463 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
37464 if test "${wx_cv_func_statfs_decl+set}" = set; then
37465   echo $ECHO_N "(cached) $ECHO_C" >&6
37466 else
37467   ac_ext=cpp
37468 ac_cpp='$CXXCPP $CPPFLAGS'
37469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37472
37473         cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h.  */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h.  */
37479
37480                  #if defined(__BSD__)
37481                  #include <sys/param.h>
37482                  #include <sys/mount.h>
37483                  #else
37484                  #include <sys/vfs.h>
37485                  #endif
37486
37487 int
37488 main ()
37489 {
37490
37491                 struct statfs fs;
37492                 statfs("", &fs);
37493
37494   ;
37495   return 0;
37496 }
37497 _ACEOF
37498 rm -f conftest.$ac_objext
37499 if { (ac_try="$ac_compile"
37500 case "(($ac_try" in
37501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37502   *) ac_try_echo=$ac_try;;
37503 esac
37504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37505   (eval "$ac_compile") 2>conftest.er1
37506   ac_status=$?
37507   grep -v '^ *+' conftest.er1 >conftest.err
37508   rm -f conftest.er1
37509   cat conftest.err >&5
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); } && {
37512          test -z "$ac_cxx_werror_flag" ||
37513          test ! -s conftest.err
37514        } && test -s conftest.$ac_objext; then
37515   wx_cv_func_statfs_decl=yes
37516 else
37517   echo "$as_me: failed program was:" >&5
37518 sed 's/^/| /' conftest.$ac_ext >&5
37519
37520         wx_cv_func_statfs_decl=no
37521
37522 fi
37523
37524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37525         ac_ext=c
37526 ac_cpp='$CPP $CPPFLAGS'
37527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37530
37531
37532 fi
37533 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37534 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
37535
37536     if test "$wx_cv_func_statfs_decl" = "yes"; then
37537         cat >>confdefs.h <<\_ACEOF
37538 #define HAVE_STATFS_DECL 1
37539 _ACEOF
37540
37541     fi
37542
37543     wx_cv_type_statvfs_t="struct statfs"
37544     cat >>confdefs.h <<\_ACEOF
37545 #define HAVE_STATFS 1
37546 _ACEOF
37547
37548 else
37549     { echo "$as_me:$LINENO: checking for statvfs" >&5
37550 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
37551 if test "${wx_cv_func_statvfs+set}" = set; then
37552   echo $ECHO_N "(cached) $ECHO_C" >&6
37553 else
37554   cat >conftest.$ac_ext <<_ACEOF
37555 /* confdefs.h.  */
37556 _ACEOF
37557 cat confdefs.h >>conftest.$ac_ext
37558 cat >>conftest.$ac_ext <<_ACEOF
37559 /* end confdefs.h.  */
37560
37561                 #include <stddef.h>
37562                 #include <sys/statvfs.h>
37563
37564 int
37565 main ()
37566 {
37567
37568                 statvfs("/", NULL);
37569
37570   ;
37571   return 0;
37572 }
37573 _ACEOF
37574 rm -f conftest.$ac_objext
37575 if { (ac_try="$ac_compile"
37576 case "(($ac_try" in
37577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37578   *) ac_try_echo=$ac_try;;
37579 esac
37580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37581   (eval "$ac_compile") 2>conftest.er1
37582   ac_status=$?
37583   grep -v '^ *+' conftest.er1 >conftest.err
37584   rm -f conftest.er1
37585   cat conftest.err >&5
37586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587   (exit $ac_status); } && {
37588          test -z "$ac_c_werror_flag" ||
37589          test ! -s conftest.err
37590        } && test -s conftest.$ac_objext; then
37591   wx_cv_func_statvfs=yes
37592 else
37593   echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37595
37596         wx_cv_func_statvfs=no
37597
37598 fi
37599
37600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37601
37602 fi
37603 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37604 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
37605
37606     if test "$wx_cv_func_statvfs" = "yes"; then
37607                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37608 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
37609 if test "${wx_cv_type_statvfs_t+set}" = set; then
37610   echo $ECHO_N "(cached) $ECHO_C" >&6
37611 else
37612   ac_ext=cpp
37613 ac_cpp='$CXXCPP $CPPFLAGS'
37614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37617
37618             cat >conftest.$ac_ext <<_ACEOF
37619 /* confdefs.h.  */
37620 _ACEOF
37621 cat confdefs.h >>conftest.$ac_ext
37622 cat >>conftest.$ac_ext <<_ACEOF
37623 /* end confdefs.h.  */
37624
37625                     #include <sys/statvfs.h>
37626
37627 int
37628 main ()
37629 {
37630
37631                     long l;
37632                     statvfs_t fs;
37633                     statvfs("/", &fs);
37634                     l = fs.f_bsize;
37635                     l += fs.f_blocks;
37636                     l += fs.f_bavail;
37637
37638   ;
37639   return 0;
37640 }
37641 _ACEOF
37642 rm -f conftest.$ac_objext
37643 if { (ac_try="$ac_compile"
37644 case "(($ac_try" in
37645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37646   *) ac_try_echo=$ac_try;;
37647 esac
37648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37649   (eval "$ac_compile") 2>conftest.er1
37650   ac_status=$?
37651   grep -v '^ *+' conftest.er1 >conftest.err
37652   rm -f conftest.er1
37653   cat conftest.err >&5
37654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); } && {
37656          test -z "$ac_cxx_werror_flag" ||
37657          test ! -s conftest.err
37658        } && test -s conftest.$ac_objext; then
37659   wx_cv_type_statvfs_t=statvfs_t
37660 else
37661   echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37663
37664
37665                     cat >conftest.$ac_ext <<_ACEOF
37666 /* confdefs.h.  */
37667 _ACEOF
37668 cat confdefs.h >>conftest.$ac_ext
37669 cat >>conftest.$ac_ext <<_ACEOF
37670 /* end confdefs.h.  */
37671
37672                             #include <sys/statvfs.h>
37673
37674 int
37675 main ()
37676 {
37677
37678                             long l;
37679                             struct statvfs fs;
37680                             statvfs("/", &fs);
37681                             l = fs.f_bsize;
37682                             l += fs.f_blocks;
37683                             l += fs.f_bavail;
37684
37685   ;
37686   return 0;
37687 }
37688 _ACEOF
37689 rm -f conftest.$ac_objext
37690 if { (ac_try="$ac_compile"
37691 case "(($ac_try" in
37692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37693   *) ac_try_echo=$ac_try;;
37694 esac
37695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37696   (eval "$ac_compile") 2>conftest.er1
37697   ac_status=$?
37698   grep -v '^ *+' conftest.er1 >conftest.err
37699   rm -f conftest.er1
37700   cat conftest.err >&5
37701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702   (exit $ac_status); } && {
37703          test -z "$ac_cxx_werror_flag" ||
37704          test ! -s conftest.err
37705        } && test -s conftest.$ac_objext; then
37706   wx_cv_type_statvfs_t="struct statvfs"
37707 else
37708   echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37710
37711         wx_cv_type_statvfs_t="unknown"
37712
37713 fi
37714
37715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37716
37717
37718 fi
37719
37720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37721             ac_ext=c
37722 ac_cpp='$CPP $CPPFLAGS'
37723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37726
37727
37728 fi
37729 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37730 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37731
37732         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37733             cat >>confdefs.h <<\_ACEOF
37734 #define HAVE_STATVFS 1
37735 _ACEOF
37736
37737         fi
37738     else
37739                 wx_cv_type_statvfs_t="unknown"
37740     fi
37741 fi
37742
37743 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37744     cat >>confdefs.h <<_ACEOF
37745 #define WX_STATFS_T $wx_cv_type_statvfs_t
37746 _ACEOF
37747
37748 else
37749     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37750 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37751 fi
37752
37753 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37754
37755
37756 for ac_func in fcntl flock
37757 do
37758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37762   echo $ECHO_N "(cached) $ECHO_C" >&6
37763 else
37764   cat >conftest.$ac_ext <<_ACEOF
37765 /* confdefs.h.  */
37766 _ACEOF
37767 cat confdefs.h >>conftest.$ac_ext
37768 cat >>conftest.$ac_ext <<_ACEOF
37769 /* end confdefs.h.  */
37770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37772 #define $ac_func innocuous_$ac_func
37773
37774 /* System header to define __stub macros and hopefully few prototypes,
37775     which can conflict with char $ac_func (); below.
37776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37777     <limits.h> exists even on freestanding compilers.  */
37778
37779 #ifdef __STDC__
37780 # include <limits.h>
37781 #else
37782 # include <assert.h>
37783 #endif
37784
37785 #undef $ac_func
37786
37787 /* Override any GCC internal prototype to avoid an error.
37788    Use char because int might match the return type of a GCC
37789    builtin and then its argument prototype would still apply.  */
37790 #ifdef __cplusplus
37791 extern "C"
37792 #endif
37793 char $ac_func ();
37794 /* The GNU C library defines this for functions which it implements
37795     to always fail with ENOSYS.  Some functions are actually named
37796     something starting with __ and the normal name is an alias.  */
37797 #if defined __stub_$ac_func || defined __stub___$ac_func
37798 choke me
37799 #endif
37800
37801 int
37802 main ()
37803 {
37804 return $ac_func ();
37805   ;
37806   return 0;
37807 }
37808 _ACEOF
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (ac_try="$ac_link"
37811 case "(($ac_try" in
37812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37813   *) ac_try_echo=$ac_try;;
37814 esac
37815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37816   (eval "$ac_link") 2>conftest.er1
37817   ac_status=$?
37818   grep -v '^ *+' conftest.er1 >conftest.err
37819   rm -f conftest.er1
37820   cat conftest.err >&5
37821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822   (exit $ac_status); } && {
37823          test -z "$ac_c_werror_flag" ||
37824          test ! -s conftest.err
37825        } && test -s conftest$ac_exeext &&
37826        $as_test_x conftest$ac_exeext; then
37827   eval "$as_ac_var=yes"
37828 else
37829   echo "$as_me: failed program was:" >&5
37830 sed 's/^/| /' conftest.$ac_ext >&5
37831
37832         eval "$as_ac_var=no"
37833 fi
37834
37835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37836       conftest$ac_exeext conftest.$ac_ext
37837 fi
37838 ac_res=`eval echo '${'$as_ac_var'}'`
37839                { echo "$as_me:$LINENO: result: $ac_res" >&5
37840 echo "${ECHO_T}$ac_res" >&6; }
37841 if test `eval echo '${'$as_ac_var'}'` = yes; then
37842   cat >>confdefs.h <<_ACEOF
37843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37844 _ACEOF
37845  break
37846 fi
37847 done
37848
37849
37850     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37851         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37852 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37853         wxUSE_SNGLINST_CHECKER=no
37854     fi
37855 fi
37856
37857
37858
37859 for ac_func in setenv putenv
37860 do
37861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37865   echo $ECHO_N "(cached) $ECHO_C" >&6
37866 else
37867   cat >conftest.$ac_ext <<_ACEOF
37868 /* confdefs.h.  */
37869 _ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h.  */
37873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37875 #define $ac_func innocuous_$ac_func
37876
37877 /* System header to define __stub macros and hopefully few prototypes,
37878     which can conflict with char $ac_func (); below.
37879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37880     <limits.h> exists even on freestanding compilers.  */
37881
37882 #ifdef __STDC__
37883 # include <limits.h>
37884 #else
37885 # include <assert.h>
37886 #endif
37887
37888 #undef $ac_func
37889
37890 /* Override any GCC internal prototype to avoid an error.
37891    Use char because int might match the return type of a GCC
37892    builtin and then its argument prototype would still apply.  */
37893 #ifdef __cplusplus
37894 extern "C"
37895 #endif
37896 char $ac_func ();
37897 /* The GNU C library defines this for functions which it implements
37898     to always fail with ENOSYS.  Some functions are actually named
37899     something starting with __ and the normal name is an alias.  */
37900 #if defined __stub_$ac_func || defined __stub___$ac_func
37901 choke me
37902 #endif
37903
37904 int
37905 main ()
37906 {
37907 return $ac_func ();
37908   ;
37909   return 0;
37910 }
37911 _ACEOF
37912 rm -f conftest.$ac_objext conftest$ac_exeext
37913 if { (ac_try="$ac_link"
37914 case "(($ac_try" in
37915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37916   *) ac_try_echo=$ac_try;;
37917 esac
37918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37919   (eval "$ac_link") 2>conftest.er1
37920   ac_status=$?
37921   grep -v '^ *+' conftest.er1 >conftest.err
37922   rm -f conftest.er1
37923   cat conftest.err >&5
37924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925   (exit $ac_status); } && {
37926          test -z "$ac_c_werror_flag" ||
37927          test ! -s conftest.err
37928        } && test -s conftest$ac_exeext &&
37929        $as_test_x conftest$ac_exeext; then
37930   eval "$as_ac_var=yes"
37931 else
37932   echo "$as_me: failed program was:" >&5
37933 sed 's/^/| /' conftest.$ac_ext >&5
37934
37935         eval "$as_ac_var=no"
37936 fi
37937
37938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37939       conftest$ac_exeext conftest.$ac_ext
37940 fi
37941 ac_res=`eval echo '${'$as_ac_var'}'`
37942                { echo "$as_me:$LINENO: result: $ac_res" >&5
37943 echo "${ECHO_T}$ac_res" >&6; }
37944 if test `eval echo '${'$as_ac_var'}'` = yes; then
37945   cat >>confdefs.h <<_ACEOF
37946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37947 _ACEOF
37948  break
37949 fi
37950 done
37951
37952 if test "$ac_cv_func_setenv" = "yes"; then
37953
37954 for ac_func in unsetenv
37955 do
37956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37960   echo $ECHO_N "(cached) $ECHO_C" >&6
37961 else
37962   cat >conftest.$ac_ext <<_ACEOF
37963 /* confdefs.h.  */
37964 _ACEOF
37965 cat confdefs.h >>conftest.$ac_ext
37966 cat >>conftest.$ac_ext <<_ACEOF
37967 /* end confdefs.h.  */
37968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37970 #define $ac_func innocuous_$ac_func
37971
37972 /* System header to define __stub macros and hopefully few prototypes,
37973     which can conflict with char $ac_func (); below.
37974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37975     <limits.h> exists even on freestanding compilers.  */
37976
37977 #ifdef __STDC__
37978 # include <limits.h>
37979 #else
37980 # include <assert.h>
37981 #endif
37982
37983 #undef $ac_func
37984
37985 /* Override any GCC internal prototype to avoid an error.
37986    Use char because int might match the return type of a GCC
37987    builtin and then its argument prototype would still apply.  */
37988 #ifdef __cplusplus
37989 extern "C"
37990 #endif
37991 char $ac_func ();
37992 /* The GNU C library defines this for functions which it implements
37993     to always fail with ENOSYS.  Some functions are actually named
37994     something starting with __ and the normal name is an alias.  */
37995 #if defined __stub_$ac_func || defined __stub___$ac_func
37996 choke me
37997 #endif
37998
37999 int
38000 main ()
38001 {
38002 return $ac_func ();
38003   ;
38004   return 0;
38005 }
38006 _ACEOF
38007 rm -f conftest.$ac_objext conftest$ac_exeext
38008 if { (ac_try="$ac_link"
38009 case "(($ac_try" in
38010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38011   *) ac_try_echo=$ac_try;;
38012 esac
38013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38014   (eval "$ac_link") 2>conftest.er1
38015   ac_status=$?
38016   grep -v '^ *+' conftest.er1 >conftest.err
38017   rm -f conftest.er1
38018   cat conftest.err >&5
38019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020   (exit $ac_status); } && {
38021          test -z "$ac_c_werror_flag" ||
38022          test ! -s conftest.err
38023        } && test -s conftest$ac_exeext &&
38024        $as_test_x conftest$ac_exeext; then
38025   eval "$as_ac_var=yes"
38026 else
38027   echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030         eval "$as_ac_var=no"
38031 fi
38032
38033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38034       conftest$ac_exeext conftest.$ac_ext
38035 fi
38036 ac_res=`eval echo '${'$as_ac_var'}'`
38037                { echo "$as_me:$LINENO: result: $ac_res" >&5
38038 echo "${ECHO_T}$ac_res" >&6; }
38039 if test `eval echo '${'$as_ac_var'}'` = yes; then
38040   cat >>confdefs.h <<_ACEOF
38041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38042 _ACEOF
38043
38044 fi
38045 done
38046
38047 fi
38048
38049 HAVE_SOME_SLEEP_FUNC=0
38050 if test "$USE_BEOS" = 1; then
38051             cat >>confdefs.h <<\_ACEOF
38052 #define HAVE_SLEEP 1
38053 _ACEOF
38054
38055     HAVE_SOME_SLEEP_FUNC=1
38056 fi
38057
38058 if test "$USE_DARWIN" = 1; then
38059             cat >>confdefs.h <<\_ACEOF
38060 #define HAVE_USLEEP 1
38061 _ACEOF
38062
38063     HAVE_SOME_SLEEP_FUNC=1
38064 fi
38065
38066 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38067         POSIX4_LINK=
38068
38069 for ac_func in nanosleep
38070 do
38071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38075   echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077   cat >conftest.$ac_ext <<_ACEOF
38078 /* confdefs.h.  */
38079 _ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h.  */
38083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38085 #define $ac_func innocuous_$ac_func
38086
38087 /* System header to define __stub macros and hopefully few prototypes,
38088     which can conflict with char $ac_func (); below.
38089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38090     <limits.h> exists even on freestanding compilers.  */
38091
38092 #ifdef __STDC__
38093 # include <limits.h>
38094 #else
38095 # include <assert.h>
38096 #endif
38097
38098 #undef $ac_func
38099
38100 /* Override any GCC internal prototype to avoid an error.
38101    Use char because int might match the return type of a GCC
38102    builtin and then its argument prototype would still apply.  */
38103 #ifdef __cplusplus
38104 extern "C"
38105 #endif
38106 char $ac_func ();
38107 /* The GNU C library defines this for functions which it implements
38108     to always fail with ENOSYS.  Some functions are actually named
38109     something starting with __ and the normal name is an alias.  */
38110 #if defined __stub_$ac_func || defined __stub___$ac_func
38111 choke me
38112 #endif
38113
38114 int
38115 main ()
38116 {
38117 return $ac_func ();
38118   ;
38119   return 0;
38120 }
38121 _ACEOF
38122 rm -f conftest.$ac_objext conftest$ac_exeext
38123 if { (ac_try="$ac_link"
38124 case "(($ac_try" in
38125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38126   *) ac_try_echo=$ac_try;;
38127 esac
38128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38129   (eval "$ac_link") 2>conftest.er1
38130   ac_status=$?
38131   grep -v '^ *+' conftest.er1 >conftest.err
38132   rm -f conftest.er1
38133   cat conftest.err >&5
38134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135   (exit $ac_status); } && {
38136          test -z "$ac_c_werror_flag" ||
38137          test ! -s conftest.err
38138        } && test -s conftest$ac_exeext &&
38139        $as_test_x conftest$ac_exeext; then
38140   eval "$as_ac_var=yes"
38141 else
38142   echo "$as_me: failed program was:" >&5
38143 sed 's/^/| /' conftest.$ac_ext >&5
38144
38145         eval "$as_ac_var=no"
38146 fi
38147
38148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38149       conftest$ac_exeext conftest.$ac_ext
38150 fi
38151 ac_res=`eval echo '${'$as_ac_var'}'`
38152                { echo "$as_me:$LINENO: result: $ac_res" >&5
38153 echo "${ECHO_T}$ac_res" >&6; }
38154 if test `eval echo '${'$as_ac_var'}'` = yes; then
38155   cat >>confdefs.h <<_ACEOF
38156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38157 _ACEOF
38158  cat >>confdefs.h <<\_ACEOF
38159 #define HAVE_NANOSLEEP 1
38160 _ACEOF
38161
38162 else
38163
38164             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38165 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
38166 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38167   echo $ECHO_N "(cached) $ECHO_C" >&6
38168 else
38169   ac_check_lib_save_LIBS=$LIBS
38170 LIBS="-lposix4  $LIBS"
38171 cat >conftest.$ac_ext <<_ACEOF
38172 /* confdefs.h.  */
38173 _ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h.  */
38177
38178 /* Override any GCC internal prototype to avoid an error.
38179    Use char because int might match the return type of a GCC
38180    builtin and then its argument prototype would still apply.  */
38181 #ifdef __cplusplus
38182 extern "C"
38183 #endif
38184 char nanosleep ();
38185 int
38186 main ()
38187 {
38188 return nanosleep ();
38189   ;
38190   return 0;
38191 }
38192 _ACEOF
38193 rm -f conftest.$ac_objext conftest$ac_exeext
38194 if { (ac_try="$ac_link"
38195 case "(($ac_try" in
38196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38197   *) ac_try_echo=$ac_try;;
38198 esac
38199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38200   (eval "$ac_link") 2>conftest.er1
38201   ac_status=$?
38202   grep -v '^ *+' conftest.er1 >conftest.err
38203   rm -f conftest.er1
38204   cat conftest.err >&5
38205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206   (exit $ac_status); } && {
38207          test -z "$ac_c_werror_flag" ||
38208          test ! -s conftest.err
38209        } && test -s conftest$ac_exeext &&
38210        $as_test_x conftest$ac_exeext; then
38211   ac_cv_lib_posix4_nanosleep=yes
38212 else
38213   echo "$as_me: failed program was:" >&5
38214 sed 's/^/| /' conftest.$ac_ext >&5
38215
38216         ac_cv_lib_posix4_nanosleep=no
38217 fi
38218
38219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38220       conftest$ac_exeext conftest.$ac_ext
38221 LIBS=$ac_check_lib_save_LIBS
38222 fi
38223 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38224 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
38225 if test $ac_cv_lib_posix4_nanosleep = yes; then
38226
38227                     cat >>confdefs.h <<\_ACEOF
38228 #define HAVE_NANOSLEEP 1
38229 _ACEOF
38230
38231                     POSIX4_LINK=" -lposix4"
38232
38233 else
38234
38235
38236   for wx_func in usleep
38237   do
38238     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38239 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38240 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38241   echo $ECHO_N "(cached) $ECHO_C" >&6
38242 else
38243
38244         cat >conftest.$ac_ext <<_ACEOF
38245
38246             /* confdefs.h.  */
38247 _ACEOF
38248 cat confdefs.h >>conftest.$ac_ext
38249 cat >>conftest.$ac_ext <<_ACEOF
38250 /* end confdefs.h.  */
38251
38252
38253                 $ac_includes_default
38254
38255 int
38256 main ()
38257 {
38258
38259                 #ifndef $wx_func
38260                   &$wx_func;
38261                 #endif
38262
38263
38264   ;
38265   return 0;
38266 }
38267
38268 _ACEOF
38269 rm -f conftest.$ac_objext conftest$ac_exeext
38270 if { (ac_try="$ac_link"
38271 case "(($ac_try" in
38272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38273   *) ac_try_echo=$ac_try;;
38274 esac
38275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38276   (eval "$ac_link") 2>conftest.er1
38277   ac_status=$?
38278   grep -v '^ *+' conftest.er1 >conftest.err
38279   rm -f conftest.er1
38280   cat conftest.err >&5
38281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282   (exit $ac_status); } && {
38283          test -z "$ac_c_werror_flag" ||
38284          test ! -s conftest.err
38285        } && test -s conftest$ac_exeext &&
38286        $as_test_x conftest$ac_exeext; then
38287   eval wx_cv_func_$wx_func=yes
38288 else
38289   echo "$as_me: failed program was:" >&5
38290 sed 's/^/| /' conftest.$ac_ext >&5
38291
38292         eval wx_cv_func_$wx_func=no
38293 fi
38294
38295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38296       conftest$ac_exeext conftest.$ac_ext
38297
38298 fi
38299 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38300                { echo "$as_me:$LINENO: result: $ac_res" >&5
38301 echo "${ECHO_T}$ac_res" >&6; }
38302
38303     if eval test \$wx_cv_func_$wx_func = yes
38304     then
38305       cat >>confdefs.h <<_ACEOF
38306 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38307 _ACEOF
38308
38309
38310     else
38311       :
38312       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38313 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38314
38315     fi
38316   done
38317
38318
38319
38320 fi
38321
38322
38323
38324 fi
38325 done
38326
38327 fi
38328
38329
38330   for wx_func in uname
38331   do
38332     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38333 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38334 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38335   echo $ECHO_N "(cached) $ECHO_C" >&6
38336 else
38337
38338         cat >conftest.$ac_ext <<_ACEOF
38339
38340             /* confdefs.h.  */
38341 _ACEOF
38342 cat confdefs.h >>conftest.$ac_ext
38343 cat >>conftest.$ac_ext <<_ACEOF
38344 /* end confdefs.h.  */
38345
38346                 #include <sys/utsname.h>
38347                 $ac_includes_default
38348
38349 int
38350 main ()
38351 {
38352
38353                 #ifndef $wx_func
38354                   &$wx_func;
38355                 #endif
38356
38357
38358   ;
38359   return 0;
38360 }
38361
38362 _ACEOF
38363 rm -f conftest.$ac_objext conftest$ac_exeext
38364 if { (ac_try="$ac_link"
38365 case "(($ac_try" in
38366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38367   *) ac_try_echo=$ac_try;;
38368 esac
38369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38370   (eval "$ac_link") 2>conftest.er1
38371   ac_status=$?
38372   grep -v '^ *+' conftest.er1 >conftest.err
38373   rm -f conftest.er1
38374   cat conftest.err >&5
38375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376   (exit $ac_status); } && {
38377          test -z "$ac_c_werror_flag" ||
38378          test ! -s conftest.err
38379        } && test -s conftest$ac_exeext &&
38380        $as_test_x conftest$ac_exeext; then
38381   eval wx_cv_func_$wx_func=yes
38382 else
38383   echo "$as_me: failed program was:" >&5
38384 sed 's/^/| /' conftest.$ac_ext >&5
38385
38386         eval wx_cv_func_$wx_func=no
38387 fi
38388
38389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38390       conftest$ac_exeext conftest.$ac_ext
38391
38392 fi
38393 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38394                { echo "$as_me:$LINENO: result: $ac_res" >&5
38395 echo "${ECHO_T}$ac_res" >&6; }
38396
38397     if eval test \$wx_cv_func_$wx_func = yes
38398     then
38399       cat >>confdefs.h <<_ACEOF
38400 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38401 _ACEOF
38402
38403
38404     else
38405       :
38406
38407     fi
38408   done
38409
38410 if test "$wx_cv_func_uname" != yes; then
38411
38412   for wx_func in gethostname
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 fi
38493
38494
38495   for wx_func in strtok_r
38496   do
38497     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38498 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38499 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38500   echo $ECHO_N "(cached) $ECHO_C" >&6
38501 else
38502
38503         cat >conftest.$ac_ext <<_ACEOF
38504
38505             /* confdefs.h.  */
38506 _ACEOF
38507 cat confdefs.h >>conftest.$ac_ext
38508 cat >>conftest.$ac_ext <<_ACEOF
38509 /* end confdefs.h.  */
38510
38511                 #define _REENTRANT
38512                 $ac_includes_default
38513
38514 int
38515 main ()
38516 {
38517
38518                 #ifndef $wx_func
38519                   &$wx_func;
38520                 #endif
38521
38522
38523   ;
38524   return 0;
38525 }
38526
38527 _ACEOF
38528 rm -f conftest.$ac_objext conftest$ac_exeext
38529 if { (ac_try="$ac_link"
38530 case "(($ac_try" in
38531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38532   *) ac_try_echo=$ac_try;;
38533 esac
38534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38535   (eval "$ac_link") 2>conftest.er1
38536   ac_status=$?
38537   grep -v '^ *+' conftest.er1 >conftest.err
38538   rm -f conftest.er1
38539   cat conftest.err >&5
38540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541   (exit $ac_status); } && {
38542          test -z "$ac_c_werror_flag" ||
38543          test ! -s conftest.err
38544        } && test -s conftest$ac_exeext &&
38545        $as_test_x conftest$ac_exeext; then
38546   eval wx_cv_func_$wx_func=yes
38547 else
38548   echo "$as_me: failed program was:" >&5
38549 sed 's/^/| /' conftest.$ac_ext >&5
38550
38551         eval wx_cv_func_$wx_func=no
38552 fi
38553
38554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38555       conftest$ac_exeext conftest.$ac_ext
38556
38557 fi
38558 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38559                { echo "$as_me:$LINENO: result: $ac_res" >&5
38560 echo "${ECHO_T}$ac_res" >&6; }
38561
38562     if eval test \$wx_cv_func_$wx_func = yes
38563     then
38564       cat >>confdefs.h <<_ACEOF
38565 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38566 _ACEOF
38567
38568
38569     else
38570       :
38571
38572     fi
38573   done
38574
38575
38576 INET_LINK=
38577
38578 for ac_func in inet_addr
38579 do
38580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38584   echo $ECHO_N "(cached) $ECHO_C" >&6
38585 else
38586   cat >conftest.$ac_ext <<_ACEOF
38587 /* confdefs.h.  */
38588 _ACEOF
38589 cat confdefs.h >>conftest.$ac_ext
38590 cat >>conftest.$ac_ext <<_ACEOF
38591 /* end confdefs.h.  */
38592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38594 #define $ac_func innocuous_$ac_func
38595
38596 /* System header to define __stub macros and hopefully few prototypes,
38597     which can conflict with char $ac_func (); below.
38598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38599     <limits.h> exists even on freestanding compilers.  */
38600
38601 #ifdef __STDC__
38602 # include <limits.h>
38603 #else
38604 # include <assert.h>
38605 #endif
38606
38607 #undef $ac_func
38608
38609 /* Override any GCC internal prototype to avoid an error.
38610    Use char because int might match the return type of a GCC
38611    builtin and then its argument prototype would still apply.  */
38612 #ifdef __cplusplus
38613 extern "C"
38614 #endif
38615 char $ac_func ();
38616 /* The GNU C library defines this for functions which it implements
38617     to always fail with ENOSYS.  Some functions are actually named
38618     something starting with __ and the normal name is an alias.  */
38619 #if defined __stub_$ac_func || defined __stub___$ac_func
38620 choke me
38621 #endif
38622
38623 int
38624 main ()
38625 {
38626 return $ac_func ();
38627   ;
38628   return 0;
38629 }
38630 _ACEOF
38631 rm -f conftest.$ac_objext conftest$ac_exeext
38632 if { (ac_try="$ac_link"
38633 case "(($ac_try" in
38634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38635   *) ac_try_echo=$ac_try;;
38636 esac
38637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38638   (eval "$ac_link") 2>conftest.er1
38639   ac_status=$?
38640   grep -v '^ *+' conftest.er1 >conftest.err
38641   rm -f conftest.er1
38642   cat conftest.err >&5
38643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644   (exit $ac_status); } && {
38645          test -z "$ac_c_werror_flag" ||
38646          test ! -s conftest.err
38647        } && test -s conftest$ac_exeext &&
38648        $as_test_x conftest$ac_exeext; then
38649   eval "$as_ac_var=yes"
38650 else
38651   echo "$as_me: failed program was:" >&5
38652 sed 's/^/| /' conftest.$ac_ext >&5
38653
38654         eval "$as_ac_var=no"
38655 fi
38656
38657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38658       conftest$ac_exeext conftest.$ac_ext
38659 fi
38660 ac_res=`eval echo '${'$as_ac_var'}'`
38661                { echo "$as_me:$LINENO: result: $ac_res" >&5
38662 echo "${ECHO_T}$ac_res" >&6; }
38663 if test `eval echo '${'$as_ac_var'}'` = yes; then
38664   cat >>confdefs.h <<_ACEOF
38665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38666 _ACEOF
38667  cat >>confdefs.h <<\_ACEOF
38668 #define HAVE_INET_ADDR 1
38669 _ACEOF
38670
38671 else
38672
38673         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38674 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38675 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38676   echo $ECHO_N "(cached) $ECHO_C" >&6
38677 else
38678   ac_check_lib_save_LIBS=$LIBS
38679 LIBS="-lnsl  $LIBS"
38680 cat >conftest.$ac_ext <<_ACEOF
38681 /* confdefs.h.  */
38682 _ACEOF
38683 cat confdefs.h >>conftest.$ac_ext
38684 cat >>conftest.$ac_ext <<_ACEOF
38685 /* end confdefs.h.  */
38686
38687 /* Override any GCC internal prototype to avoid an error.
38688    Use char because int might match the return type of a GCC
38689    builtin and then its argument prototype would still apply.  */
38690 #ifdef __cplusplus
38691 extern "C"
38692 #endif
38693 char inet_addr ();
38694 int
38695 main ()
38696 {
38697 return inet_addr ();
38698   ;
38699   return 0;
38700 }
38701 _ACEOF
38702 rm -f conftest.$ac_objext conftest$ac_exeext
38703 if { (ac_try="$ac_link"
38704 case "(($ac_try" in
38705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38706   *) ac_try_echo=$ac_try;;
38707 esac
38708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38709   (eval "$ac_link") 2>conftest.er1
38710   ac_status=$?
38711   grep -v '^ *+' conftest.er1 >conftest.err
38712   rm -f conftest.er1
38713   cat conftest.err >&5
38714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38715   (exit $ac_status); } && {
38716          test -z "$ac_c_werror_flag" ||
38717          test ! -s conftest.err
38718        } && test -s conftest$ac_exeext &&
38719        $as_test_x conftest$ac_exeext; then
38720   ac_cv_lib_nsl_inet_addr=yes
38721 else
38722   echo "$as_me: failed program was:" >&5
38723 sed 's/^/| /' conftest.$ac_ext >&5
38724
38725         ac_cv_lib_nsl_inet_addr=no
38726 fi
38727
38728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38729       conftest$ac_exeext conftest.$ac_ext
38730 LIBS=$ac_check_lib_save_LIBS
38731 fi
38732 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38733 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38734 if test $ac_cv_lib_nsl_inet_addr = yes; then
38735   INET_LINK="nsl"
38736 else
38737
38738                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38739 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38740 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38741   echo $ECHO_N "(cached) $ECHO_C" >&6
38742 else
38743   ac_check_lib_save_LIBS=$LIBS
38744 LIBS="-lresolv  $LIBS"
38745 cat >conftest.$ac_ext <<_ACEOF
38746 /* confdefs.h.  */
38747 _ACEOF
38748 cat confdefs.h >>conftest.$ac_ext
38749 cat >>conftest.$ac_ext <<_ACEOF
38750 /* end confdefs.h.  */
38751
38752 /* Override any GCC internal prototype to avoid an error.
38753    Use char because int might match the return type of a GCC
38754    builtin and then its argument prototype would still apply.  */
38755 #ifdef __cplusplus
38756 extern "C"
38757 #endif
38758 char inet_addr ();
38759 int
38760 main ()
38761 {
38762 return inet_addr ();
38763   ;
38764   return 0;
38765 }
38766 _ACEOF
38767 rm -f conftest.$ac_objext conftest$ac_exeext
38768 if { (ac_try="$ac_link"
38769 case "(($ac_try" in
38770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38771   *) ac_try_echo=$ac_try;;
38772 esac
38773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38774   (eval "$ac_link") 2>conftest.er1
38775   ac_status=$?
38776   grep -v '^ *+' conftest.er1 >conftest.err
38777   rm -f conftest.er1
38778   cat conftest.err >&5
38779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780   (exit $ac_status); } && {
38781          test -z "$ac_c_werror_flag" ||
38782          test ! -s conftest.err
38783        } && test -s conftest$ac_exeext &&
38784        $as_test_x conftest$ac_exeext; then
38785   ac_cv_lib_resolv_inet_addr=yes
38786 else
38787   echo "$as_me: failed program was:" >&5
38788 sed 's/^/| /' conftest.$ac_ext >&5
38789
38790         ac_cv_lib_resolv_inet_addr=no
38791 fi
38792
38793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38794       conftest$ac_exeext conftest.$ac_ext
38795 LIBS=$ac_check_lib_save_LIBS
38796 fi
38797 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38798 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38799 if test $ac_cv_lib_resolv_inet_addr = yes; then
38800   INET_LINK="resolv"
38801 else
38802
38803                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38804 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38805 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38806   echo $ECHO_N "(cached) $ECHO_C" >&6
38807 else
38808   ac_check_lib_save_LIBS=$LIBS
38809 LIBS="-lsocket  $LIBS"
38810 cat >conftest.$ac_ext <<_ACEOF
38811 /* confdefs.h.  */
38812 _ACEOF
38813 cat confdefs.h >>conftest.$ac_ext
38814 cat >>conftest.$ac_ext <<_ACEOF
38815 /* end confdefs.h.  */
38816
38817 /* Override any GCC internal prototype to avoid an error.
38818    Use char because int might match the return type of a GCC
38819    builtin and then its argument prototype would still apply.  */
38820 #ifdef __cplusplus
38821 extern "C"
38822 #endif
38823 char inet_addr ();
38824 int
38825 main ()
38826 {
38827 return inet_addr ();
38828   ;
38829   return 0;
38830 }
38831 _ACEOF
38832 rm -f conftest.$ac_objext conftest$ac_exeext
38833 if { (ac_try="$ac_link"
38834 case "(($ac_try" in
38835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38836   *) ac_try_echo=$ac_try;;
38837 esac
38838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38839   (eval "$ac_link") 2>conftest.er1
38840   ac_status=$?
38841   grep -v '^ *+' conftest.er1 >conftest.err
38842   rm -f conftest.er1
38843   cat conftest.err >&5
38844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845   (exit $ac_status); } && {
38846          test -z "$ac_c_werror_flag" ||
38847          test ! -s conftest.err
38848        } && test -s conftest$ac_exeext &&
38849        $as_test_x conftest$ac_exeext; then
38850   ac_cv_lib_socket_inet_addr=yes
38851 else
38852   echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38854
38855         ac_cv_lib_socket_inet_addr=no
38856 fi
38857
38858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38859       conftest$ac_exeext conftest.$ac_ext
38860 LIBS=$ac_check_lib_save_LIBS
38861 fi
38862 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38863 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38864 if test $ac_cv_lib_socket_inet_addr = yes; then
38865   INET_LINK="socket"
38866
38867 fi
38868
38869
38870
38871 fi
38872
38873
38874
38875 fi
38876
38877
38878
38879 fi
38880 done
38881
38882
38883
38884 for ac_func in inet_aton
38885 do
38886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38890   echo $ECHO_N "(cached) $ECHO_C" >&6
38891 else
38892   cat >conftest.$ac_ext <<_ACEOF
38893 /* confdefs.h.  */
38894 _ACEOF
38895 cat confdefs.h >>conftest.$ac_ext
38896 cat >>conftest.$ac_ext <<_ACEOF
38897 /* end confdefs.h.  */
38898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38900 #define $ac_func innocuous_$ac_func
38901
38902 /* System header to define __stub macros and hopefully few prototypes,
38903     which can conflict with char $ac_func (); below.
38904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38905     <limits.h> exists even on freestanding compilers.  */
38906
38907 #ifdef __STDC__
38908 # include <limits.h>
38909 #else
38910 # include <assert.h>
38911 #endif
38912
38913 #undef $ac_func
38914
38915 /* Override any GCC internal prototype to avoid an error.
38916    Use char because int might match the return type of a GCC
38917    builtin and then its argument prototype would still apply.  */
38918 #ifdef __cplusplus
38919 extern "C"
38920 #endif
38921 char $ac_func ();
38922 /* The GNU C library defines this for functions which it implements
38923     to always fail with ENOSYS.  Some functions are actually named
38924     something starting with __ and the normal name is an alias.  */
38925 #if defined __stub_$ac_func || defined __stub___$ac_func
38926 choke me
38927 #endif
38928
38929 int
38930 main ()
38931 {
38932 return $ac_func ();
38933   ;
38934   return 0;
38935 }
38936 _ACEOF
38937 rm -f conftest.$ac_objext conftest$ac_exeext
38938 if { (ac_try="$ac_link"
38939 case "(($ac_try" in
38940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38941   *) ac_try_echo=$ac_try;;
38942 esac
38943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38944   (eval "$ac_link") 2>conftest.er1
38945   ac_status=$?
38946   grep -v '^ *+' conftest.er1 >conftest.err
38947   rm -f conftest.er1
38948   cat conftest.err >&5
38949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950   (exit $ac_status); } && {
38951          test -z "$ac_c_werror_flag" ||
38952          test ! -s conftest.err
38953        } && test -s conftest$ac_exeext &&
38954        $as_test_x conftest$ac_exeext; then
38955   eval "$as_ac_var=yes"
38956 else
38957   echo "$as_me: failed program was:" >&5
38958 sed 's/^/| /' conftest.$ac_ext >&5
38959
38960         eval "$as_ac_var=no"
38961 fi
38962
38963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38964       conftest$ac_exeext conftest.$ac_ext
38965 fi
38966 ac_res=`eval echo '${'$as_ac_var'}'`
38967                { echo "$as_me:$LINENO: result: $ac_res" >&5
38968 echo "${ECHO_T}$ac_res" >&6; }
38969 if test `eval echo '${'$as_ac_var'}'` = yes; then
38970   cat >>confdefs.h <<_ACEOF
38971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38972 _ACEOF
38973  cat >>confdefs.h <<\_ACEOF
38974 #define HAVE_INET_ATON 1
38975 _ACEOF
38976
38977 else
38978
38979                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38980 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38981 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38982 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38983   echo $ECHO_N "(cached) $ECHO_C" >&6
38984 else
38985   ac_check_lib_save_LIBS=$LIBS
38986 LIBS="-l$INET_LINK  $LIBS"
38987 cat >conftest.$ac_ext <<_ACEOF
38988 /* confdefs.h.  */
38989 _ACEOF
38990 cat confdefs.h >>conftest.$ac_ext
38991 cat >>conftest.$ac_ext <<_ACEOF
38992 /* end confdefs.h.  */
38993
38994 /* Override any GCC internal prototype to avoid an error.
38995    Use char because int might match the return type of a GCC
38996    builtin and then its argument prototype would still apply.  */
38997 #ifdef __cplusplus
38998 extern "C"
38999 #endif
39000 char inet_aton ();
39001 int
39002 main ()
39003 {
39004 return inet_aton ();
39005   ;
39006   return 0;
39007 }
39008 _ACEOF
39009 rm -f conftest.$ac_objext conftest$ac_exeext
39010 if { (ac_try="$ac_link"
39011 case "(($ac_try" in
39012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39013   *) ac_try_echo=$ac_try;;
39014 esac
39015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39016   (eval "$ac_link") 2>conftest.er1
39017   ac_status=$?
39018   grep -v '^ *+' conftest.er1 >conftest.err
39019   rm -f conftest.er1
39020   cat conftest.err >&5
39021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022   (exit $ac_status); } && {
39023          test -z "$ac_c_werror_flag" ||
39024          test ! -s conftest.err
39025        } && test -s conftest$ac_exeext &&
39026        $as_test_x conftest$ac_exeext; then
39027   eval "$as_ac_Lib=yes"
39028 else
39029   echo "$as_me: failed program was:" >&5
39030 sed 's/^/| /' conftest.$ac_ext >&5
39031
39032         eval "$as_ac_Lib=no"
39033 fi
39034
39035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39036       conftest$ac_exeext conftest.$ac_ext
39037 LIBS=$ac_check_lib_save_LIBS
39038 fi
39039 ac_res=`eval echo '${'$as_ac_Lib'}'`
39040                { echo "$as_me:$LINENO: result: $ac_res" >&5
39041 echo "${ECHO_T}$ac_res" >&6; }
39042 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39043   cat >>confdefs.h <<\_ACEOF
39044 #define HAVE_INET_ATON 1
39045 _ACEOF
39046
39047 fi
39048
39049
39050 fi
39051 done
39052
39053
39054 if test "x$INET_LINK" != "x"; then
39055     cat >>confdefs.h <<\_ACEOF
39056 #define HAVE_INET_ADDR 1
39057 _ACEOF
39058
39059     INET_LINK=" -l$INET_LINK"
39060 fi
39061
39062
39063   for wx_func in fdopen
39064   do
39065     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39066 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39067 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39068   echo $ECHO_N "(cached) $ECHO_C" >&6
39069 else
39070
39071         cat >conftest.$ac_ext <<_ACEOF
39072
39073             /* confdefs.h.  */
39074 _ACEOF
39075 cat confdefs.h >>conftest.$ac_ext
39076 cat >>conftest.$ac_ext <<_ACEOF
39077 /* end confdefs.h.  */
39078
39079
39080                 $ac_includes_default
39081
39082 int
39083 main ()
39084 {
39085
39086                 #ifndef $wx_func
39087                   &$wx_func;
39088                 #endif
39089
39090
39091   ;
39092   return 0;
39093 }
39094
39095 _ACEOF
39096 rm -f conftest.$ac_objext conftest$ac_exeext
39097 if { (ac_try="$ac_link"
39098 case "(($ac_try" in
39099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39100   *) ac_try_echo=$ac_try;;
39101 esac
39102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39103   (eval "$ac_link") 2>conftest.er1
39104   ac_status=$?
39105   grep -v '^ *+' conftest.er1 >conftest.err
39106   rm -f conftest.er1
39107   cat conftest.err >&5
39108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109   (exit $ac_status); } && {
39110          test -z "$ac_c_werror_flag" ||
39111          test ! -s conftest.err
39112        } && test -s conftest$ac_exeext &&
39113        $as_test_x conftest$ac_exeext; then
39114   eval wx_cv_func_$wx_func=yes
39115 else
39116   echo "$as_me: failed program was:" >&5
39117 sed 's/^/| /' conftest.$ac_ext >&5
39118
39119         eval wx_cv_func_$wx_func=no
39120 fi
39121
39122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39123       conftest$ac_exeext conftest.$ac_ext
39124
39125 fi
39126 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39127                { echo "$as_me:$LINENO: result: $ac_res" >&5
39128 echo "${ECHO_T}$ac_res" >&6; }
39129
39130     if eval test \$wx_cv_func_$wx_func = yes
39131     then
39132       cat >>confdefs.h <<_ACEOF
39133 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39134 _ACEOF
39135
39136
39137     else
39138       :
39139
39140     fi
39141   done
39142
39143
39144 if test "$wxUSE_TARSTREAM" = "yes"; then
39145
39146   for wx_func in sysconf
39147   do
39148     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39149 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39150 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39151   echo $ECHO_N "(cached) $ECHO_C" >&6
39152 else
39153
39154         cat >conftest.$ac_ext <<_ACEOF
39155
39156             /* confdefs.h.  */
39157 _ACEOF
39158 cat confdefs.h >>conftest.$ac_ext
39159 cat >>conftest.$ac_ext <<_ACEOF
39160 /* end confdefs.h.  */
39161
39162
39163                 $ac_includes_default
39164
39165 int
39166 main ()
39167 {
39168
39169                 #ifndef $wx_func
39170                   &$wx_func;
39171                 #endif
39172
39173
39174   ;
39175   return 0;
39176 }
39177
39178 _ACEOF
39179 rm -f conftest.$ac_objext conftest$ac_exeext
39180 if { (ac_try="$ac_link"
39181 case "(($ac_try" in
39182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39183   *) ac_try_echo=$ac_try;;
39184 esac
39185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39186   (eval "$ac_link") 2>conftest.er1
39187   ac_status=$?
39188   grep -v '^ *+' conftest.er1 >conftest.err
39189   rm -f conftest.er1
39190   cat conftest.err >&5
39191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); } && {
39193          test -z "$ac_c_werror_flag" ||
39194          test ! -s conftest.err
39195        } && test -s conftest$ac_exeext &&
39196        $as_test_x conftest$ac_exeext; then
39197   eval wx_cv_func_$wx_func=yes
39198 else
39199   echo "$as_me: failed program was:" >&5
39200 sed 's/^/| /' conftest.$ac_ext >&5
39201
39202         eval wx_cv_func_$wx_func=no
39203 fi
39204
39205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39206       conftest$ac_exeext conftest.$ac_ext
39207
39208 fi
39209 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39210                { echo "$as_me:$LINENO: result: $ac_res" >&5
39211 echo "${ECHO_T}$ac_res" >&6; }
39212
39213     if eval test \$wx_cv_func_$wx_func = yes
39214     then
39215       cat >>confdefs.h <<_ACEOF
39216 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39217 _ACEOF
39218
39219
39220     else
39221       :
39222
39223     fi
39224   done
39225
39226
39227
39228   for wx_func in getpwuid_r
39229   do
39230     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39231 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39232 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39233   echo $ECHO_N "(cached) $ECHO_C" >&6
39234 else
39235
39236         cat >conftest.$ac_ext <<_ACEOF
39237
39238             /* confdefs.h.  */
39239 _ACEOF
39240 cat confdefs.h >>conftest.$ac_ext
39241 cat >>conftest.$ac_ext <<_ACEOF
39242 /* end confdefs.h.  */
39243
39244
39245                     #define _REENTRANT
39246                     #include <pwd.h>
39247
39248                 $ac_includes_default
39249
39250 int
39251 main ()
39252 {
39253
39254                 #ifndef $wx_func
39255                   &$wx_func;
39256                 #endif
39257
39258                     struct passwd pw, *ppw;
39259                     char buf[1024];
39260                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
39261
39262
39263   ;
39264   return 0;
39265 }
39266
39267 _ACEOF
39268 rm -f conftest.$ac_objext conftest$ac_exeext
39269 if { (ac_try="$ac_link"
39270 case "(($ac_try" in
39271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39272   *) ac_try_echo=$ac_try;;
39273 esac
39274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39275   (eval "$ac_link") 2>conftest.er1
39276   ac_status=$?
39277   grep -v '^ *+' conftest.er1 >conftest.err
39278   rm -f conftest.er1
39279   cat conftest.err >&5
39280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281   (exit $ac_status); } && {
39282          test -z "$ac_c_werror_flag" ||
39283          test ! -s conftest.err
39284        } && test -s conftest$ac_exeext &&
39285        $as_test_x conftest$ac_exeext; then
39286   eval wx_cv_func_$wx_func=yes
39287 else
39288   echo "$as_me: failed program was:" >&5
39289 sed 's/^/| /' conftest.$ac_ext >&5
39290
39291         eval wx_cv_func_$wx_func=no
39292 fi
39293
39294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39295       conftest$ac_exeext conftest.$ac_ext
39296
39297 fi
39298 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39299                { echo "$as_me:$LINENO: result: $ac_res" >&5
39300 echo "${ECHO_T}$ac_res" >&6; }
39301
39302     if eval test \$wx_cv_func_$wx_func = yes
39303     then
39304       cat >>confdefs.h <<_ACEOF
39305 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39306 _ACEOF
39307
39308
39309     else
39310       :
39311
39312     fi
39313   done
39314
39315
39316
39317   for wx_func in getgrgid_r
39318   do
39319     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39320 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39321 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39322   echo $ECHO_N "(cached) $ECHO_C" >&6
39323 else
39324
39325         cat >conftest.$ac_ext <<_ACEOF
39326
39327             /* confdefs.h.  */
39328 _ACEOF
39329 cat confdefs.h >>conftest.$ac_ext
39330 cat >>conftest.$ac_ext <<_ACEOF
39331 /* end confdefs.h.  */
39332
39333
39334                     #define _REENTRANT
39335                     #include <grp.h>
39336
39337                 $ac_includes_default
39338
39339 int
39340 main ()
39341 {
39342
39343                 #ifndef $wx_func
39344                   &$wx_func;
39345                 #endif
39346
39347                     struct group grp, *pgrp;
39348                     char buf[1024];
39349                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
39350
39351
39352   ;
39353   return 0;
39354 }
39355
39356 _ACEOF
39357 rm -f conftest.$ac_objext conftest$ac_exeext
39358 if { (ac_try="$ac_link"
39359 case "(($ac_try" in
39360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39361   *) ac_try_echo=$ac_try;;
39362 esac
39363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39364   (eval "$ac_link") 2>conftest.er1
39365   ac_status=$?
39366   grep -v '^ *+' conftest.er1 >conftest.err
39367   rm -f conftest.er1
39368   cat conftest.err >&5
39369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370   (exit $ac_status); } && {
39371          test -z "$ac_c_werror_flag" ||
39372          test ! -s conftest.err
39373        } && test -s conftest$ac_exeext &&
39374        $as_test_x conftest$ac_exeext; then
39375   eval wx_cv_func_$wx_func=yes
39376 else
39377   echo "$as_me: failed program was:" >&5
39378 sed 's/^/| /' conftest.$ac_ext >&5
39379
39380         eval wx_cv_func_$wx_func=no
39381 fi
39382
39383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39384       conftest$ac_exeext conftest.$ac_ext
39385
39386 fi
39387 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39388                { echo "$as_me:$LINENO: result: $ac_res" >&5
39389 echo "${ECHO_T}$ac_res" >&6; }
39390
39391     if eval test \$wx_cv_func_$wx_func = yes
39392     then
39393       cat >>confdefs.h <<_ACEOF
39394 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39395 _ACEOF
39396
39397
39398     else
39399       :
39400
39401     fi
39402   done
39403
39404 fi
39405
39406 fi
39407
39408
39409
39410 cat >confcache <<\_ACEOF
39411 # This file is a shell script that caches the results of configure
39412 # tests run on this system so they can be shared between configure
39413 # scripts and configure runs, see configure's option --config-cache.
39414 # It is not useful on other systems.  If it contains results you don't
39415 # want to keep, you may remove or edit it.
39416 #
39417 # config.status only pays attention to the cache file if you give it
39418 # the --recheck option to rerun configure.
39419 #
39420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39422 # following values.
39423
39424 _ACEOF
39425
39426 # The following way of writing the cache mishandles newlines in values,
39427 # but we know of no workaround that is simple, portable, and efficient.
39428 # So, we kill variables containing newlines.
39429 # Ultrix sh set writes to stderr and can't be redirected directly,
39430 # and sets the high bit in the cache file unless we assign to the vars.
39431 (
39432   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39433     eval ac_val=\$$ac_var
39434     case $ac_val in #(
39435     *${as_nl}*)
39436       case $ac_var in #(
39437       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39438 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39439       esac
39440       case $ac_var in #(
39441       _ | IFS | as_nl) ;; #(
39442       *) $as_unset $ac_var ;;
39443       esac ;;
39444     esac
39445   done
39446
39447   (set) 2>&1 |
39448     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39449     *${as_nl}ac_space=\ *)
39450       # `set' does not quote correctly, so add quotes (double-quote
39451       # substitution turns \\\\ into \\, and sed turns \\ into \).
39452       sed -n \
39453         "s/'/'\\\\''/g;
39454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39455       ;; #(
39456     *)
39457       # `set' quotes correctly as required by POSIX, so do not add quotes.
39458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39459       ;;
39460     esac |
39461     sort
39462 ) |
39463   sed '
39464      /^ac_cv_env_/b end
39465      t clear
39466      :clear
39467      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39468      t end
39469      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39470      :end' >>confcache
39471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39472   if test -w "$cache_file"; then
39473     test "x$cache_file" != "x/dev/null" &&
39474       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39475 echo "$as_me: updating cache $cache_file" >&6;}
39476     cat confcache >$cache_file
39477   else
39478     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39479 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39480   fi
39481 fi
39482 rm -f confcache
39483
39484
39485 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39486
39487
39488     THREADS_LINK=
39489     THREADS_CFLAGS=
39490
39491     if test "$wxUSE_THREADS" = "yes" ; then
39492         if test "$USE_BEOS" = 1; then
39493             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39494 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39495             wxUSE_THREADS="no"
39496         fi
39497     fi
39498
39499     if test "$wxUSE_THREADS" = "yes" ; then
39500
39501
39502                                 THREAD_OPTS="-pthread"
39503         if test "x$SUNCXX" = xyes; then
39504             THREAD_OPTS="-mt lthread $THREAD_OPTS"
39505         fi
39506
39507         case "${host}" in
39508           *-*-solaris2* | *-*-sunos4* )
39509                 if test "x$GCC" = "xyes"; then
39510                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
39511                 fi
39512                 ;;
39513           *-*-freebsd*)
39514                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39515                 ;;
39516           *-*-darwin* | *-*-cygwin* )
39517                                                 THREAD_OPTS=""
39518                 ;;
39519           *-*-aix*)
39520                                 THREAD_OPTS="pthreads"
39521                 ;;
39522           *-hp-hpux* )
39523                 if test "x$GCC" = "xyes"; then
39524                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39525                         THREAD_OPTS=""
39526                 else
39527                                                             THREAD_OPTS="-mt"
39528                 fi
39529                 ;;
39530
39531           *-*-irix* )
39532                                                                 if test "x$GCC" = "xyes"; then
39533                     THREAD_OPTS=""
39534                 fi
39535                 ;;
39536
39537           *-*-qnx*)
39538                                                 THREAD_OPTS=""
39539                 ;;
39540
39541           *-*-*UnixWare*)
39542                                 if test "x$GCC" != "xyes"; then
39543                     THREAD_OPTS="-Ethread"
39544                 fi
39545                 ;;
39546         esac
39547
39548         case "${host}" in
39549             *-*-qnx*)
39550                                                                 THREAD_OPTS="none pthread"
39551                 ;;
39552
39553             *)
39554                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
39555                 ;;
39556         esac
39557
39558                 THREADS_OK=no
39559         for flag in $THREAD_OPTS; do
39560             case $flag in
39561                 none)
39562                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39563 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39564                     ;;
39565
39566                 -*)
39567                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39568 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39569                     THREADS_CFLAGS="$flag"
39570                     ;;
39571
39572                 *)
39573                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39574 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39575                     THREADS_LINK="-l$flag"
39576                     ;;
39577               esac
39578
39579               save_LIBS="$LIBS"
39580               save_CFLAGS="$CFLAGS"
39581               LIBS="$THREADS_LINK $LIBS"
39582               CFLAGS="$THREADS_CFLAGS $CFLAGS"
39583
39584               cat >conftest.$ac_ext <<_ACEOF
39585 /* confdefs.h.  */
39586 _ACEOF
39587 cat confdefs.h >>conftest.$ac_ext
39588 cat >>conftest.$ac_ext <<_ACEOF
39589 /* end confdefs.h.  */
39590 #include <pthread.h>
39591 int
39592 main ()
39593 {
39594 pthread_create(0,0,0,0);
39595   ;
39596   return 0;
39597 }
39598 _ACEOF
39599 rm -f conftest.$ac_objext conftest$ac_exeext
39600 if { (ac_try="$ac_link"
39601 case "(($ac_try" in
39602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603   *) ac_try_echo=$ac_try;;
39604 esac
39605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39606   (eval "$ac_link") 2>conftest.er1
39607   ac_status=$?
39608   grep -v '^ *+' conftest.er1 >conftest.err
39609   rm -f conftest.er1
39610   cat conftest.err >&5
39611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); } && {
39613          test -z "$ac_c_werror_flag" ||
39614          test ! -s conftest.err
39615        } && test -s conftest$ac_exeext &&
39616        $as_test_x conftest$ac_exeext; then
39617   THREADS_OK=yes
39618 else
39619   echo "$as_me: failed program was:" >&5
39620 sed 's/^/| /' conftest.$ac_ext >&5
39621
39622
39623 fi
39624
39625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39626       conftest$ac_exeext conftest.$ac_ext
39627
39628               LIBS="$save_LIBS"
39629               CFLAGS="$save_CFLAGS"
39630
39631               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39632 echo "${ECHO_T}$THREADS_OK" >&6; }
39633               if test "x$THREADS_OK" = "xyes"; then
39634                       break;
39635               fi
39636
39637               THREADS_LINK=""
39638               THREADS_CFLAGS=""
39639       done
39640
39641       if test "x$THREADS_OK" != "xyes"; then
39642           wxUSE_THREADS=no
39643           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39644 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39645       else
39646                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39647           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
39648           LIBS="$THREADS_LINK $LIBS"
39649
39650           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39651 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39652           flag=no
39653           case "${host}" in
39654             *-aix*)
39655                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39656                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
39657                 flag="-D_THREAD_SAFE"
39658                 ;;
39659             *-freebsd*)
39660                 flag="-D_THREAD_SAFE"
39661                 ;;
39662             *-hp-hpux* )
39663                 flag="-D_REENTRANT"
39664                 if test "x$GCC" != "xyes"; then
39665                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39666                 fi
39667                 ;;
39668             *solaris* | alpha*-osf*)
39669                 flag="-D_REENTRANT"
39670                 ;;
39671           esac
39672           { echo "$as_me:$LINENO: result: ${flag}" >&5
39673 echo "${ECHO_T}${flag}" >&6; }
39674           if test "x$flag" != xno; then
39675               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39676           fi
39677
39678                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39679       fi
39680     fi
39681
39682         if test "$wxUSE_THREADS" = "yes" ; then
39683
39684 for ac_func in thr_setconcurrency
39685 do
39686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39690   echo $ECHO_N "(cached) $ECHO_C" >&6
39691 else
39692   cat >conftest.$ac_ext <<_ACEOF
39693 /* confdefs.h.  */
39694 _ACEOF
39695 cat confdefs.h >>conftest.$ac_ext
39696 cat >>conftest.$ac_ext <<_ACEOF
39697 /* end confdefs.h.  */
39698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39700 #define $ac_func innocuous_$ac_func
39701
39702 /* System header to define __stub macros and hopefully few prototypes,
39703     which can conflict with char $ac_func (); below.
39704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39705     <limits.h> exists even on freestanding compilers.  */
39706
39707 #ifdef __STDC__
39708 # include <limits.h>
39709 #else
39710 # include <assert.h>
39711 #endif
39712
39713 #undef $ac_func
39714
39715 /* Override any GCC internal prototype to avoid an error.
39716    Use char because int might match the return type of a GCC
39717    builtin and then its argument prototype would still apply.  */
39718 #ifdef __cplusplus
39719 extern "C"
39720 #endif
39721 char $ac_func ();
39722 /* The GNU C library defines this for functions which it implements
39723     to always fail with ENOSYS.  Some functions are actually named
39724     something starting with __ and the normal name is an alias.  */
39725 #if defined __stub_$ac_func || defined __stub___$ac_func
39726 choke me
39727 #endif
39728
39729 int
39730 main ()
39731 {
39732 return $ac_func ();
39733   ;
39734   return 0;
39735 }
39736 _ACEOF
39737 rm -f conftest.$ac_objext conftest$ac_exeext
39738 if { (ac_try="$ac_link"
39739 case "(($ac_try" in
39740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39741   *) ac_try_echo=$ac_try;;
39742 esac
39743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39744   (eval "$ac_link") 2>conftest.er1
39745   ac_status=$?
39746   grep -v '^ *+' conftest.er1 >conftest.err
39747   rm -f conftest.er1
39748   cat conftest.err >&5
39749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750   (exit $ac_status); } && {
39751          test -z "$ac_c_werror_flag" ||
39752          test ! -s conftest.err
39753        } && test -s conftest$ac_exeext &&
39754        $as_test_x conftest$ac_exeext; then
39755   eval "$as_ac_var=yes"
39756 else
39757   echo "$as_me: failed program was:" >&5
39758 sed 's/^/| /' conftest.$ac_ext >&5
39759
39760         eval "$as_ac_var=no"
39761 fi
39762
39763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39764       conftest$ac_exeext conftest.$ac_ext
39765 fi
39766 ac_res=`eval echo '${'$as_ac_var'}'`
39767                { echo "$as_me:$LINENO: result: $ac_res" >&5
39768 echo "${ECHO_T}$ac_res" >&6; }
39769 if test `eval echo '${'$as_ac_var'}'` = yes; then
39770   cat >>confdefs.h <<_ACEOF
39771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39772 _ACEOF
39773
39774 fi
39775 done
39776
39777
39778                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39779 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39780 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39781   echo $ECHO_N "(cached) $ECHO_C" >&6
39782 else
39783
39784                                 ac_ext=cpp
39785 ac_cpp='$CXXCPP $CPPFLAGS'
39786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39789
39790         cat >conftest.$ac_ext <<_ACEOF
39791 /* confdefs.h.  */
39792 _ACEOF
39793 cat confdefs.h >>conftest.$ac_ext
39794 cat >>conftest.$ac_ext <<_ACEOF
39795 /* end confdefs.h.  */
39796 #include <pthread.h>
39797                void ThreadCleanupFunc(void *p);
39798
39799 int
39800 main ()
39801 {
39802
39803                 void *p;
39804                 pthread_cleanup_push(ThreadCleanupFunc, p);
39805                 pthread_cleanup_pop(0);
39806
39807   ;
39808   return 0;
39809 }
39810 _ACEOF
39811 rm -f conftest.$ac_objext
39812 if { (ac_try="$ac_compile"
39813 case "(($ac_try" in
39814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39815   *) ac_try_echo=$ac_try;;
39816 esac
39817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39818   (eval "$ac_compile") 2>conftest.er1
39819   ac_status=$?
39820   grep -v '^ *+' conftest.er1 >conftest.err
39821   rm -f conftest.er1
39822   cat conftest.err >&5
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); } && {
39825          test -z "$ac_cxx_werror_flag" ||
39826          test ! -s conftest.err
39827        } && test -s conftest.$ac_objext; then
39828
39829                wx_cv_func_pthread_cleanup=yes
39830
39831 else
39832   echo "$as_me: failed program was:" >&5
39833 sed 's/^/| /' conftest.$ac_ext >&5
39834
39835
39836                wx_cv_func_pthread_cleanup=no
39837
39838
39839 fi
39840
39841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39842         ac_ext=c
39843 ac_cpp='$CPP $CPPFLAGS'
39844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39847
39848
39849 fi
39850 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39851 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39852       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39853         cat >>confdefs.h <<\_ACEOF
39854 #define wxHAVE_PTHREAD_CLEANUP 1
39855 _ACEOF
39856
39857       fi
39858
39859
39860 for ac_header in sched.h
39861 do
39862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39866   echo $ECHO_N "(cached) $ECHO_C" >&6
39867 else
39868   cat >conftest.$ac_ext <<_ACEOF
39869 /* confdefs.h.  */
39870 _ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h.  */
39874 $ac_includes_default
39875
39876 #include <$ac_header>
39877 _ACEOF
39878 rm -f conftest.$ac_objext
39879 if { (ac_try="$ac_compile"
39880 case "(($ac_try" in
39881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39882   *) ac_try_echo=$ac_try;;
39883 esac
39884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39885   (eval "$ac_compile") 2>conftest.er1
39886   ac_status=$?
39887   grep -v '^ *+' conftest.er1 >conftest.err
39888   rm -f conftest.er1
39889   cat conftest.err >&5
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); } && {
39892          test -z "$ac_c_werror_flag" ||
39893          test ! -s conftest.err
39894        } && test -s conftest.$ac_objext; then
39895   eval "$as_ac_Header=yes"
39896 else
39897   echo "$as_me: failed program was:" >&5
39898 sed 's/^/| /' conftest.$ac_ext >&5
39899
39900         eval "$as_ac_Header=no"
39901 fi
39902
39903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39904 fi
39905 ac_res=`eval echo '${'$as_ac_Header'}'`
39906                { echo "$as_me:$LINENO: result: $ac_res" >&5
39907 echo "${ECHO_T}$ac_res" >&6; }
39908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39909   cat >>confdefs.h <<_ACEOF
39910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39911 _ACEOF
39912
39913 fi
39914
39915 done
39916
39917       if test "$ac_cv_header_sched_h" = "yes"; then
39918           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39919 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39920 if test "${ac_cv_func_sched_yield+set}" = set; then
39921   echo $ECHO_N "(cached) $ECHO_C" >&6
39922 else
39923   cat >conftest.$ac_ext <<_ACEOF
39924 /* confdefs.h.  */
39925 _ACEOF
39926 cat confdefs.h >>conftest.$ac_ext
39927 cat >>conftest.$ac_ext <<_ACEOF
39928 /* end confdefs.h.  */
39929 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39931 #define sched_yield innocuous_sched_yield
39932
39933 /* System header to define __stub macros and hopefully few prototypes,
39934     which can conflict with char sched_yield (); below.
39935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39936     <limits.h> exists even on freestanding compilers.  */
39937
39938 #ifdef __STDC__
39939 # include <limits.h>
39940 #else
39941 # include <assert.h>
39942 #endif
39943
39944 #undef sched_yield
39945
39946 /* Override any GCC internal prototype to avoid an error.
39947    Use char because int might match the return type of a GCC
39948    builtin and then its argument prototype would still apply.  */
39949 #ifdef __cplusplus
39950 extern "C"
39951 #endif
39952 char sched_yield ();
39953 /* The GNU C library defines this for functions which it implements
39954     to always fail with ENOSYS.  Some functions are actually named
39955     something starting with __ and the normal name is an alias.  */
39956 #if defined __stub_sched_yield || defined __stub___sched_yield
39957 choke me
39958 #endif
39959
39960 int
39961 main ()
39962 {
39963 return sched_yield ();
39964   ;
39965   return 0;
39966 }
39967 _ACEOF
39968 rm -f conftest.$ac_objext conftest$ac_exeext
39969 if { (ac_try="$ac_link"
39970 case "(($ac_try" in
39971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39972   *) ac_try_echo=$ac_try;;
39973 esac
39974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39975   (eval "$ac_link") 2>conftest.er1
39976   ac_status=$?
39977   grep -v '^ *+' conftest.er1 >conftest.err
39978   rm -f conftest.er1
39979   cat conftest.err >&5
39980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981   (exit $ac_status); } && {
39982          test -z "$ac_c_werror_flag" ||
39983          test ! -s conftest.err
39984        } && test -s conftest$ac_exeext &&
39985        $as_test_x conftest$ac_exeext; then
39986   ac_cv_func_sched_yield=yes
39987 else
39988   echo "$as_me: failed program was:" >&5
39989 sed 's/^/| /' conftest.$ac_ext >&5
39990
39991         ac_cv_func_sched_yield=no
39992 fi
39993
39994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39995       conftest$ac_exeext conftest.$ac_ext
39996 fi
39997 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39998 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39999 if test $ac_cv_func_sched_yield = yes; then
40000   cat >>confdefs.h <<\_ACEOF
40001 #define HAVE_SCHED_YIELD 1
40002 _ACEOF
40003
40004 else
40005
40006                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40007 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40008 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40009   echo $ECHO_N "(cached) $ECHO_C" >&6
40010 else
40011   ac_check_lib_save_LIBS=$LIBS
40012 LIBS="-lposix4  $LIBS"
40013 cat >conftest.$ac_ext <<_ACEOF
40014 /* confdefs.h.  */
40015 _ACEOF
40016 cat confdefs.h >>conftest.$ac_ext
40017 cat >>conftest.$ac_ext <<_ACEOF
40018 /* end confdefs.h.  */
40019
40020 /* Override any GCC internal prototype to avoid an error.
40021    Use char because int might match the return type of a GCC
40022    builtin and then its argument prototype would still apply.  */
40023 #ifdef __cplusplus
40024 extern "C"
40025 #endif
40026 char sched_yield ();
40027 int
40028 main ()
40029 {
40030 return sched_yield ();
40031   ;
40032   return 0;
40033 }
40034 _ACEOF
40035 rm -f conftest.$ac_objext conftest$ac_exeext
40036 if { (ac_try="$ac_link"
40037 case "(($ac_try" in
40038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40039   *) ac_try_echo=$ac_try;;
40040 esac
40041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40042   (eval "$ac_link") 2>conftest.er1
40043   ac_status=$?
40044   grep -v '^ *+' conftest.er1 >conftest.err
40045   rm -f conftest.er1
40046   cat conftest.err >&5
40047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048   (exit $ac_status); } && {
40049          test -z "$ac_c_werror_flag" ||
40050          test ! -s conftest.err
40051        } && test -s conftest$ac_exeext &&
40052        $as_test_x conftest$ac_exeext; then
40053   ac_cv_lib_posix4_sched_yield=yes
40054 else
40055   echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40057
40058         ac_cv_lib_posix4_sched_yield=no
40059 fi
40060
40061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40062       conftest$ac_exeext conftest.$ac_ext
40063 LIBS=$ac_check_lib_save_LIBS
40064 fi
40065 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40066 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40067 if test $ac_cv_lib_posix4_sched_yield = yes; then
40068   cat >>confdefs.h <<\_ACEOF
40069 #define HAVE_SCHED_YIELD 1
40070 _ACEOF
40071  POSIX4_LINK=" -lposix4"
40072 else
40073   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40074 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40075
40076 fi
40077
40078
40079
40080 fi
40081
40082       fi
40083
40084                                           HAVE_PRIOR_FUNCS=0
40085       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40086 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
40087 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40088   echo $ECHO_N "(cached) $ECHO_C" >&6
40089 else
40090   cat >conftest.$ac_ext <<_ACEOF
40091 /* confdefs.h.  */
40092 _ACEOF
40093 cat confdefs.h >>conftest.$ac_ext
40094 cat >>conftest.$ac_ext <<_ACEOF
40095 /* end confdefs.h.  */
40096 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40098 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40099
40100 /* System header to define __stub macros and hopefully few prototypes,
40101     which can conflict with char pthread_attr_getschedpolicy (); below.
40102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40103     <limits.h> exists even on freestanding compilers.  */
40104
40105 #ifdef __STDC__
40106 # include <limits.h>
40107 #else
40108 # include <assert.h>
40109 #endif
40110
40111 #undef pthread_attr_getschedpolicy
40112
40113 /* Override any GCC internal prototype to avoid an error.
40114    Use char because int might match the return type of a GCC
40115    builtin and then its argument prototype would still apply.  */
40116 #ifdef __cplusplus
40117 extern "C"
40118 #endif
40119 char pthread_attr_getschedpolicy ();
40120 /* The GNU C library defines this for functions which it implements
40121     to always fail with ENOSYS.  Some functions are actually named
40122     something starting with __ and the normal name is an alias.  */
40123 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
40124 choke me
40125 #endif
40126
40127 int
40128 main ()
40129 {
40130 return pthread_attr_getschedpolicy ();
40131   ;
40132   return 0;
40133 }
40134 _ACEOF
40135 rm -f conftest.$ac_objext conftest$ac_exeext
40136 if { (ac_try="$ac_link"
40137 case "(($ac_try" in
40138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40139   *) ac_try_echo=$ac_try;;
40140 esac
40141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40142   (eval "$ac_link") 2>conftest.er1
40143   ac_status=$?
40144   grep -v '^ *+' conftest.er1 >conftest.err
40145   rm -f conftest.er1
40146   cat conftest.err >&5
40147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); } && {
40149          test -z "$ac_c_werror_flag" ||
40150          test ! -s conftest.err
40151        } && test -s conftest$ac_exeext &&
40152        $as_test_x conftest$ac_exeext; then
40153   ac_cv_func_pthread_attr_getschedpolicy=yes
40154 else
40155   echo "$as_me: failed program was:" >&5
40156 sed 's/^/| /' conftest.$ac_ext >&5
40157
40158         ac_cv_func_pthread_attr_getschedpolicy=no
40159 fi
40160
40161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40162       conftest$ac_exeext conftest.$ac_ext
40163 fi
40164 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40165 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40166 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40167   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40168 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
40169 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40170   echo $ECHO_N "(cached) $ECHO_C" >&6
40171 else
40172   cat >conftest.$ac_ext <<_ACEOF
40173 /* confdefs.h.  */
40174 _ACEOF
40175 cat confdefs.h >>conftest.$ac_ext
40176 cat >>conftest.$ac_ext <<_ACEOF
40177 /* end confdefs.h.  */
40178 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40180 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40181
40182 /* System header to define __stub macros and hopefully few prototypes,
40183     which can conflict with char pthread_attr_setschedparam (); below.
40184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40185     <limits.h> exists even on freestanding compilers.  */
40186
40187 #ifdef __STDC__
40188 # include <limits.h>
40189 #else
40190 # include <assert.h>
40191 #endif
40192
40193 #undef pthread_attr_setschedparam
40194
40195 /* Override any GCC internal prototype to avoid an error.
40196    Use char because int might match the return type of a GCC
40197    builtin and then its argument prototype would still apply.  */
40198 #ifdef __cplusplus
40199 extern "C"
40200 #endif
40201 char pthread_attr_setschedparam ();
40202 /* The GNU C library defines this for functions which it implements
40203     to always fail with ENOSYS.  Some functions are actually named
40204     something starting with __ and the normal name is an alias.  */
40205 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
40206 choke me
40207 #endif
40208
40209 int
40210 main ()
40211 {
40212 return pthread_attr_setschedparam ();
40213   ;
40214   return 0;
40215 }
40216 _ACEOF
40217 rm -f conftest.$ac_objext conftest$ac_exeext
40218 if { (ac_try="$ac_link"
40219 case "(($ac_try" in
40220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40221   *) ac_try_echo=$ac_try;;
40222 esac
40223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40224   (eval "$ac_link") 2>conftest.er1
40225   ac_status=$?
40226   grep -v '^ *+' conftest.er1 >conftest.err
40227   rm -f conftest.er1
40228   cat conftest.err >&5
40229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230   (exit $ac_status); } && {
40231          test -z "$ac_c_werror_flag" ||
40232          test ! -s conftest.err
40233        } && test -s conftest$ac_exeext &&
40234        $as_test_x conftest$ac_exeext; then
40235   ac_cv_func_pthread_attr_setschedparam=yes
40236 else
40237   echo "$as_me: failed program was:" >&5
40238 sed 's/^/| /' conftest.$ac_ext >&5
40239
40240         ac_cv_func_pthread_attr_setschedparam=no
40241 fi
40242
40243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40244       conftest$ac_exeext conftest.$ac_ext
40245 fi
40246 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40247 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
40248 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40249   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40250 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
40251 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40252   echo $ECHO_N "(cached) $ECHO_C" >&6
40253 else
40254   cat >conftest.$ac_ext <<_ACEOF
40255 /* confdefs.h.  */
40256 _ACEOF
40257 cat confdefs.h >>conftest.$ac_ext
40258 cat >>conftest.$ac_ext <<_ACEOF
40259 /* end confdefs.h.  */
40260 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40262 #define sched_get_priority_max innocuous_sched_get_priority_max
40263
40264 /* System header to define __stub macros and hopefully few prototypes,
40265     which can conflict with char sched_get_priority_max (); below.
40266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40267     <limits.h> exists even on freestanding compilers.  */
40268
40269 #ifdef __STDC__
40270 # include <limits.h>
40271 #else
40272 # include <assert.h>
40273 #endif
40274
40275 #undef sched_get_priority_max
40276
40277 /* Override any GCC internal prototype to avoid an error.
40278    Use char because int might match the return type of a GCC
40279    builtin and then its argument prototype would still apply.  */
40280 #ifdef __cplusplus
40281 extern "C"
40282 #endif
40283 char sched_get_priority_max ();
40284 /* The GNU C library defines this for functions which it implements
40285     to always fail with ENOSYS.  Some functions are actually named
40286     something starting with __ and the normal name is an alias.  */
40287 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
40288 choke me
40289 #endif
40290
40291 int
40292 main ()
40293 {
40294 return sched_get_priority_max ();
40295   ;
40296   return 0;
40297 }
40298 _ACEOF
40299 rm -f conftest.$ac_objext conftest$ac_exeext
40300 if { (ac_try="$ac_link"
40301 case "(($ac_try" in
40302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40303   *) ac_try_echo=$ac_try;;
40304 esac
40305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40306   (eval "$ac_link") 2>conftest.er1
40307   ac_status=$?
40308   grep -v '^ *+' conftest.er1 >conftest.err
40309   rm -f conftest.er1
40310   cat conftest.err >&5
40311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312   (exit $ac_status); } && {
40313          test -z "$ac_c_werror_flag" ||
40314          test ! -s conftest.err
40315        } && test -s conftest$ac_exeext &&
40316        $as_test_x conftest$ac_exeext; then
40317   ac_cv_func_sched_get_priority_max=yes
40318 else
40319   echo "$as_me: failed program was:" >&5
40320 sed 's/^/| /' conftest.$ac_ext >&5
40321
40322         ac_cv_func_sched_get_priority_max=no
40323 fi
40324
40325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40326       conftest$ac_exeext conftest.$ac_ext
40327 fi
40328 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40329 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
40330 if test $ac_cv_func_sched_get_priority_max = yes; then
40331   HAVE_PRIOR_FUNCS=1
40332 else
40333   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40334 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
40335 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40336   echo $ECHO_N "(cached) $ECHO_C" >&6
40337 else
40338   ac_check_lib_save_LIBS=$LIBS
40339 LIBS="-lposix4  $LIBS"
40340 cat >conftest.$ac_ext <<_ACEOF
40341 /* confdefs.h.  */
40342 _ACEOF
40343 cat confdefs.h >>conftest.$ac_ext
40344 cat >>conftest.$ac_ext <<_ACEOF
40345 /* end confdefs.h.  */
40346
40347 /* Override any GCC internal prototype to avoid an error.
40348    Use char because int might match the return type of a GCC
40349    builtin and then its argument prototype would still apply.  */
40350 #ifdef __cplusplus
40351 extern "C"
40352 #endif
40353 char sched_get_priority_max ();
40354 int
40355 main ()
40356 {
40357 return sched_get_priority_max ();
40358   ;
40359   return 0;
40360 }
40361 _ACEOF
40362 rm -f conftest.$ac_objext conftest$ac_exeext
40363 if { (ac_try="$ac_link"
40364 case "(($ac_try" in
40365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40366   *) ac_try_echo=$ac_try;;
40367 esac
40368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40369   (eval "$ac_link") 2>conftest.er1
40370   ac_status=$?
40371   grep -v '^ *+' conftest.er1 >conftest.err
40372   rm -f conftest.er1
40373   cat conftest.err >&5
40374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375   (exit $ac_status); } && {
40376          test -z "$ac_c_werror_flag" ||
40377          test ! -s conftest.err
40378        } && test -s conftest$ac_exeext &&
40379        $as_test_x conftest$ac_exeext; then
40380   ac_cv_lib_posix4_sched_get_priority_max=yes
40381 else
40382   echo "$as_me: failed program was:" >&5
40383 sed 's/^/| /' conftest.$ac_ext >&5
40384
40385         ac_cv_lib_posix4_sched_get_priority_max=no
40386 fi
40387
40388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40389       conftest$ac_exeext conftest.$ac_ext
40390 LIBS=$ac_check_lib_save_LIBS
40391 fi
40392 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40393 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
40394 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40395
40396                                 HAVE_PRIOR_FUNCS=1
40397                                 POSIX4_LINK=" -lposix4"
40398
40399 fi
40400
40401
40402 fi
40403
40404
40405 fi
40406
40407
40408 fi
40409
40410
40411       if test "$HAVE_PRIOR_FUNCS" = 1; then
40412         cat >>confdefs.h <<\_ACEOF
40413 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40414 _ACEOF
40415
40416       else
40417         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40418 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40419       fi
40420
40421       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40422 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
40423 if test "${ac_cv_func_pthread_cancel+set}" = set; then
40424   echo $ECHO_N "(cached) $ECHO_C" >&6
40425 else
40426   cat >conftest.$ac_ext <<_ACEOF
40427 /* confdefs.h.  */
40428 _ACEOF
40429 cat confdefs.h >>conftest.$ac_ext
40430 cat >>conftest.$ac_ext <<_ACEOF
40431 /* end confdefs.h.  */
40432 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40434 #define pthread_cancel innocuous_pthread_cancel
40435
40436 /* System header to define __stub macros and hopefully few prototypes,
40437     which can conflict with char pthread_cancel (); below.
40438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40439     <limits.h> exists even on freestanding compilers.  */
40440
40441 #ifdef __STDC__
40442 # include <limits.h>
40443 #else
40444 # include <assert.h>
40445 #endif
40446
40447 #undef pthread_cancel
40448
40449 /* Override any GCC internal prototype to avoid an error.
40450    Use char because int might match the return type of a GCC
40451    builtin and then its argument prototype would still apply.  */
40452 #ifdef __cplusplus
40453 extern "C"
40454 #endif
40455 char pthread_cancel ();
40456 /* The GNU C library defines this for functions which it implements
40457     to always fail with ENOSYS.  Some functions are actually named
40458     something starting with __ and the normal name is an alias.  */
40459 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
40460 choke me
40461 #endif
40462
40463 int
40464 main ()
40465 {
40466 return pthread_cancel ();
40467   ;
40468   return 0;
40469 }
40470 _ACEOF
40471 rm -f conftest.$ac_objext conftest$ac_exeext
40472 if { (ac_try="$ac_link"
40473 case "(($ac_try" in
40474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40475   *) ac_try_echo=$ac_try;;
40476 esac
40477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40478   (eval "$ac_link") 2>conftest.er1
40479   ac_status=$?
40480   grep -v '^ *+' conftest.er1 >conftest.err
40481   rm -f conftest.er1
40482   cat conftest.err >&5
40483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484   (exit $ac_status); } && {
40485          test -z "$ac_c_werror_flag" ||
40486          test ! -s conftest.err
40487        } && test -s conftest$ac_exeext &&
40488        $as_test_x conftest$ac_exeext; then
40489   ac_cv_func_pthread_cancel=yes
40490 else
40491   echo "$as_me: failed program was:" >&5
40492 sed 's/^/| /' conftest.$ac_ext >&5
40493
40494         ac_cv_func_pthread_cancel=no
40495 fi
40496
40497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40498       conftest$ac_exeext conftest.$ac_ext
40499 fi
40500 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40501 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
40502 if test $ac_cv_func_pthread_cancel = yes; then
40503   cat >>confdefs.h <<\_ACEOF
40504 #define HAVE_PTHREAD_CANCEL 1
40505 _ACEOF
40506
40507 else
40508   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40509 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40510 fi
40511
40512
40513       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
40514 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
40515 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
40516   echo $ECHO_N "(cached) $ECHO_C" >&6
40517 else
40518   cat >conftest.$ac_ext <<_ACEOF
40519 /* confdefs.h.  */
40520 _ACEOF
40521 cat confdefs.h >>conftest.$ac_ext
40522 cat >>conftest.$ac_ext <<_ACEOF
40523 /* end confdefs.h.  */
40524 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
40525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40526 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
40527
40528 /* System header to define __stub macros and hopefully few prototypes,
40529     which can conflict with char pthread_mutex_timedlock (); below.
40530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40531     <limits.h> exists even on freestanding compilers.  */
40532
40533 #ifdef __STDC__
40534 # include <limits.h>
40535 #else
40536 # include <assert.h>
40537 #endif
40538
40539 #undef pthread_mutex_timedlock
40540
40541 /* Override any GCC internal prototype to avoid an error.
40542    Use char because int might match the return type of a GCC
40543    builtin and then its argument prototype would still apply.  */
40544 #ifdef __cplusplus
40545 extern "C"
40546 #endif
40547 char pthread_mutex_timedlock ();
40548 /* The GNU C library defines this for functions which it implements
40549     to always fail with ENOSYS.  Some functions are actually named
40550     something starting with __ and the normal name is an alias.  */
40551 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
40552 choke me
40553 #endif
40554
40555 int
40556 main ()
40557 {
40558 return pthread_mutex_timedlock ();
40559   ;
40560   return 0;
40561 }
40562 _ACEOF
40563 rm -f conftest.$ac_objext conftest$ac_exeext
40564 if { (ac_try="$ac_link"
40565 case "(($ac_try" in
40566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567   *) ac_try_echo=$ac_try;;
40568 esac
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570   (eval "$ac_link") 2>conftest.er1
40571   ac_status=$?
40572   grep -v '^ *+' conftest.er1 >conftest.err
40573   rm -f conftest.er1
40574   cat conftest.err >&5
40575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576   (exit $ac_status); } && {
40577          test -z "$ac_c_werror_flag" ||
40578          test ! -s conftest.err
40579        } && test -s conftest$ac_exeext &&
40580        $as_test_x conftest$ac_exeext; then
40581   ac_cv_func_pthread_mutex_timedlock=yes
40582 else
40583   echo "$as_me: failed program was:" >&5
40584 sed 's/^/| /' conftest.$ac_ext >&5
40585
40586         ac_cv_func_pthread_mutex_timedlock=no
40587 fi
40588
40589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40590       conftest$ac_exeext conftest.$ac_ext
40591 fi
40592 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
40593 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
40594 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
40595   cat >>confdefs.h <<\_ACEOF
40596 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
40597 _ACEOF
40598
40599 else
40600   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40601 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
40602 fi
40603
40604
40605       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40606 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
40607 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40608   echo $ECHO_N "(cached) $ECHO_C" >&6
40609 else
40610   cat >conftest.$ac_ext <<_ACEOF
40611 /* confdefs.h.  */
40612 _ACEOF
40613 cat confdefs.h >>conftest.$ac_ext
40614 cat >>conftest.$ac_ext <<_ACEOF
40615 /* end confdefs.h.  */
40616 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40618 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40619
40620 /* System header to define __stub macros and hopefully few prototypes,
40621     which can conflict with char pthread_attr_setstacksize (); below.
40622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40623     <limits.h> exists even on freestanding compilers.  */
40624
40625 #ifdef __STDC__
40626 # include <limits.h>
40627 #else
40628 # include <assert.h>
40629 #endif
40630
40631 #undef pthread_attr_setstacksize
40632
40633 /* Override any GCC internal prototype to avoid an error.
40634    Use char because int might match the return type of a GCC
40635    builtin and then its argument prototype would still apply.  */
40636 #ifdef __cplusplus
40637 extern "C"
40638 #endif
40639 char pthread_attr_setstacksize ();
40640 /* The GNU C library defines this for functions which it implements
40641     to always fail with ENOSYS.  Some functions are actually named
40642     something starting with __ and the normal name is an alias.  */
40643 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40644 choke me
40645 #endif
40646
40647 int
40648 main ()
40649 {
40650 return pthread_attr_setstacksize ();
40651   ;
40652   return 0;
40653 }
40654 _ACEOF
40655 rm -f conftest.$ac_objext conftest$ac_exeext
40656 if { (ac_try="$ac_link"
40657 case "(($ac_try" in
40658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40659   *) ac_try_echo=$ac_try;;
40660 esac
40661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40662   (eval "$ac_link") 2>conftest.er1
40663   ac_status=$?
40664   grep -v '^ *+' conftest.er1 >conftest.err
40665   rm -f conftest.er1
40666   cat conftest.err >&5
40667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668   (exit $ac_status); } && {
40669          test -z "$ac_c_werror_flag" ||
40670          test ! -s conftest.err
40671        } && test -s conftest$ac_exeext &&
40672        $as_test_x conftest$ac_exeext; then
40673   ac_cv_func_pthread_attr_setstacksize=yes
40674 else
40675   echo "$as_me: failed program was:" >&5
40676 sed 's/^/| /' conftest.$ac_ext >&5
40677
40678         ac_cv_func_pthread_attr_setstacksize=no
40679 fi
40680
40681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40682       conftest$ac_exeext conftest.$ac_ext
40683 fi
40684 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40685 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40686 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40687   cat >>confdefs.h <<\_ACEOF
40688 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40689 _ACEOF
40690
40691 fi
40692
40693
40694
40695       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40696 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40697 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40698   echo $ECHO_N "(cached) $ECHO_C" >&6
40699 else
40700
40701         cat >conftest.$ac_ext <<_ACEOF
40702 /* confdefs.h.  */
40703 _ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h.  */
40707 #include <pthread.h>
40708 int
40709 main ()
40710 {
40711
40712                pthread_mutexattr_t attr;
40713                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40714
40715   ;
40716   return 0;
40717 }
40718 _ACEOF
40719 rm -f conftest.$ac_objext
40720 if { (ac_try="$ac_compile"
40721 case "(($ac_try" in
40722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40723   *) ac_try_echo=$ac_try;;
40724 esac
40725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40726   (eval "$ac_compile") 2>conftest.er1
40727   ac_status=$?
40728   grep -v '^ *+' conftest.er1 >conftest.err
40729   rm -f conftest.er1
40730   cat conftest.err >&5
40731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732   (exit $ac_status); } && {
40733          test -z "$ac_c_werror_flag" ||
40734          test ! -s conftest.err
40735        } && test -s conftest.$ac_objext; then
40736   wx_cv_type_pthread_mutexattr_t=yes
40737 else
40738   echo "$as_me: failed program was:" >&5
40739 sed 's/^/| /' conftest.$ac_ext >&5
40740
40741         wx_cv_type_pthread_mutexattr_t=no
40742
40743 fi
40744
40745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40746
40747 fi
40748 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40749 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40750
40751       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40752         cat >>confdefs.h <<\_ACEOF
40753 #define HAVE_PTHREAD_MUTEXATTR_T 1
40754 _ACEOF
40755
40756
40757                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40758 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40759 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40760   echo $ECHO_N "(cached) $ECHO_C" >&6
40761 else
40762
40763                        cat >conftest.$ac_ext <<_ACEOF
40764 /* confdefs.h.  */
40765 _ACEOF
40766 cat confdefs.h >>conftest.$ac_ext
40767 cat >>conftest.$ac_ext <<_ACEOF
40768 /* end confdefs.h.  */
40769 #include <pthread.h>
40770 int
40771 main ()
40772 {
40773
40774                                pthread_mutexattr_t attr;
40775                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40776
40777   ;
40778   return 0;
40779 }
40780 _ACEOF
40781 rm -f conftest.$ac_objext
40782 if { (ac_try="$ac_compile"
40783 case "(($ac_try" in
40784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40785   *) ac_try_echo=$ac_try;;
40786 esac
40787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40788   (eval "$ac_compile") 2>conftest.er1
40789   ac_status=$?
40790   grep -v '^ *+' conftest.er1 >conftest.err
40791   rm -f conftest.er1
40792   cat conftest.err >&5
40793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40794   (exit $ac_status); } && {
40795          test -z "$ac_c_werror_flag" ||
40796          test ! -s conftest.err
40797        } && test -s conftest.$ac_objext; then
40798   wx_cv_func_pthread_mutexattr_settype_decl=yes
40799 else
40800   echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40802
40803         wx_cv_func_pthread_mutexattr_settype_decl=no
40804
40805 fi
40806
40807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40808
40809 fi
40810 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40811 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40812         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40813             cat >>confdefs.h <<\_ACEOF
40814 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40815 _ACEOF
40816
40817         fi
40818       else
40819                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40820 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40821 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40822   echo $ECHO_N "(cached) $ECHO_C" >&6
40823 else
40824
40825             cat >conftest.$ac_ext <<_ACEOF
40826 /* confdefs.h.  */
40827 _ACEOF
40828 cat confdefs.h >>conftest.$ac_ext
40829 cat >>conftest.$ac_ext <<_ACEOF
40830 /* end confdefs.h.  */
40831 #include <pthread.h>
40832 int
40833 main ()
40834 {
40835
40836                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40837
40838   ;
40839   return 0;
40840 }
40841 _ACEOF
40842 rm -f conftest.$ac_objext
40843 if { (ac_try="$ac_compile"
40844 case "(($ac_try" in
40845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40846   *) ac_try_echo=$ac_try;;
40847 esac
40848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40849   (eval "$ac_compile") 2>conftest.er1
40850   ac_status=$?
40851   grep -v '^ *+' conftest.er1 >conftest.err
40852   rm -f conftest.er1
40853   cat conftest.err >&5
40854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855   (exit $ac_status); } && {
40856          test -z "$ac_c_werror_flag" ||
40857          test ! -s conftest.err
40858        } && test -s conftest.$ac_objext; then
40859
40860                     wx_cv_type_pthread_rec_mutex_init=yes
40861
40862 else
40863   echo "$as_me: failed program was:" >&5
40864 sed 's/^/| /' conftest.$ac_ext >&5
40865
40866
40867                     wx_cv_type_pthread_rec_mutex_init=no
40868
40869
40870 fi
40871
40872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40873
40874 fi
40875 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40876 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40877         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40878           cat >>confdefs.h <<\_ACEOF
40879 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40880 _ACEOF
40881
40882         else
40883                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40884 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40885         fi
40886       fi
40887
40888       if test "$wxUSE_COMPILER_TLS" = "auto"; then
40889           if test "$USE_NETBSD" = 1; then
40890               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
40891 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
40892               wxUSE_COMPILER_TLS=no
40893           else
40894               wxUSE_COMPILER_TLS=yes
40895           fi
40896       fi
40897
40898       if test "$wxUSE_COMPILER_TLS" = "yes"; then
40899                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40900 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40901 if test "${wx_cv_cc___thread+set}" = set; then
40902   echo $ECHO_N "(cached) $ECHO_C" >&6
40903 else
40904
40905                   cat >conftest.$ac_ext <<_ACEOF
40906 /* confdefs.h.  */
40907 _ACEOF
40908 cat confdefs.h >>conftest.$ac_ext
40909 cat >>conftest.$ac_ext <<_ACEOF
40910 /* end confdefs.h.  */
40911 #include <pthread.h>
40912 int
40913 main ()
40914 {
40915
40916                           static __thread int n = 0;
40917                           static __thread int *p = 0;
40918
40919   ;
40920   return 0;
40921 }
40922 _ACEOF
40923 rm -f conftest.$ac_objext
40924 if { (ac_try="$ac_compile"
40925 case "(($ac_try" in
40926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40927   *) ac_try_echo=$ac_try;;
40928 esac
40929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40930   (eval "$ac_compile") 2>conftest.er1
40931   ac_status=$?
40932   grep -v '^ *+' conftest.er1 >conftest.err
40933   rm -f conftest.er1
40934   cat conftest.err >&5
40935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936   (exit $ac_status); } && {
40937          test -z "$ac_c_werror_flag" ||
40938          test ! -s conftest.err
40939        } && test -s conftest.$ac_objext; then
40940   wx_cv_cc___thread=yes
40941 else
40942   echo "$as_me: failed program was:" >&5
40943 sed 's/^/| /' conftest.$ac_ext >&5
40944
40945         wx_cv_cc___thread=no
40946
40947 fi
40948
40949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40950
40951
40952 fi
40953 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40954 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40955
40956           if test "$wx_cv_cc___thread" = "yes"; then
40957
40958   GXX_VERSION=""
40959
40960
40961
40962   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40963 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40964
40965   if  test "x$GCC" = "xyes" ; then
40966
40967     if  test -z "" ; then
40968
40969       ax_gcc_option_test="int main()
40970 {
40971         return 0;
40972 }"
40973
40974 else
40975
40976       ax_gcc_option_test=""
40977
40978 fi
40979
40980
40981     # Dump the test program to file
40982     cat <<EOF > conftest.c
40983 $ax_gcc_option_test
40984 EOF
40985
40986     # Dump back the file to the log, useful for debugging purposes
40987     { ac_try='cat conftest.c 1>&5'
40988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989   (eval $ac_try) 2>&5
40990   ac_status=$?
40991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992   (exit $ac_status); }; }
40993
40994     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40996   (eval $ac_try) 2>&5
40997   ac_status=$?
40998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999   (exit $ac_status); }; } ; then
41000
41001                 { echo "$as_me:$LINENO: result: yes" >&5
41002 echo "${ECHO_T}yes" >&6; }
41003
41004     ax_gcc_version_option=yes
41005
41006
41007 else
41008
41009                 { echo "$as_me:$LINENO: result: no" >&5
41010 echo "${ECHO_T}no" >&6; }
41011
41012     ax_gcc_version_option=no
41013
41014
41015 fi
41016
41017
41018 else
41019
41020     { echo "$as_me:$LINENO: result: no gcc available" >&5
41021 echo "${ECHO_T}no gcc available" >&6; }
41022
41023 fi
41024
41025
41026   if test "x$GXX" = "xyes"; then
41027
41028     if test "x$ax_gxx_version_option" != "no"; then
41029
41030       { echo "$as_me:$LINENO: checking gxx version" >&5
41031 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41032 if test "${ax_cv_gxx_version+set}" = set; then
41033   echo $ECHO_N "(cached) $ECHO_C" >&6
41034 else
41035
41036         ax_cv_gxx_version="`$CXX -dumpversion`"
41037         if test "x$ax_cv_gxx_version" = "x"; then
41038
41039           ax_cv_gxx_version=""
41040
41041 fi
41042
41043
41044 fi
41045 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41046 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
41047       GXX_VERSION=$ax_cv_gxx_version
41048
41049 fi
41050
41051
41052 fi
41053
41054
41055
41056               if test -n "$ax_cv_gxx_version"; then
41057                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41058 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
41059                   case "$ax_cv_gxx_version" in
41060                     1.* | 2.* | 3.* )
41061                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
41062 echo "${ECHO_T}no, it's broken" >&6; }
41063                         wx_cv_cc___thread=no
41064                         ;;
41065                     *)
41066                         { echo "$as_me:$LINENO: result: yes, it works" >&5
41067 echo "${ECHO_T}yes, it works" >&6; }
41068                         ;;
41069                   esac
41070               fi
41071           fi
41072
41073           if test "$wx_cv_cc___thread" = "yes"; then
41074             cat >>confdefs.h <<\_ACEOF
41075 #define HAVE___THREAD_KEYWORD 1
41076 _ACEOF
41077
41078           fi
41079         fi
41080     fi
41081
41082 else
41083     if test "$wxUSE_THREADS" = "yes" ; then
41084       case "${host}" in
41085         x86_64-*-mingw32* )
41086         ;;
41087         *-*-mingw32* )
41088                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41089 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
41090 if test "${wx_cv_cflags_mthread+set}" = set; then
41091   echo $ECHO_N "(cached) $ECHO_C" >&6
41092 else
41093
41094                     CFLAGS_OLD="$CFLAGS"
41095                     CFLAGS="-mthreads $CFLAGS"
41096                     cat >conftest.$ac_ext <<_ACEOF
41097 /* confdefs.h.  */
41098 _ACEOF
41099 cat confdefs.h >>conftest.$ac_ext
41100 cat >>conftest.$ac_ext <<_ACEOF
41101 /* end confdefs.h.  */
41102
41103 int
41104 main ()
41105 {
41106
41107   ;
41108   return 0;
41109 }
41110 _ACEOF
41111 rm -f conftest.$ac_objext
41112 if { (ac_try="$ac_compile"
41113 case "(($ac_try" in
41114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41115   *) ac_try_echo=$ac_try;;
41116 esac
41117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41118   (eval "$ac_compile") 2>conftest.er1
41119   ac_status=$?
41120   grep -v '^ *+' conftest.er1 >conftest.err
41121   rm -f conftest.er1
41122   cat conftest.err >&5
41123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124   (exit $ac_status); } && {
41125          test -z "$ac_c_werror_flag" ||
41126          test ! -s conftest.err
41127        } && test -s conftest.$ac_objext; then
41128   wx_cv_cflags_mthread=yes
41129 else
41130   echo "$as_me: failed program was:" >&5
41131 sed 's/^/| /' conftest.$ac_ext >&5
41132
41133         wx_cv_cflags_mthread=no
41134
41135 fi
41136
41137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41138
41139
41140 fi
41141 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41142 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
41143
41144             if test "$wx_cv_cflags_mthread" = "yes"; then
41145                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41146                 LDFLAGS="$LDFLAGS -mthreads"
41147             else
41148                                 CFLAGS="$CFLAGS_OLD"
41149             fi
41150         ;;
41151         *-pc-os2*emx )
41152             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41153             LDFLAGS="$LDFLAGS -Zmt"
41154         ;;
41155       esac
41156     fi
41157 fi
41158
41159 { echo "$as_me:$LINENO: checking for localtime_r" >&5
41160 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
41161 if test "${ac_cv_func_localtime_r+set}" = set; then
41162   echo $ECHO_N "(cached) $ECHO_C" >&6
41163 else
41164   cat >conftest.$ac_ext <<_ACEOF
41165 /* confdefs.h.  */
41166 _ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h.  */
41170 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41172 #define localtime_r innocuous_localtime_r
41173
41174 /* System header to define __stub macros and hopefully few prototypes,
41175     which can conflict with char localtime_r (); below.
41176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41177     <limits.h> exists even on freestanding compilers.  */
41178
41179 #ifdef __STDC__
41180 # include <limits.h>
41181 #else
41182 # include <assert.h>
41183 #endif
41184
41185 #undef localtime_r
41186
41187 /* Override any GCC internal prototype to avoid an error.
41188    Use char because int might match the return type of a GCC
41189    builtin and then its argument prototype would still apply.  */
41190 #ifdef __cplusplus
41191 extern "C"
41192 #endif
41193 char localtime_r ();
41194 /* The GNU C library defines this for functions which it implements
41195     to always fail with ENOSYS.  Some functions are actually named
41196     something starting with __ and the normal name is an alias.  */
41197 #if defined __stub_localtime_r || defined __stub___localtime_r
41198 choke me
41199 #endif
41200
41201 int
41202 main ()
41203 {
41204 return localtime_r ();
41205   ;
41206   return 0;
41207 }
41208 _ACEOF
41209 rm -f conftest.$ac_objext conftest$ac_exeext
41210 if { (ac_try="$ac_link"
41211 case "(($ac_try" in
41212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41213   *) ac_try_echo=$ac_try;;
41214 esac
41215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41216   (eval "$ac_link") 2>conftest.er1
41217   ac_status=$?
41218   grep -v '^ *+' conftest.er1 >conftest.err
41219   rm -f conftest.er1
41220   cat conftest.err >&5
41221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41222   (exit $ac_status); } && {
41223          test -z "$ac_c_werror_flag" ||
41224          test ! -s conftest.err
41225        } && test -s conftest$ac_exeext &&
41226        $as_test_x conftest$ac_exeext; then
41227   ac_cv_func_localtime_r=yes
41228 else
41229   echo "$as_me: failed program was:" >&5
41230 sed 's/^/| /' conftest.$ac_ext >&5
41231
41232         ac_cv_func_localtime_r=no
41233 fi
41234
41235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41236       conftest$ac_exeext conftest.$ac_ext
41237 fi
41238 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41239 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
41240 if test $ac_cv_func_localtime_r = yes; then
41241    cat >>confdefs.h <<\_ACEOF
41242 #define HAVE_LOCALTIME_R 1
41243 _ACEOF
41244
41245 fi
41246
41247 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
41248 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
41249 if test "${ac_cv_func_gmtime_r+set}" = set; then
41250   echo $ECHO_N "(cached) $ECHO_C" >&6
41251 else
41252   cat >conftest.$ac_ext <<_ACEOF
41253 /* confdefs.h.  */
41254 _ACEOF
41255 cat confdefs.h >>conftest.$ac_ext
41256 cat >>conftest.$ac_ext <<_ACEOF
41257 /* end confdefs.h.  */
41258 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41260 #define gmtime_r innocuous_gmtime_r
41261
41262 /* System header to define __stub macros and hopefully few prototypes,
41263     which can conflict with char gmtime_r (); below.
41264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41265     <limits.h> exists even on freestanding compilers.  */
41266
41267 #ifdef __STDC__
41268 # include <limits.h>
41269 #else
41270 # include <assert.h>
41271 #endif
41272
41273 #undef gmtime_r
41274
41275 /* Override any GCC internal prototype to avoid an error.
41276    Use char because int might match the return type of a GCC
41277    builtin and then its argument prototype would still apply.  */
41278 #ifdef __cplusplus
41279 extern "C"
41280 #endif
41281 char gmtime_r ();
41282 /* The GNU C library defines this for functions which it implements
41283     to always fail with ENOSYS.  Some functions are actually named
41284     something starting with __ and the normal name is an alias.  */
41285 #if defined __stub_gmtime_r || defined __stub___gmtime_r
41286 choke me
41287 #endif
41288
41289 int
41290 main ()
41291 {
41292 return gmtime_r ();
41293   ;
41294   return 0;
41295 }
41296 _ACEOF
41297 rm -f conftest.$ac_objext conftest$ac_exeext
41298 if { (ac_try="$ac_link"
41299 case "(($ac_try" in
41300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41301   *) ac_try_echo=$ac_try;;
41302 esac
41303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41304   (eval "$ac_link") 2>conftest.er1
41305   ac_status=$?
41306   grep -v '^ *+' conftest.er1 >conftest.err
41307   rm -f conftest.er1
41308   cat conftest.err >&5
41309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310   (exit $ac_status); } && {
41311          test -z "$ac_c_werror_flag" ||
41312          test ! -s conftest.err
41313        } && test -s conftest$ac_exeext &&
41314        $as_test_x conftest$ac_exeext; then
41315   ac_cv_func_gmtime_r=yes
41316 else
41317   echo "$as_me: failed program was:" >&5
41318 sed 's/^/| /' conftest.$ac_ext >&5
41319
41320         ac_cv_func_gmtime_r=no
41321 fi
41322
41323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41324       conftest$ac_exeext conftest.$ac_ext
41325 fi
41326 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41327 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
41328 if test $ac_cv_func_gmtime_r = yes; then
41329    cat >>confdefs.h <<\_ACEOF
41330 #define HAVE_GMTIME_R 1
41331 _ACEOF
41332
41333 fi
41334
41335
41336
41337
41338     ac_ext=c
41339 ac_cpp='$CPP $CPPFLAGS'
41340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41343
41344     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41345 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
41346
41347     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41348   echo $ECHO_N "(cached) $ECHO_C" >&6
41349 else
41350
41351
41352 ################################################################
41353
41354 ac_cv_func_which_gethostbyname_r=unknown
41355
41356 #
41357 # ONE ARGUMENT (sanity check)
41358 #
41359
41360 # This should fail, as there is no variant of gethostbyname_r() that takes
41361 # a single argument. If it actually compiles, then we can assume that
41362 # netdb.h is not declaring the function, and the compiler is thereby
41363 # assuming an implicit prototype. In which case, we're out of luck.
41364 #
41365 cat >conftest.$ac_ext <<_ACEOF
41366 /* confdefs.h.  */
41367 _ACEOF
41368 cat confdefs.h >>conftest.$ac_ext
41369 cat >>conftest.$ac_ext <<_ACEOF
41370 /* end confdefs.h.  */
41371 #include <netdb.h>
41372 int
41373 main ()
41374 {
41375
41376             char *name = "www.gnu.org";
41377             (void)gethostbyname_r(name) /* ; */
41378
41379   ;
41380   return 0;
41381 }
41382 _ACEOF
41383 rm -f conftest.$ac_objext
41384 if { (ac_try="$ac_compile"
41385 case "(($ac_try" in
41386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41387   *) ac_try_echo=$ac_try;;
41388 esac
41389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41390   (eval "$ac_compile") 2>conftest.er1
41391   ac_status=$?
41392   grep -v '^ *+' conftest.er1 >conftest.err
41393   rm -f conftest.er1
41394   cat conftest.err >&5
41395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41396   (exit $ac_status); } && {
41397          test -z "$ac_c_werror_flag" ||
41398          test ! -s conftest.err
41399        } && test -s conftest.$ac_objext; then
41400   ac_cv_func_which_gethostbyname_r=no
41401 else
41402   echo "$as_me: failed program was:" >&5
41403 sed 's/^/| /' conftest.$ac_ext >&5
41404
41405
41406 fi
41407
41408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41409
41410 #
41411 # SIX ARGUMENTS
41412 # (e.g. Linux)
41413 #
41414
41415 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41416
41417 cat >conftest.$ac_ext <<_ACEOF
41418 /* confdefs.h.  */
41419 _ACEOF
41420 cat confdefs.h >>conftest.$ac_ext
41421 cat >>conftest.$ac_ext <<_ACEOF
41422 /* end confdefs.h.  */
41423 #include <netdb.h>
41424 int
41425 main ()
41426 {
41427
41428             char *name = "www.gnu.org";
41429             struct hostent ret, *retp;
41430             char buf[1024];
41431             int buflen = 1024;
41432             int my_h_errno;
41433             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41434
41435   ;
41436   return 0;
41437 }
41438 _ACEOF
41439 rm -f conftest.$ac_objext
41440 if { (ac_try="$ac_compile"
41441 case "(($ac_try" in
41442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41443   *) ac_try_echo=$ac_try;;
41444 esac
41445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41446   (eval "$ac_compile") 2>conftest.er1
41447   ac_status=$?
41448   grep -v '^ *+' conftest.er1 >conftest.err
41449   rm -f conftest.er1
41450   cat conftest.err >&5
41451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41452   (exit $ac_status); } && {
41453          test -z "$ac_c_werror_flag" ||
41454          test ! -s conftest.err
41455        } && test -s conftest.$ac_objext; then
41456   ac_cv_func_which_gethostbyname_r=six
41457 else
41458   echo "$as_me: failed program was:" >&5
41459 sed 's/^/| /' conftest.$ac_ext >&5
41460
41461
41462 fi
41463
41464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41465
41466 fi
41467
41468 #
41469 # FIVE ARGUMENTS
41470 # (e.g. Solaris)
41471 #
41472
41473 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41474
41475 cat >conftest.$ac_ext <<_ACEOF
41476 /* confdefs.h.  */
41477 _ACEOF
41478 cat confdefs.h >>conftest.$ac_ext
41479 cat >>conftest.$ac_ext <<_ACEOF
41480 /* end confdefs.h.  */
41481 #include <netdb.h>
41482 int
41483 main ()
41484 {
41485
41486             char *name = "www.gnu.org";
41487             struct hostent ret;
41488             char buf[1024];
41489             int buflen = 1024;
41490             int my_h_errno;
41491             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41492
41493   ;
41494   return 0;
41495 }
41496 _ACEOF
41497 rm -f conftest.$ac_objext
41498 if { (ac_try="$ac_compile"
41499 case "(($ac_try" in
41500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41501   *) ac_try_echo=$ac_try;;
41502 esac
41503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41504   (eval "$ac_compile") 2>conftest.er1
41505   ac_status=$?
41506   grep -v '^ *+' conftest.er1 >conftest.err
41507   rm -f conftest.er1
41508   cat conftest.err >&5
41509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510   (exit $ac_status); } && {
41511          test -z "$ac_c_werror_flag" ||
41512          test ! -s conftest.err
41513        } && test -s conftest.$ac_objext; then
41514   ac_cv_func_which_gethostbyname_r=five
41515 else
41516   echo "$as_me: failed program was:" >&5
41517 sed 's/^/| /' conftest.$ac_ext >&5
41518
41519
41520 fi
41521
41522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41523
41524 fi
41525
41526 #
41527 # THREE ARGUMENTS
41528 # (e.g. AIX, HP-UX, Tru64)
41529 #
41530
41531 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41532
41533 cat >conftest.$ac_ext <<_ACEOF
41534 /* confdefs.h.  */
41535 _ACEOF
41536 cat confdefs.h >>conftest.$ac_ext
41537 cat >>conftest.$ac_ext <<_ACEOF
41538 /* end confdefs.h.  */
41539 #include <netdb.h>
41540 int
41541 main ()
41542 {
41543
41544             char *name = "www.gnu.org";
41545             struct hostent ret;
41546             struct hostent_data data;
41547             (void)gethostbyname_r(name, &ret, &data) /* ; */
41548
41549   ;
41550   return 0;
41551 }
41552 _ACEOF
41553 rm -f conftest.$ac_objext
41554 if { (ac_try="$ac_compile"
41555 case "(($ac_try" in
41556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41557   *) ac_try_echo=$ac_try;;
41558 esac
41559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41560   (eval "$ac_compile") 2>conftest.er1
41561   ac_status=$?
41562   grep -v '^ *+' conftest.er1 >conftest.err
41563   rm -f conftest.er1
41564   cat conftest.err >&5
41565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41566   (exit $ac_status); } && {
41567          test -z "$ac_c_werror_flag" ||
41568          test ! -s conftest.err
41569        } && test -s conftest.$ac_objext; then
41570   ac_cv_func_which_gethostbyname_r=three
41571 else
41572   echo "$as_me: failed program was:" >&5
41573 sed 's/^/| /' conftest.$ac_ext >&5
41574
41575
41576 fi
41577
41578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41579
41580 fi
41581
41582 ################################################################
41583
41584
41585 fi
41586
41587 case "$ac_cv_func_which_gethostbyname_r" in
41588     three)
41589     { echo "$as_me:$LINENO: result: three" >&5
41590 echo "${ECHO_T}three" >&6; }
41591     cat >>confdefs.h <<\_ACEOF
41592 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41593 _ACEOF
41594
41595     ;;
41596
41597     five)
41598     { echo "$as_me:$LINENO: result: five" >&5
41599 echo "${ECHO_T}five" >&6; }
41600     cat >>confdefs.h <<\_ACEOF
41601 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41602 _ACEOF
41603
41604     ;;
41605
41606     six)
41607     { echo "$as_me:$LINENO: result: six" >&5
41608 echo "${ECHO_T}six" >&6; }
41609     cat >>confdefs.h <<\_ACEOF
41610 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41611 _ACEOF
41612
41613     ;;
41614
41615     no)
41616     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41617 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
41618     ;;
41619
41620     unknown)
41621     { echo "$as_me:$LINENO: result: can't tell" >&5
41622 echo "${ECHO_T}can't tell" >&6; }
41623     ;;
41624
41625     *)
41626     { { echo "$as_me:$LINENO: error: internal error" >&5
41627 echo "$as_me: error: internal error" >&2;}
41628    { (exit 1); exit 1; }; }
41629     ;;
41630 esac
41631
41632 ac_ext=c
41633 ac_cpp='$CPP $CPPFLAGS'
41634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41637
41638
41639
41640       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41641               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41642           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41643 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
41644 if test "${ac_cv_func_gethostbyname+set}" = set; then
41645   echo $ECHO_N "(cached) $ECHO_C" >&6
41646 else
41647   cat >conftest.$ac_ext <<_ACEOF
41648 /* confdefs.h.  */
41649 _ACEOF
41650 cat confdefs.h >>conftest.$ac_ext
41651 cat >>conftest.$ac_ext <<_ACEOF
41652 /* end confdefs.h.  */
41653 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41655 #define gethostbyname innocuous_gethostbyname
41656
41657 /* System header to define __stub macros and hopefully few prototypes,
41658     which can conflict with char gethostbyname (); below.
41659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41660     <limits.h> exists even on freestanding compilers.  */
41661
41662 #ifdef __STDC__
41663 # include <limits.h>
41664 #else
41665 # include <assert.h>
41666 #endif
41667
41668 #undef gethostbyname
41669
41670 /* Override any GCC internal prototype to avoid an error.
41671    Use char because int might match the return type of a GCC
41672    builtin and then its argument prototype would still apply.  */
41673 #ifdef __cplusplus
41674 extern "C"
41675 #endif
41676 char gethostbyname ();
41677 /* The GNU C library defines this for functions which it implements
41678     to always fail with ENOSYS.  Some functions are actually named
41679     something starting with __ and the normal name is an alias.  */
41680 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41681 choke me
41682 #endif
41683
41684 int
41685 main ()
41686 {
41687 return gethostbyname ();
41688   ;
41689   return 0;
41690 }
41691 _ACEOF
41692 rm -f conftest.$ac_objext conftest$ac_exeext
41693 if { (ac_try="$ac_link"
41694 case "(($ac_try" in
41695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41696   *) ac_try_echo=$ac_try;;
41697 esac
41698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41699   (eval "$ac_link") 2>conftest.er1
41700   ac_status=$?
41701   grep -v '^ *+' conftest.er1 >conftest.err
41702   rm -f conftest.er1
41703   cat conftest.err >&5
41704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41705   (exit $ac_status); } && {
41706          test -z "$ac_c_werror_flag" ||
41707          test ! -s conftest.err
41708        } && test -s conftest$ac_exeext &&
41709        $as_test_x conftest$ac_exeext; then
41710   ac_cv_func_gethostbyname=yes
41711 else
41712   echo "$as_me: failed program was:" >&5
41713 sed 's/^/| /' conftest.$ac_ext >&5
41714
41715         ac_cv_func_gethostbyname=no
41716 fi
41717
41718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41719       conftest$ac_exeext conftest.$ac_ext
41720 fi
41721 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41722 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41723 if test $ac_cv_func_gethostbyname = yes; then
41724    cat >>confdefs.h <<\_ACEOF
41725 #define HAVE_GETHOSTBYNAME 1
41726 _ACEOF
41727
41728 fi
41729
41730       fi
41731
41732 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41733 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41734 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41735   echo $ECHO_N "(cached) $ECHO_C" >&6
41736 else
41737
41738                 ac_ext=cpp
41739 ac_cpp='$CXXCPP $CPPFLAGS'
41740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41743
41744
41745         cat >conftest.$ac_ext <<_ACEOF
41746 /* confdefs.h.  */
41747 _ACEOF
41748 cat confdefs.h >>conftest.$ac_ext
41749 cat >>conftest.$ac_ext <<_ACEOF
41750 /* end confdefs.h.  */
41751 #include <netdb.h>
41752 int
41753 main ()
41754 {
41755
41756                 char *name;
41757                 char *proto;
41758                 struct servent *se, *res;
41759                 char buffer[2048];
41760                 int buflen = 2048;
41761                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41762
41763   ;
41764   return 0;
41765 }
41766 _ACEOF
41767 rm -f conftest.$ac_objext
41768 if { (ac_try="$ac_compile"
41769 case "(($ac_try" in
41770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41771   *) ac_try_echo=$ac_try;;
41772 esac
41773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41774   (eval "$ac_compile") 2>conftest.er1
41775   ac_status=$?
41776   grep -v '^ *+' conftest.er1 >conftest.err
41777   rm -f conftest.er1
41778   cat conftest.err >&5
41779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780   (exit $ac_status); } && {
41781          test -z "$ac_cxx_werror_flag" ||
41782          test ! -s conftest.err
41783        } && test -s conftest.$ac_objext; then
41784   ac_cv_func_which_getservbyname_r=six
41785 else
41786   echo "$as_me: failed program was:" >&5
41787 sed 's/^/| /' conftest.$ac_ext >&5
41788
41789
41790                 cat >conftest.$ac_ext <<_ACEOF
41791 /* confdefs.h.  */
41792 _ACEOF
41793 cat confdefs.h >>conftest.$ac_ext
41794 cat >>conftest.$ac_ext <<_ACEOF
41795 /* end confdefs.h.  */
41796 #include <netdb.h>
41797 int
41798 main ()
41799 {
41800
41801                         char *name;
41802                         char *proto;
41803                         struct servent *se;
41804                         char buffer[2048];
41805                         int buflen = 2048;
41806                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41807
41808   ;
41809   return 0;
41810 }
41811 _ACEOF
41812 rm -f conftest.$ac_objext
41813 if { (ac_try="$ac_compile"
41814 case "(($ac_try" in
41815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41816   *) ac_try_echo=$ac_try;;
41817 esac
41818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41819   (eval "$ac_compile") 2>conftest.er1
41820   ac_status=$?
41821   grep -v '^ *+' conftest.er1 >conftest.err
41822   rm -f conftest.er1
41823   cat conftest.err >&5
41824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825   (exit $ac_status); } && {
41826          test -z "$ac_cxx_werror_flag" ||
41827          test ! -s conftest.err
41828        } && test -s conftest.$ac_objext; then
41829   ac_cv_func_which_getservbyname_r=five
41830 else
41831   echo "$as_me: failed program was:" >&5
41832 sed 's/^/| /' conftest.$ac_ext >&5
41833
41834
41835                         cat >conftest.$ac_ext <<_ACEOF
41836 /* confdefs.h.  */
41837 _ACEOF
41838 cat confdefs.h >>conftest.$ac_ext
41839 cat >>conftest.$ac_ext <<_ACEOF
41840 /* end confdefs.h.  */
41841 #include <netdb.h>
41842 int
41843 main ()
41844 {
41845
41846                                 char *name;
41847                                 char *proto;
41848                                 struct servent *se;
41849                                 struct servent_data data;
41850                                 (void) getservbyname_r(name, proto, se, &data);
41851
41852   ;
41853   return 0;
41854 }
41855 _ACEOF
41856 rm -f conftest.$ac_objext
41857 if { (ac_try="$ac_compile"
41858 case "(($ac_try" in
41859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41860   *) ac_try_echo=$ac_try;;
41861 esac
41862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41863   (eval "$ac_compile") 2>conftest.er1
41864   ac_status=$?
41865   grep -v '^ *+' conftest.er1 >conftest.err
41866   rm -f conftest.er1
41867   cat conftest.err >&5
41868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41869   (exit $ac_status); } && {
41870          test -z "$ac_cxx_werror_flag" ||
41871          test ! -s conftest.err
41872        } && test -s conftest.$ac_objext; then
41873   ac_cv_func_which_getservbyname_r=four
41874 else
41875   echo "$as_me: failed program was:" >&5
41876 sed 's/^/| /' conftest.$ac_ext >&5
41877
41878         ac_cv_func_which_getservbyname_r=no
41879
41880 fi
41881
41882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41883
41884
41885 fi
41886
41887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41888
41889
41890 fi
41891
41892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41893         ac_ext=c
41894 ac_cpp='$CPP $CPPFLAGS'
41895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41898
41899
41900
41901 fi
41902 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41903 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41904
41905 if test $ac_cv_func_which_getservbyname_r = six; then
41906   cat >>confdefs.h <<\_ACEOF
41907 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41908 _ACEOF
41909
41910 elif test $ac_cv_func_which_getservbyname_r = five; then
41911   cat >>confdefs.h <<\_ACEOF
41912 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41913 _ACEOF
41914
41915 elif test $ac_cv_func_which_getservbyname_r = four; then
41916   cat >>confdefs.h <<\_ACEOF
41917 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41918 _ACEOF
41919
41920 fi
41921
41922
41923       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41924               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41925
41926 for ac_func in getservbyname
41927 do
41928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41932   echo $ECHO_N "(cached) $ECHO_C" >&6
41933 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41942 #define $ac_func innocuous_$ac_func
41943
41944 /* System header to define __stub macros and hopefully few prototypes,
41945     which can conflict with char $ac_func (); below.
41946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41947     <limits.h> exists even on freestanding compilers.  */
41948
41949 #ifdef __STDC__
41950 # include <limits.h>
41951 #else
41952 # include <assert.h>
41953 #endif
41954
41955 #undef $ac_func
41956
41957 /* Override any GCC internal prototype to avoid an error.
41958    Use char because int might match the return type of a GCC
41959    builtin and then its argument prototype would still apply.  */
41960 #ifdef __cplusplus
41961 extern "C"
41962 #endif
41963 char $ac_func ();
41964 /* The GNU C library defines this for functions which it implements
41965     to always fail with ENOSYS.  Some functions are actually named
41966     something starting with __ and the normal name is an alias.  */
41967 #if defined __stub_$ac_func || defined __stub___$ac_func
41968 choke me
41969 #endif
41970
41971 int
41972 main ()
41973 {
41974 return $ac_func ();
41975   ;
41976   return 0;
41977 }
41978 _ACEOF
41979 rm -f conftest.$ac_objext conftest$ac_exeext
41980 if { (ac_try="$ac_link"
41981 case "(($ac_try" in
41982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41983   *) ac_try_echo=$ac_try;;
41984 esac
41985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41986   (eval "$ac_link") 2>conftest.er1
41987   ac_status=$?
41988   grep -v '^ *+' conftest.er1 >conftest.err
41989   rm -f conftest.er1
41990   cat conftest.err >&5
41991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41992   (exit $ac_status); } && {
41993          test -z "$ac_c_werror_flag" ||
41994          test ! -s conftest.err
41995        } && test -s conftest$ac_exeext &&
41996        $as_test_x conftest$ac_exeext; then
41997   eval "$as_ac_var=yes"
41998 else
41999   echo "$as_me: failed program was:" >&5
42000 sed 's/^/| /' conftest.$ac_ext >&5
42001
42002         eval "$as_ac_var=no"
42003 fi
42004
42005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42006       conftest$ac_exeext conftest.$ac_ext
42007 fi
42008 ac_res=`eval echo '${'$as_ac_var'}'`
42009                { echo "$as_me:$LINENO: result: $ac_res" >&5
42010 echo "${ECHO_T}$ac_res" >&6; }
42011 if test `eval echo '${'$as_ac_var'}'` = yes; then
42012   cat >>confdefs.h <<_ACEOF
42013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42014 _ACEOF
42015   cat >>confdefs.h <<\_ACEOF
42016 #define HAVE_GETSERVBYNAME 1
42017 _ACEOF
42018
42019 fi
42020 done
42021
42022       fi
42023
42024 if test "$wxUSE_THREADS" = "yes"; then
42025   cat >>confdefs.h <<\_ACEOF
42026 #define wxUSE_THREADS 1
42027 _ACEOF
42028
42029
42030   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42031 else
42032       if test "$wx_cv_func_strtok_r" = "yes"; then
42033     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42034 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
42035     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42036         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42037         { echo "$as_me:$LINENO: result: yes" >&5
42038 echo "${ECHO_T}yes" >&6; }
42039     else
42040         { echo "$as_me:$LINENO: result: no" >&5
42041 echo "${ECHO_T}no" >&6; }
42042     fi
42043   fi
42044 fi
42045
42046 if test "$WXGTK2" = 1 ; then
42047   cat >>confdefs.h <<_ACEOF
42048 #define __WXGTK20__ $WXGTK2
42049 _ACEOF
42050
42051   WXGTK12=1
42052 fi
42053
42054 if test "$WXGTK12" = 1 ; then
42055   cat >>confdefs.h <<_ACEOF
42056 #define __WXGTK12__ $WXGTK12
42057 _ACEOF
42058
42059 fi
42060
42061 if test "$WXGTK127" = 1 ; then
42062   cat >>confdefs.h <<_ACEOF
42063 #define __WXGTK127__ $WXGTK127
42064 _ACEOF
42065
42066 fi
42067
42068 if test "$WXGPE" = 1 ; then
42069   cat >>confdefs.h <<_ACEOF
42070 #define __WXGPE__ $WXGPE
42071 _ACEOF
42072
42073 fi
42074
42075 DEBUG_CFLAGS=
42076 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42077                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42078 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
42079 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
42080     DEBUG_CFLAGS="-g"
42081 fi
42082
42083 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42084     wxUSE_DEBUG_INFO=yes
42085     if test "$GCC" = yes; then
42086         DEBUG_CFLAGS="-ggdb"
42087     fi
42088 fi
42089
42090 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
42091     if test "$wxUSE_GTK" = 1 ; then
42092         if test "x$wxGTK_VERSION" = "x1" ; then
42093             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42094         fi
42095     fi
42096 fi
42097
42098 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42099     cat >>confdefs.h <<\_ACEOF
42100 #define wxUSE_MEMORY_TRACING 1
42101 _ACEOF
42102
42103     cat >>confdefs.h <<\_ACEOF
42104 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42105 _ACEOF
42106
42107     cat >>confdefs.h <<\_ACEOF
42108 #define wxUSE_DEBUG_NEW_ALWAYS 1
42109 _ACEOF
42110
42111     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42112 fi
42113
42114 if test "$wxUSE_DMALLOC" = "yes" ; then
42115     DMALLOC_LIBS="-ldmallocthcxx"
42116 fi
42117
42118 PROFILE_FLAGS=
42119 if test "$wxUSE_PROFILE" = "yes" ; then
42120     PROFILE_FLAGS=" -pg"
42121 fi
42122
42123 if test "$GCC" = "yes" ; then
42124     if test "$wxUSE_NO_RTTI" = "yes" ; then
42125                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
42126     fi
42127     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42128         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42129     fi
42130     if test "$wxUSE_PERMISSIVE" = "yes" ; then
42131         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42132     fi
42133
42134                                                 case "${host}" in
42135       powerpc*-*-aix* )
42136         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42137         ;;
42138       *-hppa* )
42139         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42140         ;;
42141     esac
42142 fi
42143
42144 OPTIMISE_CFLAGS=
42145 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
42146                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42147 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
42148 else
42149     if test "$wxUSE_OPTIMISE" = "no" ; then
42150         if test "$GCC" = yes ; then
42151                                     OPTIMISE_CFLAGS="-O0"
42152         fi
42153     else
42154         if test "$GCC" = yes ; then
42155             case "${host}" in
42156                 *-pc-os2_emx | *-pc-os2-emx )
42157                                                             OPTIMISE_CFLAGS="-O2"
42158                 ;;
42159                 *)
42160                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42161                 ;;
42162             esac
42163         else
42164             OPTIMISE_CFLAGS="-O"
42165         fi
42166     fi
42167 fi
42168
42169
42170 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
42171     cat >>confdefs.h <<\_ACEOF
42172 #define WXWIN_COMPATIBILITY_2_6 1
42173 _ACEOF
42174
42175
42176     WXWIN_COMPATIBILITY_2_8="yes"
42177 fi
42178
42179 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42180     cat >>confdefs.h <<\_ACEOF
42181 #define WXWIN_COMPATIBILITY_2_8 1
42182 _ACEOF
42183
42184 fi
42185
42186
42187 if test "$wxUSE_GUI" = "yes"; then
42188     cat >>confdefs.h <<\_ACEOF
42189 #define wxUSE_GUI 1
42190 _ACEOF
42191
42192
42193                                             fi
42194
42195
42196 if test "$wxUSE_UNIX" = "yes"; then
42197   cat >>confdefs.h <<\_ACEOF
42198 #define wxUSE_UNIX 1
42199 _ACEOF
42200
42201 fi
42202
42203
42204 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42205
42206     HAVE_DL_FUNCS=0
42207     HAVE_SHL_FUNCS=0
42208     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42209         if test "$USE_DOS" = 1; then
42210             HAVE_DL_FUNCS=0
42211         else
42212
42213 for ac_func in dlopen
42214 do
42215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42219   echo $ECHO_N "(cached) $ECHO_C" >&6
42220 else
42221   cat >conftest.$ac_ext <<_ACEOF
42222 /* confdefs.h.  */
42223 _ACEOF
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h.  */
42227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42229 #define $ac_func innocuous_$ac_func
42230
42231 /* System header to define __stub macros and hopefully few prototypes,
42232     which can conflict with char $ac_func (); below.
42233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42234     <limits.h> exists even on freestanding compilers.  */
42235
42236 #ifdef __STDC__
42237 # include <limits.h>
42238 #else
42239 # include <assert.h>
42240 #endif
42241
42242 #undef $ac_func
42243
42244 /* Override any GCC internal prototype to avoid an error.
42245    Use char because int might match the return type of a GCC
42246    builtin and then its argument prototype would still apply.  */
42247 #ifdef __cplusplus
42248 extern "C"
42249 #endif
42250 char $ac_func ();
42251 /* The GNU C library defines this for functions which it implements
42252     to always fail with ENOSYS.  Some functions are actually named
42253     something starting with __ and the normal name is an alias.  */
42254 #if defined __stub_$ac_func || defined __stub___$ac_func
42255 choke me
42256 #endif
42257
42258 int
42259 main ()
42260 {
42261 return $ac_func ();
42262   ;
42263   return 0;
42264 }
42265 _ACEOF
42266 rm -f conftest.$ac_objext conftest$ac_exeext
42267 if { (ac_try="$ac_link"
42268 case "(($ac_try" in
42269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42270   *) ac_try_echo=$ac_try;;
42271 esac
42272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42273   (eval "$ac_link") 2>conftest.er1
42274   ac_status=$?
42275   grep -v '^ *+' conftest.er1 >conftest.err
42276   rm -f conftest.er1
42277   cat conftest.err >&5
42278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279   (exit $ac_status); } && {
42280          test -z "$ac_c_werror_flag" ||
42281          test ! -s conftest.err
42282        } && test -s conftest$ac_exeext &&
42283        $as_test_x conftest$ac_exeext; then
42284   eval "$as_ac_var=yes"
42285 else
42286   echo "$as_me: failed program was:" >&5
42287 sed 's/^/| /' conftest.$ac_ext >&5
42288
42289         eval "$as_ac_var=no"
42290 fi
42291
42292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42293       conftest$ac_exeext conftest.$ac_ext
42294 fi
42295 ac_res=`eval echo '${'$as_ac_var'}'`
42296                { echo "$as_me:$LINENO: result: $ac_res" >&5
42297 echo "${ECHO_T}$ac_res" >&6; }
42298 if test `eval echo '${'$as_ac_var'}'` = yes; then
42299   cat >>confdefs.h <<_ACEOF
42300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42301 _ACEOF
42302
42303                 cat >>confdefs.h <<\_ACEOF
42304 #define HAVE_DLOPEN 1
42305 _ACEOF
42306
42307                 HAVE_DL_FUNCS=1
42308
42309 else
42310
42311                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
42313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42314   echo $ECHO_N "(cached) $ECHO_C" >&6
42315 else
42316   ac_check_lib_save_LIBS=$LIBS
42317 LIBS="-ldl  $LIBS"
42318 cat >conftest.$ac_ext <<_ACEOF
42319 /* confdefs.h.  */
42320 _ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h.  */
42324
42325 /* Override any GCC internal prototype to avoid an error.
42326    Use char because int might match the return type of a GCC
42327    builtin and then its argument prototype would still apply.  */
42328 #ifdef __cplusplus
42329 extern "C"
42330 #endif
42331 char dlopen ();
42332 int
42333 main ()
42334 {
42335 return dlopen ();
42336   ;
42337   return 0;
42338 }
42339 _ACEOF
42340 rm -f conftest.$ac_objext conftest$ac_exeext
42341 if { (ac_try="$ac_link"
42342 case "(($ac_try" in
42343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42344   *) ac_try_echo=$ac_try;;
42345 esac
42346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42347   (eval "$ac_link") 2>conftest.er1
42348   ac_status=$?
42349   grep -v '^ *+' conftest.er1 >conftest.err
42350   rm -f conftest.er1
42351   cat conftest.err >&5
42352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353   (exit $ac_status); } && {
42354          test -z "$ac_c_werror_flag" ||
42355          test ! -s conftest.err
42356        } && test -s conftest$ac_exeext &&
42357        $as_test_x conftest$ac_exeext; then
42358   ac_cv_lib_dl_dlopen=yes
42359 else
42360   echo "$as_me: failed program was:" >&5
42361 sed 's/^/| /' conftest.$ac_ext >&5
42362
42363         ac_cv_lib_dl_dlopen=no
42364 fi
42365
42366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42367       conftest$ac_exeext conftest.$ac_ext
42368 LIBS=$ac_check_lib_save_LIBS
42369 fi
42370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
42372 if test $ac_cv_lib_dl_dlopen = yes; then
42373
42374                                 cat >>confdefs.h <<\_ACEOF
42375 #define HAVE_DLOPEN 1
42376 _ACEOF
42377
42378                                 HAVE_DL_FUNCS=1
42379                                 DL_LINK=" -ldl$DL_LINK"
42380
42381 else
42382
42383
42384 for ac_func in shl_load
42385 do
42386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42390   echo $ECHO_N "(cached) $ECHO_C" >&6
42391 else
42392   cat >conftest.$ac_ext <<_ACEOF
42393 /* confdefs.h.  */
42394 _ACEOF
42395 cat confdefs.h >>conftest.$ac_ext
42396 cat >>conftest.$ac_ext <<_ACEOF
42397 /* end confdefs.h.  */
42398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42400 #define $ac_func innocuous_$ac_func
42401
42402 /* System header to define __stub macros and hopefully few prototypes,
42403     which can conflict with char $ac_func (); below.
42404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42405     <limits.h> exists even on freestanding compilers.  */
42406
42407 #ifdef __STDC__
42408 # include <limits.h>
42409 #else
42410 # include <assert.h>
42411 #endif
42412
42413 #undef $ac_func
42414
42415 /* Override any GCC internal prototype to avoid an error.
42416    Use char because int might match the return type of a GCC
42417    builtin and then its argument prototype would still apply.  */
42418 #ifdef __cplusplus
42419 extern "C"
42420 #endif
42421 char $ac_func ();
42422 /* The GNU C library defines this for functions which it implements
42423     to always fail with ENOSYS.  Some functions are actually named
42424     something starting with __ and the normal name is an alias.  */
42425 #if defined __stub_$ac_func || defined __stub___$ac_func
42426 choke me
42427 #endif
42428
42429 int
42430 main ()
42431 {
42432 return $ac_func ();
42433   ;
42434   return 0;
42435 }
42436 _ACEOF
42437 rm -f conftest.$ac_objext conftest$ac_exeext
42438 if { (ac_try="$ac_link"
42439 case "(($ac_try" in
42440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42441   *) ac_try_echo=$ac_try;;
42442 esac
42443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42444   (eval "$ac_link") 2>conftest.er1
42445   ac_status=$?
42446   grep -v '^ *+' conftest.er1 >conftest.err
42447   rm -f conftest.er1
42448   cat conftest.err >&5
42449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42450   (exit $ac_status); } && {
42451          test -z "$ac_c_werror_flag" ||
42452          test ! -s conftest.err
42453        } && test -s conftest$ac_exeext &&
42454        $as_test_x conftest$ac_exeext; then
42455   eval "$as_ac_var=yes"
42456 else
42457   echo "$as_me: failed program was:" >&5
42458 sed 's/^/| /' conftest.$ac_ext >&5
42459
42460         eval "$as_ac_var=no"
42461 fi
42462
42463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42464       conftest$ac_exeext conftest.$ac_ext
42465 fi
42466 ac_res=`eval echo '${'$as_ac_var'}'`
42467                { echo "$as_me:$LINENO: result: $ac_res" >&5
42468 echo "${ECHO_T}$ac_res" >&6; }
42469 if test `eval echo '${'$as_ac_var'}'` = yes; then
42470   cat >>confdefs.h <<_ACEOF
42471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42472 _ACEOF
42473
42474                                                 cat >>confdefs.h <<\_ACEOF
42475 #define HAVE_SHL_LOAD 1
42476 _ACEOF
42477
42478                                                 HAVE_SHL_FUNCS=1
42479
42480 else
42481
42482                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42483 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
42484 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42485   echo $ECHO_N "(cached) $ECHO_C" >&6
42486 else
42487   ac_check_lib_save_LIBS=$LIBS
42488 LIBS="-lshl_load  $LIBS"
42489 cat >conftest.$ac_ext <<_ACEOF
42490 /* confdefs.h.  */
42491 _ACEOF
42492 cat confdefs.h >>conftest.$ac_ext
42493 cat >>conftest.$ac_ext <<_ACEOF
42494 /* end confdefs.h.  */
42495
42496 /* Override any GCC internal prototype to avoid an error.
42497    Use char because int might match the return type of a GCC
42498    builtin and then its argument prototype would still apply.  */
42499 #ifdef __cplusplus
42500 extern "C"
42501 #endif
42502 char dld ();
42503 int
42504 main ()
42505 {
42506 return dld ();
42507   ;
42508   return 0;
42509 }
42510 _ACEOF
42511 rm -f conftest.$ac_objext conftest$ac_exeext
42512 if { (ac_try="$ac_link"
42513 case "(($ac_try" in
42514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42515   *) ac_try_echo=$ac_try;;
42516 esac
42517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42518   (eval "$ac_link") 2>conftest.er1
42519   ac_status=$?
42520   grep -v '^ *+' conftest.er1 >conftest.err
42521   rm -f conftest.er1
42522   cat conftest.err >&5
42523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524   (exit $ac_status); } && {
42525          test -z "$ac_c_werror_flag" ||
42526          test ! -s conftest.err
42527        } && test -s conftest$ac_exeext &&
42528        $as_test_x conftest$ac_exeext; then
42529   ac_cv_lib_shl_load_dld=yes
42530 else
42531   echo "$as_me: failed program was:" >&5
42532 sed 's/^/| /' conftest.$ac_ext >&5
42533
42534         ac_cv_lib_shl_load_dld=no
42535 fi
42536
42537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42538       conftest$ac_exeext conftest.$ac_ext
42539 LIBS=$ac_check_lib_save_LIBS
42540 fi
42541 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42542 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
42543 if test $ac_cv_lib_shl_load_dld = yes; then
42544
42545                                                                 HAVE_SHL_FUNCS=1
42546                                                                 DL_LINK=" -ldld$DL_LINK"
42547
42548 fi
42549
42550
42551 fi
42552 done
42553
42554
42555 fi
42556
42557
42558 fi
42559 done
42560
42561
42562                         if test "$HAVE_DL_FUNCS" = 1; then
42563
42564 for ac_func in dlerror
42565 do
42566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42570   echo $ECHO_N "(cached) $ECHO_C" >&6
42571 else
42572   cat >conftest.$ac_ext <<_ACEOF
42573 /* confdefs.h.  */
42574 _ACEOF
42575 cat confdefs.h >>conftest.$ac_ext
42576 cat >>conftest.$ac_ext <<_ACEOF
42577 /* end confdefs.h.  */
42578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42580 #define $ac_func innocuous_$ac_func
42581
42582 /* System header to define __stub macros and hopefully few prototypes,
42583     which can conflict with char $ac_func (); below.
42584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42585     <limits.h> exists even on freestanding compilers.  */
42586
42587 #ifdef __STDC__
42588 # include <limits.h>
42589 #else
42590 # include <assert.h>
42591 #endif
42592
42593 #undef $ac_func
42594
42595 /* Override any GCC internal prototype to avoid an error.
42596    Use char because int might match the return type of a GCC
42597    builtin and then its argument prototype would still apply.  */
42598 #ifdef __cplusplus
42599 extern "C"
42600 #endif
42601 char $ac_func ();
42602 /* The GNU C library defines this for functions which it implements
42603     to always fail with ENOSYS.  Some functions are actually named
42604     something starting with __ and the normal name is an alias.  */
42605 #if defined __stub_$ac_func || defined __stub___$ac_func
42606 choke me
42607 #endif
42608
42609 int
42610 main ()
42611 {
42612 return $ac_func ();
42613   ;
42614   return 0;
42615 }
42616 _ACEOF
42617 rm -f conftest.$ac_objext conftest$ac_exeext
42618 if { (ac_try="$ac_link"
42619 case "(($ac_try" in
42620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42621   *) ac_try_echo=$ac_try;;
42622 esac
42623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42624   (eval "$ac_link") 2>conftest.er1
42625   ac_status=$?
42626   grep -v '^ *+' conftest.er1 >conftest.err
42627   rm -f conftest.er1
42628   cat conftest.err >&5
42629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42630   (exit $ac_status); } && {
42631          test -z "$ac_c_werror_flag" ||
42632          test ! -s conftest.err
42633        } && test -s conftest$ac_exeext &&
42634        $as_test_x conftest$ac_exeext; then
42635   eval "$as_ac_var=yes"
42636 else
42637   echo "$as_me: failed program was:" >&5
42638 sed 's/^/| /' conftest.$ac_ext >&5
42639
42640         eval "$as_ac_var=no"
42641 fi
42642
42643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42644       conftest$ac_exeext conftest.$ac_ext
42645 fi
42646 ac_res=`eval echo '${'$as_ac_var'}'`
42647                { echo "$as_me:$LINENO: result: $ac_res" >&5
42648 echo "${ECHO_T}$ac_res" >&6; }
42649 if test `eval echo '${'$as_ac_var'}'` = yes; then
42650   cat >>confdefs.h <<_ACEOF
42651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42652 _ACEOF
42653  cat >>confdefs.h <<\_ACEOF
42654 #define HAVE_DLERROR 1
42655 _ACEOF
42656
42657 else
42658
42659                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42660 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42661 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42662   echo $ECHO_N "(cached) $ECHO_C" >&6
42663 else
42664   ac_check_lib_save_LIBS=$LIBS
42665 LIBS="-ldl  $LIBS"
42666 cat >conftest.$ac_ext <<_ACEOF
42667 /* confdefs.h.  */
42668 _ACEOF
42669 cat confdefs.h >>conftest.$ac_ext
42670 cat >>conftest.$ac_ext <<_ACEOF
42671 /* end confdefs.h.  */
42672
42673 /* Override any GCC internal prototype to avoid an error.
42674    Use char because int might match the return type of a GCC
42675    builtin and then its argument prototype would still apply.  */
42676 #ifdef __cplusplus
42677 extern "C"
42678 #endif
42679 char dlerror ();
42680 int
42681 main ()
42682 {
42683 return dlerror ();
42684   ;
42685   return 0;
42686 }
42687 _ACEOF
42688 rm -f conftest.$ac_objext conftest$ac_exeext
42689 if { (ac_try="$ac_link"
42690 case "(($ac_try" in
42691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42692   *) ac_try_echo=$ac_try;;
42693 esac
42694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42695   (eval "$ac_link") 2>conftest.er1
42696   ac_status=$?
42697   grep -v '^ *+' conftest.er1 >conftest.err
42698   rm -f conftest.er1
42699   cat conftest.err >&5
42700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701   (exit $ac_status); } && {
42702          test -z "$ac_c_werror_flag" ||
42703          test ! -s conftest.err
42704        } && test -s conftest$ac_exeext &&
42705        $as_test_x conftest$ac_exeext; then
42706   ac_cv_lib_dl_dlerror=yes
42707 else
42708   echo "$as_me: failed program was:" >&5
42709 sed 's/^/| /' conftest.$ac_ext >&5
42710
42711         ac_cv_lib_dl_dlerror=no
42712 fi
42713
42714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42715       conftest$ac_exeext conftest.$ac_ext
42716 LIBS=$ac_check_lib_save_LIBS
42717 fi
42718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42719 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42720 if test $ac_cv_lib_dl_dlerror = yes; then
42721   cat >>confdefs.h <<\_ACEOF
42722 #define HAVE_DLERROR 1
42723 _ACEOF
42724
42725 fi
42726
42727
42728
42729 fi
42730 done
42731
42732             fi
42733         fi
42734
42735                 if test "$USE_DARWIN" = 1; then
42736                         HAVE_DL_FUNCS=1
42737         fi
42738
42739         if test "$HAVE_DL_FUNCS" = 0; then
42740             if test "$HAVE_SHL_FUNCS" = 0; then
42741               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42742                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42743 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42744                   wxUSE_DYNAMIC_LOADER=no
42745                   wxUSE_DYNLIB_CLASS=no
42746               else
42747                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42748 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42749               fi
42750             fi
42751         fi
42752     fi
42753 fi
42754
42755 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42756     cat >>confdefs.h <<\_ACEOF
42757 #define wxUSE_DYNAMIC_LOADER 1
42758 _ACEOF
42759
42760 fi
42761 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42762     cat >>confdefs.h <<\_ACEOF
42763 #define wxUSE_DYNLIB_CLASS 1
42764 _ACEOF
42765
42766 fi
42767
42768
42769
42770 if test "$wxUSE_PLUGINS" = "yes" ; then
42771     if test "$wxUSE_SHARED" = "no" ; then
42772         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42773 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42774         wxUSE_PLUGINS=no
42775     fi
42776     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42777         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42778 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42779         wxUSE_PLUGINS=no
42780     fi
42781     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42782         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42783 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42784         wxUSE_PLUGINS=no
42785     fi
42786     if test "$wxUSE_PLUGINS" = "yes" ; then
42787         cat >>confdefs.h <<\_ACEOF
42788 #define wxUSE_PLUGINS 1
42789 _ACEOF
42790
42791     fi
42792 fi
42793
42794
42795 if test "$wxUSE_FSWATCHER" = "yes"; then
42796                 if test "$wxUSE_MSW" != "1"; then
42797         if test "$wxUSE_UNIX" = "yes"; then
42798
42799 for ac_header in sys/inotify.h
42800 do
42801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42805   echo $ECHO_N "(cached) $ECHO_C" >&6
42806 else
42807   cat >conftest.$ac_ext <<_ACEOF
42808 /* confdefs.h.  */
42809 _ACEOF
42810 cat confdefs.h >>conftest.$ac_ext
42811 cat >>conftest.$ac_ext <<_ACEOF
42812 /* end confdefs.h.  */
42813 $ac_includes_default
42814
42815 #include <$ac_header>
42816 _ACEOF
42817 rm -f conftest.$ac_objext
42818 if { (ac_try="$ac_compile"
42819 case "(($ac_try" in
42820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42821   *) ac_try_echo=$ac_try;;
42822 esac
42823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42824   (eval "$ac_compile") 2>conftest.er1
42825   ac_status=$?
42826   grep -v '^ *+' conftest.er1 >conftest.err
42827   rm -f conftest.er1
42828   cat conftest.err >&5
42829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830   (exit $ac_status); } && {
42831          test -z "$ac_c_werror_flag" ||
42832          test ! -s conftest.err
42833        } && test -s conftest.$ac_objext; then
42834   eval "$as_ac_Header=yes"
42835 else
42836   echo "$as_me: failed program was:" >&5
42837 sed 's/^/| /' conftest.$ac_ext >&5
42838
42839         eval "$as_ac_Header=no"
42840 fi
42841
42842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42843 fi
42844 ac_res=`eval echo '${'$as_ac_Header'}'`
42845                { echo "$as_me:$LINENO: result: $ac_res" >&5
42846 echo "${ECHO_T}$ac_res" >&6; }
42847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42848   cat >>confdefs.h <<_ACEOF
42849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42850 _ACEOF
42851
42852 fi
42853
42854 done
42855
42856             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
42857                 cat >>confdefs.h <<\_ACEOF
42858 #define wxHAS_INOTIFY 1
42859 _ACEOF
42860
42861             else
42862
42863 for ac_header in sys/event.h
42864 do
42865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42869   echo $ECHO_N "(cached) $ECHO_C" >&6
42870 else
42871   cat >conftest.$ac_ext <<_ACEOF
42872 /* confdefs.h.  */
42873 _ACEOF
42874 cat confdefs.h >>conftest.$ac_ext
42875 cat >>conftest.$ac_ext <<_ACEOF
42876 /* end confdefs.h.  */
42877 $ac_includes_default
42878
42879 #include <$ac_header>
42880 _ACEOF
42881 rm -f conftest.$ac_objext
42882 if { (ac_try="$ac_compile"
42883 case "(($ac_try" in
42884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42885   *) ac_try_echo=$ac_try;;
42886 esac
42887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42888   (eval "$ac_compile") 2>conftest.er1
42889   ac_status=$?
42890   grep -v '^ *+' conftest.er1 >conftest.err
42891   rm -f conftest.er1
42892   cat conftest.err >&5
42893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894   (exit $ac_status); } && {
42895          test -z "$ac_c_werror_flag" ||
42896          test ! -s conftest.err
42897        } && test -s conftest.$ac_objext; then
42898   eval "$as_ac_Header=yes"
42899 else
42900   echo "$as_me: failed program was:" >&5
42901 sed 's/^/| /' conftest.$ac_ext >&5
42902
42903         eval "$as_ac_Header=no"
42904 fi
42905
42906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42907 fi
42908 ac_res=`eval echo '${'$as_ac_Header'}'`
42909                { echo "$as_me:$LINENO: result: $ac_res" >&5
42910 echo "${ECHO_T}$ac_res" >&6; }
42911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42912   cat >>confdefs.h <<_ACEOF
42913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42914 _ACEOF
42915
42916 fi
42917
42918 done
42919
42920                 if test "$ac_cv_header_sys_event_h" = "yes"; then
42921                     cat >>confdefs.h <<\_ACEOF
42922 #define wxHAS_KQUEUE 1
42923 _ACEOF
42924
42925                 else
42926                     wxUSE_FSWATCHER=no
42927                 fi
42928             fi
42929         else
42930             wxUSE_FSWATCHER=no
42931         fi
42932     fi
42933
42934     if test "$wxUSE_FSWATCHER" = "yes"; then
42935         cat >>confdefs.h <<\_ACEOF
42936 #define wxUSE_FSWATCHER 1
42937 _ACEOF
42938
42939         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
42940     else
42941         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
42942 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
42943     fi
42944 fi
42945
42946
42947 if test "$wxUSE_STL" = "yes"; then
42948   cat >>confdefs.h <<\_ACEOF
42949 #define wxUSE_STL 1
42950 _ACEOF
42951
42952 fi
42953
42954 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42955   cat >>confdefs.h <<\_ACEOF
42956 #define wxUSE_EXTENDED_RTTI 1
42957 _ACEOF
42958
42959 fi
42960
42961 if test "$wxUSE_ANY" = "yes"; then
42962     cat >>confdefs.h <<\_ACEOF
42963 #define wxUSE_ANY 1
42964 _ACEOF
42965
42966 fi
42967
42968 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42969   cat >>confdefs.h <<\_ACEOF
42970 #define wxUSE_APPLE_IEEE 1
42971 _ACEOF
42972
42973 fi
42974
42975 if test "$wxUSE_TIMER" = "yes"; then
42976   cat >>confdefs.h <<\_ACEOF
42977 #define wxUSE_TIMER 1
42978 _ACEOF
42979
42980 fi
42981
42982 if test "$USE_UNIX" = 1 ; then
42983         if test "$wxUSE_MGL" != 1; then
42984                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42985 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42986 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42987   echo $ECHO_N "(cached) $ECHO_C" >&6
42988 else
42989
42990             cat >conftest.$ac_ext <<_ACEOF
42991 /* confdefs.h.  */
42992 _ACEOF
42993 cat confdefs.h >>conftest.$ac_ext
42994 cat >>conftest.$ac_ext <<_ACEOF
42995 /* end confdefs.h.  */
42996
42997                     #include <sys/ioctl.h>
42998                     #include <sys/soundcard.h>
42999
43000 int
43001 main ()
43002 {
43003
43004                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43005
43006   ;
43007   return 0;
43008 }
43009 _ACEOF
43010 rm -f conftest.$ac_objext conftest$ac_exeext
43011 if { (ac_try="$ac_link"
43012 case "(($ac_try" in
43013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43014   *) ac_try_echo=$ac_try;;
43015 esac
43016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43017   (eval "$ac_link") 2>conftest.er1
43018   ac_status=$?
43019   grep -v '^ *+' conftest.er1 >conftest.err
43020   rm -f conftest.er1
43021   cat conftest.err >&5
43022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023   (exit $ac_status); } && {
43024          test -z "$ac_c_werror_flag" ||
43025          test ! -s conftest.err
43026        } && test -s conftest$ac_exeext &&
43027        $as_test_x conftest$ac_exeext; then
43028   ac_cv_header_sys_soundcard=yes
43029 else
43030   echo "$as_me: failed program was:" >&5
43031 sed 's/^/| /' conftest.$ac_ext >&5
43032
43033
43034                     saveLibs="$LIBS"
43035                     LIBS="$saveLibs -lossaudio"
43036                     cat >conftest.$ac_ext <<_ACEOF
43037 /* confdefs.h.  */
43038 _ACEOF
43039 cat confdefs.h >>conftest.$ac_ext
43040 cat >>conftest.$ac_ext <<_ACEOF
43041 /* end confdefs.h.  */
43042
43043                             #include <sys/ioctl.h>
43044                             #include <sys/soundcard.h>
43045
43046 int
43047 main ()
43048 {
43049
43050                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43051
43052   ;
43053   return 0;
43054 }
43055 _ACEOF
43056 rm -f conftest.$ac_objext conftest$ac_exeext
43057 if { (ac_try="$ac_link"
43058 case "(($ac_try" in
43059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43060   *) ac_try_echo=$ac_try;;
43061 esac
43062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43063   (eval "$ac_link") 2>conftest.er1
43064   ac_status=$?
43065   grep -v '^ *+' conftest.er1 >conftest.err
43066   rm -f conftest.er1
43067   cat conftest.err >&5
43068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069   (exit $ac_status); } && {
43070          test -z "$ac_c_werror_flag" ||
43071          test ! -s conftest.err
43072        } && test -s conftest$ac_exeext &&
43073        $as_test_x conftest$ac_exeext; then
43074   ac_cv_header_sys_soundcard=yes
43075 else
43076   echo "$as_me: failed program was:" >&5
43077 sed 's/^/| /' conftest.$ac_ext >&5
43078
43079
43080                             LIBS="$saveLibs"
43081                             ac_cv_header_sys_soundcard=no
43082
43083
43084 fi
43085
43086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43087       conftest$ac_exeext conftest.$ac_ext
43088
43089
43090 fi
43091
43092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43093       conftest$ac_exeext conftest.$ac_ext
43094
43095 fi
43096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43097 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
43098     fi
43099
43100     if test "$ac_cv_header_sys_soundcard" = "yes"; then
43101         cat >>confdefs.h <<\_ACEOF
43102 #define HAVE_SYS_SOUNDCARD_H 1
43103 _ACEOF
43104
43105     fi
43106 fi
43107
43108 WITH_PLUGIN_SDL=0
43109 if test "$wxUSE_SOUND" = "yes"; then
43110   if test "$USE_UNIX" = 1 ; then
43111     if test "$wxUSE_LIBSDL" != "no"; then
43112
43113 # Check whether --with-sdl-prefix was given.
43114 if test "${with_sdl_prefix+set}" = set; then
43115   withval=$with_sdl_prefix; sdl_prefix="$withval"
43116 else
43117   sdl_prefix=""
43118 fi
43119
43120
43121 # Check whether --with-sdl-exec-prefix was given.
43122 if test "${with_sdl_exec_prefix+set}" = set; then
43123   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
43124 else
43125   sdl_exec_prefix=""
43126 fi
43127
43128 # Check whether --enable-sdltest was given.
43129 if test "${enable_sdltest+set}" = set; then
43130   enableval=$enable_sdltest;
43131 else
43132   enable_sdltest=yes
43133 fi
43134
43135
43136   if test x$sdl_exec_prefix != x ; then
43137     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43138     if test x${SDL_CONFIG+set} != xset ; then
43139       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43140     fi
43141   fi
43142   if test x$sdl_prefix != x ; then
43143     sdl_args="$sdl_args --prefix=$sdl_prefix"
43144     if test x${SDL_CONFIG+set} != xset ; then
43145       SDL_CONFIG=$sdl_prefix/bin/sdl-config
43146     fi
43147   fi
43148
43149   if test "x$prefix" != xNONE; then
43150     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43151   fi
43152   # Extract the first word of "sdl-config", so it can be a program name with args.
43153 set dummy sdl-config; ac_word=$2
43154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43156 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43157   echo $ECHO_N "(cached) $ECHO_C" >&6
43158 else
43159   case $SDL_CONFIG in
43160   [\\/]* | ?:[\\/]*)
43161   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43162   ;;
43163   *)
43164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43165 for as_dir in $PATH
43166 do
43167   IFS=$as_save_IFS
43168   test -z "$as_dir" && as_dir=.
43169   for ac_exec_ext in '' $ac_executable_extensions; do
43170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43171     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43173     break 2
43174   fi
43175 done
43176 done
43177 IFS=$as_save_IFS
43178
43179   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43180   ;;
43181 esac
43182 fi
43183 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43184 if test -n "$SDL_CONFIG"; then
43185   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43186 echo "${ECHO_T}$SDL_CONFIG" >&6; }
43187 else
43188   { echo "$as_me:$LINENO: result: no" >&5
43189 echo "${ECHO_T}no" >&6; }
43190 fi
43191
43192
43193   min_sdl_version=1.2.0
43194   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43195 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
43196   no_sdl=""
43197   if test "$SDL_CONFIG" = "no" ; then
43198     no_sdl=yes
43199   else
43200     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43201     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43202
43203     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43204            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43205     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43206            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43207     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43208            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43209     if test "x$enable_sdltest" = "xyes" ; then
43210       ac_save_CFLAGS="$CFLAGS"
43211       ac_save_CXXFLAGS="$CXXFLAGS"
43212       ac_save_LIBS="$LIBS"
43213       CFLAGS="$CFLAGS $SDL_CFLAGS"
43214       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43215       LIBS="$LIBS $SDL_LIBS"
43216       rm -f conf.sdltest
43217       if test "$cross_compiling" = yes; then
43218   echo $ac_n "cross compiling; assumed OK... $ac_c"
43219 else
43220   cat >conftest.$ac_ext <<_ACEOF
43221 /* confdefs.h.  */
43222 _ACEOF
43223 cat confdefs.h >>conftest.$ac_ext
43224 cat >>conftest.$ac_ext <<_ACEOF
43225 /* end confdefs.h.  */
43226
43227 #include <stdio.h>
43228 #include <stdlib.h>
43229 #include <string.h>
43230 #include "SDL.h"
43231
43232 char*
43233 my_strdup (char *str)
43234 {
43235   char *new_str;
43236
43237   if (str)
43238     {
43239       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43240       strcpy (new_str, str);
43241     }
43242   else
43243     new_str = NULL;
43244
43245   return new_str;
43246 }
43247
43248 int main (int argc, char *argv[])
43249 {
43250   int major, minor, micro;
43251   char *tmp_version;
43252
43253   /* This hangs on some systems (?)
43254   system ("touch conf.sdltest");
43255   */
43256   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43257
43258   /* HP/UX 9 (%@#!) writes to sscanf strings */
43259   tmp_version = my_strdup("$min_sdl_version");
43260   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43261      printf("%s, bad version string\n", "$min_sdl_version");
43262      exit(1);
43263    }
43264
43265    if (($sdl_major_version > major) ||
43266       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43267       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43268     {
43269       return 0;
43270     }
43271   else
43272     {
43273       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43274       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43275       printf("*** best to upgrade to the required version.\n");
43276       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43277       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43278       printf("*** config.cache before re-running configure\n");
43279       return 1;
43280     }
43281 }
43282
43283
43284 _ACEOF
43285 rm -f conftest$ac_exeext
43286 if { (ac_try="$ac_link"
43287 case "(($ac_try" in
43288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43289   *) ac_try_echo=$ac_try;;
43290 esac
43291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43292   (eval "$ac_link") 2>&5
43293   ac_status=$?
43294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43296   { (case "(($ac_try" in
43297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43298   *) ac_try_echo=$ac_try;;
43299 esac
43300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43301   (eval "$ac_try") 2>&5
43302   ac_status=$?
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); }; }; then
43305   :
43306 else
43307   echo "$as_me: program exited with status $ac_status" >&5
43308 echo "$as_me: failed program was:" >&5
43309 sed 's/^/| /' conftest.$ac_ext >&5
43310
43311 ( exit $ac_status )
43312 no_sdl=yes
43313 fi
43314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43315 fi
43316
43317
43318        CFLAGS="$ac_save_CFLAGS"
43319        CXXFLAGS="$ac_save_CXXFLAGS"
43320        LIBS="$ac_save_LIBS"
43321      fi
43322   fi
43323   if test "x$no_sdl" = x ; then
43324      { echo "$as_me:$LINENO: result: yes" >&5
43325 echo "${ECHO_T}yes" >&6; }
43326
43327                     EXTRALIBS_SDL="$SDL_LIBS"
43328                     CFLAGS="$SDL_CFLAGS $CFLAGS"
43329                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
43330                     cat >>confdefs.h <<\_ACEOF
43331 #define wxUSE_LIBSDL 1
43332 _ACEOF
43333
43334
43335   else
43336      { echo "$as_me:$LINENO: result: no" >&5
43337 echo "${ECHO_T}no" >&6; }
43338      if test "$SDL_CONFIG" = "no" ; then
43339        echo "*** The sdl-config script installed by SDL could not be found"
43340        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43341        echo "*** your path, or set the SDL_CONFIG environment variable to the"
43342        echo "*** full path to sdl-config."
43343      else
43344        if test -f conf.sdltest ; then
43345         :
43346        else
43347           echo "*** Could not run SDL test program, checking why..."
43348           CFLAGS="$CFLAGS $SDL_CFLAGS"
43349           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43350           LIBS="$LIBS $SDL_LIBS"
43351           cat >conftest.$ac_ext <<_ACEOF
43352 /* confdefs.h.  */
43353 _ACEOF
43354 cat confdefs.h >>conftest.$ac_ext
43355 cat >>conftest.$ac_ext <<_ACEOF
43356 /* end confdefs.h.  */
43357
43358 #include <stdio.h>
43359 #include "SDL.h"
43360
43361 int main(int argc, char *argv[])
43362 { return 0; }
43363 #undef  main
43364 #define main K_and_R_C_main
43365
43366 int
43367 main ()
43368 {
43369  return 0;
43370   ;
43371   return 0;
43372 }
43373 _ACEOF
43374 rm -f conftest.$ac_objext conftest$ac_exeext
43375 if { (ac_try="$ac_link"
43376 case "(($ac_try" in
43377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43378   *) ac_try_echo=$ac_try;;
43379 esac
43380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43381   (eval "$ac_link") 2>conftest.er1
43382   ac_status=$?
43383   grep -v '^ *+' conftest.er1 >conftest.err
43384   rm -f conftest.er1
43385   cat conftest.err >&5
43386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43387   (exit $ac_status); } && {
43388          test -z "$ac_c_werror_flag" ||
43389          test ! -s conftest.err
43390        } && test -s conftest$ac_exeext &&
43391        $as_test_x conftest$ac_exeext; then
43392    echo "*** The test program compiled, but did not run. This usually means"
43393           echo "*** that the run-time linker is not finding SDL or finding the wrong"
43394           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43395           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43396           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
43397           echo "*** is required on your system"
43398           echo "***"
43399           echo "*** If you have an old version installed, it is best to remove it, although"
43400           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43401 else
43402   echo "$as_me: failed program was:" >&5
43403 sed 's/^/| /' conftest.$ac_ext >&5
43404
43405          echo "*** The test program failed to compile or link. See the file config.log for the"
43406           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43407           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43408           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43409 fi
43410
43411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43412       conftest$ac_exeext conftest.$ac_ext
43413           CFLAGS="$ac_save_CFLAGS"
43414           CXXFLAGS="$ac_save_CXXFLAGS"
43415           LIBS="$ac_save_LIBS"
43416        fi
43417      fi
43418      SDL_CFLAGS=""
43419      SDL_LIBS=""
43420      wxUSE_LIBSDL="no"
43421   fi
43422
43423
43424   rm -f conf.sdltest
43425
43426       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43427         WITH_PLUGIN_SDL=1
43428       fi
43429     fi
43430   else
43431         if test "$wxUSE_MGL" = 1; then
43432         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43433 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43434         wxUSE_SOUND="no"
43435     fi
43436   fi
43437 fi
43438
43439 if test "$wxUSE_SOUND" = "yes"; then
43440   cat >>confdefs.h <<\_ACEOF
43441 #define wxUSE_SOUND 1
43442 _ACEOF
43443
43444   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43445 fi
43446
43447 if test "$WXGTK2" = 1; then
43448
43449
43450 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43451         if test -n "$ac_tool_prefix"; then
43452   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43453 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43456 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43457   echo $ECHO_N "(cached) $ECHO_C" >&6
43458 else
43459   case $PKG_CONFIG in
43460   [\\/]* | ?:[\\/]*)
43461   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43462   ;;
43463   *)
43464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43465 for as_dir in $PATH
43466 do
43467   IFS=$as_save_IFS
43468   test -z "$as_dir" && as_dir=.
43469   for ac_exec_ext in '' $ac_executable_extensions; do
43470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43471     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43473     break 2
43474   fi
43475 done
43476 done
43477 IFS=$as_save_IFS
43478
43479   ;;
43480 esac
43481 fi
43482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43483 if test -n "$PKG_CONFIG"; then
43484   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43485 echo "${ECHO_T}$PKG_CONFIG" >&6; }
43486 else
43487   { echo "$as_me:$LINENO: result: no" >&5
43488 echo "${ECHO_T}no" >&6; }
43489 fi
43490
43491
43492 fi
43493 if test -z "$ac_cv_path_PKG_CONFIG"; then
43494   ac_pt_PKG_CONFIG=$PKG_CONFIG
43495   # Extract the first word of "pkg-config", so it can be a program name with args.
43496 set dummy pkg-config; ac_word=$2
43497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43499 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43500   echo $ECHO_N "(cached) $ECHO_C" >&6
43501 else
43502   case $ac_pt_PKG_CONFIG in
43503   [\\/]* | ?:[\\/]*)
43504   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43505   ;;
43506   *)
43507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43508 for as_dir in $PATH
43509 do
43510   IFS=$as_save_IFS
43511   test -z "$as_dir" && as_dir=.
43512   for ac_exec_ext in '' $ac_executable_extensions; do
43513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43514     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43516     break 2
43517   fi
43518 done
43519 done
43520 IFS=$as_save_IFS
43521
43522   ;;
43523 esac
43524 fi
43525 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43526 if test -n "$ac_pt_PKG_CONFIG"; then
43527   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43528 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
43529 else
43530   { echo "$as_me:$LINENO: result: no" >&5
43531 echo "${ECHO_T}no" >&6; }
43532 fi
43533
43534   if test "x$ac_pt_PKG_CONFIG" = x; then
43535     PKG_CONFIG=""
43536   else
43537     case $cross_compiling:$ac_tool_warned in
43538 yes:)
43539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
43540 whose name does not start with the host triplet.  If you think this
43541 configuration is useful to you, please write to autoconf@gnu.org." >&5
43542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
43543 whose name does not start with the host triplet.  If you think this
43544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
43545 ac_tool_warned=yes ;;
43546 esac
43547     PKG_CONFIG=$ac_pt_PKG_CONFIG
43548   fi
43549 else
43550   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43551 fi
43552
43553 fi
43554 if test -n "$PKG_CONFIG"; then
43555         _pkg_min_version=0.9.0
43556         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43557 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
43558         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43559                 { echo "$as_me:$LINENO: result: yes" >&5
43560 echo "${ECHO_T}yes" >&6; }
43561         else
43562                 { echo "$as_me:$LINENO: result: no" >&5
43563 echo "${ECHO_T}no" >&6; }
43564                 PKG_CONFIG=""
43565         fi
43566
43567 fi
43568
43569     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43570
43571         if test "$wxUSE_GTKPRINT" = "yes" ; then
43572
43573
43574 pkg_failed=no
43575 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
43576 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
43577
43578 if test -n "$PKG_CONFIG"; then
43579     if test -n "$GTKPRINT_CFLAGS"; then
43580         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
43581     else
43582         if test -n "$PKG_CONFIG" && \
43583     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
43584   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43585   ac_status=$?
43586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587   (exit $ac_status); }; then
43588   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43589 else
43590   pkg_failed=yes
43591 fi
43592     fi
43593 else
43594         pkg_failed=untried
43595 fi
43596 if test -n "$PKG_CONFIG"; then
43597     if test -n "$GTKPRINT_LIBS"; then
43598         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
43599     else
43600         if test -n "$PKG_CONFIG" && \
43601     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
43602   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43603   ac_status=$?
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); }; then
43606   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43607 else
43608   pkg_failed=yes
43609 fi
43610     fi
43611 else
43612         pkg_failed=untried
43613 fi
43614
43615
43616
43617 if test $pkg_failed = yes; then
43618
43619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43620         _pkg_short_errors_supported=yes
43621 else
43622         _pkg_short_errors_supported=no
43623 fi
43624         if test $_pkg_short_errors_supported = yes; then
43625                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43626         else
43627                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43628         fi
43629         # Put the nasty error message in config.log where it belongs
43630         echo "$GTKPRINT_PKG_ERRORS" >&5
43631
43632
43633                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43634 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
43635                         wxUSE_GTKPRINT="no"
43636
43637
43638 elif test $pkg_failed = untried; then
43639
43640                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43641 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
43642                         wxUSE_GTKPRINT="no"
43643
43644
43645 else
43646         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
43647         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
43648         { echo "$as_me:$LINENO: result: yes" >&5
43649 echo "${ECHO_T}yes" >&6; }
43650
43651                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
43652                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
43653                         cat >>confdefs.h <<\_ACEOF
43654 #define wxUSE_GTKPRINT 1
43655 _ACEOF
43656
43657
43658 fi
43659         fi
43660
43661         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43662
43663
43664 pkg_failed=no
43665 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43666 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
43667
43668 if test -n "$PKG_CONFIG"; then
43669     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43670         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43671     else
43672         if test -n "$PKG_CONFIG" && \
43673     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43674   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43675   ac_status=$?
43676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677   (exit $ac_status); }; then
43678   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43679 else
43680   pkg_failed=yes
43681 fi
43682     fi
43683 else
43684         pkg_failed=untried
43685 fi
43686 if test -n "$PKG_CONFIG"; then
43687     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43688         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43689     else
43690         if test -n "$PKG_CONFIG" && \
43691     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43692   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43693   ac_status=$?
43694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43695   (exit $ac_status); }; then
43696   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43697 else
43698   pkg_failed=yes
43699 fi
43700     fi
43701 else
43702         pkg_failed=untried
43703 fi
43704
43705
43706
43707 if test $pkg_failed = yes; then
43708
43709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43710         _pkg_short_errors_supported=yes
43711 else
43712         _pkg_short_errors_supported=no
43713 fi
43714         if test $_pkg_short_errors_supported = yes; then
43715                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43716         else
43717                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43718         fi
43719         # Put the nasty error message in config.log where it belongs
43720         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
43721
43722
43723                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43724 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43725                         wxUSE_LIBGNOMEPRINT="no"
43726
43727
43728 elif test $pkg_failed = untried; then
43729
43730                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43731 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43732                         wxUSE_LIBGNOMEPRINT="no"
43733
43734
43735 else
43736         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43737         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43738         { echo "$as_me:$LINENO: result: yes" >&5
43739 echo "${ECHO_T}yes" >&6; }
43740
43741                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
43742                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43743                         cat >>confdefs.h <<\_ACEOF
43744 #define wxUSE_LIBGNOMEPRINT 1
43745 _ACEOF
43746
43747
43748 fi
43749         fi
43750     fi
43751
43752     if test "$wxUSE_MIMETYPE" = "yes" ; then
43753         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43754
43755
43756 pkg_failed=no
43757 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43758 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
43759
43760 if test -n "$PKG_CONFIG"; then
43761     if test -n "$GNOMEVFS_CFLAGS"; then
43762         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43763     else
43764         if test -n "$PKG_CONFIG" && \
43765     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43766   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43767   ac_status=$?
43768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43769   (exit $ac_status); }; then
43770   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43771 else
43772   pkg_failed=yes
43773 fi
43774     fi
43775 else
43776         pkg_failed=untried
43777 fi
43778 if test -n "$PKG_CONFIG"; then
43779     if test -n "$GNOMEVFS_LIBS"; then
43780         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43781     else
43782         if test -n "$PKG_CONFIG" && \
43783     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43784   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43785   ac_status=$?
43786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43787   (exit $ac_status); }; then
43788   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43789 else
43790   pkg_failed=yes
43791 fi
43792     fi
43793 else
43794         pkg_failed=untried
43795 fi
43796
43797
43798
43799 if test $pkg_failed = yes; then
43800
43801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43802         _pkg_short_errors_supported=yes
43803 else
43804         _pkg_short_errors_supported=no
43805 fi
43806         if test $_pkg_short_errors_supported = yes; then
43807                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43808         else
43809                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43810         fi
43811         # Put the nasty error message in config.log where it belongs
43812         echo "$GNOMEVFS_PKG_ERRORS" >&5
43813
43814
43815                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43816 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43817                         wxUSE_LIBGNOMEVFS="no"
43818
43819
43820 elif test $pkg_failed = untried; then
43821
43822                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43823 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43824                         wxUSE_LIBGNOMEVFS="no"
43825
43826
43827 else
43828         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43829         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43830         { echo "$as_me:$LINENO: result: yes" >&5
43831 echo "${ECHO_T}yes" >&6; }
43832
43833                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43834                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43835                         cat >>confdefs.h <<\_ACEOF
43836 #define wxUSE_LIBGNOMEVFS 1
43837 _ACEOF
43838
43839
43840 fi
43841         fi
43842     fi
43843
43844     if test "$wxUSE_LIBHILDON" = "yes" ; then
43845
43846 pkg_failed=no
43847 { echo "$as_me:$LINENO: checking for HILDON" >&5
43848 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43849
43850 if test -n "$PKG_CONFIG"; then
43851     if test -n "$HILDON_CFLAGS"; then
43852         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43853     else
43854         if test -n "$PKG_CONFIG" && \
43855     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43856   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43857   ac_status=$?
43858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859   (exit $ac_status); }; then
43860   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43861 else
43862   pkg_failed=yes
43863 fi
43864     fi
43865 else
43866         pkg_failed=untried
43867 fi
43868 if test -n "$PKG_CONFIG"; then
43869     if test -n "$HILDON_LIBS"; then
43870         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43871     else
43872         if test -n "$PKG_CONFIG" && \
43873     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43874   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43875   ac_status=$?
43876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877   (exit $ac_status); }; then
43878   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43879 else
43880   pkg_failed=yes
43881 fi
43882     fi
43883 else
43884         pkg_failed=untried
43885 fi
43886
43887
43888
43889 if test $pkg_failed = yes; then
43890
43891 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43892         _pkg_short_errors_supported=yes
43893 else
43894         _pkg_short_errors_supported=no
43895 fi
43896         if test $_pkg_short_errors_supported = yes; then
43897                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43898         else
43899                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43900         fi
43901         # Put the nasty error message in config.log where it belongs
43902         echo "$HILDON_PKG_ERRORS" >&5
43903
43904
43905                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43906 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43907                         wxUSE_LIBHILDON="no"
43908                         ac_hildon_lgpl=0
43909
43910
43911 elif test $pkg_failed = untried; then
43912
43913                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43914 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43915                         wxUSE_LIBHILDON="no"
43916                         ac_hildon_lgpl=0
43917
43918
43919 else
43920         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43921         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43922         { echo "$as_me:$LINENO: result: yes" >&5
43923 echo "${ECHO_T}yes" >&6; }
43924
43925                 EXTRALIBS_HILDON="$HILDON_LIBS"
43926                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43927                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43928                 cat >>confdefs.h <<\_ACEOF
43929 #define wxUSE_LIBHILDON 1
43930 _ACEOF
43931
43932                 ac_hildon_lgpl=1
43933
43934 fi
43935
43936         if test "$ac_hildon_lgpl" = 0 ; then
43937
43938 pkg_failed=no
43939 { echo "$as_me:$LINENO: checking for HILDON2" >&5
43940 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
43941
43942 if test -n "$PKG_CONFIG"; then
43943     if test -n "$HILDON2_CFLAGS"; then
43944         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
43945     else
43946         if test -n "$PKG_CONFIG" && \
43947     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
43948   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
43949   ac_status=$?
43950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951   (exit $ac_status); }; then
43952   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
43953 else
43954   pkg_failed=yes
43955 fi
43956     fi
43957 else
43958         pkg_failed=untried
43959 fi
43960 if test -n "$PKG_CONFIG"; then
43961     if test -n "$HILDON2_LIBS"; then
43962         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
43963     else
43964         if test -n "$PKG_CONFIG" && \
43965     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
43966   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
43967   ac_status=$?
43968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969   (exit $ac_status); }; then
43970   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
43971 else
43972   pkg_failed=yes
43973 fi
43974     fi
43975 else
43976         pkg_failed=untried
43977 fi
43978
43979
43980
43981 if test $pkg_failed = yes; then
43982
43983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43984         _pkg_short_errors_supported=yes
43985 else
43986         _pkg_short_errors_supported=no
43987 fi
43988         if test $_pkg_short_errors_supported = yes; then
43989                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
43990         else
43991                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
43992         fi
43993         # Put the nasty error message in config.log where it belongs
43994         echo "$HILDON2_PKG_ERRORS" >&5
43995
43996
43997                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
43998 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
43999                             wxUSE_LIBHILDON2="no"
44000
44001
44002 elif test $pkg_failed = untried; then
44003
44004                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44005 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44006                             wxUSE_LIBHILDON2="no"
44007
44008
44009 else
44010         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44011         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44012         { echo "$as_me:$LINENO: result: yes" >&5
44013 echo "${ECHO_T}yes" >&6; }
44014
44015                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44016                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44017                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44018                     cat >>confdefs.h <<\_ACEOF
44019 #define wxUSE_LIBHILDON2 1
44020 _ACEOF
44021
44022
44023 fi
44024         fi
44025     fi
44026 fi
44027
44028 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44029   cat >>confdefs.h <<\_ACEOF
44030 #define wxUSE_CMDLINE_PARSER 1
44031 _ACEOF
44032
44033 fi
44034
44035 if test "$wxUSE_STOPWATCH" = "yes"; then
44036   cat >>confdefs.h <<\_ACEOF
44037 #define wxUSE_STOPWATCH 1
44038 _ACEOF
44039
44040 fi
44041
44042 if test "$wxUSE_DATETIME" = "yes"; then
44043   cat >>confdefs.h <<\_ACEOF
44044 #define wxUSE_DATETIME 1
44045 _ACEOF
44046
44047 fi
44048
44049 if test "$wxUSE_FILE" = "yes"; then
44050   cat >>confdefs.h <<\_ACEOF
44051 #define wxUSE_FILE 1
44052 _ACEOF
44053
44054 fi
44055
44056 if test "$wxUSE_FFILE" = "yes"; then
44057   cat >>confdefs.h <<\_ACEOF
44058 #define wxUSE_FFILE 1
44059 _ACEOF
44060
44061 fi
44062
44063 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44064   if test "$wxUSE_STREAMS" != yes; then
44065     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44066 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44067     wxUSE_ARCHIVE_STREAMS=no
44068   else
44069     cat >>confdefs.h <<\_ACEOF
44070 #define wxUSE_ARCHIVE_STREAMS 1
44071 _ACEOF
44072
44073   fi
44074 fi
44075
44076 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44077   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44078     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44079 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44080   elif test "$wxUSE_ZLIB" = "no"; then
44081     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44082 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44083   else
44084     cat >>confdefs.h <<\_ACEOF
44085 #define wxUSE_ZIPSTREAM 1
44086 _ACEOF
44087
44088   fi
44089 fi
44090
44091 if test "$wxUSE_TARSTREAM" = "yes"; then
44092   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44093     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44094 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44095   else
44096     cat >>confdefs.h <<\_ACEOF
44097 #define wxUSE_TARSTREAM 1
44098 _ACEOF
44099
44100   fi
44101 fi
44102
44103 if test "$wxUSE_FILESYSTEM" = "yes"; then
44104   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44105     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44106 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44107     wxUSE_FILESYSTEM=no
44108   else
44109     cat >>confdefs.h <<\_ACEOF
44110 #define wxUSE_FILESYSTEM 1
44111 _ACEOF
44112
44113   fi
44114 fi
44115
44116 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44117   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44118     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44119 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44120   else
44121     cat >>confdefs.h <<\_ACEOF
44122 #define wxUSE_FS_ARCHIVE 1
44123 _ACEOF
44124
44125   fi
44126 fi
44127
44128 if test "$wxUSE_FS_ZIP" = "yes"; then
44129   if test "$wxUSE_FS_ARCHIVE" != yes; then
44130     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44131 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44132   else
44133     cat >>confdefs.h <<\_ACEOF
44134 #define wxUSE_FS_ZIP 1
44135 _ACEOF
44136
44137   fi
44138 fi
44139
44140 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44141   if test "$USE_UNIX" != 1; then
44142     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44143 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44144     wxUSE_ON_FATAL_EXCEPTION=no
44145   else
44146     cat >>confdefs.h <<\_ACEOF
44147 #define wxUSE_ON_FATAL_EXCEPTION 1
44148 _ACEOF
44149
44150   fi
44151 fi
44152
44153 if test "$wxUSE_STACKWALKER" = "yes"; then
44154     cat >>confdefs.h <<\_ACEOF
44155 #define wxUSE_STACKWALKER 1
44156 _ACEOF
44157
44158 fi
44159
44160 if test "$wxUSE_DEBUGREPORT" = "yes"; then
44161     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
44162         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44163 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
44164         wxUSE_DEBUGREPORT=no
44165     else
44166         cat >>confdefs.h <<\_ACEOF
44167 #define wxUSE_DEBUGREPORT 1
44168 _ACEOF
44169
44170         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44171             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44172         fi
44173     fi
44174 fi
44175
44176 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
44177   cat >>confdefs.h <<\_ACEOF
44178 #define wxUSE_SNGLINST_CHECKER 1
44179 _ACEOF
44180
44181 fi
44182
44183 if test "$wxUSE_BUSYINFO" = "yes"; then
44184   cat >>confdefs.h <<\_ACEOF
44185 #define wxUSE_BUSYINFO 1
44186 _ACEOF
44187
44188 fi
44189
44190 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
44191   cat >>confdefs.h <<\_ACEOF
44192 #define wxUSE_STD_IOSTREAM 1
44193 _ACEOF
44194
44195 fi
44196
44197 if test "$wxUSE_STD_STRING" = "yes"; then
44198   cat >>confdefs.h <<\_ACEOF
44199 #define wxUSE_STD_STRING 1
44200 _ACEOF
44201
44202 fi
44203
44204 if test "$wxUSE_STDPATHS" = "yes"; then
44205   cat >>confdefs.h <<\_ACEOF
44206 #define wxUSE_STDPATHS 1
44207 _ACEOF
44208
44209 fi
44210
44211 if test "$wxUSE_TEXTBUFFER" = "yes"; then
44212     cat >>confdefs.h <<\_ACEOF
44213 #define wxUSE_TEXTBUFFER 1
44214 _ACEOF
44215
44216 fi
44217
44218 if test "$wxUSE_TEXTFILE" = "yes"; then
44219   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
44220     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
44221 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
44222   else
44223     cat >>confdefs.h <<\_ACEOF
44224 #define wxUSE_TEXTFILE 1
44225 _ACEOF
44226
44227   fi
44228 fi
44229
44230 if test "$wxUSE_CONFIG" = "yes" ; then
44231   if test "$wxUSE_TEXTFILE" != "yes"; then
44232     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
44233 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
44234   else
44235     cat >>confdefs.h <<\_ACEOF
44236 #define wxUSE_CONFIG 1
44237 _ACEOF
44238
44239     cat >>confdefs.h <<\_ACEOF
44240 #define wxUSE_CONFIG_NATIVE 1
44241 _ACEOF
44242
44243     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
44244   fi
44245 fi
44246
44247 if test "$wxUSE_INTL" = "yes" ; then
44248   if test "$wxUSE_FILE" != "yes"; then
44249     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
44250 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
44251   else
44252     cat >>confdefs.h <<\_ACEOF
44253 #define wxUSE_INTL 1
44254 _ACEOF
44255
44256     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
44257     GUIDIST="$GUIDIST INTL_DIST"
44258   fi
44259 fi
44260
44261 if test "$wxUSE_XLOCALE" = "yes" ; then
44262     cat >>confdefs.h <<\_ACEOF
44263 #define wxUSE_XLOCALE 1
44264 _ACEOF
44265
44266     { echo "$as_me:$LINENO: checking for locale_t" >&5
44267 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
44268 if test "${ac_cv_type_locale_t+set}" = set; then
44269   echo $ECHO_N "(cached) $ECHO_C" >&6
44270 else
44271   cat >conftest.$ac_ext <<_ACEOF
44272 /* confdefs.h.  */
44273 _ACEOF
44274 cat confdefs.h >>conftest.$ac_ext
44275 cat >>conftest.$ac_ext <<_ACEOF
44276 /* end confdefs.h.  */
44277 #include <xlocale.h>
44278                     #include <locale.h>
44279
44280 typedef locale_t ac__type_new_;
44281 int
44282 main ()
44283 {
44284 if ((ac__type_new_ *) 0)
44285   return 0;
44286 if (sizeof (ac__type_new_))
44287   return 0;
44288   ;
44289   return 0;
44290 }
44291 _ACEOF
44292 rm -f conftest.$ac_objext
44293 if { (ac_try="$ac_compile"
44294 case "(($ac_try" in
44295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44296   *) ac_try_echo=$ac_try;;
44297 esac
44298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44299   (eval "$ac_compile") 2>conftest.er1
44300   ac_status=$?
44301   grep -v '^ *+' conftest.er1 >conftest.err
44302   rm -f conftest.er1
44303   cat conftest.err >&5
44304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44305   (exit $ac_status); } && {
44306          test -z "$ac_c_werror_flag" ||
44307          test ! -s conftest.err
44308        } && test -s conftest.$ac_objext; then
44309   ac_cv_type_locale_t=yes
44310 else
44311   echo "$as_me: failed program was:" >&5
44312 sed 's/^/| /' conftest.$ac_ext >&5
44313
44314         ac_cv_type_locale_t=no
44315 fi
44316
44317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44318 fi
44319 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
44320 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
44321 if test $ac_cv_type_locale_t = yes; then
44322
44323 cat >>confdefs.h <<_ACEOF
44324 #define HAVE_LOCALE_T 1
44325 _ACEOF
44326
44327
44328 fi
44329
44330 fi
44331
44332 if test "$wxUSE_LOG" = "yes"; then
44333   cat >>confdefs.h <<\_ACEOF
44334 #define wxUSE_LOG 1
44335 _ACEOF
44336
44337
44338     if test "$wxUSE_LOGGUI" = "yes"; then
44339       cat >>confdefs.h <<\_ACEOF
44340 #define wxUSE_LOGGUI 1
44341 _ACEOF
44342
44343     fi
44344
44345     if test "$wxUSE_LOGWINDOW" = "yes"; then
44346       cat >>confdefs.h <<\_ACEOF
44347 #define wxUSE_LOGWINDOW 1
44348 _ACEOF
44349
44350     fi
44351
44352     if test "$wxUSE_LOGDIALOG" = "yes"; then
44353       cat >>confdefs.h <<\_ACEOF
44354 #define wxUSE_LOG_DIALOG 1
44355 _ACEOF
44356
44357     fi
44358
44359         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
44360 fi
44361
44362 if test "$wxUSE_LONGLONG" = "yes"; then
44363   cat >>confdefs.h <<\_ACEOF
44364 #define wxUSE_LONGLONG 1
44365 _ACEOF
44366
44367 fi
44368
44369 if test "$wxUSE_GEOMETRY" = "yes"; then
44370   cat >>confdefs.h <<\_ACEOF
44371 #define wxUSE_GEOMETRY 1
44372 _ACEOF
44373
44374 fi
44375
44376 if test "$wxUSE_BASE64" = "yes"; then
44377   cat >>confdefs.h <<\_ACEOF
44378 #define wxUSE_BASE64 1
44379 _ACEOF
44380
44381 fi
44382
44383 if test "$wxUSE_STREAMS" = "yes" ; then
44384   cat >>confdefs.h <<\_ACEOF
44385 #define wxUSE_STREAMS 1
44386 _ACEOF
44387
44388 fi
44389
44390 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44391   cat >>confdefs.h <<\_ACEOF
44392 #define wxUSE_PRINTF_POS_PARAMS 1
44393 _ACEOF
44394
44395 fi
44396
44397 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
44398   cat >>confdefs.h <<\_ACEOF
44399 #define wxUSE_OBJC_UNIQUIFYING 1
44400 _ACEOF
44401
44402 fi
44403
44404
44405 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
44406     cat >>confdefs.h <<\_ACEOF
44407 #define wxUSE_CONSOLE_EVENTLOOP 1
44408 _ACEOF
44409
44410
44411     if test "$wxUSE_UNIX" = "yes"; then
44412         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
44413             cat >>confdefs.h <<\_ACEOF
44414 #define wxUSE_SELECT_DISPATCHER 1
44415 _ACEOF
44416
44417         fi
44418
44419         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
44420
44421 for ac_header in sys/epoll.h
44422 do
44423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44427   echo $ECHO_N "(cached) $ECHO_C" >&6
44428 else
44429   cat >conftest.$ac_ext <<_ACEOF
44430 /* confdefs.h.  */
44431 _ACEOF
44432 cat confdefs.h >>conftest.$ac_ext
44433 cat >>conftest.$ac_ext <<_ACEOF
44434 /* end confdefs.h.  */
44435 $ac_includes_default
44436
44437 #include <$ac_header>
44438 _ACEOF
44439 rm -f conftest.$ac_objext
44440 if { (ac_try="$ac_compile"
44441 case "(($ac_try" in
44442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44443   *) ac_try_echo=$ac_try;;
44444 esac
44445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44446   (eval "$ac_compile") 2>conftest.er1
44447   ac_status=$?
44448   grep -v '^ *+' conftest.er1 >conftest.err
44449   rm -f conftest.er1
44450   cat conftest.err >&5
44451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44452   (exit $ac_status); } && {
44453          test -z "$ac_c_werror_flag" ||
44454          test ! -s conftest.err
44455        } && test -s conftest.$ac_objext; then
44456   eval "$as_ac_Header=yes"
44457 else
44458   echo "$as_me: failed program was:" >&5
44459 sed 's/^/| /' conftest.$ac_ext >&5
44460
44461         eval "$as_ac_Header=no"
44462 fi
44463
44464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44465 fi
44466 ac_res=`eval echo '${'$as_ac_Header'}'`
44467                { echo "$as_me:$LINENO: result: $ac_res" >&5
44468 echo "${ECHO_T}$ac_res" >&6; }
44469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44470   cat >>confdefs.h <<_ACEOF
44471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44472 _ACEOF
44473
44474 fi
44475
44476 done
44477
44478             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
44479                 cat >>confdefs.h <<\_ACEOF
44480 #define wxUSE_EPOLL_DISPATCHER 1
44481 _ACEOF
44482
44483             else
44484                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
44485 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
44486             fi
44487         fi
44488     fi
44489 fi
44490
44491
44492
44493
44494 for ac_func in gettimeofday ftime
44495 do
44496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44500   echo $ECHO_N "(cached) $ECHO_C" >&6
44501 else
44502   cat >conftest.$ac_ext <<_ACEOF
44503 /* confdefs.h.  */
44504 _ACEOF
44505 cat confdefs.h >>conftest.$ac_ext
44506 cat >>conftest.$ac_ext <<_ACEOF
44507 /* end confdefs.h.  */
44508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44510 #define $ac_func innocuous_$ac_func
44511
44512 /* System header to define __stub macros and hopefully few prototypes,
44513     which can conflict with char $ac_func (); below.
44514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44515     <limits.h> exists even on freestanding compilers.  */
44516
44517 #ifdef __STDC__
44518 # include <limits.h>
44519 #else
44520 # include <assert.h>
44521 #endif
44522
44523 #undef $ac_func
44524
44525 /* Override any GCC internal prototype to avoid an error.
44526    Use char because int might match the return type of a GCC
44527    builtin and then its argument prototype would still apply.  */
44528 #ifdef __cplusplus
44529 extern "C"
44530 #endif
44531 char $ac_func ();
44532 /* The GNU C library defines this for functions which it implements
44533     to always fail with ENOSYS.  Some functions are actually named
44534     something starting with __ and the normal name is an alias.  */
44535 #if defined __stub_$ac_func || defined __stub___$ac_func
44536 choke me
44537 #endif
44538
44539 int
44540 main ()
44541 {
44542 return $ac_func ();
44543   ;
44544   return 0;
44545 }
44546 _ACEOF
44547 rm -f conftest.$ac_objext conftest$ac_exeext
44548 if { (ac_try="$ac_link"
44549 case "(($ac_try" in
44550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44551   *) ac_try_echo=$ac_try;;
44552 esac
44553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44554   (eval "$ac_link") 2>conftest.er1
44555   ac_status=$?
44556   grep -v '^ *+' conftest.er1 >conftest.err
44557   rm -f conftest.er1
44558   cat conftest.err >&5
44559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560   (exit $ac_status); } && {
44561          test -z "$ac_c_werror_flag" ||
44562          test ! -s conftest.err
44563        } && test -s conftest$ac_exeext &&
44564        $as_test_x conftest$ac_exeext; then
44565   eval "$as_ac_var=yes"
44566 else
44567   echo "$as_me: failed program was:" >&5
44568 sed 's/^/| /' conftest.$ac_ext >&5
44569
44570         eval "$as_ac_var=no"
44571 fi
44572
44573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44574       conftest$ac_exeext conftest.$ac_ext
44575 fi
44576 ac_res=`eval echo '${'$as_ac_var'}'`
44577                { echo "$as_me:$LINENO: result: $ac_res" >&5
44578 echo "${ECHO_T}$ac_res" >&6; }
44579 if test `eval echo '${'$as_ac_var'}'` = yes; then
44580   cat >>confdefs.h <<_ACEOF
44581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44582 _ACEOF
44583  break
44584 fi
44585 done
44586
44587
44588 if test "$ac_cv_func_gettimeofday" = "yes"; then
44589     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44590 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
44591 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44592   echo $ECHO_N "(cached) $ECHO_C" >&6
44593 else
44594
44595                 cat >conftest.$ac_ext <<_ACEOF
44596 /* confdefs.h.  */
44597 _ACEOF
44598 cat confdefs.h >>conftest.$ac_ext
44599 cat >>conftest.$ac_ext <<_ACEOF
44600 /* end confdefs.h.  */
44601
44602                 #include <sys/time.h>
44603                 #include <unistd.h>
44604
44605 int
44606 main ()
44607 {
44608
44609                 struct timeval tv;
44610                 gettimeofday(&tv, NULL);
44611
44612   ;
44613   return 0;
44614 }
44615 _ACEOF
44616 rm -f conftest.$ac_objext
44617 if { (ac_try="$ac_compile"
44618 case "(($ac_try" in
44619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44620   *) ac_try_echo=$ac_try;;
44621 esac
44622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44623   (eval "$ac_compile") 2>conftest.er1
44624   ac_status=$?
44625   grep -v '^ *+' conftest.er1 >conftest.err
44626   rm -f conftest.er1
44627   cat conftest.err >&5
44628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44629   (exit $ac_status); } && {
44630          test -z "$ac_c_werror_flag" ||
44631          test ! -s conftest.err
44632        } && test -s conftest.$ac_objext; then
44633   wx_cv_func_gettimeofday_has_2_args=yes
44634 else
44635   echo "$as_me: failed program was:" >&5
44636 sed 's/^/| /' conftest.$ac_ext >&5
44637
44638         cat >conftest.$ac_ext <<_ACEOF
44639 /* confdefs.h.  */
44640 _ACEOF
44641 cat confdefs.h >>conftest.$ac_ext
44642 cat >>conftest.$ac_ext <<_ACEOF
44643 /* end confdefs.h.  */
44644
44645                     #include <sys/time.h>
44646                     #include <unistd.h>
44647
44648 int
44649 main ()
44650 {
44651
44652                     struct timeval tv;
44653                     gettimeofday(&tv);
44654
44655   ;
44656   return 0;
44657 }
44658 _ACEOF
44659 rm -f conftest.$ac_objext
44660 if { (ac_try="$ac_compile"
44661 case "(($ac_try" in
44662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44663   *) ac_try_echo=$ac_try;;
44664 esac
44665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44666   (eval "$ac_compile") 2>conftest.er1
44667   ac_status=$?
44668   grep -v '^ *+' conftest.er1 >conftest.err
44669   rm -f conftest.er1
44670   cat conftest.err >&5
44671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44672   (exit $ac_status); } && {
44673          test -z "$ac_c_werror_flag" ||
44674          test ! -s conftest.err
44675        } && test -s conftest.$ac_objext; then
44676   wx_cv_func_gettimeofday_has_2_args=no
44677 else
44678   echo "$as_me: failed program was:" >&5
44679 sed 's/^/| /' conftest.$ac_ext >&5
44680
44681
44682                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44683 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44684                     wx_cv_func_gettimeofday_has_2_args=unknown
44685
44686
44687 fi
44688
44689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44690
44691 fi
44692
44693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44694
44695 fi
44696 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44697 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
44698
44699     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44700         cat >>confdefs.h <<\_ACEOF
44701 #define WX_GETTIMEOFDAY_NO_TZ 1
44702 _ACEOF
44703
44704     fi
44705 fi
44706
44707 if test "$wxUSE_DATETIME" = "yes"; then
44708             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44709 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
44710 if test "${wx_cv_var_timezone+set}" = set; then
44711   echo $ECHO_N "(cached) $ECHO_C" >&6
44712 else
44713
44714                         ac_ext=cpp
44715 ac_cpp='$CXXCPP $CPPFLAGS'
44716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44719
44720                         cat >conftest.$ac_ext <<_ACEOF
44721 /* confdefs.h.  */
44722 _ACEOF
44723 cat confdefs.h >>conftest.$ac_ext
44724 cat >>conftest.$ac_ext <<_ACEOF
44725 /* end confdefs.h.  */
44726
44727                                 #include <time.h>
44728
44729 int
44730 main ()
44731 {
44732
44733                                 int tz;
44734                                 tz = timezone;
44735
44736   ;
44737   return 0;
44738 }
44739 _ACEOF
44740 rm -f conftest.$ac_objext
44741 if { (ac_try="$ac_compile"
44742 case "(($ac_try" in
44743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44744   *) ac_try_echo=$ac_try;;
44745 esac
44746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44747   (eval "$ac_compile") 2>conftest.er1
44748   ac_status=$?
44749   grep -v '^ *+' conftest.er1 >conftest.err
44750   rm -f conftest.er1
44751   cat conftest.err >&5
44752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44753   (exit $ac_status); } && {
44754          test -z "$ac_cxx_werror_flag" ||
44755          test ! -s conftest.err
44756        } && test -s conftest.$ac_objext; then
44757
44758                                 wx_cv_var_timezone=timezone
44759
44760 else
44761   echo "$as_me: failed program was:" >&5
44762 sed 's/^/| /' conftest.$ac_ext >&5
44763
44764
44765                                 cat >conftest.$ac_ext <<_ACEOF
44766 /* confdefs.h.  */
44767 _ACEOF
44768 cat confdefs.h >>conftest.$ac_ext
44769 cat >>conftest.$ac_ext <<_ACEOF
44770 /* end confdefs.h.  */
44771
44772                                         #include <time.h>
44773
44774 int
44775 main ()
44776 {
44777
44778                                         int tz;
44779                                         tz = _timezone;
44780
44781   ;
44782   return 0;
44783 }
44784 _ACEOF
44785 rm -f conftest.$ac_objext
44786 if { (ac_try="$ac_compile"
44787 case "(($ac_try" in
44788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44789   *) ac_try_echo=$ac_try;;
44790 esac
44791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44792   (eval "$ac_compile") 2>conftest.er1
44793   ac_status=$?
44794   grep -v '^ *+' conftest.er1 >conftest.err
44795   rm -f conftest.er1
44796   cat conftest.err >&5
44797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44798   (exit $ac_status); } && {
44799          test -z "$ac_cxx_werror_flag" ||
44800          test ! -s conftest.err
44801        } && test -s conftest.$ac_objext; then
44802
44803                                         wx_cv_var_timezone=_timezone
44804
44805 else
44806   echo "$as_me: failed program was:" >&5
44807 sed 's/^/| /' conftest.$ac_ext >&5
44808
44809
44810                                         cat >conftest.$ac_ext <<_ACEOF
44811 /* confdefs.h.  */
44812 _ACEOF
44813 cat confdefs.h >>conftest.$ac_ext
44814 cat >>conftest.$ac_ext <<_ACEOF
44815 /* end confdefs.h.  */
44816
44817                                                 #include <time.h>
44818
44819 int
44820 main ()
44821 {
44822
44823                                                 int tz;
44824                                                 tz = __timezone;
44825
44826   ;
44827   return 0;
44828 }
44829 _ACEOF
44830 rm -f conftest.$ac_objext
44831 if { (ac_try="$ac_compile"
44832 case "(($ac_try" in
44833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44834   *) ac_try_echo=$ac_try;;
44835 esac
44836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44837   (eval "$ac_compile") 2>conftest.er1
44838   ac_status=$?
44839   grep -v '^ *+' conftest.er1 >conftest.err
44840   rm -f conftest.er1
44841   cat conftest.err >&5
44842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44843   (exit $ac_status); } && {
44844          test -z "$ac_cxx_werror_flag" ||
44845          test ! -s conftest.err
44846        } && test -s conftest.$ac_objext; then
44847
44848                                                 wx_cv_var_timezone=__timezone
44849
44850 else
44851   echo "$as_me: failed program was:" >&5
44852 sed 's/^/| /' conftest.$ac_ext >&5
44853
44854
44855                                                 if test "$USE_DOS" = 0 ; then
44856                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44857 echo "$as_me: WARNING: no timezone variable" >&2;}
44858                                                 fi
44859
44860
44861 fi
44862
44863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44864
44865
44866 fi
44867
44868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44869
44870
44871 fi
44872
44873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44874                         ac_ext=c
44875 ac_cpp='$CPP $CPPFLAGS'
44876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44879
44880
44881
44882 fi
44883 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44884 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44885
44886         if test "x$wx_cv_var_timezone" != x ; then
44887         cat >>confdefs.h <<_ACEOF
44888 #define WX_TIMEZONE $wx_cv_var_timezone
44889 _ACEOF
44890
44891     fi
44892
44893
44894 for ac_func in localtime
44895 do
44896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44900   echo $ECHO_N "(cached) $ECHO_C" >&6
44901 else
44902   cat >conftest.$ac_ext <<_ACEOF
44903 /* confdefs.h.  */
44904 _ACEOF
44905 cat confdefs.h >>conftest.$ac_ext
44906 cat >>conftest.$ac_ext <<_ACEOF
44907 /* end confdefs.h.  */
44908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44910 #define $ac_func innocuous_$ac_func
44911
44912 /* System header to define __stub macros and hopefully few prototypes,
44913     which can conflict with char $ac_func (); below.
44914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44915     <limits.h> exists even on freestanding compilers.  */
44916
44917 #ifdef __STDC__
44918 # include <limits.h>
44919 #else
44920 # include <assert.h>
44921 #endif
44922
44923 #undef $ac_func
44924
44925 /* Override any GCC internal prototype to avoid an error.
44926    Use char because int might match the return type of a GCC
44927    builtin and then its argument prototype would still apply.  */
44928 #ifdef __cplusplus
44929 extern "C"
44930 #endif
44931 char $ac_func ();
44932 /* The GNU C library defines this for functions which it implements
44933     to always fail with ENOSYS.  Some functions are actually named
44934     something starting with __ and the normal name is an alias.  */
44935 #if defined __stub_$ac_func || defined __stub___$ac_func
44936 choke me
44937 #endif
44938
44939 int
44940 main ()
44941 {
44942 return $ac_func ();
44943   ;
44944   return 0;
44945 }
44946 _ACEOF
44947 rm -f conftest.$ac_objext conftest$ac_exeext
44948 if { (ac_try="$ac_link"
44949 case "(($ac_try" in
44950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44951   *) ac_try_echo=$ac_try;;
44952 esac
44953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44954   (eval "$ac_link") 2>conftest.er1
44955   ac_status=$?
44956   grep -v '^ *+' conftest.er1 >conftest.err
44957   rm -f conftest.er1
44958   cat conftest.err >&5
44959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44960   (exit $ac_status); } && {
44961          test -z "$ac_c_werror_flag" ||
44962          test ! -s conftest.err
44963        } && test -s conftest$ac_exeext &&
44964        $as_test_x conftest$ac_exeext; then
44965   eval "$as_ac_var=yes"
44966 else
44967   echo "$as_me: failed program was:" >&5
44968 sed 's/^/| /' conftest.$ac_ext >&5
44969
44970         eval "$as_ac_var=no"
44971 fi
44972
44973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44974       conftest$ac_exeext conftest.$ac_ext
44975 fi
44976 ac_res=`eval echo '${'$as_ac_var'}'`
44977                { echo "$as_me:$LINENO: result: $ac_res" >&5
44978 echo "${ECHO_T}$ac_res" >&6; }
44979 if test `eval echo '${'$as_ac_var'}'` = yes; then
44980   cat >>confdefs.h <<_ACEOF
44981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44982 _ACEOF
44983
44984 fi
44985 done
44986
44987
44988     if test "$ac_cv_func_localtime" = "yes"; then
44989         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44990 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44991 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44992   echo $ECHO_N "(cached) $ECHO_C" >&6
44993 else
44994
44995             cat >conftest.$ac_ext <<_ACEOF
44996 /* confdefs.h.  */
44997 _ACEOF
44998 cat confdefs.h >>conftest.$ac_ext
44999 cat >>conftest.$ac_ext <<_ACEOF
45000 /* end confdefs.h.  */
45001
45002                     #include <time.h>
45003
45004 int
45005 main ()
45006 {
45007
45008                     struct tm tm;
45009                     tm.tm_gmtoff++;
45010
45011   ;
45012   return 0;
45013 }
45014 _ACEOF
45015 rm -f conftest.$ac_objext
45016 if { (ac_try="$ac_compile"
45017 case "(($ac_try" in
45018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45019   *) ac_try_echo=$ac_try;;
45020 esac
45021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45022   (eval "$ac_compile") 2>conftest.er1
45023   ac_status=$?
45024   grep -v '^ *+' conftest.er1 >conftest.err
45025   rm -f conftest.er1
45026   cat conftest.err >&5
45027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45028   (exit $ac_status); } && {
45029          test -z "$ac_c_werror_flag" ||
45030          test ! -s conftest.err
45031        } && test -s conftest.$ac_objext; then
45032
45033                     wx_cv_struct_tm_has_gmtoff=yes
45034
45035 else
45036   echo "$as_me: failed program was:" >&5
45037 sed 's/^/| /' conftest.$ac_ext >&5
45038
45039         wx_cv_struct_tm_has_gmtoff=no
45040
45041 fi
45042
45043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45044
45045 fi
45046 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45047 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
45048     fi
45049
45050     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45051         cat >>confdefs.h <<\_ACEOF
45052 #define WX_GMTOFF_IN_TM 1
45053 _ACEOF
45054
45055     fi
45056
45057     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45058 fi
45059
45060
45061 if test "$wxUSE_SOCKETS" = "yes"; then
45062     if test "$wxUSE_MGL" = 1; then
45063         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45064 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45065         wxUSE_SOCKETS="no"
45066     fi
45067 fi
45068
45069 if test "$wxUSE_SOCKETS" = "yes"; then
45070         if test "$TOOLKIT" != "MSW"; then
45071                 { echo "$as_me:$LINENO: checking for socket" >&5
45072 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
45073 if test "${ac_cv_func_socket+set}" = set; then
45074   echo $ECHO_N "(cached) $ECHO_C" >&6
45075 else
45076   cat >conftest.$ac_ext <<_ACEOF
45077 /* confdefs.h.  */
45078 _ACEOF
45079 cat confdefs.h >>conftest.$ac_ext
45080 cat >>conftest.$ac_ext <<_ACEOF
45081 /* end confdefs.h.  */
45082 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45084 #define socket innocuous_socket
45085
45086 /* System header to define __stub macros and hopefully few prototypes,
45087     which can conflict with char socket (); below.
45088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45089     <limits.h> exists even on freestanding compilers.  */
45090
45091 #ifdef __STDC__
45092 # include <limits.h>
45093 #else
45094 # include <assert.h>
45095 #endif
45096
45097 #undef socket
45098
45099 /* Override any GCC internal prototype to avoid an error.
45100    Use char because int might match the return type of a GCC
45101    builtin and then its argument prototype would still apply.  */
45102 #ifdef __cplusplus
45103 extern "C"
45104 #endif
45105 char socket ();
45106 /* The GNU C library defines this for functions which it implements
45107     to always fail with ENOSYS.  Some functions are actually named
45108     something starting with __ and the normal name is an alias.  */
45109 #if defined __stub_socket || defined __stub___socket
45110 choke me
45111 #endif
45112
45113 int
45114 main ()
45115 {
45116 return socket ();
45117   ;
45118   return 0;
45119 }
45120 _ACEOF
45121 rm -f conftest.$ac_objext conftest$ac_exeext
45122 if { (ac_try="$ac_link"
45123 case "(($ac_try" in
45124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45125   *) ac_try_echo=$ac_try;;
45126 esac
45127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45128   (eval "$ac_link") 2>conftest.er1
45129   ac_status=$?
45130   grep -v '^ *+' conftest.er1 >conftest.err
45131   rm -f conftest.er1
45132   cat conftest.err >&5
45133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45134   (exit $ac_status); } && {
45135          test -z "$ac_c_werror_flag" ||
45136          test ! -s conftest.err
45137        } && test -s conftest$ac_exeext &&
45138        $as_test_x conftest$ac_exeext; then
45139   ac_cv_func_socket=yes
45140 else
45141   echo "$as_me: failed program was:" >&5
45142 sed 's/^/| /' conftest.$ac_ext >&5
45143
45144         ac_cv_func_socket=no
45145 fi
45146
45147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45148       conftest$ac_exeext conftest.$ac_ext
45149 fi
45150 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45151 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
45152 if test $ac_cv_func_socket = yes; then
45153   :
45154 else
45155
45156                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45157 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
45158 if test "${ac_cv_lib_socket_socket+set}" = set; then
45159   echo $ECHO_N "(cached) $ECHO_C" >&6
45160 else
45161   ac_check_lib_save_LIBS=$LIBS
45162 LIBS="-lsocket  $LIBS"
45163 cat >conftest.$ac_ext <<_ACEOF
45164 /* confdefs.h.  */
45165 _ACEOF
45166 cat confdefs.h >>conftest.$ac_ext
45167 cat >>conftest.$ac_ext <<_ACEOF
45168 /* end confdefs.h.  */
45169
45170 /* Override any GCC internal prototype to avoid an error.
45171    Use char because int might match the return type of a GCC
45172    builtin and then its argument prototype would still apply.  */
45173 #ifdef __cplusplus
45174 extern "C"
45175 #endif
45176 char socket ();
45177 int
45178 main ()
45179 {
45180 return socket ();
45181   ;
45182   return 0;
45183 }
45184 _ACEOF
45185 rm -f conftest.$ac_objext conftest$ac_exeext
45186 if { (ac_try="$ac_link"
45187 case "(($ac_try" in
45188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45189   *) ac_try_echo=$ac_try;;
45190 esac
45191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45192   (eval "$ac_link") 2>conftest.er1
45193   ac_status=$?
45194   grep -v '^ *+' conftest.er1 >conftest.err
45195   rm -f conftest.er1
45196   cat conftest.err >&5
45197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198   (exit $ac_status); } && {
45199          test -z "$ac_c_werror_flag" ||
45200          test ! -s conftest.err
45201        } && test -s conftest$ac_exeext &&
45202        $as_test_x conftest$ac_exeext; then
45203   ac_cv_lib_socket_socket=yes
45204 else
45205   echo "$as_me: failed program was:" >&5
45206 sed 's/^/| /' conftest.$ac_ext >&5
45207
45208         ac_cv_lib_socket_socket=no
45209 fi
45210
45211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45212       conftest$ac_exeext conftest.$ac_ext
45213 LIBS=$ac_check_lib_save_LIBS
45214 fi
45215 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
45216 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
45217 if test $ac_cv_lib_socket_socket = yes; then
45218   if test "$INET_LINK" != " -lsocket"; then
45219                         INET_LINK="$INET_LINK -lsocket"
45220                     fi
45221 else
45222
45223                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
45224 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
45225                         wxUSE_SOCKETS=no
45226
45227
45228 fi
45229
45230
45231
45232 fi
45233
45234     fi
45235 fi
45236
45237 if test "$wxUSE_SOCKETS" = "yes" ; then
45238                 if test "$TOOLKIT" != "MSW"; then
45239                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45240 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
45241 if test "${wx_cv_type_getsockname3+set}" = set; then
45242   echo $ECHO_N "(cached) $ECHO_C" >&6
45243 else
45244
45245                 ac_ext=cpp
45246 ac_cpp='$CXXCPP $CPPFLAGS'
45247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45250
45251                 cat >conftest.$ac_ext <<_ACEOF
45252 /* confdefs.h.  */
45253 _ACEOF
45254 cat confdefs.h >>conftest.$ac_ext
45255 cat >>conftest.$ac_ext <<_ACEOF
45256 /* end confdefs.h.  */
45257
45258                         #include <sys/types.h>
45259                         #include <sys/socket.h>
45260
45261 int
45262 main ()
45263 {
45264
45265                         socklen_t len;
45266                         getsockname(0, 0, &len);
45267
45268   ;
45269   return 0;
45270 }
45271 _ACEOF
45272 rm -f conftest.$ac_objext
45273 if { (ac_try="$ac_compile"
45274 case "(($ac_try" in
45275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45276   *) ac_try_echo=$ac_try;;
45277 esac
45278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45279   (eval "$ac_compile") 2>conftest.er1
45280   ac_status=$?
45281   grep -v '^ *+' conftest.er1 >conftest.err
45282   rm -f conftest.er1
45283   cat conftest.err >&5
45284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45285   (exit $ac_status); } && {
45286          test -z "$ac_cxx_werror_flag" ||
45287          test ! -s conftest.err
45288        } && test -s conftest.$ac_objext; then
45289   wx_cv_type_getsockname3=socklen_t
45290 else
45291   echo "$as_me: failed program was:" >&5
45292 sed 's/^/| /' conftest.$ac_ext >&5
45293
45294
45295                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
45296                         if test "$GCC" = yes ; then
45297                             CFLAGS="-Werror $CFLAGS"
45298                         fi
45299
45300                         cat >conftest.$ac_ext <<_ACEOF
45301 /* confdefs.h.  */
45302 _ACEOF
45303 cat confdefs.h >>conftest.$ac_ext
45304 cat >>conftest.$ac_ext <<_ACEOF
45305 /* end confdefs.h.  */
45306
45307                                 #include <sys/types.h>
45308                                 #include <sys/socket.h>
45309
45310 int
45311 main ()
45312 {
45313
45314                                 size_t len;
45315                                 getsockname(0, 0, &len);
45316
45317   ;
45318   return 0;
45319 }
45320 _ACEOF
45321 rm -f conftest.$ac_objext
45322 if { (ac_try="$ac_compile"
45323 case "(($ac_try" in
45324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45325   *) ac_try_echo=$ac_try;;
45326 esac
45327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45328   (eval "$ac_compile") 2>conftest.er1
45329   ac_status=$?
45330   grep -v '^ *+' conftest.er1 >conftest.err
45331   rm -f conftest.er1
45332   cat conftest.err >&5
45333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45334   (exit $ac_status); } && {
45335          test -z "$ac_cxx_werror_flag" ||
45336          test ! -s conftest.err
45337        } && test -s conftest.$ac_objext; then
45338   wx_cv_type_getsockname3=size_t
45339 else
45340   echo "$as_me: failed program was:" >&5
45341 sed 's/^/| /' conftest.$ac_ext >&5
45342
45343         cat >conftest.$ac_ext <<_ACEOF
45344 /* confdefs.h.  */
45345 _ACEOF
45346 cat confdefs.h >>conftest.$ac_ext
45347 cat >>conftest.$ac_ext <<_ACEOF
45348 /* end confdefs.h.  */
45349
45350                                     #include <sys/types.h>
45351                                     #include <sys/socket.h>
45352
45353 int
45354 main ()
45355 {
45356
45357                                     int len;
45358                                     getsockname(0, 0, &len);
45359
45360   ;
45361   return 0;
45362 }
45363 _ACEOF
45364 rm -f conftest.$ac_objext
45365 if { (ac_try="$ac_compile"
45366 case "(($ac_try" in
45367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45368   *) ac_try_echo=$ac_try;;
45369 esac
45370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45371   (eval "$ac_compile") 2>conftest.er1
45372   ac_status=$?
45373   grep -v '^ *+' conftest.er1 >conftest.err
45374   rm -f conftest.er1
45375   cat conftest.err >&5
45376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45377   (exit $ac_status); } && {
45378          test -z "$ac_cxx_werror_flag" ||
45379          test ! -s conftest.err
45380        } && test -s conftest.$ac_objext; then
45381   wx_cv_type_getsockname3=int
45382 else
45383   echo "$as_me: failed program was:" >&5
45384 sed 's/^/| /' conftest.$ac_ext >&5
45385
45386         wx_cv_type_getsockname3=unknown
45387
45388 fi
45389
45390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45391
45392 fi
45393
45394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45395
45396                         CFLAGS="$CFLAGS_OLD"
45397
45398
45399 fi
45400
45401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45402                 ac_ext=c
45403 ac_cpp='$CPP $CPPFLAGS'
45404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45407
45408
45409 fi
45410 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45411 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
45412
45413         if test "$wx_cv_type_getsockname3" = "unknown"; then
45414             wxUSE_SOCKETS=no
45415             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45416 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45417         else
45418             cat >>confdefs.h <<_ACEOF
45419 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
45420 _ACEOF
45421
45422         fi
45423                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45424 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
45425 if test "${wx_cv_type_getsockopt5+set}" = set; then
45426   echo $ECHO_N "(cached) $ECHO_C" >&6
45427 else
45428
45429                                                                                                 ac_ext=cpp
45430 ac_cpp='$CXXCPP $CPPFLAGS'
45431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45434
45435                 cat >conftest.$ac_ext <<_ACEOF
45436 /* confdefs.h.  */
45437 _ACEOF
45438 cat confdefs.h >>conftest.$ac_ext
45439 cat >>conftest.$ac_ext <<_ACEOF
45440 /* end confdefs.h.  */
45441
45442                         #include <sys/types.h>
45443                         #include <sys/socket.h>
45444
45445 int
45446 main ()
45447 {
45448
45449                         socklen_t len;
45450                         getsockopt(0, 0, 0, 0, &len);
45451
45452   ;
45453   return 0;
45454 }
45455 _ACEOF
45456 rm -f conftest.$ac_objext
45457 if { (ac_try="$ac_compile"
45458 case "(($ac_try" in
45459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45460   *) ac_try_echo=$ac_try;;
45461 esac
45462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45463   (eval "$ac_compile") 2>conftest.er1
45464   ac_status=$?
45465   grep -v '^ *+' conftest.er1 >conftest.err
45466   rm -f conftest.er1
45467   cat conftest.err >&5
45468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45469   (exit $ac_status); } && {
45470          test -z "$ac_cxx_werror_flag" ||
45471          test ! -s conftest.err
45472        } && test -s conftest.$ac_objext; then
45473   wx_cv_type_getsockopt5=socklen_t
45474 else
45475   echo "$as_me: failed program was:" >&5
45476 sed 's/^/| /' conftest.$ac_ext >&5
45477
45478
45479                         cat >conftest.$ac_ext <<_ACEOF
45480 /* confdefs.h.  */
45481 _ACEOF
45482 cat confdefs.h >>conftest.$ac_ext
45483 cat >>conftest.$ac_ext <<_ACEOF
45484 /* end confdefs.h.  */
45485
45486                                 #include <sys/types.h>
45487                                 #include <sys/socket.h>
45488
45489 int
45490 main ()
45491 {
45492
45493                                 size_t len;
45494                                 getsockopt(0, 0, 0, 0, &len);
45495
45496   ;
45497   return 0;
45498 }
45499 _ACEOF
45500 rm -f conftest.$ac_objext
45501 if { (ac_try="$ac_compile"
45502 case "(($ac_try" in
45503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45504   *) ac_try_echo=$ac_try;;
45505 esac
45506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45507   (eval "$ac_compile") 2>conftest.er1
45508   ac_status=$?
45509   grep -v '^ *+' conftest.er1 >conftest.err
45510   rm -f conftest.er1
45511   cat conftest.err >&5
45512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45513   (exit $ac_status); } && {
45514          test -z "$ac_cxx_werror_flag" ||
45515          test ! -s conftest.err
45516        } && test -s conftest.$ac_objext; then
45517   wx_cv_type_getsockopt5=size_t
45518 else
45519   echo "$as_me: failed program was:" >&5
45520 sed 's/^/| /' conftest.$ac_ext >&5
45521
45522         cat >conftest.$ac_ext <<_ACEOF
45523 /* confdefs.h.  */
45524 _ACEOF
45525 cat confdefs.h >>conftest.$ac_ext
45526 cat >>conftest.$ac_ext <<_ACEOF
45527 /* end confdefs.h.  */
45528
45529                                     #include <sys/types.h>
45530                                     #include <sys/socket.h>
45531
45532 int
45533 main ()
45534 {
45535
45536                                     int len;
45537                                     getsockopt(0, 0, 0, 0, &len);
45538
45539   ;
45540   return 0;
45541 }
45542 _ACEOF
45543 rm -f conftest.$ac_objext
45544 if { (ac_try="$ac_compile"
45545 case "(($ac_try" in
45546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45547   *) ac_try_echo=$ac_try;;
45548 esac
45549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45550   (eval "$ac_compile") 2>conftest.er1
45551   ac_status=$?
45552   grep -v '^ *+' conftest.er1 >conftest.err
45553   rm -f conftest.er1
45554   cat conftest.err >&5
45555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556   (exit $ac_status); } && {
45557          test -z "$ac_cxx_werror_flag" ||
45558          test ! -s conftest.err
45559        } && test -s conftest.$ac_objext; then
45560   wx_cv_type_getsockopt5=int
45561 else
45562   echo "$as_me: failed program was:" >&5
45563 sed 's/^/| /' conftest.$ac_ext >&5
45564
45565         wx_cv_type_getsockopt5=unknown
45566
45567 fi
45568
45569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45570
45571 fi
45572
45573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45574
45575
45576 fi
45577
45578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45579                 ac_ext=c
45580 ac_cpp='$CPP $CPPFLAGS'
45581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45584
45585
45586 fi
45587 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45588 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
45589
45590         if test "$wx_cv_type_getsockopt5" = "unknown"; then
45591             wxUSE_SOCKETS=no
45592             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45593 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45594         else
45595             cat >>confdefs.h <<_ACEOF
45596 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
45597 _ACEOF
45598
45599         fi
45600     fi
45601 fi
45602
45603 if test "$wxUSE_SOCKETS" = "yes" ; then
45604     if test "$wxUSE_IPV6" = "yes"; then
45605         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
45606 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
45607 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
45608   echo $ECHO_N "(cached) $ECHO_C" >&6
45609 else
45610
45611                 cat >conftest.$ac_ext <<_ACEOF
45612 /* confdefs.h.  */
45613 _ACEOF
45614 cat confdefs.h >>conftest.$ac_ext
45615 cat >>conftest.$ac_ext <<_ACEOF
45616 /* end confdefs.h.  */
45617
45618                         #include <sys/types.h>
45619                         #include <sys/socket.h>
45620                         #include <netinet/in.h>
45621
45622 int
45623 main ()
45624 {
45625
45626                         struct sockaddr_in6 sa6;
45627
45628   ;
45629   return 0;
45630 }
45631 _ACEOF
45632 rm -f conftest.$ac_objext
45633 if { (ac_try="$ac_compile"
45634 case "(($ac_try" in
45635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45636   *) ac_try_echo=$ac_try;;
45637 esac
45638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45639   (eval "$ac_compile") 2>conftest.er1
45640   ac_status=$?
45641   grep -v '^ *+' conftest.er1 >conftest.err
45642   rm -f conftest.er1
45643   cat conftest.err >&5
45644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45645   (exit $ac_status); } && {
45646          test -z "$ac_c_werror_flag" ||
45647          test ! -s conftest.err
45648        } && test -s conftest.$ac_objext; then
45649   wx_cv_type_sockaddr_in6=yes
45650 else
45651   echo "$as_me: failed program was:" >&5
45652 sed 's/^/| /' conftest.$ac_ext >&5
45653
45654         wx_cv_type_sockaddr_in6=no
45655
45656 fi
45657
45658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45659
45660
45661 fi
45662 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
45663 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
45664
45665         if test "$wx_cv_type_sockaddr_in6"="yes"; then
45666             cat >>confdefs.h <<\_ACEOF
45667 #define wxUSE_IPV6 1
45668 _ACEOF
45669
45670         else
45671             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45672 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45673         fi
45674     fi
45675
45676     cat >>confdefs.h <<\_ACEOF
45677 #define wxUSE_SOCKETS 1
45678 _ACEOF
45679
45680     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45681 fi
45682
45683 if test "$wxUSE_PROTOCOL" = "yes"; then
45684     if test "$wxUSE_SOCKETS" != "yes"; then
45685         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45686 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45687         wxUSE_PROTOCOL=no
45688     fi
45689 fi
45690
45691 if test "$wxUSE_PROTOCOL" = "yes"; then
45692     cat >>confdefs.h <<\_ACEOF
45693 #define wxUSE_PROTOCOL 1
45694 _ACEOF
45695
45696
45697     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45698         cat >>confdefs.h <<\_ACEOF
45699 #define wxUSE_PROTOCOL_HTTP 1
45700 _ACEOF
45701
45702     fi
45703     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45704         cat >>confdefs.h <<\_ACEOF
45705 #define wxUSE_PROTOCOL_FTP 1
45706 _ACEOF
45707
45708     fi
45709     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45710         cat >>confdefs.h <<\_ACEOF
45711 #define wxUSE_PROTOCOL_FILE 1
45712 _ACEOF
45713
45714     fi
45715 else
45716     if test "$wxUSE_FS_INET" = "yes"; then
45717         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45718 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45719         wxUSE_FS_INET="no"
45720     fi
45721 fi
45722
45723 if test "$wxUSE_URL" = "yes"; then
45724     if test "$wxUSE_PROTOCOL" != "yes"; then
45725         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45726 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45727         wxUSE_URL=no
45728     fi
45729     if test "$wxUSE_URL" = "yes"; then
45730         cat >>confdefs.h <<\_ACEOF
45731 #define wxUSE_URL 1
45732 _ACEOF
45733
45734     fi
45735 fi
45736
45737 if test "$wxUSE_VARIANT" = "yes"; then
45738     cat >>confdefs.h <<\_ACEOF
45739 #define wxUSE_VARIANT 1
45740 _ACEOF
45741
45742 fi
45743
45744 if test "$wxUSE_FS_INET" = "yes"; then
45745   cat >>confdefs.h <<\_ACEOF
45746 #define wxUSE_FS_INET 1
45747 _ACEOF
45748
45749 fi
45750
45751
45752 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45753     wxUSE_JOYSTICK=no
45754
45755         if test "$TOOLKIT" = "MSW"; then
45756         wxUSE_JOYSTICK=yes
45757
45758         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45759         if test "$USE_DARWIN" = 1; then
45760                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45761 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
45762             ac_ext=cpp
45763 ac_cpp='$CXXCPP $CPPFLAGS'
45764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45767
45768             cat >conftest.$ac_ext <<_ACEOF
45769 /* confdefs.h.  */
45770 _ACEOF
45771 cat confdefs.h >>conftest.$ac_ext
45772 cat >>conftest.$ac_ext <<_ACEOF
45773 /* end confdefs.h.  */
45774  #include <IOKit/hid/IOHIDLib.h>
45775 int
45776 main ()
45777 {
45778  IOHIDQueueInterface *qi = NULL;
45779                               IOHIDCallbackFunction cb = NULL;
45780                               qi->setEventCallout(NULL, cb, NULL, NULL);
45781   ;
45782   return 0;
45783 }
45784 _ACEOF
45785 rm -f conftest.$ac_objext
45786 if { (ac_try="$ac_compile"
45787 case "(($ac_try" in
45788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45789   *) ac_try_echo=$ac_try;;
45790 esac
45791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45792   (eval "$ac_compile") 2>conftest.er1
45793   ac_status=$?
45794   grep -v '^ *+' conftest.er1 >conftest.err
45795   rm -f conftest.er1
45796   cat conftest.err >&5
45797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45798   (exit $ac_status); } && {
45799          test -z "$ac_cxx_werror_flag" ||
45800          test ! -s conftest.err
45801        } && test -s conftest.$ac_objext; then
45802    wxUSE_JOYSTICK=yes
45803
45804 else
45805   echo "$as_me: failed program was:" >&5
45806 sed 's/^/| /' conftest.$ac_ext >&5
45807
45808
45809 fi
45810
45811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45812             ac_ext=c
45813 ac_cpp='$CPP $CPPFLAGS'
45814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45817
45818             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45819 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45820         fi
45821
45822         else
45823                 if test "$wxUSE_MGL" != 1; then
45824
45825 for ac_header in linux/joystick.h
45826 do
45827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45831   echo $ECHO_N "(cached) $ECHO_C" >&6
45832 else
45833   cat >conftest.$ac_ext <<_ACEOF
45834 /* confdefs.h.  */
45835 _ACEOF
45836 cat confdefs.h >>conftest.$ac_ext
45837 cat >>conftest.$ac_ext <<_ACEOF
45838 /* end confdefs.h.  */
45839 $ac_includes_default
45840
45841 #include <$ac_header>
45842 _ACEOF
45843 rm -f conftest.$ac_objext
45844 if { (ac_try="$ac_compile"
45845 case "(($ac_try" in
45846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45847   *) ac_try_echo=$ac_try;;
45848 esac
45849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45850   (eval "$ac_compile") 2>conftest.er1
45851   ac_status=$?
45852   grep -v '^ *+' conftest.er1 >conftest.err
45853   rm -f conftest.er1
45854   cat conftest.err >&5
45855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45856   (exit $ac_status); } && {
45857          test -z "$ac_c_werror_flag" ||
45858          test ! -s conftest.err
45859        } && test -s conftest.$ac_objext; then
45860   eval "$as_ac_Header=yes"
45861 else
45862   echo "$as_me: failed program was:" >&5
45863 sed 's/^/| /' conftest.$ac_ext >&5
45864
45865         eval "$as_ac_Header=no"
45866 fi
45867
45868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45869 fi
45870 ac_res=`eval echo '${'$as_ac_Header'}'`
45871                { echo "$as_me:$LINENO: result: $ac_res" >&5
45872 echo "${ECHO_T}$ac_res" >&6; }
45873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45874   cat >>confdefs.h <<_ACEOF
45875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45876 _ACEOF
45877  wxUSE_JOYSTICK=yes
45878 fi
45879
45880 done
45881
45882         fi
45883     fi
45884
45885     if test "$wxUSE_JOYSTICK" = "yes"; then
45886         cat >>confdefs.h <<\_ACEOF
45887 #define wxUSE_JOYSTICK 1
45888 _ACEOF
45889
45890         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45891     else
45892         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45893 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45894     fi
45895 fi
45896
45897
45898
45899 if test "$wxUSE_FONTENUM" = "yes" ; then
45900   cat >>confdefs.h <<\_ACEOF
45901 #define wxUSE_FONTENUM 1
45902 _ACEOF
45903
45904 fi
45905
45906 if test "$wxUSE_FONTMAP" = "yes" ; then
45907   cat >>confdefs.h <<\_ACEOF
45908 #define wxUSE_FONTMAP 1
45909 _ACEOF
45910
45911 fi
45912
45913 if test "$wxUSE_UNICODE" = "yes" ; then
45914   cat >>confdefs.h <<\_ACEOF
45915 #define wxUSE_UNICODE 1
45916 _ACEOF
45917
45918
45919   if test "$USE_WIN32" != 1; then
45920       wxUSE_UNICODE_MSLU=no
45921   fi
45922
45923   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45924         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45925 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45926 if test "${ac_cv_lib_unicows_main+set}" = set; then
45927   echo $ECHO_N "(cached) $ECHO_C" >&6
45928 else
45929   ac_check_lib_save_LIBS=$LIBS
45930 LIBS="-lunicows  $LIBS"
45931 cat >conftest.$ac_ext <<_ACEOF
45932 /* confdefs.h.  */
45933 _ACEOF
45934 cat confdefs.h >>conftest.$ac_ext
45935 cat >>conftest.$ac_ext <<_ACEOF
45936 /* end confdefs.h.  */
45937
45938
45939 int
45940 main ()
45941 {
45942 return main ();
45943   ;
45944   return 0;
45945 }
45946 _ACEOF
45947 rm -f conftest.$ac_objext conftest$ac_exeext
45948 if { (ac_try="$ac_link"
45949 case "(($ac_try" in
45950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45951   *) ac_try_echo=$ac_try;;
45952 esac
45953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45954   (eval "$ac_link") 2>conftest.er1
45955   ac_status=$?
45956   grep -v '^ *+' conftest.er1 >conftest.err
45957   rm -f conftest.er1
45958   cat conftest.err >&5
45959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45960   (exit $ac_status); } && {
45961          test -z "$ac_c_werror_flag" ||
45962          test ! -s conftest.err
45963        } && test -s conftest$ac_exeext &&
45964        $as_test_x conftest$ac_exeext; then
45965   ac_cv_lib_unicows_main=yes
45966 else
45967   echo "$as_me: failed program was:" >&5
45968 sed 's/^/| /' conftest.$ac_ext >&5
45969
45970         ac_cv_lib_unicows_main=no
45971 fi
45972
45973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45974       conftest$ac_exeext conftest.$ac_ext
45975 LIBS=$ac_check_lib_save_LIBS
45976 fi
45977 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45978 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45979 if test $ac_cv_lib_unicows_main = yes; then
45980
45981                 cat >>confdefs.h <<\_ACEOF
45982 #define wxUSE_UNICODE_MSLU 1
45983 _ACEOF
45984
45985
45986 else
45987
45988                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45989                              Applications will only run on Windows NT/2000/XP!" >&5
45990 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45991                              Applications will only run on Windows NT/2000/XP!" >&2;}
45992                 wxUSE_UNICODE_MSLU=no
45993
45994 fi
45995
45996     fi
45997 fi
45998
45999 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46000     cat >>confdefs.h <<\_ACEOF
46001 #define wxUSE_UNICODE_UTF8 1
46002 _ACEOF
46003
46004
46005     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46006         cat >>confdefs.h <<\_ACEOF
46007 #define wxUSE_UTF8_LOCALE_ONLY 1
46008 _ACEOF
46009
46010     fi
46011 fi
46012
46013
46014 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46015     cat >>confdefs.h <<\_ACEOF
46016 #define wxUSE_CONSTRAINTS 1
46017 _ACEOF
46018
46019     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46020 fi
46021
46022 if test "$wxUSE_MDI" = "yes"; then
46023     cat >>confdefs.h <<\_ACEOF
46024 #define wxUSE_MDI 1
46025 _ACEOF
46026
46027
46028     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46029         cat >>confdefs.h <<\_ACEOF
46030 #define wxUSE_MDI_ARCHITECTURE 1
46031 _ACEOF
46032
46033         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46034     fi
46035 fi
46036
46037 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46038     cat >>confdefs.h <<\_ACEOF
46039 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46040 _ACEOF
46041
46042     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46043 fi
46044
46045 if test "$wxUSE_HELP" = "yes"; then
46046     cat >>confdefs.h <<\_ACEOF
46047 #define wxUSE_HELP 1
46048 _ACEOF
46049
46050     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46051
46052     if test "$wxUSE_MSW" = 1; then
46053       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46054         cat >>confdefs.h <<\_ACEOF
46055 #define wxUSE_MS_HTML_HELP 1
46056 _ACEOF
46057
46058       fi
46059     fi
46060
46061     if test "$wxUSE_WXHTML_HELP" = "yes"; then
46062       if test "$wxUSE_HTML" = "yes"; then
46063         cat >>confdefs.h <<\_ACEOF
46064 #define wxUSE_WXHTML_HELP 1
46065 _ACEOF
46066
46067       else
46068         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46069 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46070         wxUSE_WXHTML_HELP=no
46071       fi
46072     fi
46073 fi
46074
46075 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46076     cat >>confdefs.h <<\_ACEOF
46077 #define wxUSE_PRINTING_ARCHITECTURE 1
46078 _ACEOF
46079
46080     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46081 fi
46082
46083 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46084   cat >>confdefs.h <<\_ACEOF
46085 #define wxUSE_POSTSCRIPT 1
46086 _ACEOF
46087
46088 fi
46089
46090 cat >>confdefs.h <<\_ACEOF
46091 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46092 _ACEOF
46093
46094
46095 if test "$wxUSE_SVG" = "yes"; then
46096     cat >>confdefs.h <<\_ACEOF
46097 #define wxUSE_SVG 1
46098 _ACEOF
46099
46100 fi
46101
46102
46103 if test "$wxUSE_METAFILE" = "yes"; then
46104     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46105         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46106 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46107         wxUSE_METAFILE=no
46108     fi
46109 fi
46110
46111
46112 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
46113                           -o "$wxUSE_CLIPBOARD"     = "yes" \
46114                           -o "$wxUSE_OLE"     = "yes" \
46115                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46116     { echo "$as_me:$LINENO: checking for ole2.h" >&5
46117 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
46118 if test "${ac_cv_header_ole2_h+set}" = set; then
46119   echo $ECHO_N "(cached) $ECHO_C" >&6
46120 else
46121   cat >conftest.$ac_ext <<_ACEOF
46122 /* confdefs.h.  */
46123 _ACEOF
46124 cat confdefs.h >>conftest.$ac_ext
46125 cat >>conftest.$ac_ext <<_ACEOF
46126 /* end confdefs.h.  */
46127
46128
46129 #include <ole2.h>
46130 _ACEOF
46131 rm -f conftest.$ac_objext
46132 if { (ac_try="$ac_compile"
46133 case "(($ac_try" in
46134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46135   *) ac_try_echo=$ac_try;;
46136 esac
46137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46138   (eval "$ac_compile") 2>conftest.er1
46139   ac_status=$?
46140   grep -v '^ *+' conftest.er1 >conftest.err
46141   rm -f conftest.er1
46142   cat conftest.err >&5
46143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46144   (exit $ac_status); } && {
46145          test -z "$ac_c_werror_flag" ||
46146          test ! -s conftest.err
46147        } && test -s conftest.$ac_objext; then
46148   ac_cv_header_ole2_h=yes
46149 else
46150   echo "$as_me: failed program was:" >&5
46151 sed 's/^/| /' conftest.$ac_ext >&5
46152
46153         ac_cv_header_ole2_h=no
46154 fi
46155
46156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46157 fi
46158 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46159 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
46160
46161
46162
46163     if test "$ac_cv_header_ole2_h" = "yes" ; then
46164         if test "$GCC" = yes ; then
46165             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46166 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
46167             cat >conftest.$ac_ext <<_ACEOF
46168 /* confdefs.h.  */
46169 _ACEOF
46170 cat confdefs.h >>conftest.$ac_ext
46171 cat >>conftest.$ac_ext <<_ACEOF
46172 /* end confdefs.h.  */
46173 #include <windows.h>
46174                             #include <ole2.h>
46175 int
46176 main ()
46177 {
46178
46179   ;
46180   return 0;
46181 }
46182 _ACEOF
46183 rm -f conftest.$ac_objext
46184 if { (ac_try="$ac_compile"
46185 case "(($ac_try" in
46186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46187   *) ac_try_echo=$ac_try;;
46188 esac
46189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46190   (eval "$ac_compile") 2>conftest.er1
46191   ac_status=$?
46192   grep -v '^ *+' conftest.er1 >conftest.err
46193   rm -f conftest.er1
46194   cat conftest.err >&5
46195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46196   (exit $ac_status); } && {
46197          test -z "$ac_c_werror_flag" ||
46198          test ! -s conftest.err
46199        } && test -s conftest.$ac_objext; then
46200   { echo "$as_me:$LINENO: result: no" >&5
46201 echo "${ECHO_T}no" >&6; }
46202 else
46203   echo "$as_me: failed program was:" >&5
46204 sed 's/^/| /' conftest.$ac_ext >&5
46205
46206         { echo "$as_me:$LINENO: result: yes" >&5
46207 echo "${ECHO_T}yes" >&6; }
46208                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
46209 fi
46210
46211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46212             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46213             if test "$wxUSE_OLE" = "yes" ; then
46214                 cat >>confdefs.h <<\_ACEOF
46215 #define wxUSE_OLE 1
46216 _ACEOF
46217
46218                 cat >>confdefs.h <<\_ACEOF
46219 #define wxUSE_OLE_AUTOMATION 1
46220 _ACEOF
46221
46222                 cat >>confdefs.h <<\_ACEOF
46223 #define wxUSE_ACTIVEX 1
46224 _ACEOF
46225
46226                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
46227             fi
46228         fi
46229
46230                 if test "$wxUSE_DATAOBJ" = "yes" ; then
46231             cat >>confdefs.h <<\_ACEOF
46232 #define wxUSE_DATAOBJ 1
46233 _ACEOF
46234
46235         fi
46236     else
46237         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46238 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46239
46240         wxUSE_CLIPBOARD=no
46241         wxUSE_DRAG_AND_DROP=no
46242         wxUSE_DATAOBJ=no
46243         wxUSE_OLE=no
46244     fi
46245
46246     if test "$wxUSE_METAFILE" = "yes"; then
46247         cat >>confdefs.h <<\_ACEOF
46248 #define wxUSE_METAFILE 1
46249 _ACEOF
46250
46251
46252                 cat >>confdefs.h <<\_ACEOF
46253 #define wxUSE_ENH_METAFILE 1
46254 _ACEOF
46255
46256     fi
46257 fi
46258
46259 if test "$wxUSE_IPC" = "yes"; then
46260     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
46261         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46262 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
46263         wxUSE_IPC=no
46264     fi
46265
46266     if test "$wxUSE_IPC" = "yes"; then
46267         cat >>confdefs.h <<\_ACEOF
46268 #define wxUSE_IPC 1
46269 _ACEOF
46270
46271         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46272     fi
46273 fi
46274
46275 if test "$wxUSE_DATAOBJ" = "yes"; then
46276     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46277         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46278 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
46279         wxUSE_DATAOBJ=no
46280     else
46281         cat >>confdefs.h <<\_ACEOF
46282 #define wxUSE_DATAOBJ 1
46283 _ACEOF
46284
46285     fi
46286 else
46287     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46288 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46289     wxUSE_CLIPBOARD=no
46290     wxUSE_DRAG_AND_DROP=no
46291 fi
46292
46293 if test "$wxUSE_CLIPBOARD" = "yes"; then
46294     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46295         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46296 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
46297         wxUSE_CLIPBOARD=no
46298     fi
46299
46300     if test "$wxUSE_CLIPBOARD" = "yes"; then
46301         cat >>confdefs.h <<\_ACEOF
46302 #define wxUSE_CLIPBOARD 1
46303 _ACEOF
46304
46305     fi
46306 fi
46307
46308 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46309     if test "$wxUSE_GTK" = 1; then
46310         if test "$WXGTK12" != 1; then
46311             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46312 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46313             wxUSE_DRAG_AND_DROP=no
46314         fi
46315     fi
46316
46317     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46318             "$wxUSE_DFB" = 1; then
46319         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46320 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
46321         wxUSE_DRAG_AND_DROP=no
46322     fi
46323
46324     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46325         cat >>confdefs.h <<\_ACEOF
46326 #define wxUSE_DRAG_AND_DROP 1
46327 _ACEOF
46328
46329     fi
46330
46331 fi
46332
46333 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46334     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46335 fi
46336
46337 if test "$wxUSE_CLIPBOARD" = "yes"; then
46338     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
46339 fi
46340
46341 if test "$wxUSE_SPLINES" = "yes" ; then
46342   cat >>confdefs.h <<\_ACEOF
46343 #define wxUSE_SPLINES 1
46344 _ACEOF
46345
46346 fi
46347
46348 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46349   cat >>confdefs.h <<\_ACEOF
46350 #define wxUSE_MOUSEWHEEL 1
46351 _ACEOF
46352
46353 fi
46354
46355 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
46356     cat >>confdefs.h <<\_ACEOF
46357 #define wxUSE_UIACTIONSIMULATOR 1
46358 _ACEOF
46359
46360     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
46361 fi
46362
46363
46364 USES_CONTROLS=0
46365 if test "$wxUSE_CONTROLS" = "yes"; then
46366   USES_CONTROLS=1
46367 fi
46368
46369 if test "$wxUSE_ACCEL" = "yes"; then
46370   cat >>confdefs.h <<\_ACEOF
46371 #define wxUSE_ACCEL 1
46372 _ACEOF
46373
46374   USES_CONTROLS=1
46375 fi
46376
46377 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
46378   cat >>confdefs.h <<\_ACEOF
46379 #define wxUSE_ANIMATIONCTRL 1
46380 _ACEOF
46381
46382   USES_CONTROLS=1
46383   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46384 fi
46385
46386 if test "$wxUSE_BUTTON" = "yes"; then
46387   cat >>confdefs.h <<\_ACEOF
46388 #define wxUSE_BUTTON 1
46389 _ACEOF
46390
46391   USES_CONTROLS=1
46392 fi
46393
46394 if test "$wxUSE_BMPBUTTON" = "yes"; then
46395   cat >>confdefs.h <<\_ACEOF
46396 #define wxUSE_BMPBUTTON 1
46397 _ACEOF
46398
46399   USES_CONTROLS=1
46400 fi
46401
46402 if test "$wxUSE_CALCTRL" = "yes"; then
46403   cat >>confdefs.h <<\_ACEOF
46404 #define wxUSE_CALENDARCTRL 1
46405 _ACEOF
46406
46407   USES_CONTROLS=1
46408   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46409 fi
46410
46411 if test "$wxUSE_CARET" = "yes"; then
46412   cat >>confdefs.h <<\_ACEOF
46413 #define wxUSE_CARET 1
46414 _ACEOF
46415
46416   USES_CONTROLS=1
46417   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46418 fi
46419
46420 if test "$wxUSE_COLLPANE" = "yes"; then
46421     cat >>confdefs.h <<\_ACEOF
46422 #define wxUSE_COLLPANE 1
46423 _ACEOF
46424
46425     USES_CONTROLS=1
46426     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46427 fi
46428
46429 if test "$wxUSE_COMBOBOX" = "yes"; then
46430   cat >>confdefs.h <<\_ACEOF
46431 #define wxUSE_COMBOBOX 1
46432 _ACEOF
46433
46434   USES_CONTROLS=1
46435 fi
46436
46437 if test "$wxUSE_COMBOCTRL" = "yes"; then
46438   cat >>confdefs.h <<\_ACEOF
46439 #define wxUSE_COMBOCTRL 1
46440 _ACEOF
46441
46442   USES_CONTROLS=1
46443 fi
46444
46445 if test "$wxUSE_CHOICE" = "yes"; then
46446   cat >>confdefs.h <<\_ACEOF
46447 #define wxUSE_CHOICE 1
46448 _ACEOF
46449
46450   USES_CONTROLS=1
46451 fi
46452
46453 if test "$wxUSE_CHOICEBOOK" = "yes"; then
46454     cat >>confdefs.h <<\_ACEOF
46455 #define wxUSE_CHOICEBOOK 1
46456 _ACEOF
46457
46458     USES_CONTROLS=1
46459 fi
46460
46461 if test "$wxUSE_CHECKBOX" = "yes"; then
46462   cat >>confdefs.h <<\_ACEOF
46463 #define wxUSE_CHECKBOX 1
46464 _ACEOF
46465
46466   USES_CONTROLS=1
46467 fi
46468
46469 if test "$wxUSE_CHECKLST" = "yes"; then
46470   cat >>confdefs.h <<\_ACEOF
46471 #define wxUSE_CHECKLISTBOX 1
46472 _ACEOF
46473
46474   USES_CONTROLS=1
46475 fi
46476
46477 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46478   cat >>confdefs.h <<\_ACEOF
46479 #define wxUSE_COLOURPICKERCTRL 1
46480 _ACEOF
46481
46482   USES_CONTROLS=1
46483 fi
46484
46485 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46486   cat >>confdefs.h <<\_ACEOF
46487 #define wxUSE_DATEPICKCTRL 1
46488 _ACEOF
46489
46490   USES_CONTROLS=1
46491 fi
46492
46493 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46494   cat >>confdefs.h <<\_ACEOF
46495 #define wxUSE_DIRPICKERCTRL 1
46496 _ACEOF
46497
46498   USES_CONTROLS=1
46499 fi
46500
46501 if test "$wxUSE_FILECTRL" = "yes"; then
46502   cat >>confdefs.h <<\_ACEOF
46503 #define wxUSE_FILECTRL 1
46504 _ACEOF
46505
46506   USES_CONTROLS=1
46507 fi
46508
46509 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46510   cat >>confdefs.h <<\_ACEOF
46511 #define wxUSE_FILEPICKERCTRL 1
46512 _ACEOF
46513
46514   USES_CONTROLS=1
46515 fi
46516
46517 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46518   cat >>confdefs.h <<\_ACEOF
46519 #define wxUSE_FONTPICKERCTRL 1
46520 _ACEOF
46521
46522   USES_CONTROLS=1
46523 fi
46524
46525 if test "$wxUSE_DISPLAY" = "yes"; then
46526     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
46527         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
46528 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
46529         wxUSE_DISPLAY=no
46530     else
46531         cat >>confdefs.h <<\_ACEOF
46532 #define wxUSE_DISPLAY 1
46533 _ACEOF
46534
46535         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
46536     fi
46537 fi
46538
46539 if test "$wxUSE_DETECT_SM" = "yes"; then
46540     cat >>confdefs.h <<\_ACEOF
46541 #define wxUSE_DETECT_SM 1
46542 _ACEOF
46543
46544 fi
46545
46546 if test "$wxUSE_GAUGE" = "yes"; then
46547   cat >>confdefs.h <<\_ACEOF
46548 #define wxUSE_GAUGE 1
46549 _ACEOF
46550
46551   USES_CONTROLS=1
46552 fi
46553
46554 if test "$wxUSE_GRID" = "yes"; then
46555   cat >>confdefs.h <<\_ACEOF
46556 #define wxUSE_GRID 1
46557 _ACEOF
46558
46559   USES_CONTROLS=1
46560   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46561 fi
46562
46563 if test "$wxUSE_HEADERCTRL" = "yes"; then
46564   cat >>confdefs.h <<\_ACEOF
46565 #define wxUSE_HEADERCTRL 1
46566 _ACEOF
46567
46568   USES_CONTROLS=1
46569 fi
46570
46571 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46572   cat >>confdefs.h <<\_ACEOF
46573 #define wxUSE_HYPERLINKCTRL 1
46574 _ACEOF
46575
46576   USES_CONTROLS=1
46577 fi
46578
46579 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46580   cat >>confdefs.h <<\_ACEOF
46581 #define wxUSE_BITMAPCOMBOBOX 1
46582 _ACEOF
46583
46584   USES_CONTROLS=1
46585 fi
46586
46587 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46588   cat >>confdefs.h <<\_ACEOF
46589 #define wxUSE_DATAVIEWCTRL 1
46590 _ACEOF
46591
46592   USES_CONTROLS=1
46593   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46594 fi
46595
46596 if test "$wxUSE_IMAGLIST" = "yes"; then
46597     cat >>confdefs.h <<\_ACEOF
46598 #define wxUSE_IMAGLIST 1
46599 _ACEOF
46600
46601 fi
46602
46603 if test "$wxUSE_INFOBAR" = "yes"; then
46604     cat >>confdefs.h <<\_ACEOF
46605 #define wxUSE_INFOBAR 1
46606 _ACEOF
46607
46608 fi
46609
46610 if test "$wxUSE_LISTBOOK" = "yes"; then
46611     cat >>confdefs.h <<\_ACEOF
46612 #define wxUSE_LISTBOOK 1
46613 _ACEOF
46614
46615     USES_CONTROLS=1
46616 fi
46617
46618 if test "$wxUSE_LISTBOX" = "yes"; then
46619     cat >>confdefs.h <<\_ACEOF
46620 #define wxUSE_LISTBOX 1
46621 _ACEOF
46622
46623     USES_CONTROLS=1
46624 fi
46625
46626 if test "$wxUSE_LISTCTRL" = "yes"; then
46627     if test "$wxUSE_IMAGLIST" = "yes"; then
46628         cat >>confdefs.h <<\_ACEOF
46629 #define wxUSE_LISTCTRL 1
46630 _ACEOF
46631
46632         USES_CONTROLS=1
46633         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46634     else
46635         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46636 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46637     fi
46638 fi
46639
46640 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
46641     cat >>confdefs.h <<\_ACEOF
46642 #define wxUSE_EDITABLELISTBOX 1
46643 _ACEOF
46644
46645     USES_CONTROLS=1
46646 fi
46647
46648 if test "$wxUSE_NOTEBOOK" = "yes"; then
46649     cat >>confdefs.h <<\_ACEOF
46650 #define wxUSE_NOTEBOOK 1
46651 _ACEOF
46652
46653     USES_CONTROLS=1
46654     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46655 fi
46656
46657 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
46658     cat >>confdefs.h <<\_ACEOF
46659 #define wxUSE_NOTIFICATION_MESSAGE 1
46660 _ACEOF
46661
46662 fi
46663
46664 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
46665   cat >>confdefs.h <<\_ACEOF
46666 #define wxUSE_ODCOMBOBOX 1
46667 _ACEOF
46668
46669   USES_CONTROLS=1
46670   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46671 fi
46672
46673 if test "$wxUSE_RADIOBOX" = "yes"; then
46674     cat >>confdefs.h <<\_ACEOF
46675 #define wxUSE_RADIOBOX 1
46676 _ACEOF
46677
46678     USES_CONTROLS=1
46679 fi
46680
46681 if test "$wxUSE_RADIOBTN" = "yes"; then
46682     cat >>confdefs.h <<\_ACEOF
46683 #define wxUSE_RADIOBTN 1
46684 _ACEOF
46685
46686     USES_CONTROLS=1
46687 fi
46688
46689 if test "$wxUSE_REARRANGECTRL" = "yes"; then
46690     cat >>confdefs.h <<\_ACEOF
46691 #define wxUSE_REARRANGECTRL 1
46692 _ACEOF
46693
46694 fi
46695
46696 if test "$wxUSE_SASH" = "yes"; then
46697     cat >>confdefs.h <<\_ACEOF
46698 #define wxUSE_SASH 1
46699 _ACEOF
46700
46701     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46702 fi
46703
46704 if test "$wxUSE_SCROLLBAR" = "yes"; then
46705     cat >>confdefs.h <<\_ACEOF
46706 #define wxUSE_SCROLLBAR 1
46707 _ACEOF
46708
46709     USES_CONTROLS=1
46710     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
46711 fi
46712
46713 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46714     cat >>confdefs.h <<\_ACEOF
46715 #define wxUSE_SEARCHCTRL 1
46716 _ACEOF
46717
46718     USES_CONTROLS=1
46719 fi
46720
46721 if test "$wxUSE_SLIDER" = "yes"; then
46722     cat >>confdefs.h <<\_ACEOF
46723 #define wxUSE_SLIDER 1
46724 _ACEOF
46725
46726     USES_CONTROLS=1
46727 fi
46728
46729 if test "$wxUSE_SPINBTN" = "yes"; then
46730     cat >>confdefs.h <<\_ACEOF
46731 #define wxUSE_SPINBTN 1
46732 _ACEOF
46733
46734     USES_CONTROLS=1
46735 fi
46736
46737 if test "$wxUSE_SPINCTRL" = "yes"; then
46738     cat >>confdefs.h <<\_ACEOF
46739 #define wxUSE_SPINCTRL 1
46740 _ACEOF
46741
46742     USES_CONTROLS=1
46743 fi
46744
46745 if test "$wxUSE_SPLITTER" = "yes"; then
46746     cat >>confdefs.h <<\_ACEOF
46747 #define wxUSE_SPLITTER 1
46748 _ACEOF
46749
46750     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46751 fi
46752
46753 if test "$wxUSE_STATBMP" = "yes"; then
46754     cat >>confdefs.h <<\_ACEOF
46755 #define wxUSE_STATBMP 1
46756 _ACEOF
46757
46758     USES_CONTROLS=1
46759 fi
46760
46761 if test "$wxUSE_STATBOX" = "yes"; then
46762     cat >>confdefs.h <<\_ACEOF
46763 #define wxUSE_STATBOX 1
46764 _ACEOF
46765
46766     USES_CONTROLS=1
46767 fi
46768
46769 if test "$wxUSE_STATTEXT" = "yes"; then
46770     cat >>confdefs.h <<\_ACEOF
46771 #define wxUSE_STATTEXT 1
46772 _ACEOF
46773
46774     USES_CONTROLS=1
46775 fi
46776
46777 if test "$wxUSE_STATLINE" = "yes"; then
46778     cat >>confdefs.h <<\_ACEOF
46779 #define wxUSE_STATLINE 1
46780 _ACEOF
46781
46782     USES_CONTROLS=1
46783 fi
46784
46785 if test "$wxUSE_STATUSBAR" = "yes"; then
46786         cat >>confdefs.h <<\_ACEOF
46787 #define wxUSE_NATIVE_STATUSBAR 1
46788 _ACEOF
46789
46790     cat >>confdefs.h <<\_ACEOF
46791 #define wxUSE_STATUSBAR 1
46792 _ACEOF
46793
46794     USES_CONTROLS=1
46795
46796     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46797 fi
46798
46799 if test "$wxUSE_TEXTCTRL" = "yes"; then
46800     cat >>confdefs.h <<\_ACEOF
46801 #define wxUSE_TEXTCTRL 1
46802 _ACEOF
46803
46804     USES_CONTROLS=1
46805     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46806
46807             cat >>confdefs.h <<\_ACEOF
46808 #define wxUSE_RICHEDIT 1
46809 _ACEOF
46810
46811     cat >>confdefs.h <<\_ACEOF
46812 #define wxUSE_RICHEDIT2 1
46813 _ACEOF
46814
46815 fi
46816
46817 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46818     if test "$wxUSE_OLD_COCOA" = 1 ; then
46819         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46820 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46821         wxUSE_TOGGLEBTN=no
46822     fi
46823
46824     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46825         cat >>confdefs.h <<\_ACEOF
46826 #define wxUSE_TOGGLEBTN 1
46827 _ACEOF
46828
46829         USES_CONTROLS=1
46830     fi
46831 fi
46832
46833 if test "$wxUSE_TOOLBAR" = "yes"; then
46834     cat >>confdefs.h <<\_ACEOF
46835 #define wxUSE_TOOLBAR 1
46836 _ACEOF
46837
46838     USES_CONTROLS=1
46839
46840     if test "$wxUSE_UNIVERSAL" = "yes"; then
46841         wxUSE_TOOLBAR_NATIVE="no"
46842     else
46843         wxUSE_TOOLBAR_NATIVE="yes"
46844         cat >>confdefs.h <<\_ACEOF
46845 #define wxUSE_TOOLBAR_NATIVE 1
46846 _ACEOF
46847
46848     fi
46849
46850     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46851 fi
46852
46853 if test "$wxUSE_TOOLTIPS" = "yes"; then
46854     if test "$wxUSE_MOTIF" = 1; then
46855         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46856 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46857     else
46858         if test "$wxUSE_UNIVERSAL" = "yes"; then
46859             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46860 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46861         else
46862             cat >>confdefs.h <<\_ACEOF
46863 #define wxUSE_TOOLTIPS 1
46864 _ACEOF
46865
46866         fi
46867     fi
46868 fi
46869
46870 if test "$wxUSE_TREEBOOK" = "yes"; then
46871     cat >>confdefs.h <<\_ACEOF
46872 #define wxUSE_TREEBOOK 1
46873 _ACEOF
46874
46875     USES_CONTROLS=1
46876 fi
46877
46878 if test "$wxUSE_TOOLBOOK" = "yes"; then
46879     cat >>confdefs.h <<\_ACEOF
46880 #define wxUSE_TOOLBOOK 1
46881 _ACEOF
46882
46883     USES_CONTROLS=1
46884 fi
46885
46886 if test "$wxUSE_TREECTRL" = "yes"; then
46887     if test "$wxUSE_IMAGLIST" = "yes"; then
46888         cat >>confdefs.h <<\_ACEOF
46889 #define wxUSE_TREECTRL 1
46890 _ACEOF
46891
46892         USES_CONTROLS=1
46893         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46894     else
46895         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46896 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46897     fi
46898 fi
46899
46900 if test "$wxUSE_POPUPWIN" = "yes"; then
46901     if test "$wxUSE_OLD_COCOA" = 1 ; then
46902         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46903 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46904     else
46905         if test "$wxUSE_PM" = 1; then
46906             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46907 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46908         else
46909             cat >>confdefs.h <<\_ACEOF
46910 #define wxUSE_POPUPWIN 1
46911 _ACEOF
46912
46913             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46914
46915             USES_CONTROLS=1
46916         fi
46917     fi
46918 fi
46919
46920 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46921     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46922         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46923 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46924     else
46925         cat >>confdefs.h <<\_ACEOF
46926 #define wxUSE_DIALUP_MANAGER 1
46927 _ACEOF
46928
46929         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46930     fi
46931 fi
46932
46933 if test "$wxUSE_TIPWINDOW" = "yes"; then
46934     if test "$wxUSE_PM" = 1; then
46935         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46936 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46937     else
46938         cat >>confdefs.h <<\_ACEOF
46939 #define wxUSE_TIPWINDOW 1
46940 _ACEOF
46941
46942     fi
46943 fi
46944
46945 if test "$USES_CONTROLS" = 1; then
46946     cat >>confdefs.h <<\_ACEOF
46947 #define wxUSE_CONTROLS 1
46948 _ACEOF
46949
46950 fi
46951
46952
46953 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46954     cat >>confdefs.h <<\_ACEOF
46955 #define wxUSE_ACCESSIBILITY 1
46956 _ACEOF
46957
46958     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46959 fi
46960
46961 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46962     cat >>confdefs.h <<\_ACEOF
46963 #define wxUSE_DRAGIMAGE 1
46964 _ACEOF
46965
46966     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46967 fi
46968
46969 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46970     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46971         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46972 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46973     else
46974         cat >>confdefs.h <<\_ACEOF
46975 #define wxUSE_EXCEPTIONS 1
46976 _ACEOF
46977
46978         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46979     fi
46980 fi
46981
46982 USE_HTML=0
46983 if test "$wxUSE_HTML" = "yes"; then
46984     cat >>confdefs.h <<\_ACEOF
46985 #define wxUSE_HTML 1
46986 _ACEOF
46987
46988     USE_HTML=1
46989     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46990 fi
46991 if test "$wxUSE_WEBKIT" = "yes"; then
46992     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46993         old_CPPFLAGS="$CPPFLAGS"
46994         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46995         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46996 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46997 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46998   echo $ECHO_N "(cached) $ECHO_C" >&6
46999 else
47000   cat >conftest.$ac_ext <<_ACEOF
47001 /* confdefs.h.  */
47002 _ACEOF
47003 cat confdefs.h >>conftest.$ac_ext
47004 cat >>conftest.$ac_ext <<_ACEOF
47005 /* end confdefs.h.  */
47006
47007                            #include <Carbon/Carbon.h>
47008                            #include <WebKit/WebKit.h>
47009
47010
47011 #include <WebKit/HIWebView.h>
47012 _ACEOF
47013 rm -f conftest.$ac_objext
47014 if { (ac_try="$ac_compile"
47015 case "(($ac_try" in
47016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47017   *) ac_try_echo=$ac_try;;
47018 esac
47019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47020   (eval "$ac_compile") 2>conftest.er1
47021   ac_status=$?
47022   grep -v '^ *+' conftest.er1 >conftest.err
47023   rm -f conftest.er1
47024   cat conftest.err >&5
47025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47026   (exit $ac_status); } && {
47027          test -z "$ac_c_werror_flag" ||
47028          test ! -s conftest.err
47029        } && test -s conftest.$ac_objext; then
47030   ac_cv_header_WebKit_HIWebView_h=yes
47031 else
47032   echo "$as_me: failed program was:" >&5
47033 sed 's/^/| /' conftest.$ac_ext >&5
47034
47035         ac_cv_header_WebKit_HIWebView_h=no
47036 fi
47037
47038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47039 fi
47040 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47041 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
47042 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
47043
47044                            cat >>confdefs.h <<\_ACEOF
47045 #define wxUSE_WEBKIT 1
47046 _ACEOF
47047
47048                            WEBKIT_LINK="-framework WebKit"
47049
47050 else
47051
47052                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47053 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47054                            wxUSE_WEBKIT=no
47055
47056 fi
47057
47058
47059         CPPFLAGS="$old_CPPFLAGS"
47060     elif test "$wxUSE_OLD_COCOA" = 1; then
47061         cat >>confdefs.h <<\_ACEOF
47062 #define wxUSE_WEBKIT 1
47063 _ACEOF
47064
47065     else
47066         wxUSE_WEBKIT=no
47067     fi
47068     if test "$wxUSE_WEBKIT" = "yes"; then
47069         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47070     fi
47071 fi
47072
47073 USE_XRC=0
47074 if test "$wxUSE_XRC" = "yes"; then
47075     if test "$wxUSE_XML" != "yes"; then
47076         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47077 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47078         wxUSE_XRC=no
47079     else
47080         cat >>confdefs.h <<\_ACEOF
47081 #define wxUSE_XRC 1
47082 _ACEOF
47083
47084         USE_XRC=1
47085         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47086     fi
47087 fi
47088
47089 USE_AUI=0
47090 if test "$wxUSE_AUI" = "yes"; then
47091    cat >>confdefs.h <<\_ACEOF
47092 #define wxUSE_AUI 1
47093 _ACEOF
47094
47095    USE_AUI=1
47096    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47097 fi
47098
47099 USE_PROPGRID=0
47100 if test "$wxUSE_PROPGRID" = "yes"; then
47101    cat >>confdefs.h <<\_ACEOF
47102 #define wxUSE_PROPGRID 1
47103 _ACEOF
47104
47105    USE_PROPGRID=1
47106    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
47107 fi
47108
47109 USE_RIBBON=0
47110 if test "$wxUSE_RIBBON" = "yes"; then
47111    cat >>confdefs.h <<\_ACEOF
47112 #define wxUSE_RIBBON 1
47113 _ACEOF
47114
47115    USE_RIBBON=1
47116    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
47117 fi
47118
47119 USE_STC=0
47120 if test "$wxUSE_STC" = "yes"; then
47121    cat >>confdefs.h <<\_ACEOF
47122 #define wxUSE_STC 1
47123 _ACEOF
47124
47125    USE_STC=1
47126    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
47127
47128       # Extract the first word of "python", so it can be a program name with args.
47129 set dummy python; ac_word=$2
47130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47132 if test "${ac_cv_path_PYTHON+set}" = set; then
47133   echo $ECHO_N "(cached) $ECHO_C" >&6
47134 else
47135   case $PYTHON in
47136   [\\/]* | ?:[\\/]*)
47137   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
47138   ;;
47139   *)
47140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47141 for as_dir in $PATH
47142 do
47143   IFS=$as_save_IFS
47144   test -z "$as_dir" && as_dir=.
47145   for ac_exec_ext in '' $ac_executable_extensions; do
47146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47147     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
47148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47149     break 2
47150   fi
47151 done
47152 done
47153 IFS=$as_save_IFS
47154
47155   ;;
47156 esac
47157 fi
47158 PYTHON=$ac_cv_path_PYTHON
47159 if test -n "$PYTHON"; then
47160   { echo "$as_me:$LINENO: result: $PYTHON" >&5
47161 echo "${ECHO_T}$PYTHON" >&6; }
47162 else
47163   { echo "$as_me:$LINENO: result: no" >&5
47164 echo "${ECHO_T}no" >&6; }
47165 fi
47166
47167
47168    if test "x$PYTHON" = "x"; then
47169      COND_PYTHON="#"
47170    fi
47171
47172 fi
47173
47174 if test "$wxUSE_MENUS" = "yes"; then
47175     cat >>confdefs.h <<\_ACEOF
47176 #define wxUSE_MENUS 1
47177 _ACEOF
47178
47179     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
47180 fi
47181
47182 if test "$wxUSE_METAFILE" = "yes"; then
47183     cat >>confdefs.h <<\_ACEOF
47184 #define wxUSE_METAFILE 1
47185 _ACEOF
47186
47187 fi
47188
47189 if test "$wxUSE_MIMETYPE" = "yes"; then
47190     cat >>confdefs.h <<\_ACEOF
47191 #define wxUSE_MIMETYPE 1
47192 _ACEOF
47193
47194 fi
47195
47196 if test "$wxUSE_MINIFRAME" = "yes"; then
47197     cat >>confdefs.h <<\_ACEOF
47198 #define wxUSE_MINIFRAME 1
47199 _ACEOF
47200
47201 fi
47202
47203 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
47204     cat >>confdefs.h <<\_ACEOF
47205 #define wxUSE_SYSTEM_OPTIONS 1
47206 _ACEOF
47207
47208 fi
47209
47210 if test "$wxUSE_TASKBARICON" = "yes"; then
47211     cat >>confdefs.h <<\_ACEOF
47212 #define wxUSE_TASKBARICON 1
47213 _ACEOF
47214
47215     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
47216 fi
47217
47218
47219 if test "$wxUSE_VALIDATORS" = "yes"; then
47220     cat >>confdefs.h <<\_ACEOF
47221 #define wxUSE_VALIDATORS 1
47222 _ACEOF
47223
47224     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
47225 fi
47226
47227 if test "$wxUSE_PALETTE" = "yes" ; then
47228     if test "$wxUSE_DFB" = 1; then
47229         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
47230 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
47231         wxUSE_PALETTE=no
47232     else
47233         cat >>confdefs.h <<\_ACEOF
47234 #define wxUSE_PALETTE 1
47235 _ACEOF
47236
47237     fi
47238 fi
47239
47240 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
47241     LIBS=" -lunicows $LIBS"
47242 fi
47243
47244 USE_RICHTEXT=0
47245 if test "$wxUSE_RICHTEXT" = "yes"; then
47246     cat >>confdefs.h <<\_ACEOF
47247 #define wxUSE_RICHTEXT 1
47248 _ACEOF
47249
47250     USE_RICHTEXT=1
47251     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
47252 fi
47253
47254
47255 if test "$wxUSE_IMAGE" = "yes" ; then
47256     cat >>confdefs.h <<\_ACEOF
47257 #define wxUSE_IMAGE 1
47258 _ACEOF
47259
47260
47261     if test "$wxUSE_GIF" = "yes" ; then
47262       cat >>confdefs.h <<\_ACEOF
47263 #define wxUSE_GIF 1
47264 _ACEOF
47265
47266     fi
47267
47268     if test "$wxUSE_PCX" = "yes" ; then
47269       cat >>confdefs.h <<\_ACEOF
47270 #define wxUSE_PCX 1
47271 _ACEOF
47272
47273     fi
47274
47275     if test "$wxUSE_TGA" = "yes" ; then
47276       cat >>confdefs.h <<\_ACEOF
47277 #define wxUSE_TGA 1
47278 _ACEOF
47279
47280     fi
47281
47282     if test "$wxUSE_IFF" = "yes" ; then
47283       cat >>confdefs.h <<\_ACEOF
47284 #define wxUSE_IFF 1
47285 _ACEOF
47286
47287     fi
47288
47289     if test "$wxUSE_PNM" = "yes" ; then
47290       cat >>confdefs.h <<\_ACEOF
47291 #define wxUSE_PNM 1
47292 _ACEOF
47293
47294     fi
47295
47296     if test "$wxUSE_XPM" = "yes" ; then
47297       cat >>confdefs.h <<\_ACEOF
47298 #define wxUSE_XPM 1
47299 _ACEOF
47300
47301     fi
47302
47303     if test "$wxUSE_ICO_CUR" = "yes" ; then
47304       cat >>confdefs.h <<\_ACEOF
47305 #define wxUSE_ICO_CUR 1
47306 _ACEOF
47307
47308     fi
47309 fi
47310
47311
47312 if test "$wxUSE_ABOUTDLG" = "yes"; then
47313     cat >>confdefs.h <<\_ACEOF
47314 #define wxUSE_ABOUTDLG 1
47315 _ACEOF
47316
47317 fi
47318
47319 if test "$wxUSE_CHOICEDLG" = "yes"; then
47320     cat >>confdefs.h <<\_ACEOF
47321 #define wxUSE_CHOICEDLG 1
47322 _ACEOF
47323
47324 fi
47325
47326 if test "$wxUSE_COLOURDLG" = "yes"; then
47327     cat >>confdefs.h <<\_ACEOF
47328 #define wxUSE_COLOURDLG 1
47329 _ACEOF
47330
47331 fi
47332
47333 if test "$wxUSE_FILEDLG" = "yes"; then
47334     cat >>confdefs.h <<\_ACEOF
47335 #define wxUSE_FILEDLG 1
47336 _ACEOF
47337
47338 fi
47339
47340 if test "$wxUSE_FINDREPLDLG" = "yes"; then
47341     cat >>confdefs.h <<\_ACEOF
47342 #define wxUSE_FINDREPLDLG 1
47343 _ACEOF
47344
47345 fi
47346
47347 if test "$wxUSE_FONTDLG" = "yes"; then
47348     cat >>confdefs.h <<\_ACEOF
47349 #define wxUSE_FONTDLG 1
47350 _ACEOF
47351
47352 fi
47353
47354 if test "$wxUSE_DIRDLG" = "yes"; then
47355     if test "$wxUSE_TREECTRL" != "yes"; then
47356         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47357 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
47358     else
47359         cat >>confdefs.h <<\_ACEOF
47360 #define wxUSE_DIRDLG 1
47361 _ACEOF
47362
47363     fi
47364 fi
47365
47366 if test "$wxUSE_MSGDLG" = "yes"; then
47367     cat >>confdefs.h <<\_ACEOF
47368 #define wxUSE_MSGDLG 1
47369 _ACEOF
47370
47371 fi
47372
47373 if test "$wxUSE_NUMBERDLG" = "yes"; then
47374     cat >>confdefs.h <<\_ACEOF
47375 #define wxUSE_NUMBERDLG 1
47376 _ACEOF
47377
47378 fi
47379
47380 if test "$wxUSE_PROGRESSDLG" = "yes"; then
47381     cat >>confdefs.h <<\_ACEOF
47382 #define wxUSE_PROGRESSDLG 1
47383 _ACEOF
47384
47385 fi
47386
47387 if test "$wxUSE_SPLASH" = "yes"; then
47388     cat >>confdefs.h <<\_ACEOF
47389 #define wxUSE_SPLASH 1
47390 _ACEOF
47391
47392     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
47393 fi
47394
47395 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47396     cat >>confdefs.h <<\_ACEOF
47397 #define wxUSE_STARTUP_TIPS 1
47398 _ACEOF
47399
47400 fi
47401
47402 if test "$wxUSE_TEXTDLG" = "yes"; then
47403     cat >>confdefs.h <<\_ACEOF
47404 #define wxUSE_TEXTDLG 1
47405 _ACEOF
47406
47407 fi
47408
47409 if test "$wxUSE_WIZARDDLG" = "yes"; then
47410     cat >>confdefs.h <<\_ACEOF
47411 #define wxUSE_WIZARDDLG 1
47412 _ACEOF
47413
47414     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47415 fi
47416
47417
47418 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
47419     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
47420         cat >>confdefs.h <<\_ACEOF
47421 #define wxUSE_OWNER_DRAWN 1
47422 _ACEOF
47423
47424     fi
47425 fi
47426
47427
47428 if test "$wxUSE_MSW" = 1 ; then
47429
47430     if test "$wxUSE_DC_CACHEING" = "yes"; then
47431         cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_DC_CACHEING 1
47433 _ACEOF
47434
47435     fi
47436
47437     if test "$wxUSE_DIB" = "yes"; then
47438         cat >>confdefs.h <<\_ACEOF
47439 #define wxUSE_WXDIB 1
47440 _ACEOF
47441
47442     fi
47443
47444     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
47445         cat >>confdefs.h <<\_ACEOF
47446 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
47447 _ACEOF
47448
47449     fi
47450
47451     if test "$wxUSE_UXTHEME" = "yes"; then
47452         cat >>confdefs.h <<\_ACEOF
47453 #define wxUSE_UXTHEME 1
47454 _ACEOF
47455
47456     fi
47457
47458 fi
47459
47460 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
47461     cat >>confdefs.h <<\_ACEOF
47462 #define wxUSE_AUTOID_MANAGEMENT 1
47463 _ACEOF
47464
47465 fi
47466
47467 if test "$USE_WIN32" = 1 ; then
47468     if test "$wxUSE_INICONF" = "yes"; then
47469         cat >>confdefs.h <<\_ACEOF
47470 #define wxUSE_INICONF 1
47471 _ACEOF
47472
47473     fi
47474
47475     if test "$wxUSE_REGKEY" = "yes"; then
47476         cat >>confdefs.h <<\_ACEOF
47477 #define wxUSE_REGKEY 1
47478 _ACEOF
47479
47480     fi
47481 fi
47482
47483
47484 if test "$wxUSE_MAC" = 1; then
47485     wxUSE_GRAPHICS_CONTEXT="yes"
47486 fi
47487
47488 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47489     wx_has_graphics=0
47490     if test "$wxUSE_MSW" = 1; then
47491         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
47492 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
47493 if test "${wx_cv_lib_gdiplus+set}" = set; then
47494   echo $ECHO_N "(cached) $ECHO_C" >&6
47495 else
47496
47497                                                 ac_ext=cpp
47498 ac_cpp='$CXXCPP $CPPFLAGS'
47499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47502
47503                 cat >conftest.$ac_ext <<_ACEOF
47504 /* confdefs.h.  */
47505 _ACEOF
47506 cat confdefs.h >>conftest.$ac_ext
47507 cat >>conftest.$ac_ext <<_ACEOF
47508 /* end confdefs.h.  */
47509 #include <windows.h>
47510                      #include <gdiplus.h>
47511 int
47512 main ()
47513 {
47514
47515                         using namespace Gdiplus;
47516
47517   ;
47518   return 0;
47519 }
47520 _ACEOF
47521 rm -f conftest.$ac_objext
47522 if { (ac_try="$ac_compile"
47523 case "(($ac_try" in
47524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47525   *) ac_try_echo=$ac_try;;
47526 esac
47527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47528   (eval "$ac_compile") 2>conftest.er1
47529   ac_status=$?
47530   grep -v '^ *+' conftest.er1 >conftest.err
47531   rm -f conftest.er1
47532   cat conftest.err >&5
47533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47534   (exit $ac_status); } && {
47535          test -z "$ac_cxx_werror_flag" ||
47536          test ! -s conftest.err
47537        } && test -s conftest.$ac_objext; then
47538   wx_cv_lib_gdiplus=yes
47539 else
47540   echo "$as_me: failed program was:" >&5
47541 sed 's/^/| /' conftest.$ac_ext >&5
47542
47543         wx_cv_lib_gdiplus=no
47544
47545 fi
47546
47547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47548                 ac_ext=c
47549 ac_cpp='$CPP $CPPFLAGS'
47550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47553
47554
47555
47556 fi
47557 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
47558 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
47559         if test "$wx_cv_lib_gdiplus" = "yes"; then
47560             wx_has_graphics=1
47561         fi
47562     elif test "$wxUSE_GTK" = 1; then
47563
47564 pkg_failed=no
47565 { echo "$as_me:$LINENO: checking for CAIRO" >&5
47566 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
47567
47568 if test -n "$PKG_CONFIG"; then
47569     if test -n "$CAIRO_CFLAGS"; then
47570         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47571     else
47572         if test -n "$PKG_CONFIG" && \
47573     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47574   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47575   ac_status=$?
47576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47577   (exit $ac_status); }; then
47578   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47579 else
47580   pkg_failed=yes
47581 fi
47582     fi
47583 else
47584         pkg_failed=untried
47585 fi
47586 if test -n "$PKG_CONFIG"; then
47587     if test -n "$CAIRO_LIBS"; then
47588         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47589     else
47590         if test -n "$PKG_CONFIG" && \
47591     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47592   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47593   ac_status=$?
47594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47595   (exit $ac_status); }; then
47596   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47597 else
47598   pkg_failed=yes
47599 fi
47600     fi
47601 else
47602         pkg_failed=untried
47603 fi
47604
47605
47606
47607 if test $pkg_failed = yes; then
47608
47609 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47610         _pkg_short_errors_supported=yes
47611 else
47612         _pkg_short_errors_supported=no
47613 fi
47614         if test $_pkg_short_errors_supported = yes; then
47615                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47616         else
47617                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47618         fi
47619         # Put the nasty error message in config.log where it belongs
47620         echo "$CAIRO_PKG_ERRORS" >&5
47621
47622         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
47623 echo "$as_me: WARNING: Cairo library not found" >&2;}
47624
47625 elif test $pkg_failed = untried; then
47626         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
47627 echo "$as_me: WARNING: Cairo library not found" >&2;}
47628
47629 else
47630         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47631         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47632         { echo "$as_me:$LINENO: result: yes" >&5
47633 echo "${ECHO_T}yes" >&6; }
47634         wx_has_graphics=1
47635 fi
47636     else
47637                 wx_has_graphics=1
47638     fi
47639
47640     if test "$wx_has_graphics" = 1; then
47641         cat >>confdefs.h <<\_ACEOF
47642 #define wxUSE_GRAPHICS_CONTEXT 1
47643 _ACEOF
47644
47645     else
47646         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
47647 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
47648     fi
47649 fi
47650
47651
47652 USE_MEDIA=0
47653
47654 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
47655     USE_MEDIA=1
47656
47657                 if test "$wxUSE_GTK" = 1; then
47658         wxUSE_GSTREAMER="no"
47659
47660                                                                 GST_VERSION_MAJOR=0
47661         GST_VERSION_MINOR=10
47662         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47663
47664         if test "$wxUSE_GSTREAMER8" = "no"; then
47665
47666 pkg_failed=no
47667 { echo "$as_me:$LINENO: checking for GST" >&5
47668 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
47669
47670 if test -n "$PKG_CONFIG"; then
47671     if test -n "$GST_CFLAGS"; then
47672         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47673     else
47674         if test -n "$PKG_CONFIG" && \
47675     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47676   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47677   ac_status=$?
47678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47679   (exit $ac_status); }; then
47680   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47681 else
47682   pkg_failed=yes
47683 fi
47684     fi
47685 else
47686         pkg_failed=untried
47687 fi
47688 if test -n "$PKG_CONFIG"; then
47689     if test -n "$GST_LIBS"; then
47690         pkg_cv_GST_LIBS="$GST_LIBS"
47691     else
47692         if test -n "$PKG_CONFIG" && \
47693     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47694   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47695   ac_status=$?
47696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47697   (exit $ac_status); }; then
47698   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47699 else
47700   pkg_failed=yes
47701 fi
47702     fi
47703 else
47704         pkg_failed=untried
47705 fi
47706
47707
47708
47709 if test $pkg_failed = yes; then
47710
47711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47712         _pkg_short_errors_supported=yes
47713 else
47714         _pkg_short_errors_supported=no
47715 fi
47716         if test $_pkg_short_errors_supported = yes; then
47717                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47718         else
47719                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47720         fi
47721         # Put the nasty error message in config.log where it belongs
47722         echo "$GST_PKG_ERRORS" >&5
47723
47724
47725                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47726 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47727                     GST_VERSION_MINOR=8
47728
47729
47730 elif test $pkg_failed = untried; then
47731
47732                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47733 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47734                     GST_VERSION_MINOR=8
47735
47736
47737 else
47738         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47739         GST_LIBS=$pkg_cv_GST_LIBS
47740         { echo "$as_me:$LINENO: result: yes" >&5
47741 echo "${ECHO_T}yes" >&6; }
47742
47743                     wxUSE_GSTREAMER="yes"
47744                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
47745
47746 fi
47747         else
47748                         GST_VERSION_MINOR=8
47749         fi
47750
47751         if test $GST_VERSION_MINOR = "8"; then
47752             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47753
47754 pkg_failed=no
47755 { echo "$as_me:$LINENO: checking for GST" >&5
47756 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
47757
47758 if test -n "$PKG_CONFIG"; then
47759     if test -n "$GST_CFLAGS"; then
47760         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47761     else
47762         if test -n "$PKG_CONFIG" && \
47763     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47764   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47765   ac_status=$?
47766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47767   (exit $ac_status); }; then
47768   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47769 else
47770   pkg_failed=yes
47771 fi
47772     fi
47773 else
47774         pkg_failed=untried
47775 fi
47776 if test -n "$PKG_CONFIG"; then
47777     if test -n "$GST_LIBS"; then
47778         pkg_cv_GST_LIBS="$GST_LIBS"
47779     else
47780         if test -n "$PKG_CONFIG" && \
47781     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47782   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47783   ac_status=$?
47784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47785   (exit $ac_status); }; then
47786   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47787 else
47788   pkg_failed=yes
47789 fi
47790     fi
47791 else
47792         pkg_failed=untried
47793 fi
47794
47795
47796
47797 if test $pkg_failed = yes; then
47798
47799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47800         _pkg_short_errors_supported=yes
47801 else
47802         _pkg_short_errors_supported=no
47803 fi
47804         if test $_pkg_short_errors_supported = yes; then
47805                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47806         else
47807                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47808         fi
47809         # Put the nasty error message in config.log where it belongs
47810         echo "$GST_PKG_ERRORS" >&5
47811
47812
47813                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47814 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47815
47816 elif test $pkg_failed = untried; then
47817
47818                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47819 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47820
47821 else
47822         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47823         GST_LIBS=$pkg_cv_GST_LIBS
47824         { echo "$as_me:$LINENO: result: yes" >&5
47825 echo "${ECHO_T}yes" >&6; }
47826         wxUSE_GSTREAMER="yes"
47827 fi
47828         fi
47829
47830
47831         if test "$wxUSE_GSTREAMER" = "yes"; then
47832             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47833             EXTRALIBS_MEDIA="$GST_LIBS"
47834
47835             cat >>confdefs.h <<\_ACEOF
47836 #define wxUSE_GSTREAMER 1
47837 _ACEOF
47838
47839         else
47840             USE_MEDIA=0
47841         fi
47842     fi
47843
47844     if test $USE_MEDIA = 1; then
47845         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47846         cat >>confdefs.h <<\_ACEOF
47847 #define wxUSE_MEDIACTRL 1
47848 _ACEOF
47849
47850     else
47851         if test "$wxUSE_MEDIACTRL" = "yes"; then
47852             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
47853 echo "$as_me: error: GStreamer not available" >&2;}
47854    { (exit 1); exit 1; }; }
47855         else
47856                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47857 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
47858         fi
47859     fi
47860 fi
47861
47862
47863 if test "$cross_compiling" != "no"; then
47864         OSINFO="\"$host\""
47865 else
47866         OSINFO=`uname -s -r -m`
47867     OSINFO="\"$OSINFO\""
47868 fi
47869
47870 cat >>confdefs.h <<_ACEOF
47871 #define WXWIN_OS_DESCRIPTION $OSINFO
47872 _ACEOF
47873
47874
47875
47876 if test "x$prefix" != "xNONE"; then
47877     wxPREFIX=$prefix
47878 else
47879     wxPREFIX=$ac_default_prefix
47880 fi
47881
47882 cat >>confdefs.h <<_ACEOF
47883 #define wxINSTALL_PREFIX "$wxPREFIX"
47884 _ACEOF
47885
47886
47887
47888
47889 STD_BASE_LIBS="base"
47890 STD_GUI_LIBS=""
47891 BUILT_WX_LIBS="base"
47892 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47893
47894 if test "$wxUSE_SOCKETS" = "yes" ; then
47895     STD_BASE_LIBS="net $STD_BASE_LIBS"
47896     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47897 fi
47898 if test "$wxUSE_XML" = "yes" ; then
47899     STD_BASE_LIBS="xml $STD_BASE_LIBS"
47900     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47901 fi
47902
47903 if test "$wxUSE_GUI" = "yes"; then
47904     STD_GUI_LIBS="adv core"
47905     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47906
47907     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47908         STD_GUI_LIBS="qa $STD_GUI_LIBS"
47909         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47910     fi
47911     if test "$wxUSE_HTML" = "yes" ; then
47912         STD_GUI_LIBS="html $STD_GUI_LIBS"
47913         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47914     fi
47915     if test "$wxUSE_MEDIACTRL" = "yes" ; then
47916         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47917     fi
47918     if test "$wxUSE_OPENGL" = "yes" ; then
47919         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47920     fi
47921     if test "$wxUSE_AUI" = "yes" ; then
47922         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47923     fi
47924     if test "$wxUSE_PROPGRID" = "yes" ; then
47925         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47926     fi
47927     if test "$wxUSE_RIBBON" = "yes" ; then
47928         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
47929     fi
47930     if test "$wxUSE_RICHTEXT" = "yes" ; then
47931         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47932     fi
47933     if test "$wxUSE_STC" = "yes" ; then
47934         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47935     fi
47936     if test "$wxUSE_XRC" = "yes" ; then
47937         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
47938         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
47939     fi
47940 fi
47941
47942
47943
47944
47945
47946
47947
47948 EXTRA_FRAMEWORKS=
47949 if test "$wxUSE_MAC" = 1 ; then
47950     if test "$USE_DARWIN" = 1; then
47951         EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
47952     fi
47953 fi
47954 if test "$wxUSE_OLD_COCOA" = 1 ; then
47955     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
47956     if test "$wxUSE_MEDIACTRL" = "yes"; then
47957         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
47958     fi
47959 fi
47960 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
47961     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47962 fi
47963
47964 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
47965 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
47966
47967 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47968
47969 if test "$wxUSE_GUI" = "yes"; then
47970
47971
47972         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47973                      erase event exec font image minimal render \
47974                      shaped svg taborder vscroll widgets wrapsizer"
47975
47976     if test "$wxUSE_MONOLITHIC" != "yes"; then
47977         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47978     fi
47979     if test "$TOOLKIT" = "MSW"; then
47980         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47981         if test "$wxUSE_UNIVERSAL" != "yes"; then
47982             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
47983         fi
47984     fi
47985     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47986         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47987     fi
47988 else
47989     SAMPLES_SUBDIRS="console"
47990     if test "$wxUSE_SOCKETS" = "yes" ; then
47991         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47992     fi
47993     if test "$wxUSE_IPC" = "yes" ; then
47994         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47995     fi
47996 fi
47997
47998
47999 if test "x$INTELCC" = "xyes" ; then
48000                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
48001 elif test "$GCC" = yes ; then
48002     CWARNINGS="-Wall -Wundef"
48003 fi
48004
48005 if test "x$INTELCXX" = "xyes" ; then
48006                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
48007 elif test "$GXX" = yes ; then
48008     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
48009     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
48010 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
48011 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
48012   echo $ECHO_N "(cached) $ECHO_C" >&6
48013 else
48014   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
48015
48016  ac_ext=cpp
48017 ac_cpp='$CXXCPP $CPPFLAGS'
48018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48021
48022  ac_save_CXXFLAGS="$CXXFLAGS"
48023 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
48024 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
48025    cat >conftest.$ac_ext <<_ACEOF
48026 /* confdefs.h.  */
48027 _ACEOF
48028 cat confdefs.h >>conftest.$ac_ext
48029 cat >>conftest.$ac_ext <<_ACEOF
48030 /* end confdefs.h.  */
48031
48032 int
48033 main ()
48034 {
48035 return 0;
48036   ;
48037   return 0;
48038 }
48039 _ACEOF
48040 rm -f conftest.$ac_objext
48041 if { (ac_try="$ac_compile"
48042 case "(($ac_try" in
48043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48044   *) ac_try_echo=$ac_try;;
48045 esac
48046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48047   (eval "$ac_compile") 2>conftest.er1
48048   ac_status=$?
48049   grep -v '^ *+' conftest.er1 >conftest.err
48050   rm -f conftest.er1
48051   cat conftest.err >&5
48052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48053   (exit $ac_status); } && {
48054          test -z "$ac_cxx_werror_flag" ||
48055          test ! -s conftest.err
48056        } && test -s conftest.$ac_objext; then
48057   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
48058 else
48059   echo "$as_me: failed program was:" >&5
48060 sed 's/^/| /' conftest.$ac_ext >&5
48061
48062
48063 fi
48064
48065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48066 done
48067  CXXFLAGS="$ac_save_CXXFLAGS"
48068  ac_ext=c
48069 ac_cpp='$CPP $CPPFLAGS'
48070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48073
48074
48075 fi
48076 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
48077 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
48078 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
48079      .ok|.ok,*)  ;;
48080    .|.no|.no,*)  ;;
48081    *)
48082    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
48083    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
48084   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
48085   ac_status=$?
48086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48087   (exit $ac_status); }
48088    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
48089   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
48090   ac_status=$?
48091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48092   (exit $ac_status); }
48093                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
48094    fi
48095  ;;
48096 esac
48097
48098
48099                     if test "$wxUSE_MAC" = 1 ; then
48100         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
48101     fi
48102 fi
48103
48104
48105 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
48106 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
48107
48108
48109 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
48110  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
48111  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
48112  $CPPFLAGS `
48113
48114 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
48115 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
48116 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
48117 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
48118 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
48119
48120 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
48121
48122
48123 if test "x$MWCC" = "xyes"; then
48124
48125             CC="$CC -cwd source -I-"
48126     CXX="$CXX -cwd source -I-"
48127 fi
48128
48129
48130 LIBS=`echo $LIBS`
48131 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
48132 EXTRALIBS_XML="$EXPAT_LINK"
48133 EXTRALIBS_HTML="$MSPACK_LINK"
48134 EXTRALIBS_MEDIA="$GST_LIBS"
48135 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
48136 if test "$wxUSE_GUI" = "yes"; then
48137     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
48138 fi
48139 if test "$wxUSE_OPENGL" = "yes"; then
48140     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
48141 fi
48142
48143 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
48144
48145 WXCONFIG_LIBS="$LIBS"
48146
48147 if test "$wxUSE_REGEX" = "builtin" ; then
48148     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
48149 fi
48150 if test "$wxUSE_EXPAT" = "builtin" ; then
48151     wxconfig_3rdparty="expat $wxconfig_3rdparty"
48152 fi
48153 if test "$wxUSE_LIBTIFF" = "builtin" ; then
48154     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
48155 fi
48156 if test "$wxUSE_LIBJPEG" = "builtin" ; then
48157     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
48158 fi
48159 if test "$wxUSE_LIBPNG" = "builtin" ; then
48160     wxconfig_3rdparty="png $wxconfig_3rdparty"
48161 fi
48162 if test "$wxUSE_ZLIB" = "builtin" ; then
48163     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
48164 fi
48165
48166 for i in $wxconfig_3rdparty ; do
48167     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
48168 done
48169
48170
48171 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
48172     WXUNIV=1
48173
48174     case "$wxUNIV_THEMES" in
48175         ''|all)
48176             cat >>confdefs.h <<\_ACEOF
48177 #define wxUSE_ALL_THEMES 1
48178 _ACEOF
48179
48180             ;;
48181
48182         *)
48183             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
48184                 cat >>confdefs.h <<_ACEOF
48185 #define wxUSE_THEME_$t 1
48186 _ACEOF
48187
48188             done
48189     esac
48190 else
48191     WXUNIV=0
48192 fi
48193
48194
48195
48196
48197
48198
48199
48200
48201 if test $wxUSE_MONOLITHIC = "yes" ; then
48202     MONOLITHIC=1
48203 else
48204     MONOLITHIC=0
48205 fi
48206
48207 if test $wxUSE_PLUGINS = "yes" ; then
48208     USE_PLUGINS=1
48209 else
48210     USE_PLUGINS=0
48211 fi
48212
48213 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48214     USE_QA=1
48215 else
48216     USE_QA=0
48217 fi
48218
48219 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
48220     OFFICIAL_BUILD=1
48221 else
48222     OFFICIAL_BUILD=0
48223 fi
48224
48225
48226
48227
48228
48229
48230
48231
48232
48233
48234
48235
48236
48237
48238
48239
48240
48241
48242
48243
48244
48245
48246
48247
48248
48249
48250
48251 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
48252
48253
48254
48255
48256
48257
48258
48259
48260
48261
48262 case "$TOOLKIT" in
48263     GTK)
48264         TOOLKIT_DESC="GTK+"
48265         if test "$WXGTK2" = 1; then
48266             TOOLKIT_DESC="$TOOLKIT_DESC 2"
48267             if test "$wxUSE_GTKPRINT" = "yes" ; then
48268                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
48269             fi
48270             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
48271                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
48272             fi
48273             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
48274                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
48275             fi
48276             if test "$wxUSE_LIBHILDON" = "yes"; then
48277                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48278             fi
48279             if test "$wxUSE_LIBHILDON2" = "yes"; then
48280                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48281             fi
48282
48283             if test "$TOOLKIT_EXTRA" != ""; then
48284                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
48285             fi
48286         fi
48287         ;;
48288
48289     ?*)
48290         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
48291         ;;
48292
48293     *)
48294         TOOLKIT_DESC="base only"
48295         ;;
48296 esac
48297
48298 if test "$wxUSE_WINE" = "yes"; then
48299     BAKEFILE_FORCE_PLATFORM=win32
48300 fi
48301
48302 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
48303 then
48304     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
48305 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
48306 if test "${wx_cv_gcc_pch_bug+set}" = set; then
48307   echo $ECHO_N "(cached) $ECHO_C" >&6
48308 else
48309
48310             echo '#include <stdio.h>
48311                   const wchar_t test_var[] = L"awidetest";' > conftest.h
48312
48313             echo '#include "conftest.h"
48314                   int main()
48315                   {
48316                      printf("%ls", test_var);
48317                      return 0;
48318                   }' > conftest.cpp
48319
48320             wx_cv_gcc_pch_bug="pch not supported"
48321
48322             if $CXX conftest.h >/dev/null 2>&1
48323             then
48324                 wx_cv_gcc_pch_bug=
48325
48326                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
48327                 then
48328                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
48329                         grep awidetest >/dev/null
48330                     then
48331                         wx_cv_gcc_pch_bug=no
48332                     else
48333                         wx_cv_gcc_pch_bug=yes
48334                     fi
48335                 fi
48336             fi
48337
48338             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
48339
48340 fi
48341 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
48342 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
48343
48344     if test "$wx_cv_gcc_pch_bug" = yes; then
48345                         bk_use_pch=no
48346     fi
48347 fi
48348
48349
48350
48351
48352
48353
48354
48355     if test "x$BAKEFILE_HOST" = "x"; then
48356                if test "x${host}" = "x" ; then
48357                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
48358 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
48359    { (exit 1); exit 1; }; }
48360                fi
48361
48362         BAKEFILE_HOST="${host}"
48363     fi
48364
48365     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
48366
48367     if test -n "$ac_tool_prefix"; then
48368   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
48369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
48370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48372 if test "${ac_cv_prog_RANLIB+set}" = set; then
48373   echo $ECHO_N "(cached) $ECHO_C" >&6
48374 else
48375   if test -n "$RANLIB"; then
48376   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
48377 else
48378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48379 for as_dir in $PATH
48380 do
48381   IFS=$as_save_IFS
48382   test -z "$as_dir" && as_dir=.
48383   for ac_exec_ext in '' $ac_executable_extensions; do
48384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48385     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
48386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48387     break 2
48388   fi
48389 done
48390 done
48391 IFS=$as_save_IFS
48392
48393 fi
48394 fi
48395 RANLIB=$ac_cv_prog_RANLIB
48396 if test -n "$RANLIB"; then
48397   { echo "$as_me:$LINENO: result: $RANLIB" >&5
48398 echo "${ECHO_T}$RANLIB" >&6; }
48399 else
48400   { echo "$as_me:$LINENO: result: no" >&5
48401 echo "${ECHO_T}no" >&6; }
48402 fi
48403
48404
48405 fi
48406 if test -z "$ac_cv_prog_RANLIB"; then
48407   ac_ct_RANLIB=$RANLIB
48408   # Extract the first word of "ranlib", so it can be a program name with args.
48409 set dummy ranlib; ac_word=$2
48410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
48413   echo $ECHO_N "(cached) $ECHO_C" >&6
48414 else
48415   if test -n "$ac_ct_RANLIB"; then
48416   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
48417 else
48418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48419 for as_dir in $PATH
48420 do
48421   IFS=$as_save_IFS
48422   test -z "$as_dir" && as_dir=.
48423   for ac_exec_ext in '' $ac_executable_extensions; do
48424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48425     ac_cv_prog_ac_ct_RANLIB="ranlib"
48426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48427     break 2
48428   fi
48429 done
48430 done
48431 IFS=$as_save_IFS
48432
48433 fi
48434 fi
48435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
48436 if test -n "$ac_ct_RANLIB"; then
48437   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
48438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
48439 else
48440   { echo "$as_me:$LINENO: result: no" >&5
48441 echo "${ECHO_T}no" >&6; }
48442 fi
48443
48444   if test "x$ac_ct_RANLIB" = x; then
48445     RANLIB=":"
48446   else
48447     case $cross_compiling:$ac_tool_warned in
48448 yes:)
48449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48450 whose name does not start with the host triplet.  If you think this
48451 configuration is useful to you, please write to autoconf@gnu.org." >&5
48452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48453 whose name does not start with the host triplet.  If you think this
48454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48455 ac_tool_warned=yes ;;
48456 esac
48457     RANLIB=$ac_ct_RANLIB
48458   fi
48459 else
48460   RANLIB="$ac_cv_prog_RANLIB"
48461 fi
48462
48463     # Find a good install program.  We prefer a C program (faster),
48464 # so one script is as good as another.  But avoid the broken or
48465 # incompatible versions:
48466 # SysV /etc/install, /usr/sbin/install
48467 # SunOS /usr/etc/install
48468 # IRIX /sbin/install
48469 # AIX /bin/install
48470 # AmigaOS /C/install, which installs bootblocks on floppy discs
48471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
48472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
48473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
48474 # OS/2's system install, which has a completely different semantic
48475 # ./install, which can be erroneously created by make from ./install.sh.
48476 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
48477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
48478 if test -z "$INSTALL"; then
48479 if test "${ac_cv_path_install+set}" = set; then
48480   echo $ECHO_N "(cached) $ECHO_C" >&6
48481 else
48482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48483 for as_dir in $PATH
48484 do
48485   IFS=$as_save_IFS
48486   test -z "$as_dir" && as_dir=.
48487   # Account for people who put trailing slashes in PATH elements.
48488 case $as_dir/ in
48489   ./ | .// | /cC/* | \
48490   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
48491   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
48492   /usr/ucb/* ) ;;
48493   *)
48494     # OSF1 and SCO ODT 3.0 have their own names for install.
48495     # Don't use installbsd from OSF since it installs stuff as root
48496     # by default.
48497     for ac_prog in ginstall scoinst install; do
48498       for ac_exec_ext in '' $ac_executable_extensions; do
48499         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
48500           if test $ac_prog = install &&
48501             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48502             # AIX install.  It has an incompatible calling convention.
48503             :
48504           elif test $ac_prog = install &&
48505             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48506             # program-specific install script used by HP pwplus--don't use.
48507             :
48508           else
48509             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
48510             break 3
48511           fi
48512         fi
48513       done
48514     done
48515     ;;
48516 esac
48517 done
48518 IFS=$as_save_IFS
48519
48520
48521 fi
48522   if test "${ac_cv_path_install+set}" = set; then
48523     INSTALL=$ac_cv_path_install
48524   else
48525     # As a last resort, use the slow shell script.  Don't cache a
48526     # value for INSTALL within a source directory, because that will
48527     # break other packages using the cache if that directory is
48528     # removed, or if the value is a relative name.
48529     INSTALL=$ac_install_sh
48530   fi
48531 fi
48532 { echo "$as_me:$LINENO: result: $INSTALL" >&5
48533 echo "${ECHO_T}$INSTALL" >&6; }
48534
48535 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
48536 # It thinks the first close brace ends the variable substitution.
48537 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
48538
48539 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
48540
48541 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
48542
48543     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
48544 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
48545 LN_S=$as_ln_s
48546 if test "$LN_S" = "ln -s"; then
48547   { echo "$as_me:$LINENO: result: yes" >&5
48548 echo "${ECHO_T}yes" >&6; }
48549 else
48550   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48551 echo "${ECHO_T}no, using $LN_S" >&6; }
48552 fi
48553
48554
48555     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48556 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
48557 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
48558 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
48559   echo $ECHO_N "(cached) $ECHO_C" >&6
48560 else
48561   cat >conftest.make <<\_ACEOF
48562 SHELL = /bin/sh
48563 all:
48564         @echo '@@@%%%=$(MAKE)=@@@%%%'
48565 _ACEOF
48566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48567 case `${MAKE-make} -f conftest.make 2>/dev/null` in
48568   *@@@%%%=?*=@@@%%%*)
48569     eval ac_cv_prog_make_${ac_make}_set=yes;;
48570   *)
48571     eval ac_cv_prog_make_${ac_make}_set=no;;
48572 esac
48573 rm -f conftest.make
48574 fi
48575 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
48576   { echo "$as_me:$LINENO: result: yes" >&5
48577 echo "${ECHO_T}yes" >&6; }
48578   SET_MAKE=
48579 else
48580   { echo "$as_me:$LINENO: result: no" >&5
48581 echo "${ECHO_T}no" >&6; }
48582   SET_MAKE="MAKE=${MAKE-make}"
48583 fi
48584
48585
48586
48587     if test "x$SUNCXX" = "xyes"; then
48588                                 AR=$CXX
48589         AROPTIONS="-xar -o"
48590
48591     elif test "x$SGICC" = "xyes"; then
48592                 AR=$CXX
48593         AROPTIONS="-ar -o"
48594
48595     else
48596         if test -n "$ac_tool_prefix"; then
48597   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48598 set dummy ${ac_tool_prefix}ar; ac_word=$2
48599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48601 if test "${ac_cv_prog_AR+set}" = set; then
48602   echo $ECHO_N "(cached) $ECHO_C" >&6
48603 else
48604   if test -n "$AR"; then
48605   ac_cv_prog_AR="$AR" # Let the user override the test.
48606 else
48607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48608 for as_dir in $PATH
48609 do
48610   IFS=$as_save_IFS
48611   test -z "$as_dir" && as_dir=.
48612   for ac_exec_ext in '' $ac_executable_extensions; do
48613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48614     ac_cv_prog_AR="${ac_tool_prefix}ar"
48615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48616     break 2
48617   fi
48618 done
48619 done
48620 IFS=$as_save_IFS
48621
48622 fi
48623 fi
48624 AR=$ac_cv_prog_AR
48625 if test -n "$AR"; then
48626   { echo "$as_me:$LINENO: result: $AR" >&5
48627 echo "${ECHO_T}$AR" >&6; }
48628 else
48629   { echo "$as_me:$LINENO: result: no" >&5
48630 echo "${ECHO_T}no" >&6; }
48631 fi
48632
48633
48634 fi
48635 if test -z "$ac_cv_prog_AR"; then
48636   ac_ct_AR=$AR
48637   # Extract the first word of "ar", so it can be a program name with args.
48638 set dummy ar; ac_word=$2
48639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
48642   echo $ECHO_N "(cached) $ECHO_C" >&6
48643 else
48644   if test -n "$ac_ct_AR"; then
48645   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48646 else
48647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48648 for as_dir in $PATH
48649 do
48650   IFS=$as_save_IFS
48651   test -z "$as_dir" && as_dir=.
48652   for ac_exec_ext in '' $ac_executable_extensions; do
48653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48654     ac_cv_prog_ac_ct_AR="ar"
48655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48656     break 2
48657   fi
48658 done
48659 done
48660 IFS=$as_save_IFS
48661
48662 fi
48663 fi
48664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
48665 if test -n "$ac_ct_AR"; then
48666   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48667 echo "${ECHO_T}$ac_ct_AR" >&6; }
48668 else
48669   { echo "$as_me:$LINENO: result: no" >&5
48670 echo "${ECHO_T}no" >&6; }
48671 fi
48672
48673   if test "x$ac_ct_AR" = x; then
48674     AR="ar"
48675   else
48676     case $cross_compiling:$ac_tool_warned in
48677 yes:)
48678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48679 whose name does not start with the host triplet.  If you think this
48680 configuration is useful to you, please write to autoconf@gnu.org." >&5
48681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48682 whose name does not start with the host triplet.  If you think this
48683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48684 ac_tool_warned=yes ;;
48685 esac
48686     AR=$ac_ct_AR
48687   fi
48688 else
48689   AR="$ac_cv_prog_AR"
48690 fi
48691
48692         AROPTIONS=rcu
48693     fi
48694
48695
48696     if test -n "$ac_tool_prefix"; then
48697   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48698 set dummy ${ac_tool_prefix}strip; ac_word=$2
48699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48701 if test "${ac_cv_prog_STRIP+set}" = set; then
48702   echo $ECHO_N "(cached) $ECHO_C" >&6
48703 else
48704   if test -n "$STRIP"; then
48705   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48706 else
48707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48708 for as_dir in $PATH
48709 do
48710   IFS=$as_save_IFS
48711   test -z "$as_dir" && as_dir=.
48712   for ac_exec_ext in '' $ac_executable_extensions; do
48713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48714     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48716     break 2
48717   fi
48718 done
48719 done
48720 IFS=$as_save_IFS
48721
48722 fi
48723 fi
48724 STRIP=$ac_cv_prog_STRIP
48725 if test -n "$STRIP"; then
48726   { echo "$as_me:$LINENO: result: $STRIP" >&5
48727 echo "${ECHO_T}$STRIP" >&6; }
48728 else
48729   { echo "$as_me:$LINENO: result: no" >&5
48730 echo "${ECHO_T}no" >&6; }
48731 fi
48732
48733
48734 fi
48735 if test -z "$ac_cv_prog_STRIP"; then
48736   ac_ct_STRIP=$STRIP
48737   # Extract the first word of "strip", so it can be a program name with args.
48738 set dummy strip; ac_word=$2
48739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48742   echo $ECHO_N "(cached) $ECHO_C" >&6
48743 else
48744   if test -n "$ac_ct_STRIP"; then
48745   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48746 else
48747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48748 for as_dir in $PATH
48749 do
48750   IFS=$as_save_IFS
48751   test -z "$as_dir" && as_dir=.
48752   for ac_exec_ext in '' $ac_executable_extensions; do
48753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48754     ac_cv_prog_ac_ct_STRIP="strip"
48755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48756     break 2
48757   fi
48758 done
48759 done
48760 IFS=$as_save_IFS
48761
48762 fi
48763 fi
48764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48765 if test -n "$ac_ct_STRIP"; then
48766   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48767 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
48768 else
48769   { echo "$as_me:$LINENO: result: no" >&5
48770 echo "${ECHO_T}no" >&6; }
48771 fi
48772
48773   if test "x$ac_ct_STRIP" = x; then
48774     STRIP=":"
48775   else
48776     case $cross_compiling:$ac_tool_warned in
48777 yes:)
48778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48779 whose name does not start with the host triplet.  If you think this
48780 configuration is useful to you, please write to autoconf@gnu.org." >&5
48781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48782 whose name does not start with the host triplet.  If you think this
48783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48784 ac_tool_warned=yes ;;
48785 esac
48786     STRIP=$ac_ct_STRIP
48787   fi
48788 else
48789   STRIP="$ac_cv_prog_STRIP"
48790 fi
48791
48792     if test -n "$ac_tool_prefix"; then
48793   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48794 set dummy ${ac_tool_prefix}nm; ac_word=$2
48795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48797 if test "${ac_cv_prog_NM+set}" = set; then
48798   echo $ECHO_N "(cached) $ECHO_C" >&6
48799 else
48800   if test -n "$NM"; then
48801   ac_cv_prog_NM="$NM" # Let the user override the test.
48802 else
48803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48804 for as_dir in $PATH
48805 do
48806   IFS=$as_save_IFS
48807   test -z "$as_dir" && as_dir=.
48808   for ac_exec_ext in '' $ac_executable_extensions; do
48809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48810     ac_cv_prog_NM="${ac_tool_prefix}nm"
48811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48812     break 2
48813   fi
48814 done
48815 done
48816 IFS=$as_save_IFS
48817
48818 fi
48819 fi
48820 NM=$ac_cv_prog_NM
48821 if test -n "$NM"; then
48822   { echo "$as_me:$LINENO: result: $NM" >&5
48823 echo "${ECHO_T}$NM" >&6; }
48824 else
48825   { echo "$as_me:$LINENO: result: no" >&5
48826 echo "${ECHO_T}no" >&6; }
48827 fi
48828
48829
48830 fi
48831 if test -z "$ac_cv_prog_NM"; then
48832   ac_ct_NM=$NM
48833   # Extract the first word of "nm", so it can be a program name with args.
48834 set dummy nm; ac_word=$2
48835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48837 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48838   echo $ECHO_N "(cached) $ECHO_C" >&6
48839 else
48840   if test -n "$ac_ct_NM"; then
48841   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48842 else
48843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48844 for as_dir in $PATH
48845 do
48846   IFS=$as_save_IFS
48847   test -z "$as_dir" && as_dir=.
48848   for ac_exec_ext in '' $ac_executable_extensions; do
48849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48850     ac_cv_prog_ac_ct_NM="nm"
48851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48852     break 2
48853   fi
48854 done
48855 done
48856 IFS=$as_save_IFS
48857
48858 fi
48859 fi
48860 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48861 if test -n "$ac_ct_NM"; then
48862   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48863 echo "${ECHO_T}$ac_ct_NM" >&6; }
48864 else
48865   { echo "$as_me:$LINENO: result: no" >&5
48866 echo "${ECHO_T}no" >&6; }
48867 fi
48868
48869   if test "x$ac_ct_NM" = x; then
48870     NM=":"
48871   else
48872     case $cross_compiling:$ac_tool_warned in
48873 yes:)
48874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48875 whose name does not start with the host triplet.  If you think this
48876 configuration is useful to you, please write to autoconf@gnu.org." >&5
48877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48878 whose name does not start with the host triplet.  If you think this
48879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48880 ac_tool_warned=yes ;;
48881 esac
48882     NM=$ac_ct_NM
48883   fi
48884 else
48885   NM="$ac_cv_prog_NM"
48886 fi
48887
48888
48889             { echo "$as_me:$LINENO: checking for command to install directories" >&5
48890 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
48891     INSTALL_TEST_DIR=acbftest$$
48892     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48893     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48894         rmdir $INSTALL_TEST_DIR
48895                         INSTALL_DIR='$(INSTALL) -d'
48896         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48897 echo "${ECHO_T}$INSTALL -d" >&6; }
48898     else
48899         INSTALL_DIR="mkdir -p"
48900         { echo "$as_me:$LINENO: result: mkdir -p" >&5
48901 echo "${ECHO_T}mkdir -p" >&6; }
48902     fi
48903
48904
48905     LDFLAGS_GUI=
48906     case ${BAKEFILE_HOST} in
48907         *-*-cygwin* | *-*-mingw32* )
48908         LDFLAGS_GUI="-mwindows"
48909     esac
48910
48911
48912     fi
48913
48914         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48915 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
48916 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48917   echo $ECHO_N "(cached) $ECHO_C" >&6
48918 else
48919
48920         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48921                 egrep -s GNU > /dev/null); then
48922             bakefile_cv_prog_makeisgnu="yes"
48923         else
48924             bakefile_cv_prog_makeisgnu="no"
48925         fi
48926
48927 fi
48928 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48929 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
48930
48931     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48932         IF_GNU_MAKE=""
48933     else
48934         IF_GNU_MAKE="#"
48935     fi
48936
48937
48938
48939     PLATFORM_UNIX=0
48940     PLATFORM_WIN32=0
48941     PLATFORM_MSDOS=0
48942     PLATFORM_MAC=0
48943     PLATFORM_MACOS=0
48944     PLATFORM_MACOSX=0
48945     PLATFORM_OS2=0
48946     PLATFORM_BEOS=0
48947
48948     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48949         case "${BAKEFILE_HOST}" in
48950             *-*-mingw32* )
48951                 PLATFORM_WIN32=1
48952             ;;
48953             *-pc-msdosdjgpp )
48954                 PLATFORM_MSDOS=1
48955             ;;
48956             *-pc-os2_emx | *-pc-os2-emx )
48957                 PLATFORM_OS2=1
48958             ;;
48959             *-*-darwin* )
48960                 PLATFORM_MAC=1
48961                 PLATFORM_MACOSX=1
48962             ;;
48963             *-*-beos* )
48964                 PLATFORM_BEOS=1
48965             ;;
48966             powerpc-apple-macos* )
48967                 PLATFORM_MAC=1
48968                 PLATFORM_MACOS=1
48969             ;;
48970             * )
48971                 PLATFORM_UNIX=1
48972             ;;
48973         esac
48974     else
48975         case "$BAKEFILE_FORCE_PLATFORM" in
48976             win32 )
48977                 PLATFORM_WIN32=1
48978             ;;
48979             msdos )
48980                 PLATFORM_MSDOS=1
48981             ;;
48982             os2 )
48983                 PLATFORM_OS2=1
48984             ;;
48985             darwin )
48986                 PLATFORM_MAC=1
48987                 PLATFORM_MACOSX=1
48988             ;;
48989             unix )
48990                 PLATFORM_UNIX=1
48991             ;;
48992             beos )
48993                 PLATFORM_BEOS=1
48994             ;;
48995             * )
48996                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48997 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48998    { (exit 1); exit 1; }; }
48999             ;;
49000         esac
49001     fi
49002
49003
49004
49005
49006
49007
49008
49009
49010
49011
49012
49013     # Check whether --enable-omf was given.
49014 if test "${enable_omf+set}" = set; then
49015   enableval=$enable_omf; bk_os2_use_omf="$enableval"
49016 fi
49017
49018
49019     case "${BAKEFILE_HOST}" in
49020       *-*-darwin* )
49021                         if test "x$GCC" = "xyes"; then
49022             CFLAGS="$CFLAGS -fno-common"
49023             CXXFLAGS="$CXXFLAGS -fno-common"
49024         fi
49025         if test "x$XLCC" = "xyes"; then
49026             CFLAGS="$CFLAGS -qnocommon"
49027             CXXFLAGS="$CXXFLAGS -qnocommon"
49028         fi
49029         ;;
49030
49031       *-pc-os2_emx | *-pc-os2-emx )
49032         if test "x$bk_os2_use_omf" = "xyes" ; then
49033             AR=emxomfar
49034             RANLIB=:
49035             LDFLAGS="-Zomf $LDFLAGS"
49036             CFLAGS="-Zomf $CFLAGS"
49037             CXXFLAGS="-Zomf $CXXFLAGS"
49038             OS2_LIBEXT="lib"
49039         else
49040             OS2_LIBEXT="a"
49041         fi
49042         ;;
49043
49044       i*86-*-beos* )
49045         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49046         ;;
49047     esac
49048
49049
49050     SO_SUFFIX="so"
49051     SO_SUFFIX_MODULE="so"
49052     EXEEXT=""
49053     LIBPREFIX="lib"
49054     LIBEXT=".a"
49055     DLLPREFIX="lib"
49056     DLLPREFIX_MODULE=""
49057     DLLIMP_SUFFIX=""
49058     dlldir="$libdir"
49059
49060     case "${BAKEFILE_HOST}" in
49061                         ia64-hp-hpux* )
49062         ;;
49063         *-hp-hpux* )
49064             SO_SUFFIX="sl"
49065             SO_SUFFIX_MODULE="sl"
49066         ;;
49067         *-*-aix* )
49068                                                                         SO_SUFFIX="a"
49069             SO_SUFFIX_MODULE="a"
49070         ;;
49071         *-*-cygwin* )
49072             SO_SUFFIX="dll"
49073             SO_SUFFIX_MODULE="dll"
49074             DLLIMP_SUFFIX="dll.a"
49075             EXEEXT=".exe"
49076             DLLPREFIX="cyg"
49077             dlldir="$bindir"
49078         ;;
49079         *-*-mingw32* )
49080             SO_SUFFIX="dll"
49081             SO_SUFFIX_MODULE="dll"
49082             DLLIMP_SUFFIX="dll.a"
49083             EXEEXT=".exe"
49084             DLLPREFIX=""
49085             dlldir="$bindir"
49086         ;;
49087         *-pc-msdosdjgpp )
49088             EXEEXT=".exe"
49089             DLLPREFIX=""
49090             dlldir="$bindir"
49091         ;;
49092         *-pc-os2_emx | *-pc-os2-emx )
49093             SO_SUFFIX="dll"
49094             SO_SUFFIX_MODULE="dll"
49095             DLLIMP_SUFFIX=$OS2_LIBEXT
49096             EXEEXT=".exe"
49097             DLLPREFIX=""
49098             LIBPREFIX=""
49099             LIBEXT=".$OS2_LIBEXT"
49100             dlldir="$bindir"
49101         ;;
49102         *-*-darwin* )
49103             SO_SUFFIX="dylib"
49104             SO_SUFFIX_MODULE="bundle"
49105         ;;
49106     esac
49107
49108     if test "x$DLLIMP_SUFFIX" = "x" ; then
49109         DLLIMP_SUFFIX="$SO_SUFFIX"
49110     fi
49111
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123         PIC_FLAG=""
49124     if test "x$GCC" = "xyes"; then
49125                 PIC_FLAG="-fPIC"
49126     fi
49127
49128         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
49129     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
49130     WINDOWS_IMPLIB=0
49131
49132     case "${BAKEFILE_HOST}" in
49133       *-hp-hpux* )
49134                 if test "x$GCC" != "xyes"; then
49135                         LDFLAGS="$LDFLAGS -L/usr/lib"
49136
49137             SHARED_LD_CC="${CC} -b -o"
49138             SHARED_LD_CXX="${CXX} -b -o"
49139             PIC_FLAG="+Z"
49140         fi
49141       ;;
49142
49143       *-*-linux* )
49144                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
49145             PIC_FLAG="-KPIC"
49146         elif test "x$SUNCXX" = "xyes"; then
49147             SHARED_LD_CC="${CC} -G -o"
49148             SHARED_LD_CXX="${CXX} -G -o"
49149             PIC_FLAG="-KPIC"
49150         fi
49151       ;;
49152
49153       *-*-solaris2* )
49154         if test "x$SUNCXX" = xyes ; then
49155             SHARED_LD_CC="${CC} -G -o"
49156             SHARED_LD_CXX="${CXX} -G -o"
49157             PIC_FLAG="-KPIC"
49158         fi
49159       ;;
49160
49161       *-*-darwin* )
49162
49163 D='$'
49164 cat <<EOF >shared-ld-sh
49165 #!/bin/sh
49166 #-----------------------------------------------------------------------------
49167 #-- Name:        distrib/mac/shared-ld-sh
49168 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
49169 #-- Author:      Gilles Depeyrot
49170 #-- Copyright:   (c) 2002 Gilles Depeyrot
49171 #-- Licence:     any use permitted
49172 #-----------------------------------------------------------------------------
49173
49174 verbose=0
49175 args=""
49176 objects=""
49177 linking_flag="-dynamiclib"
49178 ldargs="-r -keep_private_externs -nostdlib"
49179
49180 if test "x${D}CXX" = "x"; then
49181     CXX="c++"
49182 fi
49183
49184 while test ${D}# -gt 0; do
49185     case ${D}1 in
49186
49187        -v)
49188         verbose=1
49189         ;;
49190
49191        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
49192         # collect these options and values
49193         args="${D}{args} ${D}1 ${D}2"
49194         shift
49195         ;;
49196
49197        -arch|-isysroot)
49198         # collect these options and values
49199         ldargs="${D}{ldargs} ${D}1 ${D}2"
49200         shift
49201         ;;
49202
49203        -s|-Wl,*)
49204         # collect these load args
49205         ldargs="${D}{ldargs} ${D}1"
49206         ;;
49207
49208        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
49209         # collect these options
49210         args="${D}{args} ${D}1"
49211         ;;
49212
49213        -dynamiclib|-bundle)
49214         linking_flag="${D}1"
49215         ;;
49216
49217        -*)
49218         echo "shared-ld: unhandled option '${D}1'"
49219         exit 1
49220         ;;
49221
49222         *.o | *.a | *.dylib)
49223         # collect object files
49224         objects="${D}{objects} ${D}1"
49225         ;;
49226
49227         *)
49228         echo "shared-ld: unhandled argument '${D}1'"
49229         exit 1
49230         ;;
49231
49232     esac
49233     shift
49234 done
49235
49236 status=0
49237
49238 #
49239 # Link one module containing all the others
49240 #
49241 if test ${D}{verbose} = 1; then
49242     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
49243 fi
49244 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
49245 status=${D}?
49246
49247 #
49248 # Link the shared library from the single module created, but only if the
49249 # previous command didn't fail:
49250 #
49251 if test ${D}{status} = 0; then
49252     if test ${D}{verbose} = 1; then
49253         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
49254     fi
49255     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
49256     status=${D}?
49257 fi
49258
49259 #
49260 # Remove intermediate module
49261 #
49262 rm -f master.${D}${D}.o
49263
49264 exit ${D}status
49265 EOF
49266
49267         chmod +x shared-ld-sh
49268
49269         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
49270         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
49271
49272
49273                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
49274 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
49275 if test "${bakefile_cv_gcc31+set}" = set; then
49276   echo $ECHO_N "(cached) $ECHO_C" >&6
49277 else
49278
49279            cat >conftest.$ac_ext <<_ACEOF
49280 /* confdefs.h.  */
49281 _ACEOF
49282 cat confdefs.h >>conftest.$ac_ext
49283 cat >>conftest.$ac_ext <<_ACEOF
49284 /* end confdefs.h.  */
49285
49286 int
49287 main ()
49288 {
49289
49290                    #if (__GNUC__ < 3) || \
49291                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
49292                        This is old gcc
49293                    #endif
49294
49295   ;
49296   return 0;
49297 }
49298 _ACEOF
49299 rm -f conftest.$ac_objext
49300 if { (ac_try="$ac_compile"
49301 case "(($ac_try" in
49302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49303   *) ac_try_echo=$ac_try;;
49304 esac
49305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49306   (eval "$ac_compile") 2>conftest.er1
49307   ac_status=$?
49308   grep -v '^ *+' conftest.er1 >conftest.err
49309   rm -f conftest.er1
49310   cat conftest.err >&5
49311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49312   (exit $ac_status); } && {
49313          test -z "$ac_c_werror_flag" ||
49314          test ! -s conftest.err
49315        } && test -s conftest.$ac_objext; then
49316
49317                    bakefile_cv_gcc31=yes
49318
49319 else
49320   echo "$as_me: failed program was:" >&5
49321 sed 's/^/| /' conftest.$ac_ext >&5
49322
49323
49324                    bakefile_cv_gcc31=no
49325
49326
49327 fi
49328
49329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49330
49331 fi
49332 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
49333 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
49334         if test "$bakefile_cv_gcc31" = "no"; then
49335                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
49336             SHARED_LD_CXX="$SHARED_LD_CC"
49337         else
49338                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
49339             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
49340         fi
49341
49342         if test "x$GCC" == "xyes"; then
49343             PIC_FLAG="-dynamic -fPIC"
49344         fi
49345         if test "x$XLCC" = "xyes"; then
49346             PIC_FLAG="-dynamic -DPIC"
49347         fi
49348       ;;
49349
49350       *-*-aix* )
49351         if test "x$GCC" = "xyes"; then
49352                                                             PIC_FLAG=""
49353
49354                                                                                     case "${BAKEFILE_HOST}" in
49355                 *-*-aix5* )
49356                     LD_EXPFULL="-Wl,-bexpfull"
49357                     ;;
49358             esac
49359
49360             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
49361             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
49362         else
49363                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
49364 set dummy makeC++SharedLib; ac_word=$2
49365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49367 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
49368   echo $ECHO_N "(cached) $ECHO_C" >&6
49369 else
49370   if test -n "$AIX_CXX_LD"; then
49371   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
49372 else
49373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49374 for as_dir in $PATH
49375 do
49376   IFS=$as_save_IFS
49377   test -z "$as_dir" && as_dir=.
49378   for ac_exec_ext in '' $ac_executable_extensions; do
49379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49380     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
49381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49382     break 2
49383   fi
49384 done
49385 done
49386 IFS=$as_save_IFS
49387
49388   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
49389 fi
49390 fi
49391 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
49392 if test -n "$AIX_CXX_LD"; then
49393   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
49394 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
49395 else
49396   { echo "$as_me:$LINENO: result: no" >&5
49397 echo "${ECHO_T}no" >&6; }
49398 fi
49399
49400
49401             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
49402             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
49403         fi
49404       ;;
49405
49406       *-*-beos* )
49407                         SHARED_LD_CC="${LD} -nostart -o"
49408         SHARED_LD_CXX="${LD} -nostart -o"
49409       ;;
49410
49411       *-*-irix* )
49412                 if test "x$GCC" != "xyes"; then
49413             PIC_FLAG="-KPIC"
49414         fi
49415       ;;
49416
49417       *-*-cygwin* | *-*-mingw32* )
49418         PIC_FLAG=""
49419         SHARED_LD_CC="\$(CC) -shared -o"
49420         SHARED_LD_CXX="\$(CXX) -shared -o"
49421         WINDOWS_IMPLIB=1
49422       ;;
49423
49424       *-pc-os2_emx | *-pc-os2-emx )
49425         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49426         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49427         PIC_FLAG=""
49428
49429 D='$'
49430 cat <<EOF >dllar.sh
49431 #!/bin/sh
49432 #
49433 # dllar - a tool to build both a .dll and an .a file
49434 # from a set of object (.o) files for EMX/OS2.
49435 #
49436 #  Written by Andrew Zabolotny, bit@freya.etu.ru
49437 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
49438 #
49439 #  This script will accept a set of files on the command line.
49440 #  All the public symbols from the .o files will be exported into
49441 #  a .DEF file, then linker will be run (through gcc) against them to
49442 #  build a shared library consisting of all given .o files. All libraries
49443 #  (.a) will be first decompressed into component .o files then act as
49444 #  described above. You can optionally give a description (-d "description")
49445 #  which will be put into .DLL. To see the list of accepted options (as well
49446 #  as command-line format) simply run this program without options. The .DLL
49447 #  is built to be imported by name (there is no guarantee that new versions
49448 #  of the library you build will have same ordinals for same symbols).
49449 #
49450 #  dllar is free software; you can redistribute it and/or modify
49451 #  it under the terms of the GNU General Public License as published by
49452 #  the Free Software Foundation; either version 2, or (at your option)
49453 #  any later version.
49454 #
49455 #  dllar is distributed in the hope that it will be useful,
49456 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
49457 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
49458 #  GNU General Public License for more details.
49459 #
49460 #  You should have received a copy of the GNU General Public License
49461 #  along with dllar; see the file COPYING.  If not, write to the Free
49462 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
49463 #  02111-1307, USA.
49464
49465 # To successfuly run this program you will need:
49466 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
49467 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
49468 #  - gcc
49469 #    (used to build the .dll)
49470 #  - emxexp
49471 #    (used to create .def file from .o files)
49472 #  - emximp
49473 #    (used to create .a file from .def file)
49474 #  - GNU text utilites (cat, sort, uniq)
49475 #    used to process emxexp output
49476 #  - GNU file utilities (mv, rm)
49477 #  - GNU sed
49478 #  - lxlite (optional, see flag below)
49479 #    (used for general .dll cleanup)
49480 #
49481
49482 flag_USE_LXLITE=1;
49483
49484 #
49485 # helper functions
49486 # basnam, variant of basename, which does _not_ remove the path, _iff_
49487 #                              second argument (suffix to remove) is given
49488 basnam(){
49489     case ${D}# in
49490     1)
49491         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
49492         ;;
49493     2)
49494         echo ${D}1 | sed 's/'${D}2'${D}//'
49495         ;;
49496     *)
49497         echo "error in basnam ${D}*"
49498         exit 8
49499         ;;
49500     esac
49501 }
49502
49503 # Cleanup temporary files and output
49504 CleanUp() {
49505     cd ${D}curDir
49506     for i in ${D}inputFiles ; do
49507         case ${D}i in
49508         *!)
49509             rm -rf \`basnam ${D}i !\`
49510             ;;
49511         *)
49512             ;;
49513         esac
49514     done
49515
49516     # Kill result in case of failure as there is just to many stupid make/nmake
49517     # things out there which doesn't do this.
49518     if [ ${D}# -eq 0 ]; then
49519         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
49520     fi
49521 }
49522
49523 # Print usage and exit script with rc=1.
49524 PrintHelp() {
49525  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
49526  echo '       [-name-mangler-script script.sh]'
49527  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
49528  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
49529  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
49530  echo '       [*.o] [*.a]'
49531  echo '*> "output_file" should have no extension.'
49532  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
49533  echo '   The import library name is derived from this and is set to "name".a,'
49534  echo '   unless overridden by -import'
49535  echo '*> "importlib_name" should have no extension.'
49536  echo '   If it has the .o, or .a extension, it is automatically removed.'
49537  echo '   This name is used as the import library name and may be longer and'
49538  echo '   more descriptive than the DLL name which has to follow the old '
49539  echo '   8.3 convention of FAT.'
49540  echo '*> "script.sh may be given to override the output_file name by a'
49541  echo '   different name. It is mainly useful if the regular make process'
49542  echo '   of some package does not take into account OS/2 restriction of'
49543  echo '   DLL name lengths. It takes the importlib name as input and is'
49544  echo '   supposed to procude a shorter name as output. The script should'
49545  echo '   expect to get importlib_name without extension and should produce'
49546  echo '   a (max.) 8 letter name without extension.'
49547  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
49548  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
49549  echo '   These flags will be put at the start of GCC command line.'
49550  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
49551  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
49552  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
49553  echo '   If the last character of a symbol is "*", all symbols beginning'
49554  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
49555  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
49556  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
49557  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
49558  echo '   C runtime DLLs.'
49559  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
49560  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
49561  echo '   unchanged to GCC at the end of command line.'
49562  echo '*> If you create a DLL from a library and you do not specify -o,'
49563  echo '   the basename for DLL and import library will be set to library name,'
49564  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
49565  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
49566  echo '   library will be renamed into gcc_s.a.'
49567  echo '--------'
49568  echo 'Example:'
49569  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
49570  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
49571  CleanUp
49572  exit 1
49573 }
49574
49575 # Execute a command.
49576 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
49577 # @Uses    Whatever CleanUp() uses.
49578 doCommand() {
49579     echo "${D}*"
49580     eval ${D}*
49581     rcCmd=${D}?
49582
49583     if [ ${D}rcCmd -ne 0 ]; then
49584         echo "command failed, exit code="${D}rcCmd
49585         CleanUp
49586         exit ${D}rcCmd
49587     fi
49588 }
49589
49590 # main routine
49591 # setup globals
49592 cmdLine=${D}*
49593 outFile=""
49594 outimpFile=""
49595 inputFiles=""
49596 renameScript=""
49597 description=""
49598 CC=gcc.exe
49599 CFLAGS="-s -Zcrtdll"
49600 EXTRA_CFLAGS=""
49601 EXPORT_BY_ORDINALS=0
49602 exclude_symbols=""
49603 library_flags=""
49604 curDir=\`pwd\`
49605 curDirS=curDir
49606 case ${D}curDirS in
49607 */)
49608   ;;
49609 *)
49610   curDirS=${D}{curDirS}"/"
49611   ;;
49612 esac
49613 # Parse commandline
49614 libsToLink=0
49615 omfLinking=0
49616 while [ ${D}1 ]; do
49617     case ${D}1 in
49618     -ord*)
49619         EXPORT_BY_ORDINALS=1;
49620         ;;
49621     -o*)
49622         shift
49623         outFile=${D}1
49624         ;;
49625     -i*)
49626         shift
49627         outimpFile=${D}1
49628         ;;
49629     -name-mangler-script)
49630         shift
49631         renameScript=${D}1
49632         ;;
49633     -d*)
49634         shift
49635         description=${D}1
49636         ;;
49637     -f*)
49638         shift
49639         CFLAGS=${D}1
49640         ;;
49641     -c*)
49642         shift
49643         CC=${D}1
49644         ;;
49645     -h*)
49646         PrintHelp
49647         ;;
49648     -ex*)
49649         shift
49650         exclude_symbols=${D}{exclude_symbols}${D}1" "
49651         ;;
49652     -libf*)
49653         shift
49654         library_flags=${D}{library_flags}${D}1" "
49655         ;;
49656     -nocrt*)
49657         CFLAGS="-s"
49658         ;;
49659     -nolxl*)
49660         flag_USE_LXLITE=0
49661         ;;
49662     -* | /*)
49663         case ${D}1 in
49664         -L* | -l*)
49665             libsToLink=1
49666             ;;
49667         -Zomf)
49668             omfLinking=1
49669             ;;
49670         *)
49671             ;;
49672         esac
49673         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49674         ;;
49675     *.dll)
49676         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49677         if [ ${D}omfLinking -eq 1 ]; then
49678             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49679         else
49680             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49681         fi
49682         ;;
49683     *)
49684         found=0;
49685         if [ ${D}libsToLink -ne 0 ]; then
49686             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49687         else
49688             for file in ${D}1 ; do
49689                 if [ -f ${D}file ]; then
49690                     inputFiles="${D}{inputFiles} ${D}file"
49691                     found=1
49692                 fi
49693             done
49694             if [ ${D}found -eq 0 ]; then
49695                 echo "ERROR: No file(s) found: "${D}1
49696                 exit 8
49697             fi
49698         fi
49699       ;;
49700     esac
49701     shift
49702 done # iterate cmdline words
49703
49704 #
49705 if [ -z "${D}inputFiles" ]; then
49706     echo "dllar: no input files"
49707     PrintHelp
49708 fi
49709
49710 # Now extract all .o files from .a files
49711 newInputFiles=""
49712 for file in ${D}inputFiles ; do
49713     case ${D}file in
49714     *.a | *.lib)
49715         case ${D}file in
49716         *.a)
49717             suffix=".a"
49718             AR="ar"
49719             ;;
49720         *.lib)
49721             suffix=".lib"
49722             AR="emxomfar"
49723             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49724             ;;
49725         *)
49726             ;;
49727         esac
49728         dirname=\`basnam ${D}file ${D}suffix\`"_%"
49729         mkdir ${D}dirname
49730         if [ ${D}? -ne 0 ]; then
49731             echo "Failed to create subdirectory ./${D}dirname"
49732             CleanUp
49733             exit 8;
49734         fi
49735         # Append '!' to indicate archive
49736         newInputFiles="${D}newInputFiles ${D}{dirname}!"
49737         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49738         cd ${D}curDir
49739         found=0;
49740         for subfile in ${D}dirname/*.o* ; do
49741             if [ -f ${D}subfile ]; then
49742                 found=1
49743                 if [ -s ${D}subfile ]; then
49744                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49745                     newInputFiles="${D}newInputFiles ${D}subfile"
49746                 fi
49747             fi
49748         done
49749         if [ ${D}found -eq 0 ]; then
49750             echo "WARNING: there are no files in archive \\'${D}file\\'"
49751         fi
49752         ;;
49753     *)
49754         newInputFiles="${D}{newInputFiles} ${D}file"
49755         ;;
49756     esac
49757 done
49758 inputFiles="${D}newInputFiles"
49759
49760 # Output filename(s).
49761 do_backup=0;
49762 if [ -z ${D}outFile ]; then
49763     do_backup=1;
49764     set outFile ${D}inputFiles; outFile=${D}2
49765 fi
49766
49767 # If it is an archive, remove the '!' and the '_%' suffixes
49768 case ${D}outFile in
49769 *_%!)
49770     outFile=\`basnam ${D}outFile _%!\`
49771     ;;
49772 *)
49773     ;;
49774 esac
49775 case ${D}outFile in
49776 *.dll)
49777     outFile=\`basnam ${D}outFile .dll\`
49778     ;;
49779 *.DLL)
49780     outFile=\`basnam ${D}outFile .DLL\`
49781     ;;
49782 *.o)
49783     outFile=\`basnam ${D}outFile .o\`
49784     ;;
49785 *.obj)
49786     outFile=\`basnam ${D}outFile .obj\`
49787     ;;
49788 *.a)
49789     outFile=\`basnam ${D}outFile .a\`
49790     ;;
49791 *.lib)
49792     outFile=\`basnam ${D}outFile .lib\`
49793     ;;
49794 *)
49795     ;;
49796 esac
49797 case ${D}outimpFile in
49798 *.a)
49799     outimpFile=\`basnam ${D}outimpFile .a\`
49800     ;;
49801 *.lib)
49802     outimpFile=\`basnam ${D}outimpFile .lib\`
49803     ;;
49804 *)
49805     ;;
49806 esac
49807 if [ -z ${D}outimpFile ]; then
49808     outimpFile=${D}outFile
49809 fi
49810 defFile="${D}{outFile}.def"
49811 arcFile="${D}{outimpFile}.a"
49812 arcFile2="${D}{outimpFile}.lib"
49813
49814 #create ${D}dllFile as something matching 8.3 restrictions,
49815 if [ -z ${D}renameScript ] ; then
49816     dllFile="${D}outFile"
49817 else
49818     dllFile=\`${D}renameScript ${D}outimpFile\`
49819 fi
49820
49821 if [ ${D}do_backup -ne 0 ] ; then
49822     if [ -f ${D}arcFile ] ; then
49823         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49824     fi
49825     if [ -f ${D}arcFile2 ] ; then
49826         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49827     fi
49828 fi
49829
49830 # Extract public symbols from all the object files.
49831 tmpdefFile=${D}{defFile}_%
49832 rm -f ${D}tmpdefFile
49833 for file in ${D}inputFiles ; do
49834     case ${D}file in
49835     *!)
49836         ;;
49837     *)
49838         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49839         ;;
49840     esac
49841 done
49842
49843 # Create the def file.
49844 rm -f ${D}defFile
49845 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49846 dllFile="${D}{dllFile}.dll"
49847 if [ ! -z ${D}description ]; then
49848     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49849 fi
49850 echo "EXPORTS" >> ${D}defFile
49851
49852 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49853 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49854
49855 # Checks if the export is ok or not.
49856 for word in ${D}exclude_symbols; do
49857     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49858     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49859 done
49860
49861
49862 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49863     sed "=" < ${D}tmpdefFile | \\
49864     sed '
49865       N
49866       : loop
49867       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49868       t loop
49869     ' > ${D}{tmpdefFile}%
49870     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49871 else
49872     rm -f ${D}{tmpdefFile}%
49873 fi
49874 cat ${D}tmpdefFile >> ${D}defFile
49875 rm -f ${D}tmpdefFile
49876
49877 # Do linking, create implib, and apply lxlite.
49878 gccCmdl="";
49879 for file in ${D}inputFiles ; do
49880     case ${D}file in
49881     *!)
49882         ;;
49883     *)
49884         gccCmdl="${D}gccCmdl ${D}file"
49885         ;;
49886     esac
49887 done
49888 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49889 touch "${D}{outFile}.dll"
49890
49891 doCommand "emximp -o ${D}arcFile ${D}defFile"
49892 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49893     add_flags="";
49894     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49895         add_flags="-ynd"
49896     fi
49897     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49898 fi
49899 doCommand "emxomf -s -l ${D}arcFile"
49900
49901 # Successful exit.
49902 CleanUp 1
49903 exit 0
49904 EOF
49905
49906         chmod +x dllar.sh
49907       ;;
49908
49909       powerpc-apple-macos* | \
49910       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49911       *-*-mirbsd* | \
49912       *-*-sunos4* | \
49913       *-*-osf* | \
49914       *-*-dgux5* | \
49915       *-*-sysv5* | \
49916       *-pc-msdosdjgpp )
49917               ;;
49918
49919       *)
49920         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49921 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49922    { (exit 1); exit 1; }; }
49923     esac
49924
49925     if test "x$PIC_FLAG" != "x" ; then
49926         PIC_FLAG="$PIC_FLAG -DPIC"
49927     fi
49928
49929     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49930         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49931     fi
49932     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49933         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49934     fi
49935
49936
49937
49938
49939
49940
49941
49942
49943
49944     USE_SOVERSION=0
49945     USE_SOVERLINUX=0
49946     USE_SOVERSOLARIS=0
49947     USE_SOVERCYGWIN=0
49948     USE_SOTWOSYMLINKS=0
49949     USE_MACVERSION=0
49950     SONAME_FLAG=
49951
49952     case "${BAKEFILE_HOST}" in
49953       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49954       *-*-k*bsd*-gnu | *-*-mirbsd* )
49955         if test "x$SUNCXX" = "xyes"; then
49956             SONAME_FLAG="-h "
49957         else
49958             SONAME_FLAG="-Wl,-soname,"
49959         fi
49960         USE_SOVERSION=1
49961         USE_SOVERLINUX=1
49962         USE_SOTWOSYMLINKS=1
49963       ;;
49964
49965       *-*-solaris2* )
49966         SONAME_FLAG="-h "
49967         USE_SOVERSION=1
49968         USE_SOVERSOLARIS=1
49969       ;;
49970
49971       *-*-darwin* )
49972         USE_MACVERSION=1
49973         USE_SOVERSION=1
49974         USE_SOTWOSYMLINKS=1
49975       ;;
49976
49977       *-*-cygwin* )
49978         USE_SOVERSION=1
49979         USE_SOVERCYGWIN=1
49980       ;;
49981     esac
49982
49983
49984
49985
49986
49987
49988
49989
49990
49991
49992     # Check whether --enable-dependency-tracking was given.
49993 if test "${enable_dependency_tracking+set}" = set; then
49994   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49995 fi
49996
49997
49998     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49999 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
50000
50001     BK_DEPS=""
50002     if test "x$bk_use_trackdeps" = "xno" ; then
50003         DEPS_TRACKING=0
50004         { echo "$as_me:$LINENO: result: disabled" >&5
50005 echo "${ECHO_T}disabled" >&6; }
50006     else
50007         DEPS_TRACKING=1
50008
50009         if test "x$GCC" = "xyes"; then
50010             DEPSMODE=gcc
50011             case "${BAKEFILE_HOST}" in
50012                 *-*-darwin* )
50013                                                             DEPSFLAG="-no-cpp-precomp -MMD"
50014                 ;;
50015                 * )
50016                     DEPSFLAG="-MMD"
50017                 ;;
50018             esac
50019             { echo "$as_me:$LINENO: result: gcc" >&5
50020 echo "${ECHO_T}gcc" >&6; }
50021         elif test "x$MWCC" = "xyes"; then
50022             DEPSMODE=mwcc
50023             DEPSFLAG="-MM"
50024             { echo "$as_me:$LINENO: result: mwcc" >&5
50025 echo "${ECHO_T}mwcc" >&6; }
50026         elif test "x$SUNCC" = "xyes"; then
50027             DEPSMODE=unixcc
50028             DEPSFLAG="-xM1"
50029             { echo "$as_me:$LINENO: result: Sun cc" >&5
50030 echo "${ECHO_T}Sun cc" >&6; }
50031         elif test "x$SGICC" = "xyes"; then
50032             DEPSMODE=unixcc
50033             DEPSFLAG="-M"
50034             { echo "$as_me:$LINENO: result: SGI cc" >&5
50035 echo "${ECHO_T}SGI cc" >&6; }
50036         elif test "x$HPCC" = "xyes"; then
50037             DEPSMODE=unixcc
50038             DEPSFLAG="+make"
50039             { echo "$as_me:$LINENO: result: HP cc" >&5
50040 echo "${ECHO_T}HP cc" >&6; }
50041         elif test "x$COMPAQCC" = "xyes"; then
50042             DEPSMODE=gcc
50043             DEPSFLAG="-MD"
50044             { echo "$as_me:$LINENO: result: Compaq cc" >&5
50045 echo "${ECHO_T}Compaq cc" >&6; }
50046         else
50047             DEPS_TRACKING=0
50048             { echo "$as_me:$LINENO: result: none" >&5
50049 echo "${ECHO_T}none" >&6; }
50050         fi
50051
50052         if test $DEPS_TRACKING = 1 ; then
50053
50054 D='$'
50055 cat <<EOF >bk-deps
50056 #!/bin/sh
50057
50058 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50059 # script. It is used to track C/C++ files dependencies in portable way.
50060 #
50061 # Permission is given to use this file in any way.
50062
50063 DEPSMODE=${DEPSMODE}
50064 DEPSFLAG="${DEPSFLAG}"
50065 DEPSDIRBASE=.deps
50066
50067 if test ${D}DEPSMODE = gcc ; then
50068     ${D}* ${D}{DEPSFLAG}
50069     status=${D}?
50070
50071     # determine location of created files:
50072     while test ${D}# -gt 0; do
50073         case "${D}1" in
50074             -o )
50075                 shift
50076                 objfile=${D}1
50077             ;;
50078             -* )
50079             ;;
50080             * )
50081                 srcfile=${D}1
50082             ;;
50083         esac
50084         shift
50085     done
50086     objfilebase=\`basename ${D}objfile\`
50087     builddir=\`dirname ${D}objfile\`
50088     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
50089     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
50090     depsdir=${D}builddir/${D}DEPSDIRBASE
50091     mkdir -p ${D}depsdir
50092
50093     # if the compiler failed, we're done:
50094     if test ${D}{status} != 0 ; then
50095         rm -f ${D}depfile
50096         exit ${D}{status}
50097     fi
50098
50099     # move created file to the location we want it in:
50100     if test -f ${D}depfile ; then
50101         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50102         rm -f ${D}depfile
50103     else
50104         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
50105         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
50106         if test ! -f ${D}depfile ; then
50107             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
50108             depfile="${D}objfile.d"
50109         fi
50110         if test -f ${D}depfile ; then
50111             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50112             rm -f ${D}depfile
50113         fi
50114     fi
50115     exit 0
50116
50117 elif test ${D}DEPSMODE = mwcc ; then
50118     ${D}* || exit ${D}?
50119     # Run mwcc again with -MM and redirect into the dep file we want
50120     # NOTE: We can't use shift here because we need ${D}* to be valid
50121     prevarg=
50122     for arg in ${D}* ; do
50123         if test "${D}prevarg" = "-o"; then
50124             objfile=${D}arg
50125         else
50126             case "${D}arg" in
50127                 -* )
50128                 ;;
50129                 * )
50130                     srcfile=${D}arg
50131                 ;;
50132             esac
50133         fi
50134         prevarg="${D}arg"
50135     done
50136
50137     objfilebase=\`basename ${D}objfile\`
50138     builddir=\`dirname ${D}objfile\`
50139     depsdir=${D}builddir/${D}DEPSDIRBASE
50140     mkdir -p ${D}depsdir
50141
50142     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
50143     exit 0
50144
50145 elif test ${D}DEPSMODE = unixcc; then
50146     ${D}* || exit ${D}?
50147     # Run compiler again with deps flag and redirect into the dep file.
50148     # It doesn't work if the '-o FILE' option is used, but without it the
50149     # dependency file will contain the wrong name for the object. So it is
50150     # removed from the command line, and the dep file is fixed with sed.
50151     cmd=""
50152     while test ${D}# -gt 0; do
50153         case "${D}1" in
50154             -o )
50155                 shift
50156                 objfile=${D}1
50157             ;;
50158             * )
50159                 eval arg${D}#=\\${D}1
50160                 cmd="${D}cmd \\${D}arg${D}#"
50161             ;;
50162         esac
50163         shift
50164     done
50165
50166     objfilebase=\`basename ${D}objfile\`
50167     builddir=\`dirname ${D}objfile\`
50168     depsdir=${D}builddir/${D}DEPSDIRBASE
50169     mkdir -p ${D}depsdir
50170
50171     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
50172     exit 0
50173
50174 else
50175     ${D}*
50176     exit ${D}?
50177 fi
50178 EOF
50179
50180             chmod +x bk-deps
50181                                     BK_DEPS="`pwd`/bk-deps"
50182         fi
50183     fi
50184
50185
50186
50187
50188
50189     case ${BAKEFILE_HOST} in
50190         *-*-cygwin* | *-*-mingw32* )
50191                         if test -n "$ac_tool_prefix"; then
50192   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
50193 set dummy ${ac_tool_prefix}windres; ac_word=$2
50194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50196 if test "${ac_cv_prog_WINDRES+set}" = set; then
50197   echo $ECHO_N "(cached) $ECHO_C" >&6
50198 else
50199   if test -n "$WINDRES"; then
50200   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50201 else
50202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50203 for as_dir in $PATH
50204 do
50205   IFS=$as_save_IFS
50206   test -z "$as_dir" && as_dir=.
50207   for ac_exec_ext in '' $ac_executable_extensions; do
50208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50209     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
50210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50211     break 2
50212   fi
50213 done
50214 done
50215 IFS=$as_save_IFS
50216
50217 fi
50218 fi
50219 WINDRES=$ac_cv_prog_WINDRES
50220 if test -n "$WINDRES"; then
50221   { echo "$as_me:$LINENO: result: $WINDRES" >&5
50222 echo "${ECHO_T}$WINDRES" >&6; }
50223 else
50224   { echo "$as_me:$LINENO: result: no" >&5
50225 echo "${ECHO_T}no" >&6; }
50226 fi
50227
50228
50229 fi
50230 if test -z "$ac_cv_prog_WINDRES"; then
50231   ac_ct_WINDRES=$WINDRES
50232   # Extract the first word of "windres", so it can be a program name with args.
50233 set dummy windres; ac_word=$2
50234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50236 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
50237   echo $ECHO_N "(cached) $ECHO_C" >&6
50238 else
50239   if test -n "$ac_ct_WINDRES"; then
50240   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
50241 else
50242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50243 for as_dir in $PATH
50244 do
50245   IFS=$as_save_IFS
50246   test -z "$as_dir" && as_dir=.
50247   for ac_exec_ext in '' $ac_executable_extensions; do
50248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50249     ac_cv_prog_ac_ct_WINDRES="windres"
50250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50251     break 2
50252   fi
50253 done
50254 done
50255 IFS=$as_save_IFS
50256
50257 fi
50258 fi
50259 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
50260 if test -n "$ac_ct_WINDRES"; then
50261   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
50262 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
50263 else
50264   { echo "$as_me:$LINENO: result: no" >&5
50265 echo "${ECHO_T}no" >&6; }
50266 fi
50267
50268   if test "x$ac_ct_WINDRES" = x; then
50269     WINDRES=""
50270   else
50271     case $cross_compiling:$ac_tool_warned in
50272 yes:)
50273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50274 whose name does not start with the host triplet.  If you think this
50275 configuration is useful to you, please write to autoconf@gnu.org." >&5
50276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50277 whose name does not start with the host triplet.  If you think this
50278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50279 ac_tool_warned=yes ;;
50280 esac
50281     WINDRES=$ac_ct_WINDRES
50282   fi
50283 else
50284   WINDRES="$ac_cv_prog_WINDRES"
50285 fi
50286
50287          ;;
50288
50289       *-*-darwin* | powerpc-apple-macos* )
50290             # Extract the first word of "Rez", so it can be a program name with args.
50291 set dummy Rez; ac_word=$2
50292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50294 if test "${ac_cv_prog_REZ+set}" = set; then
50295   echo $ECHO_N "(cached) $ECHO_C" >&6
50296 else
50297   if test -n "$REZ"; then
50298   ac_cv_prog_REZ="$REZ" # Let the user override the test.
50299 else
50300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50301 for as_dir in $PATH
50302 do
50303   IFS=$as_save_IFS
50304   test -z "$as_dir" && as_dir=.
50305   for ac_exec_ext in '' $ac_executable_extensions; do
50306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50307     ac_cv_prog_REZ="Rez"
50308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50309     break 2
50310   fi
50311 done
50312 done
50313 IFS=$as_save_IFS
50314
50315   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
50316 fi
50317 fi
50318 REZ=$ac_cv_prog_REZ
50319 if test -n "$REZ"; then
50320   { echo "$as_me:$LINENO: result: $REZ" >&5
50321 echo "${ECHO_T}$REZ" >&6; }
50322 else
50323   { echo "$as_me:$LINENO: result: no" >&5
50324 echo "${ECHO_T}no" >&6; }
50325 fi
50326
50327
50328             # Extract the first word of "SetFile", so it can be a program name with args.
50329 set dummy SetFile; ac_word=$2
50330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50332 if test "${ac_cv_prog_SETFILE+set}" = set; then
50333   echo $ECHO_N "(cached) $ECHO_C" >&6
50334 else
50335   if test -n "$SETFILE"; then
50336   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
50337 else
50338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50339 for as_dir in $PATH
50340 do
50341   IFS=$as_save_IFS
50342   test -z "$as_dir" && as_dir=.
50343   for ac_exec_ext in '' $ac_executable_extensions; do
50344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50345     ac_cv_prog_SETFILE="SetFile"
50346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50347     break 2
50348   fi
50349 done
50350 done
50351 IFS=$as_save_IFS
50352
50353   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
50354 fi
50355 fi
50356 SETFILE=$ac_cv_prog_SETFILE
50357 if test -n "$SETFILE"; then
50358   { echo "$as_me:$LINENO: result: $SETFILE" >&5
50359 echo "${ECHO_T}$SETFILE" >&6; }
50360 else
50361   { echo "$as_me:$LINENO: result: no" >&5
50362 echo "${ECHO_T}no" >&6; }
50363 fi
50364
50365
50366         ;;
50367     esac
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377     BAKEFILE_BAKEFILE_M4_VERSION="0.2.8"
50378
50379
50380 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.8"
50381
50382
50383
50384     # Check whether --enable-precomp-headers was given.
50385 if test "${enable_precomp_headers+set}" = set; then
50386   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
50387 fi
50388
50389
50390     GCC_PCH=0
50391     ICC_PCH=0
50392     USE_PCH=0
50393     BK_MAKE_PCH=""
50394
50395     case ${BAKEFILE_HOST} in
50396         *-*-cygwin* )
50397                                                 bk_use_pch="no"
50398             ;;
50399     esac
50400
50401     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
50402         if test "x$GCC" = "xyes"; then
50403                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
50404 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
50405             cat >conftest.$ac_ext <<_ACEOF
50406 /* confdefs.h.  */
50407 _ACEOF
50408 cat confdefs.h >>conftest.$ac_ext
50409 cat >>conftest.$ac_ext <<_ACEOF
50410 /* end confdefs.h.  */
50411
50412 int
50413 main ()
50414 {
50415
50416                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
50417                         There is no PCH support
50418                     #endif
50419                     #if (__GNUC__ < 3)
50420                         There is no PCH support
50421                     #endif
50422                     #if (__GNUC__ == 3) && \
50423                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
50424                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
50425                        ( defined(__INTEL_COMPILER) )
50426                         There is no PCH support
50427                     #endif
50428
50429   ;
50430   return 0;
50431 }
50432 _ACEOF
50433 rm -f conftest.$ac_objext
50434 if { (ac_try="$ac_compile"
50435 case "(($ac_try" in
50436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50437   *) ac_try_echo=$ac_try;;
50438 esac
50439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50440   (eval "$ac_compile") 2>conftest.er1
50441   ac_status=$?
50442   grep -v '^ *+' conftest.er1 >conftest.err
50443   rm -f conftest.er1
50444   cat conftest.err >&5
50445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50446   (exit $ac_status); } && {
50447          test -z "$ac_c_werror_flag" ||
50448          test ! -s conftest.err
50449        } && test -s conftest.$ac_objext; then
50450
50451                     { echo "$as_me:$LINENO: result: yes" >&5
50452 echo "${ECHO_T}yes" >&6; }
50453                     GCC_PCH=1
50454
50455 else
50456   echo "$as_me: failed program was:" >&5
50457 sed 's/^/| /' conftest.$ac_ext >&5
50458
50459
50460                     if test "$INTELCXX8" = "yes"; then
50461                         { echo "$as_me:$LINENO: result: yes" >&5
50462 echo "${ECHO_T}yes" >&6; }
50463                         ICC_PCH=1
50464                         if test "$INTELCXX10" = "yes"; then
50465                             ICC_PCH_CREATE_SWITCH="-pch-create"
50466                             ICC_PCH_USE_SWITCH="-pch-use"
50467                         else
50468                             ICC_PCH_CREATE_SWITCH="-create-pch"
50469                             ICC_PCH_USE_SWITCH="-use-pch"
50470                         fi
50471                     else
50472                         { echo "$as_me:$LINENO: result: no" >&5
50473 echo "${ECHO_T}no" >&6; }
50474                     fi
50475
50476 fi
50477
50478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50479             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
50480                 USE_PCH=1
50481
50482 D='$'
50483 cat <<EOF >bk-make-pch
50484 #!/bin/sh
50485
50486 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50487 # script. It is used to generated precompiled headers.
50488 #
50489 # Permission is given to use this file in any way.
50490
50491 outfile="${D}{1}"
50492 header="${D}{2}"
50493 shift
50494 shift
50495
50496 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
50497
50498 compiler=""
50499 headerfile=""
50500
50501 while test ${D}{#} -gt 0; do
50502     add_to_cmdline=1
50503     case "${D}{1}" in
50504         -I* )
50505             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
50506             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
50507                 headerfile="${D}{incdir}/${D}{header}"
50508             fi
50509         ;;
50510         -use-pch|-use_pch|-pch-use )
50511             shift
50512             add_to_cmdline=0
50513         ;;
50514     esac
50515     if test ${D}add_to_cmdline = 1 ; then
50516         compiler="${D}{compiler} ${D}{1}"
50517     fi
50518     shift
50519 done
50520
50521 if test "x${D}{headerfile}" = "x" ; then
50522     echo "error: can't find header ${D}{header} in include paths" >&2
50523 else
50524     if test -f ${D}{outfile} ; then
50525         rm -f ${D}{outfile}
50526     else
50527         mkdir -p \`dirname ${D}{outfile}\`
50528     fi
50529     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
50530     mkdir -p ${D}{builddir}/.deps
50531     if test "x${GCC_PCH}" = "x1" ; then
50532         # can do this because gcc is >= 3.4:
50533         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
50534     elif test "x${ICC_PCH}" = "x1" ; then
50535         filename=pch_gen-${D}${D}
50536         file=${D}{filename}.c
50537         dfile=${D}{filename}.d
50538         cat > ${D}file <<EOT
50539 #include "${D}header"
50540 EOT
50541         # using -MF icc complains about differing command lines in creation/use
50542         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
50543           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
50544           rm -f ${D}file ${D}dfile ${D}{filename}.o
50545     fi
50546     exit ${D}{?}
50547 fi
50548 EOF
50549
50550                 chmod +x bk-make-pch
50551                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
50552             fi
50553         fi
50554     fi
50555
50556
50557
50558
50559
50560
50561
50562     COND_BUILD_DEBUG="#"
50563     if test "x$BUILD" = "xdebug" ; then
50564         COND_BUILD_DEBUG=""
50565     fi
50566
50567     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
50568     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50569         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
50570     fi
50571
50572     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
50573     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50574         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
50575     fi
50576
50577     COND_BUILD_DEBUG_UNICODE_0="#"
50578     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50579         COND_BUILD_DEBUG_UNICODE_0=""
50580     fi
50581
50582     COND_BUILD_DEBUG_UNICODE_1="#"
50583     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50584         COND_BUILD_DEBUG_UNICODE_1=""
50585     fi
50586
50587     COND_BUILD_RELEASE="#"
50588     if test "x$BUILD" = "xrelease" ; then
50589         COND_BUILD_RELEASE=""
50590     fi
50591
50592     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
50593     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50594         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
50595     fi
50596
50597     COND_BUILD_RELEASE_UNICODE_0="#"
50598     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50599         COND_BUILD_RELEASE_UNICODE_0=""
50600     fi
50601
50602     COND_BUILD_RELEASE_UNICODE_1="#"
50603     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50604         COND_BUILD_RELEASE_UNICODE_1=""
50605     fi
50606
50607     COND_BUILD_debug="#"
50608     if test "x$BUILD" = "xdebug" ; then
50609         COND_BUILD_debug=""
50610     fi
50611
50612     COND_BUILD_debug_DEBUG_FLAG_default="#"
50613     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50614         COND_BUILD_debug_DEBUG_FLAG_default=""
50615     fi
50616
50617     COND_BUILD_debug_DEBUG_INFO_default="#"
50618     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50619         COND_BUILD_debug_DEBUG_INFO_default=""
50620     fi
50621
50622     COND_BUILD_debug_UNICODE_0="#"
50623     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50624         COND_BUILD_debug_UNICODE_0=""
50625     fi
50626
50627     COND_BUILD_debug_UNICODE_1="#"
50628     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50629         COND_BUILD_debug_UNICODE_1=""
50630     fi
50631
50632     COND_BUILD_release="#"
50633     if test "x$BUILD" = "xrelease" ; then
50634         COND_BUILD_release=""
50635     fi
50636
50637     COND_BUILD_release_DEBUG_INFO_default="#"
50638     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50639         COND_BUILD_release_DEBUG_INFO_default=""
50640     fi
50641
50642     COND_BUILD_release_UNICODE_0="#"
50643     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50644         COND_BUILD_release_UNICODE_0=""
50645     fi
50646
50647     COND_BUILD_release_UNICODE_1="#"
50648     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50649         COND_BUILD_release_UNICODE_1=""
50650     fi
50651
50652     COND_DEBUG_FLAG_0="#"
50653     if test "x$DEBUG_FLAG" = "x0" ; then
50654         COND_DEBUG_FLAG_0=""
50655     fi
50656
50657     COND_DEBUG_FLAG_1="#"
50658     if test "x$DEBUG_FLAG" = "x1" ; then
50659         COND_DEBUG_FLAG_1=""
50660     fi
50661
50662     COND_DEBUG_INFO_0="#"
50663     if test "x$DEBUG_INFO" = "x0" ; then
50664         COND_DEBUG_INFO_0=""
50665     fi
50666
50667     COND_DEBUG_INFO_1="#"
50668     if test "x$DEBUG_INFO" = "x1" ; then
50669         COND_DEBUG_INFO_1=""
50670     fi
50671
50672     COND_DEPS_TRACKING_0="#"
50673     if test "x$DEPS_TRACKING" = "x0" ; then
50674         COND_DEPS_TRACKING_0=""
50675     fi
50676
50677     COND_DEPS_TRACKING_1="#"
50678     if test "x$DEPS_TRACKING" = "x1" ; then
50679         COND_DEPS_TRACKING_1=""
50680     fi
50681
50682     COND_GCC_PCH_1="#"
50683     if test "x$GCC_PCH" = "x1" ; then
50684         COND_GCC_PCH_1=""
50685     fi
50686
50687     COND_ICC_PCH_1="#"
50688     if test "x$ICC_PCH" = "x1" ; then
50689         COND_ICC_PCH_1=""
50690     fi
50691
50692     COND_MONOLITHIC_0="#"
50693     if test "x$MONOLITHIC" = "x0" ; then
50694         COND_MONOLITHIC_0=""
50695     fi
50696
50697     COND_MONOLITHIC_0_SHARED_0="#"
50698     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50699         COND_MONOLITHIC_0_SHARED_0=""
50700     fi
50701
50702     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50703     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50704         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50705     fi
50706
50707     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50708     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50709         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50710     fi
50711
50712     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50713     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50714         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50715     fi
50716
50717     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50718     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50719         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50720     fi
50721
50722     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50723     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50724         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50725     fi
50726
50727     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
50728     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50729         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
50730     fi
50731
50732     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
50733     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50734         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
50735     fi
50736
50737     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50738     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50739         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50740     fi
50741
50742     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
50743     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50744         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
50745     fi
50746
50747     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50748     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50749         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50750     fi
50751
50752     COND_MONOLITHIC_0_SHARED_1="#"
50753     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50754         COND_MONOLITHIC_0_SHARED_1=""
50755     fi
50756
50757     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50758     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50759         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50760     fi
50761
50762     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50763     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50764         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50765     fi
50766
50767     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50768     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50769         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50770     fi
50771
50772     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50773     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50774         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50775     fi
50776
50777     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50778     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50779         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50780     fi
50781
50782     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
50783     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
50784         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
50785     fi
50786
50787     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
50788     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
50789         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
50790     fi
50791
50792     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50793     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50794         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50795     fi
50796
50797     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
50798     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
50799         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
50800     fi
50801
50802     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50803     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50804         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50805     fi
50806
50807     COND_MONOLITHIC_0_USE_AUI_1="#"
50808     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
50809         COND_MONOLITHIC_0_USE_AUI_1=""
50810     fi
50811
50812     COND_MONOLITHIC_0_USE_GUI_1="#"
50813     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
50814         COND_MONOLITHIC_0_USE_GUI_1=""
50815     fi
50816
50817     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50818     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50819         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50820     fi
50821
50822     COND_MONOLITHIC_0_USE_HTML_1="#"
50823     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50824         COND_MONOLITHIC_0_USE_HTML_1=""
50825     fi
50826
50827     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50828     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50829         COND_MONOLITHIC_0_USE_MEDIA_1=""
50830     fi
50831
50832     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50833     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50834         COND_MONOLITHIC_0_USE_PROPGRID_1=""
50835     fi
50836
50837     COND_MONOLITHIC_0_USE_QA_1="#"
50838     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50839         COND_MONOLITHIC_0_USE_QA_1=""
50840     fi
50841
50842     COND_MONOLITHIC_0_USE_RIBBON_1="#"
50843     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50844         COND_MONOLITHIC_0_USE_RIBBON_1=""
50845     fi
50846
50847     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50848     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50849         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50850     fi
50851
50852     COND_MONOLITHIC_0_USE_STC_1="#"
50853     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50854         COND_MONOLITHIC_0_USE_STC_1=""
50855     fi
50856
50857     COND_MONOLITHIC_0_USE_XRC_1="#"
50858     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50859         COND_MONOLITHIC_0_USE_XRC_1=""
50860     fi
50861
50862     COND_MONOLITHIC_1="#"
50863     if test "x$MONOLITHIC" = "x1" ; then
50864         COND_MONOLITHIC_1=""
50865     fi
50866
50867     COND_MONOLITHIC_1_SHARED_0="#"
50868     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50869         COND_MONOLITHIC_1_SHARED_0=""
50870     fi
50871
50872     COND_MONOLITHIC_1_SHARED_1="#"
50873     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50874         COND_MONOLITHIC_1_SHARED_1=""
50875     fi
50876
50877     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50878     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50879         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50880     fi
50881
50882     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50883     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50884         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50885     fi
50886
50887     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50888     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50889         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50890     fi
50891
50892     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50893     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50894         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50895     fi
50896
50897     COND_PLATFORM_MACOSX_1="#"
50898     if test "x$PLATFORM_MACOSX" = "x1" ; then
50899         COND_PLATFORM_MACOSX_1=""
50900     fi
50901
50902     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50903     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50904         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50905     fi
50906
50907     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
50908     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
50909         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
50910     fi
50911
50912     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50913     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50914         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50915     fi
50916
50917     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50918     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50919         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50920     fi
50921
50922     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50923     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50924         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50925     fi
50926
50927     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50928     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50929         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50930     fi
50931
50932     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50933     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50934         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50935     fi
50936
50937     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50938     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50939         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50940     fi
50941
50942     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50943     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50944         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50945     fi
50946
50947     COND_PLATFORM_MACOS_1="#"
50948     if test "x$PLATFORM_MACOS" = "x1" ; then
50949         COND_PLATFORM_MACOS_1=""
50950     fi
50951
50952     COND_PLATFORM_MAC_0="#"
50953     if test "x$PLATFORM_MAC" = "x0" ; then
50954         COND_PLATFORM_MAC_0=""
50955     fi
50956
50957     COND_PLATFORM_MAC_1="#"
50958     if test "x$PLATFORM_MAC" = "x1" ; then
50959         COND_PLATFORM_MAC_1=""
50960     fi
50961
50962     COND_PLATFORM_MSDOS_0="#"
50963     if test "x$PLATFORM_MSDOS" = "x0" ; then
50964         COND_PLATFORM_MSDOS_0=""
50965     fi
50966
50967     COND_PLATFORM_MSDOS_1="#"
50968     if test "x$PLATFORM_MSDOS" = "x1" ; then
50969         COND_PLATFORM_MSDOS_1=""
50970     fi
50971
50972     COND_PLATFORM_OS2_1="#"
50973     if test "x$PLATFORM_OS2" = "x1" ; then
50974         COND_PLATFORM_OS2_1=""
50975     fi
50976
50977     COND_PLATFORM_UNIX_0="#"
50978     if test "x$PLATFORM_UNIX" = "x0" ; then
50979         COND_PLATFORM_UNIX_0=""
50980     fi
50981
50982     COND_PLATFORM_UNIX_1="#"
50983     if test "x$PLATFORM_UNIX" = "x1" ; then
50984         COND_PLATFORM_UNIX_1=""
50985     fi
50986
50987     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50988     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50989         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50990     fi
50991
50992     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50993     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50994         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50995     fi
50996
50997     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50998     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50999         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51000     fi
51001
51002     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51003     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51004         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51005     fi
51006
51007     COND_PLATFORM_WIN32_0="#"
51008     if test "x$PLATFORM_WIN32" = "x0" ; then
51009         COND_PLATFORM_WIN32_0=""
51010     fi
51011
51012     COND_PLATFORM_WIN32_1="#"
51013     if test "x$PLATFORM_WIN32" = "x1" ; then
51014         COND_PLATFORM_WIN32_1=""
51015     fi
51016
51017     COND_PLATFORM_WIN32_1_SHARED_0="#"
51018     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51019         COND_PLATFORM_WIN32_1_SHARED_0=""
51020     fi
51021
51022     COND_SHARED_0="#"
51023     if test "x$SHARED" = "x0" ; then
51024         COND_SHARED_0=""
51025     fi
51026
51027     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51028     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51029         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51030     fi
51031
51032     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51033     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51034         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51035     fi
51036
51037     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51038     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51039         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51040     fi
51041
51042     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51043     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51044         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51045     fi
51046
51047     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51048     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51049         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51050     fi
51051
51052     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51053     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51054         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51055     fi
51056
51057     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51058     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51059         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51060     fi
51061
51062     COND_SHARED_0_USE_STC_1="#"
51063     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51064         COND_SHARED_0_USE_STC_1=""
51065     fi
51066
51067     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
51068     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51069         COND_SHARED_0_wxUSE_EXPAT_builtin=""
51070     fi
51071
51072     COND_SHARED_0_wxUSE_REGEX_builtin="#"
51073     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51074         COND_SHARED_0_wxUSE_REGEX_builtin=""
51075     fi
51076
51077     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
51078     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51079         COND_SHARED_0_wxUSE_ZLIB_builtin=""
51080     fi
51081
51082     COND_SHARED_1="#"
51083     if test "x$SHARED" = "x1" ; then
51084         COND_SHARED_1=""
51085     fi
51086
51087     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51088     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51089         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51090     fi
51091
51092     COND_TOOLKIT_="#"
51093     if test "x$TOOLKIT" = "x" ; then
51094         COND_TOOLKIT_=""
51095     fi
51096
51097     COND_TOOLKIT_COCOA="#"
51098     if test "x$TOOLKIT" = "xCOCOA" ; then
51099         COND_TOOLKIT_COCOA=""
51100     fi
51101
51102     COND_TOOLKIT_COCOA_USE_GUI_1="#"
51103     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51104         COND_TOOLKIT_COCOA_USE_GUI_1=""
51105     fi
51106
51107     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
51108     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51109         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
51110     fi
51111
51112     COND_TOOLKIT_DFB="#"
51113     if test "x$TOOLKIT" = "xDFB" ; then
51114         COND_TOOLKIT_DFB=""
51115     fi
51116
51117     COND_TOOLKIT_DFB_USE_GUI_1="#"
51118     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
51119         COND_TOOLKIT_DFB_USE_GUI_1=""
51120     fi
51121
51122     COND_TOOLKIT_GTK="#"
51123     if test "x$TOOLKIT" = "xGTK" ; then
51124         COND_TOOLKIT_GTK=""
51125     fi
51126
51127     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
51128     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
51129         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
51130     fi
51131
51132     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
51133     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
51134         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
51135     fi
51136
51137     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
51138     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
51139         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
51140     fi
51141
51142     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
51143     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51144         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
51145     fi
51146
51147     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
51148     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
51149         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
51150     fi
51151
51152     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
51153     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51154         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
51155     fi
51156
51157     COND_TOOLKIT_GTK_USE_GUI_1="#"
51158     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
51159         COND_TOOLKIT_GTK_USE_GUI_1=""
51160     fi
51161
51162     COND_TOOLKIT_MAC="#"
51163     if test "x$TOOLKIT" = "xMAC" ; then
51164         COND_TOOLKIT_MAC=""
51165     fi
51166
51167     COND_TOOLKIT_MGL="#"
51168     if test "x$TOOLKIT" = "xMGL" ; then
51169         COND_TOOLKIT_MGL=""
51170     fi
51171
51172     COND_TOOLKIT_MGL_USE_GUI_1="#"
51173     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51174         COND_TOOLKIT_MGL_USE_GUI_1=""
51175     fi
51176
51177     COND_TOOLKIT_MOTIF="#"
51178     if test "x$TOOLKIT" = "xMOTIF" ; then
51179         COND_TOOLKIT_MOTIF=""
51180     fi
51181
51182     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
51183     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
51184         COND_TOOLKIT_MOTIF_USE_GUI_1=""
51185     fi
51186
51187     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
51188     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51189         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
51190     fi
51191
51192     COND_TOOLKIT_MSW="#"
51193     if test "x$TOOLKIT" = "xMSW" ; then
51194         COND_TOOLKIT_MSW=""
51195     fi
51196
51197     COND_TOOLKIT_MSW_USE_GUI_1="#"
51198     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
51199         COND_TOOLKIT_MSW_USE_GUI_1=""
51200     fi
51201
51202     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
51203     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51204         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
51205     fi
51206
51207     COND_TOOLKIT_MSW_WXUNIV_0="#"
51208     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51209         COND_TOOLKIT_MSW_WXUNIV_0=""
51210     fi
51211
51212     COND_TOOLKIT_OSX_CARBON="#"
51213     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
51214         COND_TOOLKIT_OSX_CARBON=""
51215     fi
51216
51217     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51218     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51219         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51220     fi
51221
51222     COND_TOOLKIT_OSX_COCOA="#"
51223     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
51224         COND_TOOLKIT_OSX_COCOA=""
51225     fi
51226
51227     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51228     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51229         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51230     fi
51231
51232     COND_TOOLKIT_OSX_IPHONE="#"
51233     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
51234         COND_TOOLKIT_OSX_IPHONE=""
51235     fi
51236
51237     COND_TOOLKIT_PM="#"
51238     if test "x$TOOLKIT" = "xPM" ; then
51239         COND_TOOLKIT_PM=""
51240     fi
51241
51242     COND_TOOLKIT_PM_USE_GUI_1="#"
51243     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
51244         COND_TOOLKIT_PM_USE_GUI_1=""
51245     fi
51246
51247     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
51248     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51249         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
51250     fi
51251
51252     COND_TOOLKIT_WINCE="#"
51253     if test "x$TOOLKIT" = "xWINCE" ; then
51254         COND_TOOLKIT_WINCE=""
51255     fi
51256
51257     COND_TOOLKIT_WINCE_USE_GUI_1="#"
51258     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
51259         COND_TOOLKIT_WINCE_USE_GUI_1=""
51260     fi
51261
51262     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
51263     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51264         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
51265     fi
51266
51267     COND_TOOLKIT_WINCE_WXUNIV_0="#"
51268     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
51269         COND_TOOLKIT_WINCE_WXUNIV_0=""
51270     fi
51271
51272     COND_TOOLKIT_X11="#"
51273     if test "x$TOOLKIT" = "xX11" ; then
51274         COND_TOOLKIT_X11=""
51275     fi
51276
51277     COND_TOOLKIT_X11_USE_GUI_1="#"
51278     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
51279         COND_TOOLKIT_X11_USE_GUI_1=""
51280     fi
51281
51282     COND_UNICODE_1="#"
51283     if test "x$UNICODE" = "x1" ; then
51284         COND_UNICODE_1=""
51285     fi
51286
51287     COND_USE_CAIRO_1="#"
51288     if test "x$USE_CAIRO" = "x1" ; then
51289         COND_USE_CAIRO_1=""
51290     fi
51291
51292     COND_USE_EXCEPTIONS_0="#"
51293     if test "x$USE_EXCEPTIONS" = "x0" ; then
51294         COND_USE_EXCEPTIONS_0=""
51295     fi
51296
51297     COND_USE_EXCEPTIONS_1="#"
51298     if test "x$USE_EXCEPTIONS" = "x1" ; then
51299         COND_USE_EXCEPTIONS_1=""
51300     fi
51301
51302     COND_USE_GUI_0="#"
51303     if test "x$USE_GUI" = "x0" ; then
51304         COND_USE_GUI_0=""
51305     fi
51306
51307     COND_USE_GUI_1="#"
51308     if test "x$USE_GUI" = "x1" ; then
51309         COND_USE_GUI_1=""
51310     fi
51311
51312     COND_USE_GUI_1_USE_OPENGL_1="#"
51313     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51314         COND_USE_GUI_1_USE_OPENGL_1=""
51315     fi
51316
51317     COND_USE_GUI_1_WXUNIV_0="#"
51318     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51319         COND_USE_GUI_1_WXUNIV_0=""
51320     fi
51321
51322     COND_USE_GUI_1_WXUNIV_1="#"
51323     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
51324         COND_USE_GUI_1_WXUNIV_1=""
51325     fi
51326
51327     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51328     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51329         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51330     fi
51331
51332     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51333     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51334         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51335     fi
51336
51337     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51338     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51339         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51340     fi
51341
51342     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51343     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51344         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51345     fi
51346
51347     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51348     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51349         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51350     fi
51351
51352     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51353     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51354         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51355     fi
51356
51357     COND_USE_OPENGL_1="#"
51358     if test "x$USE_OPENGL" = "x1" ; then
51359         COND_USE_OPENGL_1=""
51360     fi
51361
51362     COND_USE_PCH_1="#"
51363     if test "x$USE_PCH" = "x1" ; then
51364         COND_USE_PCH_1=""
51365     fi
51366
51367     COND_USE_PLUGINS_0="#"
51368     if test "x$USE_PLUGINS" = "x0" ; then
51369         COND_USE_PLUGINS_0=""
51370     fi
51371
51372     COND_USE_RTTI_0="#"
51373     if test "x$USE_RTTI" = "x0" ; then
51374         COND_USE_RTTI_0=""
51375     fi
51376
51377     COND_USE_RTTI_1="#"
51378     if test "x$USE_RTTI" = "x1" ; then
51379         COND_USE_RTTI_1=""
51380     fi
51381
51382     COND_USE_SOTWOSYMLINKS_1="#"
51383     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
51384         COND_USE_SOTWOSYMLINKS_1=""
51385     fi
51386
51387     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
51388     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51389         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
51390     fi
51391
51392     COND_USE_SOVERLINUX_1="#"
51393     if test "x$USE_SOVERLINUX" = "x1" ; then
51394         COND_USE_SOVERLINUX_1=""
51395     fi
51396
51397     COND_USE_SOVERSION_0="#"
51398     if test "x$USE_SOVERSION" = "x0" ; then
51399         COND_USE_SOVERSION_0=""
51400     fi
51401
51402     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
51403     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
51404         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
51405     fi
51406
51407     COND_USE_SOVERSOLARIS_1="#"
51408     if test "x$USE_SOVERSOLARIS" = "x1" ; then
51409         COND_USE_SOVERSOLARIS_1=""
51410     fi
51411
51412     COND_USE_STC_1="#"
51413     if test "x$USE_STC" = "x1" ; then
51414         COND_USE_STC_1=""
51415     fi
51416
51417     COND_USE_THREADS_0="#"
51418     if test "x$USE_THREADS" = "x0" ; then
51419         COND_USE_THREADS_0=""
51420     fi
51421
51422     COND_USE_THREADS_1="#"
51423     if test "x$USE_THREADS" = "x1" ; then
51424         COND_USE_THREADS_1=""
51425     fi
51426
51427     COND_USE_XRC_1="#"
51428     if test "x$USE_XRC" = "x1" ; then
51429         COND_USE_XRC_1=""
51430     fi
51431
51432     COND_WINDOWS_IMPLIB_1="#"
51433     if test "x$WINDOWS_IMPLIB" = "x1" ; then
51434         COND_WINDOWS_IMPLIB_1=""
51435     fi
51436
51437     COND_WITH_PLUGIN_SDL_1="#"
51438     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
51439         COND_WITH_PLUGIN_SDL_1=""
51440     fi
51441
51442     COND_WXUNIV_0="#"
51443     if test "x$WXUNIV" = "x0" ; then
51444         COND_WXUNIV_0=""
51445     fi
51446
51447     COND_WXUNIV_1="#"
51448     if test "x$WXUNIV" = "x1" ; then
51449         COND_WXUNIV_1=""
51450     fi
51451
51452     COND_WXUSE_EXPAT_BUILTIN="#"
51453     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51454         COND_WXUSE_EXPAT_BUILTIN=""
51455     fi
51456
51457     COND_WXUSE_LIBJPEG_BUILTIN="#"
51458     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51459         COND_WXUSE_LIBJPEG_BUILTIN=""
51460     fi
51461
51462     COND_WXUSE_LIBPNG_BUILTIN="#"
51463     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51464         COND_WXUSE_LIBPNG_BUILTIN=""
51465     fi
51466
51467     COND_WXUSE_LIBTIFF_BUILTIN="#"
51468     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51469         COND_WXUSE_LIBTIFF_BUILTIN=""
51470     fi
51471
51472     COND_WXUSE_REGEX_BUILTIN="#"
51473     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51474         COND_WXUSE_REGEX_BUILTIN=""
51475     fi
51476
51477     COND_WXUSE_ZLIB_BUILTIN="#"
51478     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51479         COND_WXUSE_ZLIB_BUILTIN=""
51480     fi
51481
51482     COND_wxUSE_EXPAT_builtin="#"
51483     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51484         COND_wxUSE_EXPAT_builtin=""
51485     fi
51486
51487     COND_wxUSE_LIBJPEG_builtin="#"
51488     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51489         COND_wxUSE_LIBJPEG_builtin=""
51490     fi
51491
51492     COND_wxUSE_LIBPNG_builtin="#"
51493     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51494         COND_wxUSE_LIBPNG_builtin=""
51495     fi
51496
51497     COND_wxUSE_LIBTIFF_builtin="#"
51498     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51499         COND_wxUSE_LIBTIFF_builtin=""
51500     fi
51501
51502     COND_wxUSE_REGEX_builtin="#"
51503     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51504         COND_wxUSE_REGEX_builtin=""
51505     fi
51506
51507     COND_wxUSE_ZLIB_builtin="#"
51508     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51509         COND_wxUSE_ZLIB_builtin=""
51510     fi
51511
51512
51513
51514     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
51515         { { 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
51516 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;}
51517    { (exit 1); exit 1; }; }
51518     fi
51519
51520     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
51521         { { 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
51522 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;}
51523    { (exit 1); exit 1; }; }
51524     fi
51525
51526
51527 case ${INSTALL} in
51528   /* ) # Absolute
51529      ;;
51530   ?:* ) # Drive letter, considered as absolute.
51531      ;;
51532   *)
51533      INSTALL=`pwd`/${INSTALL} ;;
51534 esac
51535
51536 if test "$wxUSE_GUI" = "yes"; then
51537
51538 if test "$wxUSE_MSW" = 1 ; then
51539     if test "x$WINDRES" = "x"; then
51540         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
51541 echo "$as_me: error: Required windres program not found" >&2;}
51542    { (exit 1); exit 1; }; }
51543     fi
51544
51545     RESCOMP="$WINDRES $WINDRES_CPU_DEFINE"
51546 fi
51547
51548 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
51549             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
51550     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
51551
51552         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
51553
51554     # Extract the first word of "DeRez", so it can be a program name with args.
51555 set dummy DeRez; ac_word=$2
51556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51558 if test "${ac_cv_prog_DEREZ+set}" = set; then
51559   echo $ECHO_N "(cached) $ECHO_C" >&6
51560 else
51561   if test -n "$DEREZ"; then
51562   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
51563 else
51564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51565 for as_dir in $PATH
51566 do
51567   IFS=$as_save_IFS
51568   test -z "$as_dir" && as_dir=.
51569   for ac_exec_ext in '' $ac_executable_extensions; do
51570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51571     ac_cv_prog_DEREZ="DeRez"
51572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51573     break 2
51574   fi
51575 done
51576 done
51577 IFS=$as_save_IFS
51578
51579   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
51580 fi
51581 fi
51582 DEREZ=$ac_cv_prog_DEREZ
51583 if test -n "$DEREZ"; then
51584   { echo "$as_me:$LINENO: result: $DEREZ" >&5
51585 echo "${ECHO_T}$DEREZ" >&6; }
51586 else
51587   { echo "$as_me:$LINENO: result: no" >&5
51588 echo "${ECHO_T}no" >&6; }
51589 fi
51590
51591
51592
51593     MACSETFILE="\$(SETFILE)"
51594
51595             if test "$wxUSE_OSX_CARBON" = 1; then
51596         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
51597         RESCOMP="$REZ"
51598         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
51599     else
51600         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
51601         RESCOMP="cat /dev/null \| $REZ"
51602         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
51603     fi
51604
51605 else
51606         MACSETFILE="@true"
51607
51608     if test "$wxUSE_PM" = 1; then
51609         RESCOMP="emxbind"
51610         WXCONFIG_RESFLAGS="-ep"
51611
51612                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
51613     else
51614         POSTLINK_COMMAND="@true"
51615     fi
51616 fi
51617
51618 fi
51619
51620
51621 if test $GCC_PCH = 1
51622 then
51623     if test "$wx_cv_gcc_pch_bug" = yes; then
51624         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
51625 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
51626         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
51627 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
51628         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
51629 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
51630     fi
51631
51632     # Our WX_PRECOMP flag does not make sense for any language except C++ because
51633     # the headers that benefit from precompilation are mostly C++ headers.
51634     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51635     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
51636     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51637 fi
51638
51639
51640 if test "$wxUSE_MAC" = 1 ; then
51641     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
51642         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
51643         mv temp bk-deps
51644         chmod +x bk-deps
51645     fi
51646 fi
51647
51648 if test "$wxUSE_SHARED" = "yes"; then
51649                 case "${host}" in
51650       *-pc-os2_emx | *-pc-os2-emx )
51651         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51652         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51653         cp -p ${srcdir}/src/os2/dllnames.sh .
51654         cp -p ${srcdir}/src/os2/dllar.sh .
51655       ;;
51656     esac
51657 fi
51658 if test "$wxUSE_OMF" = "yes"; then
51659     case "${host}" in
51660       *-pc-os2_emx | *-pc-os2-emx )
51661         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
51662         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51663         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51664       ;;
51665     esac
51666 fi
51667
51668 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
51669
51670
51671 case "${host}" in
51672     *-*-solaris2* )
51673                         if test "$GCC" = yes; then
51674             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
51675             LIBS=`echo $LIBS | sed 's/-mt//'`
51676             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
51677         fi
51678         ;;
51679
51680     *-*-linux* )
51681                         if test "x$SUNCXX" = xyes; then
51682             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
51683             LIBS=`echo $LIBS | sed 's/-pthread//'`
51684             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
51685         fi
51686         ;;
51687 esac
51688
51689 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
51690 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
51691 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
51692 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
51693
51694 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
51695
51696
51697
51698
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728
51729
51730
51731
51732
51733
51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
51756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
51757 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
51758 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
51759   echo $ECHO_N "(cached) $ECHO_C" >&6
51760 else
51761   cat >conftest.make <<\_ACEOF
51762 SHELL = /bin/sh
51763 all:
51764         @echo '@@@%%%=$(MAKE)=@@@%%%'
51765 _ACEOF
51766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
51767 case `${MAKE-make} -f conftest.make 2>/dev/null` in
51768   *@@@%%%=?*=@@@%%%*)
51769     eval ac_cv_prog_make_${ac_make}_set=yes;;
51770   *)
51771     eval ac_cv_prog_make_${ac_make}_set=no;;
51772 esac
51773 rm -f conftest.make
51774 fi
51775 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
51776   { echo "$as_me:$LINENO: result: yes" >&5
51777 echo "${ECHO_T}yes" >&6; }
51778   SET_MAKE=
51779 else
51780   { echo "$as_me:$LINENO: result: no" >&5
51781 echo "${ECHO_T}no" >&6; }
51782   SET_MAKE="MAKE=${MAKE-make}"
51783 fi
51784
51785
51786
51787 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
51788
51789
51790 if test "$USE_WIN32" = 1; then
51791     ac_config_commands="$ac_config_commands rcdefs.h"
51792
51793 fi
51794
51795 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
51796
51797
51798 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
51799
51800
51801 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
51802
51803
51804 if test "$wx_cv_version_script" = "yes"; then
51805     ac_config_files="$ac_config_files version-script"
51806
51807 fi
51808 ac_config_files="$ac_config_files Makefile"
51809
51810
51811 ac_config_commands="$ac_config_commands wx-config"
51812
51813
51814
51815 if test "$wxWITH_SUBDIRS" != "no"; then
51816 if test "$wxUSE_GUI" = "yes"; then
51817     SUBDIRS="samples demos utils"
51818 else
51819             SUBDIRS="samples utils"
51820 fi
51821
51822
51823
51824 # Check whether --with-cppunit-prefix was given.
51825 if test "${with_cppunit_prefix+set}" = set; then
51826   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
51827 else
51828   cppunit_config_prefix=""
51829 fi
51830
51831
51832 # Check whether --with-cppunit-exec-prefix was given.
51833 if test "${with_cppunit_exec_prefix+set}" = set; then
51834   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
51835 else
51836   cppunit_config_exec_prefix=""
51837 fi
51838
51839
51840   if test x$cppunit_config_exec_prefix != x ; then
51841      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51842      if test x${CPPUNIT_CONFIG+set} != xset ; then
51843         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51844      fi
51845   fi
51846   if test x$cppunit_config_prefix != x ; then
51847      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51848      if test x${CPPUNIT_CONFIG+set} != xset ; then
51849         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51850      fi
51851   fi
51852
51853   # Extract the first word of "cppunit-config", so it can be a program name with args.
51854 set dummy cppunit-config; ac_word=$2
51855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51857 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51858   echo $ECHO_N "(cached) $ECHO_C" >&6
51859 else
51860   case $CPPUNIT_CONFIG in
51861   [\\/]* | ?:[\\/]*)
51862   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51863   ;;
51864   *)
51865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51866 for as_dir in $PATH
51867 do
51868   IFS=$as_save_IFS
51869   test -z "$as_dir" && as_dir=.
51870   for ac_exec_ext in '' $ac_executable_extensions; do
51871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51872     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51874     break 2
51875   fi
51876 done
51877 done
51878 IFS=$as_save_IFS
51879
51880   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51881   ;;
51882 esac
51883 fi
51884 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51885 if test -n "$CPPUNIT_CONFIG"; then
51886   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51887 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
51888 else
51889   { echo "$as_me:$LINENO: result: no" >&5
51890 echo "${ECHO_T}no" >&6; }
51891 fi
51892
51893
51894   cppunit_version_min=1.8.0
51895
51896   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51897 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
51898   no_cppunit=""
51899   if test "$CPPUNIT_CONFIG" = "no" ; then
51900     { echo "$as_me:$LINENO: result: no" >&5
51901 echo "${ECHO_T}no" >&6; }
51902     no_cppunit=yes
51903   else
51904     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51905     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51906     cppunit_version=`$CPPUNIT_CONFIG --version`
51907
51908     cppunit_major_version=`echo $cppunit_version | \
51909            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51910     cppunit_minor_version=`echo $cppunit_version | \
51911            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51912     cppunit_micro_version=`echo $cppunit_version | \
51913            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51914
51915     cppunit_major_min=`echo $cppunit_version_min | \
51916            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51917     cppunit_minor_min=`echo $cppunit_version_min | \
51918            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51919     cppunit_micro_min=`echo $cppunit_version_min | \
51920            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51921
51922     cppunit_version_proper=`expr \
51923         $cppunit_major_version \> $cppunit_major_min \| \
51924         $cppunit_major_version \= $cppunit_major_min \& \
51925         $cppunit_minor_version \> $cppunit_minor_min \| \
51926         $cppunit_major_version \= $cppunit_major_min \& \
51927         $cppunit_minor_version \= $cppunit_minor_min \& \
51928         $cppunit_micro_version \>= $cppunit_micro_min `
51929
51930     if test "$cppunit_version_proper" = "1" ; then
51931       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51932 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
51933     else
51934       { echo "$as_me:$LINENO: result: no" >&5
51935 echo "${ECHO_T}no" >&6; }
51936       no_cppunit=yes
51937     fi
51938   fi
51939
51940   if test "x$no_cppunit" = x ; then
51941      SUBDIRS="$SUBDIRS tests"
51942   else
51943      CPPUNIT_CFLAGS=""
51944      CPPUNIT_LIBS=""
51945      :
51946   fi
51947
51948
51949
51950
51951
51952 for subdir in $SUBDIRS; do
51953     if test -d ${srcdir}/${subdir} ; then
51954         if test "$wxUSE_GUI" = "yes"; then
51955             if test ${subdir} = "samples"; then
51956                                                 makefiles="samples/Makefile.in $makefiles"
51957                 for sample in $SAMPLES_SUBDIRS; do
51958                     if test -d $srcdir/samples/$sample; then
51959                         makefiles="samples/$sample/Makefile.in $makefiles"
51960                     fi
51961                 done
51962             else
51963                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51964                 eval "disabled=\$$disabled_var"
51965                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51966                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51967             fi
51968         else
51969                                     if test ${subdir} = "samples"; then
51970                                                 makefiles="samples/Makefile.in $makefiles"
51971                 for sample in `echo $SAMPLES_SUBDIRS`; do
51972                     if test -d $srcdir/samples/$sample; then
51973                         makefiles="samples/$sample/Makefile.in $makefiles"
51974                     fi
51975                 done
51976             elif test ${subdir} = "utils"; then
51977                 makefiles=""
51978                 for util in ifacecheck ; do
51979                     if test -d $srcdir/utils/$util ; then
51980                         makefiles="utils/$util/src/Makefile.in \
51981                                    $makefiles"
51982                     fi
51983                 done
51984             else
51985                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51986             fi
51987         fi
51988
51989         for mkin in $makefiles ; do
51990             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51991             ac_config_files="$ac_config_files $mk"
51992
51993         done
51994     fi
51995 done
51996 fi
51997 cat >confcache <<\_ACEOF
51998 # This file is a shell script that caches the results of configure
51999 # tests run on this system so they can be shared between configure
52000 # scripts and configure runs, see configure's option --config-cache.
52001 # It is not useful on other systems.  If it contains results you don't
52002 # want to keep, you may remove or edit it.
52003 #
52004 # config.status only pays attention to the cache file if you give it
52005 # the --recheck option to rerun configure.
52006 #
52007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52009 # following values.
52010
52011 _ACEOF
52012
52013 # The following way of writing the cache mishandles newlines in values,
52014 # but we know of no workaround that is simple, portable, and efficient.
52015 # So, we kill variables containing newlines.
52016 # Ultrix sh set writes to stderr and can't be redirected directly,
52017 # and sets the high bit in the cache file unless we assign to the vars.
52018 (
52019   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52020     eval ac_val=\$$ac_var
52021     case $ac_val in #(
52022     *${as_nl}*)
52023       case $ac_var in #(
52024       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52025 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52026       esac
52027       case $ac_var in #(
52028       _ | IFS | as_nl) ;; #(
52029       *) $as_unset $ac_var ;;
52030       esac ;;
52031     esac
52032   done
52033
52034   (set) 2>&1 |
52035     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52036     *${as_nl}ac_space=\ *)
52037       # `set' does not quote correctly, so add quotes (double-quote
52038       # substitution turns \\\\ into \\, and sed turns \\ into \).
52039       sed -n \
52040         "s/'/'\\\\''/g;
52041           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52042       ;; #(
52043     *)
52044       # `set' quotes correctly as required by POSIX, so do not add quotes.
52045       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52046       ;;
52047     esac |
52048     sort
52049 ) |
52050   sed '
52051      /^ac_cv_env_/b end
52052      t clear
52053      :clear
52054      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52055      t end
52056      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52057      :end' >>confcache
52058 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52059   if test -w "$cache_file"; then
52060     test "x$cache_file" != "x/dev/null" &&
52061       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52062 echo "$as_me: updating cache $cache_file" >&6;}
52063     cat confcache >$cache_file
52064   else
52065     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52066 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52067   fi
52068 fi
52069 rm -f confcache
52070
52071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52072 # Let make expand exec_prefix.
52073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52074
52075 DEFS=-DHAVE_CONFIG_H
52076
52077 ac_libobjs=
52078 ac_ltlibobjs=
52079 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52080   # 1. Remove the extension, and $U if already installed.
52081   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52082   ac_i=`echo "$ac_i" | sed "$ac_script"`
52083   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52084   #    will be set to the directory where LIBOBJS objects are built.
52085   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52086   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52087 done
52088 LIBOBJS=$ac_libobjs
52089
52090 LTLIBOBJS=$ac_ltlibobjs
52091
52092
52093
52094 : ${CONFIG_STATUS=./config.status}
52095 ac_clean_files_save=$ac_clean_files
52096 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52097 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52098 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52099 cat >$CONFIG_STATUS <<_ACEOF
52100 #! $SHELL
52101 # Generated by $as_me.
52102 # Run this file to recreate the current configuration.
52103 # Compiler output produced by configure, useful for debugging
52104 # configure, is in config.log if it exists.
52105
52106 debug=false
52107 ac_cs_recheck=false
52108 ac_cs_silent=false
52109 SHELL=\${CONFIG_SHELL-$SHELL}
52110 _ACEOF
52111
52112 cat >>$CONFIG_STATUS <<\_ACEOF
52113 ## --------------------- ##
52114 ## M4sh Initialization.  ##
52115 ## --------------------- ##
52116
52117 # Be more Bourne compatible
52118 DUALCASE=1; export DUALCASE # for MKS sh
52119 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52120   emulate sh
52121   NULLCMD=:
52122   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52123   # is contrary to our usage.  Disable this feature.
52124   alias -g '${1+"$@"}'='"$@"'
52125   setopt NO_GLOB_SUBST
52126 else
52127   case `(set -o) 2>/dev/null` in
52128   *posix*) set -o posix ;;
52129 esac
52130
52131 fi
52132
52133
52134
52135
52136 # PATH needs CR
52137 # Avoid depending upon Character Ranges.
52138 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52139 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52140 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52141 as_cr_digits='0123456789'
52142 as_cr_alnum=$as_cr_Letters$as_cr_digits
52143
52144 # The user is always right.
52145 if test "${PATH_SEPARATOR+set}" != set; then
52146   echo "#! /bin/sh" >conf$$.sh
52147   echo  "exit 0"   >>conf$$.sh
52148   chmod +x conf$$.sh
52149   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52150     PATH_SEPARATOR=';'
52151   else
52152     PATH_SEPARATOR=:
52153   fi
52154   rm -f conf$$.sh
52155 fi
52156
52157 # Support unset when possible.
52158 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52159   as_unset=unset
52160 else
52161   as_unset=false
52162 fi
52163
52164
52165 # IFS
52166 # We need space, tab and new line, in precisely that order.  Quoting is
52167 # there to prevent editors from complaining about space-tab.
52168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52169 # splitting by setting IFS to empty value.)
52170 as_nl='
52171 '
52172 IFS=" ""        $as_nl"
52173
52174 # Find who we are.  Look in the path if we contain no directory separator.
52175 case $0 in
52176   *[\\/]* ) as_myself=$0 ;;
52177   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52178 for as_dir in $PATH
52179 do
52180   IFS=$as_save_IFS
52181   test -z "$as_dir" && as_dir=.
52182   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52183 done
52184 IFS=$as_save_IFS
52185
52186      ;;
52187 esac
52188 # We did not find ourselves, most probably we were run as `sh COMMAND'
52189 # in which case we are not to be found in the path.
52190 if test "x$as_myself" = x; then
52191   as_myself=$0
52192 fi
52193 if test ! -f "$as_myself"; then
52194   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
52195   { (exit 1); exit 1; }
52196 fi
52197
52198 # Work around bugs in pre-3.0 UWIN ksh.
52199 for as_var in ENV MAIL MAILPATH
52200 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52201 done
52202 PS1='$ '
52203 PS2='> '
52204 PS4='+ '
52205
52206 # NLS nuisances.
52207 for as_var in \
52208   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52209   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52210   LC_TELEPHONE LC_TIME
52211 do
52212   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52213     eval $as_var=C; export $as_var
52214   else
52215     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52216   fi
52217 done
52218
52219 # Required to use basename.
52220 if expr a : '\(a\)' >/dev/null 2>&1 &&
52221    test "X`expr 00001 : '.*\(...\)'`" = X001; then
52222   as_expr=expr
52223 else
52224   as_expr=false
52225 fi
52226
52227 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52228   as_basename=basename
52229 else
52230   as_basename=false
52231 fi
52232
52233
52234 # Name of the executable.
52235 as_me=`$as_basename -- "$0" ||
52236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52237          X"$0" : 'X\(//\)$' \| \
52238          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
52239 echo X/"$0" |
52240     sed '/^.*\/\([^/][^/]*\)\/*$/{
52241             s//\1/
52242             q
52243           }
52244           /^X\/\(\/\/\)$/{
52245             s//\1/
52246             q
52247           }
52248           /^X\/\(\/\).*/{
52249             s//\1/
52250             q
52251           }
52252           s/.*/./; q'`
52253
52254 # CDPATH.
52255 $as_unset CDPATH
52256
52257
52258
52259   as_lineno_1=$LINENO
52260   as_lineno_2=$LINENO
52261   test "x$as_lineno_1" != "x$as_lineno_2" &&
52262   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
52263
52264   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52265   # uniformly replaced by the line number.  The first 'sed' inserts a
52266   # line-number line after each line using $LINENO; the second 'sed'
52267   # does the real work.  The second script uses 'N' to pair each
52268   # line-number line with the line containing $LINENO, and appends
52269   # trailing '-' during substitution so that $LINENO is not a special
52270   # case at line end.
52271   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52272   # scripts with optimization help from Paolo Bonzini.  Blame Lee
52273   # E. McMahon (1931-1989) for sed's syntax.  :-)
52274   sed -n '
52275     p
52276     /[$]LINENO/=
52277   ' <$as_myself |
52278     sed '
52279       s/[$]LINENO.*/&-/
52280       t lineno
52281       b
52282       :lineno
52283       N
52284       :loop
52285       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
52286       t loop
52287       s/-\n.*//
52288     ' >$as_me.lineno &&
52289   chmod +x "$as_me.lineno" ||
52290     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
52291    { (exit 1); exit 1; }; }
52292
52293   # Don't try to exec as it changes $[0], causing all sort of problems
52294   # (the dirname of $[0] is not the place where we might find the
52295   # original and so on.  Autoconf is especially sensitive to this).
52296   . "./$as_me.lineno"
52297   # Exit status is that of the last command.
52298   exit
52299 }
52300
52301
52302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52303   as_dirname=dirname
52304 else
52305   as_dirname=false
52306 fi
52307
52308 ECHO_C= ECHO_N= ECHO_T=
52309 case `echo -n x` in
52310 -n*)
52311   case `echo 'x\c'` in
52312   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
52313   *)   ECHO_C='\c';;
52314   esac;;
52315 *)
52316   ECHO_N='-n';;
52317 esac
52318
52319 if expr a : '\(a\)' >/dev/null 2>&1 &&
52320    test "X`expr 00001 : '.*\(...\)'`" = X001; then
52321   as_expr=expr
52322 else
52323   as_expr=false
52324 fi
52325
52326 rm -f conf$$ conf$$.exe conf$$.file
52327 if test -d conf$$.dir; then
52328   rm -f conf$$.dir/conf$$.file
52329 else
52330   rm -f conf$$.dir
52331   mkdir conf$$.dir
52332 fi
52333 echo >conf$$.file
52334 if ln -s conf$$.file conf$$ 2>/dev/null; then
52335   as_ln_s='ln -s'
52336   # ... but there are two gotchas:
52337   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52338   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52339   # In both cases, we have to default to `cp -p'.
52340   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52341     as_ln_s='cp -p'
52342 elif ln conf$$.file conf$$ 2>/dev/null; then
52343   as_ln_s=ln
52344 else
52345   as_ln_s='cp -p'
52346 fi
52347 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52348 rmdir conf$$.dir 2>/dev/null
52349
52350 if mkdir -p . 2>/dev/null; then
52351   as_mkdir_p=:
52352 else
52353   test -d ./-p && rmdir ./-p
52354   as_mkdir_p=false
52355 fi
52356
52357 if test -x / >/dev/null 2>&1; then
52358   as_test_x='test -x'
52359 else
52360   if ls -dL / >/dev/null 2>&1; then
52361     as_ls_L_option=L
52362   else
52363     as_ls_L_option=
52364   fi
52365   as_test_x='
52366     eval sh -c '\''
52367       if test -d "$1"; then
52368         test -d "$1/.";
52369       else
52370         case $1 in
52371         -*)set "./$1";;
52372         esac;
52373         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
52374         ???[sx]*):;;*)false;;esac;fi
52375     '\'' sh
52376   '
52377 fi
52378 as_executable_p=$as_test_x
52379
52380 # Sed expression to map a string onto a valid CPP name.
52381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52382
52383 # Sed expression to map a string onto a valid variable name.
52384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52385
52386
52387 exec 6>&1
52388
52389 # Save the log message, to keep $[0] and so on meaningful, and to
52390 # report actual input values of CONFIG_FILES etc. instead of their
52391 # values after options handling.
52392 ac_log="
52393 This file was extended by wxWidgets $as_me 2.9.1, which was
52394 generated by GNU Autoconf 2.61.  Invocation command line was
52395
52396   CONFIG_FILES    = $CONFIG_FILES
52397   CONFIG_HEADERS  = $CONFIG_HEADERS
52398   CONFIG_LINKS    = $CONFIG_LINKS
52399   CONFIG_COMMANDS = $CONFIG_COMMANDS
52400   $ $0 $@
52401
52402 on `(hostname || uname -n) 2>/dev/null | sed 1q`
52403 "
52404
52405 _ACEOF
52406
52407 cat >>$CONFIG_STATUS <<_ACEOF
52408 # Files that config.status was made for.
52409 config_files="$ac_config_files"
52410 config_headers="$ac_config_headers"
52411 config_commands="$ac_config_commands"
52412
52413 _ACEOF
52414
52415 cat >>$CONFIG_STATUS <<\_ACEOF
52416 ac_cs_usage="\
52417 \`$as_me' instantiates files from templates according to the
52418 current configuration.
52419
52420 Usage: $0 [OPTIONS] [FILE]...
52421
52422   -h, --help       print this help, then exit
52423   -V, --version    print version number and configuration settings, then exit
52424   -q, --quiet      do not print progress messages
52425   -d, --debug      don't remove temporary files
52426       --recheck    update $as_me by reconfiguring in the same conditions
52427   --file=FILE[:TEMPLATE]
52428                    instantiate the configuration file FILE
52429   --header=FILE[:TEMPLATE]
52430                    instantiate the configuration header FILE
52431
52432 Configuration files:
52433 $config_files
52434
52435 Configuration headers:
52436 $config_headers
52437
52438 Configuration commands:
52439 $config_commands
52440
52441 Report bugs to <bug-autoconf@gnu.org>."
52442
52443 _ACEOF
52444 cat >>$CONFIG_STATUS <<_ACEOF
52445 ac_cs_version="\\
52446 wxWidgets config.status 2.9.1
52447 configured by $0, generated by GNU Autoconf 2.61,
52448   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
52449
52450 Copyright (C) 2006 Free Software Foundation, Inc.
52451 This config.status script is free software; the Free Software Foundation
52452 gives unlimited permission to copy, distribute and modify it."
52453
52454 ac_pwd='$ac_pwd'
52455 srcdir='$srcdir'
52456 INSTALL='$INSTALL'
52457 _ACEOF
52458
52459 cat >>$CONFIG_STATUS <<\_ACEOF
52460 # If no file are specified by the user, then we need to provide default
52461 # value.  By we need to know if files were specified by the user.
52462 ac_need_defaults=:
52463 while test $# != 0
52464 do
52465   case $1 in
52466   --*=*)
52467     ac_option=`expr "X$1" : 'X\([^=]*\)='`
52468     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
52469     ac_shift=:
52470     ;;
52471   *)
52472     ac_option=$1
52473     ac_optarg=$2
52474     ac_shift=shift
52475     ;;
52476   esac
52477
52478   case $ac_option in
52479   # Handling of the options.
52480   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52481     ac_cs_recheck=: ;;
52482   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
52483     echo "$ac_cs_version"; exit ;;
52484   --debug | --debu | --deb | --de | --d | -d )
52485     debug=: ;;
52486   --file | --fil | --fi | --f )
52487     $ac_shift
52488     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
52489     ac_need_defaults=false;;
52490   --header | --heade | --head | --hea )
52491     $ac_shift
52492     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
52493     ac_need_defaults=false;;
52494   --he | --h)
52495     # Conflict between --help and --header
52496     { echo "$as_me: error: ambiguous option: $1
52497 Try \`$0 --help' for more information." >&2
52498    { (exit 1); exit 1; }; };;
52499   --help | --hel | -h )
52500     echo "$ac_cs_usage"; exit ;;
52501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52502   | -silent | --silent | --silen | --sile | --sil | --si | --s)
52503     ac_cs_silent=: ;;
52504
52505   # This is an error.
52506   -*) { echo "$as_me: error: unrecognized option: $1
52507 Try \`$0 --help' for more information." >&2
52508    { (exit 1); exit 1; }; } ;;
52509
52510   *) ac_config_targets="$ac_config_targets $1"
52511      ac_need_defaults=false ;;
52512
52513   esac
52514   shift
52515 done
52516
52517 ac_configure_extra_args=
52518
52519 if $ac_cs_silent; then
52520   exec 6>/dev/null
52521   ac_configure_extra_args="$ac_configure_extra_args --silent"
52522 fi
52523
52524 _ACEOF
52525 cat >>$CONFIG_STATUS <<_ACEOF
52526 if \$ac_cs_recheck; then
52527   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
52528   CONFIG_SHELL=$SHELL
52529   export CONFIG_SHELL
52530   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
52531 fi
52532
52533 _ACEOF
52534 cat >>$CONFIG_STATUS <<\_ACEOF
52535 exec 5>>config.log
52536 {
52537   echo
52538   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52539 ## Running $as_me. ##
52540 _ASBOX
52541   echo "$ac_log"
52542 } >&5
52543
52544 _ACEOF
52545 cat >>$CONFIG_STATUS <<_ACEOF
52546 #
52547 # INIT-COMMANDS
52548 #
52549
52550             CPP="$CPP"
52551             infile="$srcdir/include/wx/msw/genrcdefs.h"
52552             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
52553
52554
52555  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52556  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52557  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52558                      LN_S="${LN_S}"
52559
52560
52561 _ACEOF
52562
52563 cat >>$CONFIG_STATUS <<\_ACEOF
52564
52565 # Handling of arguments.
52566 for ac_config_target in $ac_config_targets
52567 do
52568   case $ac_config_target in
52569     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
52570     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
52571     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
52572     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
52573     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
52574     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
52575     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
52576     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
52577     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
52578
52579   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
52580 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
52581    { (exit 1); exit 1; }; };;
52582   esac
52583 done
52584
52585
52586 # If the user did not use the arguments to specify the items to instantiate,
52587 # then the envvar interface is used.  Set only those that are not.
52588 # We use the long form for the default assignment because of an extremely
52589 # bizarre bug on SunOS 4.1.3.
52590 if $ac_need_defaults; then
52591   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
52592   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
52593   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52594 fi
52595
52596 # Have a temporary directory for convenience.  Make it in the build tree
52597 # simply because there is no reason against having it here, and in addition,
52598 # creating and moving files from /tmp can sometimes cause problems.
52599 # Hook for its removal unless debugging.
52600 # Note that there is a small window in which the directory will not be cleaned:
52601 # after its creation but before its name has been assigned to `$tmp'.
52602 $debug ||
52603 {
52604   tmp=
52605   trap 'exit_status=$?
52606   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
52607 ' 0
52608   trap '{ (exit 1); exit 1; }' 1 2 13 15
52609 }
52610 # Create a (secure) tmp directory for tmp files.
52611
52612 {
52613   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
52614   test -n "$tmp" && test -d "$tmp"
52615 }  ||
52616 {
52617   tmp=./conf$$-$RANDOM
52618   (umask 077 && mkdir "$tmp")
52619 } ||
52620 {
52621    echo "$me: cannot create a temporary directory in ." >&2
52622    { (exit 1); exit 1; }
52623 }
52624
52625 #
52626 # Set up the sed scripts for CONFIG_FILES section.
52627 #
52628
52629 # No need to generate the scripts if there are no CONFIG_FILES.
52630 # This happens for instance when ./config.status config.h
52631 if test -n "$CONFIG_FILES"; then
52632
52633 _ACEOF
52634
52635
52636
52637 ac_delim='%!_!# '
52638 for ac_last_try in false false false false false :; do
52639   cat >conf$$subs.sed <<_ACEOF
52640 SHELL!$SHELL$ac_delim
52641 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
52642 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
52643 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
52644 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
52645 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
52646 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
52647 exec_prefix!$exec_prefix$ac_delim
52648 prefix!$prefix$ac_delim
52649 program_transform_name!$program_transform_name$ac_delim
52650 bindir!$bindir$ac_delim
52651 sbindir!$sbindir$ac_delim
52652 libexecdir!$libexecdir$ac_delim
52653 datarootdir!$datarootdir$ac_delim
52654 datadir!$datadir$ac_delim
52655 sysconfdir!$sysconfdir$ac_delim
52656 sharedstatedir!$sharedstatedir$ac_delim
52657 localstatedir!$localstatedir$ac_delim
52658 includedir!$includedir$ac_delim
52659 oldincludedir!$oldincludedir$ac_delim
52660 docdir!$docdir$ac_delim
52661 infodir!$infodir$ac_delim
52662 htmldir!$htmldir$ac_delim
52663 dvidir!$dvidir$ac_delim
52664 pdfdir!$pdfdir$ac_delim
52665 psdir!$psdir$ac_delim
52666 libdir!$libdir$ac_delim
52667 localedir!$localedir$ac_delim
52668 mandir!$mandir$ac_delim
52669 DEFS!$DEFS$ac_delim
52670 ECHO_C!$ECHO_C$ac_delim
52671 ECHO_N!$ECHO_N$ac_delim
52672 ECHO_T!$ECHO_T$ac_delim
52673 LIBS!$LIBS$ac_delim
52674 build_alias!$build_alias$ac_delim
52675 host_alias!$host_alias$ac_delim
52676 target_alias!$target_alias$ac_delim
52677 build!$build$ac_delim
52678 build_cpu!$build_cpu$ac_delim
52679 build_vendor!$build_vendor$ac_delim
52680 build_os!$build_os$ac_delim
52681 host!$host$ac_delim
52682 host_cpu!$host_cpu$ac_delim
52683 host_vendor!$host_vendor$ac_delim
52684 host_os!$host_os$ac_delim
52685 wx_top_builddir!$wx_top_builddir$ac_delim
52686 CC!$CC$ac_delim
52687 CFLAGS!$CFLAGS$ac_delim
52688 LDFLAGS!$LDFLAGS$ac_delim
52689 CPPFLAGS!$CPPFLAGS$ac_delim
52690 ac_ct_CC!$ac_ct_CC$ac_delim
52691 EXEEXT!$EXEEXT$ac_delim
52692 OBJEXT!$OBJEXT$ac_delim
52693 CPP!$CPP$ac_delim
52694 GREP!$GREP$ac_delim
52695 EGREP!$EGREP$ac_delim
52696 CXX!$CXX$ac_delim
52697 CXXFLAGS!$CXXFLAGS$ac_delim
52698 ac_ct_CXX!$ac_ct_CXX$ac_delim
52699 AR!$AR$ac_delim
52700 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
52701 subdirs!$subdirs$ac_delim
52702 PKG_CONFIG!$PKG_CONFIG$ac_delim
52703 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
52704 GTK_LIBS!$GTK_LIBS$ac_delim
52705 GTK_CONFIG!$GTK_CONFIG$ac_delim
52706 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
52707 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
52708 XMKMF!$XMKMF$ac_delim
52709 X_CFLAGS!$X_CFLAGS$ac_delim
52710 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
52711 X_LIBS!$X_LIBS$ac_delim
52712 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
52713 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
52714 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
52715 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
52716 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
52717 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
52718 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
52719 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
52720 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
52721 LIBICONV!$LIBICONV$ac_delim
52722 GXX_VERSION!$GXX_VERSION$ac_delim
52723 SDL_CONFIG!$SDL_CONFIG$ac_delim
52724 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
52725 SDL_LIBS!$SDL_LIBS$ac_delim
52726 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
52727 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
52728 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
52729 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
52730 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
52731 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
52732 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
52733 HILDON_LIBS!$HILDON_LIBS$ac_delim
52734 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
52735 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
52736 PYTHON!$PYTHON$ac_delim
52737 _ACEOF
52738
52739   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52740     break
52741   elif $ac_last_try; then
52742     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52743 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52744    { (exit 1); exit 1; }; }
52745   else
52746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52747   fi
52748 done
52749
52750 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52751 if test -n "$ac_eof"; then
52752   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52753   ac_eof=`expr $ac_eof + 1`
52754 fi
52755
52756 cat >>$CONFIG_STATUS <<_ACEOF
52757 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
52758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52759 _ACEOF
52760 sed '
52761 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52762 s/^/s,@/; s/!/@,|#_!!_#|/
52763 :n
52764 t n
52765 s/'"$ac_delim"'$/,g/; t
52766 s/$/\\/; p
52767 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52768 ' >>$CONFIG_STATUS <conf$$subs.sed
52769 rm -f conf$$subs.sed
52770 cat >>$CONFIG_STATUS <<_ACEOF
52771 CEOF$ac_eof
52772 _ACEOF
52773
52774
52775 ac_delim='%!_!# '
52776 for ac_last_try in false false false false false :; do
52777   cat >conf$$subs.sed <<_ACEOF
52778 COND_PYTHON!$COND_PYTHON$ac_delim
52779 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
52780 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
52781 GST_CFLAGS!$GST_CFLAGS$ac_delim
52782 GST_LIBS!$GST_LIBS$ac_delim
52783 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
52784 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
52785 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
52786 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
52787 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
52788 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
52789 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
52790 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
52791 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
52792 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
52793 VENDOR!$VENDOR$ac_delim
52794 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
52795 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
52796 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
52797 WXUNIV!$WXUNIV$ac_delim
52798 MONOLITHIC!$MONOLITHIC$ac_delim
52799 USE_PLUGINS!$USE_PLUGINS$ac_delim
52800 CXXWARNINGS!$CXXWARNINGS$ac_delim
52801 EXTRALIBS!$EXTRALIBS$ac_delim
52802 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
52803 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
52804 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
52805 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
52806 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
52807 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
52808 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
52809 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
52810 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
52811 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
52812 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
52813 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
52814 UNICODE!$UNICODE$ac_delim
52815 DEBUG_INFO!$DEBUG_INFO$ac_delim
52816 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
52817 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
52818 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
52819 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
52820 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
52821 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
52822 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
52823 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
52824 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
52825 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
52826 RANLIB!$RANLIB$ac_delim
52827 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
52828 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
52829 INSTALL_DATA!$INSTALL_DATA$ac_delim
52830 LN_S!$LN_S$ac_delim
52831 SET_MAKE!$SET_MAKE$ac_delim
52832 MAKE_SET!$MAKE_SET$ac_delim
52833 AROPTIONS!$AROPTIONS$ac_delim
52834 STRIP!$STRIP$ac_delim
52835 NM!$NM$ac_delim
52836 INSTALL_DIR!$INSTALL_DIR$ac_delim
52837 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
52838 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
52839 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
52840 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
52841 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
52842 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
52843 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52844 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52845 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52846 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52847 SO_SUFFIX!$SO_SUFFIX$ac_delim
52848 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52849 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52850 LIBPREFIX!$LIBPREFIX$ac_delim
52851 LIBEXT!$LIBEXT$ac_delim
52852 DLLPREFIX!$DLLPREFIX$ac_delim
52853 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52854 dlldir!$dlldir$ac_delim
52855 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52856 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52857 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52858 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52859 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52860 PIC_FLAG!$PIC_FLAG$ac_delim
52861 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52862 USE_SOVERSION!$USE_SOVERSION$ac_delim
52863 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52864 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52865 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52866 USE_MACVERSION!$USE_MACVERSION$ac_delim
52867 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
52868 SONAME_FLAG!$SONAME_FLAG$ac_delim
52869 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52870 BK_DEPS!$BK_DEPS$ac_delim
52871 WINDRES!$WINDRES$ac_delim
52872 REZ!$REZ$ac_delim
52873 SETFILE!$SETFILE$ac_delim
52874 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
52875 _ACEOF
52876
52877   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52878     break
52879   elif $ac_last_try; then
52880     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52881 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52882    { (exit 1); exit 1; }; }
52883   else
52884     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52885   fi
52886 done
52887
52888 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52889 if test -n "$ac_eof"; then
52890   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52891   ac_eof=`expr $ac_eof + 1`
52892 fi
52893
52894 cat >>$CONFIG_STATUS <<_ACEOF
52895 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52897 _ACEOF
52898 sed '
52899 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52900 s/^/s,@/; s/!/@,|#_!!_#|/
52901 :n
52902 t n
52903 s/'"$ac_delim"'$/,g/; t
52904 s/$/\\/; p
52905 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52906 ' >>$CONFIG_STATUS <conf$$subs.sed
52907 rm -f conf$$subs.sed
52908 cat >>$CONFIG_STATUS <<_ACEOF
52909 CEOF$ac_eof
52910 _ACEOF
52911
52912
52913 ac_delim='%!_!# '
52914 for ac_last_try in false false false false false :; do
52915   cat >conf$$subs.sed <<_ACEOF
52916 GCC_PCH!$GCC_PCH$ac_delim
52917 ICC_PCH!$ICC_PCH$ac_delim
52918 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
52919 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
52920 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
52921 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
52922 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
52923 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
52924 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
52925 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
52926 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
52927 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
52928 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
52929 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
52930 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
52931 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
52932 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
52933 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
52934 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
52935 COND_BUILD_release!$COND_BUILD_release$ac_delim
52936 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
52937 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
52938 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
52939 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
52940 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
52941 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
52942 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
52943 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
52944 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
52945 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
52946 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
52947 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
52948 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
52949 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
52950 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
52951 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
52952 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52953 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
52954 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
52955 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
52956 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
52957 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
52958 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
52959 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
52960 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
52961 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
52962 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
52963 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
52964 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
52965 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
52966 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
52967 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
52968 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
52969 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
52970 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
52971 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
52972 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52973 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
52974 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
52975 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
52976 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
52977 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
52978 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
52979 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
52980 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
52981 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
52982 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52983 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52984 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52985 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52986 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52987 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52988 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52989 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52990 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
52991 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52992 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52993 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52994 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52995 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52996 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52997 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52998 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52999 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
53000 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53001 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53002 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53003 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53004 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53005 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53006 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53007 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53008 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53009 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53010 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53011 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53012 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
53013 _ACEOF
53014
53015   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53016     break
53017   elif $ac_last_try; then
53018     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53020    { (exit 1); exit 1; }; }
53021   else
53022     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53023   fi
53024 done
53025
53026 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53027 if test -n "$ac_eof"; then
53028   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53029   ac_eof=`expr $ac_eof + 1`
53030 fi
53031
53032 cat >>$CONFIG_STATUS <<_ACEOF
53033 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53035 _ACEOF
53036 sed '
53037 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53038 s/^/s,@/; s/!/@,|#_!!_#|/
53039 :n
53040 t n
53041 s/'"$ac_delim"'$/,g/; t
53042 s/$/\\/; p
53043 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53044 ' >>$CONFIG_STATUS <conf$$subs.sed
53045 rm -f conf$$subs.sed
53046 cat >>$CONFIG_STATUS <<_ACEOF
53047 CEOF$ac_eof
53048 _ACEOF
53049
53050
53051 ac_delim='%!_!# '
53052 for ac_last_try in false false false false false :; do
53053   cat >conf$$subs.sed <<_ACEOF
53054 COND_SHARED_0!$COND_SHARED_0$ac_delim
53055 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53056 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53057 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53058 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53059 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53060 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53061 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
53062 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53063 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
53064 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
53065 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
53066 COND_SHARED_1!$COND_SHARED_1$ac_delim
53067 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53068 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53069 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53070 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53071 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53072 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53073 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53074 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53075 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53076 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53077 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53078 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53079 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53080 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53081 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53082 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53083 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53084 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53085 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53086 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53087 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53088 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53089 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53090 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53091 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53092 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
53093 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
53094 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
53095 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
53096 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
53097 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53098 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53099 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53100 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53101 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53102 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53103 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53104 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53105 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53106 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53107 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
53108 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53109 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53110 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53111 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53112 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53113 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53114 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53115 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53116 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53117 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53118 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53119 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53120 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
53121 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
53122 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53123 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53124 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53125 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53126 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
53127 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53128 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53129 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53130 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
53131 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53132 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53133 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53134 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53135 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53136 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53137 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53138 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53139 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53140 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53141 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53142 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53143 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53144 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53145 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53146 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
53147 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
53148 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
53149 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
53150 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
53151 _ACEOF
53152
53153   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53154     break
53155   elif $ac_last_try; then
53156     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53158    { (exit 1); exit 1; }; }
53159   else
53160     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53161   fi
53162 done
53163
53164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53165 if test -n "$ac_eof"; then
53166   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53167   ac_eof=`expr $ac_eof + 1`
53168 fi
53169
53170 cat >>$CONFIG_STATUS <<_ACEOF
53171 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
53172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53173 _ACEOF
53174 sed '
53175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53176 s/^/s,@/; s/!/@,|#_!!_#|/
53177 :n
53178 t n
53179 s/'"$ac_delim"'$/,g/; t
53180 s/$/\\/; p
53181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53182 ' >>$CONFIG_STATUS <conf$$subs.sed
53183 rm -f conf$$subs.sed
53184 cat >>$CONFIG_STATUS <<_ACEOF
53185 CEOF$ac_eof
53186 _ACEOF
53187
53188
53189 ac_delim='%!_!# '
53190 for ac_last_try in false false false false false :; do
53191   cat >conf$$subs.sed <<_ACEOF
53192 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
53193 DEREZ!$DEREZ$ac_delim
53194 SHARED!$SHARED$ac_delim
53195 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
53196 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
53197 USE_GUI!$USE_GUI$ac_delim
53198 AFMINSTALL!$AFMINSTALL$ac_delim
53199 WIN32INSTALL!$WIN32INSTALL$ac_delim
53200 TOOLKIT!$TOOLKIT$ac_delim
53201 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
53202 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53203 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53204 cross_compiling!$cross_compiling$ac_delim
53205 WIDGET_SET!$WIDGET_SET$ac_delim
53206 WX_RELEASE!$WX_RELEASE$ac_delim
53207 WX_VERSION!$WX_VERSION$ac_delim
53208 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53209 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
53210 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53211 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53212 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53213 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53214 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
53215 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
53216 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53217 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53218 GUIDIST!$GUIDIST$ac_delim
53219 DISTDIR!$DISTDIR$ac_delim
53220 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
53221 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
53222 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
53223 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
53224 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
53225 RESCOMP!$RESCOMP$ac_delim
53226 RESFLAGS!$RESFLAGS$ac_delim
53227 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
53228 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
53229 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
53230 LIBWXMACRES!$LIBWXMACRES$ac_delim
53231 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
53232 MACSETFILE!$MACSETFILE$ac_delim
53233 GCC!$GCC$ac_delim
53234 DLLTOOL!$DLLTOOL$ac_delim
53235 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
53236 LIBOBJS!$LIBOBJS$ac_delim
53237 LTLIBOBJS!$LTLIBOBJS$ac_delim
53238 _ACEOF
53239
53240   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
53241     break
53242   elif $ac_last_try; then
53243     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53244 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53245    { (exit 1); exit 1; }; }
53246   else
53247     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53248   fi
53249 done
53250
53251 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53252 if test -n "$ac_eof"; then
53253   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53254   ac_eof=`expr $ac_eof + 1`
53255 fi
53256
53257 cat >>$CONFIG_STATUS <<_ACEOF
53258 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
53259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
53260 _ACEOF
53261 sed '
53262 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53263 s/^/s,@/; s/!/@,|#_!!_#|/
53264 :n
53265 t n
53266 s/'"$ac_delim"'$/,g/; t
53267 s/$/\\/; p
53268 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53269 ' >>$CONFIG_STATUS <conf$$subs.sed
53270 rm -f conf$$subs.sed
53271 cat >>$CONFIG_STATUS <<_ACEOF
53272 :end
53273 s/|#_!!_#|//g
53274 CEOF$ac_eof
53275 _ACEOF
53276
53277
53278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53280 # trailing colons and then remove the whole line if VPATH becomes empty
53281 # (actually we leave an empty line to preserve line numbers).
53282 if test "x$srcdir" = x.; then
53283   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53284 s/:*\$(srcdir):*/:/
53285 s/:*\${srcdir}:*/:/
53286 s/:*@srcdir@:*/:/
53287 s/^\([^=]*=[     ]*\):*/\1/
53288 s/:*$//
53289 s/^[^=]*=[       ]*$//
53290 }'
53291 fi
53292
53293 cat >>$CONFIG_STATUS <<\_ACEOF
53294 fi # test -n "$CONFIG_FILES"
53295
53296
53297 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
53298 do
53299   case $ac_tag in
53300   :[FHLC]) ac_mode=$ac_tag; continue;;
53301   esac
53302   case $ac_mode$ac_tag in
53303   :[FHL]*:*);;
53304   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
53305 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
53306    { (exit 1); exit 1; }; };;
53307   :[FH]-) ac_tag=-:-;;
53308   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
53309   esac
53310   ac_save_IFS=$IFS
53311   IFS=:
53312   set x $ac_tag
53313   IFS=$ac_save_IFS
53314   shift
53315   ac_file=$1
53316   shift
53317
53318   case $ac_mode in
53319   :L) ac_source=$1;;
53320   :[FH])
53321     ac_file_inputs=
53322     for ac_f
53323     do
53324       case $ac_f in
53325       -) ac_f="$tmp/stdin";;
53326       *) # Look for the file first in the build tree, then in the source tree
53327          # (if the path is not absolute).  The absolute path cannot be DOS-style,
53328          # because $ac_f cannot contain `:'.
53329          test -f "$ac_f" ||
53330            case $ac_f in
53331            [\\/$]*) false;;
53332            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
53333            esac ||
53334            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
53335 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
53336    { (exit 1); exit 1; }; };;
53337       esac
53338       ac_file_inputs="$ac_file_inputs $ac_f"
53339     done
53340
53341     # Let's still pretend it is `configure' which instantiates (i.e., don't
53342     # use $as_me), people would be surprised to read:
53343     #    /* config.h.  Generated by config.status.  */
53344     configure_input="Generated from "`IFS=:
53345           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
53346     if test x"$ac_file" != x-; then
53347       configure_input="$ac_file.  $configure_input"
53348       { echo "$as_me:$LINENO: creating $ac_file" >&5
53349 echo "$as_me: creating $ac_file" >&6;}
53350     fi
53351
53352     case $ac_tag in
53353     *:-:* | *:-) cat >"$tmp/stdin";;
53354     esac
53355     ;;
53356   esac
53357
53358   ac_dir=`$as_dirname -- "$ac_file" ||
53359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53360          X"$ac_file" : 'X\(//\)[^/]' \| \
53361          X"$ac_file" : 'X\(//\)$' \| \
53362          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53363 echo X"$ac_file" |
53364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53365             s//\1/
53366             q
53367           }
53368           /^X\(\/\/\)[^/].*/{
53369             s//\1/
53370             q
53371           }
53372           /^X\(\/\/\)$/{
53373             s//\1/
53374             q
53375           }
53376           /^X\(\/\).*/{
53377             s//\1/
53378             q
53379           }
53380           s/.*/./; q'`
53381   { as_dir="$ac_dir"
53382   case $as_dir in #(
53383   -*) as_dir=./$as_dir;;
53384   esac
53385   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53386     as_dirs=
53387     while :; do
53388       case $as_dir in #(
53389       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53390       *) as_qdir=$as_dir;;
53391       esac
53392       as_dirs="'$as_qdir' $as_dirs"
53393       as_dir=`$as_dirname -- "$as_dir" ||
53394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53395          X"$as_dir" : 'X\(//\)[^/]' \| \
53396          X"$as_dir" : 'X\(//\)$' \| \
53397          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53398 echo X"$as_dir" |
53399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53400             s//\1/
53401             q
53402           }
53403           /^X\(\/\/\)[^/].*/{
53404             s//\1/
53405             q
53406           }
53407           /^X\(\/\/\)$/{
53408             s//\1/
53409             q
53410           }
53411           /^X\(\/\).*/{
53412             s//\1/
53413             q
53414           }
53415           s/.*/./; q'`
53416       test -d "$as_dir" && break
53417     done
53418     test -z "$as_dirs" || eval "mkdir $as_dirs"
53419   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53420 echo "$as_me: error: cannot create directory $as_dir" >&2;}
53421    { (exit 1); exit 1; }; }; }
53422   ac_builddir=.
53423
53424 case "$ac_dir" in
53425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53426 *)
53427   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53428   # A ".." for each directory in $ac_dir_suffix.
53429   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
53430   case $ac_top_builddir_sub in
53431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53433   esac ;;
53434 esac
53435 ac_abs_top_builddir=$ac_pwd
53436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53437 # for backward compatibility:
53438 ac_top_builddir=$ac_top_build_prefix
53439
53440 case $srcdir in
53441   .)  # We are building in place.
53442     ac_srcdir=.
53443     ac_top_srcdir=$ac_top_builddir_sub
53444     ac_abs_top_srcdir=$ac_pwd ;;
53445   [\\/]* | ?:[\\/]* )  # Absolute name.
53446     ac_srcdir=$srcdir$ac_dir_suffix;
53447     ac_top_srcdir=$srcdir
53448     ac_abs_top_srcdir=$srcdir ;;
53449   *) # Relative name.
53450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53451     ac_top_srcdir=$ac_top_build_prefix$srcdir
53452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53453 esac
53454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53455
53456
53457   case $ac_mode in
53458   :F)
53459   #
53460   # CONFIG_FILE
53461   #
53462
53463   case $INSTALL in
53464   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53465   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
53466   esac
53467 _ACEOF
53468
53469 cat >>$CONFIG_STATUS <<\_ACEOF
53470 # If the template does not know about datarootdir, expand it.
53471 # FIXME: This hack should be removed a few years after 2.60.
53472 ac_datarootdir_hack=; ac_datarootdir_seen=
53473
53474 case `sed -n '/datarootdir/ {
53475   p
53476   q
53477 }
53478 /@datadir@/p
53479 /@docdir@/p
53480 /@infodir@/p
53481 /@localedir@/p
53482 /@mandir@/p
53483 ' $ac_file_inputs` in
53484 *datarootdir*) ac_datarootdir_seen=yes;;
53485 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
53486   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
53487 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
53488 _ACEOF
53489 cat >>$CONFIG_STATUS <<_ACEOF
53490   ac_datarootdir_hack='
53491   s&@datadir@&$datadir&g
53492   s&@docdir@&$docdir&g
53493   s&@infodir@&$infodir&g
53494   s&@localedir@&$localedir&g
53495   s&@mandir@&$mandir&g
53496     s&\\\${datarootdir}&$datarootdir&g' ;;
53497 esac
53498 _ACEOF
53499
53500 # Neutralize VPATH when `$srcdir' = `.'.
53501 # Shell code in configure.ac might set extrasub.
53502 # FIXME: do we really want to maintain this feature?
53503 cat >>$CONFIG_STATUS <<_ACEOF
53504   sed "$ac_vpsub
53505 $extrasub
53506 _ACEOF
53507 cat >>$CONFIG_STATUS <<\_ACEOF
53508 :t
53509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53510 s&@configure_input@&$configure_input&;t t
53511 s&@top_builddir@&$ac_top_builddir_sub&;t t
53512 s&@srcdir@&$ac_srcdir&;t t
53513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
53514 s&@top_srcdir@&$ac_top_srcdir&;t t
53515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
53516 s&@builddir@&$ac_builddir&;t t
53517 s&@abs_builddir@&$ac_abs_builddir&;t t
53518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
53519 s&@INSTALL@&$ac_INSTALL&;t t
53520 $ac_datarootdir_hack
53521 " $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
53522
53523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
53524   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
53525   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
53526   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53527 which seems to be undefined.  Please make sure it is defined." >&5
53528 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53529 which seems to be undefined.  Please make sure it is defined." >&2;}
53530
53531   rm -f "$tmp/stdin"
53532   case $ac_file in
53533   -) cat "$tmp/out"; rm -f "$tmp/out";;
53534   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
53535   esac
53536  ;;
53537   :H)
53538   #
53539   # CONFIG_HEADER
53540   #
53541 _ACEOF
53542
53543 # Transform confdefs.h into a sed script `conftest.defines', that
53544 # substitutes the proper values into config.h.in to produce config.h.
53545 rm -f conftest.defines conftest.tail
53546 # First, append a space to every undef/define line, to ease matching.
53547 echo 's/$/ /' >conftest.defines
53548 # Then, protect against being on the right side of a sed subst, or in
53549 # an unquoted here document, in config.status.  If some macros were
53550 # called several times there might be several #defines for the same
53551 # symbol, which is useless.  But do not sort them, since the last
53552 # AC_DEFINE must be honored.
53553 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
53554 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
53555 # NAME is the cpp macro being defined, VALUE is the value it is being given.
53556 # PARAMS is the parameter list in the macro definition--in most cases, it's
53557 # just an empty string.
53558 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
53559 ac_dB='\\)[      (].*,\\1define\\2'
53560 ac_dC=' '
53561 ac_dD=' ,'
53562
53563 uniq confdefs.h |
53564   sed -n '
53565         t rset
53566         :rset
53567         s/^[     ]*#[    ]*define[       ][      ]*//
53568         t ok
53569         d
53570         :ok
53571         s/[\\&,]/\\&/g
53572         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
53573         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
53574   ' >>conftest.defines
53575
53576 # Remove the space that was appended to ease matching.
53577 # Then replace #undef with comments.  This is necessary, for
53578 # example, in the case of _POSIX_SOURCE, which is predefined and required
53579 # on some systems where configure will not decide to define it.
53580 # (The regexp can be short, since the line contains either #define or #undef.)
53581 echo 's/ $//
53582 s,^[     #]*u.*,/* & */,' >>conftest.defines
53583
53584 # Break up conftest.defines:
53585 ac_max_sed_lines=50
53586
53587 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
53588 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
53589 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
53590 # et cetera.
53591 ac_in='$ac_file_inputs'
53592 ac_out='"$tmp/out1"'
53593 ac_nxt='"$tmp/out2"'
53594
53595 while :
53596 do
53597   # Write a here document:
53598     cat >>$CONFIG_STATUS <<_ACEOF
53599     # First, check the format of the line:
53600     cat >"\$tmp/defines.sed" <<\\CEOF
53601 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
53602 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
53603 b
53604 :def
53605 _ACEOF
53606   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
53607   echo 'CEOF
53608     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
53609   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
53610   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
53611   grep . conftest.tail >/dev/null || break
53612   rm -f conftest.defines
53613   mv conftest.tail conftest.defines
53614 done
53615 rm -f conftest.defines conftest.tail
53616
53617 echo "ac_result=$ac_in" >>$CONFIG_STATUS
53618 cat >>$CONFIG_STATUS <<\_ACEOF
53619   if test x"$ac_file" != x-; then
53620     echo "/* $configure_input  */" >"$tmp/config.h"
53621     cat "$ac_result" >>"$tmp/config.h"
53622     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
53623       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53624 echo "$as_me: $ac_file is unchanged" >&6;}
53625     else
53626       rm -f $ac_file
53627       mv "$tmp/config.h" $ac_file
53628     fi
53629   else
53630     echo "/* $configure_input  */"
53631     cat "$ac_result"
53632   fi
53633   rm -f "$tmp/out12"
53634  ;;
53635
53636   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
53637 echo "$as_me: executing $ac_file commands" >&6;}
53638  ;;
53639   esac
53640
53641
53642   case $ac_file$ac_mode in
53643     "rcdefs.h":C)
53644             mkdir -p $outdir &&
53645             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
53646          ;;
53647     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
53648     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
53649     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
53650     "wx-config":C)  rm -f wx-config
53651                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
53652                     ;;
53653
53654   esac
53655 done # for ac_tag
53656
53657
53658 { (exit 0); exit 0; }
53659 _ACEOF
53660 chmod +x $CONFIG_STATUS
53661 ac_clean_files=$ac_clean_files_save
53662
53663
53664 # configure is writing to config.log, and then calls config.status.
53665 # config.status does its own redirection, appending to config.log.
53666 # Unfortunately, on DOS this fails, as config.log is still kept open
53667 # by configure, so config.status won't be able to write to it; its
53668 # output is simply discarded.  So we exec the FD to /dev/null,
53669 # effectively closing config.log, so it can be properly (re)opened and
53670 # appended to by config.status.  When coming back to configure, we
53671 # need to make the FD available again.
53672 if test "$no_create" != yes; then
53673   ac_cs_success=:
53674   ac_config_status_args=
53675   test "$silent" = yes &&
53676     ac_config_status_args="$ac_config_status_args --quiet"
53677   exec 5>/dev/null
53678   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53679   exec 5>>config.log
53680   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53681   # would make configure fail if this is the last instruction.
53682   $ac_cs_success || { (exit 1); exit 1; }
53683 fi
53684
53685 #
53686 # CONFIG_SUBDIRS section.
53687 #
53688 if test "$no_recursion" != yes; then
53689
53690   # Remove --cache-file and --srcdir arguments so they do not pile up.
53691   ac_sub_configure_args=
53692   ac_prev=
53693   eval "set x $ac_configure_args"
53694   shift
53695   for ac_arg
53696   do
53697     if test -n "$ac_prev"; then
53698       ac_prev=
53699       continue
53700     fi
53701     case $ac_arg in
53702     -cache-file | --cache-file | --cache-fil | --cache-fi \
53703     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
53704       ac_prev=cache_file ;;
53705     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
53706     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
53707     | --c=*)
53708       ;;
53709     --config-cache | -C)
53710       ;;
53711     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
53712       ac_prev=srcdir ;;
53713     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
53714       ;;
53715     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
53716       ac_prev=prefix ;;
53717     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
53718       ;;
53719     *)
53720       case $ac_arg in
53721       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
53722       esac
53723       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
53724     esac
53725   done
53726
53727   # Always prepend --prefix to ensure using the same prefix
53728   # in subdir configurations.
53729   ac_arg="--prefix=$prefix"
53730   case $ac_arg in
53731   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
53732   esac
53733   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
53734
53735   # Pass --silent
53736   if test "$silent" = yes; then
53737     ac_sub_configure_args="--silent $ac_sub_configure_args"
53738   fi
53739
53740   ac_popdir=`pwd`
53741   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
53742
53743     # Do not complain, so a configure script can configure whichever
53744     # parts of a large source tree are present.
53745     test -d "$srcdir/$ac_dir" || continue
53746
53747     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
53748     echo "$as_me:$LINENO: $ac_msg" >&5
53749     echo "$ac_msg" >&6
53750     { as_dir="$ac_dir"
53751   case $as_dir in #(
53752   -*) as_dir=./$as_dir;;
53753   esac
53754   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53755     as_dirs=
53756     while :; do
53757       case $as_dir in #(
53758       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53759       *) as_qdir=$as_dir;;
53760       esac
53761       as_dirs="'$as_qdir' $as_dirs"
53762       as_dir=`$as_dirname -- "$as_dir" ||
53763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53764          X"$as_dir" : 'X\(//\)[^/]' \| \
53765          X"$as_dir" : 'X\(//\)$' \| \
53766          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53767 echo X"$as_dir" |
53768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53769             s//\1/
53770             q
53771           }
53772           /^X\(\/\/\)[^/].*/{
53773             s//\1/
53774             q
53775           }
53776           /^X\(\/\/\)$/{
53777             s//\1/
53778             q
53779           }
53780           /^X\(\/\).*/{
53781             s//\1/
53782             q
53783           }
53784           s/.*/./; q'`
53785       test -d "$as_dir" && break
53786     done
53787     test -z "$as_dirs" || eval "mkdir $as_dirs"
53788   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53789 echo "$as_me: error: cannot create directory $as_dir" >&2;}
53790    { (exit 1); exit 1; }; }; }
53791     ac_builddir=.
53792
53793 case "$ac_dir" in
53794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53795 *)
53796   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53797   # A ".." for each directory in $ac_dir_suffix.
53798   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
53799   case $ac_top_builddir_sub in
53800   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53801   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53802   esac ;;
53803 esac
53804 ac_abs_top_builddir=$ac_pwd
53805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53806 # for backward compatibility:
53807 ac_top_builddir=$ac_top_build_prefix
53808
53809 case $srcdir in
53810   .)  # We are building in place.
53811     ac_srcdir=.
53812     ac_top_srcdir=$ac_top_builddir_sub
53813     ac_abs_top_srcdir=$ac_pwd ;;
53814   [\\/]* | ?:[\\/]* )  # Absolute name.
53815     ac_srcdir=$srcdir$ac_dir_suffix;
53816     ac_top_srcdir=$srcdir
53817     ac_abs_top_srcdir=$srcdir ;;
53818   *) # Relative name.
53819     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53820     ac_top_srcdir=$ac_top_build_prefix$srcdir
53821     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53822 esac
53823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53824
53825
53826     cd "$ac_dir"
53827
53828     # Check for guested configure; otherwise get Cygnus style configure.
53829     if test -f "$ac_srcdir/configure.gnu"; then
53830       ac_sub_configure=$ac_srcdir/configure.gnu
53831     elif test -f "$ac_srcdir/configure"; then
53832       ac_sub_configure=$ac_srcdir/configure
53833     elif test -f "$ac_srcdir/configure.in"; then
53834       # This should be Cygnus configure.
53835       ac_sub_configure=$ac_aux_dir/configure
53836     else
53837       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53838 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
53839       ac_sub_configure=
53840     fi
53841
53842     # The recursion is here.
53843     if test -n "$ac_sub_configure"; then
53844       # Make the cache file name correct relative to the subdirectory.
53845       case $cache_file in
53846       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
53847       *) # Relative name.
53848         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
53849       esac
53850
53851       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53852 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53853       # The eval makes quoting arguments work.
53854       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53855            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53856         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53857 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53858    { (exit 1); exit 1; }; }
53859     fi
53860
53861     cd "$ac_popdir"
53862   done
53863 fi
53864
53865
53866 echo
53867 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53868 echo ""
53869 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53870 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53871 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53872 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
53873 if test "$wxUSE_UNICODE" = "yes"; then
53874     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53875         echo " (using UTF-8)"
53876     else
53877         echo " (using wchar_t)"
53878     fi
53879 else
53880     echo
53881 fi
53882
53883 echo "  What level of wxWidgets compatibility should be enabled?"
53884 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53885 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53886
53887 echo "  Which libraries should wxWidgets use?"
53888 echo "                                       STL                ${wxUSE_STL}"
53889 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53890 echo "                                       png                ${wxUSE_LIBPNG-none}"
53891 echo "                                       regex              ${wxUSE_REGEX}"
53892 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53893 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53894 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53895 fi
53896 echo "                                       zlib               ${wxUSE_ZLIB}"
53897 echo "                                       expat              ${wxUSE_EXPAT}"
53898 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53899 echo "                                       sdl                ${wxUSE_LIBSDL}"
53900
53901 echo ""
53902